@weiping/mbridge-page 0.5.0 → 0.5.2
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/page/style.css +2 -0
- package/page/view.js +11 -1
package/package.json
CHANGED
package/page/style.css
CHANGED
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.2";
|
|
14
|
+
|
|
9
15
|
const TEXT = {
|
|
10
16
|
en: {
|
|
11
17
|
title: "mbridge",
|
|
@@ -14,6 +20,7 @@ const TEXT = {
|
|
|
14
20
|
unknown: "unknown",
|
|
15
21
|
listenPending: "the listen in router.json takes effect only after a restart",
|
|
16
22
|
turns: "turns",
|
|
23
|
+
tools: "tools",
|
|
17
24
|
coverage: "asked the classifier",
|
|
18
25
|
failures: "failures",
|
|
19
26
|
cost: "cost",
|
|
@@ -67,6 +74,7 @@ const TEXT = {
|
|
|
67
74
|
unknown: "未知",
|
|
68
75
|
listenPending: "router.json 里的 listen 要重启才生效",
|
|
69
76
|
turns: "轮",
|
|
77
|
+
tools: "工具",
|
|
70
78
|
coverage: "问了分类器",
|
|
71
79
|
failures: "失败",
|
|
72
80
|
cost: "成本",
|
|
@@ -458,7 +466,8 @@ function calibrationTable(c) {
|
|
|
458
466
|
// the headline: mbridge's own numbers, not the process table
|
|
459
467
|
root.appendChild(el("header", { class: "head" }, [
|
|
460
468
|
el("h1", {}, [el("span", { text: "mbridge" }),
|
|
461
|
-
el("span", { class: "version", text: " " + (data.version || "") })
|
|
469
|
+
el("span", { class: "version", text: " " + (data.version || "") }),
|
|
470
|
+
el("span", { class: "pagever", text: "page " + PAGE_VERSION })]),
|
|
462
471
|
el("p", { class: "sub", text: t.subtitle }),
|
|
463
472
|
]));
|
|
464
473
|
|
|
@@ -668,6 +677,7 @@ function calibrationTable(c) {
|
|
|
668
677
|
}
|
|
669
678
|
|
|
670
679
|
globalThis.MbridgeView = {
|
|
680
|
+
PAGE_VERSION,
|
|
671
681
|
TEXT,
|
|
672
682
|
REASONS,
|
|
673
683
|
TIERS,
|