admin

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ActionModalPageFilterShow = "modal_block_filter_show"
View Source
const VIEW_CONTENT = "content"
View Source
const VIEW_SETTINGS = "settings"

Variables

This section is empty.

Functions

func NewBlockCreateController

func NewBlockCreateController(ui UiInterface) *blockCreateController

func NewBlockDeleteController

func NewBlockDeleteController(ui UiInterface) *blockDeleteController

func NewBlockManagerController

func NewBlockManagerController(ui UiInterface) *blockManagerController

func NewBlockUpdateController

func NewBlockUpdateController(ui UiInterface) *blockUpdateController

Types

type UiConfig

type UiConfig struct {
	Endpoint string
	Layout   func(w http.ResponseWriter, r *http.Request, webpageTitle, webpageHtml string, options struct {
		Styles     []string
		StyleURLs  []string
		Scripts    []string
		ScriptURLs []string
	}) string
	Logger *slog.Logger
	Store  cmsstore.StoreInterface
}

type UiInterface

type UiInterface interface {
	Endpoint() string
	Layout(w http.ResponseWriter, r *http.Request, webpageTitle, webpageHtml string, options struct {
		Styles     []string
		StyleURLs  []string
		Scripts    []string
		ScriptURLs []string
	}) string
	Logger() *slog.Logger
	// PathBlockCreate() string
	// PathBlockDelete() string
	// PathBlockManager() string
	// PathBlockUpdate() string
	BlockCreate(w http.ResponseWriter, r *http.Request)
	BlockManager(w http.ResponseWriter, r *http.Request)
	BlockDelete(w http.ResponseWriter, r *http.Request)
	BlockUpdate(w http.ResponseWriter, r *http.Request)
	Store() cmsstore.StoreInterface
}

func UI

func UI(config UiConfig) UiInterface

Jump to

Keyboard shortcuts

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