zdashboard 2.3.0 → 2.4.0
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/cli.js +10 -7
- package/dist/cli.js.map +1 -1
- package/dist/web/assets/{CodeViewer-D8YqzmwB.js → FileIcon-CDN2wCuK.js} +48 -8
- package/dist/web/assets/{FilterPills-A_fz1nby.js → FilterPills-D_6kvZo5.js} +1 -1
- package/dist/web/assets/{MdViewer-P4wmRzy_.js → MdViewer-WZMpNmB2.js} +1 -1
- package/dist/web/assets/{ProgressBar-B4U41etC.js → ProgressBar-DPJd_uDt.js} +1 -1
- package/dist/web/assets/Workspace-MeZD-u22.js +16 -0
- package/dist/web/assets/badge-BbN-q0Cc.js +1 -0
- package/dist/web/assets/book-open-Dwx5kHtv.js +6 -0
- package/dist/web/assets/{file-text-BHzQwEJK.js → file-text-Co0hTLuo.js} +1 -1
- package/dist/web/assets/{index-C_wTjWH0.js → index-CHxXM6Fn.js} +1 -1
- package/dist/web/assets/index-Dkkxw5Oy.js +156 -0
- package/dist/web/assets/index-o5t5Kpfc.css +1 -0
- package/dist/web/assets/web-BYZeHggs.js +56 -0
- package/dist/web/assets/web-BoW0qNb8.js +25 -0
- package/dist/web/assets/web-CMZAKAOi.js +7 -0
- package/dist/web/assets/web-CkMm3ooW.js +36 -0
- package/dist/web/assets/web-Dpd8wclV.js +26 -0
- package/dist/web/assets/web-La5g0ovh.js +16 -0
- package/dist/web/assets/web-ZM6TYT88.js +2 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/Workspace-nm0YyxF7.js +0 -1
- package/dist/web/assets/badge-C92Y2FRG.js +0 -1
- package/dist/web/assets/index-ByI0Pghw.css +0 -1
- package/dist/web/assets/index-CNPKNdvp.js +0 -111
- package/dist/web/assets/web-5tq6UJuk.js +0 -2
- package/dist/web/assets/web-DgYHvMu9.js +0 -16
- package/dist/web/assets/web-DhyfyLB-.js +0 -11
- package/dist/web/assets/web-JxMZZReP.js +0 -2
- package/dist/web/assets/web-ZQ0eDR1y.js +0 -31
- package/dist/web/assets/web-vTYFh6Bo.js +0 -25
- package/dist/web/assets/web-vbs6AnjC.js +0 -26
package/dist/cli.js
CHANGED
|
@@ -69,11 +69,12 @@ function loadConfig(root) {
|
|
|
69
69
|
const record = kv;
|
|
70
70
|
const product = Number(record.product);
|
|
71
71
|
if (!record.url || !product) return null;
|
|
72
|
+
const str = (v) => typeof v === "string" ? v : v == null ? void 0 : String(v);
|
|
72
73
|
return {
|
|
73
74
|
url: String(record.url).replace(/\/+$/, ""),
|
|
74
|
-
account: record.account ?? "",
|
|
75
|
-
password: record.password,
|
|
76
|
-
token: record.token,
|
|
75
|
+
account: str(record.account) ?? "",
|
|
76
|
+
password: str(record.password),
|
|
77
|
+
token: str(record.token),
|
|
77
78
|
product
|
|
78
79
|
};
|
|
79
80
|
} catch {
|
|
@@ -166,7 +167,7 @@ import { fileURLToPath } from "url";
|
|
|
166
167
|
// package.json
|
|
167
168
|
var package_default = {
|
|
168
169
|
name: "zdashboard",
|
|
169
|
-
version: "2.
|
|
170
|
+
version: "2.4.0",
|
|
170
171
|
description: "ZCode skill dashboard platform \u2014 pluggable viewers for zdesign/zview/zreview/zgoal",
|
|
171
172
|
type: "module",
|
|
172
173
|
bin: {
|
|
@@ -187,6 +188,7 @@ var package_default = {
|
|
|
187
188
|
preview: "vite preview"
|
|
188
189
|
},
|
|
189
190
|
dependencies: {
|
|
191
|
+
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
190
192
|
"@radix-ui/react-scroll-area": "^1.2.0",
|
|
191
193
|
"@radix-ui/react-separator": "^1.1.0",
|
|
192
194
|
"@radix-ui/react-slot": "^1.1.0",
|
|
@@ -534,7 +536,8 @@ var ServerService = class extends Service {
|
|
|
534
536
|
const fp = path4.join(dir, rel);
|
|
535
537
|
if (fp.indexOf(dir + path4.sep) !== 0) {
|
|
536
538
|
res.writeHead(403);
|
|
537
|
-
|
|
539
|
+
res.end("Forbidden");
|
|
540
|
+
return false;
|
|
538
541
|
}
|
|
539
542
|
this.serveFile(fp, req, res, true);
|
|
540
543
|
return true;
|
|
@@ -1528,11 +1531,11 @@ function categorize(rel, ext) {
|
|
|
1528
1531
|
if (TOKEN_RE.test(rel) && (ext === ".css" || ext === ".json")) return "token";
|
|
1529
1532
|
return null;
|
|
1530
1533
|
}
|
|
1531
|
-
return
|
|
1534
|
+
return null;
|
|
1532
1535
|
}
|
|
1533
1536
|
function scanAssets(root) {
|
|
1534
1537
|
const out = {};
|
|
1535
|
-
const keys = ["page", "component", "icon", "token", "md", "video", "audio", "pdf", "font"
|
|
1538
|
+
const keys = ["page", "component", "icon", "token", "md", "video", "audio", "pdf", "font"];
|
|
1536
1539
|
for (const k of keys) out[k] = [];
|
|
1537
1540
|
const SKIP = /* @__PURE__ */ new Set(["node_modules", ".git", "dist", "build", "coverage", ".next", ".cache"]);
|
|
1538
1541
|
walkDir(root, { skip: SKIP, onFile: (abs, rel) => {
|