solid-panes 3.5.14 → 3.5.16-alpha-07d0f77b
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/.babelrc +0 -0
- package/.eslintignore +0 -0
- package/.eslintrc +0 -0
- package/.github/workflows/ci.yml +45 -6
- package/.nvmrc +0 -0
- package/Documentation/VisualLanguage.html +0 -0
- package/Documentation/conventions.md +0 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dev/index.html +0 -0
- package/dev/loader.ts +11 -11
- package/dev/pane/index.ts +0 -0
- package/doc/images/panes-for-classes.epgz +0 -0
- package/doc/images/panes-for-classes.svg +0 -0
- package/jest.config.js +0 -0
- package/jest.setup.ts +0 -0
- package/lib/RDFXMLPane.js +0 -0
- package/lib/RDFXMLPane.js.map +0 -0
- package/lib/argument/argumentPane.js +15 -7
- package/lib/argument/argumentPane.js.map +1 -1
- package/lib/attach/attachPane.js +0 -0
- package/lib/attach/attachPane.js.map +0 -0
- package/lib/audio/audioPane.js +0 -0
- package/lib/audio/audioPane.js.map +0 -0
- package/lib/classInstancePane.js +0 -0
- package/lib/classInstancePane.js.map +0 -0
- package/lib/dashboard/basicPreferences.d.ts +0 -0
- package/lib/dashboard/basicPreferences.d.ts.map +1 -1
- package/lib/dashboard/basicPreferences.js +6 -6
- package/lib/dashboard/basicPreferences.js.map +1 -1
- package/lib/dashboard/dashboardPane.d.ts +0 -0
- package/lib/dashboard/dashboardPane.d.ts.map +1 -1
- package/lib/dashboard/dashboardPane.js +6 -4
- package/lib/dashboard/dashboardPane.js.map +1 -1
- package/lib/dashboard/homepage.d.ts +0 -0
- package/lib/dashboard/homepage.d.ts.map +0 -0
- package/lib/dashboard/homepage.js +0 -0
- package/lib/dashboard/homepage.js.map +0 -0
- package/lib/dataContentPane.js +1 -1
- package/lib/dataContentPane.js.map +1 -1
- package/lib/defaultPane.js +0 -0
- package/lib/defaultPane.js.map +0 -0
- package/lib/dokieli/dokieliPane.js +0 -0
- package/lib/dokieli/dokieliPane.js.map +0 -0
- package/lib/dokieli/new.js +0 -0
- package/lib/dokieli/new.js.map +0 -0
- package/lib/form/pane.js +15 -6
- package/lib/form/pane.js.map +1 -1
- package/lib/global.d.js +0 -0
- package/lib/global.d.js.map +0 -0
- package/lib/home/homePane.d.ts +0 -0
- package/lib/home/homePane.d.ts.map +1 -1
- package/lib/home/homePane.js +7 -5
- package/lib/home/homePane.js.map +1 -1
- package/lib/humanReadablePane.js +0 -0
- package/lib/humanReadablePane.js.map +0 -0
- package/lib/imagePane.js +0 -0
- package/lib/imagePane.js.map +0 -0
- package/lib/index.d.ts +8 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +21 -13
- package/lib/index.js.map +1 -1
- package/lib/internal/internalPane.d.ts +0 -0
- package/lib/internal/internalPane.d.ts.map +0 -0
- package/lib/internal/internalPane.js +0 -0
- package/lib/internal/internalPane.js.map +0 -0
- package/lib/mainPage/footer.d.ts +3 -0
- package/lib/mainPage/footer.d.ts.map +1 -0
- package/lib/mainPage/footer.js +26 -0
- package/lib/mainPage/footer.js.map +1 -0
- package/lib/mainPage/header.d.ts +2 -0
- package/lib/mainPage/header.d.ts.map +1 -0
- package/lib/mainPage/header.js +192 -0
- package/lib/mainPage/header.js.map +1 -0
- package/lib/mainPage/index.d.ts +3 -0
- package/lib/mainPage/index.d.ts.map +1 -0
- package/lib/mainPage/index.js +51 -0
- package/lib/mainPage/index.js.map +1 -0
- package/lib/microblogPane/microblogPane.js +16 -14
- package/lib/microblogPane/microblogPane.js.map +1 -1
- package/lib/n3Pane.js +0 -0
- package/lib/n3Pane.js.map +0 -0
- package/lib/outline/context.d.ts +2 -1
- package/lib/outline/context.d.ts.map +1 -1
- package/lib/outline/context.js +0 -0
- package/lib/outline/context.js.map +1 -1
- package/lib/outline/dragDrop.js +16 -6
- package/lib/outline/dragDrop.js.map +1 -1
- package/lib/outline/licenseOptions.js +12 -5
- package/lib/outline/licenseOptions.js.map +1 -1
- package/lib/outline/manager.js +222 -176
- package/lib/outline/manager.js.map +1 -1
- package/lib/outline/manager.test.js +0 -0
- package/lib/outline/manager.test.js.map +0 -0
- package/lib/outline/outlineIcons.js +0 -0
- package/lib/outline/outlineIcons.js.map +0 -0
- package/lib/outline/propertyViews.d.ts +0 -0
- package/lib/outline/propertyViews.d.ts.map +0 -0
- package/lib/outline/propertyViews.js +0 -0
- package/lib/outline/propertyViews.js.map +0 -0
- package/lib/outline/propertyViews.test.js +0 -0
- package/lib/outline/propertyViews.test.js.map +0 -0
- package/lib/outline/queryByExample.js +14 -6
- package/lib/outline/queryByExample.js.map +1 -1
- package/lib/outline/userInput.js +90 -80
- package/lib/outline/userInput.js.map +1 -1
- package/lib/outline/viewAsImage.d.ts +0 -0
- package/lib/outline/viewAsImage.d.ts.map +0 -0
- package/lib/outline/viewAsImage.js +0 -0
- package/lib/outline/viewAsImage.js.map +0 -0
- package/lib/outline/viewAsMbox.d.ts +0 -0
- package/lib/outline/viewAsMbox.d.ts.map +0 -0
- package/lib/outline/viewAsMbox.js +0 -0
- package/lib/outline/viewAsMbox.js.map +0 -0
- package/lib/pad/padPane.d.ts +0 -0
- package/lib/pad/padPane.d.ts.map +1 -1
- package/lib/pad/padPane.js +6 -4
- package/lib/pad/padPane.js.map +1 -1
- package/lib/playlist/playlistPane.js +0 -0
- package/lib/playlist/playlistPane.js.map +0 -0
- package/lib/profile/editProfile.view.d.ts +0 -0
- package/lib/profile/editProfile.view.d.ts.map +1 -1
- package/lib/profile/editProfile.view.js +3 -3
- package/lib/profile/editProfile.view.js.map +1 -1
- package/lib/profile/profile.dom.d.ts +0 -0
- package/lib/profile/profile.dom.d.ts.map +0 -0
- package/lib/profile/profile.dom.js +0 -0
- package/lib/profile/profile.dom.js.map +0 -0
- package/lib/registerPanes.js +0 -0
- package/lib/registerPanes.js.map +0 -0
- package/lib/schedule/formsForSchedule.js +0 -0
- package/lib/schedule/formsForSchedule.js.map +0 -0
- package/lib/schedule/schedulePane.js +26 -14
- package/lib/schedule/schedulePane.js.map +1 -1
- package/lib/sharing/sharingPane.d.ts +0 -0
- package/lib/sharing/sharingPane.d.ts.map +0 -0
- package/lib/sharing/sharingPane.js +0 -0
- package/lib/sharing/sharingPane.js.map +0 -0
- package/lib/slideshow/slideshowPane.js +0 -0
- package/lib/slideshow/slideshowPane.js.map +0 -0
- package/lib/socialPane.js +16 -6
- package/lib/socialPane.js.map +1 -1
- package/lib/tabbed/tabbedPane.d.ts +0 -0
- package/lib/tabbed/tabbedPane.d.ts.map +0 -0
- package/lib/tabbed/tabbedPane.js +0 -0
- package/lib/tabbed/tabbedPane.js.map +0 -0
- package/lib/tableViewPane.js +0 -0
- package/lib/tableViewPane.js.map +0 -0
- package/lib/test-import-export/common.js +0 -0
- package/lib/test-import-export/common.js.map +0 -0
- package/lib/test-import-export/edit-importer.js +0 -0
- package/lib/test-import-export/edit-importer.js.map +0 -0
- package/lib/test-import-export/testImportExport.js +0 -0
- package/lib/test-import-export/testImportExport.js.map +0 -0
- package/lib/transaction/pane.js +1 -1
- package/lib/transaction/pane.js.map +1 -1
- package/lib/transaction/period.js +1 -1
- package/lib/transaction/period.js.map +1 -1
- package/lib/trip/tripPane.js +1 -1
- package/lib/trip/tripPane.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.dom.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.dom.js +11 -9
- package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/lib/trustedApplications/trustedApplications.test.js +0 -0
- package/lib/trustedApplications/trustedApplications.test.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js +0 -0
- package/lib/trustedApplications/trustedApplications.utils.js.map +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
- package/lib/trustedApplications/trustedApplications.view.d.ts.map +1 -1
- package/lib/trustedApplications/trustedApplications.view.js +5 -3
- package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
- package/lib/types.d.ts +0 -0
- package/lib/types.d.ts.map +0 -0
- package/lib/types.js +0 -0
- package/lib/types.js.map +0 -0
- package/lib/ui/pane.js +0 -0
- package/lib/ui/pane.js.map +0 -0
- package/lib/versionInfo.d.ts +0 -0
- package/lib/versionInfo.d.ts.map +0 -0
- package/lib/versionInfo.js +14 -14
- package/lib/versionInfo.js.map +1 -1
- package/lib/video/videoPane.js +0 -0
- package/lib/video/videoPane.js.map +0 -0
- package/package.json +14 -14
- package/src/RDFXMLPane.js +0 -0
- package/src/argument/argumentPane.js +5 -5
- package/src/argument/argument_icon_v04.jpg +0 -0
- package/src/argument/icon_argument.png +0 -0
- package/src/argument/transparentyingyang.png +0 -0
- package/src/attach/attachPane.js +0 -0
- package/src/attach/tbl-paperclip-128.png +0 -0
- package/src/attach/tbl-paperclip-22.png +0 -0
- package/src/attach/tbl-paperclip-22a.png +0 -0
- package/src/audio/audioPane.js +0 -0
- package/src/chatPreferencesForm.ttl +0 -0
- package/src/classInstancePane.js +0 -0
- package/src/dashboard/basicPreferences.ts +4 -5
- package/src/dashboard/dashboardPane.ts +4 -3
- package/src/dashboard/homepage.ts +0 -0
- package/src/dashboard/languages/codes.html +0 -0
- package/src/dashboard/languages/codes.xml +0 -0
- package/src/dashboard/languages/codes2.txt +0 -0
- package/src/dashboard/languages/foo +0 -0
- package/src/dashboard/languages/foo.ttl +0 -0
- package/src/dashboard/languages/get-language-names.sh +0 -0
- package/src/dashboard/ontologyData.ttl +0 -0
- package/src/dashboard/preferencesFormText.ttl +0 -0
- package/src/dataContentPane.js +1 -1
- package/src/defaultPane.js +0 -0
- package/src/dokieli/Makefile +0 -0
- package/src/dokieli/dokieliPane.js +0 -0
- package/src/dokieli/new.html +0 -0
- package/src/dokieli/new.js +0 -0
- package/src/form/form-22.png +0 -0
- package/src/form/form-b-22.png +0 -0
- package/src/form/form.graffle +0 -0
- package/src/form/form.png +0 -0
- package/src/form/pane.js +5 -4
- package/src/form/psuedocode-notes.txt +0 -0
- package/src/global.d.ts +0 -0
- package/src/home/homePane.ts +7 -6
- package/src/humanReadablePane.js +0 -0
- package/src/imagePane.js +0 -0
- package/src/index.ts +27 -21
- package/src/internal/internalPane.ts +0 -0
- package/src/mainPage/footer.ts +19 -0
- package/src/mainPage/header.ts +76 -0
- package/src/mainPage/index.ts +20 -0
- package/src/meeting/Makefile +0 -0
- package/src/meeting/test/meeting1/Actions/actions.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/config.ttl +0 -0
- package/src/meeting/test/meeting1/Actions/state.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html +0 -0
- package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl +0 -0
- package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -0
- package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -0
- package/src/meeting/test/meeting1/chat/chat.ttl +0 -0
- package/src/meeting/test/meeting1/details.ttl +0 -0
- package/src/meeting/test/meeting1/pad/pad.ttl +0 -0
- package/src/microblogPane/mbStyle.css +0 -0
- package/src/microblogPane/microblogPane.js +9 -8
- package/src/n3Pane.js +0 -0
- package/src/outline/context.ts +2 -1
- package/src/outline/dragDrop.js +5 -4
- package/src/outline/licenseOptions.js +4 -5
- package/src/outline/manager.js +43 -27
- package/src/outline/manager.test.ts +0 -0
- package/src/outline/outlineIcons.js +0 -0
- package/src/outline/propertyViews.test.ts +0 -0
- package/src/outline/propertyViews.ts +0 -0
- package/src/outline/queryByExample.js +4 -4
- package/src/outline/userInput.js +72 -72
- package/src/outline/viewAsImage.ts +0 -0
- package/src/outline/viewAsMbox.ts +0 -0
- package/src/pad/images/ColourOff.ai +0 -0
- package/src/pad/images/ColourOff.png +0 -0
- package/src/pad/images/ColourOn.ai +0 -0
- package/src/pad/images/ColourOn.png +0 -0
- package/src/pad/padPane.ts +3 -3
- package/src/playlist/playlistPane.js +0 -0
- package/src/profile/editProfile.view.ts +5 -8
- package/src/profile/profile.dom.ts +0 -0
- package/src/profile/profileFormText.ttl +0 -0
- package/src/registerPanes.js +0 -0
- package/src/schedule/Makefile +0 -0
- package/src/schedule/formsForSchedule.js +0 -0
- package/src/schedule/formsForSchedule.ttl +0 -0
- package/src/schedule/schedulePane.js +14 -13
- package/src/sharing/sharingPane.ts +0 -0
- package/src/slideshow/slideshowPane.js +0 -0
- package/src/socialPane.js +5 -4
- package/src/style/tabbedtab.css +0 -0
- package/src/tabbed/tabbedPane.ts +0 -0
- package/src/tableViewPane.js +0 -0
- package/src/test-import-export/common.js +0 -0
- package/src/test-import-export/edit-importer.js +0 -0
- package/src/test-import-export/testImportExport.js +0 -0
- package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
- package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
- package/src/transaction/pane.js +1 -1
- package/src/transaction/period.js +1 -1
- package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
- package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
- package/src/trip/tripPane.js +1 -1
- package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
- package/src/trustedApplications/trustedApplications.dom.ts +2 -1
- package/src/trustedApplications/trustedApplications.test.ts +0 -0
- package/src/trustedApplications/trustedApplications.utils.ts +0 -0
- package/src/trustedApplications/trustedApplications.view.ts +4 -4
- package/src/types.ts +0 -0
- package/src/ui/22-builder.png +0 -0
- package/src/ui/builder.graffle +0 -0
- package/src/ui/builder.png +0 -0
- package/src/ui/builder2.png +0 -0
- package/src/ui/pane.js +0 -0
- package/src/versionInfo.ts +14 -14
- package/src/video/videoPane.js +0 -0
- package/timestamp.sh +0 -0
- package/travis/bumpversion.js +0 -0
- package/tsconfig.json +0 -0
- package/typings/raw-loader.d.ts +0 -0
- package/typings/solid-namespace/index.d.ts +0 -0
- package/webpack.config.js +0 -0
package/lib/outline/manager.js
CHANGED
|
@@ -9,6 +9,8 @@ exports["default"] = _default;
|
|
|
9
9
|
|
|
10
10
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
11
11
|
|
|
12
|
+
var _solidLogic = require("solid-logic");
|
|
13
|
+
|
|
12
14
|
var panes = _interopRequireWildcard(require("pane-registry"));
|
|
13
15
|
|
|
14
16
|
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
@@ -63,9 +65,9 @@ function _default(context) {
|
|
|
63
65
|
this.ancestor = UI.utils.ancestor; // make available as outline.ancestor in callbacks
|
|
64
66
|
|
|
65
67
|
this.sparql = UI.rdf.UpdateManager;
|
|
66
|
-
this.kb =
|
|
67
|
-
var kb =
|
|
68
|
-
var sf =
|
|
68
|
+
this.kb = _solidLogic.store;
|
|
69
|
+
var kb = _solidLogic.store;
|
|
70
|
+
var sf = _solidLogic.store.fetcher;
|
|
69
71
|
dom.outline = this;
|
|
70
72
|
this.qs = new _queryByExample["default"].QuerySource(); // Track queries in queryByExample
|
|
71
73
|
// var selection = [] // Array of statements which have been selected
|
|
@@ -368,7 +370,9 @@ function _default(context) {
|
|
|
368
370
|
|
|
369
371
|
containerDiv.innerHTML = '';
|
|
370
372
|
var table = containerDiv.appendChild(dom.createElement('table'));
|
|
371
|
-
|
|
373
|
+
|
|
374
|
+
var me = _solidLogic.authn.currentUser();
|
|
375
|
+
|
|
372
376
|
thisOutline.GotoSubject(item.subject || me, true, pane, false, undefined, table);
|
|
373
377
|
};
|
|
374
378
|
|
|
@@ -380,7 +384,7 @@ function _default(context) {
|
|
|
380
384
|
options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
381
385
|
console.log('globalAppTabs @@');
|
|
382
386
|
div = dom.createElement('div');
|
|
383
|
-
me =
|
|
387
|
+
me = _solidLogic.authn.currentUser();
|
|
384
388
|
|
|
385
389
|
if (me) {
|
|
386
390
|
_context.next = 9;
|
|
@@ -428,32 +432,32 @@ function _default(context) {
|
|
|
428
432
|
}
|
|
429
433
|
|
|
430
434
|
function _getDashboardItems() {
|
|
431
|
-
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
435
|
+
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
432
436
|
var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
|
|
433
437
|
|
|
434
|
-
return regeneratorRuntime.wrap(function
|
|
438
|
+
return regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
435
439
|
while (1) {
|
|
436
|
-
switch (
|
|
440
|
+
switch (_context8.prev = _context8.next) {
|
|
437
441
|
case 0:
|
|
438
442
|
_getAddressBooks = function _getAddressBooks3() {
|
|
439
|
-
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
440
|
-
var
|
|
443
|
+
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
444
|
+
var _context6;
|
|
441
445
|
|
|
442
|
-
return regeneratorRuntime.wrap(function
|
|
446
|
+
return regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
443
447
|
while (1) {
|
|
444
|
-
switch (
|
|
448
|
+
switch (_context7.prev = _context7.next) {
|
|
445
449
|
case 0:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
return UI.
|
|
450
|
+
_context7.prev = 0;
|
|
451
|
+
_context7.next = 3;
|
|
452
|
+
return UI.login.findAppInstances({
|
|
449
453
|
me: me,
|
|
450
454
|
div: div,
|
|
451
455
|
dom: dom
|
|
452
456
|
}, ns.vcard('AddressBook'));
|
|
453
457
|
|
|
454
458
|
case 3:
|
|
455
|
-
|
|
456
|
-
return
|
|
459
|
+
_context6 = _context7.sent;
|
|
460
|
+
return _context7.abrupt("return", (_context6.instances || []).map(function (book, index) {
|
|
457
461
|
return {
|
|
458
462
|
paneName: 'contact',
|
|
459
463
|
tabName: "contact-".concat(index),
|
|
@@ -464,19 +468,19 @@ function _default(context) {
|
|
|
464
468
|
}));
|
|
465
469
|
|
|
466
470
|
case 7:
|
|
467
|
-
|
|
468
|
-
|
|
471
|
+
_context7.prev = 7;
|
|
472
|
+
_context7.t0 = _context7["catch"](0);
|
|
469
473
|
console.error('oops in globalAppTabs AddressBook');
|
|
470
474
|
|
|
471
475
|
case 10:
|
|
472
|
-
return
|
|
476
|
+
return _context7.abrupt("return", []);
|
|
473
477
|
|
|
474
478
|
case 11:
|
|
475
479
|
case "end":
|
|
476
|
-
return
|
|
480
|
+
return _context7.stop();
|
|
477
481
|
}
|
|
478
482
|
}
|
|
479
|
-
},
|
|
483
|
+
}, _callee6, null, [[0, 7]]);
|
|
480
484
|
}));
|
|
481
485
|
return _getAddressBooks.apply(this, arguments);
|
|
482
486
|
};
|
|
@@ -486,142 +490,171 @@ function _default(context) {
|
|
|
486
490
|
};
|
|
487
491
|
|
|
488
492
|
_getPods = function _getPods3() {
|
|
489
|
-
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
490
|
-
var
|
|
493
|
+
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
494
|
+
var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
|
|
491
495
|
|
|
492
|
-
return regeneratorRuntime.wrap(function
|
|
496
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
493
497
|
while (1) {
|
|
494
|
-
switch (
|
|
498
|
+
switch (_context5.prev = _context5.next) {
|
|
495
499
|
case 0:
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
+
uniques = function _uniques(nodes) {
|
|
501
|
+
var uniqueNodes = [];
|
|
502
|
+
nodes.forEach(function (node) {
|
|
503
|
+
if (!uniqueNodes.find(function (uniqueNode) {
|
|
504
|
+
return uniqueNode.equals(node);
|
|
505
|
+
})) uniqueNodes.push(node);
|
|
506
|
+
});
|
|
507
|
+
return uniqueNodes;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
_addPodStorageFromUrl = function _addPodStorageFromUrl3() {
|
|
511
|
+
_addPodStorageFromUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(url) {
|
|
512
|
+
var podStorage, pathStorage;
|
|
513
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
500
514
|
while (1) {
|
|
501
|
-
switch (
|
|
515
|
+
switch (_context4.prev = _context4.next) {
|
|
502
516
|
case 0:
|
|
503
|
-
podStorage = new URL(url); // check
|
|
504
|
-
|
|
505
|
-
if (pods.some(function (pod) {
|
|
506
|
-
return pod.uri.includes(podStorage.origin);
|
|
507
|
-
})) {
|
|
508
|
-
_context3.next = 10;
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
517
|
+
podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
|
|
511
518
|
|
|
512
|
-
|
|
519
|
+
pathStorage = podStorage.pathname;
|
|
513
520
|
|
|
514
|
-
|
|
515
|
-
|
|
521
|
+
case 2:
|
|
522
|
+
if (!pathStorage.length) {
|
|
523
|
+
_context4.next = 10;
|
|
516
524
|
break;
|
|
517
525
|
}
|
|
518
526
|
|
|
519
|
-
|
|
520
|
-
|
|
527
|
+
pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
|
|
528
|
+
_context4.next = 6;
|
|
529
|
+
return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
|
|
521
530
|
|
|
522
531
|
case 6:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
case 7:
|
|
526
|
-
if (!_context3.t0) {
|
|
527
|
-
_context3.next = 10;
|
|
532
|
+
if (!_context4.sent) {
|
|
533
|
+
_context4.next = 8;
|
|
528
534
|
break;
|
|
529
535
|
}
|
|
530
536
|
|
|
531
|
-
|
|
532
|
-
|
|
537
|
+
return _context4.abrupt("return");
|
|
538
|
+
|
|
539
|
+
case 8:
|
|
540
|
+
_context4.next = 2;
|
|
541
|
+
break;
|
|
533
542
|
|
|
534
543
|
case 10:
|
|
535
544
|
case "end":
|
|
536
|
-
return
|
|
545
|
+
return _context4.stop();
|
|
537
546
|
}
|
|
538
547
|
}
|
|
539
|
-
},
|
|
548
|
+
}, _callee4);
|
|
540
549
|
}));
|
|
541
|
-
return
|
|
550
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
542
551
|
};
|
|
543
552
|
|
|
544
|
-
|
|
545
|
-
return
|
|
553
|
+
addPodStorageFromUrl = function _addPodStorageFromUrl2(_x8) {
|
|
554
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
546
555
|
};
|
|
547
556
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
return regeneratorRuntime.wrap(function
|
|
557
|
+
_addPodStorage = function _addPodStorage3() {
|
|
558
|
+
_addPodStorage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(pod) {
|
|
559
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
551
560
|
while (1) {
|
|
552
|
-
switch (
|
|
561
|
+
switch (_context3.prev = _context3.next) {
|
|
553
562
|
case 0:
|
|
554
|
-
|
|
555
|
-
return
|
|
563
|
+
_context3.next = 2;
|
|
564
|
+
return loadContainerRepresentation(pod);
|
|
556
565
|
|
|
557
566
|
case 2:
|
|
558
567
|
if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
559
|
-
|
|
568
|
+
_context3.next = 5;
|
|
560
569
|
break;
|
|
561
570
|
}
|
|
562
571
|
|
|
563
572
|
pods.push(pod);
|
|
564
|
-
return
|
|
573
|
+
return _context3.abrupt("return", true);
|
|
565
574
|
|
|
566
575
|
case 5:
|
|
567
|
-
return
|
|
576
|
+
return _context3.abrupt("return", false);
|
|
568
577
|
|
|
569
578
|
case 6:
|
|
570
579
|
case "end":
|
|
571
|
-
return
|
|
580
|
+
return _context3.stop();
|
|
572
581
|
}
|
|
573
582
|
}
|
|
574
|
-
},
|
|
583
|
+
}, _callee3);
|
|
575
584
|
}));
|
|
576
|
-
return
|
|
585
|
+
return _addPodStorage.apply(this, arguments);
|
|
577
586
|
};
|
|
578
587
|
|
|
579
|
-
|
|
580
|
-
return
|
|
588
|
+
addPodStorage = function _addPodStorage2(_x7) {
|
|
589
|
+
return _addPodStorage.apply(this, arguments);
|
|
581
590
|
};
|
|
582
591
|
|
|
583
|
-
|
|
584
|
-
|
|
592
|
+
_context5.prev = 5;
|
|
593
|
+
_context5.next = 8;
|
|
585
594
|
return kb.fetcher.load(me.doc());
|
|
586
595
|
|
|
587
|
-
case
|
|
588
|
-
|
|
596
|
+
case 8:
|
|
597
|
+
_context5.next = 14;
|
|
589
598
|
break;
|
|
590
599
|
|
|
591
|
-
case
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
console.error('Unable to load profile',
|
|
595
|
-
return
|
|
600
|
+
case 10:
|
|
601
|
+
_context5.prev = 10;
|
|
602
|
+
_context5.t0 = _context5["catch"](5);
|
|
603
|
+
console.error('Unable to load profile', _context5.t0);
|
|
604
|
+
return _context5.abrupt("return", []);
|
|
596
605
|
|
|
597
|
-
case
|
|
606
|
+
case 14:
|
|
607
|
+
// load pod's storages from profile
|
|
598
608
|
pods = kb.each(me, ns.space('storage'), null, me.doc());
|
|
599
|
-
|
|
609
|
+
pods.map( /*#__PURE__*/function () {
|
|
610
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(pod) {
|
|
611
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
612
|
+
while (1) {
|
|
613
|
+
switch (_context2.prev = _context2.next) {
|
|
614
|
+
case 0:
|
|
615
|
+
_context2.next = 2;
|
|
616
|
+
return loadContainerRepresentation(pod);
|
|
617
|
+
|
|
618
|
+
case 2:
|
|
619
|
+
case "end":
|
|
620
|
+
return _context2.stop();
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}, _callee2);
|
|
624
|
+
}));
|
|
625
|
+
|
|
626
|
+
return function (_x9) {
|
|
627
|
+
return _ref.apply(this, arguments);
|
|
628
|
+
};
|
|
629
|
+
}());
|
|
630
|
+
_context5.prev = 16;
|
|
600
631
|
// if uri then SolidOS is a browse.html web app
|
|
601
632
|
uri = new URL(window.location.href).searchParams.get('uri');
|
|
602
633
|
podUrl = uri || window.location.href;
|
|
603
|
-
|
|
604
|
-
return
|
|
634
|
+
_context5.next = 21;
|
|
635
|
+
return addPodStorageFromUrl(podUrl);
|
|
605
636
|
|
|
606
|
-
case
|
|
607
|
-
|
|
637
|
+
case 21:
|
|
638
|
+
_context5.next = 26;
|
|
608
639
|
break;
|
|
609
640
|
|
|
610
|
-
case
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
console.error('cannot load container',
|
|
641
|
+
case 23:
|
|
642
|
+
_context5.prev = 23;
|
|
643
|
+
_context5.t1 = _context5["catch"](16);
|
|
644
|
+
console.error('cannot load container', _context5.t1);
|
|
645
|
+
|
|
646
|
+
case 26:
|
|
647
|
+
pods = uniques(pods);
|
|
614
648
|
|
|
615
|
-
case 24:
|
|
616
649
|
if (pods.length) {
|
|
617
|
-
|
|
650
|
+
_context5.next = 29;
|
|
618
651
|
break;
|
|
619
652
|
}
|
|
620
653
|
|
|
621
|
-
return
|
|
654
|
+
return _context5.abrupt("return", []);
|
|
622
655
|
|
|
623
|
-
case
|
|
624
|
-
return
|
|
656
|
+
case 29:
|
|
657
|
+
return _context5.abrupt("return", pods.map(function (pod, index) {
|
|
625
658
|
function split(item) {
|
|
626
659
|
return item.uri.split('//')[1].slice(0, -1);
|
|
627
660
|
}
|
|
@@ -636,12 +669,12 @@ function _default(context) {
|
|
|
636
669
|
};
|
|
637
670
|
}));
|
|
638
671
|
|
|
639
|
-
case
|
|
672
|
+
case 30:
|
|
640
673
|
case "end":
|
|
641
|
-
return
|
|
674
|
+
return _context5.stop();
|
|
642
675
|
}
|
|
643
676
|
}
|
|
644
|
-
},
|
|
677
|
+
}, _callee5, null, [[5, 10], [16, 23]]);
|
|
645
678
|
}));
|
|
646
679
|
return _getPods.apply(this, arguments);
|
|
647
680
|
};
|
|
@@ -650,17 +683,26 @@ function _default(context) {
|
|
|
650
683
|
return _getPods.apply(this, arguments);
|
|
651
684
|
};
|
|
652
685
|
|
|
653
|
-
me =
|
|
686
|
+
me = _solidLogic.authn.currentUser();
|
|
687
|
+
|
|
688
|
+
if (me) {
|
|
689
|
+
_context8.next = 7;
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
return _context8.abrupt("return", []);
|
|
694
|
+
|
|
695
|
+
case 7:
|
|
654
696
|
div = dom.createElement('div');
|
|
655
|
-
|
|
697
|
+
_context8.next = 10;
|
|
656
698
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
657
699
|
|
|
658
|
-
case
|
|
659
|
-
_yield$Promise$all =
|
|
700
|
+
case 10:
|
|
701
|
+
_yield$Promise$all = _context8.sent;
|
|
660
702
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
661
703
|
books = _yield$Promise$all2[0];
|
|
662
704
|
pods = _yield$Promise$all2[1];
|
|
663
|
-
return
|
|
705
|
+
return _context8.abrupt("return", [{
|
|
664
706
|
paneName: 'home',
|
|
665
707
|
label: 'Your stuff',
|
|
666
708
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -674,12 +716,12 @@ function _default(context) {
|
|
|
674
716
|
icon: UI.icons.iconBase + 'noun_492246.svg'
|
|
675
717
|
}].concat(books).concat(pods));
|
|
676
718
|
|
|
677
|
-
case
|
|
719
|
+
case 15:
|
|
678
720
|
case "end":
|
|
679
|
-
return
|
|
721
|
+
return _context8.stop();
|
|
680
722
|
}
|
|
681
723
|
}
|
|
682
|
-
},
|
|
724
|
+
}, _callee7);
|
|
683
725
|
}));
|
|
684
726
|
return _getDashboardItems.apply(this, arguments);
|
|
685
727
|
}
|
|
@@ -698,7 +740,7 @@ function _default(context) {
|
|
|
698
740
|
}
|
|
699
741
|
|
|
700
742
|
function _showDashboard() {
|
|
701
|
-
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
743
|
+
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
702
744
|
var options,
|
|
703
745
|
dashboardContainer,
|
|
704
746
|
outlineContainer,
|
|
@@ -706,23 +748,23 @@ function _default(context) {
|
|
|
706
748
|
dashboard,
|
|
707
749
|
tab,
|
|
708
750
|
closeDashboard,
|
|
709
|
-
|
|
751
|
+
_args8 = arguments;
|
|
710
752
|
|
|
711
|
-
return regeneratorRuntime.wrap(function
|
|
753
|
+
return regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
712
754
|
while (1) {
|
|
713
|
-
switch (
|
|
755
|
+
switch (_context9.prev = _context9.next) {
|
|
714
756
|
case 0:
|
|
715
757
|
closeDashboard = function _closeDashboard() {
|
|
716
758
|
dashboardContainer.style.display = 'none';
|
|
717
759
|
outlineContainer.style.display = 'inherit';
|
|
718
760
|
};
|
|
719
761
|
|
|
720
|
-
options =
|
|
762
|
+
options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
721
763
|
dashboardContainer = getDashboardContainer();
|
|
722
764
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
723
765
|
|
|
724
766
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
725
|
-
|
|
767
|
+
_context9.next = 12;
|
|
726
768
|
break;
|
|
727
769
|
}
|
|
728
770
|
|
|
@@ -731,28 +773,30 @@ function _default(context) {
|
|
|
731
773
|
_tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
732
774
|
|
|
733
775
|
if (!_tab) {
|
|
734
|
-
|
|
776
|
+
_context9.next = 11;
|
|
735
777
|
break;
|
|
736
778
|
}
|
|
737
779
|
|
|
738
780
|
_tab.click();
|
|
739
781
|
|
|
740
|
-
return
|
|
782
|
+
return _context9.abrupt("return");
|
|
741
783
|
|
|
742
784
|
case 11:
|
|
743
785
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
744
786
|
|
|
745
787
|
case 12:
|
|
746
|
-
|
|
788
|
+
_context9.next = 14;
|
|
747
789
|
return globalAppTabs({
|
|
748
790
|
selectedTab: options.pane,
|
|
749
791
|
onClose: closeDashboard
|
|
750
792
|
});
|
|
751
793
|
|
|
752
794
|
case 14:
|
|
753
|
-
dashboard =
|
|
795
|
+
dashboard = _context9.sent;
|
|
796
|
+
|
|
754
797
|
// close the dashboard if user log out
|
|
755
|
-
|
|
798
|
+
_solidLogic.authSession.onLogout(closeDashboard); // finally - switch to showing dashboard
|
|
799
|
+
|
|
756
800
|
|
|
757
801
|
outlineContainer.style.display = 'none';
|
|
758
802
|
dashboardContainer.appendChild(dashboard);
|
|
@@ -764,10 +808,10 @@ function _default(context) {
|
|
|
764
808
|
|
|
765
809
|
case 20:
|
|
766
810
|
case "end":
|
|
767
|
-
return
|
|
811
|
+
return _context9.stop();
|
|
768
812
|
}
|
|
769
813
|
}
|
|
770
|
-
},
|
|
814
|
+
}, _callee8);
|
|
771
815
|
}));
|
|
772
816
|
return _showDashboard.apply(this, arguments);
|
|
773
817
|
}
|
|
@@ -798,23 +842,23 @@ function _default(context) {
|
|
|
798
842
|
}();
|
|
799
843
|
}
|
|
800
844
|
|
|
801
|
-
function
|
|
802
|
-
return
|
|
845
|
+
function loadContainerRepresentation(_x) {
|
|
846
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
803
847
|
}
|
|
804
848
|
|
|
805
|
-
function
|
|
806
|
-
|
|
849
|
+
function _loadContainerRepresentation() {
|
|
850
|
+
_loadContainerRepresentation = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(subject) {
|
|
807
851
|
var response, containerTurtle;
|
|
808
|
-
return regeneratorRuntime.wrap(function
|
|
852
|
+
return regeneratorRuntime.wrap(function _callee9$(_context10) {
|
|
809
853
|
while (1) {
|
|
810
|
-
switch (
|
|
854
|
+
switch (_context10.prev = _context10.next) {
|
|
811
855
|
case 0:
|
|
812
856
|
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
813
|
-
|
|
857
|
+
_context10.next = 6;
|
|
814
858
|
break;
|
|
815
859
|
}
|
|
816
860
|
|
|
817
|
-
|
|
861
|
+
_context10.next = 3;
|
|
818
862
|
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
819
863
|
headers: {
|
|
820
864
|
accept: 'text/turtle'
|
|
@@ -822,18 +866,18 @@ function _default(context) {
|
|
|
822
866
|
}));
|
|
823
867
|
|
|
824
868
|
case 3:
|
|
825
|
-
response =
|
|
869
|
+
response = _context10.sent;
|
|
826
870
|
containerTurtle = response.responseText;
|
|
827
871
|
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
828
872
|
|
|
829
873
|
case 6:
|
|
830
874
|
case "end":
|
|
831
|
-
return
|
|
875
|
+
return _context10.stop();
|
|
832
876
|
}
|
|
833
877
|
}
|
|
834
|
-
},
|
|
878
|
+
}, _callee9);
|
|
835
879
|
}));
|
|
836
|
-
return
|
|
880
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
837
881
|
}
|
|
838
882
|
|
|
839
883
|
function getRelevantPanes(_x2, _x3) {
|
|
@@ -841,19 +885,19 @@ function _default(context) {
|
|
|
841
885
|
}
|
|
842
886
|
|
|
843
887
|
function _getRelevantPanes() {
|
|
844
|
-
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
888
|
+
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(subject, context) {
|
|
845
889
|
var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
|
|
846
|
-
return regeneratorRuntime.wrap(function
|
|
890
|
+
return regeneratorRuntime.wrap(function _callee10$(_context11) {
|
|
847
891
|
while (1) {
|
|
848
|
-
switch (
|
|
892
|
+
switch (_context11.prev = _context11.next) {
|
|
849
893
|
case 0:
|
|
850
894
|
if (!subject.uri.endsWith('/')) {
|
|
851
|
-
|
|
895
|
+
_context11.next = 3;
|
|
852
896
|
break;
|
|
853
897
|
}
|
|
854
898
|
|
|
855
|
-
|
|
856
|
-
return
|
|
899
|
+
_context11.next = 3;
|
|
900
|
+
return loadContainerRepresentation(subject);
|
|
857
901
|
|
|
858
902
|
case 3:
|
|
859
903
|
panes = context.session.paneRegistry;
|
|
@@ -862,38 +906,38 @@ function _default(context) {
|
|
|
862
906
|
});
|
|
863
907
|
|
|
864
908
|
if (!(relevantPanes.length === 0)) {
|
|
865
|
-
|
|
909
|
+
_context11.next = 7;
|
|
866
910
|
break;
|
|
867
911
|
}
|
|
868
912
|
|
|
869
|
-
return
|
|
913
|
+
return _context11.abrupt("return", [panes.byName('internal')]);
|
|
870
914
|
|
|
871
915
|
case 7:
|
|
872
|
-
|
|
873
|
-
return UI.
|
|
916
|
+
_context11.next = 9;
|
|
917
|
+
return UI.login.filterAvailablePanes(relevantPanes);
|
|
874
918
|
|
|
875
919
|
case 9:
|
|
876
|
-
filteredPanes =
|
|
920
|
+
filteredPanes = _context11.sent;
|
|
877
921
|
|
|
878
922
|
if (!(filteredPanes.length === 0)) {
|
|
879
|
-
|
|
923
|
+
_context11.next = 12;
|
|
880
924
|
break;
|
|
881
925
|
}
|
|
882
926
|
|
|
883
|
-
return
|
|
927
|
+
return _context11.abrupt("return", [relevantPanes[0]]);
|
|
884
928
|
|
|
885
929
|
case 12:
|
|
886
930
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
887
931
|
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
|
|
888
932
|
|
|
889
|
-
return
|
|
933
|
+
return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
890
934
|
|
|
891
935
|
case 15:
|
|
892
936
|
case "end":
|
|
893
|
-
return
|
|
937
|
+
return _context11.stop();
|
|
894
938
|
}
|
|
895
939
|
}
|
|
896
|
-
},
|
|
940
|
+
}, _callee10);
|
|
897
941
|
}));
|
|
898
942
|
return _getRelevantPanes.apply(this, arguments);
|
|
899
943
|
}
|
|
@@ -931,50 +975,50 @@ function _default(context) {
|
|
|
931
975
|
|
|
932
976
|
|
|
933
977
|
function _expandedHeaderTR() {
|
|
934
|
-
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
978
|
+
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(subject, requiredPane, options) {
|
|
935
979
|
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
|
|
936
980
|
|
|
937
|
-
return regeneratorRuntime.wrap(function
|
|
981
|
+
return regeneratorRuntime.wrap(function _callee12$(_context13) {
|
|
938
982
|
while (1) {
|
|
939
|
-
switch (
|
|
983
|
+
switch (_context13.prev = _context13.next) {
|
|
940
984
|
case 0:
|
|
941
985
|
_renderPaneIconTray = function _renderPaneIconTray3() {
|
|
942
|
-
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
986
|
+
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(td) {
|
|
943
987
|
var options,
|
|
944
988
|
paneShownStyle,
|
|
945
989
|
paneHiddenStyle,
|
|
946
990
|
paneIconTray,
|
|
947
991
|
relevantPanes,
|
|
948
992
|
paneNumber,
|
|
949
|
-
|
|
950
|
-
return regeneratorRuntime.wrap(function
|
|
993
|
+
_args11 = arguments;
|
|
994
|
+
return regeneratorRuntime.wrap(function _callee11$(_context12) {
|
|
951
995
|
while (1) {
|
|
952
|
-
switch (
|
|
996
|
+
switch (_context12.prev = _context12.next) {
|
|
953
997
|
case 0:
|
|
954
|
-
options =
|
|
998
|
+
options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
|
|
955
999
|
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;';
|
|
956
1000
|
paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
|
|
957
1001
|
paneIconTray = td.appendChild(dom.createElement('nav'));
|
|
958
1002
|
paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
|
|
959
1003
|
|
|
960
1004
|
if (!options.hideList) {
|
|
961
|
-
|
|
1005
|
+
_context12.next = 9;
|
|
962
1006
|
break;
|
|
963
1007
|
}
|
|
964
1008
|
|
|
965
|
-
|
|
966
|
-
|
|
1009
|
+
_context12.t0 = [];
|
|
1010
|
+
_context12.next = 12;
|
|
967
1011
|
break;
|
|
968
1012
|
|
|
969
1013
|
case 9:
|
|
970
|
-
|
|
1014
|
+
_context12.next = 11;
|
|
971
1015
|
return getRelevantPanes(subject, context);
|
|
972
1016
|
|
|
973
1017
|
case 11:
|
|
974
|
-
|
|
1018
|
+
_context12.t0 = _context12.sent;
|
|
975
1019
|
|
|
976
1020
|
case 12:
|
|
977
|
-
relevantPanes =
|
|
1021
|
+
relevantPanes = _context12.t0;
|
|
978
1022
|
tr.firstPane = requiredPane || getPane(relevantPanes, subject);
|
|
979
1023
|
paneNumber = relevantPanes.indexOf(tr.firstPane);
|
|
980
1024
|
|
|
@@ -1091,19 +1135,19 @@ function _default(context) {
|
|
|
1091
1135
|
});
|
|
1092
1136
|
}
|
|
1093
1137
|
|
|
1094
|
-
return
|
|
1138
|
+
return _context12.abrupt("return", paneIconTray);
|
|
1095
1139
|
|
|
1096
1140
|
case 17:
|
|
1097
1141
|
case "end":
|
|
1098
|
-
return
|
|
1142
|
+
return _context12.stop();
|
|
1099
1143
|
}
|
|
1100
1144
|
}
|
|
1101
|
-
},
|
|
1145
|
+
}, _callee11);
|
|
1102
1146
|
}));
|
|
1103
1147
|
return _renderPaneIconTray.apply(this, arguments);
|
|
1104
1148
|
};
|
|
1105
1149
|
|
|
1106
|
-
renderPaneIconTray = function _renderPaneIconTray2(
|
|
1150
|
+
renderPaneIconTray = function _renderPaneIconTray2(_x10) {
|
|
1107
1151
|
return _renderPaneIconTray.apply(this, arguments);
|
|
1108
1152
|
};
|
|
1109
1153
|
|
|
@@ -1135,16 +1179,16 @@ function _default(context) {
|
|
|
1135
1179
|
UI.widgets.makeDraggable(strong, subject);
|
|
1136
1180
|
}
|
|
1137
1181
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1182
|
+
_context13.t0 = header;
|
|
1183
|
+
_context13.next = 16;
|
|
1140
1184
|
return renderPaneIconTray(td, {
|
|
1141
1185
|
hideList: showHeader
|
|
1142
1186
|
});
|
|
1143
1187
|
|
|
1144
1188
|
case 16:
|
|
1145
|
-
|
|
1189
|
+
_context13.t1 = _context13.sent;
|
|
1146
1190
|
|
|
1147
|
-
|
|
1191
|
+
_context13.t0.appendChild.call(_context13.t0, _context13.t1);
|
|
1148
1192
|
|
|
1149
1193
|
// set DOM methods
|
|
1150
1194
|
tr.firstChild.tabulatorSelect = function () {
|
|
@@ -1155,14 +1199,14 @@ function _default(context) {
|
|
|
1155
1199
|
setSelected(this, false);
|
|
1156
1200
|
};
|
|
1157
1201
|
|
|
1158
|
-
return
|
|
1202
|
+
return _context13.abrupt("return", tr);
|
|
1159
1203
|
|
|
1160
1204
|
case 21:
|
|
1161
1205
|
case "end":
|
|
1162
|
-
return
|
|
1206
|
+
return _context13.stop();
|
|
1163
1207
|
}
|
|
1164
1208
|
}
|
|
1165
|
-
},
|
|
1209
|
+
}, _callee12);
|
|
1166
1210
|
}));
|
|
1167
1211
|
return _expandedHeaderTR.apply(this, arguments);
|
|
1168
1212
|
}
|
|
@@ -1652,7 +1696,7 @@ function _default(context) {
|
|
|
1652
1696
|
|
|
1653
1697
|
if (target.label) {
|
|
1654
1698
|
window.content.location = target.label; // The following alternative does not work in the extension.
|
|
1655
|
-
// var s =
|
|
1699
|
+
// var s = store.sym(target.label);
|
|
1656
1700
|
// outline.GotoSubject(s, true);
|
|
1657
1701
|
}
|
|
1658
1702
|
};
|
|
@@ -1726,7 +1770,7 @@ function _default(context) {
|
|
|
1726
1770
|
// don't do these for headers or base nodes
|
|
1727
1771
|
var source = st.why; // var target = st.why
|
|
1728
1772
|
|
|
1729
|
-
var editable =
|
|
1773
|
+
var editable = _solidLogic.store.updater.editable(source.uri, kb);
|
|
1730
1774
|
|
|
1731
1775
|
if (!editable) {// let target = node.parentNode.AJAR_inverse ? st.object : st.subject
|
|
1732
1776
|
} // left hand side
|
|
@@ -1914,7 +1958,7 @@ function _default(context) {
|
|
|
1914
1958
|
// I don't know why 'HTML'
|
|
1915
1959
|
var object = UI.utils.getAbout(kb, selectedTd);
|
|
1916
1960
|
target = selectedTd.parentNode.AJAR_statement.why;
|
|
1917
|
-
editable =
|
|
1961
|
+
editable = _solidLogic.store.updater.editable(target.uri, kb);
|
|
1918
1962
|
|
|
1919
1963
|
if (object) {
|
|
1920
1964
|
// <Feature about='enterToExpand'>
|
|
@@ -1975,7 +2019,7 @@ function _default(context) {
|
|
|
1975
2019
|
case 8:
|
|
1976
2020
|
// backspace
|
|
1977
2021
|
target = selectedTd.parentNode.AJAR_statement.why;
|
|
1978
|
-
editable =
|
|
2022
|
+
editable = _solidLogic.store.updater.editable(target.uri, kb);
|
|
1979
2023
|
|
|
1980
2024
|
if (editable) {
|
|
1981
2025
|
e.preventDefault(); // prevent from going back
|
|
@@ -2244,7 +2288,9 @@ function _default(context) {
|
|
|
2244
2288
|
if (!st) return; // For example in the title TD of an expanded pane
|
|
2245
2289
|
|
|
2246
2290
|
var _target = st.why;
|
|
2247
|
-
|
|
2291
|
+
|
|
2292
|
+
var editable = _solidLogic.store.updater.editable(_target.uri, kb);
|
|
2293
|
+
|
|
2248
2294
|
if (sel && editable) thisOutline.UserInput.Click(e, selection[0]); // was next 2 lines
|
|
2249
2295
|
// var text='TabulatorMouseDown@Outline()';
|
|
2250
2296
|
// HCIoptions['able to edit in Discovery Mode by mouse'].setupHere([sel,e,thisOutline,selection[0]],text);
|