Documentation ¶
Index ¶
- type CEditorFeature
- func (f *CEditorFeature[MakeTypedFeature]) Build(b feature.Buildable) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) Construct(this interface{})
- func (f *CEditorFeature[MakeTypedFeature]) DraftExists(info *editor.File) (present bool)
- func (f *CEditorFeature[MakeTypedFeature]) EditorMenu(r *http.Request) (m menu.Menu)
- func (f *CEditorFeature[MakeTypedFeature]) FileExists(info *editor.File) (exists bool)
- func (f *CEditorFeature[MakeTypedFeature]) GetEditorKey() (name string)
- func (f *CEditorFeature[MakeTypedFeature]) GetEditorMenu() (m menu.Menu)
- func (f *CEditorFeature[MakeTypedFeature]) GetEditorPath() (path string)
- func (f *CEditorFeature[MakeTypedFeature]) Init(this interface{})
- func (f *CEditorFeature[MakeTypedFeature]) IsEditorFileLocked(fsid, filePath string) (eid string, locked bool)
- func (f *CEditorFeature[MakeTypedFeature]) ListFileSystemDirectories(r *http.Request, fsid, code, dirs string) (list editor.Files)
- func (f *CEditorFeature[MakeTypedFeature]) ListFileSystemFiles(r *http.Request, fsid, code, dirs string) (list editor.Files)
- func (f *CEditorFeature[MakeTypedFeature]) ListFileSystemLocales(fsid string) (list editor.Files)
- func (f *CEditorFeature[MakeTypedFeature]) ListFileSystems() (list editor.Files)
- func (f *CEditorFeature[MakeTypedFeature]) LockEditorFile(eid, fsid, filePath string) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCancelHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCancelValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCommitHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCommitValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCopyHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileCopyValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileDeleteHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileDeleteValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileMoveHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileMoveValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFilePublishHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFilePublishValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileRetakeHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileTranslateHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileTranslateValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) OpFileUnlockHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpPathDeleteHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (redirect string)
- func (f *CEditorFeature[MakeTypedFeature]) OpPathDeleteValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) ParseCopyMoveTranslateForm(r *http.Request, pg feature.Page, ctx, form beContext.Context, ...) (srcUri, dstUri string, dstInfo *bePkgEditor.File, ...)
- func (f *CEditorFeature[MakeTypedFeature]) ParseEditorUrlParams(r *http.Request) (fsid, code, file string, locale *language.Tag)
- func (f *CEditorFeature[MakeTypedFeature]) PrepareEditPage(pageType, editorType string, r *http.Request) (pg feature.Page, ctx beContext.Context, err error)
- func (f *CEditorFeature[MakeTypedFeature]) PrepareEditableFile(r *http.Request, info *editor.File) (editFile *editor.File)
- func (f *CEditorFeature[MakeTypedFeature]) PrepareRenderFileEditor(w http.ResponseWriter, r *http.Request) (pg feature.Page, ctx context.Context, info *editor.File, currentUser string, ...)
- func (f *CEditorFeature[MakeTypedFeature]) ProcessMountPointFile(r *http.Request, printer *message.Printer, ...) (ef *editor.File, ignored bool)
- func (f *CEditorFeature[MakeTypedFeature]) PublishDraft(info *editor.File) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) ReadDraft(info *editor.File) (contents []byte, err error)
- func (f *CEditorFeature[MakeTypedFeature]) ReadDraftMatter(info *editor.File) (pm *matter.PageMatter, err error)
- func (f *CEditorFeature[MakeTypedFeature]) ReadFile(info *editor.File) (data []byte, err error)
- func (f *CEditorFeature[MakeTypedFeature]) ReceiveFileEditorChanges(w http.ResponseWriter, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) RemoveDirectory(info *editor.File) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) RemoveDraft(info *editor.File) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) RemoveFile(info *editor.File) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) RenderFileBrowser(w http.ResponseWriter, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) RenderFileEditor(w http.ResponseWriter, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) SelfEditor() (self feature.EditorFeature)
- func (f *CEditorFeature[MakeTypedFeature]) ServePreparedEditPage(pg feature.Page, ctx beContext.Context, w http.ResponseWriter, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) SetEditingTags(tags ...feature.Tag) MakeTypedFeature
- func (f *CEditorFeature[MakeTypedFeature]) SetEditorName(name string) MakeTypedFeature
- func (f *CEditorFeature[MakeTypedFeature]) SetEditorType(editorType string) MakeTypedFeature
- func (f *CEditorFeature[MakeTypedFeature]) SetupEditor(es feature.EditorSite)
- func (f *CEditorFeature[MakeTypedFeature]) SetupEditorRoute(r chi.Router)
- func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureInfo(r *http.Request) (info *feature.CSiteFeatureInfo)
- func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureKey() (key string)
- func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureMenu(r *http.Request) (m menu.Menu)
- func (f *CEditorFeature[MakeTypedFeature]) UnLockEditorFile(fsid, filePath string) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) UpdateFileInfo(info *editor.File, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) UpdateFileInfoForEditing(info *editor.File, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) UpdatePathInfo(info *editor.File, r *http.Request)
- func (f *CEditorFeature[MakeTypedFeature]) UserActions() (list feature.Actions)
- func (f *CEditorFeature[MakeTypedFeature]) WriteDraft(info *editor.File, contents []byte) (err error)
- func (f *CEditorFeature[MakeTypedFeature]) WriteFile(info *editor.File, data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CEditorFeature ¶
type CEditorFeature[MakeTypedFeature interface{}] struct { site.CSiteFeature[MakeTypedFeature] EditorKey string EditorType string EditorTags feature.Tags EditingFileSystems []feature.FileSystemFeature EditingFileExtensions []string EditAnyFileExtension bool Editor feature.EditorSite ViewBrowserAction feature.Action ViewFileAction feature.Action CreateFileAction feature.Action UpdateFileAction feature.Action DeleteFileAction feature.Action DefaultOp string FileOperations map[string]*feature.EditorOperation }
func (*CEditorFeature[MakeTypedFeature]) Build ¶
func (f *CEditorFeature[MakeTypedFeature]) Build(b feature.Buildable) (err error)
func (*CEditorFeature[MakeTypedFeature]) Construct ¶
func (f *CEditorFeature[MakeTypedFeature]) Construct(this interface{})
func (*CEditorFeature[MakeTypedFeature]) DraftExists ¶
func (f *CEditorFeature[MakeTypedFeature]) DraftExists(info *editor.File) (present bool)
func (*CEditorFeature[MakeTypedFeature]) EditorMenu ¶
func (f *CEditorFeature[MakeTypedFeature]) EditorMenu(r *http.Request) (m menu.Menu)
func (*CEditorFeature[MakeTypedFeature]) FileExists ¶
func (f *CEditorFeature[MakeTypedFeature]) FileExists(info *editor.File) (exists bool)
func (*CEditorFeature[MakeTypedFeature]) GetEditorKey ¶
func (f *CEditorFeature[MakeTypedFeature]) GetEditorKey() (name string)
func (*CEditorFeature[MakeTypedFeature]) GetEditorMenu ¶
func (f *CEditorFeature[MakeTypedFeature]) GetEditorMenu() (m menu.Menu)
func (*CEditorFeature[MakeTypedFeature]) GetEditorPath ¶
func (f *CEditorFeature[MakeTypedFeature]) GetEditorPath() (path string)
func (*CEditorFeature[MakeTypedFeature]) Init ¶
func (f *CEditorFeature[MakeTypedFeature]) Init(this interface{})
func (*CEditorFeature[MakeTypedFeature]) IsEditorFileLocked ¶
func (f *CEditorFeature[MakeTypedFeature]) IsEditorFileLocked(fsid, filePath string) (eid string, locked bool)
func (*CEditorFeature[MakeTypedFeature]) ListFileSystemDirectories ¶
func (*CEditorFeature[MakeTypedFeature]) ListFileSystemFiles ¶
func (*CEditorFeature[MakeTypedFeature]) ListFileSystemLocales ¶
func (f *CEditorFeature[MakeTypedFeature]) ListFileSystemLocales(fsid string) (list editor.Files)
func (*CEditorFeature[MakeTypedFeature]) ListFileSystems ¶
func (f *CEditorFeature[MakeTypedFeature]) ListFileSystems() (list editor.Files)
func (*CEditorFeature[MakeTypedFeature]) LockEditorFile ¶
func (f *CEditorFeature[MakeTypedFeature]) LockEditorFile(eid, fsid, filePath string) (err error)
func (*CEditorFeature[MakeTypedFeature]) OpFileCancelHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileCancelValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileCommitHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileCommitValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileCopyHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileCopyValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileDeleteHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileDeleteValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileMoveHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileMoveValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFilePublishHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFilePublishValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileRetakeHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileTranslateHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileTranslateValidate ¶
func (*CEditorFeature[MakeTypedFeature]) OpFileUnlockHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpPathDeleteHandler ¶
func (*CEditorFeature[MakeTypedFeature]) OpPathDeleteValidate ¶
func (*CEditorFeature[MakeTypedFeature]) ParseCopyMoveTranslateForm ¶
func (f *CEditorFeature[MakeTypedFeature]) ParseCopyMoveTranslateForm(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *bePkgEditor.File, eid string, redirect *string) (srcUri, dstUri string, dstInfo *bePkgEditor.File, srcFS, dstFS feature.FileSystemFeature, srcMP, dstMP *feature.CMountPoint, srcExists, dstExists bool, stop bool)
func (*CEditorFeature[MakeTypedFeature]) ParseEditorUrlParams ¶
func (*CEditorFeature[MakeTypedFeature]) PrepareEditPage ¶
func (*CEditorFeature[MakeTypedFeature]) PrepareEditableFile ¶
func (*CEditorFeature[MakeTypedFeature]) PrepareRenderFileEditor ¶
func (*CEditorFeature[MakeTypedFeature]) ProcessMountPointFile ¶
func (*CEditorFeature[MakeTypedFeature]) PublishDraft ¶
func (f *CEditorFeature[MakeTypedFeature]) PublishDraft(info *editor.File) (err error)
func (*CEditorFeature[MakeTypedFeature]) ReadDraft ¶
func (f *CEditorFeature[MakeTypedFeature]) ReadDraft(info *editor.File) (contents []byte, err error)
func (*CEditorFeature[MakeTypedFeature]) ReadDraftMatter ¶
func (f *CEditorFeature[MakeTypedFeature]) ReadDraftMatter(info *editor.File) (pm *matter.PageMatter, err error)
func (*CEditorFeature[MakeTypedFeature]) ReadFile ¶
func (f *CEditorFeature[MakeTypedFeature]) ReadFile(info *editor.File) (data []byte, err error)
func (*CEditorFeature[MakeTypedFeature]) ReceiveFileEditorChanges ¶
func (f *CEditorFeature[MakeTypedFeature]) ReceiveFileEditorChanges(w http.ResponseWriter, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) RemoveDirectory ¶
func (f *CEditorFeature[MakeTypedFeature]) RemoveDirectory(info *editor.File) (err error)
func (*CEditorFeature[MakeTypedFeature]) RemoveDraft ¶
func (f *CEditorFeature[MakeTypedFeature]) RemoveDraft(info *editor.File) (err error)
func (*CEditorFeature[MakeTypedFeature]) RemoveFile ¶
func (f *CEditorFeature[MakeTypedFeature]) RemoveFile(info *editor.File) (err error)
func (*CEditorFeature[MakeTypedFeature]) RenderFileBrowser ¶
func (f *CEditorFeature[MakeTypedFeature]) RenderFileBrowser(w http.ResponseWriter, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) RenderFileEditor ¶
func (f *CEditorFeature[MakeTypedFeature]) RenderFileEditor(w http.ResponseWriter, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) SelfEditor ¶
func (f *CEditorFeature[MakeTypedFeature]) SelfEditor() (self feature.EditorFeature)
func (*CEditorFeature[MakeTypedFeature]) ServePreparedEditPage ¶
func (f *CEditorFeature[MakeTypedFeature]) ServePreparedEditPage(pg feature.Page, ctx beContext.Context, w http.ResponseWriter, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) SetEditingTags ¶
func (f *CEditorFeature[MakeTypedFeature]) SetEditingTags(tags ...feature.Tag) MakeTypedFeature
func (*CEditorFeature[MakeTypedFeature]) SetEditorName ¶
func (f *CEditorFeature[MakeTypedFeature]) SetEditorName(name string) MakeTypedFeature
func (*CEditorFeature[MakeTypedFeature]) SetEditorType ¶
func (f *CEditorFeature[MakeTypedFeature]) SetEditorType(editorType string) MakeTypedFeature
func (*CEditorFeature[MakeTypedFeature]) SetupEditor ¶
func (f *CEditorFeature[MakeTypedFeature]) SetupEditor(es feature.EditorSite)
func (*CEditorFeature[MakeTypedFeature]) SetupEditorRoute ¶
func (f *CEditorFeature[MakeTypedFeature]) SetupEditorRoute(r chi.Router)
func (*CEditorFeature[MakeTypedFeature]) SiteFeatureInfo ¶
func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureInfo(r *http.Request) (info *feature.CSiteFeatureInfo)
func (*CEditorFeature[MakeTypedFeature]) SiteFeatureKey ¶
func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureKey() (key string)
func (*CEditorFeature[MakeTypedFeature]) SiteFeatureMenu ¶
func (f *CEditorFeature[MakeTypedFeature]) SiteFeatureMenu(r *http.Request) (m menu.Menu)
func (*CEditorFeature[MakeTypedFeature]) UnLockEditorFile ¶
func (f *CEditorFeature[MakeTypedFeature]) UnLockEditorFile(fsid, filePath string) (err error)
func (*CEditorFeature[MakeTypedFeature]) UpdateFileInfo ¶
func (f *CEditorFeature[MakeTypedFeature]) UpdateFileInfo(info *editor.File, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) UpdateFileInfoForEditing ¶
func (f *CEditorFeature[MakeTypedFeature]) UpdateFileInfoForEditing(info *editor.File, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) UpdatePathInfo ¶
func (f *CEditorFeature[MakeTypedFeature]) UpdatePathInfo(info *editor.File, r *http.Request)
func (*CEditorFeature[MakeTypedFeature]) UserActions ¶
func (f *CEditorFeature[MakeTypedFeature]) UserActions() (list feature.Actions)
func (*CEditorFeature[MakeTypedFeature]) WriteDraft ¶
func (f *CEditorFeature[MakeTypedFeature]) WriteDraft(info *editor.File, contents []byte) (err error)
Click to show internal directories.
Click to hide internal directories.