shadok-ai 0.15.23 → 0.15.24
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/package.json +1 -1
- package/public/index.html +29 -2
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -204,6 +204,24 @@
|
|
|
204
204
|
}
|
|
205
205
|
header .ver:hover { text-decoration: underline; }
|
|
206
206
|
header .ver.stale { color: var(--amber); }
|
|
207
|
+
/* Small badge next to the version: which release channel this instance
|
|
208
|
+
follows (beta by default, alpha on the fast channel). Passive label — the
|
|
209
|
+
version number beside it is what opens the menu. */
|
|
210
|
+
header .ver-chan {
|
|
211
|
+
font-family: var(--mono);
|
|
212
|
+
font-size: 8px;
|
|
213
|
+
letter-spacing: .5px;
|
|
214
|
+
text-transform: uppercase;
|
|
215
|
+
color: var(--text-dim);
|
|
216
|
+
border: 1px solid currentColor;
|
|
217
|
+
border-radius: 3px;
|
|
218
|
+
padding: 0 3px;
|
|
219
|
+
margin-left: 4px;
|
|
220
|
+
vertical-align: 1px;
|
|
221
|
+
opacity: .7;
|
|
222
|
+
}
|
|
223
|
+
header .ver-chan:empty { display: none; }
|
|
224
|
+
header .ver-chan.alpha { color: var(--amber); opacity: .85; }
|
|
207
225
|
#verMenu {
|
|
208
226
|
position: fixed; top: 42px; left: 12px; z-index: 1001;
|
|
209
227
|
background: var(--menu-bg); border: 1px solid var(--line); border-radius: 6px;
|
|
@@ -1914,7 +1932,7 @@
|
|
|
1914
1932
|
<body>
|
|
1915
1933
|
|
|
1916
1934
|
<header>
|
|
1917
|
-
<span class="brand"><span class="brand-name" id="brandName" title="Rename this cockpit">shadok-ai</span><span class="brand-edit" id="brandEdit" title="Rename this cockpit" aria-hidden="true">✎</span> <span class="ver" id="verView" title="Running version"></span></span>
|
|
1935
|
+
<span class="brand"><span class="brand-name" id="brandName" title="Rename this cockpit">shadok-ai</span><span class="brand-edit" id="brandEdit" title="Rename this cockpit" aria-hidden="true">✎</span> <span class="ver" id="verView" title="Running version"></span><span class="ver-chan" id="verChan" aria-hidden="true"></span></span>
|
|
1918
1936
|
<span class="spacer"></span>
|
|
1919
1937
|
<div class="gauge quota" id="quota5h" data-window="5h" title="5h rolling limit">
|
|
1920
1938
|
<svg class="dial" viewBox="0 0 56 44" role="img" aria-label="5h rolling limit">
|
|
@@ -6148,6 +6166,7 @@
|
|
|
6148
6166
|
let bootVersion = null;
|
|
6149
6167
|
let lastVersion = null; // last {current, latest, autoUpdate} seen
|
|
6150
6168
|
const verView = document.getElementById("verView");
|
|
6169
|
+
const verChan = document.getElementById("verChan");
|
|
6151
6170
|
const verMenu = document.getElementById("verMenu");
|
|
6152
6171
|
const autoUpdateChk = document.getElementById("autoUpdateChk");
|
|
6153
6172
|
const updChannelSel = document.getElementById("updChannelSel");
|
|
@@ -6178,6 +6197,14 @@
|
|
|
6178
6197
|
verView.textContent = ahead ? "v" + msg.current + " → " + msg.latest : "v" + (msg.current || "?");
|
|
6179
6198
|
verView.classList.toggle("stale", !!ahead);
|
|
6180
6199
|
verView.title = ahead ? "Update available — click for options" : "running version — click for options";
|
|
6200
|
+
// Release channel next to the number: beta by default, alpha on the fast
|
|
6201
|
+
// channel. Honest per instance rather than a hardcoded label.
|
|
6202
|
+
if (verChan) {
|
|
6203
|
+
const ch = msg.updateChannel === "alpha" ? "alpha" : "beta";
|
|
6204
|
+
verChan.textContent = ch;
|
|
6205
|
+
verChan.classList.toggle("alpha", ch === "alpha");
|
|
6206
|
+
verChan.title = "Release channel — click the version for options";
|
|
6207
|
+
}
|
|
6181
6208
|
renderVerMenu();
|
|
6182
6209
|
}
|
|
6183
6210
|
|
|
@@ -6357,7 +6384,7 @@
|
|
|
6357
6384
|
.catch(() => {});
|
|
6358
6385
|
// Click outside closes it; clicks inside the menu don't.
|
|
6359
6386
|
document.addEventListener("click", (e) => {
|
|
6360
|
-
if (!verMenu.hidden && !verMenu.contains(e.target) && e.target !== verView) toggleVerMenu(false);
|
|
6387
|
+
if (!verMenu.hidden && !verMenu.contains(e.target) && e.target !== verView && e.target !== verChan) toggleVerMenu(false);
|
|
6361
6388
|
});
|
|
6362
6389
|
autoUpdateChk.addEventListener("change", async () => {
|
|
6363
6390
|
const enabled = autoUpdateChk.checked;
|