Line

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

ui/client/features/dev-server/domain/DevServerView

Pure (DOMAIN-001): one status in, one finished view out.

Cockpit client (features), v0.8. Source: ui/client/features/dev-server/domain/DevServerView.ts.

Functions#

buildDevServerView()#

buildDevServerView(status, opts): DevServerView

Defined in: ui/client/features/dev-server/domain/DevServerView.ts:39

What the card says and offers for this status. null (not loaded yet) reads as "not running" with nothing offered.

Parameters#

status

DevServerStatus | null

opts

DevServerViewOptions

Returns#

DevServerView


describeBranch()#

describeBranch(status): BranchIndicator | null

Defined in: ui/client/features/dev-server/domain/DevServerView.ts:11

Which kind of branch is checked out, in words. Null when the project is not a git repository (nothing to say).

Parameters#

status

Pick<DevServerStatus, "branch" | "branchKind"> | null

Returns#

BranchIndicator | null


projectName()#

projectName(root): string

Defined in: ui/client/features/dev-server/domain/DevServerView.ts:19

The last path segment of a project root, for words like "in storefront".

Parameters#

root

string | null

Returns#

string