Documentation
¶
Index ¶
- Constants
- Variables
- func Add(ctx echo.Context) error
- func BlockAdd(ctx echo.Context) error
- func BlockDelete(ctx echo.Context) error
- func BlockEdit(ctx echo.Context) error
- func BlockIndex(ctx echo.Context) error
- func Delete(ctx echo.Context) error
- func Edit(ctx echo.Context) error
- func GetAllThemeNames() []string
- func GetEmbedThemes() []*ntemplate.ThemeInfo
- func GetTemplateDiskFS() ntemplate.FileSystems
- func GetTemplateEmbedFS() http.FileSystem
- func Index(ctx echo.Context) error
- func LayoutAdd(ctx echo.Context) error
- func LayoutDelete(ctx echo.Context) error
- func LayoutEdit(ctx echo.Context) error
- func LayoutIndex(ctx echo.Context) error
- func ListTemplateFileNames(dir string, themes ...string) []string
- func ListTemplateFiles(dir string, themes ...string) (r []fs.FileInfo)
- func TemplateConfig(ctx echo.Context) error
- func TemplateEdit(ctx echo.Context) error
- func TemplateEnable(ctx echo.Context) error
- func TemplateIndex(ctx echo.Context) error
- func TemplatePreviewImage(ctx echo.Context) error
Constants ¶
View Source
const EventNameFrontendTemplateEdited = `frontend.template.edited`
Variables ¶
View Source
Display: true, Name: echo.T(`页面布局`), Action: `official/page`, Icon: `magic`, Children: (&navigate.List{}). Add(-1, NavTemplate...), }
View Source
{ Display: true, Name: echo.T(`页面管理`), Action: `index`, Icon: `columns`, }, { Display: false, Name: echo.T(`添加页面`), Action: `add`, }, { Display: false, Name: echo.T(`修改页面`), Action: `edit`, }, { Display: false, Name: echo.T(`删除页面`), Action: `delete`, }, }
View Source
{ Display: true, Name: echo.T(`区块管理`), Action: `block_index`, Icon: `fa-list-alt`, }, { Display: false, Name: echo.T(`添加区块`), Action: `block_add`, }, { Display: false, Name: echo.T(`修改区块`), Action: `block_edit`, }, { Display: false, Name: echo.T(`删除区块`), Action: `block_delete`, }, }
View Source
{ Display: true, Name: echo.T(`布局管理`), Action: `layout_index`, Icon: `fa-list-alt`, }, { Display: false, Name: echo.T(`添加布局`), Action: `layout_add`, }, { Display: false, Name: echo.T(`修改布局`), Action: `layout_edit`, }, { Display: false, Name: echo.T(`删除布局`), Action: `layout_delete`, }, }
View Source
{ Display: true, Name: echo.T(`模板管理`), Action: `template_index`, Icon: `columns`, }, { Display: false, Name: echo.T(`修改模板`), Action: `template_edit`, Icon: `edit`, }, { Display: false, Name: echo.T(`切换模板`), Action: `template_enable`, Icon: `edit`, }, { Display: false, Name: echo.T(`修改模板配置`), Action: `template_config`, Icon: `edit`, }, { Display: false, Name: echo.T(`删除模板`), Action: `template_delete`, }, }
Functions ¶
func BlockDelete ¶
func BlockIndex ¶
func GetAllThemeNames ¶ added in v0.3.0
func GetAllThemeNames() []string
func GetEmbedThemes ¶
func GetTemplateDiskFS ¶
func GetTemplateDiskFS() ntemplate.FileSystems
func GetTemplateEmbedFS ¶
func GetTemplateEmbedFS() http.FileSystem
func LayoutDelete ¶
func LayoutEdit ¶
func LayoutIndex ¶
func ListTemplateFileNames ¶ added in v0.3.0
func ListTemplateFiles ¶ added in v0.3.0
func TemplateConfig ¶
func TemplateEdit ¶
func TemplateEnable ¶
func TemplateIndex ¶
func TemplatePreviewImage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.