@cyberismo/backend 0.0.18 → 0.0.19
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.
|
@@ -114004,7 +114004,7 @@ Error generating stack: ` + $t.message + `
|
|
|
114004
114004
|
})
|
|
114005
114005
|
});
|
|
114006
114006
|
}
|
|
114007
|
-
function
|
|
114007
|
+
function lRe({ prefix: e, type: t }) {
|
|
114008
114008
|
return K.jsxs(Bn, {
|
|
114009
114009
|
sx: {
|
|
114010
114010
|
color: "text.tertiary",
|
|
@@ -114019,9 +114019,9 @@ Error generating stack: ` + $t.message + `
|
|
|
114019
114019
|
]
|
|
114020
114020
|
});
|
|
114021
114021
|
}
|
|
114022
|
-
function
|
|
114022
|
+
function XLt({ type: e }) {
|
|
114023
114023
|
const { project: t } = Ol();
|
|
114024
|
-
return K.jsx(
|
|
114024
|
+
return K.jsx(lRe, {
|
|
114025
114025
|
prefix: (t == null ? void 0 : t.prefix) || "",
|
|
114026
114026
|
type: e
|
|
114027
114027
|
});
|
|
@@ -114048,7 +114048,7 @@ Error generating stack: ` + $t.message + `
|
|
|
114048
114048
|
K.jsx(Bu, {
|
|
114049
114049
|
...r,
|
|
114050
114050
|
error: !!i.error,
|
|
114051
|
-
startDecorator: K.jsx(
|
|
114051
|
+
startDecorator: K.jsx(XLt, {
|
|
114052
114052
|
type: t
|
|
114053
114053
|
})
|
|
114054
114054
|
}),
|
|
@@ -161149,14 +161149,10 @@ Your browser does not support the video tag.
|
|
|
161149
161149
|
});
|
|
161150
161150
|
}
|
|
161151
161151
|
const gjt = (e) => G1e.includes(e.type), mjt = (e, t) => em(jn.validateResource(e), "validateResource", null, t);
|
|
161152
|
-
function $jt({ label: e, type: t,
|
|
161153
|
-
const
|
|
161154
|
-
|
|
161155
|
-
|
|
161156
|
-
}, a = (l) => {
|
|
161157
|
-
const u = n.split("/");
|
|
161158
|
-
if (u.length !== 3) throw new Error("Invalid identifier");
|
|
161159
|
-
r(`${u[0]}/${u[1]}/${l}`);
|
|
161152
|
+
function $jt({ label: e, type: t, prefix: n, value: r, onChange: i, onKeyDown: o, onBlur: s }) {
|
|
161153
|
+
const a = r.split("/"), l = a.length >= 3 ? a[2] : r, u = (c) => {
|
|
161154
|
+
if (a.length !== 3) throw new Error("Invalid identifier");
|
|
161155
|
+
i(`${n}/${t}/${c}`);
|
|
161160
161156
|
};
|
|
161161
161157
|
return K.jsxs(Xs, {
|
|
161162
161158
|
children: [
|
|
@@ -161164,11 +161160,12 @@ Your browser does not support the video tag.
|
|
|
161164
161160
|
children: e
|
|
161165
161161
|
}),
|
|
161166
161162
|
K.jsx(Bu, {
|
|
161167
|
-
value:
|
|
161168
|
-
onChange: (
|
|
161169
|
-
onKeyDown:
|
|
161170
|
-
onBlur:
|
|
161163
|
+
value: l,
|
|
161164
|
+
onChange: (c) => u(c.target.value),
|
|
161165
|
+
onKeyDown: o,
|
|
161166
|
+
onBlur: s,
|
|
161171
161167
|
startDecorator: K.jsx(lRe, {
|
|
161168
|
+
prefix: n,
|
|
161172
161169
|
type: t
|
|
161173
161170
|
})
|
|
161174
161171
|
})
|
|
@@ -161461,46 +161458,48 @@ Your browser does not support the video tag.
|
|
|
161461
161458
|
children: "Attempted to render a non-resource node as a resource editor."
|
|
161462
161459
|
});
|
|
161463
161460
|
const i = Ajt[e.type] || [], o = (a) => {
|
|
161464
|
-
const { key: l, type: u, label: c, options: f, staticOptions: d } = a, p = f ? f(r.resourceTree || [], e) : d || [], g = t(c);
|
|
161461
|
+
const { key: l, type: u, label: c, options: f, staticOptions: d } = a, p = f ? f(r.resourceTree || [], e) : d || [], g = t(c), m = e.name.split("/");
|
|
161462
|
+
if (m.length < 3) return console.warn("Received unexpected name", e.name), null;
|
|
161465
161463
|
switch (u) {
|
|
161466
161464
|
case "identifier":
|
|
161467
161465
|
return K.jsx($jt, {
|
|
161468
161466
|
label: g,
|
|
161467
|
+
prefix: m[0],
|
|
161469
161468
|
type: e.type,
|
|
161470
161469
|
value: String(r.form[l] ?? ""),
|
|
161471
|
-
onChange: (
|
|
161470
|
+
onChange: (v) => r.onChange(l, v)
|
|
161472
161471
|
});
|
|
161473
161472
|
case "text":
|
|
161474
161473
|
return K.jsx(hW, {
|
|
161475
161474
|
label: g,
|
|
161476
161475
|
value: String(r.form[l] ?? ""),
|
|
161477
|
-
onChange: (
|
|
161476
|
+
onChange: (v) => r.onChange(l, v)
|
|
161478
161477
|
});
|
|
161479
161478
|
case "textarea":
|
|
161480
161479
|
return K.jsx(_jt, {
|
|
161481
161480
|
label: g,
|
|
161482
161481
|
value: String(r.form[l] ?? ""),
|
|
161483
|
-
onChange: (
|
|
161482
|
+
onChange: (v) => r.onChange(l, v)
|
|
161484
161483
|
});
|
|
161485
161484
|
case "select":
|
|
161486
161485
|
return K.jsx(bjt, {
|
|
161487
161486
|
label: g,
|
|
161488
161487
|
value: String(r.form[l] ?? ""),
|
|
161489
161488
|
options: p,
|
|
161490
|
-
onChange: (
|
|
161489
|
+
onChange: (v) => r.onChange(l, v)
|
|
161491
161490
|
});
|
|
161492
161491
|
case "multiselect":
|
|
161493
161492
|
return K.jsx(yjt, {
|
|
161494
161493
|
label: g,
|
|
161495
161494
|
value: r.form[l] || [],
|
|
161496
161495
|
options: p,
|
|
161497
|
-
onChange: (
|
|
161496
|
+
onChange: (v) => r.onChange(l, v)
|
|
161498
161497
|
});
|
|
161499
161498
|
case "boolean":
|
|
161500
161499
|
return K.jsx(vjt, {
|
|
161501
161500
|
label: g,
|
|
161502
161501
|
value: !!r.form[l],
|
|
161503
|
-
onChange: (
|
|
161502
|
+
onChange: (v) => r.onChange(l, v)
|
|
161504
161503
|
});
|
|
161505
161504
|
default:
|
|
161506
161505
|
return null;
|
package/dist/public/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
name="msapplication-TileImage"
|
|
12
12
|
content="/cropped-favicon-270x270.png"
|
|
13
13
|
/>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-BeA3_uli.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-DnK7MBer.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberismo/backend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Express backend for Cyberismo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"hono": "^4.10.7",
|
|
22
22
|
"mime-types": "^3.0.2",
|
|
23
23
|
"zod": "^4.1.13",
|
|
24
|
-
"@cyberismo/data-handler": "0.0.
|
|
24
|
+
"@cyberismo/data-handler": "0.0.19"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@cyberismo/app": "0.0.2"
|