@burdenoff/microfe-sandbox 2026.527.1 → 2026.528.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.
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useSandbox as e } from "../providers/SandboxProvider.js";
|
|
2
2
|
import { Badge as t, Button as n, Card as r, CardContent as i } from "../components/ui.js";
|
|
3
3
|
import { tWithFallback as a } from "../utils/i18n.js";
|
|
4
|
-
import { useSandboxEvents as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { useCreateSandboxMutation as
|
|
7
|
-
import { TagsInput as
|
|
8
|
-
import { FilesFolderPicker as
|
|
4
|
+
import { useSandboxEvents as ee } from "../utils/sandboxEvents.js";
|
|
5
|
+
import { PageLayout as o } from "../components/PageLayout.js";
|
|
6
|
+
import { useCreateSandboxMutation as s, useListSandboxTemplatesQuery as c } from "../../generated/wspace-operations.js";
|
|
7
|
+
import { TagsInput as l } from "../components/TagsInput.js";
|
|
8
|
+
import { FilesFolderPicker as te } from "../components/FilesFolderPicker.js";
|
|
9
9
|
import { useState as u } from "react";
|
|
10
|
-
import { AlertCircle as d, ArrowLeft as f, Box as p, CheckCircle2 as m, Container as h, Cpu as g, Database as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { jsx as
|
|
10
|
+
import { AlertCircle as d, ArrowLeft as f, Box as p, CheckCircle2 as m, Container as h, Cpu as g, Database as ne, HelpCircle as _, Info as v, Loader2 as re, MemoryStick as y, Plus as ie, Save as b, Settings as x, Timer as S, Trash2 as C, X as w } from "lucide-react";
|
|
11
|
+
import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
12
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
13
|
+
import { OptionalFields as D } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/sandbox/pages/SandboxCreatePage.tsx
|
|
14
15
|
var O = 0;
|
|
15
16
|
function k() {
|
|
@@ -28,7 +29,7 @@ var A = [{
|
|
|
28
29
|
labelFallback: "Custom Sandbox",
|
|
29
30
|
descriptionKey: "sandbox.create.templateType.customSandbox.description",
|
|
30
31
|
descriptionFallback: "Configure your own container image and resources",
|
|
31
|
-
icon:
|
|
32
|
+
icon: x
|
|
32
33
|
}];
|
|
33
34
|
function j() {
|
|
34
35
|
return {
|
|
@@ -45,28 +46,28 @@ function j() {
|
|
|
45
46
|
}
|
|
46
47
|
function M({ text: e }) {
|
|
47
48
|
let [t, n] = u(!1);
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ E("span", {
|
|
49
50
|
className: "relative inline-block ml-1.5",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ T("button", {
|
|
51
52
|
type: "button",
|
|
52
53
|
onClick: () => n(!t),
|
|
53
54
|
className: "text-text-tertiary hover:text-text-secondary transition-colors",
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
}), t && /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ T(_, { size: 14 })
|
|
56
|
+
}), t && /* @__PURE__ */ E("div", {
|
|
56
57
|
className: "absolute left-0 top-6 z-50 w-64 rounded-lg border border-border-default bg-bg-surface p-3 text-xs text-text-secondary shadow-lg",
|
|
57
|
-
children: [e, /* @__PURE__ */
|
|
58
|
+
children: [e, /* @__PURE__ */ T("button", {
|
|
58
59
|
type: "button",
|
|
59
60
|
onClick: () => n(!1),
|
|
60
61
|
"aria-label": "Close help tip",
|
|
61
62
|
className: "absolute top-1 right-1 text-text-tertiary hover:text-text-secondary",
|
|
62
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ T(w, { size: 12 })
|
|
63
64
|
})]
|
|
64
65
|
})]
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
var N = 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"), P = N ? "burdenoffregistry.azurecr.io/sandbox/vibecontrols-alpha:2026.401.5-alpha" : "burdenoffregistry.azurecr.io/sandbox/vibecontrols:2026.401.4-alpha", F = N ? "https://alphagraphql.burdenoff.com/global/graphql" : "https://graphql.burdenoff.com/global/graphql", I = N ? "https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql" : "https://graphqlworkspaces.burdenoff.com/workspaces/graphql";
|
|
68
69
|
function L() {
|
|
69
|
-
let { basePath:
|
|
70
|
+
let { basePath: _ = "/", navigate: O, workspaceId: N } = e(), L = ee(), { t: R } = ae(), [z, B] = u([]), [V, H] = u({
|
|
70
71
|
name: "",
|
|
71
72
|
description: "",
|
|
72
73
|
template: "MISC_SHELL",
|
|
@@ -104,18 +105,18 @@ function L() {
|
|
|
104
105
|
filesFolderId: null,
|
|
105
106
|
globalGatewayUrl: F,
|
|
106
107
|
workspaceGatewayUrl: I
|
|
107
|
-
}), [U, W] = u({}), [G, K] = u(null), [q, J] = u(!1), { data:
|
|
108
|
+
}), [U, W] = u({}), [G, K] = u(null), [q, J] = u(!1), { data: oe } = c({
|
|
108
109
|
variables: {
|
|
109
110
|
context: { workspaceId: N },
|
|
110
111
|
template: V.template
|
|
111
112
|
},
|
|
112
113
|
skip: !N
|
|
113
|
-
}), [
|
|
114
|
+
}), [se] = s(), Y = oe?.listSandboxTemplates?.items ?? [], X = (e, t) => {
|
|
114
115
|
K({
|
|
115
116
|
type: e,
|
|
116
117
|
message: t
|
|
117
118
|
}), setTimeout(() => K(null), 5e3);
|
|
118
|
-
},
|
|
119
|
+
}, ce = (e) => {
|
|
119
120
|
H((t) => ({
|
|
120
121
|
...t,
|
|
121
122
|
templateId: e.id,
|
|
@@ -162,13 +163,13 @@ function L() {
|
|
|
162
163
|
let n = { ...t };
|
|
163
164
|
return delete n[e], n;
|
|
164
165
|
}));
|
|
165
|
-
},
|
|
166
|
+
}, le = () => {
|
|
166
167
|
H((e) => ({
|
|
167
168
|
...e,
|
|
168
169
|
containers: [...e.containers, j()],
|
|
169
170
|
templateId: ""
|
|
170
171
|
}));
|
|
171
|
-
},
|
|
172
|
+
}, ue = (e) => {
|
|
172
173
|
H((t) => ({
|
|
173
174
|
...t,
|
|
174
175
|
containers: t.containers.filter((t, n) => n !== e),
|
|
@@ -183,7 +184,7 @@ function L() {
|
|
|
183
184
|
} : r),
|
|
184
185
|
templateId: ""
|
|
185
186
|
}));
|
|
186
|
-
},
|
|
187
|
+
}, de = (e) => {
|
|
187
188
|
H((t) => ({
|
|
188
189
|
...t,
|
|
189
190
|
containers: t.containers.map((t, n) => n === e ? {
|
|
@@ -195,7 +196,7 @@ function L() {
|
|
|
195
196
|
}]
|
|
196
197
|
} : t)
|
|
197
198
|
}));
|
|
198
|
-
},
|
|
199
|
+
}, fe = (e, t) => {
|
|
199
200
|
H((n) => ({
|
|
200
201
|
...n,
|
|
201
202
|
containers: n.containers.map((n, r) => r === e ? {
|
|
@@ -203,7 +204,7 @@ function L() {
|
|
|
203
204
|
ports: n.ports.filter((e, n) => n !== t)
|
|
204
205
|
} : n)
|
|
205
206
|
}));
|
|
206
|
-
},
|
|
207
|
+
}, pe = (e) => {
|
|
207
208
|
H((t) => ({
|
|
208
209
|
...t,
|
|
209
210
|
containers: t.containers.map((t, n) => n === e ? {
|
|
@@ -214,7 +215,7 @@ function L() {
|
|
|
214
215
|
}]
|
|
215
216
|
} : t)
|
|
216
217
|
}));
|
|
217
|
-
},
|
|
218
|
+
}, me = (e, t) => {
|
|
218
219
|
H((n) => ({
|
|
219
220
|
...n,
|
|
220
221
|
containers: n.containers.map((n, r) => r === e ? {
|
|
@@ -222,13 +223,13 @@ function L() {
|
|
|
222
223
|
env: n.env.filter((e, n) => n !== t)
|
|
223
224
|
} : n)
|
|
224
225
|
}));
|
|
225
|
-
},
|
|
226
|
+
}, he = () => {
|
|
226
227
|
let e = {};
|
|
227
228
|
return V.name.trim() || (e.name = a(R, "sandbox.create.errors.nameRequired", "Name is required")), V.cpuRequest.trim() || (e.cpuRequest = a(R, "sandbox.create.errors.cpuRequestRequired", "CPU request is required")), V.cpuLimit.trim() || (e.cpuLimit = a(R, "sandbox.create.errors.cpuLimitRequired", "CPU limit is required")), V.memoryRequest.trim() || (e.memoryRequest = a(R, "sandbox.create.errors.memoryRequestRequired", "Memory request is required")), V.memoryLimit.trim() || (e.memoryLimit = a(R, "sandbox.create.errors.memoryLimitRequired", "Memory limit is required")), (V.ttlSeconds < 600 || V.ttlSeconds > 86400) && (e.ttlSeconds = a(R, "sandbox.create.errors.ttlRange", "TTL must be 10m-24h")), V.containers.length === 0 && (e.containers = a(R, "sandbox.create.errors.containersRequired", "At least one container is required")), V.containers.forEach((t, n) => {
|
|
228
229
|
t.name.trim() || (e[`container_${n}_name`] = a(R, "sandbox.create.errors.containerNameRequired", "Container name is required")), t.image.trim() || (e[`container_${n}_image`] = a(R, "sandbox.create.errors.containerImageRequired", "Container image is required"));
|
|
229
230
|
}), W(e), Object.keys(e).length === 0;
|
|
230
|
-
},
|
|
231
|
-
if (e.preventDefault(), !
|
|
231
|
+
}, ge = async (e) => {
|
|
232
|
+
if (e.preventDefault(), !he()) {
|
|
232
233
|
X("error", a(R, "sandbox.create.notifications.fixErrors", "Please fix the form errors"));
|
|
233
234
|
return;
|
|
234
235
|
}
|
|
@@ -251,7 +252,7 @@ function L() {
|
|
|
251
252
|
limitsMemory: e.limitsMemory || void 0
|
|
252
253
|
} : void 0
|
|
253
254
|
};
|
|
254
|
-
}), t = await
|
|
255
|
+
}), t = await se({ variables: { input: {
|
|
255
256
|
context: { workspaceId: N },
|
|
256
257
|
name: V.name,
|
|
257
258
|
description: V.description || void 0,
|
|
@@ -292,7 +293,7 @@ function L() {
|
|
|
292
293
|
kind: n.kind?.toLowerCase?.() === "internal" ? "internal" : "user",
|
|
293
294
|
source: n.source ?? "manual"
|
|
294
295
|
}), X("success", a(R, "sandbox.create.notifications.createSuccess", "Sandbox created successfully! Provisioning..."));
|
|
295
|
-
let r = `${
|
|
296
|
+
let r = `${_.replace(/\/$/, "")}/${n.id}`;
|
|
296
297
|
setTimeout(() => O?.(r), 1500);
|
|
297
298
|
} catch {
|
|
298
299
|
X("error", a(R, "sandbox.create.notifications.createFailed", "Failed to create sandbox"));
|
|
@@ -303,79 +304,79 @@ function L() {
|
|
|
303
304
|
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60);
|
|
304
305
|
return t > 0 && n > 0 ? `${t}h ${n}m` : t > 0 ? `${t}h` : `${n}m`;
|
|
305
306
|
};
|
|
306
|
-
return /* @__PURE__ */
|
|
307
|
+
return /* @__PURE__ */ E(o, {
|
|
307
308
|
showHeader: !1,
|
|
308
309
|
children: [
|
|
309
|
-
G && /* @__PURE__ */
|
|
310
|
+
G && /* @__PURE__ */ E("div", {
|
|
310
311
|
className: `fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-300 ${G.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"}`,
|
|
311
312
|
children: [
|
|
312
|
-
G.type === "success" ? /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
G.type === "success" ? /* @__PURE__ */ T(m, { size: 20 }) : /* @__PURE__ */ T(d, { size: 20 }),
|
|
314
|
+
/* @__PURE__ */ T("span", {
|
|
314
315
|
className: "font-medium",
|
|
315
316
|
children: G.message
|
|
316
317
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ T("button", {
|
|
318
319
|
type: "button",
|
|
319
320
|
onClick: () => K(null),
|
|
320
321
|
"aria-label": "Dismiss notification",
|
|
321
322
|
className: "ml-2 p-1 rounded-md hover:bg-accent",
|
|
322
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ T(w, { size: 16 })
|
|
323
324
|
})
|
|
324
325
|
]
|
|
325
326
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ E("div", {
|
|
327
328
|
className: "relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/5 via-primary/3 to-background border border-border/50 p-6 shadow-sm",
|
|
328
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ E("div", {
|
|
329
330
|
className: "relative z-10 flex items-center gap-4",
|
|
330
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ T("button", {
|
|
331
332
|
type: "button",
|
|
332
|
-
onClick: () => O?.(
|
|
333
|
+
onClick: () => O?.(_),
|
|
333
334
|
className: "p-2.5 hover:bg-accent rounded-lg transition-all duration-200 hover:scale-110",
|
|
334
335
|
"aria-label": a(R, "sandbox.create.header.back.ariaLabel", "Back to sandboxes"),
|
|
335
|
-
children: /* @__PURE__ */
|
|
336
|
-
}), /* @__PURE__ */
|
|
336
|
+
children: /* @__PURE__ */ T(f, { size: 20 })
|
|
337
|
+
}), /* @__PURE__ */ E("div", {
|
|
337
338
|
className: "flex items-center gap-3",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ T("div", {
|
|
339
340
|
className: "p-2.5 rounded-lg bg-primary/10 backdrop-blur-sm",
|
|
340
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ T(p, {
|
|
341
342
|
size: 24,
|
|
342
343
|
className: "text-primary"
|
|
343
344
|
})
|
|
344
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ T("h1", {
|
|
345
346
|
className: "text-2xl sm:text-3xl font-bold",
|
|
346
347
|
children: a(R, "sandbox.create.header.title", "Create Sandbox")
|
|
347
348
|
})]
|
|
348
349
|
})]
|
|
349
|
-
}), /* @__PURE__ */
|
|
350
|
+
}), /* @__PURE__ */ T("div", { className: "absolute top-0 right-0 size-64 bg-gradient-to-br from-primary/10 to-transparent rounded-full blur-3xl -z-0" })]
|
|
350
351
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
onSubmit:
|
|
352
|
+
/* @__PURE__ */ E("form", {
|
|
353
|
+
onSubmit: ge,
|
|
353
354
|
className: "space-y-6",
|
|
354
355
|
children: [
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ T(r, { children: /* @__PURE__ */ E(i, {
|
|
356
357
|
className: "p-6 space-y-5",
|
|
357
358
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ E("h2", {
|
|
359
360
|
className: "text-lg font-bold flex items-center gap-2",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ T(v, {
|
|
361
362
|
size: 18,
|
|
362
363
|
className: "text-primary"
|
|
363
364
|
}), a(R, "sandbox.create.sections.basicInfo.title", "Basic Information")]
|
|
364
365
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ E("div", { children: [
|
|
367
|
+
/* @__PURE__ */ E("label", {
|
|
367
368
|
htmlFor: "name",
|
|
368
369
|
className: "block text-sm font-semibold mb-2",
|
|
369
370
|
children: [
|
|
370
371
|
a(R, "sandbox.create.fields.name.label", "Name"),
|
|
371
372
|
" ",
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ T("span", {
|
|
373
374
|
className: "text-destructive",
|
|
374
375
|
children: "*"
|
|
375
376
|
})
|
|
376
377
|
]
|
|
377
378
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ T("input", {
|
|
379
380
|
"aria-label": "Name",
|
|
380
381
|
type: "text",
|
|
381
382
|
id: "name",
|
|
@@ -384,16 +385,16 @@ function L() {
|
|
|
384
385
|
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U.name ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
385
386
|
placeholder: a(R, "sandbox.create.fields.name.placeholder", "My Sandbox")
|
|
386
387
|
}),
|
|
387
|
-
U.name && /* @__PURE__ */
|
|
388
|
+
U.name && /* @__PURE__ */ E("p", {
|
|
388
389
|
className: "text-sm text-destructive mt-1 flex items-center gap-1",
|
|
389
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ T(d, { size: 14 }), U.name]
|
|
390
391
|
})
|
|
391
392
|
] }),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
393
394
|
htmlFor: "description",
|
|
394
395
|
className: "block text-sm font-semibold mb-2",
|
|
395
396
|
children: a(R, "sandbox.create.fields.description.label", "Description")
|
|
396
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ T("textarea", {
|
|
397
398
|
"aria-label": "Description",
|
|
398
399
|
id: "description",
|
|
399
400
|
value: V.description,
|
|
@@ -402,14 +403,14 @@ function L() {
|
|
|
402
403
|
className: "w-full px-4 py-2.5 border-2 border-border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
|
|
403
404
|
placeholder: a(R, "sandbox.create.fields.description.placeholder", "What is this sandbox for?")
|
|
404
405
|
})] }),
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
406
407
|
className: "block text-sm font-semibold mb-3",
|
|
407
408
|
children: a(R, "sandbox.create.fields.template.label", "Template")
|
|
408
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ T("div", {
|
|
409
410
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
410
411
|
children: A.map((e) => {
|
|
411
412
|
let t = e.icon, n = V.template === e.value;
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */ E("button", {
|
|
413
414
|
type: "button",
|
|
414
415
|
onClick: () => {
|
|
415
416
|
e.value === "MISC_SHELL" ? H((e) => ({
|
|
@@ -447,15 +448,15 @@ function L() {
|
|
|
447
448
|
},
|
|
448
449
|
className: `p-4 rounded-lg border-2 text-left transition-all duration-200 ${n ? "border-primary bg-primary/5 shadow-sm" : "border-border hover:border-primary/50 hover:bg-muted/50"}`,
|
|
449
450
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ T(t, {
|
|
451
452
|
size: 24,
|
|
452
453
|
className: n ? "text-primary" : "text-muted-foreground"
|
|
453
454
|
}),
|
|
454
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ T("p", {
|
|
455
456
|
className: "font-medium mt-2",
|
|
456
457
|
children: a(R, e.labelKey, e.labelFallback)
|
|
457
458
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ T("p", {
|
|
459
460
|
className: "text-xs text-muted-foreground mt-0.5",
|
|
460
461
|
children: a(R, e.descriptionKey, e.descriptionFallback)
|
|
461
462
|
})
|
|
@@ -463,10 +464,10 @@ function L() {
|
|
|
463
464
|
}, e.value);
|
|
464
465
|
})
|
|
465
466
|
})] }),
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
|
|
467
468
|
className: "block text-sm font-semibold mb-3",
|
|
468
|
-
children: [a(R, "sandbox.create.fields.executionMode.label", "Execution Mode"), /* @__PURE__ */
|
|
469
|
-
}), /* @__PURE__ */
|
|
469
|
+
children: [a(R, "sandbox.create.fields.executionMode.label", "Execution Mode"), /* @__PURE__ */ T(M, { text: a(R, "sandbox.create.fields.executionMode.help", "Deployment keeps your sandbox running continuously and restarts on failure. Job runs to completion and exits when done.") })]
|
|
470
|
+
}), /* @__PURE__ */ T("div", {
|
|
470
471
|
className: "grid grid-cols-2 gap-3",
|
|
471
472
|
children: [{
|
|
472
473
|
value: "DEPLOYMENT",
|
|
@@ -480,14 +481,14 @@ function L() {
|
|
|
480
481
|
labelFallback: "Job",
|
|
481
482
|
descKey: "sandbox.create.fields.executionMode.job.description",
|
|
482
483
|
descFallback: "Run-to-completion task (exits when done)"
|
|
483
|
-
}].map((e) => /* @__PURE__ */
|
|
484
|
+
}].map((e) => /* @__PURE__ */ E("button", {
|
|
484
485
|
type: "button",
|
|
485
486
|
onClick: () => Z("mode", e.value),
|
|
486
487
|
className: `p-3 rounded-lg border-2 text-left transition-all duration-200 ${V.mode === e.value ? "border-primary bg-primary/5 shadow-sm" : "border-border hover:border-primary/50 hover:bg-muted/50"}`,
|
|
487
|
-
children: [/* @__PURE__ */
|
|
488
|
+
children: [/* @__PURE__ */ T("p", {
|
|
488
489
|
className: "font-medium text-sm",
|
|
489
490
|
children: a(R, e.labelKey, e.labelFallback)
|
|
490
|
-
}), /* @__PURE__ */
|
|
491
|
+
}), /* @__PURE__ */ T("p", {
|
|
491
492
|
className: "text-xs text-muted-foreground mt-0.5",
|
|
492
493
|
children: a(R, e.descKey, e.descFallback)
|
|
493
494
|
})]
|
|
@@ -495,131 +496,131 @@ function L() {
|
|
|
495
496
|
})] })
|
|
496
497
|
]
|
|
497
498
|
}) }),
|
|
498
|
-
Y.length > 0 && /* @__PURE__ */
|
|
499
|
+
Y.length > 0 && /* @__PURE__ */ T(r, { children: /* @__PURE__ */ E(i, {
|
|
499
500
|
className: "p-6 space-y-4",
|
|
500
501
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
+
/* @__PURE__ */ E("h2", {
|
|
502
503
|
className: "text-lg font-bold flex items-center gap-2",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
504
|
+
children: [/* @__PURE__ */ T(p, {
|
|
504
505
|
size: 18,
|
|
505
506
|
className: "text-primary"
|
|
506
507
|
}), a(R, "sandbox.create.sections.quickStartTemplates.title", "Quick Start Templates")]
|
|
507
508
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ T("div", {
|
|
509
510
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",
|
|
510
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
511
|
+
children: Y.map((e) => /* @__PURE__ */ E("button", {
|
|
511
512
|
type: "button",
|
|
512
|
-
onClick: () =>
|
|
513
|
+
onClick: () => ce(e),
|
|
513
514
|
className: `p-4 rounded-lg border-2 text-left transition-all duration-200 ${V.templateId === e.id ? "border-primary bg-primary/5 shadow-sm" : "border-border hover:border-primary/50 hover:bg-muted/50"}`,
|
|
514
515
|
children: [
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ E("div", {
|
|
516
517
|
className: "flex items-center gap-2 mb-2",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ T("span", {
|
|
518
519
|
className: "font-medium text-sm",
|
|
519
520
|
children: e.name
|
|
520
|
-
}), e.isDefault && /* @__PURE__ */
|
|
521
|
+
}), e.isDefault && /* @__PURE__ */ T(t, {
|
|
521
522
|
variant: "secondary",
|
|
522
523
|
className: "text-xs",
|
|
523
524
|
children: a(R, "sandbox.create.sections.quickStartTemplates.defaultBadge", "Default")
|
|
524
525
|
})]
|
|
525
526
|
}),
|
|
526
|
-
e.description && /* @__PURE__ */
|
|
527
|
+
e.description && /* @__PURE__ */ T("p", {
|
|
527
528
|
className: "text-xs text-muted-foreground mb-2",
|
|
528
529
|
children: e.description
|
|
529
530
|
}),
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ E("div", {
|
|
531
532
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
532
533
|
children: [
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ E("span", { children: [e.resources?.cpuRequest ?? "?", " CPU"] }),
|
|
535
|
+
/* @__PURE__ */ T("span", {
|
|
535
536
|
className: "text-muted-foreground/40",
|
|
536
537
|
children: "|"
|
|
537
538
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
539
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ E("span", { children: [e.resources?.memoryRequest ?? "?", " mem"] }),
|
|
540
|
+
/* @__PURE__ */ T("span", {
|
|
540
541
|
className: "text-muted-foreground/40",
|
|
541
542
|
children: "|"
|
|
542
543
|
}),
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ E("span", { children: [e.containers?.length ?? 0, " containers"] }),
|
|
545
|
+
/* @__PURE__ */ T("span", {
|
|
545
546
|
className: "text-muted-foreground/40",
|
|
546
547
|
children: "|"
|
|
547
548
|
}),
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ T("span", { children: $(e.ttlSeconds) })
|
|
549
550
|
]
|
|
550
551
|
})
|
|
551
552
|
]
|
|
552
553
|
}, e.id))
|
|
553
554
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ T("p", {
|
|
555
556
|
className: "text-xs text-muted-foreground",
|
|
556
557
|
children: a(R, "sandbox.create.sections.quickStartTemplates.hint", "Select a template or customize resources below")
|
|
557
558
|
})
|
|
558
559
|
]
|
|
559
560
|
}) }),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ T(r, { children: /* @__PURE__ */ E(i, {
|
|
561
562
|
className: "p-6 space-y-5",
|
|
562
563
|
children: [
|
|
563
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ E("div", {
|
|
564
565
|
className: "flex items-center justify-between",
|
|
565
|
-
children: [/* @__PURE__ */
|
|
566
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
566
567
|
className: "text-lg font-bold flex items-center gap-2",
|
|
567
568
|
children: [
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ T(h, {
|
|
569
570
|
size: 18,
|
|
570
571
|
className: "text-primary"
|
|
571
572
|
}),
|
|
572
573
|
a(R, "sandbox.create.sections.containers.title", "Containers"),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ T(M, { text: a(R, "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.") }),
|
|
575
|
+
/* @__PURE__ */ T(t, {
|
|
575
576
|
variant: "secondary",
|
|
576
577
|
children: V.containers.length
|
|
577
578
|
})
|
|
578
579
|
]
|
|
579
|
-
}), /* @__PURE__ */
|
|
580
|
+
}), /* @__PURE__ */ E(n, {
|
|
580
581
|
type: "button",
|
|
581
582
|
variant: "outline",
|
|
582
583
|
size: "sm",
|
|
583
|
-
onClick:
|
|
584
|
-
children: [/* @__PURE__ */
|
|
584
|
+
onClick: le,
|
|
585
|
+
children: [/* @__PURE__ */ T(ie, { size: 14 }), a(R, "sandbox.create.sections.containers.addContainer", "Add Container")]
|
|
585
586
|
})]
|
|
586
587
|
}),
|
|
587
|
-
U.containers && /* @__PURE__ */
|
|
588
|
+
U.containers && /* @__PURE__ */ E("p", {
|
|
588
589
|
className: "text-sm text-destructive flex items-center gap-1",
|
|
589
|
-
children: [/* @__PURE__ */
|
|
590
|
+
children: [/* @__PURE__ */ T(d, { size: 14 }), U.containers]
|
|
590
591
|
}),
|
|
591
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ T("div", {
|
|
592
593
|
className: "space-y-4",
|
|
593
|
-
children: V.containers.map((e, t) => /* @__PURE__ */
|
|
594
|
+
children: V.containers.map((e, t) => /* @__PURE__ */ E("div", {
|
|
594
595
|
className: "p-4 rounded-lg border-2 border-border/50 bg-muted/20 space-y-4",
|
|
595
596
|
children: [
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ E("div", {
|
|
597
598
|
className: "flex items-center justify-between",
|
|
598
|
-
children: [/* @__PURE__ */
|
|
599
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
599
600
|
className: "font-semibold text-sm",
|
|
600
601
|
children: [a(R, "sandbox.create.container.heading", "Container #{number}", { number: t + 1 }), e.name && `: ${e.name}`]
|
|
601
|
-
}), V.containers.length > 1 && /* @__PURE__ */
|
|
602
|
+
}), V.containers.length > 1 && /* @__PURE__ */ T(n, {
|
|
602
603
|
type: "button",
|
|
603
604
|
variant: "ghost",
|
|
604
605
|
size: "icon",
|
|
605
606
|
className: "text-destructive hover:text-destructive size-7",
|
|
606
|
-
onClick: () =>
|
|
607
|
-
children: /* @__PURE__ */
|
|
607
|
+
onClick: () => ue(t),
|
|
608
|
+
children: /* @__PURE__ */ T(C, { size: 14 })
|
|
608
609
|
})]
|
|
609
610
|
}),
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
611
|
+
/* @__PURE__ */ E("div", { children: [
|
|
612
|
+
/* @__PURE__ */ E("label", {
|
|
612
613
|
className: "block text-xs font-semibold mb-1",
|
|
613
614
|
children: [
|
|
614
615
|
a(R, "sandbox.create.container.fields.name.label", "Name"),
|
|
615
616
|
" ",
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ T("span", {
|
|
617
618
|
className: "text-destructive",
|
|
618
619
|
children: "*"
|
|
619
620
|
})
|
|
620
621
|
]
|
|
621
622
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ T("input", {
|
|
623
624
|
"aria-label": "Name",
|
|
624
625
|
type: "text",
|
|
625
626
|
value: e.name,
|
|
@@ -627,43 +628,43 @@ function L() {
|
|
|
627
628
|
className: `w-full px-3 py-2 border-2 rounded-lg bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U[`container_${t}_name`] ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
628
629
|
placeholder: a(R, "sandbox.create.container.fields.name.placeholder", "main")
|
|
629
630
|
}),
|
|
630
|
-
U[`container_${t}_name`] && /* @__PURE__ */
|
|
631
|
+
U[`container_${t}_name`] && /* @__PURE__ */ T("p", {
|
|
631
632
|
className: "text-xs text-destructive mt-1",
|
|
632
633
|
children: U[`container_${t}_name`]
|
|
633
634
|
})
|
|
634
635
|
] }),
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ E("div", { children: [
|
|
637
|
+
/* @__PURE__ */ E("label", {
|
|
637
638
|
className: "block text-xs font-semibold mb-1",
|
|
638
639
|
children: [
|
|
639
640
|
a(R, "sandbox.create.container.fields.image.label", "Image"),
|
|
640
641
|
" ",
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ T("span", {
|
|
642
643
|
className: "text-destructive",
|
|
643
644
|
children: "*"
|
|
644
645
|
})
|
|
645
646
|
]
|
|
646
647
|
}),
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ E("div", {
|
|
648
649
|
className: "flex gap-2 mb-2",
|
|
649
|
-
children: [/* @__PURE__ */
|
|
650
|
+
children: [/* @__PURE__ */ T("button", {
|
|
650
651
|
type: "button",
|
|
651
652
|
onClick: () => Q(t, "_registryType", "burdenoff"),
|
|
652
653
|
className: `flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${(e._registryType || "burdenoff") === "burdenoff" ? "border-primary bg-primary/10 text-primary" : "border-border-default text-text-secondary hover:bg-bg-sunken"}`,
|
|
653
654
|
children: a(R, "sandbox.create.container.fields.image.registryBurdenoff", "Burdenoff Repositories")
|
|
654
|
-
}), /* @__PURE__ */
|
|
655
|
+
}), /* @__PURE__ */ T("button", {
|
|
655
656
|
type: "button",
|
|
656
657
|
onClick: () => Q(t, "_registryType", "custom"),
|
|
657
658
|
className: `flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${e._registryType === "custom" ? "border-primary bg-primary/10 text-primary" : "border-border-default text-text-secondary hover:bg-bg-sunken"}`,
|
|
658
659
|
children: a(R, "sandbox.create.container.fields.image.registryCustom", "Custom (Docker Hub)")
|
|
659
660
|
})]
|
|
660
661
|
}),
|
|
661
|
-
(e._registryType || "burdenoff") === "burdenoff" ? /* @__PURE__ */
|
|
662
|
+
(e._registryType || "burdenoff") === "burdenoff" ? /* @__PURE__ */ E("div", {
|
|
662
663
|
className: "flex items-center",
|
|
663
|
-
children: [/* @__PURE__ */
|
|
664
|
+
children: [/* @__PURE__ */ T("span", {
|
|
664
665
|
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",
|
|
665
666
|
children: "burdenoffregistry.azurecr.io/"
|
|
666
|
-
}), /* @__PURE__ */
|
|
667
|
+
}), /* @__PURE__ */ T("input", {
|
|
667
668
|
"aria-label": "input",
|
|
668
669
|
type: "text",
|
|
669
670
|
value: e.image,
|
|
@@ -671,7 +672,7 @@ function L() {
|
|
|
671
672
|
className: `w-full px-3 py-2 border-2 rounded-r-lg bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U[`container_${t}_image`] ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
672
673
|
placeholder: P
|
|
673
674
|
})]
|
|
674
|
-
}) : /* @__PURE__ */
|
|
675
|
+
}) : /* @__PURE__ */ T("input", {
|
|
675
676
|
"aria-label": "input",
|
|
676
677
|
type: "text",
|
|
677
678
|
value: e.image,
|
|
@@ -679,21 +680,21 @@ function L() {
|
|
|
679
680
|
className: `w-full px-3 py-2 border-2 rounded-lg bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U[`container_${t}_image`] ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
680
681
|
placeholder: "nginx:alpine"
|
|
681
682
|
}),
|
|
682
|
-
U[`container_${t}_image`] && /* @__PURE__ */
|
|
683
|
+
U[`container_${t}_image`] && /* @__PURE__ */ T("p", {
|
|
683
684
|
className: "text-xs text-destructive mt-1",
|
|
684
685
|
children: U[`container_${t}_image`]
|
|
685
686
|
})
|
|
686
687
|
] }),
|
|
687
|
-
/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
688
689
|
className: "text-xs font-semibold mb-2 text-muted-foreground",
|
|
689
690
|
children: a(R, "sandbox.create.container.resources.title", "Per-Container Resources (optional)")
|
|
690
|
-
}), /* @__PURE__ */
|
|
691
|
+
}), /* @__PURE__ */ E("div", {
|
|
691
692
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
692
693
|
children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
694
695
|
className: "block text-xs text-muted-foreground mb-1",
|
|
695
696
|
children: a(R, "sandbox.create.container.resources.cpuReq", "CPU Req")
|
|
696
|
-
}), /* @__PURE__ */
|
|
697
|
+
}), /* @__PURE__ */ T("input", {
|
|
697
698
|
"aria-label": "CPU Req",
|
|
698
699
|
type: "text",
|
|
699
700
|
value: e.requestsCpu,
|
|
@@ -701,10 +702,10 @@ function L() {
|
|
|
701
702
|
className: "w-full px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
702
703
|
placeholder: "250m"
|
|
703
704
|
})] }),
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
705
706
|
className: "block text-xs text-muted-foreground mb-1",
|
|
706
707
|
children: a(R, "sandbox.create.container.resources.cpuLim", "CPU Lim")
|
|
707
|
-
}), /* @__PURE__ */
|
|
708
|
+
}), /* @__PURE__ */ T("input", {
|
|
708
709
|
"aria-label": "CPU Lim",
|
|
709
710
|
type: "text",
|
|
710
711
|
value: e.limitsCpu,
|
|
@@ -712,10 +713,10 @@ function L() {
|
|
|
712
713
|
className: "w-full px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
713
714
|
placeholder: "1"
|
|
714
715
|
})] }),
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
716
717
|
className: "block text-xs text-muted-foreground mb-1",
|
|
717
718
|
children: a(R, "sandbox.create.container.resources.memReq", "Mem Req")
|
|
718
|
-
}), /* @__PURE__ */
|
|
719
|
+
}), /* @__PURE__ */ T("input", {
|
|
719
720
|
"aria-label": "Mem Req",
|
|
720
721
|
type: "text",
|
|
721
722
|
value: e.requestsMemory,
|
|
@@ -723,10 +724,10 @@ function L() {
|
|
|
723
724
|
className: "w-full px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
724
725
|
placeholder: "512Mi"
|
|
725
726
|
})] }),
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
727
728
|
className: "block text-xs text-muted-foreground mb-1",
|
|
728
729
|
children: a(R, "sandbox.create.container.resources.memLim", "Mem Lim")
|
|
729
|
-
}), /* @__PURE__ */
|
|
730
|
+
}), /* @__PURE__ */ T("input", {
|
|
730
731
|
"aria-label": "Mem Lim",
|
|
731
732
|
type: "text",
|
|
732
733
|
value: e.limitsMemory,
|
|
@@ -736,21 +737,21 @@ function L() {
|
|
|
736
737
|
})] })
|
|
737
738
|
]
|
|
738
739
|
})] }),
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
740
741
|
className: "flex items-center justify-between mb-2",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
742
|
+
children: [/* @__PURE__ */ T("p", {
|
|
742
743
|
className: "text-xs font-semibold text-muted-foreground",
|
|
743
744
|
children: a(R, "sandbox.create.container.ports.title", "Ports")
|
|
744
|
-
}), /* @__PURE__ */
|
|
745
|
+
}), /* @__PURE__ */ T("button", {
|
|
745
746
|
type: "button",
|
|
746
|
-
onClick: () =>
|
|
747
|
+
onClick: () => de(t),
|
|
747
748
|
className: "text-xs text-primary hover:underline",
|
|
748
749
|
children: a(R, "sandbox.create.container.ports.add", "+ Add Port")
|
|
749
750
|
})]
|
|
750
|
-
}), e.ports.map((n, r) => /* @__PURE__ */
|
|
751
|
+
}), e.ports.map((n, r) => /* @__PURE__ */ E("div", {
|
|
751
752
|
className: "flex items-center gap-2 mb-2",
|
|
752
753
|
children: [
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ T("input", {
|
|
754
755
|
"aria-label": "input",
|
|
755
756
|
type: "number",
|
|
756
757
|
value: n.containerPort,
|
|
@@ -764,7 +765,7 @@ function L() {
|
|
|
764
765
|
className: "w-24 px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
765
766
|
placeholder: "8080"
|
|
766
767
|
}),
|
|
767
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ T("input", {
|
|
768
769
|
"aria-label": "input",
|
|
769
770
|
type: "text",
|
|
770
771
|
value: n.name,
|
|
@@ -778,29 +779,29 @@ function L() {
|
|
|
778
779
|
className: "flex-1 px-3 py-1.5 border rounded-lg bg-background text-xs focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
779
780
|
placeholder: a(R, "sandbox.create.container.ports.namePlaceholder", "Port name (optional)")
|
|
780
781
|
}),
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ T("button", {
|
|
782
783
|
type: "button",
|
|
783
|
-
onClick: () =>
|
|
784
|
+
onClick: () => fe(t, r),
|
|
784
785
|
className: "p-1.5 text-destructive hover:bg-destructive/10 rounded",
|
|
785
|
-
children: /* @__PURE__ */
|
|
786
|
+
children: /* @__PURE__ */ T(w, { size: 12 })
|
|
786
787
|
})
|
|
787
788
|
]
|
|
788
789
|
}, n._rowId))] }),
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
790
791
|
className: "flex items-center justify-between mb-2",
|
|
791
|
-
children: [/* @__PURE__ */
|
|
792
|
+
children: [/* @__PURE__ */ T("p", {
|
|
792
793
|
className: "text-xs font-semibold text-muted-foreground",
|
|
793
794
|
children: a(R, "sandbox.create.container.envVars.title", "Environment Variables")
|
|
794
|
-
}), /* @__PURE__ */
|
|
795
|
+
}), /* @__PURE__ */ T("button", {
|
|
795
796
|
type: "button",
|
|
796
|
-
onClick: () =>
|
|
797
|
+
onClick: () => pe(t),
|
|
797
798
|
className: "text-xs text-primary hover:underline",
|
|
798
799
|
children: a(R, "sandbox.create.container.envVars.add", "+ Add Variable")
|
|
799
800
|
})]
|
|
800
|
-
}), e.env.map((n, r) => /* @__PURE__ */
|
|
801
|
+
}), e.env.map((n, r) => /* @__PURE__ */ E("div", {
|
|
801
802
|
className: "flex items-center gap-2 mb-2",
|
|
802
803
|
children: [
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ T("input", {
|
|
804
805
|
"aria-label": "input",
|
|
805
806
|
type: "text",
|
|
806
807
|
value: n.name,
|
|
@@ -814,7 +815,7 @@ function L() {
|
|
|
814
815
|
className: "w-1/3 px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
815
816
|
placeholder: "KEY"
|
|
816
817
|
}),
|
|
817
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ T("input", {
|
|
818
819
|
"aria-label": "input",
|
|
819
820
|
type: "text",
|
|
820
821
|
value: n.value,
|
|
@@ -828,11 +829,11 @@ function L() {
|
|
|
828
829
|
className: "flex-1 px-3 py-1.5 border rounded-lg bg-background text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
829
830
|
placeholder: "value"
|
|
830
831
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ T("button", {
|
|
832
833
|
type: "button",
|
|
833
|
-
onClick: () =>
|
|
834
|
+
onClick: () => me(t, r),
|
|
834
835
|
className: "p-1.5 text-destructive hover:bg-destructive/10 rounded",
|
|
835
|
-
children: /* @__PURE__ */
|
|
836
|
+
children: /* @__PURE__ */ T(w, { size: 12 })
|
|
836
837
|
})
|
|
837
838
|
]
|
|
838
839
|
}, `${e._rowId}-env-${r}-${n.name}`))] })
|
|
@@ -841,136 +842,140 @@ function L() {
|
|
|
841
842
|
})
|
|
842
843
|
]
|
|
843
844
|
}) }),
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ T(r, { children: /* @__PURE__ */ E(i, {
|
|
845
846
|
className: "p-6 space-y-5",
|
|
846
847
|
children: [
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ E("h2", {
|
|
848
849
|
className: "text-lg font-bold flex items-center gap-2",
|
|
849
850
|
children: [
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ T(g, {
|
|
851
852
|
size: 18,
|
|
852
853
|
className: "text-primary"
|
|
853
854
|
}),
|
|
854
855
|
a(R, "sandbox.create.sections.podResources.title", "Pod Resources"),
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ T(M, { text: a(R, "sandbox.create.sections.podResources.help", "Resources allocated to the entire sandbox. CPU is in millicores (1000m = 1 CPU core). Memory in MiB or GiB.") })
|
|
856
857
|
]
|
|
857
858
|
}),
|
|
858
|
-
/* @__PURE__ */ D
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
className: "text-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
className: "text-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
className: "text-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
className: "text-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
859
|
+
/* @__PURE__ */ T(D, {
|
|
860
|
+
title: a(R, "sandbox.create.sections.podResources.advancedTitle", "Advanced resource limits"),
|
|
861
|
+
description: a(R, "sandbox.create.sections.podResources.advancedDescription", "CPU and memory requests/limits. Defaults work for most sandboxes."),
|
|
862
|
+
children: /* @__PURE__ */ E("div", {
|
|
863
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ E("div", { children: [
|
|
866
|
+
/* @__PURE__ */ E("label", {
|
|
867
|
+
htmlFor: "cpuRequest",
|
|
868
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
869
|
+
children: [/* @__PURE__ */ T(g, {
|
|
870
|
+
size: 14,
|
|
871
|
+
className: "text-status-info-text"
|
|
872
|
+
}), a(R, "sandbox.create.fields.cpuRequest.label", "CPU Request")]
|
|
873
|
+
}),
|
|
874
|
+
/* @__PURE__ */ T("input", {
|
|
875
|
+
"aria-label": "CPU Request",
|
|
876
|
+
type: "text",
|
|
877
|
+
id: "cpuRequest",
|
|
878
|
+
value: V.cpuRequest,
|
|
879
|
+
onChange: (e) => Z("cpuRequest", e.target.value),
|
|
880
|
+
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U.cpuRequest ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
881
|
+
placeholder: "500m"
|
|
882
|
+
}),
|
|
883
|
+
U.cpuRequest && /* @__PURE__ */ T("p", {
|
|
884
|
+
className: "text-sm text-destructive mt-1",
|
|
885
|
+
children: U.cpuRequest
|
|
886
|
+
})
|
|
887
|
+
] }),
|
|
888
|
+
/* @__PURE__ */ E("div", { children: [
|
|
889
|
+
/* @__PURE__ */ E("label", {
|
|
890
|
+
htmlFor: "cpuLimit",
|
|
891
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
892
|
+
children: [/* @__PURE__ */ T(g, {
|
|
893
|
+
size: 14,
|
|
894
|
+
className: "text-status-info-text"
|
|
895
|
+
}), a(R, "sandbox.create.fields.cpuLimit.label", "CPU Limit")]
|
|
896
|
+
}),
|
|
897
|
+
/* @__PURE__ */ T("input", {
|
|
898
|
+
"aria-label": "CPU Limit",
|
|
899
|
+
type: "text",
|
|
900
|
+
id: "cpuLimit",
|
|
901
|
+
value: V.cpuLimit,
|
|
902
|
+
onChange: (e) => Z("cpuLimit", e.target.value),
|
|
903
|
+
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U.cpuLimit ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
904
|
+
placeholder: "2"
|
|
905
|
+
}),
|
|
906
|
+
U.cpuLimit && /* @__PURE__ */ T("p", {
|
|
907
|
+
className: "text-sm text-destructive mt-1",
|
|
908
|
+
children: U.cpuLimit
|
|
909
|
+
})
|
|
910
|
+
] }),
|
|
911
|
+
/* @__PURE__ */ E("div", { children: [
|
|
912
|
+
/* @__PURE__ */ E("label", {
|
|
913
|
+
htmlFor: "memoryRequest",
|
|
914
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
915
|
+
children: [/* @__PURE__ */ T(y, {
|
|
916
|
+
size: 14,
|
|
917
|
+
className: "text-accent-purple-subtle"
|
|
918
|
+
}), a(R, "sandbox.create.fields.memoryRequest.label", "Memory Request")]
|
|
919
|
+
}),
|
|
920
|
+
/* @__PURE__ */ T("input", {
|
|
921
|
+
"aria-label": "Memory Request",
|
|
922
|
+
type: "text",
|
|
923
|
+
id: "memoryRequest",
|
|
924
|
+
value: V.memoryRequest,
|
|
925
|
+
onChange: (e) => Z("memoryRequest", e.target.value),
|
|
926
|
+
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U.memoryRequest ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
927
|
+
placeholder: "1Gi"
|
|
928
|
+
}),
|
|
929
|
+
U.memoryRequest && /* @__PURE__ */ T("p", {
|
|
930
|
+
className: "text-sm text-destructive mt-1",
|
|
931
|
+
children: U.memoryRequest
|
|
932
|
+
})
|
|
933
|
+
] }),
|
|
934
|
+
/* @__PURE__ */ E("div", { children: [
|
|
935
|
+
/* @__PURE__ */ E("label", {
|
|
936
|
+
htmlFor: "memoryLimit",
|
|
937
|
+
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
938
|
+
children: [/* @__PURE__ */ T(y, {
|
|
939
|
+
size: 14,
|
|
940
|
+
className: "text-accent-purple-subtle"
|
|
941
|
+
}), a(R, "sandbox.create.fields.memoryLimit.label", "Memory Limit")]
|
|
942
|
+
}),
|
|
943
|
+
/* @__PURE__ */ T("input", {
|
|
944
|
+
"aria-label": "Memory Limit",
|
|
945
|
+
type: "text",
|
|
946
|
+
id: "memoryLimit",
|
|
947
|
+
value: V.memoryLimit,
|
|
948
|
+
onChange: (e) => Z("memoryLimit", e.target.value),
|
|
949
|
+
className: `w-full px-4 py-2.5 border-2 rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${U.memoryLimit ? "border-destructive" : "border-border focus:border-primary"}`,
|
|
950
|
+
placeholder: "4Gi"
|
|
951
|
+
}),
|
|
952
|
+
U.memoryLimit && /* @__PURE__ */ T("p", {
|
|
953
|
+
className: "text-sm text-destructive mt-1",
|
|
954
|
+
children: U.memoryLimit
|
|
955
|
+
})
|
|
956
|
+
] })
|
|
957
|
+
]
|
|
958
|
+
})
|
|
954
959
|
}),
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ E("div", { children: [
|
|
961
|
+
/* @__PURE__ */ E("label", {
|
|
957
962
|
htmlFor: "ttlSeconds",
|
|
958
963
|
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
959
964
|
children: [
|
|
960
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ T(S, {
|
|
961
966
|
size: 14,
|
|
962
967
|
className: "text-status-info-text"
|
|
963
968
|
}),
|
|
964
969
|
a(R, "sandbox.create.fields.ttl.label", "Time to Live"),
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ T(M, { text: a(R, "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.") }),
|
|
971
|
+
/* @__PURE__ */ T(t, {
|
|
967
972
|
variant: "outline",
|
|
968
973
|
className: "text-xs ml-auto",
|
|
969
974
|
children: $(V.ttlSeconds)
|
|
970
975
|
})
|
|
971
976
|
]
|
|
972
977
|
}),
|
|
973
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ T("input", {
|
|
974
979
|
"aria-label": "Time to Live",
|
|
975
980
|
type: "range",
|
|
976
981
|
id: "ttlSeconds",
|
|
@@ -981,47 +986,47 @@ function L() {
|
|
|
981
986
|
onChange: (e) => Z("ttlSeconds", Number(e.target.value)),
|
|
982
987
|
className: "w-full mt-2 accent-primary"
|
|
983
988
|
}),
|
|
984
|
-
/* @__PURE__ */
|
|
989
|
+
/* @__PURE__ */ E("div", {
|
|
985
990
|
className: "flex justify-between text-xs text-muted-foreground mt-1",
|
|
986
991
|
children: [
|
|
987
|
-
/* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ T("span", { children: "10m" }),
|
|
993
|
+
/* @__PURE__ */ T("span", { children: "4h" }),
|
|
994
|
+
/* @__PURE__ */ T("span", { children: "12h" }),
|
|
995
|
+
/* @__PURE__ */ T("span", { children: "24h" })
|
|
991
996
|
]
|
|
992
997
|
}),
|
|
993
|
-
U.ttlSeconds && /* @__PURE__ */
|
|
998
|
+
U.ttlSeconds && /* @__PURE__ */ T("p", {
|
|
994
999
|
className: "text-sm text-destructive mt-1",
|
|
995
1000
|
children: U.ttlSeconds
|
|
996
1001
|
})
|
|
997
1002
|
] }),
|
|
998
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("label", {
|
|
999
1004
|
className: "text-sm font-semibold mb-2 flex items-center gap-2",
|
|
1000
|
-
children: [a(R, "sandbox.create.fields.tags.label", "Tags"), /* @__PURE__ */
|
|
1001
|
-
}), /* @__PURE__ */
|
|
1005
|
+
children: [a(R, "sandbox.create.fields.tags.label", "Tags"), /* @__PURE__ */ T(M, { text: a(R, "sandbox.create.fields.tags.help", "Free-form labels. Use them to filter the sandbox list. Max 32 tags, 64 chars each.") })]
|
|
1006
|
+
}), /* @__PURE__ */ T(l, {
|
|
1002
1007
|
value: z,
|
|
1003
1008
|
onChange: B
|
|
1004
1009
|
})] })
|
|
1005
1010
|
]
|
|
1006
1011
|
}) }),
|
|
1007
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ T(r, { children: /* @__PURE__ */ E(i, {
|
|
1008
1013
|
className: "p-6 space-y-5",
|
|
1009
1014
|
children: [
|
|
1010
|
-
/* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ E("h2", {
|
|
1011
1016
|
className: "text-lg font-bold flex items-center gap-2",
|
|
1012
1017
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ T(ne, {
|
|
1014
1019
|
size: 18,
|
|
1015
1020
|
className: "text-primary"
|
|
1016
1021
|
}),
|
|
1017
1022
|
a(R, "sandbox.create.sections.storage.title", "Storage"),
|
|
1018
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ T(M, { text: a(R, "sandbox.create.sections.storage.help", "Ephemeral storage is fast but lost when the sandbox stops. Persistent storage survives restarts.") })
|
|
1019
1024
|
]
|
|
1020
1025
|
}),
|
|
1021
|
-
/* @__PURE__ */
|
|
1026
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1022
1027
|
className: "block text-sm font-semibold mb-3",
|
|
1023
1028
|
children: a(R, "sandbox.create.fields.storageMode.label", "Mode")
|
|
1024
|
-
}), /* @__PURE__ */
|
|
1029
|
+
}), /* @__PURE__ */ T("div", {
|
|
1025
1030
|
className: "grid grid-cols-3 gap-3",
|
|
1026
1031
|
children: [
|
|
1027
1032
|
"NONE",
|
|
@@ -1037,28 +1042,28 @@ function L() {
|
|
|
1037
1042
|
EPHEMERAL: a(R, "sandbox.create.fields.storageMode.ephemeral.description", "Lost when sandbox stops"),
|
|
1038
1043
|
PERSISTENT: a(R, "sandbox.create.fields.storageMode.persistent.description", "Retained across restarts")
|
|
1039
1044
|
};
|
|
1040
|
-
return /* @__PURE__ */
|
|
1045
|
+
return /* @__PURE__ */ E("button", {
|
|
1041
1046
|
type: "button",
|
|
1042
1047
|
onClick: () => Z("storageMode", e),
|
|
1043
1048
|
className: `p-3 rounded-lg border-2 text-left transition-all duration-200 ${t ? "border-primary bg-primary/5 shadow-sm" : "border-border hover:border-primary/50 hover:bg-muted/50"}`,
|
|
1044
|
-
children: [/* @__PURE__ */
|
|
1049
|
+
children: [/* @__PURE__ */ T("p", {
|
|
1045
1050
|
className: "font-medium text-sm",
|
|
1046
1051
|
children: n[e]
|
|
1047
|
-
}), /* @__PURE__ */
|
|
1052
|
+
}), /* @__PURE__ */ T("p", {
|
|
1048
1053
|
className: "text-xs text-muted-foreground mt-0.5",
|
|
1049
1054
|
children: r[e]
|
|
1050
1055
|
})]
|
|
1051
1056
|
}, e);
|
|
1052
1057
|
})
|
|
1053
1058
|
})] }),
|
|
1054
|
-
V.storageMode !== "NONE" && /* @__PURE__ */
|
|
1059
|
+
V.storageMode !== "NONE" && /* @__PURE__ */ E("div", {
|
|
1055
1060
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
1056
1061
|
children: [
|
|
1057
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1058
1063
|
htmlFor: "storageSizeGi",
|
|
1059
1064
|
className: "block text-sm font-semibold mb-2",
|
|
1060
1065
|
children: a(R, "sandbox.create.fields.storageSizeGi.label", "Size (GiB)")
|
|
1061
|
-
}), /* @__PURE__ */
|
|
1066
|
+
}), /* @__PURE__ */ T("input", {
|
|
1062
1067
|
"aria-label": "Size (GiB)",
|
|
1063
1068
|
type: "number",
|
|
1064
1069
|
id: "storageSizeGi",
|
|
@@ -1068,11 +1073,11 @@ function L() {
|
|
|
1068
1073
|
max: 200,
|
|
1069
1074
|
className: "w-full px-4 py-2.5 border-2 border-border rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all"
|
|
1070
1075
|
})] }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
1072
1077
|
htmlFor: "storageMountPath",
|
|
1073
1078
|
className: "block text-sm font-semibold mb-2",
|
|
1074
1079
|
children: a(R, "sandbox.create.fields.storageMountPath.label", "Mount Path")
|
|
1075
|
-
}), /* @__PURE__ */
|
|
1080
|
+
}), /* @__PURE__ */ T("input", {
|
|
1076
1081
|
"aria-label": "Mount Path",
|
|
1077
1082
|
type: "text",
|
|
1078
1083
|
id: "storageMountPath",
|
|
@@ -1081,24 +1086,24 @@ function L() {
|
|
|
1081
1086
|
className: "w-full px-4 py-2.5 border-2 border-border rounded-lg bg-background font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
|
|
1082
1087
|
placeholder: "/data"
|
|
1083
1088
|
})] }),
|
|
1084
|
-
V.storageMode === "PERSISTENT" && /* @__PURE__ */
|
|
1089
|
+
V.storageMode === "PERSISTENT" && /* @__PURE__ */ E("div", {
|
|
1085
1090
|
className: "flex items-center gap-3 sm:col-span-2",
|
|
1086
|
-
children: [/* @__PURE__ */
|
|
1091
|
+
children: [/* @__PURE__ */ T("input", {
|
|
1087
1092
|
"aria-label": "input",
|
|
1088
1093
|
type: "checkbox",
|
|
1089
1094
|
id: "storageRetainOnDelete",
|
|
1090
1095
|
checked: V.storageRetainOnDelete,
|
|
1091
1096
|
onChange: (e) => Z("storageRetainOnDelete", e.target.checked),
|
|
1092
1097
|
className: "size-4 rounded border-border text-primary focus:ring-primary/20"
|
|
1093
|
-
}), /* @__PURE__ */
|
|
1098
|
+
}), /* @__PURE__ */ T("label", {
|
|
1094
1099
|
htmlFor: "storageRetainOnDelete",
|
|
1095
1100
|
className: "text-sm font-medium",
|
|
1096
1101
|
children: a(R, "sandbox.create.fields.storageRetainOnDelete.label", "Retain volume data when sandbox is deleted")
|
|
1097
1102
|
})]
|
|
1098
1103
|
}),
|
|
1099
|
-
/* @__PURE__ */
|
|
1104
|
+
/* @__PURE__ */ T("div", {
|
|
1100
1105
|
className: "sm:col-span-2",
|
|
1101
|
-
children: /* @__PURE__ */
|
|
1106
|
+
children: /* @__PURE__ */ T(te, {
|
|
1102
1107
|
value: V.filesFolderId,
|
|
1103
1108
|
onChange: (e) => Z("filesFolderId", e)
|
|
1104
1109
|
})
|
|
@@ -1107,23 +1112,23 @@ function L() {
|
|
|
1107
1112
|
})
|
|
1108
1113
|
]
|
|
1109
1114
|
}) }),
|
|
1110
|
-
V.template === "MISC_SHELL" && /* @__PURE__ */
|
|
1115
|
+
V.template === "MISC_SHELL" && /* @__PURE__ */ T(r, { children: /* @__PURE__ */ T(i, {
|
|
1111
1116
|
className: "p-5",
|
|
1112
|
-
children: /* @__PURE__ */
|
|
1117
|
+
children: /* @__PURE__ */ E("details", { children: [/* @__PURE__ */ E("summary", {
|
|
1113
1118
|
className: "cursor-pointer text-sm font-semibold text-muted-foreground flex items-center gap-2",
|
|
1114
1119
|
children: [
|
|
1115
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ T(x, { size: 14 }),
|
|
1116
1121
|
a(R, "sandbox.create.sections.advancedSettings.title", "Advanced Settings"),
|
|
1117
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ T(M, { text: a(R, "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.") })
|
|
1118
1123
|
]
|
|
1119
|
-
}), /* @__PURE__ */
|
|
1124
|
+
}), /* @__PURE__ */ E("div", {
|
|
1120
1125
|
className: "mt-4 space-y-4",
|
|
1121
|
-
children: [/* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */
|
|
1126
|
+
children: [/* @__PURE__ */ E("div", { children: [
|
|
1127
|
+
/* @__PURE__ */ T("label", {
|
|
1123
1128
|
className: "block text-sm font-medium text-foreground mb-1",
|
|
1124
1129
|
children: a(R, "sandbox.create.fields.globalGatewayUrl.label", "Global Gateway URL")
|
|
1125
1130
|
}),
|
|
1126
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ T("input", {
|
|
1127
1132
|
"aria-label": "Global Gateway URL",
|
|
1128
1133
|
type: "text",
|
|
1129
1134
|
value: V.globalGatewayUrl,
|
|
@@ -1131,16 +1136,16 @@ function L() {
|
|
|
1131
1136
|
placeholder: F,
|
|
1132
1137
|
className: "w-full rounded-lg border border-border px-3 py-2 text-sm font-mono bg-background focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"
|
|
1133
1138
|
}),
|
|
1134
|
-
/* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ T("p", {
|
|
1135
1140
|
className: "text-xs text-muted-foreground mt-1",
|
|
1136
1141
|
children: a(R, "sandbox.create.fields.globalGatewayUrl.hint", "The agent authenticates via this URL. Override with a tunnel URL to reach local gateways.")
|
|
1137
1142
|
})
|
|
1138
|
-
] }), /* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1143
|
+
] }), /* @__PURE__ */ E("div", { children: [
|
|
1144
|
+
/* @__PURE__ */ T("label", {
|
|
1140
1145
|
className: "block text-sm font-medium text-foreground mb-1",
|
|
1141
1146
|
children: a(R, "sandbox.create.fields.workspaceGatewayUrl.label", "Workspace Gateway URL")
|
|
1142
1147
|
}),
|
|
1143
|
-
/* @__PURE__ */
|
|
1148
|
+
/* @__PURE__ */ T("input", {
|
|
1144
1149
|
"aria-label": "Workspace Gateway URL",
|
|
1145
1150
|
type: "text",
|
|
1146
1151
|
value: V.workspaceGatewayUrl,
|
|
@@ -1148,27 +1153,27 @@ function L() {
|
|
|
1148
1153
|
placeholder: I,
|
|
1149
1154
|
className: "w-full rounded-lg border border-border px-3 py-2 text-sm font-mono bg-background focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"
|
|
1150
1155
|
}),
|
|
1151
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ T("p", {
|
|
1152
1157
|
className: "text-xs text-muted-foreground mt-1",
|
|
1153
1158
|
children: a(R, "sandbox.create.fields.workspaceGatewayUrl.hint", "The agent reports to this URL. Override with a tunnel URL to reach local gateways.")
|
|
1154
1159
|
})
|
|
1155
1160
|
] })]
|
|
1156
1161
|
})] })
|
|
1157
1162
|
}) }),
|
|
1158
|
-
/* @__PURE__ */
|
|
1163
|
+
/* @__PURE__ */ E("div", {
|
|
1159
1164
|
className: "flex flex-col sm:flex-row gap-3 pt-2",
|
|
1160
|
-
children: [/* @__PURE__ */
|
|
1165
|
+
children: [/* @__PURE__ */ E(n, {
|
|
1161
1166
|
type: "submit",
|
|
1162
1167
|
disabled: q,
|
|
1163
1168
|
size: "lg",
|
|
1164
|
-
children: [q ? /* @__PURE__ */
|
|
1169
|
+
children: [q ? /* @__PURE__ */ T(re, {
|
|
1165
1170
|
size: 18,
|
|
1166
1171
|
className: "animate-spin"
|
|
1167
|
-
}) : /* @__PURE__ */
|
|
1168
|
-
}), /* @__PURE__ */
|
|
1172
|
+
}) : /* @__PURE__ */ T(b, { size: 18 }), a(R, "sandbox.create.actions.submit", "Create Sandbox")]
|
|
1173
|
+
}), /* @__PURE__ */ T(n, {
|
|
1169
1174
|
type: "button",
|
|
1170
1175
|
variant: "outline",
|
|
1171
|
-
onClick: () => O?.(
|
|
1176
|
+
onClick: () => O?.(_),
|
|
1172
1177
|
disabled: q,
|
|
1173
1178
|
children: a(R, "sandbox.create.actions.cancel", "Cancel")
|
|
1174
1179
|
})]
|