page

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const EventNameFrontendTemplateEdited = `frontend.template.edited`

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `页面布局`,
	Action:  `official/page`,
	Icon:    `magic`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `模板管理`,
			Action:  `template_index`,
			Icon:    `columns`,
		},
		{
			Display: false,
			Name:    `修改模板`,
			Action:  `template_edit`,
			Icon:    `edit`,
		},
		{
			Display: false,
			Name:    `切换模板`,
			Action:  `template_enable`,
			Icon:    `edit`,
		},
		{
			Display: false,
			Name:    `修改模板配置`,
			Action:  `template_config`,
			Icon:    `edit`,
		},
		{
			Display: false,
			Name:    `删除模板`,
			Action:  `template_delete`,
		},
	},
}

Functions

func Add

func Add(ctx echo.Context) error

func BlockAdd

func BlockAdd(ctx echo.Context) error

func BlockDelete

func BlockDelete(ctx echo.Context) error

func BlockEdit

func BlockEdit(ctx echo.Context) error

func BlockIndex

func BlockIndex(ctx echo.Context) error

func Delete

func Delete(ctx echo.Context) error

func Edit

func Edit(ctx echo.Context) error

func GetAllThemeNames added in v0.3.0

func GetAllThemeNames() []string

func GetEmbedThemes

func GetEmbedThemes() []*ntemplate.ThemeInfo

func GetTemplateDiskFS

func GetTemplateDiskFS() ntemplate.FileSystems

func GetTemplateEmbedFS

func GetTemplateEmbedFS() http.FileSystem

func Index

func Index(ctx echo.Context) error

func LayoutAdd

func LayoutAdd(ctx echo.Context) error

func LayoutDelete

func LayoutDelete(ctx echo.Context) error

func LayoutEdit

func LayoutEdit(ctx echo.Context) error

func LayoutIndex

func LayoutIndex(ctx echo.Context) error

func ListTemplateFileNames added in v0.3.0

func ListTemplateFileNames(dir string, themes ...string) []string

func ListTemplateFiles added in v0.3.0

func ListTemplateFiles(dir string, themes ...string) (r []fs.FileInfo)

func TemplateConfig

func TemplateConfig(ctx echo.Context) error

func TemplateEdit

func TemplateEdit(ctx echo.Context) error

func TemplateEnable

func TemplateEnable(ctx echo.Context) error

func TemplateIndex

func TemplateIndex(ctx echo.Context) error

func TemplatePreviewImage

func TemplatePreviewImage(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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