Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/shell/domain/LayoutState

Pure (DOMAIN-001): persisted-layout validation and the per-project storage key.

Cockpit client (features), v0.8. Source: ui/client/features/shell/domain/LayoutState.ts.

Functions#

layoutStorageKey()#

layoutStorageKey(projectDir): string

Defined in: ui/client/features/shell/domain/LayoutState.ts:9

Storage key for one project's layout (null = project not known yet).

Parameters#

projectDir

string | null

Returns#

string


sanitizeLayout()#

sanitizeLayout(raw): ShellLayoutState

Defined in: ui/client/features/shell/domain/LayoutState.ts:15

Turns whatever was in storage into a valid layout: unknown/garbage input falls back to defaults per pane, sizes are clamped, extra keys dropped.

Parameters#

raw

unknown

Returns#

ShellLayoutState