Line

ui/client/features/pages-editor/workflows/PagesEditor

Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/workflows/PagesEditor.tsx.

Type Aliases#

PagesEditorAction#

PagesEditorAction = { features: string[]; type: "FEATURES_LOADED"; } | { feature: string; type: "SET_FEATURE"; } | { files: string[]; type: "FILES_LOADED"; } | { file: string; type: "OPEN_FILE"; } | { tree: PageTree; type: "TREE_LOADED"; } | { error: string; type: "TREE_ERROR"; } | { nodeId: string; type: "SELECT_NODE"; } | { tree: PageTree; type: "TREE_UPDATED"; }

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:15


PagesEditorState#

PagesEditorState = object

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:4

Properties#

error

error: string | null

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:12

feature

feature: string

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:6

features

features: string[]

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:5

file

file: string

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:9

files

files: string[]

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:7

filesLoading

filesLoading: boolean

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:8

selectedNodeId

selectedNodeId: string | null

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:11

tree

tree: PageTree | null

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:10

Variables#

initialPagesEditorState#

const initialPagesEditorState: PagesEditorState

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:25

Functions#

pagesEditorReducer()#

pagesEditorReducer(state, action): PagesEditorState

Defined in: ui/client/features/pages-editor/workflows/PagesEditor.tsx:36

Parameters#

state

PagesEditorState

action

PagesEditorAction

Returns#

PagesEditorState