clavarium 0.2.51-beta.1 → 0.2.52-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 +6 -6
- package/package.json +2 -2
- package/web/links.js +4 -4
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52-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.52-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
14
|
"clavarium-binder": "0.1.8-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.1",
|
|
16
|
-
"clavarium-parley": "0.17.
|
|
16
|
+
"clavarium-parley": "0.17.10-next.1",
|
|
17
17
|
"clavarium-tether": "0.1.0-next.10",
|
|
18
18
|
"mermaid": "11.17.2",
|
|
19
19
|
"node-pty": "^1.1.0",
|
|
@@ -742,9 +742,9 @@
|
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
744
|
"node_modules/clavarium-parley": {
|
|
745
|
-
"version": "0.17.
|
|
746
|
-
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.
|
|
747
|
-
"integrity": "sha512-
|
|
745
|
+
"version": "0.17.10-next.1",
|
|
746
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.10-next.1.tgz",
|
|
747
|
+
"integrity": "sha512-a4mZ29EFeBV6P+cumehzJ3VmVWcswklv2L5XAC0Oo+kJQ6k09komHlz2uZZVRRQZFhgC0I6G+avFAYq5zsophA==",
|
|
748
748
|
"license": "MIT",
|
|
749
749
|
"bin": {
|
|
750
750
|
"parley": "bin/parley.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
47
|
"clavarium-binder": "0.1.8-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.1",
|
|
49
|
-
"clavarium-parley": "0.17.
|
|
49
|
+
"clavarium-parley": "0.17.10-next.1",
|
|
50
50
|
"clavarium-tether": "0.1.0-next.10",
|
|
51
51
|
"mermaid": "11.17.2",
|
|
52
52
|
"node-pty": "^1.1.0",
|
package/web/links.js
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
/* An icon of that set, or, until it is there, nothing in its place. */
|
|
29
29
|
const ic = (name, cls = 'lk-svg') => window.clavariumIcons?.icon(name, cls) ?? null;
|
|
30
30
|
const kindIcon = (kind) => h('span', { class: 'lk-ic', 'aria-hidden': 'true' }, ic(KIND_ICON[kind]));
|
|
31
|
-
const KIND_WORD = { device: 'device', conversation: 'conversation', folder: 'folder', git: 'repository', mailbox: 'mailbox', secret: 'secret' };
|
|
32
|
-
const COLUMN = { device: 'device', conversation: 'conversation', folder: 'asset', git: 'asset', mailbox: 'asset', secret: 'asset' };
|
|
31
|
+
const KIND_WORD = { device: 'device', conversation: 'conversation', folder: 'folder', git: 'repository', mailbox: 'mailbox', agenda: 'calendar', contacts: 'address book', secret: 'secret' };
|
|
32
|
+
const COLUMN = { device: 'device', conversation: 'conversation', folder: 'asset', git: 'asset', mailbox: 'asset', agenda: 'asset', contacts: 'asset', secret: 'asset' };
|
|
33
33
|
const TITLES = { device: 'Devices', conversation: 'Conversations', asset: 'Assets' };
|
|
34
34
|
const VIEWS = {
|
|
35
35
|
devices: { cols: [['device'], ['conversation', 'asset']], sources: ['device'] },
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
if (k === 'chat' && !l.rights.includes('w')) return 'chat, read only';
|
|
92
92
|
return WORDS[k].toLowerCase();
|
|
93
93
|
};
|
|
94
|
-
const allowed = (a, b) => !a.pending && !b.pending && ((a.kind === 'device' && ['conversation', 'folder', 'git', 'mailbox'].includes(b.kind)) || (a.kind === 'conversation' && ['folder', 'git', 'mailbox', 'secret'].includes(b.kind)));
|
|
94
|
+
const allowed = (a, b) => !a.pending && !b.pending && ((a.kind === 'device' && ['conversation', 'folder', 'git', 'mailbox'].includes(b.kind)) || (a.kind === 'conversation' && ['folder', 'git', 'mailbox', 'agenda', 'contacts', 'secret'].includes(b.kind)));
|
|
95
95
|
const inView = (n) => VIEWS[view].cols.flat().includes(COLUMN[n.kind]);
|
|
96
96
|
const shown = (l) => VIEWS[view].sources.includes(node(l.from)?.kind) && inView(node(l.to));
|
|
97
97
|
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
times, puts each box at the average place of what it is linked to; the order
|
|
162
162
|
that crossed least is kept. What is linked to nothing goes last, by name. */
|
|
163
163
|
function layout() {
|
|
164
|
-
const ASSETS = ['folder', 'git', 'mailbox', 'secret'];
|
|
164
|
+
const ASSETS = ['folder', 'git', 'mailbox', 'agenda', 'contacts', 'secret'];
|
|
165
165
|
const base = (k) => graph.nodes.filter((n) => COLUMN[n.kind] === k).sort((a, b) => (ASSETS.indexOf(a.kind) - ASSETS.indexOf(b.kind)) || a.name.localeCompare(b.name));
|
|
166
166
|
let cols = VIEWS[view].cols.map((ks) => ks.map(base));
|
|
167
167
|
const colOf = new Map(); cols.forEach((gs, ci) => gs.flat().forEach((n) => colOf.set(n.id, ci)));
|