designlab

package
v0.0.0-...-95891f2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package designlab provides the admin-only "Design Lab" page. It hosts the dynamic-surface demo: a live character sheet assembled by the frame (Chronicle.surface) from a declarative schema, used to exercise the expand/collapse box, overlay, and mini->full launch primitives without touching real campaign data. It also shows the crafting bench kit in build mode, on demo recipes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(adminGroup *echo.Group, h *Handler)

RegisterRoutes adds the Design Lab page to the admin route group.

Types

type BenchSky

type BenchSky struct {
	CampaignID string
	CalendarID string
}

BenchSky names the calendar whose sky the crafting bench's window shows. Empty means the bench's own demo calendar.

func NewBenchSky

func NewBenchSky(campaignID, calendarID string) BenchSky

NewBenchSky keeps the pair only when both are plain ids, since they go into the page's attributes and from there into API paths. The calendar API still decides whether the viewer may read that calendar.

type Handler

type Handler struct{}

Handler serves the Design Lab admin page.

func NewHandler

func NewHandler() *Handler

NewHandler creates a new Design Lab handler.

func (*Handler) DesignLab

func (h *Handler) DesignLab(c *echo.Context) error

DesignLab renders the demo page. ?campaign_id=&calendar_id= point the crafting bench's window at that calendar's sky.

Jump to

Keyboard shortcuts

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