clavarium 0.2.220-beta.1 → 0.2.221-beta.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/server/settingswords.mjs +1 -1
- package/web/app.js +4 -1
- package/web/desk.js +9 -4
- package/web/index.html +1 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.221-beta.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.221-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/settingswords.mjs
CHANGED
|
@@ -137,7 +137,7 @@ export const SETTINGS_WORDS_FR = {
|
|
|
137
137
|
'set-room-give-done': 'Donné à {name}', 'set-room-give-kept': '{name} a déjà plus', 'set-room-give-cancel': 'Annuler',
|
|
138
138
|
/* « Less is more » (07-11): every word still in English on a French screen -- the list, Assets, a room. */
|
|
139
139
|
'set-no-conv': 'Aucune conversation', 'set-home-choose': 'Choisissez une conversation, ou créez-en une.',
|
|
140
|
-
'set-home-no-such': 'Cette adresse ne nomme aucune conversation.', 'set-nav-access': 'Accès', 'set-nav-settings': 'Réglages',
|
|
140
|
+
'set-home-no-such': 'Cette adresse ne nomme aucune conversation.', 'set-nav-home': 'Accueil', 'set-nav-access': 'Accès', 'set-nav-settings': 'Réglages',
|
|
141
141
|
'set-list-needs': 'À vous', 'set-list-recent': 'Récent', 'set-list-groups': 'Groupes', 'set-list-rooms': 'Salons',
|
|
142
142
|
'set-list-not-filed': 'Sans groupe', 'set-list-asks': 'vous demande', 'set-list-waits': 'vous attend',
|
|
143
143
|
'set-list-asks-for': 'le répondeur vous demande', 'set-list-answered': 'a répondu à votre place',
|
package/web/app.js
CHANGED
|
@@ -7219,7 +7219,10 @@
|
|
|
7219
7219
|
features.unmount($(off)); $(off).hidden = true;
|
|
7220
7220
|
features.show($(on), welcoming ? 'welcome' : 'home');
|
|
7221
7221
|
}
|
|
7222
|
-
|
|
7222
|
+
/* The desk folds the list away, as the other places of the menu do (16-11: the operator). */
|
|
7223
|
+
function openDeck(push = true) { if (DEVICE) return; if (!narrow()) foldOnOpen(); enterPlace('deck', push); void paintDeck(); }
|
|
7224
|
+
/* « Home » in the menu: the desk, said plainly (its title, top left, was not seen as a way there). */
|
|
7225
|
+
$('nav-home').addEventListener('click', () => openDeck());
|
|
7223
7226
|
$('deck-close').addEventListener('click', () => leavePlace());
|
|
7224
7227
|
$('deck-empty-new').addEventListener('click', () => { void openNew(); });
|
|
7225
7228
|
/* Import a configuration: the import of the map (Access, Flows), a file chosen at once. */
|
package/web/desk.js
CHANGED
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
/* ---- the pointer: a press opens; a long press, or a drag in edit mode, moves ---- */
|
|
370
|
-
let press = null; let drag = null;
|
|
370
|
+
let press = null; let drag = null; let tapped = '';
|
|
371
371
|
const LONG_MS = 550;
|
|
372
372
|
function down(e) {
|
|
373
373
|
if (e.button !== 0 && e.pointerType === 'mouse') return;
|
|
@@ -392,8 +392,9 @@
|
|
|
392
392
|
clearTimeout(press.timer);
|
|
393
393
|
const p = press; press = null;
|
|
394
394
|
if (editing) return;
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
/* Opened on the click that follows, not here: on a touch screen that click lands where the finger was,
|
|
396
|
+
which would be the folder's backdrop once open, and close it at once (16-11, a tablet). */
|
|
397
|
+
tapped = p.id;
|
|
397
398
|
}
|
|
398
399
|
function startDrag(e) {
|
|
399
400
|
const t = press.tile; const r = t.getBoundingClientRect();
|
|
@@ -450,7 +451,11 @@
|
|
|
450
451
|
grid.addEventListener('contextmenu', (e) => { if (e.target.closest('.desk-tile')) e.preventDefault(); });
|
|
451
452
|
grid.addEventListener('click', (e) => {
|
|
452
453
|
const more = e.target.closest('.desk-more');
|
|
453
|
-
if (more) { e.stopPropagation(); const t = more.closest('.desk-tile'); if (menu && menu.dataset.for === t.dataset.id) { closeMenu(); return; } menuFor(t.dataset.id, more); if (menu) menu.dataset.for = t.dataset.id; }
|
|
454
|
+
if (more) { e.stopPropagation(); const t = more.closest('.desk-tile'); if (menu && menu.dataset.for === t.dataset.id) { closeMenu(); return; } menuFor(t.dataset.id, more); if (menu) menu.dataset.for = t.dataset.id; return; }
|
|
455
|
+
const t = e.target.closest('.desk-tile'); const id = tapped; tapped = '';
|
|
456
|
+
if (!t || editing || !id || t.dataset.id !== id) return;
|
|
457
|
+
const it = find(id);
|
|
458
|
+
if (it?.folder !== undefined) { shownFolder = it.id; paintFolder(); } else o.open(id);
|
|
454
459
|
});
|
|
455
460
|
grid.addEventListener('keydown', (e) => {
|
|
456
461
|
const t = e.target.closest('.desk-tile'); if (!t || e.target !== t) return;
|
package/web/index.html
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
<div id="list-resize" role="separator" aria-orientation="vertical" aria-label="Width of the list" title="Drag to widen or narrow the list; double click for its usual width" tabindex="0" hidden></div>
|
|
37
37
|
<nav id="nav" aria-label="Places" hidden>
|
|
38
38
|
<button type="button" id="nav-conversations" data-place="conversations" aria-current="page"><svg class="nav-ic" viewBox="0 0 24 24" aria-hidden="true" data-icon="message-square"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414 .586l-2.202 2.202A.71 .71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/></svg><span>Conversations</span></button>
|
|
39
|
+
<button type="button" id="nav-home" data-place="deck"><svg class="nav-ic" viewBox="0 0 24 24" aria-hidden="true" data-icon="house"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg><span data-said="set-nav-home">Home</span></button>
|
|
39
40
|
<button type="button" id="nav-assets" data-place="assets"><svg class="nav-ic" viewBox="0 0 24 24" aria-hidden="true" data-icon="layers"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/></svg><span>Assets</span></button>
|
|
40
41
|
<button type="button" id="nav-access" data-place="access"><svg class="nav-ic" viewBox="0 0 24 24" aria-hidden="true" data-icon="waypoints"><path d="m10.586 5.414-5.172 5.172"/><path d="m18.586 13.414-5.172 5.172"/><path d="M6 12h12"/><circle cx="12" cy="20" r="2"/><circle cx="12" cy="4" r="2"/><circle cx="20" cy="12" r="2"/><circle cx="4" cy="12" r="2"/></svg><span data-said="set-nav-access">Access</span></button>
|
|
41
42
|
<button type="button" id="nav-settings" data-place="settings"><svg class="nav-ic" viewBox="0 0 24 24" aria-hidden="true" data-icon="settings"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/></svg><span data-said="set-nav-settings">Settings</span></button>
|