chore(embedded): cut v0.0.17-beta
This commit is contained in:
parent
0b69367901
commit
f2af379ff5
8 changed files with 114 additions and 51 deletions
|
|
@ -53,9 +53,9 @@
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -74,9 +74,9 @@
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -2316,7 +2316,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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</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">⟳</button>
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -74,9 +74,9 @@
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -1271,6 +1271,36 @@ html, body {
|
|||
.toc-level-5 a { padding-left: 3.35rem; color: var(--text-muted); font-size: 0.8rem; }
|
||||
.toc-level-6 a { padding-left: 4rem; color: var(--text-muted); font-size: 0.8rem; }
|
||||
|
||||
/* ── Sort control ────────────────────────────────────────────────────────── */
|
||||
.sort-control {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sort-control__label {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.sort-control__select {
|
||||
font-family: var(--font);
|
||||
font-size: 0.8rem;
|
||||
padding: 0.2rem 0.4rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sort-control__select:focus {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -1286,7 +1316,7 @@ html, 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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</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">⟳</button>
|
||||
|
|
@ -1323,6 +1353,18 @@ html, body {
|
|||
</div>
|
||||
<nav class="breadcrumbs" id="breadcrumbs" aria-label="Path"></nav>
|
||||
<span class="toolbar__count" id="entryCount"></span>
|
||||
<label class="sort-control" for="sortBy" title="Sort tree entries">
|
||||
<span class="sort-control__label">Sort:</span>
|
||||
<select id="sortBy" class="sort-control__select" aria-label="Sort tree entries">
|
||||
<option value="name:asc">Name (A→Z)</option>
|
||||
<option value="name:desc">Name (Z→A)</option>
|
||||
<option value="date:desc">Modified (new→old)</option>
|
||||
<option value="date:asc">Modified (old→new)</option>
|
||||
<option value="size:desc">Size (large→small)</option>
|
||||
<option value="size:asc">Size (small→large)</option>
|
||||
<option value="ext:asc">Type (A→Z)</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- Browse mode (default): two-pane tree + preview -->
|
||||
|
|
@ -4845,6 +4887,13 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|||
}
|
||||
render();
|
||||
},
|
||||
// Set both key and direction explicitly. dir: 1 (asc) or -1 (desc).
|
||||
// Used by the toolbar's sort dropdown.
|
||||
setSortExplicit: function (key, dir) {
|
||||
state.sort.key = key;
|
||||
state.sort.dir = (dir === -1 ? -1 : 1);
|
||||
render();
|
||||
},
|
||||
pathFor: pathFor
|
||||
};
|
||||
})();
|
||||
|
|
@ -5775,6 +5824,20 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|||
var refresh = document.getElementById('refreshHeaderBtn');
|
||||
if (refresh) refresh.addEventListener('click', refreshListing);
|
||||
|
||||
// Sort dropdown — change → tree re-renders with the new sort.
|
||||
// Format of option value: "<key>:<asc|desc>". Defaults match
|
||||
// state.sort initial values (name:asc).
|
||||
var sortSel = document.getElementById('sortBy');
|
||||
if (sortSel) {
|
||||
sortSel.value = state.sort.key + ':' + (state.sort.dir > 0 ? 'asc' : 'desc');
|
||||
sortSel.addEventListener('change', function () {
|
||||
var parts = sortSel.value.split(':');
|
||||
var key = parts[0];
|
||||
var dir = parts[1] === 'desc' ? -1 : 1;
|
||||
tree.setSortExplicit(key, dir);
|
||||
});
|
||||
}
|
||||
|
||||
// View-mode toggle (Browse vs Grid)
|
||||
var btnBrowse = document.getElementById('viewModeBrowse');
|
||||
var btnGrid = document.getElementById('viewModeGrid');
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -74,9 +74,9 @@
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -1536,7 +1536,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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</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>
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -74,9 +74,9 @@
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -1225,7 +1225,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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
|
|
|
|||
|
|
@ -273,9 +273,9 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -294,9 +294,9 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -2010,7 +2010,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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</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">⟳</button>
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ conventions at https://codeberg.org/VARASYS/ZDDC#file-naming-convention.
|
|||
/* The [data-theme="light"] selector locks light mode regardless of OS pref. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -78,9 +78,9 @@ conventions at https://codeberg.org/VARASYS/ZDDC#file-naming-convention.
|
|||
|
||||
/* Manual dark override — wins over media query */
|
||||
[data-theme="dark"] {
|
||||
--primary: #4a90c4;
|
||||
--primary-hover: #5ba3d9;
|
||||
--primary-active: #6ab5e8;
|
||||
--primary: #5fa8e0;
|
||||
--primary-hover: #74b6e6;
|
||||
--primary-active: #88c4ec;
|
||||
--primary-light: #1a3550;
|
||||
|
||||
--bg: #1e1e1e;
|
||||
|
|
@ -2378,7 +2378,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-11 · brass-dolphin-ivory</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</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-11 · brass-dolphin-ivory
|
||||
transmittal=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
classifier=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
mdedit=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
landing=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
form=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
tables=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
browse=v0.0.17-beta · 2026-05-11 · brass-dolphin-ivory
|
||||
archive=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
transmittal=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
classifier=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
mdedit=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
landing=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
form=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
tables=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
browse=v0.0.17-beta · 2026-05-11 · crescent-coast-beam
|
||||
|
|
|
|||
|
|
@ -1155,7 +1155,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-alpha · 2026-05-11 00:21:36 · 89d96b7-dirty</span></span>
|
||||
<span class="build-timestamp"><span style="color:red;font-weight:bold">v0.0.17-beta · 2026-05-11 · crescent-coast-beam</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
|
|
|
|||
Loading…
Reference in a new issue