clavarium 0.2.44-next.1 → 0.2.45-next.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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/app.js +7 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.45-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.45-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -111,8 +111,10 @@
|
|
|
111
111
|
$('notice-spin').hidden = true; $('notice-steps').hidden = true;
|
|
112
112
|
$('notice-head').hidden = true; delete notice.dataset.progress; delete notice.dataset.loading;
|
|
113
113
|
};
|
|
114
|
-
/* A terminal on its way: a neutral word and the wheel, nothing that sounds like a fault.
|
|
115
|
-
|
|
114
|
+
/* A terminal on its way: a neutral word and the wheel, nothing that sounds like a fault. It
|
|
115
|
+
covers only when the terminal is what is on screen -- not the chat already there, which a tab
|
|
116
|
+
resume (its channel reopened) used to blank behind "Loading the terminal..." (found 26-10). */
|
|
117
|
+
const loading = () => { if (tabNow() !== 'terminal') return; show('Loading the terminal\u2026'); $('notice-spin').hidden = false; notice.dataset.loading = 'yes'; };
|
|
116
118
|
/* A restart: when the page first saw it (when the server did not say), and the clock that tells it. */
|
|
117
119
|
const restartSeen = new Map(); let restartTicking = 0;
|
|
118
120
|
/* A START TOLD STEP BY STEP (a build, a restart, a wake: `progress`, see
|
|
@@ -1672,6 +1674,9 @@
|
|
|
1672
1674
|
function paintViews() {
|
|
1673
1675
|
if (DEVICE) return;
|
|
1674
1676
|
const now = tabNow();
|
|
1677
|
+
/* The "Loading the terminal..." veil belongs to the terminal: leaving it for the chat (or
|
|
1678
|
+
any other tab) takes the veil away, so a tab already there is not covered. */
|
|
1679
|
+
if (notice.dataset.loading && now !== 'terminal') notice.hidden = true;
|
|
1675
1680
|
for (const [id, tab] of [['view-chat', 'chat'], ['view-terminal', 'terminal'], ['view-assets', 'assets'], ['view-lists', 'lists'], ['folders', 'settings']]) $(id).setAttribute('aria-pressed', String(now === tab));
|
|
1676
1681
|
}
|
|
1677
1682
|
/* THE FOUR TABS: Chat, Terminal, Assets, Settings. The one it opened on
|