vue

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: GPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	VCOptions              = "vue"
	VCOptionDateComponent  = "date"
	VCOptionMapComponent   = "map"
	VCOptionColorComponent = "color"
	VCOptionsApolloClient  = "apollo-client"
)
View Source
const TabAsSpace = "  "

Variables

This section is empty.

Functions

This section is empty.

Types

type VCOptionComponentSpec

type VCOptionComponentSpec struct {
	Name   string `json:"name"`
	Import string `json:"import"`
}

type VueCLientGenerator

type VueCLientGenerator struct {
	// contains filtered or unexported fields
}

func (*VueCLientGenerator) CheckAnnotation

func (cg *VueCLientGenerator) CheckAnnotation(desc *gen.Package, ann *gen.Annotation, item interface{}) (bool, error)

func (*VueCLientGenerator) Generate

func (cg *VueCLientGenerator) Generate(b *gen.Builder) (err error)

func (*VueCLientGenerator) Name

func (cg *VueCLientGenerator) Name() string

func (*VueCLientGenerator) Prepare

func (cg *VueCLientGenerator) Prepare(desc *gen.Package) error

func (*VueCLientGenerator) SetOptions

func (cg *VueCLientGenerator) SetOptions(options any) error

type VueClientOptions

type VueClientOptions struct {
	Components      map[string]VCOptionComponentSpec `json:"components"`
	ApolloClientVar string                           `json:"apollo_client_var"`
	OutputDir       string                           `json:"output_dir"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL