@lunora/studio 1.0.0-alpha.2 → 1.0.0-alpha.21
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/__assets__/package-og.svg +1 -1
- package/dist/index.d.ts +23 -17
- package/dist/index.js +34 -34
- package/dist/mount.d.ts +1 -1
- package/dist/mount.js +1 -1
- package/dist/packem_shared/{ADMIN_FUNCTION_PREFIX-DmBqMZ-z.js → ADMIN_FUNCTIONS-CdaxLGkE.js} +3 -0
- package/dist/packem_shared/{ApiDocsPanel-DpRjJhG5.js → ApiDocsPanel-BgrN4kml.js} +3 -3
- package/dist/packem_shared/{ApiReferencePanel-DMIUp-kK.js → ApiReferencePanel-1vubqG5s.js} +2 -2
- package/dist/packem_shared/{ApiTab-DURGU15e.js → ApiTab-CHkX49o_.js} +4 -4
- package/dist/packem_shared/{AuditPanel-BC59Nhst.js → AuditPanel-CP9HM9nq.js} +19 -31
- package/dist/packem_shared/{CommandPalette-Dx_CoB9i.js → CommandPalette-BtgkBzZI.js} +2 -2
- package/dist/packem_shared/{ConfirmButton-WQVUoGFb.js → ConfirmButton-C2eVi2Qv.js} +1 -1
- package/dist/packem_shared/{ConnectionBadge-Bxagrip8.js → ConnectionBadge-B2DDM2Tn.js} +1 -1
- package/dist/packem_shared/{createStudioI18n-CgvlmDkN.js → DEFAULT_LOCALE-CiX4W7Kr.js} +1 -1
- package/dist/packem_shared/{DataBrowser-Coz6jJE6.js → DataBrowser-Bb1gTQ6c.js} +182 -249
- package/dist/packem_shared/{ExportImportPanel-WO34fJxy.js → ExportImportPanel-Dj87tRa5.js} +9 -5
- package/dist/packem_shared/{FileBrowser-Zcr-Qgxo.js → FileBrowser-CWvxp_is.js} +7 -7
- package/dist/packem_shared/{FunctionRunner-j0Rd5m9t.js → FunctionRunner-DlWApMCH.js} +4 -4
- package/dist/packem_shared/{FunctionStatsPanel-DboBl-XL.js → FunctionStatsPanel-CuO2Tmw-.js} +141 -198
- package/dist/packem_shared/{GlobalDataBrowser-9MhPEfgN.js → GlobalDataBrowser-3X9uRfdO.js} +37 -66
- package/dist/packem_shared/{HealthPanel-DOIgbUtx.js → HealthPanel-Dj0GRo5P.js} +31 -23
- package/dist/packem_shared/{HomePanel-bdOCNA-p.js → HomePanel-BewOCuag.js} +450 -389
- package/dist/packem_shared/{InsightsPanel-DaZPnSgt.js → InsightsPanel-y_Q-xdPY.js} +104 -66
- package/dist/packem_shared/{LogsPanel-CWdqAGpQ.js → LogsPanel-C7crgYoS.js} +35 -47
- package/dist/packem_shared/{MailPanel-D_EGtDnS.js → MailPanel-PILidruz.js} +31 -38
- package/dist/packem_shared/{MetricsPanel-E4Gv6wTO.js → MetricsPanel-DioILzgf.js} +34 -48
- package/dist/packem_shared/{MigrationsPanel-DQdPY9io.js → MigrationsPanel-DkIcRoE5.js} +31 -38
- package/dist/packem_shared/{OpenRpcReferencePanel-j2p3HB0s.js → OpenRpcReferencePanel-vbcYbv3V.js} +2 -2
- package/dist/packem_shared/{PitrPanel-BbBkQR6t.js → PitrPanel-yKJ1JPPk.js} +4 -4
- package/dist/packem_shared/{ScheduledJobs-Ok1CYYwI.js → ScheduledJobs-BWNwIN3I.js} +164 -61
- package/dist/packem_shared/{SchemaViewer-D8XGnp-X.js → SchemaViewer-CNr8Wame.js} +4 -4
- package/dist/packem_shared/{SecurityAdvisorPanel-Cdm2IxLW.js → SecurityAdvisorPanel-BBzv7L3c.js} +44 -31
- package/dist/packem_shared/SettingsPanel-BKSKl8tl.js +390 -0
- package/dist/packem_shared/{ShardInput-DNCsT1KW.js → ShardInput-gx_DZXXn.js} +1 -1
- package/dist/packem_shared/SqlEditorPanel-CkemCQvy.js +13 -0
- package/dist/packem_shared/Studio-QkOjc2NS.js +33 -0
- package/dist/packem_shared/{StudioApp-dvywkJ8I.js → StudioApp-TEElspKL.js} +278 -4
- package/dist/packem_shared/{StudioI18nProvider-Dcajsznk.js → StudioI18nProvider-B-tDCZIi.js} +1 -1
- package/dist/packem_shared/TableEditor-JS3sXYgS.js +11 -0
- package/dist/packem_shared/{advisor-view-DBlzJi6C.js → advisor-view-CGcfMiPq.js} +1 -1
- package/dist/packem_shared/{app.d-CCmwDEVs.d.ts → app.d-Cnij4Zp5.d.ts} +1 -1
- package/dist/packem_shared/{cf-links-BZfRdxSE.js → cf-links-2cktDedA.js} +1 -1
- package/dist/packem_shared/{data-grid-CCh2Couo.js → data-grid-B5CaV3wS.js} +2 -2
- package/dist/packem_shared/{grid-features-DTjG6Sex.js → grid-features-CzUfqgsM.js} +3 -3
- package/dist/packem_shared/{internal-BBZYexre.js → internal-rXJEAhXS.js} +1 -1
- package/dist/packem_shared/{live-status-bPff1O7Y.js → live-status-FZ0psC1z.js} +1 -1
- package/dist/packem_shared/{reference-view-BCKIoai7.js → reference-view-B4E49Lip.js} +3 -3
- package/dist/packem_shared/{sql-editor-panel-CW2y2x9h.js → sql-editor-panel-CUJoYF1Z.js} +6 -6
- package/dist/packem_shared/{studio-BDVd7rIV.js → studio-c5Vf7kSh.js} +2897 -1668
- package/dist/packem_shared/{TableEditor-DIVDk3vT.js → table-editor-9fhJ4hMJ.js} +43 -7
- package/dist/packem_shared/{table-list-sidebar-aZHLq70w.js → table-list-sidebar-Bg7uzbvC.js} +2 -2
- package/dist/packem_shared/use-admin-query-BkbdNFNz.js +105 -0
- package/dist/standalone/studio.js +198 -176
- package/dist/styles.css +1 -1
- package/package.json +13 -12
- package/dist/packem_shared/SettingsPanel-D3WF2mBU.js +0 -176
- package/dist/packem_shared/SqlEditorPanel-BuQ7f2Hs.js +0 -13
- package/dist/packem_shared/Studio-D36od9Oz.js +0 -33
- package/dist/packem_shared/use-live-admin-D1h1Fzsd.js +0 -73
- package/dist/packem_shared/use-live-shard-seed-B74RYcOy.js +0 -76
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
4
|
+
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
5
|
+
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
|
|
6
|
+
import { u as useAdminQuery } from './use-admin-query-BkbdNFNz.js';
|
|
7
|
+
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
|
+
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
|
+
import { a as CLOUDFLARE_WORKERS_URL } from './cf-links-2cktDedA.js';
|
|
10
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
11
|
+
|
|
12
|
+
const KIND_VARIANT = {
|
|
13
|
+
binding: "outline",
|
|
14
|
+
secret: "destructive",
|
|
15
|
+
var: "secondary"
|
|
16
|
+
};
|
|
17
|
+
const SettingsPanel = (t0) => {
|
|
18
|
+
const $ = c(67);
|
|
19
|
+
const {
|
|
20
|
+
initialShardKey
|
|
21
|
+
} = t0;
|
|
22
|
+
const t = useT();
|
|
23
|
+
let t1;
|
|
24
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
25
|
+
t1 = {};
|
|
26
|
+
$[0] = t1;
|
|
27
|
+
} else {
|
|
28
|
+
t1 = $[0];
|
|
29
|
+
}
|
|
30
|
+
const t2 = initialShardKey ?? "";
|
|
31
|
+
let t3;
|
|
32
|
+
if ($[1] !== t2) {
|
|
33
|
+
t3 = {
|
|
34
|
+
shardKey: t2
|
|
35
|
+
};
|
|
36
|
+
$[1] = t2;
|
|
37
|
+
$[2] = t3;
|
|
38
|
+
} else {
|
|
39
|
+
t3 = $[2];
|
|
40
|
+
}
|
|
41
|
+
const {
|
|
42
|
+
data: result,
|
|
43
|
+
error,
|
|
44
|
+
isLoading: loading
|
|
45
|
+
} = useAdminQuery(ADMIN_FUNCTIONS.getSettings, t1, t3);
|
|
46
|
+
let t4;
|
|
47
|
+
bb0: {
|
|
48
|
+
const deploy = result?.deploy;
|
|
49
|
+
if (deploy === void 0) {
|
|
50
|
+
let t52;
|
|
51
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
52
|
+
t52 = [];
|
|
53
|
+
$[3] = t52;
|
|
54
|
+
} else {
|
|
55
|
+
t52 = $[3];
|
|
56
|
+
}
|
|
57
|
+
t4 = t52;
|
|
58
|
+
break bb0;
|
|
59
|
+
}
|
|
60
|
+
let rows;
|
|
61
|
+
if ($[4] !== deploy.deploymentId || $[5] !== deploy.environment || $[6] !== deploy.versionTag || $[7] !== deploy.workerUrl || $[8] !== t) {
|
|
62
|
+
rows = [];
|
|
63
|
+
if (deploy.workerUrl !== void 0) {
|
|
64
|
+
let t52;
|
|
65
|
+
if ($[10] !== t) {
|
|
66
|
+
t52 = t("URL");
|
|
67
|
+
$[10] = t;
|
|
68
|
+
$[11] = t52;
|
|
69
|
+
} else {
|
|
70
|
+
t52 = $[11];
|
|
71
|
+
}
|
|
72
|
+
let t62;
|
|
73
|
+
if ($[12] !== deploy.workerUrl || $[13] !== t52) {
|
|
74
|
+
t62 = {
|
|
75
|
+
label: t52,
|
|
76
|
+
value: deploy.workerUrl
|
|
77
|
+
};
|
|
78
|
+
$[12] = deploy.workerUrl;
|
|
79
|
+
$[13] = t52;
|
|
80
|
+
$[14] = t62;
|
|
81
|
+
} else {
|
|
82
|
+
t62 = $[14];
|
|
83
|
+
}
|
|
84
|
+
rows.push(t62);
|
|
85
|
+
}
|
|
86
|
+
if (deploy.environment !== void 0) {
|
|
87
|
+
let t52;
|
|
88
|
+
if ($[15] !== t) {
|
|
89
|
+
t52 = t("Environment");
|
|
90
|
+
$[15] = t;
|
|
91
|
+
$[16] = t52;
|
|
92
|
+
} else {
|
|
93
|
+
t52 = $[16];
|
|
94
|
+
}
|
|
95
|
+
let t62;
|
|
96
|
+
if ($[17] !== deploy.environment || $[18] !== t52) {
|
|
97
|
+
t62 = {
|
|
98
|
+
label: t52,
|
|
99
|
+
value: deploy.environment
|
|
100
|
+
};
|
|
101
|
+
$[17] = deploy.environment;
|
|
102
|
+
$[18] = t52;
|
|
103
|
+
$[19] = t62;
|
|
104
|
+
} else {
|
|
105
|
+
t62 = $[19];
|
|
106
|
+
}
|
|
107
|
+
rows.push(t62);
|
|
108
|
+
}
|
|
109
|
+
if (deploy.deploymentId !== void 0) {
|
|
110
|
+
let t52;
|
|
111
|
+
if ($[20] !== t) {
|
|
112
|
+
t52 = t("Deployment");
|
|
113
|
+
$[20] = t;
|
|
114
|
+
$[21] = t52;
|
|
115
|
+
} else {
|
|
116
|
+
t52 = $[21];
|
|
117
|
+
}
|
|
118
|
+
let t62;
|
|
119
|
+
if ($[22] !== deploy.deploymentId || $[23] !== t52) {
|
|
120
|
+
t62 = {
|
|
121
|
+
label: t52,
|
|
122
|
+
value: deploy.deploymentId
|
|
123
|
+
};
|
|
124
|
+
$[22] = deploy.deploymentId;
|
|
125
|
+
$[23] = t52;
|
|
126
|
+
$[24] = t62;
|
|
127
|
+
} else {
|
|
128
|
+
t62 = $[24];
|
|
129
|
+
}
|
|
130
|
+
rows.push(t62);
|
|
131
|
+
}
|
|
132
|
+
if (deploy.versionTag !== void 0) {
|
|
133
|
+
let t52;
|
|
134
|
+
if ($[25] !== t) {
|
|
135
|
+
t52 = t("Version");
|
|
136
|
+
$[25] = t;
|
|
137
|
+
$[26] = t52;
|
|
138
|
+
} else {
|
|
139
|
+
t52 = $[26];
|
|
140
|
+
}
|
|
141
|
+
let t62;
|
|
142
|
+
if ($[27] !== deploy.versionTag || $[28] !== t52) {
|
|
143
|
+
t62 = {
|
|
144
|
+
label: t52,
|
|
145
|
+
value: deploy.versionTag
|
|
146
|
+
};
|
|
147
|
+
$[27] = deploy.versionTag;
|
|
148
|
+
$[28] = t52;
|
|
149
|
+
$[29] = t62;
|
|
150
|
+
} else {
|
|
151
|
+
t62 = $[29];
|
|
152
|
+
}
|
|
153
|
+
rows.push(t62);
|
|
154
|
+
}
|
|
155
|
+
$[4] = deploy.deploymentId;
|
|
156
|
+
$[5] = deploy.environment;
|
|
157
|
+
$[6] = deploy.versionTag;
|
|
158
|
+
$[7] = deploy.workerUrl;
|
|
159
|
+
$[8] = t;
|
|
160
|
+
$[9] = rows;
|
|
161
|
+
} else {
|
|
162
|
+
rows = $[9];
|
|
163
|
+
}
|
|
164
|
+
t4 = rows;
|
|
165
|
+
}
|
|
166
|
+
const deployRows = t4;
|
|
167
|
+
let t5;
|
|
168
|
+
if ($[30] !== result?.settings) {
|
|
169
|
+
t5 = result?.settings ?? [];
|
|
170
|
+
$[30] = result?.settings;
|
|
171
|
+
$[31] = t5;
|
|
172
|
+
} else {
|
|
173
|
+
t5 = $[31];
|
|
174
|
+
}
|
|
175
|
+
const settings = t5;
|
|
176
|
+
let t6;
|
|
177
|
+
if ($[32] !== t) {
|
|
178
|
+
t6 = t("Open in Cloudflare");
|
|
179
|
+
$[32] = t;
|
|
180
|
+
$[33] = t6;
|
|
181
|
+
} else {
|
|
182
|
+
t6 = $[33];
|
|
183
|
+
}
|
|
184
|
+
let t7;
|
|
185
|
+
if ($[34] !== t6) {
|
|
186
|
+
t7 = /* @__PURE__ */ jsxDEV("div", {
|
|
187
|
+
className: "flex flex-wrap items-center gap-3",
|
|
188
|
+
children: /* @__PURE__ */ jsxDEV("a", {
|
|
189
|
+
className: "text-sm text-primary underline-offset-4 hover:underline",
|
|
190
|
+
"data-testid": "set-cf-link",
|
|
191
|
+
href: CLOUDFLARE_WORKERS_URL,
|
|
192
|
+
rel: "noreferrer",
|
|
193
|
+
target: "_blank",
|
|
194
|
+
children: t6
|
|
195
|
+
}, void 0, false)
|
|
196
|
+
}, void 0, false);
|
|
197
|
+
$[34] = t6;
|
|
198
|
+
$[35] = t7;
|
|
199
|
+
} else {
|
|
200
|
+
t7 = $[35];
|
|
201
|
+
}
|
|
202
|
+
let t8;
|
|
203
|
+
if ($[36] !== t) {
|
|
204
|
+
t8 = t("View-only — values are masked. Edit vars, secrets, and bindings in wrangler or the Cloudflare dashboard.");
|
|
205
|
+
$[36] = t;
|
|
206
|
+
$[37] = t8;
|
|
207
|
+
} else {
|
|
208
|
+
t8 = $[37];
|
|
209
|
+
}
|
|
210
|
+
let t9;
|
|
211
|
+
if ($[38] !== t8) {
|
|
212
|
+
t9 = /* @__PURE__ */ jsxDEV("p", {
|
|
213
|
+
className: "text-sm text-muted-foreground",
|
|
214
|
+
"data-testid": "set-readonly-note",
|
|
215
|
+
children: t8
|
|
216
|
+
}, void 0, false);
|
|
217
|
+
$[38] = t8;
|
|
218
|
+
$[39] = t9;
|
|
219
|
+
} else {
|
|
220
|
+
t9 = $[39];
|
|
221
|
+
}
|
|
222
|
+
let t10;
|
|
223
|
+
if ($[40] !== error) {
|
|
224
|
+
t10 = error !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
225
|
+
className: "text-sm text-destructive",
|
|
226
|
+
"data-testid": "set-error",
|
|
227
|
+
role: "alert",
|
|
228
|
+
children: error
|
|
229
|
+
}, void 0, false);
|
|
230
|
+
$[40] = error;
|
|
231
|
+
$[41] = t10;
|
|
232
|
+
} else {
|
|
233
|
+
t10 = $[41];
|
|
234
|
+
}
|
|
235
|
+
let t11;
|
|
236
|
+
if ($[42] !== deployRows || $[43] !== t) {
|
|
237
|
+
t11 = deployRows.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
|
|
238
|
+
className: "py-0",
|
|
239
|
+
"data-testid": "set-deploy",
|
|
240
|
+
children: [/* @__PURE__ */ jsxDEV("header", {
|
|
241
|
+
className: "border-b border-border px-4 py-3",
|
|
242
|
+
children: /* @__PURE__ */ jsxDEV("span", {
|
|
243
|
+
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
244
|
+
children: t("Deployment")
|
|
245
|
+
}, void 0, false)
|
|
246
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(CardContent, {
|
|
247
|
+
className: "py-3",
|
|
248
|
+
children: /* @__PURE__ */ jsxDEV("dl", {
|
|
249
|
+
className: "grid grid-cols-[8rem_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
|
|
250
|
+
children: deployRows.map(_temp)
|
|
251
|
+
}, void 0, false)
|
|
252
|
+
}, void 0, false)]
|
|
253
|
+
}, void 0, true);
|
|
254
|
+
$[42] = deployRows;
|
|
255
|
+
$[43] = t;
|
|
256
|
+
$[44] = t11;
|
|
257
|
+
} else {
|
|
258
|
+
t11 = $[44];
|
|
259
|
+
}
|
|
260
|
+
let t12;
|
|
261
|
+
if ($[45] !== t) {
|
|
262
|
+
t12 = t("Environment & bindings");
|
|
263
|
+
$[45] = t;
|
|
264
|
+
$[46] = t12;
|
|
265
|
+
} else {
|
|
266
|
+
t12 = $[46];
|
|
267
|
+
}
|
|
268
|
+
let t13;
|
|
269
|
+
if ($[47] !== t12) {
|
|
270
|
+
t13 = /* @__PURE__ */ jsxDEV("header", {
|
|
271
|
+
className: "border-b border-border px-4 py-3",
|
|
272
|
+
children: /* @__PURE__ */ jsxDEV("span", {
|
|
273
|
+
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
274
|
+
children: t12
|
|
275
|
+
}, void 0, false)
|
|
276
|
+
}, void 0, false);
|
|
277
|
+
$[47] = t12;
|
|
278
|
+
$[48] = t13;
|
|
279
|
+
} else {
|
|
280
|
+
t13 = $[48];
|
|
281
|
+
}
|
|
282
|
+
let t14;
|
|
283
|
+
if ($[49] !== error || $[50] !== loading || $[51] !== settings.length || $[52] !== t) {
|
|
284
|
+
t14 = error === null && !loading && settings.length === 0 && /* @__PURE__ */ jsxDEV("p", {
|
|
285
|
+
className: "px-4 py-8 text-center text-sm text-muted-foreground",
|
|
286
|
+
"data-testid": "set-empty",
|
|
287
|
+
children: t("No environment variables or bindings.")
|
|
288
|
+
}, void 0, false);
|
|
289
|
+
$[49] = error;
|
|
290
|
+
$[50] = loading;
|
|
291
|
+
$[51] = settings.length;
|
|
292
|
+
$[52] = t;
|
|
293
|
+
$[53] = t14;
|
|
294
|
+
} else {
|
|
295
|
+
t14 = $[53];
|
|
296
|
+
}
|
|
297
|
+
let t15;
|
|
298
|
+
if ($[54] !== settings || $[55] !== t) {
|
|
299
|
+
t15 = settings.length > 0 && /* @__PURE__ */ jsxDEV(CardContent, {
|
|
300
|
+
className: "px-0 py-0",
|
|
301
|
+
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
302
|
+
"data-testid": "set-table",
|
|
303
|
+
children: [/* @__PURE__ */ jsxDEV(TableHeader, {
|
|
304
|
+
children: /* @__PURE__ */ jsxDEV(TableRow, {
|
|
305
|
+
children: [/* @__PURE__ */ jsxDEV(TableHead, {
|
|
306
|
+
children: t("name")
|
|
307
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
308
|
+
children: t("kind")
|
|
309
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
310
|
+
children: t("value")
|
|
311
|
+
}, void 0, false)]
|
|
312
|
+
}, void 0, true)
|
|
313
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
|
|
314
|
+
children: settings.map(_temp2)
|
|
315
|
+
}, void 0, false)]
|
|
316
|
+
}, void 0, true)
|
|
317
|
+
}, void 0, false);
|
|
318
|
+
$[54] = settings;
|
|
319
|
+
$[55] = t;
|
|
320
|
+
$[56] = t15;
|
|
321
|
+
} else {
|
|
322
|
+
t15 = $[56];
|
|
323
|
+
}
|
|
324
|
+
let t16;
|
|
325
|
+
if ($[57] !== t13 || $[58] !== t14 || $[59] !== t15) {
|
|
326
|
+
t16 = /* @__PURE__ */ jsxDEV(Card, {
|
|
327
|
+
className: "py-0",
|
|
328
|
+
children: [t13, t14, t15]
|
|
329
|
+
}, void 0, true);
|
|
330
|
+
$[57] = t13;
|
|
331
|
+
$[58] = t14;
|
|
332
|
+
$[59] = t15;
|
|
333
|
+
$[60] = t16;
|
|
334
|
+
} else {
|
|
335
|
+
t16 = $[60];
|
|
336
|
+
}
|
|
337
|
+
let t17;
|
|
338
|
+
if ($[61] !== t10 || $[62] !== t11 || $[63] !== t16 || $[64] !== t7 || $[65] !== t9) {
|
|
339
|
+
t17 = /* @__PURE__ */ jsxDEV("div", {
|
|
340
|
+
className: "flex flex-col gap-4",
|
|
341
|
+
"data-testid": "lunora-settings",
|
|
342
|
+
children: [t7, t9, t10, t11, t16]
|
|
343
|
+
}, void 0, true);
|
|
344
|
+
$[61] = t10;
|
|
345
|
+
$[62] = t11;
|
|
346
|
+
$[63] = t16;
|
|
347
|
+
$[64] = t7;
|
|
348
|
+
$[65] = t9;
|
|
349
|
+
$[66] = t17;
|
|
350
|
+
} else {
|
|
351
|
+
t17 = $[66];
|
|
352
|
+
}
|
|
353
|
+
return t17;
|
|
354
|
+
};
|
|
355
|
+
function _temp(row) {
|
|
356
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
357
|
+
className: "contents",
|
|
358
|
+
"data-testid": "set-deploy-row",
|
|
359
|
+
children: [/* @__PURE__ */ jsxDEV("dt", {
|
|
360
|
+
className: "text-muted-foreground",
|
|
361
|
+
children: row.label
|
|
362
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
363
|
+
className: "truncate font-mono text-xs",
|
|
364
|
+
title: row.value,
|
|
365
|
+
children: row.value
|
|
366
|
+
}, void 0, false)]
|
|
367
|
+
}, row.label, true);
|
|
368
|
+
}
|
|
369
|
+
function _temp2(entry) {
|
|
370
|
+
return /* @__PURE__ */ jsxDEV(TableRow, {
|
|
371
|
+
"data-testid": "set-row",
|
|
372
|
+
children: [/* @__PURE__ */ jsxDEV(TableCell, {
|
|
373
|
+
className: "font-mono text-xs font-medium",
|
|
374
|
+
children: entry.name
|
|
375
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
376
|
+
children: /* @__PURE__ */ jsxDEV(Badge, {
|
|
377
|
+
variant: KIND_VARIANT[entry.kind],
|
|
378
|
+
children: entry.bindingType ?? entry.kind
|
|
379
|
+
}, void 0, false)
|
|
380
|
+
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
381
|
+
className: "max-w-[28ch] truncate font-mono text-xs text-muted-foreground",
|
|
382
|
+
children: entry.value ?? /* @__PURE__ */ jsxDEV("span", {
|
|
383
|
+
className: "text-muted-foreground",
|
|
384
|
+
children: "—"
|
|
385
|
+
}, void 0, false)
|
|
386
|
+
}, void 0, false)]
|
|
387
|
+
}, entry.name, true);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export { SettingsPanel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useId, useState } from 'react';
|
|
3
|
-
import { useT } from './
|
|
3
|
+
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
4
4
|
import { l as loadRecentShards } from './shard-history-DyebH1R5.js';
|
|
5
5
|
import { I as Input } from './input-XH4r1Pt1.js';
|
|
6
6
|
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'react/compiler-runtime';
|
|
2
|
+
import '@lunora/react';
|
|
3
|
+
import 'react';
|
|
4
|
+
export { S as SqlEditorPanel } from './sql-editor-panel-CUJoYF1Z.js';
|
|
5
|
+
import './ShardInput-gx_DZXXn.js';
|
|
6
|
+
import './table-_RzNvy3R.js';
|
|
7
|
+
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
|
+
import './ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
|
+
import './internal-rXJEAhXS.js';
|
|
10
|
+
import './shard-history-DyebH1R5.js';
|
|
11
|
+
import './data-grid-B5CaV3wS.js';
|
|
12
|
+
import './grid-features-CzUfqgsM.js';
|
|
13
|
+
import 'react/jsx-dev-runtime';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import 'react/compiler-runtime';
|
|
2
|
+
import '@tanstack/react-router';
|
|
3
|
+
import 'react';
|
|
4
|
+
export { S as Studio } from './studio-c5Vf7kSh.js';
|
|
5
|
+
import './ErrorBoundary-BzAApI7J.js';
|
|
6
|
+
import './badge-B2PKA1-5.js';
|
|
7
|
+
import './input-XH4r1Pt1.js';
|
|
8
|
+
import './reference-view-B4E49Lip.js';
|
|
9
|
+
import './InsightsPanel-y_Q-xdPY.js';
|
|
10
|
+
import './SecurityAdvisorPanel-BBzv7L3c.js';
|
|
11
|
+
import './ApiTab-CHkX49o_.js';
|
|
12
|
+
import './table-editor-9fhJ4hMJ.js';
|
|
13
|
+
import './ExportImportPanel-Dj87tRa5.js';
|
|
14
|
+
import './MigrationsPanel-DkIcRoE5.js';
|
|
15
|
+
import './PitrPanel-yKJ1JPPk.js';
|
|
16
|
+
import './FunctionRunner-DlWApMCH.js';
|
|
17
|
+
import './FunctionStatsPanel-CuO2Tmw-.js';
|
|
18
|
+
import './HomePanel-BewOCuag.js';
|
|
19
|
+
import './AuditPanel-CP9HM9nq.js';
|
|
20
|
+
import './LogsPanel-C7crgYoS.js';
|
|
21
|
+
import './MailPanel-PILidruz.js';
|
|
22
|
+
import './HealthPanel-Dj0GRo5P.js';
|
|
23
|
+
import './MetricsPanel-DioILzgf.js';
|
|
24
|
+
import './SchemaViewer-CNr8Wame.js';
|
|
25
|
+
import './SettingsPanel-BKSKl8tl.js';
|
|
26
|
+
import './sql-editor-panel-CUJoYF1Z.js';
|
|
27
|
+
import './FileBrowser-CWvxp_is.js';
|
|
28
|
+
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
29
|
+
import './StudioI18nProvider-B-tDCZIi.js';
|
|
30
|
+
import './internal-rXJEAhXS.js';
|
|
31
|
+
import './utils-B05Dmz_H.js';
|
|
32
|
+
import './CommandPalette-BtgkBzZI.js';
|
|
33
|
+
import 'react/jsx-dev-runtime';
|