From 002e03411980e0c11302bd92f7199764da961fba Mon Sep 17 00:00:00 2001 From: ZDDC Date: Sat, 9 May 2026 21:37:22 -0500 Subject: [PATCH] chore(embedded): cut v0.0.17-beta --- zddc/internal/apps/embedded/archive.html | 2 +- zddc/internal/apps/embedded/browse.html | 2 +- zddc/internal/apps/embedded/classifier.html | 21 ++++++++++++++++++-- zddc/internal/apps/embedded/index.html | 2 +- zddc/internal/apps/embedded/mdedit.html | 21 ++++++++++++++++++-- zddc/internal/apps/embedded/transmittal.html | 21 ++++++++++++++++++-- zddc/internal/apps/embedded/versions.txt | 16 +++++++-------- zddc/internal/handler/tables.html | 21 ++++++++++++++++++-- 8 files changed, 87 insertions(+), 19 deletions(-) diff --git a/zddc/internal/apps/embedded/archive.html b/zddc/internal/apps/embedded/archive.html index 83c6fe8..f21176e 100644 --- a/zddc/internal/apps/embedded/archive.html +++ b/zddc/internal/apps/embedded/archive.html @@ -2245,7 +2245,7 @@ td[data-field="trackingNumber"] {
ZDDC Archive - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
diff --git a/zddc/internal/apps/embedded/browse.html b/zddc/internal/apps/embedded/browse.html index d9ad87a..7ad8faf 100644 --- a/zddc/internal/apps/embedded/browse.html +++ b/zddc/internal/apps/embedded/browse.html @@ -999,7 +999,7 @@ body {
ZDDC Browse - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
diff --git a/zddc/internal/apps/embedded/classifier.html b/zddc/internal/apps/embedded/classifier.html index 4934c56..1c8cfb2 100644 --- a/zddc/internal/apps/embedded/classifier.html +++ b/zddc/internal/apps/embedded/classifier.html @@ -1464,7 +1464,7 @@ body.help-open .app-header {
ZDDC Classifier - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
@@ -2348,7 +2348,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE for (var i = 0; i < entries.length; i++) { var e = entries[i]; var rawName = stripSlash(e.name); - var childUrl = joinUrl(url, rawName, e.is_dir); + // Listing entries can carry an explicit URL for virtual + // links (e.g. the reviewing-aggregator's received/+staged/ + // entries point to canonical archive/+staging paths). + // Use it when present so navigation follows the listing's + // own routing rather than computing a synthetic child URL + // off the parent. Caddy-shape listings don't set url + // (or set it to a relative form) — joinUrl handles those. + var childUrl; + if (e.url && /^https?:\/\/|^\//.test(e.url)) { + // Absolute or root-relative: use as-is, normalised against origin. + var u = e.url; + if (u[0] === '/') { + u = location.origin + u; + } + childUrl = u; + } else { + childUrl = joinUrl(url, rawName, e.is_dir); + } if (e.is_dir) { yield new HttpDirectoryHandle(childUrl, rawName); } else { diff --git a/zddc/internal/apps/embedded/index.html b/zddc/internal/apps/embedded/index.html index d92faf0..5ca00db 100644 --- a/zddc/internal/apps/embedded/index.html +++ b/zddc/internal/apps/embedded/index.html @@ -988,7 +988,7 @@ body {
ZDDC - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
diff --git a/zddc/internal/apps/embedded/mdedit.html b/zddc/internal/apps/embedded/mdedit.html index 69f2faa..04bb371 100644 --- a/zddc/internal/apps/embedded/mdedit.html +++ b/zddc/internal/apps/embedded/mdedit.html @@ -1903,7 +1903,7 @@ body.help-open .app-header {
ZDDC Markdown - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
@@ -2587,7 +2587,24 @@ body.help-open .app-header { for (var i = 0; i < entries.length; i++) { var e = entries[i]; var rawName = stripSlash(e.name); - var childUrl = joinUrl(url, rawName, e.is_dir); + // Listing entries can carry an explicit URL for virtual + // links (e.g. the reviewing-aggregator's received/+staged/ + // entries point to canonical archive/+staging paths). + // Use it when present so navigation follows the listing's + // own routing rather than computing a synthetic child URL + // off the parent. Caddy-shape listings don't set url + // (or set it to a relative form) — joinUrl handles those. + var childUrl; + if (e.url && /^https?:\/\/|^\//.test(e.url)) { + // Absolute or root-relative: use as-is, normalised against origin. + var u = e.url; + if (u[0] === '/') { + u = location.origin + u; + } + childUrl = u; + } else { + childUrl = joinUrl(url, rawName, e.is_dir); + } if (e.is_dir) { yield new HttpDirectoryHandle(childUrl, rawName); } else { diff --git a/zddc/internal/apps/embedded/transmittal.html b/zddc/internal/apps/embedded/transmittal.html index 1b688c8..3ae7124 100644 --- a/zddc/internal/apps/embedded/transmittal.html +++ b/zddc/internal/apps/embedded/transmittal.html @@ -2263,7 +2263,7 @@ dialog.modal--narrow {
ZDDC Transmittal - v0.0.17-beta · 2026-05-10 · locust-heron-dock + v0.0.17-beta · 2026-05-10 · flame-canvas-atlas
JavaScript not available