view

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigsTable

func ConfigsTable(rows []entity.Config, actionBase string, _ string, _ string) templ.Component

ConfigsTable renders all configs as an always-visible block form. editKey and cancelHref are kept for API compatibility but unused.

func ConfigsTableFull added in v0.10.0

func ConfigsTableFull(rows []entity.Config, actionBase string) templ.Component

ConfigsTableFull is the picker-aware entry point. Callers that need picker fields render through here; ConfigsTable above stays unchanged for the legacy two-section layout.

func HasHealthCheck added in v0.10.0

func HasHealthCheck(mod connector.Module) bool

HasHealthCheck reports whether a connector module registered a HealthCheck hook. The detail page renders the "Check Permissions" button only when this is true so connectors without a hook do not expose a no-op action.

func JobStatusBadge

func JobStatusBadge(status entity.JobStatus, enabled bool) templ.Component

func ManagerSPA added in v0.19.0

func ManagerSPA(vm ManagerSPAVM) templ.Component

ManagerSPA renders the manager SPA shell inside the host ui.Layout chrome: the "● <AppName> / Manager" header with the host theme toggle and user menu, then the SPA mount point. The theme + app name are read from ctx by ui.Layout, so the SPA inherits the same theme as every other page with no manual injection. The SPA reads data-base from the #app div and uses it as the prefix for client-side routing.

Types

type CustomDefInfo added in v0.17.0

type CustomDefInfo struct {
	DefID       string
	SourceLabel string // "cURL" | "MCP" | "Manual"
	Dirty       bool
	Disabled    bool
	MCP         bool
	Connected   bool // last tools/list probe OK (MCP only)
	Tested      bool // server has been probed at least once (MCP only)
	OAuth       bool // server uses the oauth scheme (per-instance accounts)
	// OAuthAccount is the viewed instance's resolved identity (email /
	// username from OIDC) — header chip on the detail page; empty when
	// the server yields no identity (chip hidden). OAuthConnected says
	// whether an access token is attached at all — drives the
	// Connect vs Reconnect button independent of identity.
	OAuthAccount   string
	OAuthConnected bool
}

CustomDefInfo decorates the connector list/detail pages when the key belongs to a custom definition: the "Custom · <source>" badge, the edit-definition link, the reload banner (Dirty), the disable toggle, and the delete-definition danger row. MCP defs additionally carry the connection status chip (Connected / Disconnected, from the server row's last probe) and the Re-sync action — cURL/manual defs have no connection to track. Nil on built-in connectors.

type ManagerSPAVM added in v0.19.0

type ManagerSPAVM struct {
	Base     string
	AssetURL string
	User     *entity.User
}

ManagerSPAVM feeds the thin-shell that hosts the manager Svelte SPA inside the standard host chrome. Base is the client-side route prefix written to the #app div's data-base; AssetURL is the hashed Vite bundle path resolved at render via spaAssetURL(). User drives the header user menu (nil = no menu).

Directories

Path Synopsis
templ: version: v0.3.1020
templ: version: v0.3.1020

Jump to

Keyboard shortcuts

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