Documentation ¶
Index ¶
- Constants
- Variables
- type CFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) EditorMenu(r *http.Request) (m menu.Menu)
- func (f *CFeature) GetAllMenus() (allMenus map[language.Tag]map[string]menu.Menu)
- func (f *CFeature) GetTranslatedLocales(info *editor.File) (txs map[language.Tag]string)
- func (f *CFeature) GetUntranslatedLocales(info *editor.File) (locales []language.Tag)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) OpChangeHandler(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (redirect string)
- func (f *CFeature) OpChangeValidate(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (err error)
- func (f *CFeature) OpFileCommitHandler(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (redirect string)
- func (f *CFeature) OpFileCommitValidate(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (err error)
- func (f *CFeature) OpFilePublishHandler(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (redirect string)
- func (f *CFeature) OpFilePublishValidate(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (err error)
- func (f *CFeature) OpMenuCreateHandler(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (redirect string)
- func (f *CFeature) OpMenuCreateValidate(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (err error)
- func (f *CFeature) ParseCreateMenuForm(r *http.Request, pg feature.Page, ctx, form context.Context, info *editor.File, ...) (dstUri string, dstInfo *editor.File, dstFS feature.FileSystemFeature, ...)
- func (f *CFeature) ParseDraftToMenu(parsed menu.EditMenu, info *editor.File, r *http.Request) (cleaned menu.Menu, redirect string)
- func (f *CFeature) ParseFormToDraft(list []interface{}, info *editor.File, r *http.Request) (parsed menu.EditMenu, redirect string)
- func (f *CFeature) RenderFileEditor(w http.ResponseWriter, r *http.Request)
- func (f *CFeature) RenderFilePreview(w http.ResponseWriter, r *http.Request)
- func (f *CFeature) ServePreviewEditPage(pg feature.Page, ctx context.Context, w http.ResponseWriter, r *http.Request)
- func (f *CFeature) SetupEditor(es feature.EditorSite)
- func (f *CFeature) SiteFeatureMenu(r *http.Request) (m menu.Menu)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) UpdateFileInfo(info *editor.File, r *http.Request)
- func (f *CFeature) UpdateFileInfoForEditing(info *editor.File, r *http.Request)
- func (f *CFeature) UpdatePathInfo(info *editor.File, r *http.Request)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "fs-editor-menus"
Variables ¶
View Source
var ( DefaultEditorType = "menu" DefaultEditorKey = "menus" )
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
type CFeature struct { fs_editor.CEditorFeature[MakeFeature] }
func (*CFeature) GetAllMenus ¶
func (*CFeature) GetTranslatedLocales ¶
func (*CFeature) GetUntranslatedLocales ¶
func (*CFeature) OpChangeHandler ¶
func (*CFeature) OpChangeValidate ¶
func (*CFeature) OpFileCommitHandler ¶
func (*CFeature) OpFileCommitValidate ¶
func (*CFeature) OpFilePublishHandler ¶
func (*CFeature) OpFilePublishValidate ¶
func (*CFeature) OpMenuCreateHandler ¶
func (*CFeature) OpMenuCreateValidate ¶
func (*CFeature) ParseCreateMenuForm ¶
func (*CFeature) ParseDraftToMenu ¶
func (*CFeature) ParseFormToDraft ¶
func (*CFeature) RenderFileEditor ¶
func (f *CFeature) RenderFileEditor(w http.ResponseWriter, r *http.Request)
func (*CFeature) RenderFilePreview ¶
func (f *CFeature) RenderFilePreview(w http.ResponseWriter, r *http.Request)
func (*CFeature) ServePreviewEditPage ¶
func (*CFeature) SetupEditor ¶
func (f *CFeature) SetupEditor(es feature.EditorSite)
func (*CFeature) SiteFeatureMenu ¶
func (*CFeature) UpdateFileInfo ¶
func (*CFeature) UpdateFileInfoForEditing ¶
type Feature ¶
type Feature interface { feature.EditorFeature }
type MakeFeature ¶
type MakeFeature interface { feature.EditorMakeFeature[MakeFeature] Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.