themes

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "fs-editor-themes"

Variables

View Source
var (
	DefaultEditorType = "theme"
	DefaultEditorKey  = "themes"
)

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	fs_editor.CEditorFeature[MakeFeature]
}

func (*CFeature) DraftExists

func (f *CFeature) DraftExists(info *feature.EditorFile) (present bool)

func (*CFeature) EditorMenu

func (f *CFeature) EditorMenu(r *http.Request) (m menu.Menu)

func (*CFeature) FileExists

func (f *CFeature) FileExists(info *feature.EditorFile) (exists bool)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) IsEditorFileLocked

func (f *CFeature) IsEditorFileLocked(fsid, filePath string) (eid string, locked bool)

func (*CFeature) ListFileSystemDirectories

func (f *CFeature) ListFileSystemDirectories(r *http.Request, fsid, code, dirs string) (list feature.EditorFiles)

func (*CFeature) ListFileSystemFiles

func (f *CFeature) ListFileSystemFiles(r *http.Request, fsid, code, dirs string) (list feature.EditorFiles)

func (*CFeature) ListFileSystemLocales

func (f *CFeature) ListFileSystemLocales(fsid string) (list feature.EditorFiles)

func (*CFeature) ListFileSystems

func (f *CFeature) ListFileSystems() (list feature.EditorFiles)

func (*CFeature) LockEditorFile

func (f *CFeature) LockEditorFile(eid, fsid, filePath string) (err error)

func (*CFeature) Make

func (f *CFeature) Make() (feat Feature)

func (*CFeature) PrepareEditableFile

func (f *CFeature) PrepareEditableFile(r *http.Request, info *feature.EditorFile) (editFile *feature.EditorFile)

func (*CFeature) PrepareRenderFileEditor

func (f *CFeature) PrepareRenderFileEditor(w http.ResponseWriter, r *http.Request) (pg feature.Page, ctx context.Context, info *feature.EditorFile, currentUser string, handled bool)

func (*CFeature) ProcessMountPointFile

func (f *CFeature) ProcessMountPointFile(r *http.Request, printer *message.Printer, eid, mpfBTag, mpfTag, code, dirs, file string, mountPoint *feature.CMountPoint, draftWork bool) (ef *feature.EditorFile, ignored bool)

func (*CFeature) PublishDraft

func (f *CFeature) PublishDraft(info *feature.EditorFile) (err error)

func (*CFeature) ReadDraft

func (f *CFeature) ReadDraft(info *feature.EditorFile) (contents []byte, err error)

func (*CFeature) ReadDraftMatter

func (f *CFeature) ReadDraftMatter(info *feature.EditorFile) (pm *matter.PageMatter, err error)

func (*CFeature) ReadFile

func (f *CFeature) ReadFile(info *feature.EditorFile) (data []byte, err error)

func (*CFeature) ReceiveFileEditorChanges

func (f *CFeature) ReceiveFileEditorChanges(w http.ResponseWriter, r *http.Request)

func (*CFeature) RemoveDirectory

func (f *CFeature) RemoveDirectory(info *feature.EditorFile) (err error)

func (*CFeature) RemoveDraft

func (f *CFeature) RemoveDraft(info *feature.EditorFile) (err error)

func (*CFeature) RemoveFile

func (f *CFeature) RemoveFile(info *feature.EditorFile) (err error)

func (*CFeature) RenderFileBrowser

func (f *CFeature) RenderFileBrowser(w http.ResponseWriter, r *http.Request)

func (*CFeature) RenderFileEditor

func (f *CFeature) RenderFileEditor(w http.ResponseWriter, r *http.Request)

func (*CFeature) SiteFeatureMenu

func (f *CFeature) SiteFeatureMenu(r *http.Request) (m menu.Menu)

func (*CFeature) Startup

func (f *CFeature) Startup(ctx *cli.Context) (err error)

func (*CFeature) UnLockEditorFile

func (f *CFeature) UnLockEditorFile(fsid, filePath string) (err error)

func (*CFeature) WriteDraft

func (f *CFeature) WriteDraft(info *feature.EditorFile, contents []byte) (err error)

func (*CFeature) WriteFile

func (f *CFeature) WriteFile(info *feature.EditorFile, data []byte) (err error)

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

Jump to

Keyboard shortcuts

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