clavarium 0.2.441-next.1 → 0.2.442-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 +9 -4
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.442-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.442-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
|
@@ -4304,7 +4304,9 @@
|
|
|
4304
4304
|
});
|
|
4305
4305
|
}
|
|
4306
4306
|
/* Its settings, on the Access chapter. `giving`: « Give… » instead, in its Assets tab (07-11, assets step 4). */
|
|
4307
|
-
|
|
4307
|
+
/* `atAccess`: on its Access chapter (a link that asks for it). The settings button keeps the tab the person was
|
|
4308
|
+
on (14-11: it jumped from Resources to Access by itself, each time the settings were opened or painted again). */
|
|
4309
|
+
async function openAccess(giving = false, { atAccess = true } = {}) {
|
|
4308
4310
|
if (DEVICE || !current) return;
|
|
4309
4311
|
if (place !== 'conversations') leavePlace();
|
|
4310
4312
|
if (giving) { openGive(); return; }
|
|
@@ -4312,10 +4314,13 @@
|
|
|
4312
4314
|
/* What it has may have changed from another screen: asked again before it is shown. */
|
|
4313
4315
|
await refresh();
|
|
4314
4316
|
await paintPanel();
|
|
4315
|
-
|
|
4316
|
-
openChapter('access');
|
|
4317
|
+
if (atAccess) openChapter('access');
|
|
4317
4318
|
}
|
|
4318
|
-
$('folders').addEventListener('click', () => {
|
|
4319
|
+
$('folders').addEventListener('click', () => {
|
|
4320
|
+
/* A tab chosen before on this device: that one. Never chosen: its Access chapter, as it always opened. */
|
|
4321
|
+
let kept = null; try { kept = localStorage.getItem('clavarium-tab-panel'); } catch { /* a private window */ }
|
|
4322
|
+
void openAccess(false, { atAccess: !kept });
|
|
4323
|
+
});
|
|
4319
4324
|
/* « N assets · see »: its Assets tab. */
|
|
4320
4325
|
$('access-assets').addEventListener('click', () => { goTab('assets'); });
|
|
4321
4326
|
|