Line

ui/client/features/clone/workflows/Clone

Cockpit client (features), v0.9. Source: ui/client/features/clone/workflows/Clone.ts.

Type Aliases#

CloneAction#

CloneAction = { input: string; type: "SET_INPUT"; } | { name: string; type: "SET_NAME"; } | { branch: string; type: "SET_BRANCH"; } | { token: string; type: "SET_TOKEN"; } | { type: "START"; } | { job: CloneJob; type: "STARTED"; } | { error: string; type: "REFUSED"; } | { job: CloneJob; type: "JOB"; } | { type: "DISMISS"; }

Defined in: ui/client/features/clone/workflows/Clone.ts:19


CloneFormState#

CloneFormState = object

Defined in: ui/client/features/clone/workflows/Clone.ts:4

Properties#

branch

branch: string | null

Defined in: ui/client/features/clone/workflows/Clone.ts:10

A branch typed by the person; null = not edited (use the one read from the address, if any).

error

error: string | null

Defined in: ui/client/features/clone/workflows/Clone.ts:16

input

input: string

Defined in: ui/client/features/clone/workflows/Clone.ts:6

Whatever was pasted into the one repository field.

job

job: CloneJob | null

Defined in: ui/client/features/clone/workflows/Clone.ts:15

name

name: string

Defined in: ui/client/features/clone/workflows/Clone.ts:8

A folder name typed by the person; '' = use the repository name.

starting

starting: boolean

Defined in: ui/client/features/clone/workflows/Clone.ts:14

Sending the request.

token

token: string

Defined in: ui/client/features/clone/workflows/Clone.ts:12

The one-time access token (private repositories). Held only while the form is open; cleared once sent.

Variables#

initialCloneState#

const initialCloneState: CloneFormState

Defined in: ui/client/features/clone/workflows/Clone.ts:30

Functions#

cloneReducer()#

cloneReducer(state, action): CloneFormState

Defined in: ui/client/features/clone/workflows/Clone.ts:32

Parameters#

state

CloneFormState

action

CloneAction

Returns#

CloneFormState