settings

package
v0.5.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SettingPanelNonceName = "site-settings--nonce"
	SettingPanelNonceKey  = "site-settings--form"
)
View Source
const Tag feature.Tag = "site-settings"

Variables

This section is empty.

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	site.CSiteFeature[MakeFeature]
}

func (*CFeature) Build

func (f *CFeature) Build(b feature.Buildable) (err error)

func (*CFeature) Init

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

func (*CFeature) Make

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

func (*CFeature) ReceiveSettingsChanges

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

func (*CFeature) RenderSettingsWith

func (f *CFeature) RenderSettingsWith(matter beContext.Context, w http.ResponseWriter, r *http.Request)

func (*CFeature) RouteSiteFeature

func (f *CFeature) RouteSiteFeature(r chi.Router)

func (*CFeature) ServeSettingsPage

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

func (*CFeature) SiteFeatureMenu

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

func (*CFeature) SiteSettings

func (f *CFeature) SiteSettings(r *http.Request) (settings map[string]beContext.Fields, order []string)

func (*CFeature) Startup

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

func (*CFeature) UserActions

func (f *CFeature) UserActions() (list feature.Actions)

type Feature

type Feature interface {
	feature.SiteFeature
}

type MakeFeature

type MakeFeature interface {
	feature.SiteMakeFeature[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