@weiping/mbridge-page 0.5.0 → 0.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weiping/mbridge-page",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "mbridge's usage at a glance inside magpie: what magpie's ledger recorded, and where mbridge's own status page is.",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/page/style.css CHANGED
@@ -111,3 +111,5 @@
111
111
  background: var(--bg); color: var(--fg); cursor: pointer; font: inherit;
112
112
  }
113
113
  .guide-refresh:hover { background: var(--chip); }
114
+
115
+ .pagever { color: var(--dim); font-size: .75em; font-weight: 400; margin-left: .5rem; }
package/page/view.js CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  const REFRESH_MS = 5000;
8
8
 
9
+ // PAGE_VERSION is this page's own build: the sidebar keeps the iframe it
10
+ // built the first time, so a stale tab shows an old version here (SP14 §2:
11
+ // the plugin page is a one-way ticket — toggle the plugin off and on to
12
+ // get a new frame).
13
+ const PAGE_VERSION = "0.5.1";
14
+
9
15
  const TEXT = {
10
16
  en: {
11
17
  title: "mbridge",
@@ -458,7 +464,8 @@ function calibrationTable(c) {
458
464
  // the headline: mbridge's own numbers, not the process table
459
465
  root.appendChild(el("header", { class: "head" }, [
460
466
  el("h1", {}, [el("span", { text: "mbridge" }),
461
- el("span", { class: "version", text: " " + (data.version || "") })]),
467
+ el("span", { class: "version", text: " " + (data.version || "") }),
468
+ el("span", { class: "pagever", text: "page " + PAGE_VERSION })]),
462
469
  el("p", { class: "sub", text: t.subtitle }),
463
470
  ]));
464
471
 
@@ -668,6 +675,7 @@ function calibrationTable(c) {
668
675
  }
669
676
 
670
677
  globalThis.MbridgeView = {
678
+ PAGE_VERSION,
671
679
  TEXT,
672
680
  REASONS,
673
681
  TIERS,