Line

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

ui/client/features/shell/domain/ProjectRequirement

Pure (DOMAIN-001): what the Cockpit frame shows for the state of the open project.

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

Variables#

PROJECT_FREE_ROUTES#

const PROJECT_FREE_ROUTES: string[]

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

Routes that do not need a project. Everything else shows the gate.

Functions#

isProjectFreeRoute()#

isProjectFreeRoute(pathname): boolean

Defined in: ui/client/features/shell/domain/ProjectRequirement.ts:11

Parameters#

pathname

string

Returns#

boolean


shellMode()#

shellMode(known, projectDir, pathname): ShellMode

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

Parameters#

known

boolean

projectDir

string | null

pathname

string

Returns#

ShellMode