view

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminJobsPage

func AdminJobsPage(rows []JobRow, allTags []*entity.Tag, user *entity.User) templ.Component

func AdminLayout

func AdminLayout(title string, activeTab string, user *entity.User) templ.Component

func ConfigsHubPage

func ConfigsHubPage(user *entity.User) templ.Component

ConfigsHubPage is the landing page for /admin/configs. It's a card grid that points to each subsection (Variables, SSO, …). Add a new card when adding a new config category.

func DashboardPage

func DashboardPage(stats DashboardStats, missing []MissingEntry, user *entity.User) templ.Component

func SSOPage

func SSOPage(rows []entity.SSOProvider, callbackURL string, user *entity.User) templ.Component

SSOPage lists every SSO provider. Each provider is a card with an inline edit form — there's only Google for now, but the UI scales to any providers Bootstrap registers.

func TagRowFragment

func TagRowFragment(t *entity.Tag, editing bool) templ.Component

func TagsPage

func TagsPage(tags []*entity.Tag, user *entity.User, editID string) templ.Component

func ToolRowFragment

func ToolRowFragment(row ToolRow, tagsJSON string) templ.Component

func ToolsPage

func ToolsPage(rows []ToolRow, allTags []*entity.Tag, user *entity.User) templ.Component

func UserRowFragment

func UserRowFragment(row UserRow, tagsJSON string, adminCount int) templ.Component

func UsersPage

func UsersPage(rows []UserRow, allTags []*entity.Tag, user *entity.User, adminCount int) templ.Component

func VariablesPage

func VariablesPage(rows []entity.Config, editKey string, user *entity.User) templ.Component

Types

type DashboardStats

type DashboardStats struct {
	TotalJobs      int
	EnabledJobs    int
	RunningJobs    int
	TotalTools     int
	TotalConfigs   int
	MissingConfigs int
}

type JobRow

type JobRow struct {
	Job         entity.Job
	Disabled    bool
	TagIDs      []string
	ConfigCount int
}

JobRow is the view model for a single job row in the admin jobs table.

type MissingEntry

type MissingEntry struct {
	Scope   string
	Key     string
	Name    string
	Icon    string
	URL     string
	Missing []string
}

type ToolRow

type ToolRow struct {
	Tool        tool.Tool
	Visibility  entity.ToolVisibility
	Disabled    bool
	TagIDs      []string
	ConfigCount int
}

ToolRow is the view model for a single tool row in the admin table.

type UserRow

type UserRow struct {
	User   *entity.User
	TagIDs []string
}

UserRow is the view model for a single user row in the admin table.

Jump to

Keyboard shortcuts

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