ui/client/features/clone/workflows/Clone
Cockpit client (features), next. 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"; } | {mode:CloneAuthMode;type:"SET_AUTH"; } | {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:21
CloneFormState#
CloneFormState =
object
Defined in: ui/client/features/clone/workflows/Clone.ts:4
Properties#
authChoice
authChoice:
CloneAuthMode|null
Defined in: ui/client/features/clone/workflows/Clone.ts:14
: how a private repository is authorised. Null = not chosen: the GitHub login when a connection exists, else the pasted token.
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:18
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:17
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:16
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#
constinitialCloneState:CloneFormState
Defined in: ui/client/features/clone/workflows/Clone.ts:33
Functions#
cloneReducer()#
cloneReducer(
state,action):CloneFormState
Defined in: ui/client/features/clone/workflows/Clone.ts:35