Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/project-gate/services/ProjectGate

Cockpit client (features), next. Source: ui/client/features/project-gate/services/ProjectGate.tsx.

Functions#

fetchProjectStatus()#

fetchProjectStatus(): Promise<ProjectStatus>

Defined in: ui/client/features/project-gate/services/ProjectGate.tsx:8

Real network I/O lives here, not in the hook or the page (SERVICE-*) — thin wrappers over ui/server's REST endpoints (see ui/server/src/index.mjs). init() runs construct init against whichever project directory is currently selected.

Returns#

Promise<ProjectStatus>


initProject()#

initProject(): Promise<ProjectStatus & object>

Defined in: ui/client/features/project-gate/services/ProjectGate.tsx:13

Returns#

Promise<ProjectStatus & object>


openProject()#

openProject(projectDir): Promise<OpenProjectResult>

Defined in: ui/client/features/project-gate/services/ProjectGate.tsx:20

: open a folder from the workspace as the project. The server refuses anything outside the workspace (with a stable code); only projectDir is sent, other settings are left alone.

Parameters#

projectDir

string

Returns#

Promise<OpenProjectResult>