common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Version = "v0.0.42"

Variables

View Source
var SepTemplateList = map[string]string{
	"403":                               "403",
	"404":                               "404",
	"500":                               "500",
	"admin_panel":                       "admin_panel",
	"components/alert":                  "components/alert",
	"components/box":                    "components/box",
	"components/button":                 "components/button",
	"components/col":                    "components/col",
	"components/form/array":             "components/form/array",
	"components/form/checkbox":          "components/form/checkbox",
	"components/form/checkbox_single":   "components/form/checkbox_single",
	"components/form/checkbox_stacked":  "components/form/checkbox_stacked",
	"components/form/code":              "components/form/code",
	"components/form/color":             "components/form/color",
	"components/form/currency":          "components/form/currency",
	"components/form/custom":            "components/form/custom",
	"components/form/datetime":          "components/form/datetime",
	"components/form/datetime_range":    "components/form/datetime_range",
	"components/form/default":           "components/form/default",
	"components/form/email":             "components/form/email",
	"components/form/file":              "components/form/file",
	"components/form/help_block":        "components/form/help_block",
	"components/form/iconpicker":        "components/form/iconpicker",
	"components/form/ip":                "components/form/ip",
	"components/form/multi_file":        "components/form/multi_file",
	"components/form/number":            "components/form/number",
	"components/form/number_range":      "components/form/number_range",
	"components/form/password":          "components/form/password",
	"components/form/radio":             "components/form/radio",
	"components/form/rate":              "components/form/rate",
	"components/form/richtext":          "components/form/richtext",
	"components/form/select":            "components/form/select",
	"components/form/selectbox":         "components/form/selectbox",
	"components/form/singleselect":      "components/form/singleselect",
	"components/form/slider":            "components/form/slider",
	"components/form/switch":            "components/form/switch",
	"components/form/table":             "components/form/table",
	"components/form/text":              "components/form/text",
	"components/form/textarea":          "components/form/textarea",
	"components/form/url":               "components/form/url",
	"components/form":                   "components/form",
	"components/form_components":        "components/form_components",
	"components/form_components_layout": "components/form_components_layout",
	"components/form_layout_default":    "components/form_layout_default",
	"components/form_layout_flow":       "components/form_layout_flow",
	"components/form_layout_tab":        "components/form_layout_tab",
	"components/form_layout_two_col":    "components/form_layout_two_col",
	"components/image":                  "components/image",
	"components/label":                  "components/label",
	"components/link":                   "components/link",
	"components/paginator":              "components/paginator",
	"components/popup":                  "components/popup",
	"components/row":                    "components/row",
	"components/table/box-header":       "components/table/box-header",
	"components/table":                  "components/table",
	"components/tabs":                   "components/tabs",
	"components/tree-header":            "components/tree-header",
	"components/tree":                   "components/tree",
	"components/treeview":               "components/treeview",
	"content":                           "content",
	"control_panel":                     "control_panel",
	"footer":                            "footer",
	"head":                              "head",
	"header":                            "header",
	"js":                                "js",
	"layout":                            "layout",
	"menu":                              "menu",
	"sidebar":                           "sidebar",
}

Functions

func GetImportCSSTag

func GetImportCSSTag(src string) template.HTML

func GetImportJSTag

func GetImportJSTag(src string) template.HTML

Types

type BaseTheme

type BaseTheme struct {
	AssetPaths   map[string]string
	TemplateList map[string]string
	Separation   bool
}

func (*BaseTheme) Get403HTML

func (b *BaseTheme) Get403HTML() template.HTML

func (*BaseTheme) Get404HTML

func (b *BaseTheme) Get404HTML() template.HTML

func (*BaseTheme) Get500HTML

func (b *BaseTheme) Get500HTML() template.HTML

func (*BaseTheme) GetAssetImportHTML

func (b *BaseTheme) GetAssetImportHTML(exclude ...string) template.HTML

func (*BaseTheme) GetFootJS

func (b *BaseTheme) GetFootJS() template.HTML

func (*BaseTheme) GetHeadHTML

func (b *BaseTheme) GetHeadHTML() template.HTML

func (*BaseTheme) GetRequirements

func (b *BaseTheme) GetRequirements() []string

func (*BaseTheme) GetTemplate

func (b *BaseTheme) GetTemplate(isPjax bool) (tmpl *template.Template, name string)

func (*BaseTheme) GetVersion

func (b *BaseTheme) GetVersion() string

Jump to

Keyboard shortcuts

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