solid-panes 3.5.14-bbf45639 → 3.5.16-alpha
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/lib/dashboard/basicPreferences.js +264 -193
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.js +79 -57
- package/lib/dashboard/dashboardPane.js.map +1 -1
- package/lib/dashboard/homepage.js +100 -98
- package/lib/dashboard/homepage.js.map +1 -1
- package/lib/home/homePane.js +103 -112
- package/lib/home/homePane.js.map +1 -1
- package/lib/index.js +97 -49
- package/lib/index.js.map +1 -1
- package/lib/internal/internalPane.js +200 -180
- package/lib/internal/internalPane.js.map +1 -1
- package/lib/mainPage/footer.js +15 -9
- package/lib/mainPage/footer.js.map +1 -1
- package/lib/mainPage/header.js +162 -114
- package/lib/mainPage/header.js.map +1 -1
- package/lib/mainPage/index.js +45 -57
- package/lib/mainPage/index.js.map +1 -1
- package/lib/outline/context.js +17 -13
- package/lib/outline/context.js.map +1 -1
- package/lib/outline/manager.js +193 -162
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/propertyViews.js +46 -32
- package/lib/outline/propertyViews.js.map +1 -1
- package/lib/outline/viewAsImage.js +19 -22
- package/lib/outline/viewAsImage.js.map +1 -1
- package/lib/outline/viewAsMbox.js +15 -5
- package/lib/outline/viewAsMbox.js.map +1 -1
- package/lib/pad/padPane.js +451 -406
- package/lib/pad/padPane.js.map +1 -1
- package/lib/profile/editProfile.view.js +124 -101
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/profile/profile.dom.js +17 -12
- package/lib/profile/profile.dom.js.map +1 -1
- package/lib/sharing/sharingPane.js +45 -33
- package/lib/sharing/sharingPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.js +77 -87
- package/lib/tabbed/tabbedPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +182 -173
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.utils.js +36 -30
- package/lib/trustedApplications/trustedApplications.utils.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +99 -91
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/types.js +4 -1
- package/lib/types.js.map +1 -1
- package/lib/versionInfo.js +28 -23
- package/lib/versionInfo.js.map +1 -1
- package/package.json +13 -13
- package/src/mainPage/index.ts +1 -1
- package/src/outline/manager.js +29 -13
- package/src/versionInfo.ts +3 -3
|
@@ -1,98 +1,106 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var solid_ui_1 = require("solid-ui");
|
|
40
|
-
var trustedApplications_dom_1 = require("./trustedApplications.dom");
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _solidUi = require("solid-ui");
|
|
9
|
+
|
|
10
|
+
var _trustedApplications = require("./trustedApplications.dom");
|
|
11
|
+
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
13
|
+
|
|
14
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
15
|
+
|
|
41
16
|
var thisColor = '#418d99';
|
|
42
17
|
var trustedApplicationView = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
18
|
+
global: true,
|
|
19
|
+
icon: "".concat(_solidUi.icons.iconBase, "noun_15177.svg"),
|
|
20
|
+
name: 'trustedApplications',
|
|
21
|
+
label: function label() {
|
|
22
|
+
return null;
|
|
23
|
+
},
|
|
24
|
+
render: function render(subject, context) {
|
|
25
|
+
var dom = context.dom;
|
|
26
|
+
var div = dom.createElement('div');
|
|
27
|
+
div.classList.add('trusted-applications-pane');
|
|
28
|
+
div.setAttribute('style', 'border: 0.3em solid ' + thisColor + '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;');
|
|
29
|
+
var table = div.appendChild(dom.createElement('table'));
|
|
30
|
+
var main = table.appendChild(dom.createElement('tr'));
|
|
31
|
+
var bottom = table.appendChild(dom.createElement('tr'));
|
|
32
|
+
var statusArea = bottom.appendChild(dom.createElement('div'));
|
|
33
|
+
statusArea.setAttribute('style', 'padding: 0.7em;');
|
|
34
|
+
|
|
35
|
+
_render(dom, main, statusArea)["catch"](function (err) {
|
|
36
|
+
return statusArea.appendChild(_solidUi.widgets.errorMessageBlock(dom, err));
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
return div;
|
|
40
|
+
}
|
|
62
41
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
main.appendChild((0, trustedApplications_dom_1.createText)('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.'));
|
|
92
|
-
return [2 /*return*/];
|
|
42
|
+
|
|
43
|
+
function _render(_x, _x2, _x3) {
|
|
44
|
+
return _render2.apply(this, arguments);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _render2() {
|
|
48
|
+
_render2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(dom, main, statusArea) {
|
|
49
|
+
var authContext, subject, profile, editable, applicationsTable;
|
|
50
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
51
|
+
while (1) {
|
|
52
|
+
switch (_context.prev = _context.next) {
|
|
53
|
+
case 0:
|
|
54
|
+
_context.next = 2;
|
|
55
|
+
return _solidUi.authn.logInLoadProfile({
|
|
56
|
+
dom: dom,
|
|
57
|
+
div: main,
|
|
58
|
+
statusArea: statusArea,
|
|
59
|
+
me: null
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
case 2:
|
|
63
|
+
authContext = _context.sent;
|
|
64
|
+
subject = authContext.me;
|
|
65
|
+
profile = subject.doc();
|
|
66
|
+
|
|
67
|
+
if (_solidUi.store.updater) {
|
|
68
|
+
_context.next = 7;
|
|
69
|
+
break;
|
|
93
70
|
}
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
|
|
72
|
+
throw new Error('Store has no updater');
|
|
73
|
+
|
|
74
|
+
case 7:
|
|
75
|
+
editable = _solidUi.store.updater.editable(profile.uri, _solidUi.store);
|
|
76
|
+
main.appendChild((0, _trustedApplications.createText)('h3', 'Manage your trusted applications'));
|
|
77
|
+
|
|
78
|
+
if (editable) {
|
|
79
|
+
_context.next = 12;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
main.appendChild(_solidUi.widgets.errorMessageBlock(dom, "Your profile ".concat(subject.doc().uri, " is not editable, so we cannot do much here.")));
|
|
84
|
+
return _context.abrupt("return");
|
|
85
|
+
|
|
86
|
+
case 12:
|
|
87
|
+
main.appendChild((0, _trustedApplications.createText)('p', 'Here you can manage the applications you trust.'));
|
|
88
|
+
applicationsTable = (0, _trustedApplications.createApplicationTable)(subject);
|
|
89
|
+
main.appendChild(applicationsTable);
|
|
90
|
+
main.appendChild((0, _trustedApplications.createText)('h4', 'Notes'));
|
|
91
|
+
main.appendChild((0, _trustedApplications.createContainer)('ol', [main.appendChild((0, _trustedApplications.createText)('li', 'Trusted applications will get access to all resources that you have access to.')), main.appendChild((0, _trustedApplications.createText)('li', 'You can limit which modes they have by default.')), main.appendChild((0, _trustedApplications.createText)('li', 'They will not gain more access than you have.'))]));
|
|
92
|
+
main.appendChild((0, _trustedApplications.createText)('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.'));
|
|
93
|
+
|
|
94
|
+
case 18:
|
|
95
|
+
case "end":
|
|
96
|
+
return _context.stop();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, _callee);
|
|
100
|
+
}));
|
|
101
|
+
return _render2.apply(this, arguments);
|
|
96
102
|
}
|
|
97
|
-
|
|
103
|
+
|
|
104
|
+
var _default = trustedApplicationView;
|
|
105
|
+
exports["default"] = _default;
|
|
98
106
|
//# sourceMappingURL=trustedApplications.view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/trustedApplications/trustedApplications.view.ts"],"names":["thisColor","trustedApplicationView","global","icon","icons","iconBase","name","label","render","subject","context","dom","div","createElement","classList","add","setAttribute","table","appendChild","main","bottom","statusArea","err","widgets","errorMessageBlock","authn","logInLoadProfile","me","authContext","profile","doc","store","updater","Error","editable","uri","applicationsTable"],"mappings":";;;;;;;AAAA;;AAIA;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAlB;AAEA,IAAMC,sBAAsC,GAAG;AAC7CC,EAAAA,MAAM,EAAE,IADqC;AAE7CC,EAAAA,IAAI,YAAKC,eAAMC,QAAX,mBAFyC;AAG7CC,EAAAA,IAAI,EAAE,qBAHuC;AAI7CC,EAAAA,KAAK,EAAE;AAAA,WAAM,IAAN;AAAA,GAJsC;AAK7CC,EAAAA,MAAM,EAAE,gBAACC,OAAD,EAAUC,O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B,CADF;;AAzCF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G;;;;eA8CejB,sB","sourcesContent":["import { authn, icons, store, widgets } from 'solid-ui'\nimport { NamedNode } from 'rdflib'\n\nimport { PaneDefinition } from 'pane-registry'\nimport { createApplicationTable, createContainer, createText } from './trustedApplications.dom'\n\nconst thisColor = '#418d99'\n\nconst trustedApplicationView: PaneDefinition = {\n global: true,\n icon: `${icons.iconBase}noun_15177.svg`,\n name: 'trustedApplications',\n label: () => null,\n render: (subject, context) => {\n const dom = context.dom\n const div = dom.createElement('div')\n div.classList.add('trusted-applications-pane')\n div.setAttribute(\n 'style',\n 'border: 0.3em solid ' +\n thisColor +\n '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;'\n )\n const table = div.appendChild(dom.createElement('table'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n render(dom, main, statusArea).catch(err => statusArea.appendChild(widgets.errorMessageBlock(dom, err)))\n return div\n }\n}\n\nasync function render (dom, main, statusArea): Promise<void> {\n const authContext = await authn.logInLoadProfile({ dom: dom, div: main, statusArea: statusArea, me: null })\n const subject = authContext.me as NamedNode\n\n const profile = subject.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n const editable = store.updater.editable(profile.uri, store)\n\n main.appendChild(createText('h3', 'Manage your trusted applications'))\n\n if (!editable) {\n main.appendChild(\n widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`)\n )\n return\n }\n\n main.appendChild(createText('p', 'Here you can manage the applications you trust.'))\n\n const applicationsTable = createApplicationTable(subject)\n main.appendChild(applicationsTable)\n\n main.appendChild(createText('h4', 'Notes'))\n main.appendChild(\n createContainer('ol', [\n main.appendChild(\n createText(\n 'li',\n 'Trusted applications will get access to all resources that you have access to.'\n )\n ),\n main.appendChild(\n createText('li', 'You can limit which modes they have by default.')\n ),\n main.appendChild(\n createText('li', 'They will not gain more access than you have.')\n )\n ])\n )\n main.appendChild(\n createText('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.')\n )\n}\n\nexport default trustedApplicationView\n"],"file":"trustedApplications.view.js"}
|
package/lib/types.js
CHANGED
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
exports
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
buildTime: '2022-02-06T14:39:07Z',
|
|
9
|
+
commit: '51887453dbcfa28d5485e9f2178193b6aea53fa0',
|
|
10
|
+
npmInfo: {
|
|
11
|
+
'solid-panes': '3.5.16',
|
|
12
|
+
npm: '6.14.13',
|
|
13
|
+
ares: '1.17.1',
|
|
14
|
+
brotli: '1.0.9',
|
|
15
|
+
cldr: '39.0',
|
|
16
|
+
icu: '69.1',
|
|
17
|
+
llhttp: '2.1.3',
|
|
18
|
+
modules: '83',
|
|
19
|
+
napi: '8',
|
|
20
|
+
nghttp2: '1.42.0',
|
|
21
|
+
node: '14.17.3',
|
|
22
|
+
openssl: '1.1.1k',
|
|
23
|
+
tz: '2021a',
|
|
24
|
+
unicode: '13.0',
|
|
25
|
+
uv: '1.41.0',
|
|
26
|
+
v8: '8.4.371.23-node.67',
|
|
27
|
+
zlib: '1.2.11'
|
|
28
|
+
}
|
|
25
29
|
};
|
|
30
|
+
exports["default"] = _default;
|
|
26
31
|
//# sourceMappingURL=versionInfo.js.map
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACbA,EAAAA,SAAS,EAAE,sBADE;AAEbC,EAAAA,MAAM,EAAE,0CAFK;AAGbC,EAAAA,OAAO,EACT;AACE,mBAAe,QADjB;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,OAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\n buildTime: '2022-02-06T14:39:07Z',\n commit: '51887453dbcfa28d5485e9f2178193b6aea53fa0',\n npmInfo:\n{\n 'solid-panes': '3.5.16',\n npm: '6.14.13',\n ares: '1.17.1',\n brotli: '1.0.9',\n cldr: '39.0',\n icu: '69.1',\n llhttp: '2.1.3',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.17.3',\n openssl: '1.1.1k',\n tz: '2021a',\n unicode: '13.0',\n uv: '1.41.0',\n v8: '8.4.371.23-node.67',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.16-alpha",
|
|
4
4
|
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,26 +46,26 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@babel/polyfill": "^7.12.1",
|
|
48
48
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
49
|
-
"activitystreams-pane": "^0.6.
|
|
49
|
+
"activitystreams-pane": "^0.6.3",
|
|
50
50
|
"babel-preset-env": "^1.7.0",
|
|
51
51
|
"babel-preset-metalab": "^1.0.0",
|
|
52
|
-
"chat-pane": "^2.4.
|
|
53
|
-
"contacts-pane": "^2.
|
|
54
|
-
"folder-pane": "^2.4.
|
|
55
|
-
"issue-pane": "^2.4.
|
|
52
|
+
"chat-pane": "^2.4.15",
|
|
53
|
+
"contacts-pane": "^2.6.0",
|
|
54
|
+
"folder-pane": "^2.4.12",
|
|
55
|
+
"issue-pane": "^2.4.9",
|
|
56
56
|
"marked": "^4.0.8",
|
|
57
|
-
"meeting-pane": "^2.3.
|
|
57
|
+
"meeting-pane": "^2.3.8",
|
|
58
58
|
"mime-types": "^2.1.34",
|
|
59
|
-
"pane-registry": "^2.4.
|
|
59
|
+
"pane-registry": "^2.4.6",
|
|
60
60
|
"path-browserify": "^1.0.1",
|
|
61
|
-
"profile-pane": "^1.0.
|
|
62
|
-
"rdflib": "^2.2.
|
|
61
|
+
"profile-pane": "^1.0.7",
|
|
62
|
+
"rdflib": "^2.2.17",
|
|
63
63
|
"react": "^17.0.2",
|
|
64
64
|
"react-dom": "^17.0.2",
|
|
65
|
-
"solid-logic": "^1.3.
|
|
65
|
+
"solid-logic": "^1.3.13",
|
|
66
66
|
"solid-namespace": "^0.5.2",
|
|
67
|
-
"solid-ui": "^2.4.
|
|
68
|
-
"source-pane": "^2.2.
|
|
67
|
+
"solid-ui": "^2.4.16",
|
|
68
|
+
"source-pane": "^2.2.14"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/cli": "^7.16.0",
|
package/src/mainPage/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export default async function initMainPage (store: IndexedFormula, uri?: string|
|
|
|
14
14
|
let subject = uri
|
|
15
15
|
if (typeof uri === 'string') subject = store.sym(uri)
|
|
16
16
|
outliner.GotoSubject(subject, true, undefined, true, undefined)
|
|
17
|
-
const header = createHeader(store, outliner)
|
|
17
|
+
const header = await createHeader(store, outliner)
|
|
18
18
|
const footer = createFooter(store)
|
|
19
19
|
return Promise.all([header, footer])
|
|
20
20
|
}
|
package/src/outline/manager.js
CHANGED
|
@@ -416,23 +416,23 @@ export default function (context) {
|
|
|
416
416
|
.concat(pods)
|
|
417
417
|
|
|
418
418
|
async function getPods () {
|
|
419
|
-
async function
|
|
420
|
-
await
|
|
419
|
+
async function addPodStorage (pod) { // namedNode
|
|
420
|
+
await loadContainerRepresentation(pod)
|
|
421
421
|
if (kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
422
422
|
pods.push(pod)
|
|
423
423
|
return true
|
|
424
424
|
}
|
|
425
425
|
return false
|
|
426
426
|
}
|
|
427
|
-
async function
|
|
427
|
+
async function addPodStorageFromUrl (url) {
|
|
428
428
|
const podStorage = new URL(url)
|
|
429
|
-
// check
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
429
|
+
// check for predicate pim:Storage in containers up the path tree
|
|
430
|
+
let pathStorage = podStorage.pathname
|
|
431
|
+
while (pathStorage.length) {
|
|
432
|
+
pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'))
|
|
433
|
+
if (await addPodStorage(kb.sym(`${podStorage.origin}${pathStorage}/`))) return
|
|
435
434
|
}
|
|
435
|
+
// TODO should url.origin be added to pods list when there are no pim:Storage ???
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
try {
|
|
@@ -442,16 +442,32 @@ export default function (context) {
|
|
|
442
442
|
console.error('Unable to load profile', err)
|
|
443
443
|
return []
|
|
444
444
|
}
|
|
445
|
-
|
|
445
|
+
// load pod's storages from profile
|
|
446
|
+
let pods = kb.each(me, ns.space('storage'), null, me.doc())
|
|
447
|
+
pods.map(async (pod) => {
|
|
448
|
+
// TODO use addPodStorageFromUrl(pod.uri) to check for pim:Storage ???
|
|
449
|
+
await loadContainerRepresentation(pod)
|
|
450
|
+
})
|
|
446
451
|
|
|
447
452
|
try {
|
|
448
453
|
// if uri then SolidOS is a browse.html web app
|
|
449
454
|
const uri = (new URL(window.location.href)).searchParams.get('uri')
|
|
450
455
|
const podUrl = uri || window.location.href
|
|
451
|
-
await
|
|
456
|
+
await addPodStorageFromUrl(podUrl)
|
|
452
457
|
} catch (err) {
|
|
453
458
|
console.error('cannot load container', err)
|
|
454
459
|
}
|
|
460
|
+
// remove namedNodes duplicates
|
|
461
|
+
function uniques (nodes) {
|
|
462
|
+
const uniqueNodes = []
|
|
463
|
+
nodes.forEach(node => {
|
|
464
|
+
if (!uniqueNodes.find(uniqueNode => uniqueNode.equals(node))) uniqueNodes.push(node)
|
|
465
|
+
})
|
|
466
|
+
return uniqueNodes
|
|
467
|
+
}
|
|
468
|
+
pods = uniques(pods)
|
|
469
|
+
console.log('return pods')
|
|
470
|
+
console.log(pods)
|
|
455
471
|
if (!pods.length) return []
|
|
456
472
|
return pods.map((pod, index) => {
|
|
457
473
|
function split (item) { return item.uri.split('//')[1].slice(0, -1) }
|
|
@@ -566,7 +582,7 @@ export default function (context) {
|
|
|
566
582
|
)
|
|
567
583
|
}
|
|
568
584
|
|
|
569
|
-
async function
|
|
585
|
+
async function loadContainerRepresentation (subject) {
|
|
570
586
|
// force reload for index.html with RDFa
|
|
571
587
|
if (!kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
572
588
|
const response = await kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, { headers: { accept: 'text/turtle' } }))
|
|
@@ -577,7 +593,7 @@ export default function (context) {
|
|
|
577
593
|
|
|
578
594
|
async function getRelevantPanes (subject, context) {
|
|
579
595
|
// make sure container representation is loaded (when server returns index.html)
|
|
580
|
-
if (subject.uri.endsWith('/')) { await
|
|
596
|
+
if (subject.uri.endsWith('/')) { await loadContainerRepresentation(subject) }
|
|
581
597
|
const panes = context.session.paneRegistry
|
|
582
598
|
const relevantPanes = panes.list.filter(
|
|
583
599
|
pane => pane.label(subject, context) && !pane.global
|
package/src/versionInfo.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
buildTime: '2022-
|
|
3
|
-
commit: '
|
|
2
|
+
buildTime: '2022-02-06T14:39:07Z',
|
|
3
|
+
commit: '51887453dbcfa28d5485e9f2178193b6aea53fa0',
|
|
4
4
|
npmInfo:
|
|
5
5
|
{
|
|
6
|
-
'solid-panes': '3.5.
|
|
6
|
+
'solid-panes': '3.5.16',
|
|
7
7
|
npm: '6.14.13',
|
|
8
8
|
ares: '1.17.1',
|
|
9
9
|
brotli: '1.0.9',
|