@burdenoff/microfe-sandbox 2026.1101.2 → 2026.1109.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/dist/dev/Dashboard.d.ts +1 -2
- package/dist/dev/SandboxApp.d.ts +1 -2
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +525 -438
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/sandbox/AdminRoutes.d.ts +1 -2
- package/dist/sandbox/AdminRoutes.js +1 -2
- package/dist/sandbox/AdminRoutes.js.map +1 -1
- package/dist/sandbox/SandboxAdminRoot.d.ts +0 -2
- package/dist/sandbox/SandboxAdminRoot.js +13 -10
- package/dist/sandbox/SandboxAdminRoot.js.map +1 -1
- package/dist/sandbox/SandboxRoot.d.ts +0 -2
- package/dist/sandbox/SandboxRoot.js +13 -10
- package/dist/sandbox/SandboxRoot.js.map +1 -1
- package/dist/sandbox/UserRoutes.d.ts +1 -2
- package/dist/sandbox/UserRoutes.js +1 -2
- package/dist/sandbox/UserRoutes.js.map +1 -1
- package/dist/sandbox/components/ContainerImagePicker.d.ts +1 -2
- package/dist/sandbox/components/CountdownTimer.d.ts +1 -2
- package/dist/sandbox/components/CountdownTimer.js +1 -2
- package/dist/sandbox/components/CountdownTimer.js.map +1 -1
- package/dist/sandbox/components/ExportSandboxesDialog.d.ts +1 -2
- package/dist/sandbox/components/ExportSandboxesDialog.js +22 -23
- package/dist/sandbox/components/ExportSandboxesDialog.js.map +1 -1
- package/dist/sandbox/components/ExtendTTLModal.d.ts +1 -2
- package/dist/sandbox/components/ExtendTTLModal.js +1 -2
- package/dist/sandbox/components/ExtendTTLModal.js.map +1 -1
- package/dist/sandbox/components/FilesFolderPicker.d.ts +1 -2
- package/dist/sandbox/components/FilesFolderPicker.js +1 -2
- package/dist/sandbox/components/FilesFolderPicker.js.map +1 -1
- package/dist/sandbox/components/PageLayout.d.ts +2 -4
- package/dist/sandbox/components/PageLayout.js +1 -2
- package/dist/sandbox/components/PageLayout.js.map +1 -1
- package/dist/sandbox/components/ResourceDisplay.d.ts +0 -2
- package/dist/sandbox/components/ResourceDisplay.js +1 -2
- package/dist/sandbox/components/ResourceDisplay.js.map +1 -1
- package/dist/sandbox/components/RouteUtils.d.ts +2 -4
- package/dist/sandbox/components/RouteUtils.js +2 -7
- package/dist/sandbox/components/RouteUtils.js.map +1 -1
- package/dist/sandbox/components/SandboxActivityTab.d.ts +1 -2
- package/dist/sandbox/components/SandboxActivityTab.js +4 -3
- package/dist/sandbox/components/SandboxActivityTab.js.map +1 -1
- package/dist/sandbox/components/SandboxAgentAppPanel.d.ts +1 -2
- package/dist/sandbox/components/SandboxAgentAppPanel.js +1 -2
- package/dist/sandbox/components/SandboxAgentAppPanel.js.map +1 -1
- package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts +0 -1
- package/dist/sandbox/components/SandboxScriptRunnerPanel.js +2 -3
- package/dist/sandbox/components/SandboxScriptRunnerPanel.js.map +1 -1
- package/dist/sandbox/components/SandboxTypeIcon.d.ts +0 -2
- package/dist/sandbox/components/SandboxTypeIcon.js +1 -2
- package/dist/sandbox/components/SandboxTypeIcon.js.map +1 -1
- package/dist/sandbox/components/SandboxTypeSelector.d.ts +1 -2
- package/dist/sandbox/components/SandboxUsageBanner.d.ts +1 -2
- package/dist/sandbox/components/SandboxUsageBanner.js +1 -2
- package/dist/sandbox/components/SandboxUsageBanner.js.map +1 -1
- package/dist/sandbox/components/StatusBadge.d.ts +0 -2
- package/dist/sandbox/components/StatusBadge.js +1 -2
- package/dist/sandbox/components/StatusBadge.js.map +1 -1
- package/dist/sandbox/components/TagsInput.d.ts +1 -2
- package/dist/sandbox/components/TagsInput.js +1 -2
- package/dist/sandbox/components/TagsInput.js.map +1 -1
- package/dist/sandbox/components/ui.d.ts +0 -1
- package/dist/sandbox/components/ui.js +1 -2
- package/dist/sandbox/hooks/useIsSuperAdmin.d.ts +0 -1
- package/dist/sandbox/hooks/useRemainingSeconds.d.ts +0 -1
- package/dist/sandbox/hooks/useRemainingSeconds.js +1 -2
- package/dist/sandbox/hooks/useRemainingSeconds.js.map +1 -1
- package/dist/sandbox/hooks/useTr.d.ts +0 -1
- package/dist/sandbox/hooks/useTr.js +1 -2
- package/dist/sandbox/hooks/useTr.js.map +1 -1
- package/dist/sandbox/index.d.ts +0 -1
- package/dist/sandbox/index.js +6 -5
- package/dist/sandbox/pages/AdminLandingPage.d.ts +1 -2
- package/dist/sandbox/pages/AdminLandingPage.js +7 -8
- package/dist/sandbox/pages/AdminLandingPage.js.map +1 -1
- package/dist/sandbox/pages/AdminPage.d.ts +1 -2
- package/dist/sandbox/pages/AdminPage.js +87 -88
- package/dist/sandbox/pages/AdminPage.js.map +1 -1
- package/dist/sandbox/pages/AdminTemplatesPage.d.ts +1 -2
- package/dist/sandbox/pages/AdminTemplatesPage.js +59 -60
- package/dist/sandbox/pages/AdminTemplatesPage.js.map +1 -1
- package/dist/sandbox/pages/SandboxCreatePage.d.ts +1 -2
- package/dist/sandbox/pages/SandboxCreatePage.js +269 -265
- package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -1
- package/dist/sandbox/pages/SandboxDetailPage.d.ts +1 -2
- package/dist/sandbox/pages/SandboxDetailPage.js +453 -454
- package/dist/sandbox/pages/SandboxDetailPage.js.map +1 -1
- package/dist/sandbox/pages/SandboxListPage.d.ts +1 -2
- package/dist/sandbox/pages/SandboxListPage.js +319 -320
- package/dist/sandbox/pages/SandboxListPage.js.map +1 -1
- package/dist/sandbox/pages/TemplateDetailPage.d.ts +1 -2
- package/dist/sandbox/pages/TemplateDetailPage.js +326 -328
- package/dist/sandbox/pages/TemplateDetailPage.js.map +1 -1
- package/dist/sandbox/pages/UserLandingPage.d.ts +1 -2
- package/dist/sandbox/pages/UserLandingPage.js +10 -11
- package/dist/sandbox/pages/UserLandingPage.js.map +1 -1
- package/dist/sandbox/pages/UserTemplatesPage.d.ts +1 -2
- package/dist/sandbox/pages/UserTemplatesPage.js +47 -48
- package/dist/sandbox/pages/UserTemplatesPage.js.map +1 -1
- package/dist/sandbox/providers/SandboxProvider.d.ts +0 -2
- package/dist/sandbox/providers/SandboxProvider.js +5 -12
- package/dist/sandbox/providers/SandboxProvider.js.map +1 -1
- package/dist/sandbox/store/sandboxStore.d.ts +0 -2
- package/dist/sandbox/store/sandboxStore.js +1 -2
- package/dist/sandbox/store/sandboxStore.js.map +1 -1
- package/dist/sandbox/types/index.d.ts +0 -1
- package/dist/sandbox/utils/cn.d.ts +0 -2
- package/dist/sandbox/utils/cn.js +2 -3
- package/dist/sandbox/utils/cn.js.map +1 -1
- package/dist/sandbox/utils/formatters.d.ts +0 -1
- package/dist/sandbox/utils/formatters.js +1 -2
- package/dist/sandbox/utils/formatters.js.map +1 -1
- package/dist/sandbox/utils/i18n.d.ts +0 -2
- package/dist/sandbox/utils/i18n.js +1 -2
- package/dist/sandbox/utils/i18n.js.map +1 -1
- package/dist/sandbox/utils/imageRegistry.d.ts +0 -1
- package/dist/sandbox/utils/imageRegistry.js +1 -2
- package/dist/sandbox/utils/imageRegistry.js.map +1 -1
- package/dist/sandbox/utils/navigation.d.ts +0 -1
- package/dist/sandbox/utils/navigation.js +1 -2
- package/dist/sandbox/utils/navigation.js.map +1 -1
- package/dist/sandbox/utils/sandboxEvents.d.ts +0 -2
- package/dist/sandbox/utils/sandboxEvents.js +1 -2
- package/dist/sandbox/utils/sandboxEvents.js.map +1 -1
- package/dist/translations/en.d.ts +0 -1
- package/dist/translations/en.js +1 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/translations/hi.d.ts +0 -2
- package/dist/translations/hi.js +3 -4
- package/dist/translations/hi.js.map +1 -1
- package/dist/translations/index.d.ts +0 -1
- package/dist/translations/index.js +4 -3
- package/dist/translations/ta.d.ts +0 -2
- package/dist/translations/ta.js +3 -4
- package/dist/translations/ta.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +60 -46
- package/dist/dev/Dashboard.d.ts.map +0 -1
- package/dist/dev/SandboxApp.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/sandbox/AdminRoutes.d.ts.map +0 -1
- package/dist/sandbox/SandboxAdminRoot.d.ts.map +0 -1
- package/dist/sandbox/SandboxRoot.d.ts.map +0 -1
- package/dist/sandbox/UserRoutes.d.ts.map +0 -1
- package/dist/sandbox/components/ContainerImagePicker.d.ts.map +0 -1
- package/dist/sandbox/components/CountdownTimer.d.ts.map +0 -1
- package/dist/sandbox/components/ExportSandboxesDialog.d.ts.map +0 -1
- package/dist/sandbox/components/ExtendTTLModal.d.ts.map +0 -1
- package/dist/sandbox/components/FilesFolderPicker.d.ts.map +0 -1
- package/dist/sandbox/components/PageLayout.d.ts.map +0 -1
- package/dist/sandbox/components/ResourceDisplay.d.ts.map +0 -1
- package/dist/sandbox/components/RouteUtils.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxActivityTab.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxTypeSelector.d.ts.map +0 -1
- package/dist/sandbox/components/SandboxUsageBanner.d.ts.map +0 -1
- package/dist/sandbox/components/StatusBadge.d.ts.map +0 -1
- package/dist/sandbox/components/TagsInput.d.ts.map +0 -1
- package/dist/sandbox/components/ui.d.ts.map +0 -1
- package/dist/sandbox/hooks/useIsSuperAdmin.d.ts.map +0 -1
- package/dist/sandbox/hooks/useRemainingSeconds.d.ts.map +0 -1
- package/dist/sandbox/hooks/useTr.d.ts.map +0 -1
- package/dist/sandbox/index.d.ts.map +0 -1
- package/dist/sandbox/pages/AdminLandingPage.d.ts.map +0 -1
- package/dist/sandbox/pages/AdminPage.d.ts.map +0 -1
- package/dist/sandbox/pages/AdminTemplatesPage.d.ts.map +0 -1
- package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +0 -1
- package/dist/sandbox/pages/SandboxDetailPage.d.ts.map +0 -1
- package/dist/sandbox/pages/SandboxListPage.d.ts.map +0 -1
- package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +0 -1
- package/dist/sandbox/pages/UserLandingPage.d.ts.map +0 -1
- package/dist/sandbox/pages/UserTemplatesPage.d.ts.map +0 -1
- package/dist/sandbox/providers/SandboxProvider.d.ts.map +0 -1
- package/dist/sandbox/store/sandboxStore.d.ts.map +0 -1
- package/dist/sandbox/types/index.d.ts.map +0 -1
- package/dist/sandbox/utils/cn.d.ts.map +0 -1
- package/dist/sandbox/utils/formatters.d.ts.map +0 -1
- package/dist/sandbox/utils/i18n.d.ts.map +0 -1
- package/dist/sandbox/utils/imageRegistry.d.ts.map +0 -1
- package/dist/sandbox/utils/navigation.d.ts.map +0 -1
- package/dist/sandbox/utils/sandboxEvents.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/translations/hi.d.ts.map +0 -1
- package/dist/translations/index.d.ts.map +0 -1
- package/dist/translations/ta.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { AlertDialog as e, AlertDialogAction as t, AlertDialogCancel as n, AlertDialogContent as r, AlertDialogDescription as i, AlertDialogFooter as ee, AlertDialogHeader as te, AlertDialogTitle as ne, Badge as a, Button as o, Card as s, CardContent as c, EmphasisPanel as l } from "../components/ui.js";
|
|
2
|
+
import { useSandbox as u } from "../providers/SandboxProvider.js";
|
|
3
|
+
import { PageLayout as re } from "../components/PageLayout.js";
|
|
4
|
+
import { TagsInput as ie } from "../components/TagsInput.js";
|
|
5
|
+
import { FilesFolderPicker as ae } from "../components/FilesFolderPicker.js";
|
|
6
|
+
import { useSandboxEvents as oe } from "../utils/sandboxEvents.js";
|
|
7
|
+
import { tWithFallback as d } from "../utils/i18n.js";
|
|
8
|
+
import { BURDENOFF_REGISTRY as se, DEFAULT_SANDBOX_AGENT_IMAGE as f, stripBurdenoffRegistry as p, withBurdenoffRegistry as m } from "../utils/imageRegistry.js";
|
|
9
|
+
import { useCreateSandboxMutation as h, useListSandboxTemplatesQuery as g } from "../../generated/wspace-operations.js";
|
|
10
10
|
import { useState as _ } from "react";
|
|
11
11
|
import { AlertCircle as v, ArrowLeft as ce, Box as y, CheckCircle2 as le, Container as ue, Cpu as b, Database as de, HelpCircle as fe, Info as pe, Loader2 as me, MemoryStick as x, Plus as he, Save as ge, Settings as S, Timer as _e, Trash2 as ve, X as C } from "lucide-react";
|
|
12
12
|
import { isQuotaExhaustedError as w } from "@burdenoff/fe-libs/shared/utils";
|
|
13
13
|
import { useI18n as ye } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
14
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
15
15
|
import { OptionalFields as be, PagePurpose as xe } from "@burdenoff/fe-libs/ui";
|
|
16
|
-
|
|
16
|
+
// src/sandbox/pages/SandboxCreatePage.tsx
|
|
17
17
|
var D = 0;
|
|
18
18
|
function O() {
|
|
19
19
|
return D += 1, `row-${D}-${Date.now()}`;
|
|
@@ -46,9 +46,9 @@ function A() {
|
|
|
46
46
|
limitsMemory: ""
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
var j = typeof window < "u" && (window.location.hostname.includes("alpha") || window.location.hostname.endsWith(".local.burdenoff.com") || window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1"), M =
|
|
49
|
+
var j = typeof window < "u" && (window.location.hostname.includes("alpha") || window.location.hostname.endsWith(".local.burdenoff.com") || window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1"), M = p(f), N = j ? "https://alphagraphql.burdenoff.com/global/graphql" : "https://graphql.burdenoff.com/global/graphql", P = j ? "https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql" : "https://graphqlworkspaces.burdenoff.com/workspaces/graphql";
|
|
50
50
|
function F() {
|
|
51
|
-
let { basePath:
|
|
51
|
+
let { basePath: f = "/", navigate: D, workspaceId: j } = u(), F = oe(), { t: I } = ye(), [L, Se] = _([]), [R, z] = _({
|
|
52
52
|
name: "",
|
|
53
53
|
description: "",
|
|
54
54
|
template: "MISC_SHELL",
|
|
@@ -101,20 +101,20 @@ function F() {
|
|
|
101
101
|
children: [e, /* @__PURE__ */ T("button", {
|
|
102
102
|
type: "button",
|
|
103
103
|
onClick: () => n(!1),
|
|
104
|
-
"aria-label":
|
|
104
|
+
"aria-label": d(I, "sandbox.create.helpTip.closeAriaLabel", "Close help tip"),
|
|
105
105
|
className: "absolute top-1 right-1 text-text-tertiary hover:text-text-secondary",
|
|
106
106
|
children: /* @__PURE__ */ T(C, { size: 12 })
|
|
107
107
|
})]
|
|
108
108
|
})]
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
let { data: we } =
|
|
111
|
+
let { data: we } = g({
|
|
112
112
|
variables: {
|
|
113
113
|
context: { workspaceId: j },
|
|
114
114
|
template: R.template
|
|
115
115
|
},
|
|
116
116
|
skip: !j
|
|
117
|
-
}), [Te] =
|
|
117
|
+
}), [Te] = h(), J = we?.listSandboxTemplates?.items ?? [], Y = (e, t) => {
|
|
118
118
|
U({
|
|
119
119
|
type: e,
|
|
120
120
|
message: t
|
|
@@ -228,94 +228,93 @@ function F() {
|
|
|
228
228
|
}));
|
|
229
229
|
}, Me = () => {
|
|
230
230
|
let e = {};
|
|
231
|
-
return R.name.trim() || (e.name =
|
|
232
|
-
t.name.trim() || (e[`container_${n}_name`] =
|
|
231
|
+
return R.name.trim() || (e.name = d(I, "sandbox.create.errors.nameRequired", "Name is required")), R.cpuRequest.trim() || (e.cpuRequest = d(I, "sandbox.create.errors.cpuRequestRequired", "CPU request is required")), R.cpuLimit.trim() || (e.cpuLimit = d(I, "sandbox.create.errors.cpuLimitRequired", "CPU limit is required")), R.memoryRequest.trim() || (e.memoryRequest = d(I, "sandbox.create.errors.memoryRequestRequired", "Memory request is required")), R.memoryLimit.trim() || (e.memoryLimit = d(I, "sandbox.create.errors.memoryLimitRequired", "Memory limit is required")), (R.ttlSeconds < 600 || R.ttlSeconds > 86400) && (e.ttlSeconds = d(I, "sandbox.create.errors.ttlRange", "TTL must be 10m-24h")), R.containers.length === 0 && (e.containers = d(I, "sandbox.create.errors.containersRequired", "At least one container is required")), R.containers.forEach((t, n) => {
|
|
232
|
+
t.name.trim() || (e[`container_${n}_name`] = d(I, "sandbox.create.errors.containerNameRequired", "Container name is required")), t.image.trim() || (e[`container_${n}_image`] = d(I, "sandbox.create.errors.containerImageRequired", "Container image is required"));
|
|
233
233
|
}), V(e), Object.keys(e).length === 0;
|
|
234
234
|
}, Ne = async (e) => {
|
|
235
|
-
if (e.preventDefault(), !Me())
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
235
|
+
if (e.preventDefault(), !Me()) Y("error", d(I, "sandbox.create.notifications.fixErrors", "Please fix the form errors"));
|
|
236
|
+
else {
|
|
237
|
+
G(!0);
|
|
238
|
+
try {
|
|
239
|
+
let e = R.containers.map((e) => {
|
|
240
|
+
let t = (e._registryType || "burdenoff") === "burdenoff" ? m(e.image) : e.image;
|
|
241
|
+
return {
|
|
242
|
+
name: e.name,
|
|
243
|
+
image: t,
|
|
244
|
+
ports: e.ports.length > 0 ? e.ports.map((e) => ({
|
|
245
|
+
containerPort: e.containerPort,
|
|
246
|
+
name: e.name || void 0
|
|
247
|
+
})) : void 0,
|
|
248
|
+
env: e.env.length > 0 ? e.env.filter((e) => e.name.trim()) : void 0,
|
|
249
|
+
resources: e.requestsCpu || e.requestsMemory || e.limitsCpu || e.limitsMemory ? {
|
|
250
|
+
requestsCpu: e.requestsCpu || void 0,
|
|
251
|
+
requestsMemory: e.requestsMemory || void 0,
|
|
252
|
+
limitsCpu: e.limitsCpu || void 0,
|
|
253
|
+
limitsMemory: e.limitsMemory || void 0
|
|
254
|
+
} : void 0
|
|
255
|
+
};
|
|
256
|
+
}), t = await Te({ variables: { input: {
|
|
257
|
+
context: { workspaceId: j },
|
|
258
|
+
name: R.name,
|
|
259
|
+
description: R.description || void 0,
|
|
260
|
+
template: R.template,
|
|
261
|
+
mode: R.mode,
|
|
262
|
+
containers: e,
|
|
263
|
+
resources: {
|
|
264
|
+
cpuRequest: R.cpuRequest,
|
|
265
|
+
cpuLimit: R.cpuLimit,
|
|
266
|
+
memoryRequest: R.memoryRequest,
|
|
267
|
+
memoryLimit: R.memoryLimit
|
|
268
|
+
},
|
|
269
|
+
storage: {
|
|
270
|
+
mode: R.storageMode,
|
|
271
|
+
sizeGi: R.storageMode === "NONE" ? void 0 : R.storageSizeGi,
|
|
272
|
+
mountPath: R.storageMode === "NONE" ? void 0 : R.storageMountPath,
|
|
273
|
+
retainOnDelete: R.storageMode === "PERSISTENT" && R.storageRetainOnDelete,
|
|
274
|
+
filesFolderId: R.storageMode !== "NONE" && R.filesFolderId ? R.filesFolderId : void 0
|
|
275
|
+
},
|
|
276
|
+
ttlSeconds: R.ttlSeconds,
|
|
277
|
+
metadata: {
|
|
278
|
+
globalGatewayUrl: R.globalGatewayUrl || void 0,
|
|
279
|
+
workspaceGatewayUrl: R.workspaceGatewayUrl || void 0,
|
|
280
|
+
tags: L.length ? L : void 0
|
|
281
|
+
}
|
|
282
|
+
} } });
|
|
283
|
+
if (t.error) {
|
|
284
|
+
if (w(t.error)) {
|
|
285
|
+
K(!0);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
Y("error", d(I, "sandbox.create.notifications.createFailed", "Failed to create sandbox") + `: ${t.error.message}`);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
let n = t.data?.createSandbox;
|
|
292
|
+
if (!n) {
|
|
293
|
+
Y("error", d(I, "sandbox.create.notifications.createFailed", "Failed to create sandbox"));
|
|
294
|
+
return;
|
|
283
295
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
296
|
+
F.sandboxCreated({
|
|
297
|
+
sandboxId: n.id,
|
|
298
|
+
kind: n.kind?.toLowerCase?.() === "internal" ? "internal" : "user",
|
|
299
|
+
source: n.source ?? "manual"
|
|
300
|
+
}), Y("success", d(I, "sandbox.create.notifications.createSuccess", "Sandbox created successfully! Provisioning..."));
|
|
301
|
+
let r = `${f.replace(/\/$/, "")}/${n.id}`;
|
|
302
|
+
setTimeout(() => D?.(r), 1500);
|
|
303
|
+
} catch (e) {
|
|
304
|
+
if (w(e)) {
|
|
287
305
|
K(!0);
|
|
288
306
|
return;
|
|
289
307
|
}
|
|
290
|
-
Y("error",
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
let n = t.data?.createSandbox;
|
|
294
|
-
if (!n) {
|
|
295
|
-
Y("error", p(I, "sandbox.create.notifications.createFailed", "Failed to create sandbox"));
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
F.sandboxCreated({
|
|
299
|
-
sandboxId: n.id,
|
|
300
|
-
kind: n.kind?.toLowerCase?.() === "internal" ? "internal" : "user",
|
|
301
|
-
source: n.source ?? "manual"
|
|
302
|
-
}), Y("success", p(I, "sandbox.create.notifications.createSuccess", "Sandbox created successfully! Provisioning..."));
|
|
303
|
-
let r = `${m.replace(/\/$/, "")}/${n.id}`;
|
|
304
|
-
setTimeout(() => D?.(r), 1500);
|
|
305
|
-
} catch (e) {
|
|
306
|
-
if (w(e)) {
|
|
307
|
-
K(!0);
|
|
308
|
-
return;
|
|
308
|
+
Y("error", d(I, "sandbox.create.notifications.createFailed", "Failed to create sandbox"));
|
|
309
|
+
} finally {
|
|
310
|
+
G(!1);
|
|
309
311
|
}
|
|
310
|
-
Y("error", p(I, "sandbox.create.notifications.createFailed", "Failed to create sandbox"));
|
|
311
|
-
} finally {
|
|
312
|
-
G(!1);
|
|
313
312
|
}
|
|
314
313
|
}, $ = (e) => {
|
|
315
314
|
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60);
|
|
316
315
|
return t > 0 && n > 0 ? `${t}h ${n}m` : t > 0 ? `${t}h` : `${n}m`;
|
|
317
316
|
};
|
|
318
|
-
return /* @__PURE__ */ E(
|
|
317
|
+
return /* @__PURE__ */ E(re, {
|
|
319
318
|
showHeader: !1,
|
|
320
319
|
children: [
|
|
321
320
|
H && /* @__PURE__ */ E("div", {
|
|
@@ -329,21 +328,21 @@ function F() {
|
|
|
329
328
|
/* @__PURE__ */ T("button", {
|
|
330
329
|
type: "button",
|
|
331
330
|
onClick: () => U(null),
|
|
332
|
-
"aria-label":
|
|
331
|
+
"aria-label": d(I, "sandbox.create.notification.dismiss", "Dismiss notification"),
|
|
333
332
|
className: "ml-2 p-1 rounded-md hover:bg-accent",
|
|
334
333
|
children: /* @__PURE__ */ T(C, { size: 16 })
|
|
335
334
|
})
|
|
336
335
|
]
|
|
337
336
|
}),
|
|
338
|
-
/* @__PURE__ */ E(
|
|
337
|
+
/* @__PURE__ */ E(l, {
|
|
339
338
|
className: "overflow-hidden bg-hero-mesh",
|
|
340
339
|
children: [/* @__PURE__ */ E("div", {
|
|
341
340
|
className: "flex items-center gap-4",
|
|
342
341
|
children: [/* @__PURE__ */ T("button", {
|
|
343
342
|
type: "button",
|
|
344
|
-
onClick: () => D?.(
|
|
343
|
+
onClick: () => D?.(f),
|
|
345
344
|
className: "flex size-11 flex-shrink-0 items-center justify-center rounded-lg hover:bg-bg-sunken/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-border",
|
|
346
|
-
"aria-label":
|
|
345
|
+
"aria-label": d(I, "sandbox.create.header.back.ariaLabel", "Back to sandboxes"),
|
|
347
346
|
children: /* @__PURE__ */ T(ce, { size: 20 })
|
|
348
347
|
}), /* @__PURE__ */ E("div", {
|
|
349
348
|
className: "flex items-center gap-3",
|
|
@@ -355,21 +354,21 @@ function F() {
|
|
|
355
354
|
})
|
|
356
355
|
}), /* @__PURE__ */ T("h1", {
|
|
357
356
|
className: "text-2xl sm:text-3xl font-bold",
|
|
358
|
-
children:
|
|
357
|
+
children: d(I, "sandbox.create.header.title", "Create Sandbox")
|
|
359
358
|
})]
|
|
360
359
|
})]
|
|
361
360
|
}), /* @__PURE__ */ T(xe, {
|
|
362
361
|
className: "mt-3",
|
|
363
|
-
children:
|
|
362
|
+
children: d(I, "sandbox.create.purpose", "Define a fresh, throwaway environment: pick a base image (or a template), set how much CPU/memory it gets, choose storage and a time-to-live, then launch. Use it to test a build, demo an AI agent, or reproduce an issue — it tears itself down when the TTL runs out.")
|
|
364
363
|
})]
|
|
365
364
|
}),
|
|
366
365
|
/* @__PURE__ */ E("form", {
|
|
367
366
|
onSubmit: Ne,
|
|
368
367
|
className: "space-y-6",
|
|
369
368
|
children: [
|
|
370
|
-
/* @__PURE__ */ T(
|
|
369
|
+
/* @__PURE__ */ T(s, {
|
|
371
370
|
className: "border-border-seam",
|
|
372
|
-
children: /* @__PURE__ */ E(
|
|
371
|
+
children: /* @__PURE__ */ E(c, {
|
|
373
372
|
className: "p-6 space-y-5",
|
|
374
373
|
children: [
|
|
375
374
|
/* @__PURE__ */ E("h2", {
|
|
@@ -377,14 +376,14 @@ function F() {
|
|
|
377
376
|
children: [/* @__PURE__ */ T(pe, {
|
|
378
377
|
size: 18,
|
|
379
378
|
className: "text-primary"
|
|
380
|
-
}),
|
|
379
|
+
}), d(I, "sandbox.create.sections.basicInfo.title", "Basic Information")]
|
|
381
380
|
}),
|
|
382
381
|
/* @__PURE__ */ E("div", { children: [
|
|
383
382
|
/* @__PURE__ */ E("label", {
|
|
384
383
|
htmlFor: "name",
|
|
385
384
|
className: "block text-sm font-semibold mb-2",
|
|
386
385
|
children: [
|
|
387
|
-
|
|
386
|
+
d(I, "sandbox.create.fields.name.label", "Name"),
|
|
388
387
|
" ",
|
|
389
388
|
/* @__PURE__ */ T("span", {
|
|
390
389
|
className: "text-status-error-text",
|
|
@@ -393,13 +392,13 @@ function F() {
|
|
|
393
392
|
]
|
|
394
393
|
}),
|
|
395
394
|
/* @__PURE__ */ T("input", {
|
|
396
|
-
"aria-label":
|
|
395
|
+
"aria-label": d(I, "sandbox.create.fields.name.ariaLabel", "Name"),
|
|
397
396
|
type: "text",
|
|
398
397
|
id: "name",
|
|
399
398
|
value: R.name,
|
|
400
399
|
onChange: (e) => X("name", e.target.value),
|
|
401
400
|
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${B.name ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
|
|
402
|
-
placeholder:
|
|
401
|
+
placeholder: d(I, "sandbox.create.fields.name.placeholder", "My Sandbox")
|
|
403
402
|
}),
|
|
404
403
|
B.name && /* @__PURE__ */ E("p", {
|
|
405
404
|
className: "text-sm text-status-error-text mt-1 flex items-center gap-1",
|
|
@@ -409,19 +408,19 @@ function F() {
|
|
|
409
408
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
410
409
|
htmlFor: "description",
|
|
411
410
|
className: "block text-sm font-semibold mb-2",
|
|
412
|
-
children:
|
|
411
|
+
children: d(I, "sandbox.create.fields.description.label", "Description")
|
|
413
412
|
}), /* @__PURE__ */ T("textarea", {
|
|
414
|
-
"aria-label":
|
|
413
|
+
"aria-label": d(I, "sandbox.create.fields.description.ariaLabel", "Description"),
|
|
415
414
|
id: "description",
|
|
416
415
|
value: R.description,
|
|
417
416
|
onChange: (e) => X("description", e.target.value),
|
|
418
417
|
rows: 3,
|
|
419
418
|
className: "w-full px-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
|
|
420
|
-
placeholder:
|
|
419
|
+
placeholder: d(I, "sandbox.create.fields.description.placeholder", "What is this sandbox for?")
|
|
421
420
|
})] }),
|
|
422
421
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
423
422
|
className: "block text-sm font-semibold mb-3",
|
|
424
|
-
children:
|
|
423
|
+
children: d(I, "sandbox.create.fields.template.label", "Template")
|
|
425
424
|
}), /* @__PURE__ */ T("div", {
|
|
426
425
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
427
426
|
children: k.map((e) => {
|
|
@@ -470,11 +469,11 @@ function F() {
|
|
|
470
469
|
}),
|
|
471
470
|
/* @__PURE__ */ T("p", {
|
|
472
471
|
className: "font-medium mt-2",
|
|
473
|
-
children:
|
|
472
|
+
children: d(I, e.labelKey, e.labelFallback)
|
|
474
473
|
}),
|
|
475
474
|
/* @__PURE__ */ T("p", {
|
|
476
475
|
className: "text-xs text-text-secondary mt-0.5",
|
|
477
|
-
children:
|
|
476
|
+
children: d(I, e.descriptionKey, e.descriptionFallback)
|
|
478
477
|
})
|
|
479
478
|
]
|
|
480
479
|
}, e.value);
|
|
@@ -482,7 +481,7 @@ function F() {
|
|
|
482
481
|
})] }),
|
|
483
482
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
|
|
484
483
|
className: "block text-sm font-semibold mb-3",
|
|
485
|
-
children: [
|
|
484
|
+
children: [d(I, "sandbox.create.fields.executionMode.label", "Execution Mode"), /* @__PURE__ */ T(q, { text: d(I, "sandbox.create.fields.executionMode.help", "Deployment keeps your sandbox running continuously and restarts on failure. Job runs to completion and exits when done.") })]
|
|
486
485
|
}), /* @__PURE__ */ T("div", {
|
|
487
486
|
className: "grid grid-cols-2 gap-3",
|
|
488
487
|
children: [{
|
|
@@ -497,25 +496,28 @@ function F() {
|
|
|
497
496
|
labelFallback: "Job",
|
|
498
497
|
descKey: "sandbox.create.fields.executionMode.job.description",
|
|
499
498
|
descFallback: "Run-to-completion task (exits when done)"
|
|
500
|
-
}].map((e) =>
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
className:
|
|
506
|
-
children: p
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
499
|
+
}].map((e) => {
|
|
500
|
+
let t = R.mode === e.value;
|
|
501
|
+
return /* @__PURE__ */ E("button", {
|
|
502
|
+
type: "button",
|
|
503
|
+
onClick: () => X("mode", e.value),
|
|
504
|
+
className: `p-3 rounded-lg border-2 text-left transition-all duration-200 ${t ? "border-primary bg-action-primary-bg/5 shadow-sm" : "border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50"}`,
|
|
505
|
+
children: [/* @__PURE__ */ T("p", {
|
|
506
|
+
className: "font-medium text-sm",
|
|
507
|
+
children: d(I, e.labelKey, e.labelFallback)
|
|
508
|
+
}), /* @__PURE__ */ T("p", {
|
|
509
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
510
|
+
children: d(I, e.descKey, e.descFallback)
|
|
511
|
+
})]
|
|
512
|
+
}, e.value);
|
|
513
|
+
})
|
|
512
514
|
})] })
|
|
513
515
|
]
|
|
514
516
|
})
|
|
515
517
|
}),
|
|
516
|
-
J.length > 0 && /* @__PURE__ */ T(
|
|
518
|
+
J.length > 0 && /* @__PURE__ */ T(s, {
|
|
517
519
|
className: "border-border-seam",
|
|
518
|
-
children: /* @__PURE__ */ E(
|
|
520
|
+
children: /* @__PURE__ */ E(c, {
|
|
519
521
|
className: "p-6 space-y-4",
|
|
520
522
|
children: [
|
|
521
523
|
/* @__PURE__ */ E("h2", {
|
|
@@ -523,64 +525,67 @@ function F() {
|
|
|
523
525
|
children: [/* @__PURE__ */ T(y, {
|
|
524
526
|
size: 18,
|
|
525
527
|
className: "text-primary"
|
|
526
|
-
}),
|
|
528
|
+
}), d(I, "sandbox.create.sections.quickStartTemplates.title", "Quick Start Templates")]
|
|
527
529
|
}),
|
|
528
530
|
/* @__PURE__ */ T("div", {
|
|
529
531
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",
|
|
530
|
-
children: J.map((e) =>
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
className: "
|
|
539
|
-
children:
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
532
|
+
children: J.map((e) => {
|
|
533
|
+
let t = R.templateId === e.id;
|
|
534
|
+
return /* @__PURE__ */ E("button", {
|
|
535
|
+
type: "button",
|
|
536
|
+
onClick: () => Ee(e),
|
|
537
|
+
className: `p-4 rounded-lg border-2 text-left transition-all duration-200 ${t ? "border-primary bg-action-primary-bg/5 shadow-sm" : "border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50"}`,
|
|
538
|
+
children: [
|
|
539
|
+
/* @__PURE__ */ E("div", {
|
|
540
|
+
className: "flex items-center gap-2 mb-2",
|
|
541
|
+
children: [/* @__PURE__ */ T("span", {
|
|
542
|
+
className: "font-medium text-sm",
|
|
543
|
+
children: e.name
|
|
544
|
+
}), e.isDefault && /* @__PURE__ */ T(a, {
|
|
545
|
+
variant: "secondary",
|
|
546
|
+
className: "text-xs",
|
|
547
|
+
children: d(I, "sandbox.create.sections.quickStartTemplates.defaultBadge", "Default")
|
|
548
|
+
})]
|
|
549
|
+
}),
|
|
550
|
+
e.description && /* @__PURE__ */ T("p", {
|
|
551
|
+
className: "text-xs text-text-secondary mb-2",
|
|
552
|
+
children: e.description
|
|
553
|
+
}),
|
|
554
|
+
/* @__PURE__ */ E("div", {
|
|
555
|
+
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
556
|
+
children: [
|
|
557
|
+
/* @__PURE__ */ E("span", { children: [e.resources?.cpuRequest ?? "?", " CPU"] }),
|
|
558
|
+
/* @__PURE__ */ T("span", {
|
|
559
|
+
className: "text-text-secondary/40",
|
|
560
|
+
children: "|"
|
|
561
|
+
}),
|
|
562
|
+
/* @__PURE__ */ E("span", { children: [e.resources?.memoryRequest ?? "?", " mem"] }),
|
|
563
|
+
/* @__PURE__ */ T("span", {
|
|
564
|
+
className: "text-text-secondary/40",
|
|
565
|
+
children: "|"
|
|
566
|
+
}),
|
|
567
|
+
/* @__PURE__ */ E("span", { children: [e.containers?.length ?? 0, " containers"] }),
|
|
568
|
+
/* @__PURE__ */ T("span", {
|
|
569
|
+
className: "text-text-secondary/40",
|
|
570
|
+
children: "|"
|
|
571
|
+
}),
|
|
572
|
+
/* @__PURE__ */ T("span", { children: $(e.ttlSeconds) })
|
|
573
|
+
]
|
|
574
|
+
})
|
|
575
|
+
]
|
|
576
|
+
}, e.id);
|
|
577
|
+
})
|
|
573
578
|
}),
|
|
574
579
|
/* @__PURE__ */ T("p", {
|
|
575
580
|
className: "text-xs text-text-secondary",
|
|
576
|
-
children:
|
|
581
|
+
children: d(I, "sandbox.create.sections.quickStartTemplates.hint", "Select a template or customize resources below")
|
|
577
582
|
})
|
|
578
583
|
]
|
|
579
584
|
})
|
|
580
585
|
}),
|
|
581
|
-
/* @__PURE__ */ T(
|
|
586
|
+
/* @__PURE__ */ T(s, {
|
|
582
587
|
className: "border-border-seam",
|
|
583
|
-
children: /* @__PURE__ */ E(
|
|
588
|
+
children: /* @__PURE__ */ E(c, {
|
|
584
589
|
className: "p-6 space-y-5",
|
|
585
590
|
children: [
|
|
586
591
|
/* @__PURE__ */ E("div", {
|
|
@@ -592,19 +597,19 @@ function F() {
|
|
|
592
597
|
size: 18,
|
|
593
598
|
className: "text-primary"
|
|
594
599
|
}),
|
|
595
|
-
|
|
596
|
-
/* @__PURE__ */ T(q, { text:
|
|
597
|
-
/* @__PURE__ */ T(
|
|
600
|
+
d(I, "sandbox.create.sections.containers.title", "Containers"),
|
|
601
|
+
/* @__PURE__ */ T(q, { text: d(I, "sandbox.create.sections.containers.help", "A container is the application that runs inside your sandbox. The default sandbox image includes VibeControls agent, Bun, nginx, and common dev tools pre-installed.") }),
|
|
602
|
+
/* @__PURE__ */ T(a, {
|
|
598
603
|
variant: "secondary",
|
|
599
604
|
children: R.containers.length
|
|
600
605
|
})
|
|
601
606
|
]
|
|
602
|
-
}), /* @__PURE__ */ E(
|
|
607
|
+
}), /* @__PURE__ */ E(o, {
|
|
603
608
|
type: "button",
|
|
604
609
|
variant: "outline",
|
|
605
610
|
size: "sm",
|
|
606
611
|
onClick: De,
|
|
607
|
-
children: [/* @__PURE__ */ T(he, { size: 14 }),
|
|
612
|
+
children: [/* @__PURE__ */ T(he, { size: 14 }), d(I, "sandbox.create.sections.containers.addContainer", "Add Container")]
|
|
608
613
|
})]
|
|
609
614
|
}),
|
|
610
615
|
B.containers && /* @__PURE__ */ E("p", {
|
|
@@ -620,8 +625,8 @@ function F() {
|
|
|
620
625
|
className: "flex items-center justify-between",
|
|
621
626
|
children: [/* @__PURE__ */ E("h3", {
|
|
622
627
|
className: "font-semibold text-sm",
|
|
623
|
-
children: [
|
|
624
|
-
}), R.containers.length > 1 && /* @__PURE__ */ T(
|
|
628
|
+
children: [d(I, "sandbox.create.container.heading", "Container #{number}", { number: t + 1 }), e.name && `: ${e.name}`]
|
|
629
|
+
}), R.containers.length > 1 && /* @__PURE__ */ T(o, {
|
|
625
630
|
type: "button",
|
|
626
631
|
variant: "ghost",
|
|
627
632
|
size: "icon",
|
|
@@ -634,7 +639,7 @@ function F() {
|
|
|
634
639
|
/* @__PURE__ */ E("label", {
|
|
635
640
|
className: "block text-xs font-semibold mb-1",
|
|
636
641
|
children: [
|
|
637
|
-
|
|
642
|
+
d(I, "sandbox.create.container.fields.name.label", "Name"),
|
|
638
643
|
" ",
|
|
639
644
|
/* @__PURE__ */ T("span", {
|
|
640
645
|
className: "text-status-error-text",
|
|
@@ -643,12 +648,12 @@ function F() {
|
|
|
643
648
|
]
|
|
644
649
|
}),
|
|
645
650
|
/* @__PURE__ */ T("input", {
|
|
646
|
-
"aria-label":
|
|
651
|
+
"aria-label": d(I, "sandbox.create.container.fields.name.label", "Name"),
|
|
647
652
|
type: "text",
|
|
648
653
|
value: e.name,
|
|
649
654
|
onChange: (e) => Z(t, "name", e.target.value),
|
|
650
655
|
className: `w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${B[`container_${t}_name`] ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
|
|
651
|
-
placeholder:
|
|
656
|
+
placeholder: d(I, "sandbox.create.container.fields.name.placeholder", "main")
|
|
652
657
|
}),
|
|
653
658
|
B[`container_${t}_name`] && /* @__PURE__ */ T("p", {
|
|
654
659
|
className: "text-xs text-status-error-text mt-1",
|
|
@@ -659,7 +664,7 @@ function F() {
|
|
|
659
664
|
/* @__PURE__ */ E("label", {
|
|
660
665
|
className: "block text-xs font-semibold mb-1",
|
|
661
666
|
children: [
|
|
662
|
-
|
|
667
|
+
d(I, "sandbox.create.container.fields.image.label", "Image"),
|
|
663
668
|
" ",
|
|
664
669
|
/* @__PURE__ */ T("span", {
|
|
665
670
|
className: "text-status-error-text",
|
|
@@ -673,12 +678,12 @@ function F() {
|
|
|
673
678
|
type: "button",
|
|
674
679
|
onClick: () => Z(t, "_registryType", "burdenoff"),
|
|
675
680
|
className: `flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${(e._registryType || "burdenoff") === "burdenoff" ? "border-primary bg-action-primary-bg/10 text-primary" : "border-border-default text-text-secondary hover:bg-bg-sunken"}`,
|
|
676
|
-
children:
|
|
681
|
+
children: d(I, "sandbox.create.container.fields.image.registryBurdenoff", "Burdenoff Repositories")
|
|
677
682
|
}), /* @__PURE__ */ T("button", {
|
|
678
683
|
type: "button",
|
|
679
684
|
onClick: () => Z(t, "_registryType", "custom"),
|
|
680
685
|
className: `flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${e._registryType === "custom" ? "border-primary bg-action-primary-bg/10 text-primary" : "border-border-default text-text-secondary hover:bg-bg-sunken"}`,
|
|
681
|
-
children:
|
|
686
|
+
children: d(I, "sandbox.create.container.fields.image.registryCustom", "Custom (Docker Hub)")
|
|
682
687
|
})]
|
|
683
688
|
}),
|
|
684
689
|
(e._registryType || "burdenoff") === "burdenoff" ? /* @__PURE__ */ E("div", {
|
|
@@ -687,20 +692,20 @@ function F() {
|
|
|
687
692
|
className: "px-3 py-2 border-2 border-r-0 rounded-l-lg bg-bg-sunken text-xs text-text-secondary font-mono whitespace-nowrap",
|
|
688
693
|
children: [se, "/"]
|
|
689
694
|
}), /* @__PURE__ */ T("input", {
|
|
690
|
-
"aria-label":
|
|
695
|
+
"aria-label": d(I, "sandbox.create.container.fields.image.label", "Image"),
|
|
691
696
|
type: "text",
|
|
692
|
-
value:
|
|
697
|
+
value: p(e.image),
|
|
693
698
|
onChange: (e) => Z(t, "image", e.target.value),
|
|
694
699
|
className: `w-full px-3 py-2 border-2 rounded-r-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${B[`container_${t}_image`] ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
|
|
695
700
|
placeholder: M
|
|
696
701
|
})]
|
|
697
702
|
}) : /* @__PURE__ */ T("input", {
|
|
698
|
-
"aria-label":
|
|
703
|
+
"aria-label": d(I, "sandbox.create.container.fields.image.label", "Image"),
|
|
699
704
|
type: "text",
|
|
700
705
|
value: e.image,
|
|
701
706
|
onChange: (e) => Z(t, "image", e.target.value),
|
|
702
707
|
className: `w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${B[`container_${t}_image`] ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
|
|
703
|
-
placeholder:
|
|
708
|
+
placeholder: d(I, "sandbox.create.container.fields.image.placeholderCustom", "nginx:alpine")
|
|
704
709
|
}),
|
|
705
710
|
B[`container_${t}_image`] && /* @__PURE__ */ T("p", {
|
|
706
711
|
className: "text-xs text-status-error-text mt-1",
|
|
@@ -709,15 +714,15 @@ function F() {
|
|
|
709
714
|
] }),
|
|
710
715
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
711
716
|
className: "text-xs font-semibold mb-2 text-text-secondary",
|
|
712
|
-
children:
|
|
717
|
+
children: d(I, "sandbox.create.container.resources.title", "Per-Container Resources (optional)")
|
|
713
718
|
}), /* @__PURE__ */ E("div", {
|
|
714
719
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
715
720
|
children: [
|
|
716
721
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
717
722
|
className: "block text-xs text-text-secondary mb-1",
|
|
718
|
-
children:
|
|
723
|
+
children: d(I, "sandbox.create.container.resources.cpuReq", "CPU Req")
|
|
719
724
|
}), /* @__PURE__ */ T("input", {
|
|
720
|
-
"aria-label":
|
|
725
|
+
"aria-label": d(I, "sandbox.create.container.resources.cpuReq", "CPU Req"),
|
|
721
726
|
type: "text",
|
|
722
727
|
value: e.requestsCpu,
|
|
723
728
|
onChange: (e) => Z(t, "requestsCpu", e.target.value),
|
|
@@ -726,9 +731,9 @@ function F() {
|
|
|
726
731
|
})] }),
|
|
727
732
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
728
733
|
className: "block text-xs text-text-secondary mb-1",
|
|
729
|
-
children:
|
|
734
|
+
children: d(I, "sandbox.create.container.resources.cpuLim", "CPU Lim")
|
|
730
735
|
}), /* @__PURE__ */ T("input", {
|
|
731
|
-
"aria-label":
|
|
736
|
+
"aria-label": d(I, "sandbox.create.container.resources.cpuLim", "CPU Lim"),
|
|
732
737
|
type: "text",
|
|
733
738
|
value: e.limitsCpu,
|
|
734
739
|
onChange: (e) => Z(t, "limitsCpu", e.target.value),
|
|
@@ -737,9 +742,9 @@ function F() {
|
|
|
737
742
|
})] }),
|
|
738
743
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
739
744
|
className: "block text-xs text-text-secondary mb-1",
|
|
740
|
-
children:
|
|
745
|
+
children: d(I, "sandbox.create.container.resources.memReq", "Mem Req")
|
|
741
746
|
}), /* @__PURE__ */ T("input", {
|
|
742
|
-
"aria-label":
|
|
747
|
+
"aria-label": d(I, "sandbox.create.container.resources.memReq", "Mem Req"),
|
|
743
748
|
type: "text",
|
|
744
749
|
value: e.requestsMemory,
|
|
745
750
|
onChange: (e) => Z(t, "requestsMemory", e.target.value),
|
|
@@ -748,9 +753,9 @@ function F() {
|
|
|
748
753
|
})] }),
|
|
749
754
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
750
755
|
className: "block text-xs text-text-secondary mb-1",
|
|
751
|
-
children:
|
|
756
|
+
children: d(I, "sandbox.create.container.resources.memLim", "Mem Lim")
|
|
752
757
|
}), /* @__PURE__ */ T("input", {
|
|
753
|
-
"aria-label":
|
|
758
|
+
"aria-label": d(I, "sandbox.create.container.resources.memLim", "Mem Lim"),
|
|
754
759
|
type: "text",
|
|
755
760
|
value: e.limitsMemory,
|
|
756
761
|
onChange: (e) => Z(t, "limitsMemory", e.target.value),
|
|
@@ -763,18 +768,18 @@ function F() {
|
|
|
763
768
|
className: "flex items-center justify-between mb-2",
|
|
764
769
|
children: [/* @__PURE__ */ T("p", {
|
|
765
770
|
className: "text-xs font-semibold text-text-secondary",
|
|
766
|
-
children:
|
|
771
|
+
children: d(I, "sandbox.create.container.ports.title", "Ports")
|
|
767
772
|
}), /* @__PURE__ */ T("button", {
|
|
768
773
|
type: "button",
|
|
769
774
|
onClick: () => ke(t),
|
|
770
775
|
className: "text-xs text-primary hover:underline",
|
|
771
|
-
children:
|
|
776
|
+
children: d(I, "sandbox.create.container.ports.add", "+ Add Port")
|
|
772
777
|
})]
|
|
773
778
|
}), e.ports.map((n, r) => /* @__PURE__ */ E("div", {
|
|
774
779
|
className: "flex items-center gap-2 mb-2",
|
|
775
780
|
children: [
|
|
776
781
|
/* @__PURE__ */ T("input", {
|
|
777
|
-
"aria-label":
|
|
782
|
+
"aria-label": d(I, "sandbox.create.container.ports.portNumber", "Port"),
|
|
778
783
|
type: "number",
|
|
779
784
|
value: n.containerPort,
|
|
780
785
|
onChange: (n) => {
|
|
@@ -788,7 +793,7 @@ function F() {
|
|
|
788
793
|
placeholder: "8080"
|
|
789
794
|
}),
|
|
790
795
|
/* @__PURE__ */ T("input", {
|
|
791
|
-
"aria-label":
|
|
796
|
+
"aria-label": d(I, "sandbox.create.container.ports.portName", "Port name"),
|
|
792
797
|
type: "text",
|
|
793
798
|
value: n.name,
|
|
794
799
|
onChange: (n) => {
|
|
@@ -799,7 +804,7 @@ function F() {
|
|
|
799
804
|
}, Z(t, "ports", i);
|
|
800
805
|
},
|
|
801
806
|
className: "flex-1 px-3 py-1.5 border rounded-lg bg-bg-surface text-xs focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
802
|
-
placeholder:
|
|
807
|
+
placeholder: d(I, "sandbox.create.container.ports.namePlaceholder", "Port name (optional)")
|
|
803
808
|
}),
|
|
804
809
|
/* @__PURE__ */ T("button", {
|
|
805
810
|
type: "button",
|
|
@@ -813,18 +818,18 @@ function F() {
|
|
|
813
818
|
className: "flex items-center justify-between mb-2",
|
|
814
819
|
children: [/* @__PURE__ */ T("p", {
|
|
815
820
|
className: "text-xs font-semibold text-text-secondary",
|
|
816
|
-
children:
|
|
821
|
+
children: d(I, "sandbox.create.container.envVars.title", "Environment Variables")
|
|
817
822
|
}), /* @__PURE__ */ T("button", {
|
|
818
823
|
type: "button",
|
|
819
824
|
onClick: () => je(t),
|
|
820
825
|
className: "text-xs text-primary hover:underline",
|
|
821
|
-
children:
|
|
826
|
+
children: d(I, "sandbox.create.container.envVars.add", "+ Add Variable")
|
|
822
827
|
})]
|
|
823
828
|
}), e.env.map((n, r) => /* @__PURE__ */ E("div", {
|
|
824
829
|
className: "flex items-center gap-2 mb-2",
|
|
825
830
|
children: [
|
|
826
831
|
/* @__PURE__ */ T("input", {
|
|
827
|
-
"aria-label":
|
|
832
|
+
"aria-label": d(I, "sandbox.create.container.envVars.key", "Key"),
|
|
828
833
|
type: "text",
|
|
829
834
|
value: n.name,
|
|
830
835
|
onChange: (n) => {
|
|
@@ -835,10 +840,10 @@ function F() {
|
|
|
835
840
|
}, Z(t, "env", i);
|
|
836
841
|
},
|
|
837
842
|
className: "w-1/3 px-3 py-1.5 border rounded-lg bg-bg-surface text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
838
|
-
placeholder:
|
|
843
|
+
placeholder: d(I, "sandbox.create.container.envVars.key", "KEY")
|
|
839
844
|
}),
|
|
840
845
|
/* @__PURE__ */ T("input", {
|
|
841
|
-
"aria-label":
|
|
846
|
+
"aria-label": d(I, "sandbox.create.container.envVars.value", "Value"),
|
|
842
847
|
type: "text",
|
|
843
848
|
value: n.value,
|
|
844
849
|
onChange: (n) => {
|
|
@@ -849,7 +854,7 @@ function F() {
|
|
|
849
854
|
}, Z(t, "env", i);
|
|
850
855
|
},
|
|
851
856
|
className: "flex-1 px-3 py-1.5 border rounded-lg bg-bg-surface text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
852
|
-
placeholder:
|
|
857
|
+
placeholder: d(I, "sandbox.create.container.envVars.value", "value")
|
|
853
858
|
}),
|
|
854
859
|
/* @__PURE__ */ T("button", {
|
|
855
860
|
type: "button",
|
|
@@ -865,9 +870,9 @@ function F() {
|
|
|
865
870
|
]
|
|
866
871
|
})
|
|
867
872
|
}),
|
|
868
|
-
/* @__PURE__ */ T(
|
|
873
|
+
/* @__PURE__ */ T(s, {
|
|
869
874
|
className: "border-border-seam",
|
|
870
|
-
children: /* @__PURE__ */ E(
|
|
875
|
+
children: /* @__PURE__ */ E(c, {
|
|
871
876
|
className: "p-6 space-y-5",
|
|
872
877
|
children: [
|
|
873
878
|
/* @__PURE__ */ E("h2", {
|
|
@@ -877,13 +882,13 @@ function F() {
|
|
|
877
882
|
size: 18,
|
|
878
883
|
className: "text-primary"
|
|
879
884
|
}),
|
|
880
|
-
|
|
881
|
-
/* @__PURE__ */ T(q, { text:
|
|
885
|
+
d(I, "sandbox.create.sections.podResources.title", "Pod Resources"),
|
|
886
|
+
/* @__PURE__ */ T(q, { text: d(I, "sandbox.create.sections.podResources.help", "Resources allocated to the entire sandbox. CPU is in millicores (1000m = 1 CPU core). Memory in MiB or GiB.") })
|
|
882
887
|
]
|
|
883
888
|
}),
|
|
884
889
|
/* @__PURE__ */ T(be, {
|
|
885
|
-
title:
|
|
886
|
-
description:
|
|
890
|
+
title: d(I, "sandbox.create.sections.podResources.advancedTitle", "Advanced resource limits"),
|
|
891
|
+
description: d(I, "sandbox.create.sections.podResources.advancedDescription", "CPU and memory requests/limits. Defaults work for most sandboxes."),
|
|
887
892
|
children: /* @__PURE__ */ E("div", {
|
|
888
893
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
889
894
|
children: [
|
|
@@ -894,10 +899,10 @@ function F() {
|
|
|
894
899
|
children: [/* @__PURE__ */ T(b, {
|
|
895
900
|
size: 14,
|
|
896
901
|
className: "text-status-info-text"
|
|
897
|
-
}),
|
|
902
|
+
}), d(I, "sandbox.create.fields.cpuRequest.label", "CPU Request")]
|
|
898
903
|
}),
|
|
899
904
|
/* @__PURE__ */ T("input", {
|
|
900
|
-
"aria-label":
|
|
905
|
+
"aria-label": d(I, "sandbox.create.fields.cpuRequest.label", "CPU Request"),
|
|
901
906
|
type: "text",
|
|
902
907
|
id: "cpuRequest",
|
|
903
908
|
value: R.cpuRequest,
|
|
@@ -917,10 +922,10 @@ function F() {
|
|
|
917
922
|
children: [/* @__PURE__ */ T(b, {
|
|
918
923
|
size: 14,
|
|
919
924
|
className: "text-status-info-text"
|
|
920
|
-
}),
|
|
925
|
+
}), d(I, "sandbox.create.fields.cpuLimit.label", "CPU Limit")]
|
|
921
926
|
}),
|
|
922
927
|
/* @__PURE__ */ T("input", {
|
|
923
|
-
"aria-label":
|
|
928
|
+
"aria-label": d(I, "sandbox.create.fields.cpuLimit.label", "CPU Limit"),
|
|
924
929
|
type: "text",
|
|
925
930
|
id: "cpuLimit",
|
|
926
931
|
value: R.cpuLimit,
|
|
@@ -940,10 +945,10 @@ function F() {
|
|
|
940
945
|
children: [/* @__PURE__ */ T(x, {
|
|
941
946
|
size: 14,
|
|
942
947
|
className: "text-accent-purple-subtle"
|
|
943
|
-
}),
|
|
948
|
+
}), d(I, "sandbox.create.fields.memoryRequest.label", "Memory Request")]
|
|
944
949
|
}),
|
|
945
950
|
/* @__PURE__ */ T("input", {
|
|
946
|
-
"aria-label":
|
|
951
|
+
"aria-label": d(I, "sandbox.create.fields.memoryRequest.label", "Memory Request"),
|
|
947
952
|
type: "text",
|
|
948
953
|
id: "memoryRequest",
|
|
949
954
|
value: R.memoryRequest,
|
|
@@ -963,10 +968,10 @@ function F() {
|
|
|
963
968
|
children: [/* @__PURE__ */ T(x, {
|
|
964
969
|
size: 14,
|
|
965
970
|
className: "text-accent-purple-subtle"
|
|
966
|
-
}),
|
|
971
|
+
}), d(I, "sandbox.create.fields.memoryLimit.label", "Memory Limit")]
|
|
967
972
|
}),
|
|
968
973
|
/* @__PURE__ */ T("input", {
|
|
969
|
-
"aria-label":
|
|
974
|
+
"aria-label": d(I, "sandbox.create.fields.memoryLimit.label", "Memory Limit"),
|
|
970
975
|
type: "text",
|
|
971
976
|
id: "memoryLimit",
|
|
972
977
|
value: R.memoryLimit,
|
|
@@ -991,9 +996,9 @@ function F() {
|
|
|
991
996
|
size: 14,
|
|
992
997
|
className: "text-status-info-text"
|
|
993
998
|
}),
|
|
994
|
-
|
|
995
|
-
/* @__PURE__ */ T(q, { text:
|
|
996
|
-
/* @__PURE__ */ T(
|
|
999
|
+
d(I, "sandbox.create.fields.ttl.label", "Time to Live"),
|
|
1000
|
+
/* @__PURE__ */ T(q, { text: d(I, "sandbox.create.fields.ttl.help", "Your sandbox will be automatically destroyed after this duration to save resources. You can extend it while it's running.") }),
|
|
1001
|
+
/* @__PURE__ */ T(a, {
|
|
997
1002
|
variant: "outline",
|
|
998
1003
|
className: "text-xs ml-auto",
|
|
999
1004
|
children: $(R.ttlSeconds)
|
|
@@ -1001,7 +1006,7 @@ function F() {
|
|
|
1001
1006
|
]
|
|
1002
1007
|
}),
|
|
1003
1008
|
/* @__PURE__ */ T("input", {
|
|
1004
|
-
"aria-label":
|
|
1009
|
+
"aria-label": d(I, "sandbox.create.fields.ttl.label", "Time to Live"),
|
|
1005
1010
|
type: "range",
|
|
1006
1011
|
id: "ttlSeconds",
|
|
1007
1012
|
min: 600,
|
|
@@ -1027,17 +1032,17 @@ function F() {
|
|
|
1027
1032
|
] }),
|
|
1028
1033
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
|
|
1029
1034
|
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
1030
|
-
children: [
|
|
1031
|
-
}), /* @__PURE__ */ T(
|
|
1035
|
+
children: [d(I, "sandbox.create.fields.tags.label", "Tags"), /* @__PURE__ */ T(q, { text: d(I, "sandbox.create.fields.tags.help", "Free-form labels. Use them to filter the sandbox list. Max 32 tags, 64 chars each.") })]
|
|
1036
|
+
}), /* @__PURE__ */ T(ie, {
|
|
1032
1037
|
value: L,
|
|
1033
1038
|
onChange: Se
|
|
1034
1039
|
})] })
|
|
1035
1040
|
]
|
|
1036
1041
|
})
|
|
1037
1042
|
}),
|
|
1038
|
-
/* @__PURE__ */ T(
|
|
1043
|
+
/* @__PURE__ */ T(s, {
|
|
1039
1044
|
className: "border-border-seam",
|
|
1040
|
-
children: /* @__PURE__ */ E(
|
|
1045
|
+
children: /* @__PURE__ */ E(c, {
|
|
1041
1046
|
className: "p-6 space-y-5",
|
|
1042
1047
|
children: [
|
|
1043
1048
|
/* @__PURE__ */ E("h2", {
|
|
@@ -1047,13 +1052,13 @@ function F() {
|
|
|
1047
1052
|
size: 18,
|
|
1048
1053
|
className: "text-primary"
|
|
1049
1054
|
}),
|
|
1050
|
-
|
|
1051
|
-
/* @__PURE__ */ T(q, { text:
|
|
1055
|
+
d(I, "sandbox.create.sections.storage.title", "Storage"),
|
|
1056
|
+
/* @__PURE__ */ T(q, { text: d(I, "sandbox.create.sections.storage.help", "Ephemeral storage is fast but lost when the sandbox stops. Persistent storage survives restarts.") })
|
|
1052
1057
|
]
|
|
1053
1058
|
}),
|
|
1054
1059
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1055
1060
|
className: "block text-sm font-semibold mb-3",
|
|
1056
|
-
children:
|
|
1061
|
+
children: d(I, "sandbox.create.fields.storageMode.label", "Mode")
|
|
1057
1062
|
}), /* @__PURE__ */ T("div", {
|
|
1058
1063
|
className: "grid grid-cols-3 gap-3",
|
|
1059
1064
|
children: [
|
|
@@ -1062,13 +1067,13 @@ function F() {
|
|
|
1062
1067
|
"PERSISTENT"
|
|
1063
1068
|
].map((e) => {
|
|
1064
1069
|
let t = R.storageMode === e, n = {
|
|
1065
|
-
NONE:
|
|
1066
|
-
EPHEMERAL:
|
|
1067
|
-
PERSISTENT:
|
|
1070
|
+
NONE: d(I, "sandbox.create.fields.storageMode.none.label", "None"),
|
|
1071
|
+
EPHEMERAL: d(I, "sandbox.create.fields.storageMode.ephemeral.label", "Ephemeral"),
|
|
1072
|
+
PERSISTENT: d(I, "sandbox.create.fields.storageMode.persistent.label", "Persistent")
|
|
1068
1073
|
}, r = {
|
|
1069
|
-
NONE:
|
|
1070
|
-
EPHEMERAL:
|
|
1071
|
-
PERSISTENT:
|
|
1074
|
+
NONE: d(I, "sandbox.create.fields.storageMode.none.description", "No persistent storage"),
|
|
1075
|
+
EPHEMERAL: d(I, "sandbox.create.fields.storageMode.ephemeral.description", "Lost when sandbox stops"),
|
|
1076
|
+
PERSISTENT: d(I, "sandbox.create.fields.storageMode.persistent.description", "Retained across restarts")
|
|
1072
1077
|
};
|
|
1073
1078
|
return /* @__PURE__ */ E("button", {
|
|
1074
1079
|
type: "button",
|
|
@@ -1090,9 +1095,9 @@ function F() {
|
|
|
1090
1095
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1091
1096
|
htmlFor: "storageSizeGi",
|
|
1092
1097
|
className: "block text-sm font-semibold mb-2",
|
|
1093
|
-
children:
|
|
1098
|
+
children: d(I, "sandbox.create.fields.storageSizeGi.label", "Size (GiB)")
|
|
1094
1099
|
}), /* @__PURE__ */ T("input", {
|
|
1095
|
-
"aria-label":
|
|
1100
|
+
"aria-label": d(I, "sandbox.create.fields.storageSizeGi.label", "Size (GiB)"),
|
|
1096
1101
|
type: "number",
|
|
1097
1102
|
id: "storageSizeGi",
|
|
1098
1103
|
value: R.storageSizeGi,
|
|
@@ -1104,9 +1109,9 @@ function F() {
|
|
|
1104
1109
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1105
1110
|
htmlFor: "storageMountPath",
|
|
1106
1111
|
className: "block text-sm font-semibold mb-2",
|
|
1107
|
-
children:
|
|
1112
|
+
children: d(I, "sandbox.create.fields.storageMountPath.label", "Mount Path")
|
|
1108
1113
|
}), /* @__PURE__ */ T("input", {
|
|
1109
|
-
"aria-label":
|
|
1114
|
+
"aria-label": d(I, "sandbox.create.fields.storageMountPath.label", "Mount Path"),
|
|
1110
1115
|
type: "text",
|
|
1111
1116
|
id: "storageMountPath",
|
|
1112
1117
|
value: R.storageMountPath,
|
|
@@ -1117,7 +1122,7 @@ function F() {
|
|
|
1117
1122
|
R.storageMode === "PERSISTENT" && /* @__PURE__ */ E("div", {
|
|
1118
1123
|
className: "flex items-center gap-3 sm:col-span-2",
|
|
1119
1124
|
children: [/* @__PURE__ */ T("input", {
|
|
1120
|
-
"aria-label":
|
|
1125
|
+
"aria-label": d(I, "sandbox.create.fields.storageRetainOnDelete.label", "Retain volume data when sandbox is deleted"),
|
|
1121
1126
|
type: "checkbox",
|
|
1122
1127
|
id: "storageRetainOnDelete",
|
|
1123
1128
|
checked: R.storageRetainOnDelete,
|
|
@@ -1126,12 +1131,12 @@ function F() {
|
|
|
1126
1131
|
}), /* @__PURE__ */ T("label", {
|
|
1127
1132
|
htmlFor: "storageRetainOnDelete",
|
|
1128
1133
|
className: "text-sm font-medium",
|
|
1129
|
-
children:
|
|
1134
|
+
children: d(I, "sandbox.create.fields.storageRetainOnDelete.label", "Retain volume data when sandbox is deleted")
|
|
1130
1135
|
})]
|
|
1131
1136
|
}),
|
|
1132
1137
|
/* @__PURE__ */ T("div", {
|
|
1133
1138
|
className: "sm:col-span-2",
|
|
1134
|
-
children: /* @__PURE__ */ T(
|
|
1139
|
+
children: /* @__PURE__ */ T(ae, {
|
|
1135
1140
|
value: R.filesFolderId,
|
|
1136
1141
|
onChange: (e) => X("filesFolderId", e)
|
|
1137
1142
|
})
|
|
@@ -1141,26 +1146,26 @@ function F() {
|
|
|
1141
1146
|
]
|
|
1142
1147
|
})
|
|
1143
1148
|
}),
|
|
1144
|
-
R.template === "MISC_SHELL" && /* @__PURE__ */ T(
|
|
1149
|
+
R.template === "MISC_SHELL" && /* @__PURE__ */ T(s, {
|
|
1145
1150
|
className: "border-border-seam",
|
|
1146
|
-
children: /* @__PURE__ */ T(
|
|
1151
|
+
children: /* @__PURE__ */ T(c, {
|
|
1147
1152
|
className: "p-5",
|
|
1148
1153
|
children: /* @__PURE__ */ E("details", { children: [/* @__PURE__ */ E("summary", {
|
|
1149
1154
|
className: "cursor-pointer text-sm font-semibold text-text-secondary flex items-center gap-2",
|
|
1150
1155
|
children: [
|
|
1151
1156
|
/* @__PURE__ */ T(S, { size: 14 }),
|
|
1152
|
-
|
|
1153
|
-
/* @__PURE__ */ T(q, { text:
|
|
1157
|
+
d(I, "sandbox.create.sections.advancedSettings.title", "Advanced Settings"),
|
|
1158
|
+
/* @__PURE__ */ T(q, { text: d(I, "sandbox.create.sections.advancedSettings.help", "Override the gateway URLs the sandbox agent uses for authentication and API calls. Useful when exposing local gateways via tunnel for development.") })
|
|
1154
1159
|
]
|
|
1155
1160
|
}), /* @__PURE__ */ E("div", {
|
|
1156
1161
|
className: "mt-4 space-y-4",
|
|
1157
1162
|
children: [/* @__PURE__ */ E("div", { children: [
|
|
1158
1163
|
/* @__PURE__ */ T("label", {
|
|
1159
1164
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
1160
|
-
children:
|
|
1165
|
+
children: d(I, "sandbox.create.fields.globalGatewayUrl.label", "Global Gateway URL")
|
|
1161
1166
|
}),
|
|
1162
1167
|
/* @__PURE__ */ T("input", {
|
|
1163
|
-
"aria-label":
|
|
1168
|
+
"aria-label": d(I, "sandbox.create.fields.globalGatewayUrl.label", "Global Gateway URL"),
|
|
1164
1169
|
type: "text",
|
|
1165
1170
|
value: R.globalGatewayUrl,
|
|
1166
1171
|
onChange: (e) => X("globalGatewayUrl", e.target.value),
|
|
@@ -1169,15 +1174,15 @@ function F() {
|
|
|
1169
1174
|
}),
|
|
1170
1175
|
/* @__PURE__ */ T("p", {
|
|
1171
1176
|
className: "text-xs text-text-secondary mt-1",
|
|
1172
|
-
children:
|
|
1177
|
+
children: d(I, "sandbox.create.fields.globalGatewayUrl.hint", "The agent authenticates via this URL. Override with a tunnel URL to reach local gateways.")
|
|
1173
1178
|
})
|
|
1174
1179
|
] }), /* @__PURE__ */ E("div", { children: [
|
|
1175
1180
|
/* @__PURE__ */ T("label", {
|
|
1176
1181
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
1177
|
-
children:
|
|
1182
|
+
children: d(I, "sandbox.create.fields.workspaceGatewayUrl.label", "Workspace Gateway URL")
|
|
1178
1183
|
}),
|
|
1179
1184
|
/* @__PURE__ */ T("input", {
|
|
1180
|
-
"aria-label":
|
|
1185
|
+
"aria-label": d(I, "sandbox.create.fields.workspaceGatewayUrl.label", "Workspace Gateway URL"),
|
|
1181
1186
|
type: "text",
|
|
1182
1187
|
value: R.workspaceGatewayUrl,
|
|
1183
1188
|
onChange: (e) => X("workspaceGatewayUrl", e.target.value),
|
|
@@ -1186,7 +1191,7 @@ function F() {
|
|
|
1186
1191
|
}),
|
|
1187
1192
|
/* @__PURE__ */ T("p", {
|
|
1188
1193
|
className: "text-xs text-text-secondary mt-1",
|
|
1189
|
-
children:
|
|
1194
|
+
children: d(I, "sandbox.create.fields.workspaceGatewayUrl.hint", "The agent reports to this URL. Override with a tunnel URL to reach local gateways.")
|
|
1190
1195
|
})
|
|
1191
1196
|
] })]
|
|
1192
1197
|
})] })
|
|
@@ -1194,36 +1199,35 @@ function F() {
|
|
|
1194
1199
|
}),
|
|
1195
1200
|
/* @__PURE__ */ E("div", {
|
|
1196
1201
|
className: "flex flex-col sm:flex-row gap-3 pt-2",
|
|
1197
|
-
children: [/* @__PURE__ */ E(
|
|
1202
|
+
children: [/* @__PURE__ */ E(o, {
|
|
1198
1203
|
type: "submit",
|
|
1199
1204
|
disabled: W,
|
|
1200
1205
|
size: "lg",
|
|
1201
1206
|
children: [W ? /* @__PURE__ */ T(me, {
|
|
1202
1207
|
size: 18,
|
|
1203
1208
|
className: "animate-spin"
|
|
1204
|
-
}) : /* @__PURE__ */ T(ge, { size: 18 }),
|
|
1205
|
-
}), /* @__PURE__ */ T(
|
|
1209
|
+
}) : /* @__PURE__ */ T(ge, { size: 18 }), d(I, "sandbox.create.actions.submit", "Create Sandbox")]
|
|
1210
|
+
}), /* @__PURE__ */ T(o, {
|
|
1206
1211
|
type: "button",
|
|
1207
1212
|
variant: "outline",
|
|
1208
|
-
onClick: () => D?.(
|
|
1213
|
+
onClick: () => D?.(f),
|
|
1209
1214
|
disabled: W,
|
|
1210
|
-
children:
|
|
1215
|
+
children: d(I, "sandbox.create.actions.cancel", "Cancel")
|
|
1211
1216
|
})]
|
|
1212
1217
|
})
|
|
1213
1218
|
]
|
|
1214
1219
|
}),
|
|
1215
|
-
/* @__PURE__ */ T(
|
|
1220
|
+
/* @__PURE__ */ T(e, {
|
|
1216
1221
|
open: Ce,
|
|
1217
1222
|
onOpenChange: K,
|
|
1218
|
-
children: /* @__PURE__ */ E(
|
|
1223
|
+
children: /* @__PURE__ */ E(r, { children: [/* @__PURE__ */ E(te, { children: [/* @__PURE__ */ T(ne, { children: d(I, "sandbox.create.quota.title", "Sandbox limit reached") }), /* @__PURE__ */ T(i, { children: d(I, "sandbox.create.quota.description", "You have reached your concurrent sandbox limit. Stop an existing sandbox or upgrade your plan to continue.") })] }), /* @__PURE__ */ E(ee, { children: [/* @__PURE__ */ T(n, { children: d(I, "sandbox.create.quota.dismiss", "Dismiss") }), /* @__PURE__ */ T(t, {
|
|
1219
1224
|
onClick: () => D?.("/billing"),
|
|
1220
|
-
children:
|
|
1225
|
+
children: d(I, "sandbox.create.quota.billing", "View Billing")
|
|
1221
1226
|
})] })] })
|
|
1222
1227
|
})
|
|
1223
1228
|
]
|
|
1224
1229
|
});
|
|
1225
1230
|
}
|
|
1226
|
-
//#endregion
|
|
1227
1231
|
export { F as SandboxCreatePage };
|
|
1228
1232
|
|
|
1229
1233
|
//# sourceMappingURL=SandboxCreatePage.js.map
|