themes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 25 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 *editor.File) (present bool)

func (*CFeature) EditorMenu

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

func (*CFeature) FileExists

func (f *CFeature) FileExists(info *editor.File) (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 editor.Files)

func (*CFeature) ListFileSystemFiles

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

func (*CFeature) ListFileSystemLocales

func (f *CFeature) ListFileSystemLocales(fsid string) (list editor.Files)

func (*CFeature) ListFileSystems

func (f *CFeature) ListFileSystems() (list editor.Files)

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 *editor.File) (editFile *editor.File)

func (*CFeature) PrepareRenderFileEditor

func (f *CFeature) PrepareRenderFileEditor(w http.ResponseWriter, r *http.Request) (pg feature.Page, ctx context.Context, info *editor.File, 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 *editor.File, ignored bool)

func (*CFeature) PublishDraft

func (f *CFeature) PublishDraft(info *editor.File) (err error)

func (*CFeature) ReadDraft

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

func (*CFeature) ReadDraftMatter

func (f *CFeature) ReadDraftMatter(info *editor.File) (pm *matter.PageMatter, err error)

func (*CFeature) ReadFile

func (f *CFeature) ReadFile(info *editor.File) (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 *editor.File) (err error)

func (*CFeature) RemoveDraft

func (f *CFeature) RemoveDraft(info *editor.File) (err error)

func (*CFeature) RemoveFile

func (f *CFeature) RemoveFile(info *editor.File) (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 *editor.File, contents []byte) (err error)

func (*CFeature) WriteFile

func (f *CFeature) WriteFile(info *editor.File, 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