chore(embedded): cut v0.0.17-beta
This commit is contained in:
parent
66232598db
commit
dd889b4801
9 changed files with 68 additions and 16 deletions
|
|
@ -2131,7 +2131,7 @@ td[data-field="trackingNumber"] {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC Archive</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
<button id="addDirectoryBtn" class="btn btn-primary">Add Local Directory</button>
|
||||
<button id="refreshHeaderBtn" class="btn btn-secondary hidden" title="Refresh Data" style="font-size:1.1rem;">⟳</button>
|
||||
|
|
|
|||
|
|
@ -896,7 +896,7 @@ body {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC Browse</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
<button id="addDirectoryBtn" class="btn btn-primary">Add Local Directory</button>
|
||||
<button id="refreshHeaderBtn" class="btn btn-secondary hidden" title="Refresh listing" aria-label="Refresh listing" style="font-size:1.1rem;">⟳</button>
|
||||
|
|
@ -1000,6 +1000,10 @@ body {
|
|||
<dl>
|
||||
<dt>Click a folder</dt>
|
||||
<dd>Toggle expand/collapse on that folder.</dd>
|
||||
<dt>Double-click a folder</dt>
|
||||
<dd>Navigate into the folder — it becomes the new root of the
|
||||
view. Server mode loads the folder's URL; local mode re-roots
|
||||
onto that folder's handle.</dd>
|
||||
<dt>Shift-click a folder</dt>
|
||||
<dd>Recursive expand or collapse — applies to the whole subtree.</dd>
|
||||
<dt>Click a file</dt>
|
||||
|
|
@ -3601,6 +3605,54 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|||
// Browser handles target=_blank natively for middle
|
||||
// click; don't preventDefault, just don't intercept.
|
||||
});
|
||||
|
||||
// Double-click on a folder → "navigate into" it. Distinct
|
||||
// from single-click (which expands inline) so users keep
|
||||
// both UX models. Server mode jumps to the folder URL —
|
||||
// zddc-server returns a fresh browse instance scoped to
|
||||
// that directory. FS-API mode swaps state.rootHandle to
|
||||
// the folder's handle and re-loads, so the user sees
|
||||
// only that subtree at the root level.
|
||||
//
|
||||
// Files: dblclick is left alone — the single-click preview
|
||||
// is already a "look at this file" action; a separate
|
||||
// navigate-into doesn't apply.
|
||||
// ZIPs: skipped too — they're inspected via inline
|
||||
// expansion (JSZip), not navigated into.
|
||||
tbody.addEventListener('dblclick', function (e) {
|
||||
var row = e.target.closest('tr.tree-row');
|
||||
if (!row) return;
|
||||
if (row.dataset.isdir !== 'true') return;
|
||||
var id = parseInt(row.dataset.id, 10);
|
||||
var node = state.nodes.get(id);
|
||||
if (!node) return;
|
||||
e.preventDefault();
|
||||
navigateIntoFolder(node);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async function navigateIntoFolder(node) {
|
||||
if (state.source === 'server') {
|
||||
var url = window.app.modules.tree.pathFor(node);
|
||||
if (!url.endsWith('/')) url += '/';
|
||||
window.location.assign(url);
|
||||
return;
|
||||
}
|
||||
if (state.source === 'fs') {
|
||||
if (!node.handle || node.handle.kind !== 'directory') return;
|
||||
state.rootHandle = node.handle;
|
||||
state.currentPath = node.handle.name + '/';
|
||||
var raw;
|
||||
try {
|
||||
raw = await loader.fetchFsChildren(node.handle);
|
||||
} catch (e) {
|
||||
statusError('Failed to enter ' + node.name + ': ' + e.message);
|
||||
return;
|
||||
}
|
||||
tree.setRoot(raw);
|
||||
tree.render();
|
||||
statusInfo('Entered ' + node.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1394,7 +1394,7 @@ body.help-open .app-header {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC Classifier</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
<button id="addDirectoryBtn" class="btn btn-primary">Add Local Directory</button>
|
||||
<button id="refreshHeaderBtn" class="btn btn-secondary hidden" title="Refresh and rescan directory" aria-label="Refresh" style="font-size:1.1rem;">⟳</button>
|
||||
|
|
|
|||
|
|
@ -885,7 +885,7 @@ body {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
|
|
|
|||
|
|
@ -1792,7 +1792,7 @@ body.help-open .app-header {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC Markdown</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
<button id="addDirectoryBtn" class="btn btn-primary" title="Add a local directory">Add Local Directory</button>
|
||||
<button id="refreshHeaderBtn" class="btn btn-secondary hidden" title="Refresh directory" aria-label="Refresh" style="font-size:1.1rem;">⟳</button>
|
||||
|
|
|
|||
|
|
@ -2192,7 +2192,7 @@ dialog.modal--narrow {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title">ZDDC Transmittal</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
<span id="no-js-notice" class="text-gray-400 text-xs italic">JavaScript not available</span>
|
||||
<!-- Publish split-button (Transmittal-specific primary action;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Generated by build.sh — do not edit. One <app>=<build label> per line.
|
||||
archive=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
transmittal=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
classifier=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
mdedit=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
landing=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
form=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
tables=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
browse=v0.0.17-beta · 2026-05-07 · glacier-ivory-arch
|
||||
archive=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
transmittal=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
classifier=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
mdedit=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
landing=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
form=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
tables=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
browse=v0.0.17-beta · 2026-05-08 · falcon-alder-ginger
|
||||
|
|
|
|||
|
|
@ -741,7 +741,7 @@ body.help-open .app-header {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title" id="form-title">ZDDC Form</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
|
|
|
|||
|
|
@ -665,7 +665,7 @@ body.help-open .app-header {
|
|||
</svg>
|
||||
<div class="header-title-group">
|
||||
<span class="app-header__title" id="table-title">ZDDC Table</span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-07 · glacier-ivory-arch</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-08 · falcon-alder-ginger</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
|
|
|
|||
Loading…
Reference in a new issue