Documentation
¶
Index ¶
- Constants
- Variables
- type CFeature
- func (f *CFeature) AddProfileImageNames(images ...string) MakeFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) Construct(this interface{})
- func (f *CFeature) DefaultProfileImageNames() MakeFeature
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) ModifyUserRequest(au feature.User, r *http.Request) (modified *http.Request)
- func (f *CFeature) RouteSiteFeature(r chi.Router)
- func (f *CFeature) ServeProfilePage(w http.ResponseWriter, r *http.Request)
- func (f *CFeature) SetOtherProfilePagesEnabled(enabled bool) MakeFeature
- func (f *CFeature) SetProfileImageNames(images ...string) MakeFeature
- func (f *CFeature) SetProfileImagePath(path string) MakeFeature
- func (f *CFeature) SetProfileImagesEnabled(enabled bool) MakeFeature
- func (f *CFeature) SetSelfProfilePageEnabled(enabled bool) MakeFeature
- func (f *CFeature) SetSiteLocaleEnabled(enabled bool) MakeFeature
- func (f *CFeature) SiteFeatureMenu(r *http.Request) (m menu.Menu)
- func (f *CFeature) SiteSettingsFields(r *http.Request) (fields beContext.Fields)
- func (f *CFeature) SiteUserSetupStageHandler(saf feature.SiteAuthFeature, w http.ResponseWriter, r *http.Request)
- func (f *CFeature) SiteUserSetupStageReady(eid string, r *http.Request) (ready bool)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) UserActions() (list feature.Actions)
- type Feature
- type MakeFeature
Constants ¶
View Source
const ( SetupNonceName = "site-profile--nonce" SetupNonceKey = "site-profile--form" )
View Source
const Tag feature.Tag = "site-profile"
Variables ¶
View Source
var ( DefaultProfileImagePath = "/media/profiles" DefaultProfileImageNames = []string{ "enjineer", "spongezero", "spongezero-astronaut", "spongezero-cosmic-without", "spongezero-cosmos-within", "spongezero-on-fire", } )
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
type CFeature struct { site.CSiteFeature[MakeFeature] // contains filtered or unexported fields }
func (*CFeature) AddProfileImageNames ¶
func (f *CFeature) AddProfileImageNames(images ...string) MakeFeature
func (*CFeature) DefaultProfileImageNames ¶
func (f *CFeature) DefaultProfileImageNames() MakeFeature
func (*CFeature) ModifyUserRequest ¶ added in v0.5.1
func (*CFeature) RouteSiteFeature ¶
func (f *CFeature) RouteSiteFeature(r chi.Router)
func (*CFeature) ServeProfilePage ¶
func (f *CFeature) ServeProfilePage(w http.ResponseWriter, r *http.Request)
func (*CFeature) SetOtherProfilePagesEnabled ¶ added in v0.5.1
func (f *CFeature) SetOtherProfilePagesEnabled(enabled bool) MakeFeature
func (*CFeature) SetProfileImageNames ¶
func (f *CFeature) SetProfileImageNames(images ...string) MakeFeature
func (*CFeature) SetProfileImagePath ¶
func (f *CFeature) SetProfileImagePath(path string) MakeFeature
func (*CFeature) SetProfileImagesEnabled ¶ added in v0.5.1
func (f *CFeature) SetProfileImagesEnabled(enabled bool) MakeFeature
func (*CFeature) SetSelfProfilePageEnabled ¶ added in v0.5.1
func (f *CFeature) SetSelfProfilePageEnabled(enabled bool) MakeFeature
func (*CFeature) SetSiteLocaleEnabled ¶ added in v0.5.1
func (f *CFeature) SetSiteLocaleEnabled(enabled bool) MakeFeature
func (*CFeature) SiteFeatureMenu ¶
func (*CFeature) SiteSettingsFields ¶
func (*CFeature) SiteUserSetupStageHandler ¶
func (f *CFeature) SiteUserSetupStageHandler(saf feature.SiteAuthFeature, w http.ResponseWriter, r *http.Request)
func (*CFeature) SiteUserSetupStageReady ¶
func (*CFeature) UserActions ¶
type Feature ¶
type Feature interface { feature.SiteFeature feature.SiteUserSetupStage feature.SiteUserRequestModifier }
type MakeFeature ¶
type MakeFeature interface { feature.SiteMakeFeature[MakeFeature] SetSiteLocaleEnabled(enabled bool) MakeFeature // SetSelfProfilePageEnabled enables (or disables) the site menu item and request handler for the (read-only) profile // pages SetSelfProfilePageEnabled(enabled bool) MakeFeature // SetOtherProfilePagesEnabled enables (or disables) the (read-only) other user profile pages SetOtherProfilePagesEnabled(enabled bool) MakeFeature // SetProfileImagesEnabled enables the profile image aspects of this feature SetProfileImagesEnabled(enabled bool) MakeFeature // SetProfileImagePath enables profile images and specifies the public filesystem path prefix to use SetProfileImagePath(path string) MakeFeature // DefaultProfileImageNames enables profile images and adds the default image URLs to the media profiles list DefaultProfileImageNames() MakeFeature // AddProfileImageNames enables profile images and adds the given image URLs to the media profiles list AddProfileImageNames(names ...string) MakeFeature // SetProfileImageNames enables profile images and replaces the media profiles list with the given image names SetProfileImageNames(names ...string) MakeFeature Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.