@portqueue/dashboard 1.1.1 → 1.2.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/client/assets/index-B_tJTv1S.js +386 -0
- package/dist/client/assets/index-DusJ4jAZ.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/index.cjs +22 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +22 -29
- package/dist/index.mjs.map +1 -1
- package/dist/server/assets.d.ts +15 -2
- package/package.json +5 -5
- package/dist/client/assets/index-DORFyd1J.js +0 -111
- package/dist/client/assets/index-rcTsR9lz.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,[data-theme=light]{--pq-color-brand: #a9d8b8;--pq-color-brand-hover: #6fa184;--pq-color-accent: #8fb8d8;--pq-color-success: #a9d8b8;--pq-color-danger: #d98a8a;--pq-color-danger-hover: #b5645f;--pq-color-warning: #e0ae72;--pq-color-warning-hover: #c68a4e;--pq-color-info: #8fb8d8;--pq-color-bg: #f2f3f1;--pq-color-surface: #ffffff;--pq-color-surface-alt: #dde3de;--pq-color-text: #1b1f1d;--pq-color-text-muted: rgba(27, 31, 29, .68);--pq-color-text-faint: rgba(27, 31, 29, .5);--pq-color-border: #dde3de;--pq-color-border-strong: #c9d1cb;--pq-color-on-brand: #1b1f1d;--pq-color-brand-solid: #a9d8b8;--pq-color-brand-solid-hover: #6fa184;--pq-color-link: #6fa184;--pq-color-info-text: #4f86ad;--pq-color-warning-text: #b47a3c;--pq-color-danger-text: #a85450;--pq-color-overlay: rgba(9, 12, 18, .45);--pq-color-status-pending: #8a908c;--pq-color-status-active: #5b87a8;--pq-color-status-completed: #6fa184;--pq-color-status-failed: #b5645f;--pq-color-status-retry: #c68a4e;--pq-color-status-cancelled: #9aa09c;--pq-color-status-expired: #9aa09c;--pq-color-status-stalled: #9a7aa0;--pq-radius-sm: 6px;--pq-radius-md: 10px;--pq-radius-lg: 16px;--pq-radius-pill: 999px;--pq-space-1: 4px;--pq-space-2: 8px;--pq-space-3: 12px;--pq-space-4: 16px;--pq-space-5: 20px;--pq-space-6: 24px;--pq-space-8: 32px;--pq-space-10: 40px;--pq-space-12: 48px;--pq-font-size-sm: 12px;--pq-font-size-md: 14px;--pq-font-size-lg: 16px;--pq-font-size-xl: 20px;--pq-font-size-xxl: 24px;--pq-font-size-display: 32px;--pq-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Inter", system-ui, sans-serif;--pq-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;--pq-font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;--pq-line-height: 1.6;--pq-shadow-sm: 0 1px 2px rgba(27, 31, 29, .05), 0 1px 3px rgba(27, 31, 29, .08);--pq-shadow-md: 0 4px 12px rgba(27, 31, 29, .07), 0 2px 6px rgba(27, 31, 29, .05);--pq-shadow-lg: 0 12px 32px rgba(27, 31, 29, .1), 0 6px 16px rgba(27, 31, 29, .07);--pq-motion-easing: cubic-bezier(.4, 0, .2, 1);--pq-motion-fast: .12s;--pq-motion-base: .2s;--pq-motion-slow: .32s;color-scheme:light}[data-theme=dark]{--pq-color-bg: #171a19;--pq-color-surface: #1f2422;--pq-color-surface-alt: #272d2a;--pq-color-text: #edefec;--pq-color-text-muted: rgba(237, 239, 236, .68);--pq-color-text-faint: rgba(237, 239, 236, .5);--pq-color-border: #2c332f;--pq-color-border-strong: #3a423d;--pq-color-on-brand: #1b1f1d;--pq-color-brand-solid: #6fa184;--pq-color-brand-solid-hover: #a9d8b8;--pq-color-link: #a9d8b8;--pq-color-info-text: #8fb8d8;--pq-color-warning-text: #c68a4e;--pq-color-danger-text: #c98a86;--pq-color-overlay: rgba(0, 0, 0, .55);color-scheme:dark}@media(max-width:767px){._desktopOnly_dlvml_7{display:none}}@media(min-width:768px){._mobileOnly_dlvml_13{display:none}}
|
package/dist/client/index.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
min-height: 100vh;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" crossorigin src="./assets/index-
|
|
19
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
18
|
+
<script type="module" crossorigin src="./assets/index-B_tJTv1S.js"></script>
|
|
19
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DusJ4jAZ.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<div id="root"></div>
|
package/dist/index.cjs
CHANGED
|
@@ -607,41 +607,34 @@ function safeResolve(root, relPath) {
|
|
|
607
607
|
if (rel.startsWith("..") || node_path.isAbsolute(rel)) return null;
|
|
608
608
|
return target;
|
|
609
609
|
}
|
|
610
|
+
const ASSETS_PREFIX = "/assets/";
|
|
611
|
+
function isAssetPath(relPath) {
|
|
612
|
+
return relPath.startsWith(ASSETS_PREFIX);
|
|
613
|
+
}
|
|
610
614
|
async function serveAsset(relPath, config) {
|
|
615
|
+
const asset = isAssetPath(relPath);
|
|
616
|
+
if (!await hasBuiltClient()) {
|
|
617
|
+
return asset ? notFound() : htmlResult(inlineShell(config), config);
|
|
618
|
+
}
|
|
611
619
|
const root = clientDistDir();
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return { status: 404, body: "Not found", contentType: "text/plain; charset=utf-8" };
|
|
616
|
-
}
|
|
617
|
-
return htmlResult(inlineShell(config), config);
|
|
620
|
+
if (!asset) {
|
|
621
|
+
const raw = (await promises.readFile(node_path.join(root, "index.html"))).toString("utf8");
|
|
622
|
+
return htmlResult(rewriteAssetUrls(raw, config.basePath), config);
|
|
618
623
|
}
|
|
619
|
-
const
|
|
620
|
-
const target = safeResolve(root, requested);
|
|
624
|
+
const target = safeResolve(node_path.join(root, "assets"), relPath.slice(ASSETS_PREFIX.length - 1));
|
|
621
625
|
if (target === null) {
|
|
622
626
|
return { status: 403, body: "Forbidden", contentType: "text/plain; charset=utf-8" };
|
|
623
627
|
}
|
|
624
|
-
if (await exists(target))
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
// Content-hashed filenames make this safe: the browser never re-requests a cached bundle.
|
|
635
|
-
headers: { "cache-control": IMMUTABLE_CACHE }
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
if (!node_path.extname(requested)) {
|
|
639
|
-
const indexPath = node_path.join(root, "index.html");
|
|
640
|
-
if (await exists(indexPath)) {
|
|
641
|
-
const raw = (await promises.readFile(indexPath)).toString("utf8");
|
|
642
|
-
return htmlResult(rewriteAssetUrls(raw, config.basePath), config);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
628
|
+
if (!await exists(target)) return notFound();
|
|
629
|
+
return {
|
|
630
|
+
status: 200,
|
|
631
|
+
body: await promises.readFile(target),
|
|
632
|
+
contentType: MIME[node_path.extname(target).toLowerCase()] ?? "application/octet-stream",
|
|
633
|
+
// Content-hashed filenames make this safe: the browser never re-requests a cached bundle.
|
|
634
|
+
headers: { "cache-control": IMMUTABLE_CACHE }
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function notFound() {
|
|
645
638
|
return { status: 404, body: "Not found", contentType: "text/plain; charset=utf-8" };
|
|
646
639
|
}
|
|
647
640
|
function htmlResult(html, config) {
|