bootstrap

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I18nState

type I18nState struct {
	Locale           string   `json:"locale"`
	SupportedLocales []string `json:"supportedLocales"`
	Direction        string   `json:"direction"`
}

type Payload

type Payload struct {
	Route       RouteBootstrap     `json:"route"`
	Preferences PreferencesState   `json:"preferences"`
	I18n        I18nState          `json:"i18n"`
	Theme       ThemeState         `json:"theme"`
	Data        map[string]any     `json:"data"`
	SavedViews  []SavedViewPayload `json:"savedViews"`
	User        *UserSession       `json:"user,omitempty"`
	Workspace   map[string]any     `json:"workspace,omitempty"`
	CSRF        string             `json:"csrf,omitempty"`
}

func (Payload) ToSSRBootstrap

func (parseP Payload) ToSSRBootstrap() ui.SSRBootstrap

type PreferencesState

type PreferencesState struct {
	Theme            string `json:"theme"`
	Locale           string `json:"locale"`
	Density          string `json:"density"`
	DefaultWarehouse string `json:"defaultWarehouse"`
}

type RouteBootstrap

type RouteBootstrap struct {
	Path        string              `json:"path"`
	Query       map[string][]string `json:"query,omitempty"`
	Params      map[string]string   `json:"params,omitempty"`
	Surface     string              `json:"surface"`
	Screen      string              `json:"screen"`
	Title       string              `json:"title"`
	Description string              `json:"description,omitempty"`
	Canonical   string              `json:"canonical,omitempty"`
}

type SavedViewPayload

type SavedViewPayload struct {
	Name          string            `json:"name"`
	Scope         string            `json:"scope"`
	SortKey       string            `json:"sortKey"`
	SortDirection string            `json:"sortDirection"`
	Filters       map[string]string `json:"filters"`
}

type ThemeState

type ThemeState struct {
	Mode                 string `json:"mode"`
	PrefersReducedMotion bool   `json:"prefersReducedMotion"`
}

type UserSession

type UserSession struct {
	ID               string `json:"id"`
	DisplayName      string `json:"displayName"`
	Role             string `json:"role"`
	DefaultWarehouse string `json:"defaultWarehouse"`
}

Jump to

Keyboard shortcuts

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