dashboard

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package dashboard provides a Forge dashboard contributor for CtrlPlane. It renders pages, widgets, and settings in the Forge dashboard UI using templ components and the ForgeUI component library.

The contributor is automatically discovered by the Forge dashboard extension when the CtrlPlane extension implements DashboardAware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManifest

func NewManifest() *contributor.Manifest

NewManifest builds a contributor.Manifest for the ctrlplane dashboard.

Types

type Contributor

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

Contributor implements the dashboard LocalContributor for CtrlPlane.

func New

func New(manifest *contributor.Manifest, cp *app.CtrlPlane) *Contributor

New creates a new ctrlplane dashboard contributor.

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(ctx 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.

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
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