fs_editor

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 (f *CEditorFeature[MakeTypedFeature]) ListFileSystemDirectories(r *http.Request, fsid, code, dirs string) (list editor.Files)

func (*CEditorFeature[MakeTypedFeature]) ListFileSystemFiles

func (f *CEditorFeature[MakeTypedFeature]) ListFileSystemFiles(r *http.Request, fsid, code, dirs string) (list editor.Files)

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 (f *CEditorFeature[MakeTypedFeature]) OpFileCancelHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileCancelValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileCancelValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileCommitHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileCommitHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileCommitValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileCommitValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileCopyHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileCopyHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileCopyValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileCopyValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileDeleteHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileDeleteHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileDeleteValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileDeleteValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileMoveHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileMoveHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileMoveValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileMoveValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFilePublishHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFilePublishHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFilePublishValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFilePublishValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileRetakeHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileRetakeHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileTranslateHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileTranslateHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpFileTranslateValidate

func (f *CEditorFeature[MakeTypedFeature]) OpFileTranslateValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

func (*CEditorFeature[MakeTypedFeature]) OpFileUnlockHandler

func (f *CEditorFeature[MakeTypedFeature]) OpFileUnlockHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpPathDeleteHandler

func (f *CEditorFeature[MakeTypedFeature]) OpPathDeleteHandler(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (redirect string)

func (*CEditorFeature[MakeTypedFeature]) OpPathDeleteValidate

func (f *CEditorFeature[MakeTypedFeature]) OpPathDeleteValidate(r *http.Request, pg feature.Page, ctx, form beContext.Context, info *editor.File, eid string) (err error)

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 (f *CEditorFeature[MakeTypedFeature]) ParseEditorUrlParams(r *http.Request) (fsid, code, file string, locale *language.Tag)

func (*CEditorFeature[MakeTypedFeature]) PrepareEditPage

func (f *CEditorFeature[MakeTypedFeature]) PrepareEditPage(pageType, editorType string, r *http.Request) (pg feature.Page, ctx beContext.Context, err error)

func (*CEditorFeature[MakeTypedFeature]) PrepareEditableFile

func (f *CEditorFeature[MakeTypedFeature]) PrepareEditableFile(r *http.Request, info *editor.File) (editFile *editor.File)

func (*CEditorFeature[MakeTypedFeature]) PrepareRenderFileEditor

func (f *CEditorFeature[MakeTypedFeature]) PrepareRenderFileEditor(w http.ResponseWriter, r *http.Request) (pg feature.Page, ctx context.Context, info *editor.File, currentUser string, handled bool)

func (*CEditorFeature[MakeTypedFeature]) ProcessMountPointFile

func (f *CEditorFeature[MakeTypedFeature]) ProcessMountPointFile(r *http.Request, printer *message.Printer, eid, mpfBTag, mpfTag, code, dirs, file string, mountPoint *feature.CMountPoint, draftWork bool) (ef *editor.File, ignored bool)

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)

func (*CEditorFeature[MakeTypedFeature]) WriteFile

func (f *CEditorFeature[MakeTypedFeature]) WriteFile(info *editor.File, data []byte) (err error)

Jump to

Keyboard shortcuts

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