views

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppBase added in v0.2.0

func AppBase(dev bool, domain string, app manifest.App) templ.SafeURL

AppBase is appURL exported for the search fan-out, which resolves each result's app-relative URL against its app's base.

func CardGrid

func CardGrid(dev bool, domain string, apps []manifest.App, cards map[string]string) templ.Component

CardGrid is the dashboard's live region (ADR-0022): re-rendered and patched over SSE whenever any app reports a change for this user.

func Dashboard

func Dashboard(user auth.User, dev bool, domain string, apps []manifest.App, cards map[string]string, warnings []string, release version.Info) templ.Component
func Footer(release version.Info) templ.Component

Footer states which Bespoke release this instance runs, and links the newer one when the update check found it (ADR-0034).

func ResultHref added in v0.2.0

func ResultHref(base, rel string) string

ResultHref joins an app's base URL with a search result's app-relative URL; an empty rel means the app's home (spec: docs/specs/app-search.md).

func SearchResults added in v0.2.0

func SearchResults(user auth.User, dev bool, domain string, q string, groups []Group) templ.Component

func Settings

func Settings(user auth.User, name, brief string, saved bool) templ.Component

Types

type Group added in v0.2.0

type Group struct {
	Name    string
	Base    string
	Results []Result
}

type Result added in v0.2.0

type Result struct{ Title, Snippet, URL string }

Jump to

Keyboard shortcuts

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