Documentation ¶
Index ¶
- Variables
- func ActionData(action kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
- func ActionDetails(project kodex.Project, onUpdate func(ChangeInfo, string)) func(c Context, actionId, tab string) Element
- func ActionEditor(action kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
- func ActionTest(actionConfig kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
- func Actions(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func AddBreadcrumb(c Context, title string, path string)
- func AnyDiff(c Context, newValue, oldValue any, path []string) Element
- func AppContent(c Context) Element
- func AppNavbar(c Context) Element
- func AppServer(controller api.Controller) (*gospel.Server, error)
- func AuthorizedContent(c Context) Element
- func Breadcrumbs(c Context) Element
- func ChangeRequestDetails(project kodex.Project) func(c Context, changeRequestId, tab string) Element
- func ChangeRequestList(project kodex.Project) ElementFunction
- func ChangeRequests(project kodex.Project) ElementFunction
- func Changes(changeRequest api.ChangeRequest) Element
- func ConfigActionsList(config kodex.Config, onUpdate func(ChangeInfo, string)) ElementFunction
- func ConfigSettings(config kodex.Config, onUpdate func(ChangeInfo, string)) func(c Context) Element
- func DeleteFieldNotice(c Context, form *forms.Form, field *forms.Field, path []string, ...) Element
- func Discussion(changeRequest api.ChangeRequest) Element
- func Dropdown(c Context, id, icon string, items []Element) Element
- func Field(c Context, form *forms.Form, field *forms.Field, path []string, ...) Element
- func FormEditor(c Context, actionConfig kodex.ActionConfig, onUpdate func(ChangeInfo, string)) Element
- func FormFields(c Context, form *forms.Form, onUpdate func(ChangeInfo, string), path []string) Element
- func FromTo(newValue, oldValue any) Element
- func HumanDuration(d time.Duration) string
- func InMemoryController(c Context) (api.Controller, error)
- func IsActionValidator(c Context, validator *actions.IsAction, onUpdate func(ChangeInfo, string), ...) Element
- func IsListValidator(c Context, validator *forms.IsList, onUpdate func(ChangeInfo, string), ...) Element
- func ItemDiff(c Context, newItem, oldItem *kodex.Item) Element
- func KipMenu(c Context) Element
- func Kodex(c Context) Element
- func Login(c Context) Element
- func Logout(c Context) Element
- func MainContent(c Context) Element
- func MainTitle(c Context) string
- func MakeProject(controller api.Controller, name string, org *api.UserOrganization) (kodex.Project, error)
- func MapDiff(c Context, newMap, oldMap map[string]any, path []string) Element
- func MapValue(c Context, key string, newValue, oldValue any, path []string) Element
- func MenuItems(c Context) Element
- func MergeRequestNotice(c Context, project kodex.Project, changeRequest api.ChangeRequest) *HTMLElement
- func NavItem(c Context) Element
- func Navbar(c Context) Element
- func NewAction(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func NewChangeRequest(project kodex.Project) ElementFunction
- func NewConfigAction(config kodex.Config, onUpdate func(ChangeInfo, string)) ElementFunction
- func NewField(c Context, form *forms.Form, path []string, onUpdate func(ChangeInfo, string)) Element
- func NewProject() ElementFunction
- func NewStream(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func NewStreamConfig(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
- func NewValidator(c Context, create func(validator forms.Validator) int, path []string, ...) Element
- func NotFound(c Context) Element
- func NotFoundRedirect(c Context) Element
- func ProjectDetails(c Context, projectId string, tab string) Element
- func Projects(c Context) Element
- func PseudonymizeValidator(c Context, validator *actions.IsAction, ...) Element
- func Root(controller api.Controller, plugins []WebPlugin) (func(c Context) Element, error)
- func SetApiUser(c gospel.Context, user api.User)
- func SetController(c gospel.Context, controller api.Controller)
- func SetExternalUser(c gospel.Context, user *api.ExternalUser)
- func SetFormAction(c Context, action *actions.FormAction)
- func SetPlugins(c gospel.Context, plugins []WebPlugin)
- func SetUserProvider(c gospel.Context, userProvider api.UserProvider)
- func Settings(project, realProject kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func SettingsTab(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func Sidebar(c Context) Element
- func SliceDiff(c Context, newValue, oldValue []any, path []string) Element
- func StreamConfigDetails(stream kodex.Stream, onUpdate func(ChangeInfo, string)) func(c Context, configId, tab string) Element
- func StreamConfigs(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
- func StreamConfigsList(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
- func StreamDetails(project kodex.Project, onUpdate func(ChangeInfo, string)) func(c Context, streamId, tab string) Element
- func Streams(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func StreamsList(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
- func SwitchValidator(c Context, validator *forms.Switch, onUpdate func(ChangeInfo, string), ...) Element
- func TestWithItem(c Context, actionConfig kodex.ActionConfig, item int) Element
- func TokenLogin(c Context) Element
- func UseApiUser(c gospel.Context) api.User
- func UseController(c gospel.Context) api.Controller
- func UseDefaultOrganization(c gospel.Context) *api.UserOrganization
- func UseExternalUser(c gospel.Context) *api.ExternalUser
- func UseFormAction(c Context) *actions.FormAction
- func UseUserProvider(c gospel.Context) api.UserProvider
- func UserNavbar(c Context) Element
- func ValidatorDetails(c Context, validator forms.Validator, index, length int, ...) Element
- func ValidatorEditor(c Context, update func(validator forms.Validator) error, ...) Element
- func Validators(c Context, validators []forms.Validator, path []string, ...) Element
- func ValidatorsActions(c Context, validators []forms.Validator, ...) Element
- func WithSidebar(sidebar Element, content Element) ElementFunction
- type AppLinkPlugin
- type Breadcrumb
- type ChangeInfo
- type UserProviderPlugin
- type WebPlugin
- type WebPluginMaker
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticAssets embed.FS
View Source
var StaticAssetsPrefix, _ = fs.Sub(StaticAssets, "static/assets")
View Source
var StaticBuild embed.FS
View Source
var StaticBuildPrefix, _ = fs.Sub(StaticBuild, "static/build")
View Source
var StaticFiles = []fs.FS{StaticBuildPrefix, StaticAssetsPrefix}
Functions ¶
func ActionData ¶
func ActionData(action kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
func ActionDetails ¶
func ActionDetails(project kodex.Project, onUpdate func(ChangeInfo, string)) func(c Context, actionId, tab string) Element
func ActionEditor ¶
func ActionEditor(action kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
func ActionTest ¶
func ActionTest(actionConfig kodex.ActionConfig, onUpdate func(ChangeInfo, string)) ElementFunction
func Actions ¶
func Actions(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func AddBreadcrumb ¶
func AppContent ¶
func AppContent(c Context) Element
func AppServer ¶
func AppServer(controller api.Controller) (*gospel.Server, error)
Returns the app server for the Kodex UI
func AuthorizedContent ¶
func AuthorizedContent(c Context) Element
func Breadcrumbs ¶
func Breadcrumbs(c Context) Element
func ChangeRequestDetails ¶
func ChangeRequestList ¶
func ChangeRequests ¶
func Changes ¶
func Changes(changeRequest api.ChangeRequest) Element
func ConfigActionsList ¶
func ConfigActionsList(config kodex.Config, onUpdate func(ChangeInfo, string)) ElementFunction
func ConfigSettings ¶
func ConfigSettings(config kodex.Config, onUpdate func(ChangeInfo, string)) func(c Context) Element
func DeleteFieldNotice ¶
func Discussion ¶
func Discussion(changeRequest api.ChangeRequest) Element
func FormEditor ¶
func FormEditor(c Context, actionConfig kodex.ActionConfig, onUpdate func(ChangeInfo, string)) Element
func FormFields ¶
func FormFields(c Context, form *forms.Form, onUpdate func(ChangeInfo, string), path []string) Element
func HumanDuration ¶
func InMemoryController ¶
func InMemoryController(c Context) (api.Controller, error)
func IsActionValidator ¶ added in v0.1.4
func IsActionValidator(c Context, validator *actions.IsAction, onUpdate func(ChangeInfo, string), path []string) Element
func IsListValidator ¶
func IsListValidator(c Context, validator *forms.IsList, onUpdate func(ChangeInfo, string), path []string) Element
func MainContent ¶
func MainContent(c Context) Element
func MakeProject ¶
func MakeProject(controller api.Controller, name string, org *api.UserOrganization) (kodex.Project, error)
func MergeRequestNotice ¶
func MergeRequestNotice(c Context, project kodex.Project, changeRequest api.ChangeRequest) *HTMLElement
func NewAction ¶
func NewAction(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func NewChangeRequest ¶
func NewConfigAction ¶
func NewConfigAction(config kodex.Config, onUpdate func(ChangeInfo, string)) ElementFunction
func NewField ¶
func NewField(c Context, form *forms.Form, path []string, onUpdate func(ChangeInfo, string)) Element
func NewProject ¶
func NewProject() ElementFunction
func NewStream ¶
func NewStream(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func NewStreamConfig ¶
func NewStreamConfig(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
func NewValidator ¶
func NotFoundRedirect ¶
func NotFoundRedirect(c Context) Element
func ProjectDetails ¶
func PseudonymizeValidator ¶ added in v0.1.4
func PseudonymizeValidator(c Context, validator *actions.IsAction, action *actions.PseudonymizeTransformation, onUpdate func(ChangeInfo, string), path []string) Element
func Root ¶
func Root(controller api.Controller, plugins []WebPlugin) (func(c Context) Element, error)
func SetController ¶
func SetController(c gospel.Context, controller api.Controller)
func SetExternalUser ¶
func SetExternalUser(c gospel.Context, user *api.ExternalUser)
func SetFormAction ¶
func SetFormAction(c Context, action *actions.FormAction)
func SetPlugins ¶
func SetUserProvider ¶
func SetUserProvider(c gospel.Context, userProvider api.UserProvider)
func Settings ¶
func Settings(project, realProject kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func SettingsTab ¶
func SettingsTab(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func StreamConfigDetails ¶
func StreamConfigDetails(stream kodex.Stream, onUpdate func(ChangeInfo, string)) func(c Context, configId, tab string) Element
func StreamConfigs ¶
func StreamConfigs(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
func StreamConfigsList ¶
func StreamConfigsList(stream kodex.Stream, onUpdate func(ChangeInfo, string)) ElementFunction
func StreamDetails ¶
func StreamDetails(project kodex.Project, onUpdate func(ChangeInfo, string)) func(c Context, streamId, tab string) Element
func Streams ¶
func Streams(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func StreamsList ¶
func StreamsList(project kodex.Project, onUpdate func(ChangeInfo, string)) ElementFunction
func SwitchValidator ¶
func SwitchValidator(c Context, validator *forms.Switch, onUpdate func(ChangeInfo, string), path []string) Element
func TestWithItem ¶
func TestWithItem(c Context, actionConfig kodex.ActionConfig, item int) Element
func TokenLogin ¶
func TokenLogin(c Context) Element
func UseController ¶
func UseController(c gospel.Context) api.Controller
func UseDefaultOrganization ¶
func UseDefaultOrganization(c gospel.Context) *api.UserOrganization
func UseExternalUser ¶
func UseExternalUser(c gospel.Context) *api.ExternalUser
func UseFormAction ¶
func UseFormAction(c Context) *actions.FormAction
func UseUserProvider ¶
func UseUserProvider(c gospel.Context) api.UserProvider
func UserNavbar ¶
func UserNavbar(c Context) Element
func ValidatorDetails ¶
func ValidatorEditor ¶
func Validators ¶
func Validators(c Context, validators []forms.Validator, path []string, onUpdate func(ChangeInfo, string)) Element
func ValidatorsActions ¶
func WithSidebar ¶
func WithSidebar(sidebar Element, content Element) ElementFunction
Types ¶
type AppLinkPlugin ¶
type Breadcrumb ¶
type ChangeInfo ¶
type UserProviderPlugin ¶
type UserProviderPlugin interface {
LoginPath() string
}
type WebPlugin ¶
type WebPlugin interface {
MainRoutes(gospel.Context) []*gospel.RouteConfig
}
func GetPlugins ¶
func GetPlugins(controller api.Controller) ([]WebPlugin, error)
Returns all requested web plugins
func UsePlugins ¶
type WebPluginMaker ¶
type WebPluginMaker interface {
InitializeWebPlugin(controller api.Controller) (WebPlugin, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.