@exagone313/dsh-podman 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cordis.patch.yml +3 -1
- package/dist/approval-reasons.d.ts +37 -0
- package/dist/approval-reasons.js +128 -0
- package/dist/approval-template-summary.d.ts +8 -0
- package/dist/approval-template-summary.js +163 -0
- package/dist/approval.d.ts +8 -4
- package/dist/approval.js +104 -10
- package/dist/client/ContainerCard.js +8 -2
- package/dist/client/container-card-controller.d.ts +13 -5
- package/dist/client/container-card-controller.js +60 -24
- package/dist/client/container-card-create-config.d.ts +23 -0
- package/dist/client/container-card-create-config.js +48 -0
- package/dist/client/container-card-create-modal.d.ts +9 -1
- package/dist/client/container-card-create-modal.js +37 -41
- package/dist/client/container-card-create-volume.d.ts +10 -0
- package/dist/client/container-card-create-volume.js +34 -0
- package/dist/client/container-card-dialog-styles.d.ts +4 -2
- package/dist/client/container-card-dialog-styles.js +47 -4
- package/dist/client/container-card-edit-modal.d.ts +5 -1
- package/dist/client/container-card-edit-modal.js +55 -19
- package/dist/client/container-card-editors.d.ts +9 -0
- package/dist/client/container-card-editors.js +300 -43
- package/dist/client/container-card-form.d.ts +2 -1
- package/dist/client/container-card-form.js +26 -8
- package/dist/client/container-card-images.js +9 -31
- package/dist/client/container-card-mount-actions.d.ts +12 -0
- package/dist/client/container-card-mount-actions.js +35 -0
- package/dist/client/container-card-mount-sources.d.ts +34 -0
- package/dist/client/container-card-mount-sources.js +180 -0
- package/dist/client/container-card-names.d.ts +2 -0
- package/dist/client/container-card-names.js +12 -0
- package/dist/client/container-card-row.d.ts +16 -1
- package/dist/client/container-card-row.js +69 -25
- package/dist/client/container-card-secrets.d.ts +2 -0
- package/dist/client/container-card-secrets.js +60 -17
- package/dist/client/container-card-shared.d.ts +17 -9
- package/dist/client/container-card-shared.js +122 -93
- package/dist/client/container-card-styles.d.ts +6 -0
- package/dist/client/container-card-styles.js +22 -0
- package/dist/client/container-card-table-styles.d.ts +2 -1
- package/dist/client/container-card-table-styles.js +14 -0
- package/dist/client/container-card-templates.d.ts +81 -0
- package/dist/client/container-card-templates.js +1004 -0
- package/dist/client/container-card-toast.js +1 -1
- package/dist/client/container-card-volumes.js +6 -20
- package/dist/client/container-card-workspace.d.ts +10 -2
- package/dist/client/container-card-workspace.js +98 -5
- package/dist/client/container-template-ui.d.ts +163 -0
- package/dist/client/container-template-ui.js +579 -0
- package/dist/client/download.d.ts +1 -0
- package/dist/client/download.js +23 -0
- package/dist/client/image-facts.d.ts +18 -0
- package/dist/client/image-facts.js +44 -0
- package/dist/client/index.js +13478 -3438
- package/dist/client/locales.d.ts +1 -1
- package/dist/client/locales.js +120 -0
- package/dist/client/podman-containers.js +47 -18
- package/dist/client/podman-terminal-guide.js +4 -2
- package/dist/client/podman-terminal.js +4 -2
- package/dist/client/template-client.d.ts +9 -0
- package/dist/client/template-client.js +52 -0
- package/dist/client/template-protocol.d.ts +60 -0
- package/dist/client/template-protocol.js +4 -0
- package/dist/client/terminal-errors.d.ts +11 -0
- package/dist/client/terminal-errors.js +26 -0
- package/dist/client/terminal-protocol.d.ts +5 -0
- package/dist/client/terminal-protocol.js +5 -0
- package/dist/client/terminal-styles.d.ts +2 -1
- package/dist/client/terminal-styles.js +9 -1
- package/dist/client/terminal-transport.d.ts +17 -2
- package/dist/client/terminal-transport.js +31 -8
- package/dist/client/tool-presentations.d.ts +32 -0
- package/dist/client/tool-presentations.js +33 -0
- package/dist/client/tool-views.js +17 -7
- package/dist/client/workspace-target.d.ts +54 -0
- package/dist/client/workspace-target.js +86 -0
- package/dist/container-template.d.ts +153 -0
- package/dist/container-template.js +1058 -0
- package/dist/generated/version.d.ts +2 -2
- package/dist/generated/version.js +2 -2
- package/dist/grpc/proto/dshguest/v1/guest.proto +11 -0
- package/dist/guest-rpc.d.ts +1 -0
- package/dist/guest-rpc.js +12 -0
- package/dist/index.js +7 -1
- package/dist/mount-enums.d.ts +2 -0
- package/dist/mount-enums.js +17 -0
- package/dist/mount-order.d.ts +14 -0
- package/dist/mount-order.js +49 -0
- package/dist/project-path.d.ts +14 -0
- package/dist/project-path.js +25 -0
- package/dist/template-apply.d.ts +21 -0
- package/dist/template-apply.js +102 -0
- package/dist/template-files.d.ts +23 -0
- package/dist/template-files.js +186 -0
- package/dist/template-image.d.ts +22 -0
- package/dist/template-image.js +80 -0
- package/dist/template-route.d.ts +9 -0
- package/dist/template-route.js +278 -0
- package/dist/terminal-route.js +49 -7
- package/dist/tool-defs.js +27 -1
- package/dist/tool-handlers.js +69 -1
- package/dist/tool-params.d.ts +38 -0
- package/dist/tool-params.js +30 -0
- package/docs/README.md +4 -3
- package/docs/architecture.md +42 -12
- package/docs/architecture.zh.md +22 -8
- package/docs/configuration.md +19 -20
- package/docs/configuration.zh.md +3 -4
- package/docs/development-prompt.md +49 -45
- package/docs/development-prompt.zh.md +47 -43
- package/docs/development.md +46 -28
- package/docs/development.zh.md +60 -46
- package/docs/uninstall.md +3 -3
- package/docs/uninstall.zh.md +2 -2
- package/docs/usage.md +155 -23
- package/docs/usage.zh.md +104 -14
- package/package.json +6 -5
|
@@ -49,6 +49,12 @@ export const MOUNT_DESTINATION_CLASS = "dsh-podman-mount-destination";
|
|
|
49
49
|
// width, so the actions read as the row's own footer rather than as a stray
|
|
50
50
|
// control beside a field.
|
|
51
51
|
export const MOUNT_ACTIONS_CLASS = "dsh-podman-mount-actions";
|
|
52
|
+
// The class on a field row's error line: a refused reference under the entry it
|
|
53
|
+
// belongs to, or a typed project path the host refused or a browse outside the
|
|
54
|
+
// projects root under the source field. It sets the line's typography and the
|
|
55
|
+
// error state's colour, so a refused value reads as the failure it is in both
|
|
56
|
+
// themes.
|
|
57
|
+
export const MOUNT_ERROR_CLASS = "dsh-podman-mount-error";
|
|
52
58
|
// The class on a group that lists shared rows: a container block's field group,
|
|
53
59
|
// and the editor that changes the same list. The marker is what a list needs —
|
|
54
60
|
// its rows already carry the mount row class wherever they render — for the
|
|
@@ -116,6 +122,14 @@ export const TABLE_STYLES = `
|
|
|
116
122
|
.dsh-podman-mount-row {
|
|
117
123
|
container-type: inline-size;
|
|
118
124
|
}
|
|
125
|
+
/* A mount row's error line sits under the value it belongs to, at the value's
|
|
126
|
+
size, in the error state's colour: the words name the failure and the colour
|
|
127
|
+
repeats it, so it reads in either theme. */
|
|
128
|
+
.dsh-podman-mount-error {
|
|
129
|
+
margin: 0;
|
|
130
|
+
font-size: 13px;
|
|
131
|
+
color: var(--dsw-alias-state-error-primary);
|
|
132
|
+
}
|
|
119
133
|
/* One labelled field of a mount row shares the line while there is room; the
|
|
120
134
|
container query below gives it a line of its own on a narrow row. */
|
|
121
135
|
.dsh-podman-mount-field {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type ContainerConfig } from "./container-card-config.js";
|
|
2
|
+
import type { ContainerView, ImageView, WorkspaceView } from "./container-card-controller.js";
|
|
3
|
+
import type { TemplateApplyView, TemplateEntryView, TemplateInspectionView, TemplatePublishView } from "./template-protocol.js";
|
|
4
|
+
import type { DirectoryPickerFace } from "./directory-picker.js";
|
|
5
|
+
import { type TemplateEditorConfig, type TemplateSource } from "./container-template-ui.js";
|
|
6
|
+
import { type Translate } from "./locales.js";
|
|
7
|
+
import { type ReactNode } from "react";
|
|
8
|
+
export interface TemplateActions {
|
|
9
|
+
listTemplates: (workspace: string, signal?: AbortSignal) => Promise<TemplateEntryView[]>;
|
|
10
|
+
inspectTemplate: (request: {
|
|
11
|
+
op: "inspect";
|
|
12
|
+
workspace: string;
|
|
13
|
+
name: string;
|
|
14
|
+
yaml?: string;
|
|
15
|
+
}, signal?: AbortSignal) => Promise<TemplateInspectionView>;
|
|
16
|
+
buildTemplate: (request: {
|
|
17
|
+
op: "build";
|
|
18
|
+
workspace: string;
|
|
19
|
+
name: string;
|
|
20
|
+
yaml?: string;
|
|
21
|
+
force?: boolean;
|
|
22
|
+
}, signal?: AbortSignal) => Promise<TemplateInspectionView & {
|
|
23
|
+
built: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
applyTemplate: (request: {
|
|
26
|
+
op: "apply";
|
|
27
|
+
workspace: string;
|
|
28
|
+
name: string;
|
|
29
|
+
yaml?: string;
|
|
30
|
+
container?: string;
|
|
31
|
+
}, signal?: AbortSignal) => Promise<TemplateApplyView>;
|
|
32
|
+
publishTemplate: (request: {
|
|
33
|
+
op: "publish";
|
|
34
|
+
workspace: string;
|
|
35
|
+
name: string;
|
|
36
|
+
yaml?: string;
|
|
37
|
+
container: string;
|
|
38
|
+
}, signal?: AbortSignal) => Promise<TemplatePublishView>;
|
|
39
|
+
}
|
|
40
|
+
export interface TemplateSelection {
|
|
41
|
+
name: string;
|
|
42
|
+
yaml: string;
|
|
43
|
+
}
|
|
44
|
+
export interface TemplateResume {
|
|
45
|
+
selection: TemplateSelection;
|
|
46
|
+
draft: TemplateEditorConfig;
|
|
47
|
+
mode: "create" | "replace";
|
|
48
|
+
replaceTarget: string;
|
|
49
|
+
replaceFilter: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function LoadTemplateModal(props: {
|
|
52
|
+
t: Translate;
|
|
53
|
+
locale: string;
|
|
54
|
+
open: boolean;
|
|
55
|
+
workspace: WorkspaceView;
|
|
56
|
+
containers: readonly ContainerView[];
|
|
57
|
+
images: readonly ImageView[];
|
|
58
|
+
volumes: readonly {
|
|
59
|
+
name: string;
|
|
60
|
+
}[];
|
|
61
|
+
secrets: readonly {
|
|
62
|
+
name: string;
|
|
63
|
+
}[];
|
|
64
|
+
defaultEnv: Record<string, string>;
|
|
65
|
+
projectsRoot: string;
|
|
66
|
+
directoryPicker?: DirectoryPickerFace;
|
|
67
|
+
busy: boolean;
|
|
68
|
+
writable: boolean;
|
|
69
|
+
gatewayUnavailable: boolean;
|
|
70
|
+
actions: TemplateActions;
|
|
71
|
+
onBuildImage: (imageId: string, parent: string, packages: string[]) => void;
|
|
72
|
+
onRebuildImage: (imageId: string) => void;
|
|
73
|
+
onRebuildBaseImage: (name: string) => void;
|
|
74
|
+
onPullBaseImage: (name: string) => void;
|
|
75
|
+
onCreateSecret: (name: string, length?: number, charset?: string) => Promise<boolean>;
|
|
76
|
+
createVolume: (name: string) => Promise<boolean>;
|
|
77
|
+
onReload: () => void;
|
|
78
|
+
resume?: TemplateResume | null;
|
|
79
|
+
onClose: () => void;
|
|
80
|
+
onContinue: (mode: "create" | "replace", container: string, config: ContainerConfig, source?: TemplateSource, resume?: TemplateResume) => void;
|
|
81
|
+
}): ReactNode;
|