solid-panes 3.6.2-eee122ba → 3.6.3-2722fc84
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/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/outline/index.html +1 -1
- package/coverage/lcov-report/outline/outlineIcons.js.html +1 -1
- package/coverage/lcov-report/outline/propertyViews.ts.html +1 -1
- package/coverage/lcov-report/outline/viewAsImage.ts.html +1 -1
- package/coverage/lcov-report/outline/viewAsMbox.ts.html +1 -1
- package/coverage/lcov-report/trustedApplications/index.html +1 -1
- package/coverage/lcov-report/trustedApplications/trustedApplications.utils.ts.html +1 -1
- package/eslint.config.mjs +34 -0
- package/lib/RDFXMLPane.js +1 -2
- package/lib/RDFXMLPane.js.map +1 -1
- package/lib/argument/argumentPane.js +1 -2
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +2 -3
- package/lib/attach/attachPane.js.map +1 -1
- package/lib/audio/audioPane.js +1 -2
- package/lib/audio/audioPane.js.map +1 -1
- package/lib/classInstancePane.js +1 -2
- package/lib/classInstancePane.js.map +1 -1
- package/lib/dashboard/basicPreferences.js +47 -55
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/homepage.js +15 -21
- package/lib/dashboard/homepage.js.map +1 -1
- package/lib/dataContentPane.js +1 -2
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +1 -2
- package/lib/defaultPane.js.map +1 -1
- package/lib/dokieli/dokieliPane.js +1 -2
- package/lib/dokieli/dokieliPane.js.map +1 -1
- package/lib/form/pane.js +1 -2
- package/lib/form/pane.js.map +1 -1
- package/lib/home/homePane.js +10 -11
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +33 -31
- package/lib/humanReadablePane.js.map +1 -1
- package/lib/imagePane.js +1 -2
- package/lib/imagePane.js.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/mainPage/header.js +36 -43
- package/lib/mainPage/header.js.map +1 -1
- package/lib/mainPage/index.js +9 -12
- package/lib/mainPage/index.js.map +1 -1
- package/lib/microblogPane/microblogPane.js +1 -2
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +1 -2
- package/lib/n3Pane.js.map +1 -1
- package/lib/outline/manager.js +162 -190
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +10 -11
- package/lib/outline/manager.test.js.map +1 -1
- package/lib/outline/outlineIcons.js +1 -2
- package/lib/outline/outlineIcons.js.map +1 -1
- package/lib/outline/queryByExample.js +1 -2
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +4 -8
- package/lib/outline/userInput.js.map +1 -1
- package/lib/outline/viewAsImage.d.ts.map +1 -1
- package/lib/outline/viewAsImage.js +1 -2
- package/lib/outline/viewAsImage.js.map +1 -1
- package/lib/outline/viewAsMbox.d.ts.map +1 -1
- package/lib/playlist/playlistPane.js +1 -2
- package/lib/playlist/playlistPane.js.map +1 -1
- package/lib/schedule/formsForSchedule.js +5 -1
- package/lib/schedule/formsForSchedule.js.map +1 -1
- package/lib/schedule/schedulePane.js +1 -2
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/slideshow/slideshowPane.js +1 -2
- package/lib/slideshow/slideshowPane.js.map +1 -1
- package/lib/socialPane.js +1 -2
- package/lib/socialPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.js +11 -12
- package/lib/tabbed/tabbedPane.js.map +1 -1
- package/lib/tableViewPane.js +1 -2
- package/lib/tableViewPane.js.map +1 -1
- package/lib/test-import-export/edit-importer.js +0 -1
- package/lib/test-import-export/edit-importer.js.map +1 -1
- package/lib/transaction/pane.js +3 -4
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +3 -4
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +1 -2
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +1 -2
- package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +15 -16
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/types.js.map +1 -1
- package/lib/ui/pane.js +1 -2
- package/lib/ui/pane.js.map +1 -1
- package/lib/versionInfo.d.ts +0 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +21 -22
- package/lib/versionInfo.js.map +1 -1
- package/lib/video/videoPane.js +1 -2
- package/lib/video/videoPane.js.map +1 -1
- package/package.json +8 -7
- package/src/attach/attachPane.js +1 -1
- package/src/humanReadablePane.js +28 -35
- package/src/outline/manager.js +1 -1
- package/src/outline/userInput.js +6 -6
- package/src/schedule/formsForSchedule.js +1 -1
- package/src/test-import-export/edit-importer.js +1 -1
- package/src/transaction/pane.js +2 -2
- package/src/transaction/period.js +2 -2
- package/src/types.ts +4 -4
- package/src/versionInfo.ts +21 -22
package/lib/outline/manager.js
CHANGED
|
@@ -13,15 +13,15 @@ var _propertyViews = require("./propertyViews");
|
|
|
13
13
|
var _outlineIcons = require("./outlineIcons.js");
|
|
14
14
|
var _userInput = require("./userInput.js");
|
|
15
15
|
var queryByExample = _interopRequireWildcard(require("./queryByExample.js"));
|
|
16
|
-
function
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t7 in e) "default" !== _t7 && {}.hasOwnProperty.call(e, _t7) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t7)) && (i.get || i.set) ? o(f, _t7, i) : f[_t7] = e[_t7]); return f; })(e, t); }
|
|
18
17
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
19
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
20
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
21
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
22
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
-
function
|
|
23
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
24
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
25
25
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
26
26
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } /* istanbul ignore file */ /* -*- coding: utf-8-dos -*-
|
|
27
27
|
Outline Mode Manager
|
|
@@ -250,7 +250,7 @@ function _default(context) {
|
|
|
250
250
|
return _globalAppTabs.apply(this, arguments);
|
|
251
251
|
}
|
|
252
252
|
function _globalAppTabs() {
|
|
253
|
-
_globalAppTabs = _asyncToGenerator(/*#__PURE__*/
|
|
253
|
+
_globalAppTabs = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
254
254
|
var options,
|
|
255
255
|
div,
|
|
256
256
|
me,
|
|
@@ -258,8 +258,8 @@ function _default(context) {
|
|
|
258
258
|
renderTab,
|
|
259
259
|
renderMain,
|
|
260
260
|
_args = arguments;
|
|
261
|
-
return
|
|
262
|
-
while (1) switch (_context.
|
|
261
|
+
return _regenerator().w(function (_context) {
|
|
262
|
+
while (1) switch (_context.n) {
|
|
263
263
|
case 0:
|
|
264
264
|
renderMain = function _renderMain(containerDiv, item) {
|
|
265
265
|
// Items are pane names
|
|
@@ -278,16 +278,16 @@ function _default(context) {
|
|
|
278
278
|
div = dom.createElement('div');
|
|
279
279
|
me = _solidLogic.authn.currentUser();
|
|
280
280
|
if (me) {
|
|
281
|
-
_context.
|
|
281
|
+
_context.n = 1;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
alert('Must be logged in for this');
|
|
285
285
|
throw new Error('Not logged in');
|
|
286
|
-
case
|
|
287
|
-
_context.
|
|
286
|
+
case 1:
|
|
287
|
+
_context.n = 2;
|
|
288
288
|
return getDashboardItems();
|
|
289
|
-
case
|
|
290
|
-
items = _context.
|
|
289
|
+
case 2:
|
|
290
|
+
items = _context.v;
|
|
291
291
|
div.appendChild(UI.tabs.tabWidget({
|
|
292
292
|
dom: dom,
|
|
293
293
|
subject: me,
|
|
@@ -301,10 +301,7 @@ function _default(context) {
|
|
|
301
301
|
selectedTab: options.selectedTab,
|
|
302
302
|
onClose: options.onClose
|
|
303
303
|
}));
|
|
304
|
-
return _context.
|
|
305
|
-
case 14:
|
|
306
|
-
case "end":
|
|
307
|
-
return _context.stop();
|
|
304
|
+
return _context.a(2, div);
|
|
308
305
|
}
|
|
309
306
|
}, _callee);
|
|
310
307
|
}));
|
|
@@ -315,27 +312,27 @@ function _default(context) {
|
|
|
315
312
|
return _getDashboardItems.apply(this, arguments);
|
|
316
313
|
}
|
|
317
314
|
function _getDashboardItems() {
|
|
318
|
-
_getDashboardItems = _asyncToGenerator(/*#__PURE__*/
|
|
315
|
+
_getDashboardItems = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
319
316
|
var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
|
|
320
|
-
return
|
|
321
|
-
while (1) switch (_context8.
|
|
317
|
+
return _regenerator().w(function (_context8) {
|
|
318
|
+
while (1) switch (_context8.n) {
|
|
322
319
|
case 0:
|
|
323
320
|
_getAddressBooks = function _getAddressBooks3() {
|
|
324
|
-
_getAddressBooks = _asyncToGenerator(/*#__PURE__*/
|
|
325
|
-
var _context6;
|
|
326
|
-
return
|
|
327
|
-
while (1) switch (_context7.
|
|
321
|
+
_getAddressBooks = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
322
|
+
var _context6, _t3;
|
|
323
|
+
return _regenerator().w(function (_context7) {
|
|
324
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
328
325
|
case 0:
|
|
329
|
-
_context7.
|
|
330
|
-
_context7.
|
|
326
|
+
_context7.p = 0;
|
|
327
|
+
_context7.n = 1;
|
|
331
328
|
return UI.login.findAppInstances({
|
|
332
329
|
me: me,
|
|
333
330
|
div: div,
|
|
334
331
|
dom: dom
|
|
335
332
|
}, ns.vcard('AddressBook'));
|
|
336
|
-
case
|
|
337
|
-
_context6 = _context7.
|
|
338
|
-
return _context7.
|
|
333
|
+
case 1:
|
|
334
|
+
_context6 = _context7.v;
|
|
335
|
+
return _context7.a(2, (_context6.instances || []).map(function (book, index) {
|
|
339
336
|
return {
|
|
340
337
|
paneName: 'contact',
|
|
341
338
|
tabName: "contact-".concat(index),
|
|
@@ -344,17 +341,13 @@ function _default(context) {
|
|
|
344
341
|
icon: UI.icons.iconBase + 'noun_15695.svg'
|
|
345
342
|
};
|
|
346
343
|
}));
|
|
347
|
-
case
|
|
348
|
-
_context7.
|
|
349
|
-
|
|
344
|
+
case 2:
|
|
345
|
+
_context7.p = 2;
|
|
346
|
+
_t3 = _context7.v;
|
|
350
347
|
console.error('oops in globalAppTabs AddressBook');
|
|
351
|
-
|
|
352
|
-
return _context7.abrupt("return", []);
|
|
353
|
-
case 11:
|
|
354
|
-
case "end":
|
|
355
|
-
return _context7.stop();
|
|
348
|
+
return _context7.a(2, []);
|
|
356
349
|
}
|
|
357
|
-
}, _callee6, null, [[0,
|
|
350
|
+
}, _callee6, null, [[0, 2]]);
|
|
358
351
|
}));
|
|
359
352
|
return _getAddressBooks.apply(this, arguments);
|
|
360
353
|
};
|
|
@@ -362,10 +355,10 @@ function _default(context) {
|
|
|
362
355
|
return _getAddressBooks.apply(this, arguments);
|
|
363
356
|
};
|
|
364
357
|
_getPods = function _getPods3() {
|
|
365
|
-
_getPods = _asyncToGenerator(/*#__PURE__*/
|
|
366
|
-
var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
|
|
367
|
-
return
|
|
368
|
-
while (1) switch (_context5.
|
|
358
|
+
_getPods = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
359
|
+
var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques, _t, _t2;
|
|
360
|
+
return _regenerator().w(function (_context5) {
|
|
361
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
369
362
|
case 0:
|
|
370
363
|
uniques = function _uniques(nodes) {
|
|
371
364
|
var uniqueNodes = [];
|
|
@@ -377,33 +370,32 @@ function _default(context) {
|
|
|
377
370
|
return uniqueNodes;
|
|
378
371
|
};
|
|
379
372
|
_addPodStorageFromUrl = function _addPodStorageFromUrl3() {
|
|
380
|
-
_addPodStorageFromUrl = _asyncToGenerator(/*#__PURE__*/
|
|
373
|
+
_addPodStorageFromUrl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(url) {
|
|
381
374
|
var podStorage, pathStorage;
|
|
382
|
-
return
|
|
383
|
-
while (1) switch (_context4.
|
|
375
|
+
return _regenerator().w(function (_context4) {
|
|
376
|
+
while (1) switch (_context4.n) {
|
|
384
377
|
case 0:
|
|
385
378
|
podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
|
|
386
379
|
pathStorage = podStorage.pathname;
|
|
387
|
-
case
|
|
380
|
+
case 1:
|
|
388
381
|
if (!pathStorage.length) {
|
|
389
|
-
_context4.
|
|
382
|
+
_context4.n = 4;
|
|
390
383
|
break;
|
|
391
384
|
}
|
|
392
385
|
pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
|
|
393
|
-
_context4.
|
|
386
|
+
_context4.n = 2;
|
|
394
387
|
return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
|
|
395
|
-
case
|
|
396
|
-
if (!_context4.
|
|
397
|
-
_context4.
|
|
388
|
+
case 2:
|
|
389
|
+
if (!_context4.v) {
|
|
390
|
+
_context4.n = 3;
|
|
398
391
|
break;
|
|
399
392
|
}
|
|
400
|
-
return _context4.
|
|
401
|
-
case
|
|
402
|
-
_context4.
|
|
393
|
+
return _context4.a(2);
|
|
394
|
+
case 3:
|
|
395
|
+
_context4.n = 1;
|
|
403
396
|
break;
|
|
404
|
-
case
|
|
405
|
-
|
|
406
|
-
return _context4.stop();
|
|
397
|
+
case 4:
|
|
398
|
+
return _context4.a(2);
|
|
407
399
|
}
|
|
408
400
|
}, _callee4);
|
|
409
401
|
}));
|
|
@@ -413,24 +405,21 @@ function _default(context) {
|
|
|
413
405
|
return _addPodStorageFromUrl.apply(this, arguments);
|
|
414
406
|
};
|
|
415
407
|
_addPodStorage = function _addPodStorage3() {
|
|
416
|
-
_addPodStorage = _asyncToGenerator(/*#__PURE__*/
|
|
417
|
-
return
|
|
418
|
-
while (1) switch (_context3.
|
|
408
|
+
_addPodStorage = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(pod) {
|
|
409
|
+
return _regenerator().w(function (_context3) {
|
|
410
|
+
while (1) switch (_context3.n) {
|
|
419
411
|
case 0:
|
|
420
|
-
_context3.
|
|
412
|
+
_context3.n = 1;
|
|
421
413
|
return loadContainerRepresentation(pod);
|
|
422
|
-
case
|
|
414
|
+
case 1:
|
|
423
415
|
if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
424
|
-
_context3.
|
|
416
|
+
_context3.n = 2;
|
|
425
417
|
break;
|
|
426
418
|
}
|
|
427
419
|
pods.push(pod);
|
|
428
|
-
return _context3.
|
|
429
|
-
case
|
|
430
|
-
return _context3.
|
|
431
|
-
case 6:
|
|
432
|
-
case "end":
|
|
433
|
-
return _context3.stop();
|
|
420
|
+
return _context3.a(2, true);
|
|
421
|
+
case 2:
|
|
422
|
+
return _context3.a(2, false);
|
|
434
423
|
}
|
|
435
424
|
}, _callee3);
|
|
436
425
|
}));
|
|
@@ -439,30 +428,29 @@ function _default(context) {
|
|
|
439
428
|
addPodStorage = function _addPodStorage2(_x7) {
|
|
440
429
|
return _addPodStorage.apply(this, arguments);
|
|
441
430
|
};
|
|
442
|
-
_context5.
|
|
443
|
-
_context5.
|
|
431
|
+
_context5.p = 1;
|
|
432
|
+
_context5.n = 2;
|
|
444
433
|
return kb.fetcher.load(me.doc());
|
|
445
|
-
case
|
|
446
|
-
_context5.
|
|
434
|
+
case 2:
|
|
435
|
+
_context5.n = 4;
|
|
447
436
|
break;
|
|
448
|
-
case
|
|
449
|
-
_context5.
|
|
450
|
-
|
|
451
|
-
console.error('Unable to load profile',
|
|
452
|
-
return _context5.
|
|
453
|
-
case
|
|
437
|
+
case 3:
|
|
438
|
+
_context5.p = 3;
|
|
439
|
+
_t = _context5.v;
|
|
440
|
+
console.error('Unable to load profile', _t);
|
|
441
|
+
return _context5.a(2, []);
|
|
442
|
+
case 4:
|
|
454
443
|
// load pod's storages from profile
|
|
455
444
|
pods = kb.each(me, ns.space('storage'), null, me.doc());
|
|
456
445
|
pods.map(/*#__PURE__*/function () {
|
|
457
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
458
|
-
return
|
|
459
|
-
while (1) switch (_context2.
|
|
446
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(pod) {
|
|
447
|
+
return _regenerator().w(function (_context2) {
|
|
448
|
+
while (1) switch (_context2.n) {
|
|
460
449
|
case 0:
|
|
461
|
-
_context2.
|
|
450
|
+
_context2.n = 1;
|
|
462
451
|
return loadContainerRepresentation(pod);
|
|
463
|
-
case
|
|
464
|
-
|
|
465
|
-
return _context2.stop();
|
|
452
|
+
case 1:
|
|
453
|
+
return _context2.a(2);
|
|
466
454
|
}
|
|
467
455
|
}, _callee2);
|
|
468
456
|
}));
|
|
@@ -470,28 +458,28 @@ function _default(context) {
|
|
|
470
458
|
return _ref.apply(this, arguments);
|
|
471
459
|
};
|
|
472
460
|
}());
|
|
473
|
-
_context5.
|
|
461
|
+
_context5.p = 5;
|
|
474
462
|
// if uri then SolidOS is a browse.html web app
|
|
475
463
|
uri = new URL(window.location.href).searchParams.get('uri');
|
|
476
464
|
podUrl = uri || window.location.href;
|
|
477
|
-
_context5.
|
|
465
|
+
_context5.n = 6;
|
|
478
466
|
return addPodStorageFromUrl(podUrl);
|
|
479
|
-
case
|
|
480
|
-
_context5.
|
|
467
|
+
case 6:
|
|
468
|
+
_context5.n = 8;
|
|
481
469
|
break;
|
|
482
|
-
case
|
|
483
|
-
_context5.
|
|
484
|
-
|
|
485
|
-
console.error('cannot load container',
|
|
486
|
-
case
|
|
470
|
+
case 7:
|
|
471
|
+
_context5.p = 7;
|
|
472
|
+
_t2 = _context5.v;
|
|
473
|
+
console.error('cannot load container', _t2);
|
|
474
|
+
case 8:
|
|
487
475
|
pods = uniques(pods);
|
|
488
476
|
if (pods.length) {
|
|
489
|
-
_context5.
|
|
477
|
+
_context5.n = 9;
|
|
490
478
|
break;
|
|
491
479
|
}
|
|
492
|
-
return _context5.
|
|
493
|
-
case
|
|
494
|
-
return _context5.
|
|
480
|
+
return _context5.a(2, []);
|
|
481
|
+
case 9:
|
|
482
|
+
return _context5.a(2, pods.map(function (pod, index) {
|
|
495
483
|
function split(item) {
|
|
496
484
|
return item.uri.split('//')[1].slice(0, -1);
|
|
497
485
|
}
|
|
@@ -504,11 +492,8 @@ function _default(context) {
|
|
|
504
492
|
icon: UI.icons.iconBase + 'noun_Cabinet_251723.svg'
|
|
505
493
|
};
|
|
506
494
|
}));
|
|
507
|
-
case 30:
|
|
508
|
-
case "end":
|
|
509
|
-
return _context5.stop();
|
|
510
495
|
}
|
|
511
|
-
}, _callee5, null, [[5,
|
|
496
|
+
}, _callee5, null, [[5, 7], [1, 3]]);
|
|
512
497
|
}));
|
|
513
498
|
return _getPods.apply(this, arguments);
|
|
514
499
|
};
|
|
@@ -517,20 +502,20 @@ function _default(context) {
|
|
|
517
502
|
};
|
|
518
503
|
me = _solidLogic.authn.currentUser();
|
|
519
504
|
if (me) {
|
|
520
|
-
_context8.
|
|
505
|
+
_context8.n = 1;
|
|
521
506
|
break;
|
|
522
507
|
}
|
|
523
|
-
return _context8.
|
|
524
|
-
case
|
|
508
|
+
return _context8.a(2, []);
|
|
509
|
+
case 1:
|
|
525
510
|
div = dom.createElement('div');
|
|
526
|
-
_context8.
|
|
511
|
+
_context8.n = 2;
|
|
527
512
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
528
|
-
case
|
|
529
|
-
_yield$Promise$all = _context8.
|
|
513
|
+
case 2:
|
|
514
|
+
_yield$Promise$all = _context8.v;
|
|
530
515
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
531
516
|
books = _yield$Promise$all2[0];
|
|
532
517
|
pods = _yield$Promise$all2[1];
|
|
533
|
-
return _context8.
|
|
518
|
+
return _context8.a(2, [{
|
|
534
519
|
paneName: 'home',
|
|
535
520
|
label: 'Your stuff',
|
|
536
521
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -547,9 +532,6 @@ function _default(context) {
|
|
|
547
532
|
label: 'Edit your Profile',
|
|
548
533
|
icon: UI.icons.iconBase + 'noun_492246.svg'
|
|
549
534
|
}].concat(books).concat(pods));
|
|
550
|
-
case 15:
|
|
551
|
-
case "end":
|
|
552
|
-
return _context8.stop();
|
|
553
535
|
}
|
|
554
536
|
}, _callee7);
|
|
555
537
|
}));
|
|
@@ -568,7 +550,7 @@ function _default(context) {
|
|
|
568
550
|
return _showDashboard.apply(this, arguments);
|
|
569
551
|
}
|
|
570
552
|
function _showDashboard() {
|
|
571
|
-
_showDashboard = _asyncToGenerator(/*#__PURE__*/
|
|
553
|
+
_showDashboard = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
|
572
554
|
var options,
|
|
573
555
|
dashboardContainer,
|
|
574
556
|
outlineContainer,
|
|
@@ -577,8 +559,8 @@ function _default(context) {
|
|
|
577
559
|
tab,
|
|
578
560
|
closeDashboard,
|
|
579
561
|
_args8 = arguments;
|
|
580
|
-
return
|
|
581
|
-
while (1) switch (_context9.
|
|
562
|
+
return _regenerator().w(function (_context9) {
|
|
563
|
+
while (1) switch (_context9.n) {
|
|
582
564
|
case 0:
|
|
583
565
|
closeDashboard = function _closeDashboard() {
|
|
584
566
|
dashboardContainer.style.display = 'none';
|
|
@@ -588,28 +570,28 @@ function _default(context) {
|
|
|
588
570
|
dashboardContainer = getDashboardContainer();
|
|
589
571
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
590
572
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
591
|
-
_context9.
|
|
573
|
+
_context9.n = 2;
|
|
592
574
|
break;
|
|
593
575
|
}
|
|
594
576
|
outlineContainer.style.display = 'none';
|
|
595
577
|
dashboardContainer.style.display = 'inherit';
|
|
596
578
|
_tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
597
579
|
if (!_tab) {
|
|
598
|
-
_context9.
|
|
580
|
+
_context9.n = 1;
|
|
599
581
|
break;
|
|
600
582
|
}
|
|
601
583
|
_tab.click();
|
|
602
|
-
return _context9.
|
|
603
|
-
case
|
|
584
|
+
return _context9.a(2);
|
|
585
|
+
case 1:
|
|
604
586
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
605
|
-
case
|
|
606
|
-
_context9.
|
|
587
|
+
case 2:
|
|
588
|
+
_context9.n = 3;
|
|
607
589
|
return globalAppTabs({
|
|
608
590
|
selectedTab: options.pane,
|
|
609
591
|
onClose: closeDashboard
|
|
610
592
|
});
|
|
611
|
-
case
|
|
612
|
-
dashboard = _context9.
|
|
593
|
+
case 3:
|
|
594
|
+
dashboard = _context9.v;
|
|
613
595
|
// close the dashboard if user log out
|
|
614
596
|
_solidLogic.authSession.onLogout(closeDashboard);
|
|
615
597
|
|
|
@@ -620,9 +602,8 @@ function _default(context) {
|
|
|
620
602
|
if (tab) {
|
|
621
603
|
tab.click();
|
|
622
604
|
}
|
|
623
|
-
case
|
|
624
|
-
|
|
625
|
-
return _context9.stop();
|
|
605
|
+
case 4:
|
|
606
|
+
return _context9.a(2);
|
|
626
607
|
}
|
|
627
608
|
}, _callee8);
|
|
628
609
|
}));
|
|
@@ -654,28 +635,27 @@ function _default(context) {
|
|
|
654
635
|
return _loadContainerRepresentation.apply(this, arguments);
|
|
655
636
|
}
|
|
656
637
|
function _loadContainerRepresentation() {
|
|
657
|
-
_loadContainerRepresentation = _asyncToGenerator(/*#__PURE__*/
|
|
638
|
+
_loadContainerRepresentation = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(subject) {
|
|
658
639
|
var response, containerTurtle;
|
|
659
|
-
return
|
|
660
|
-
while (1) switch (
|
|
640
|
+
return _regenerator().w(function (_context0) {
|
|
641
|
+
while (1) switch (_context0.n) {
|
|
661
642
|
case 0:
|
|
662
643
|
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
663
|
-
|
|
644
|
+
_context0.n = 2;
|
|
664
645
|
break;
|
|
665
646
|
}
|
|
666
|
-
|
|
647
|
+
_context0.n = 1;
|
|
667
648
|
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
668
649
|
headers: {
|
|
669
650
|
accept: 'text/turtle'
|
|
670
651
|
}
|
|
671
652
|
}));
|
|
672
|
-
case
|
|
673
|
-
response =
|
|
653
|
+
case 1:
|
|
654
|
+
response = _context0.v;
|
|
674
655
|
containerTurtle = response.responseText;
|
|
675
656
|
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
676
|
-
case
|
|
677
|
-
|
|
678
|
-
return _context10.stop();
|
|
657
|
+
case 2:
|
|
658
|
+
return _context0.a(2);
|
|
679
659
|
}
|
|
680
660
|
}, _callee9);
|
|
681
661
|
}));
|
|
@@ -685,46 +665,43 @@ function _default(context) {
|
|
|
685
665
|
return _getRelevantPanes.apply(this, arguments);
|
|
686
666
|
}
|
|
687
667
|
function _getRelevantPanes() {
|
|
688
|
-
_getRelevantPanes = _asyncToGenerator(/*#__PURE__*/
|
|
668
|
+
_getRelevantPanes = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(subject, context) {
|
|
689
669
|
var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
|
|
690
|
-
return
|
|
691
|
-
while (1) switch (
|
|
670
|
+
return _regenerator().w(function (_context1) {
|
|
671
|
+
while (1) switch (_context1.n) {
|
|
692
672
|
case 0:
|
|
693
673
|
if (!subject.uri.endsWith('/')) {
|
|
694
|
-
|
|
674
|
+
_context1.n = 1;
|
|
695
675
|
break;
|
|
696
676
|
}
|
|
697
|
-
|
|
677
|
+
_context1.n = 1;
|
|
698
678
|
return loadContainerRepresentation(subject);
|
|
699
|
-
case
|
|
679
|
+
case 1:
|
|
700
680
|
panes = context.session.paneRegistry;
|
|
701
681
|
relevantPanes = panes.list.filter(function (pane) {
|
|
702
682
|
return pane.label(subject, context) && !pane.global;
|
|
703
683
|
});
|
|
704
684
|
if (!(relevantPanes.length === 0)) {
|
|
705
|
-
|
|
685
|
+
_context1.n = 2;
|
|
706
686
|
break;
|
|
707
687
|
}
|
|
708
|
-
return
|
|
709
|
-
case
|
|
710
|
-
|
|
688
|
+
return _context1.a(2, [panes.byName('internal')]);
|
|
689
|
+
case 2:
|
|
690
|
+
_context1.n = 3;
|
|
711
691
|
return UI.login.filterAvailablePanes(relevantPanes);
|
|
712
|
-
case
|
|
713
|
-
filteredPanes =
|
|
692
|
+
case 3:
|
|
693
|
+
filteredPanes = _context1.v;
|
|
714
694
|
if (!(filteredPanes.length === 0)) {
|
|
715
|
-
|
|
695
|
+
_context1.n = 4;
|
|
716
696
|
break;
|
|
717
697
|
}
|
|
718
|
-
return
|
|
719
|
-
case
|
|
698
|
+
return _context1.a(2, [relevantPanes[0]]);
|
|
699
|
+
case 4:
|
|
720
700
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
721
701
|
firstFilteredPaneIndex = panes.list.indexOf(filteredPanes[0]); // if the first relevant pane is loaded before the panes available wrt role, we still want to offer the most relevant pane
|
|
722
|
-
return
|
|
723
|
-
case 15:
|
|
724
|
-
case "end":
|
|
725
|
-
return _context11.stop();
|
|
702
|
+
return _context1.a(2, firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
726
703
|
}
|
|
727
|
-
},
|
|
704
|
+
}, _callee0);
|
|
728
705
|
}));
|
|
729
706
|
return _getRelevantPanes.apply(this, arguments);
|
|
730
707
|
}
|
|
@@ -756,42 +733,43 @@ function _default(context) {
|
|
|
756
733
|
// Remove a node from the DOM so that Firefox refreshes the screen OK
|
|
757
734
|
// Just deleting it cause whitespace to accumulate.
|
|
758
735
|
function _expandedHeaderTR() {
|
|
759
|
-
_expandedHeaderTR = _asyncToGenerator(/*#__PURE__*/
|
|
760
|
-
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
|
|
761
|
-
return
|
|
762
|
-
while (1) switch (
|
|
736
|
+
_expandedHeaderTR = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(subject, requiredPane, options) {
|
|
737
|
+
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong, _t5, _t6;
|
|
738
|
+
return _regenerator().w(function (_context11) {
|
|
739
|
+
while (1) switch (_context11.n) {
|
|
763
740
|
case 0:
|
|
764
741
|
_renderPaneIconTray = function _renderPaneIconTray3() {
|
|
765
|
-
_renderPaneIconTray = _asyncToGenerator(/*#__PURE__*/
|
|
742
|
+
_renderPaneIconTray = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(td) {
|
|
766
743
|
var options,
|
|
767
744
|
paneShownStyle,
|
|
768
745
|
paneHiddenStyle,
|
|
769
746
|
paneIconTray,
|
|
770
747
|
relevantPanes,
|
|
771
748
|
paneNumber,
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
749
|
+
_args1 = arguments,
|
|
750
|
+
_t4;
|
|
751
|
+
return _regenerator().w(function (_context10) {
|
|
752
|
+
while (1) switch (_context10.n) {
|
|
775
753
|
case 0:
|
|
776
|
-
options =
|
|
754
|
+
options = _args1.length > 1 && _args1[1] !== undefined ? _args1[1] : {};
|
|
777
755
|
paneShownStyle = 'width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;';
|
|
778
756
|
paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
|
|
779
757
|
paneIconTray = td.appendChild(dom.createElement('nav'));
|
|
780
758
|
paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
|
|
781
759
|
if (!options.hideList) {
|
|
782
|
-
|
|
760
|
+
_context10.n = 1;
|
|
783
761
|
break;
|
|
784
762
|
}
|
|
785
|
-
|
|
786
|
-
|
|
763
|
+
_t4 = [];
|
|
764
|
+
_context10.n = 3;
|
|
787
765
|
break;
|
|
788
|
-
case
|
|
789
|
-
|
|
766
|
+
case 1:
|
|
767
|
+
_context10.n = 2;
|
|
790
768
|
return getRelevantPanes(subject, context);
|
|
791
|
-
case
|
|
792
|
-
|
|
793
|
-
case
|
|
794
|
-
relevantPanes =
|
|
769
|
+
case 2:
|
|
770
|
+
_t4 = _context10.v;
|
|
771
|
+
case 3:
|
|
772
|
+
relevantPanes = _t4;
|
|
795
773
|
tr.firstPane = requiredPane || getPane(relevantPanes, subject);
|
|
796
774
|
paneNumber = relevantPanes.indexOf(tr.firstPane);
|
|
797
775
|
if (relevantPanes.length !== 1) {
|
|
@@ -885,16 +863,13 @@ function _default(context) {
|
|
|
885
863
|
paneIconTray.appendChild(ico);
|
|
886
864
|
});
|
|
887
865
|
}
|
|
888
|
-
return
|
|
889
|
-
case 17:
|
|
890
|
-
case "end":
|
|
891
|
-
return _context12.stop();
|
|
866
|
+
return _context10.a(2, paneIconTray);
|
|
892
867
|
}
|
|
893
|
-
},
|
|
868
|
+
}, _callee1);
|
|
894
869
|
}));
|
|
895
870
|
return _renderPaneIconTray.apply(this, arguments);
|
|
896
871
|
};
|
|
897
|
-
renderPaneIconTray = function _renderPaneIconTray2(
|
|
872
|
+
renderPaneIconTray = function _renderPaneIconTray2(_x0) {
|
|
898
873
|
return _renderPaneIconTray.apply(this, arguments);
|
|
899
874
|
}; // renderPaneIconTray
|
|
900
875
|
// Body of expandedHeaderTR
|
|
@@ -921,14 +896,14 @@ function _default(context) {
|
|
|
921
896
|
strong.style = 'font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;';
|
|
922
897
|
UI.widgets.makeDraggable(strong, subject);
|
|
923
898
|
}
|
|
924
|
-
|
|
925
|
-
|
|
899
|
+
_t5 = header;
|
|
900
|
+
_context11.n = 1;
|
|
926
901
|
return renderPaneIconTray(td, {
|
|
927
902
|
hideList: showHeader
|
|
928
903
|
});
|
|
929
|
-
case
|
|
930
|
-
|
|
931
|
-
|
|
904
|
+
case 1:
|
|
905
|
+
_t6 = _context11.v;
|
|
906
|
+
_t5.appendChild.call(_t5, _t6);
|
|
932
907
|
// set DOM methods
|
|
933
908
|
tr.firstChild.tabulatorSelect = function () {
|
|
934
909
|
setSelected(this, true);
|
|
@@ -936,12 +911,9 @@ function _default(context) {
|
|
|
936
911
|
tr.firstChild.tabulatorDeselect = function () {
|
|
937
912
|
setSelected(this, false);
|
|
938
913
|
};
|
|
939
|
-
return
|
|
940
|
-
case 21:
|
|
941
|
-
case "end":
|
|
942
|
-
return _context13.stop();
|
|
914
|
+
return _context11.a(2, tr);
|
|
943
915
|
}
|
|
944
|
-
},
|
|
916
|
+
}, _callee10);
|
|
945
917
|
}));
|
|
946
918
|
return _expandedHeaderTR.apply(this, arguments);
|
|
947
919
|
}
|
|
@@ -1651,7 +1623,7 @@ function _default(context) {
|
|
|
1651
1623
|
case 39:
|
|
1652
1624
|
// right
|
|
1653
1625
|
// @@ TODO: Write away the need for exception on next line
|
|
1654
|
-
|
|
1626
|
+
|
|
1655
1627
|
var obj = UI.utils.getAbout(kb, selectedTd);
|
|
1656
1628
|
if (obj) {
|
|
1657
1629
|
walk = this.walk;
|