Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
- Constants
- func Account2FAPage(user *store.User, data Account2FAData) templ.Component
- func ChannelsTable(sh Shell, channels []kikoclient.Row) templ.Component
- func ConfirmModal(sh Shell) templ.Component
- func DashboardChartJSON(data DashboardData, sh Shell) string
- func DashboardCharts(data DashboardData) templ.Component
- func DashboardPage(user *store.User, data DashboardData) templ.Component
- func KUIVersionLabel() string
- func KikoVersionLabel() string
- func KpiCard(label, value, tag string) templ.Component
- func Layout(sh Shell, title string, user *store.User, active string) templ.Component
- func LocalePicker(sh Shell) templ.Component
- func Login2FAPage(sh Shell, errorMsg string) templ.Component
- func LoginPage(form LoginFormData) templ.Component
- func PasswordField(sh Shell, id, name, autocomplete string, required bool, minlength int) templ.Component
- func PathsTable(sh Shell, paths []kikoclient.PathRow) templ.Component
- func RefsTable(sh Shell, refs []kikoclient.RefRow) templ.Component
- func SetKikoVersion(v string)
- func ShowVersionTags() bool
- func ThemeToggle(sh Shell) templ.Component
- func UserFormPage(user *store.User, form UserFormData) templ.Component
- func UsersPage(sh Shell, user *store.User, users []store.UserWithHosts, flash string) templ.Component
- func VersionTags(sh Shell) templ.Component
- type Account2FAData
- type DashboardData
- type DashboardSummary
- type I18n
- type LocaleLink
- type LoginFormData
- type Shell
- type UserFormData
Constants ¶
View Source
const ( KikoRepoURL = "https://github.com/hrodrig/kiko" KUIRepoURL = "https://github.com/hrodrig/kui" )
Variables ¶
This section is empty.
Functions ¶
func Account2FAPage ¶
func Account2FAPage(user *store.User, data Account2FAData) templ.Component
func ChannelsTable ¶
func ChannelsTable(sh Shell, channels []kikoclient.Row) templ.Component
func ConfirmModal ¶
func DashboardChartJSON ¶
func DashboardChartJSON(data DashboardData, sh Shell) string
func DashboardCharts ¶
func DashboardCharts(data DashboardData) templ.Component
func DashboardPage ¶
func DashboardPage(user *store.User, data DashboardData) templ.Component
func KUIVersionLabel ¶
func KUIVersionLabel() string
func KikoVersionLabel ¶
func KikoVersionLabel() string
func LocalePicker ¶
func LoginPage ¶
func LoginPage(form LoginFormData) templ.Component
func PasswordField ¶
func PathsTable ¶
func PathsTable(sh Shell, paths []kikoclient.PathRow) templ.Component
func SetKikoVersion ¶
func SetKikoVersion(v string)
func ShowVersionTags ¶
func ShowVersionTags() bool
func ThemeToggle ¶
func UserFormPage ¶
func UserFormPage(user *store.User, form UserFormData) templ.Component
func VersionTags ¶
Types ¶
type Account2FAData ¶
type DashboardData ¶
type DashboardData struct {
Shell Shell
Hosts []string
Host string
Range string
Summary *DashboardSummary
Timeline []kikoclient.TimelinePoint
Paths []kikoclient.PathRow
Refs []kikoclient.RefRow
Channels []kikoclient.Row
ChartJSON string
KikoErr string
}
type DashboardSummary ¶
type LoginFormData ¶
type Shell ¶
type Shell struct {
I18n
Links []LocaleLink
JSI18n string
}
Click to show internal directories.
Click to hide internal directories.