dashboard

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewPaginationMeta = shared.NewPaginationMeta

NewPaginationMeta is a convenience re-export.

Functions

func NewManifest

func NewManifest() *contributor.Manifest

NewManifest builds a contributor.Manifest for the dispatch dashboard.

Types

type Contributor

type Contributor struct {
	// contains filtered or unexported fields
}

Contributor implements the dashboard LocalContributor interface for dispatch.

func New

func New(manifest *contributor.Manifest, eng *engine.Engine, apiBasePath string) *Contributor

New creates a new dispatch dashboard contributor. apiBasePath is the URL prefix for the dispatch API routes (e.g. "/dispatch").

func (*Contributor) Manifest

func (c *Contributor) Manifest() *contributor.Manifest

Manifest returns the contributor manifest.

func (*Contributor) RenderPage

func (c *Contributor) RenderPage(ctx context.Context, route string, params contributor.Params) (templ.Component, error)

RenderPage renders a page for the given route.

func (*Contributor) RenderSettings

func (c *Contributor) RenderSettings(_ context.Context, settingID string) (templ.Component, error)

RenderSettings renders a settings panel by ID.

func (*Contributor) RenderWidget

func (c *Contributor) RenderWidget(ctx context.Context, widgetID string) (templ.Component, error)

RenderWidget renders a widget by ID.

type PaginationMeta

type PaginationMeta = shared.PaginationMeta

PaginationMeta is an alias for shared.PaginationMeta.

Directories

Path Synopsis
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
Package shared provides types used across dashboard sub-packages.
Package shared provides types used across dashboard sub-packages.
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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