mashlib 1.7.11 → 1.7.12-3cd76621
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/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dist/browse.html +0 -0
- package/dist/databrowser.html +0 -0
- package/dist/mash.css +0 -0
- package/dist/mash.css.map +0 -0
- package/dist/mashlib.js +170 -163
- package/dist/mashlib.js.map +1 -1
- package/dist/mashlib.min.js +3 -3
- package/dist/mashlib.min.js.map +1 -1
- package/package.json +4 -4
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/dist/browse.html
CHANGED
|
File without changes
|
package/dist/databrowser.html
CHANGED
|
File without changes
|
package/dist/mash.css
CHANGED
|
File without changes
|
package/dist/mash.css.map
CHANGED
|
File without changes
|
package/dist/mashlib.js
CHANGED
|
@@ -112902,23 +112902,23 @@ function _default(context) {
|
|
|
112902
112902
|
}
|
|
112903
112903
|
|
|
112904
112904
|
function _getDashboardItems() {
|
|
112905
|
-
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112905
|
+
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
112906
112906
|
var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
|
|
112907
112907
|
|
|
112908
|
-
return regeneratorRuntime.wrap(function
|
|
112908
|
+
return regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
112909
112909
|
while (1) {
|
|
112910
|
-
switch (
|
|
112910
|
+
switch (_context7.prev = _context7.next) {
|
|
112911
112911
|
case 0:
|
|
112912
112912
|
_getAddressBooks = function _getAddressBooks3() {
|
|
112913
|
-
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112914
|
-
var
|
|
112913
|
+
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
112914
|
+
var _context5;
|
|
112915
112915
|
|
|
112916
|
-
return regeneratorRuntime.wrap(function
|
|
112916
|
+
return regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
112917
112917
|
while (1) {
|
|
112918
|
-
switch (
|
|
112918
|
+
switch (_context6.prev = _context6.next) {
|
|
112919
112919
|
case 0:
|
|
112920
|
-
|
|
112921
|
-
|
|
112920
|
+
_context6.prev = 0;
|
|
112921
|
+
_context6.next = 3;
|
|
112922
112922
|
return UI.authn.findAppInstances({
|
|
112923
112923
|
me: me,
|
|
112924
112924
|
div: div,
|
|
@@ -112926,8 +112926,8 @@ function _default(context) {
|
|
|
112926
112926
|
}, ns.vcard('AddressBook'));
|
|
112927
112927
|
|
|
112928
112928
|
case 3:
|
|
112929
|
-
|
|
112930
|
-
return
|
|
112929
|
+
_context5 = _context6.sent;
|
|
112930
|
+
return _context6.abrupt("return", (_context5.instances || []).map(function (book, index) {
|
|
112931
112931
|
return {
|
|
112932
112932
|
paneName: 'contact',
|
|
112933
112933
|
tabName: "contact-".concat(index),
|
|
@@ -112938,19 +112938,19 @@ function _default(context) {
|
|
|
112938
112938
|
}));
|
|
112939
112939
|
|
|
112940
112940
|
case 7:
|
|
112941
|
-
|
|
112942
|
-
|
|
112941
|
+
_context6.prev = 7;
|
|
112942
|
+
_context6.t0 = _context6["catch"](0);
|
|
112943
112943
|
console.error('oops in globalAppTabs AddressBook');
|
|
112944
112944
|
|
|
112945
112945
|
case 10:
|
|
112946
|
-
return
|
|
112946
|
+
return _context6.abrupt("return", []);
|
|
112947
112947
|
|
|
112948
112948
|
case 11:
|
|
112949
112949
|
case "end":
|
|
112950
|
-
return
|
|
112950
|
+
return _context6.stop();
|
|
112951
112951
|
}
|
|
112952
112952
|
}
|
|
112953
|
-
},
|
|
112953
|
+
}, _callee5, null, [[0, 7]]);
|
|
112954
112954
|
}));
|
|
112955
112955
|
return _getAddressBooks.apply(this, arguments);
|
|
112956
112956
|
};
|
|
@@ -112960,183 +112960,144 @@ function _default(context) {
|
|
|
112960
112960
|
};
|
|
112961
112961
|
|
|
112962
112962
|
_getPods = function _getPods3() {
|
|
112963
|
-
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112963
|
+
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
112964
112964
|
var addPodRoot, _addPodRoot, addPodRootFromUrl, _addPodRootFromUrl, pods;
|
|
112965
112965
|
|
|
112966
|
-
return regeneratorRuntime.wrap(function
|
|
112966
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
112967
112967
|
while (1) {
|
|
112968
|
-
switch (
|
|
112968
|
+
switch (_context4.prev = _context4.next) {
|
|
112969
112969
|
case 0:
|
|
112970
112970
|
_addPodRootFromUrl = function _addPodRootFromUrl3() {
|
|
112971
|
-
_addPodRootFromUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112971
|
+
_addPodRootFromUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(url) {
|
|
112972
112972
|
var podStorage;
|
|
112973
|
-
return regeneratorRuntime.wrap(function
|
|
112973
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
112974
112974
|
while (1) {
|
|
112975
|
-
switch (
|
|
112975
|
+
switch (_context3.prev = _context3.next) {
|
|
112976
112976
|
case 0:
|
|
112977
112977
|
podStorage = new URL(url); // check that origin is not included in pods array
|
|
112978
112978
|
|
|
112979
112979
|
if (pods.some(function (pod) {
|
|
112980
112980
|
return pod.uri.includes(podStorage.origin);
|
|
112981
112981
|
})) {
|
|
112982
|
-
|
|
112982
|
+
_context3.next = 10;
|
|
112983
112983
|
break;
|
|
112984
112984
|
}
|
|
112985
112985
|
|
|
112986
|
-
|
|
112986
|
+
_context3.t0 = podStorage.pathname === '/';
|
|
112987
112987
|
|
|
112988
|
-
if (
|
|
112989
|
-
|
|
112988
|
+
if (_context3.t0) {
|
|
112989
|
+
_context3.next = 7;
|
|
112990
112990
|
break;
|
|
112991
112991
|
}
|
|
112992
112992
|
|
|
112993
|
-
|
|
112993
|
+
_context3.next = 6;
|
|
112994
112994
|
return addPodRoot(kb.sym("".concat(podStorage.origin, "/").concat(podStorage.pathname.split('/')[1], "/")));
|
|
112995
112995
|
|
|
112996
112996
|
case 6:
|
|
112997
|
-
|
|
112997
|
+
_context3.t0 = !_context3.sent;
|
|
112998
112998
|
|
|
112999
112999
|
case 7:
|
|
113000
|
-
if (!
|
|
113001
|
-
|
|
113000
|
+
if (!_context3.t0) {
|
|
113001
|
+
_context3.next = 10;
|
|
113002
113002
|
break;
|
|
113003
113003
|
}
|
|
113004
113004
|
|
|
113005
|
-
|
|
113005
|
+
_context3.next = 10;
|
|
113006
113006
|
return addPodRoot(kb.sym("".concat(podStorage.origin, "/")));
|
|
113007
113007
|
|
|
113008
113008
|
case 10:
|
|
113009
113009
|
case "end":
|
|
113010
|
-
return
|
|
113010
|
+
return _context3.stop();
|
|
113011
113011
|
}
|
|
113012
113012
|
}
|
|
113013
|
-
},
|
|
113013
|
+
}, _callee3);
|
|
113014
113014
|
}));
|
|
113015
113015
|
return _addPodRootFromUrl.apply(this, arguments);
|
|
113016
113016
|
};
|
|
113017
113017
|
|
|
113018
|
-
addPodRootFromUrl = function _addPodRootFromUrl2(
|
|
113018
|
+
addPodRootFromUrl = function _addPodRootFromUrl2(_x8) {
|
|
113019
113019
|
return _addPodRootFromUrl.apply(this, arguments);
|
|
113020
113020
|
};
|
|
113021
113021
|
|
|
113022
113022
|
_addPodRoot = function _addPodRoot3() {
|
|
113023
|
-
_addPodRoot = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113024
|
-
return regeneratorRuntime.wrap(function
|
|
113023
|
+
_addPodRoot = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(pod) {
|
|
113024
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
113025
113025
|
while (1) {
|
|
113026
|
-
switch (
|
|
113026
|
+
switch (_context2.prev = _context2.next) {
|
|
113027
113027
|
case 0:
|
|
113028
|
-
|
|
113029
|
-
return
|
|
113030
|
-
headers: {
|
|
113031
|
-
accept: 'text/turtle'
|
|
113032
|
-
}
|
|
113033
|
-
});
|
|
113028
|
+
_context2.next = 2;
|
|
113029
|
+
return checkForContainerRepresentation(pod);
|
|
113034
113030
|
|
|
113035
113031
|
case 2:
|
|
113036
113032
|
if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
113037
|
-
|
|
113033
|
+
_context2.next = 5;
|
|
113038
113034
|
break;
|
|
113039
113035
|
}
|
|
113040
113036
|
|
|
113041
113037
|
pods.push(pod);
|
|
113042
|
-
return
|
|
113038
|
+
return _context2.abrupt("return", true);
|
|
113043
113039
|
|
|
113044
113040
|
case 5:
|
|
113045
|
-
return
|
|
113041
|
+
return _context2.abrupt("return", false);
|
|
113046
113042
|
|
|
113047
113043
|
case 6:
|
|
113048
113044
|
case "end":
|
|
113049
|
-
return
|
|
113045
|
+
return _context2.stop();
|
|
113050
113046
|
}
|
|
113051
113047
|
}
|
|
113052
|
-
},
|
|
113048
|
+
}, _callee2);
|
|
113053
113049
|
}));
|
|
113054
113050
|
return _addPodRoot.apply(this, arguments);
|
|
113055
113051
|
};
|
|
113056
113052
|
|
|
113057
|
-
addPodRoot = function _addPodRoot2(
|
|
113053
|
+
addPodRoot = function _addPodRoot2(_x7) {
|
|
113058
113054
|
return _addPodRoot.apply(this, arguments);
|
|
113059
113055
|
};
|
|
113060
113056
|
|
|
113061
|
-
|
|
113062
|
-
|
|
113057
|
+
_context4.prev = 4;
|
|
113058
|
+
_context4.next = 7;
|
|
113063
113059
|
return kb.fetcher.load(me.doc());
|
|
113064
113060
|
|
|
113065
113061
|
case 7:
|
|
113066
|
-
|
|
113062
|
+
_context4.next = 13;
|
|
113067
113063
|
break;
|
|
113068
113064
|
|
|
113069
113065
|
case 9:
|
|
113070
|
-
|
|
113071
|
-
|
|
113072
|
-
console.error('Unable to load profile',
|
|
113073
|
-
return
|
|
113066
|
+
_context4.prev = 9;
|
|
113067
|
+
_context4.t0 = _context4["catch"](4);
|
|
113068
|
+
console.error('Unable to load profile', _context4.t0);
|
|
113069
|
+
return _context4.abrupt("return", []);
|
|
113074
113070
|
|
|
113075
113071
|
case 13:
|
|
113076
113072
|
pods = kb.each(me, ns.space('storage'), null, me.doc());
|
|
113077
|
-
|
|
113078
|
-
|
|
113079
|
-
|
|
113080
|
-
_context5.next = 19;
|
|
113081
|
-
break;
|
|
113082
|
-
}
|
|
113083
|
-
|
|
113084
|
-
// make sure container representation is loaded (when server returns index.html)
|
|
113085
|
-
// TODO reorder to have 'me' in first position
|
|
113086
|
-
pods.map( /*#__PURE__*/function () {
|
|
113087
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(pod) {
|
|
113088
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
113089
|
-
while (1) {
|
|
113090
|
-
switch (_context2.prev = _context2.next) {
|
|
113091
|
-
case 0:
|
|
113092
|
-
if (kb.any(pod, ns.ldp('contains'), undefined, pod.doc())) {
|
|
113093
|
-
_context2.next = 3;
|
|
113094
|
-
break;
|
|
113095
|
-
}
|
|
113096
|
-
|
|
113097
|
-
_context2.next = 3;
|
|
113098
|
-
return kb.fetcher.load(pod, {
|
|
113099
|
-
headers: {
|
|
113100
|
-
accept: 'text/turtle'
|
|
113101
|
-
}
|
|
113102
|
-
});
|
|
113103
|
-
|
|
113104
|
-
case 3:
|
|
113105
|
-
case "end":
|
|
113106
|
-
return _context2.stop();
|
|
113107
|
-
}
|
|
113108
|
-
}
|
|
113109
|
-
}, _callee2);
|
|
113110
|
-
}));
|
|
113073
|
+
_context4.prev = 14;
|
|
113074
|
+
_context4.next = 17;
|
|
113075
|
+
return addPodRootFromUrl(window.location.href.substring(0, window.location.href.lastIndexOf('/') + 1));
|
|
113111
113076
|
|
|
113112
|
-
|
|
113113
|
-
|
|
113114
|
-
};
|
|
113115
|
-
}());
|
|
113116
|
-
_context5.next = 21;
|
|
113077
|
+
case 17:
|
|
113078
|
+
_context4.next = 22;
|
|
113117
113079
|
break;
|
|
113118
113080
|
|
|
113119
113081
|
case 19:
|
|
113120
|
-
|
|
113121
|
-
|
|
113082
|
+
_context4.prev = 19;
|
|
113083
|
+
_context4.t1 = _context4["catch"](14);
|
|
113084
|
+
console.error('cannot load container', _context4.t1);
|
|
113122
113085
|
|
|
113123
|
-
case
|
|
113124
|
-
|
|
113125
|
-
|
|
113086
|
+
case 22:
|
|
113087
|
+
if (pods.length) {
|
|
113088
|
+
_context4.next = 24;
|
|
113089
|
+
break;
|
|
113090
|
+
}
|
|
113126
113091
|
|
|
113127
|
-
|
|
113128
|
-
_context5.next = 29;
|
|
113129
|
-
break;
|
|
113092
|
+
return _context4.abrupt("return", []);
|
|
113130
113093
|
|
|
113131
|
-
case
|
|
113132
|
-
|
|
113133
|
-
|
|
113134
|
-
|
|
113135
|
-
|
|
113094
|
+
case 24:
|
|
113095
|
+
return _context4.abrupt("return", pods.map(function (pod, index) {
|
|
113096
|
+
function split(item) {
|
|
113097
|
+
return item.uri.split('//')[1].slice(0, -1);
|
|
113098
|
+
}
|
|
113136
113099
|
|
|
113137
|
-
|
|
113138
|
-
return _context5.abrupt("return", pods.map(function (pod, index) {
|
|
113139
|
-
var label = pods.length > 1 ? pod.uri.split('//')[1].slice(0, -1) : 'Your storage';
|
|
113100
|
+
var label = split(me).startsWith(split(pod)) ? 'Your storage' : split(pod);
|
|
113140
113101
|
return {
|
|
113141
113102
|
paneName: 'folder',
|
|
113142
113103
|
tabName: "folder-".concat(index),
|
|
@@ -113146,12 +113107,12 @@ function _default(context) {
|
|
|
113146
113107
|
};
|
|
113147
113108
|
}));
|
|
113148
113109
|
|
|
113149
|
-
case
|
|
113110
|
+
case 25:
|
|
113150
113111
|
case "end":
|
|
113151
|
-
return
|
|
113112
|
+
return _context4.stop();
|
|
113152
113113
|
}
|
|
113153
113114
|
}
|
|
113154
|
-
},
|
|
113115
|
+
}, _callee4, null, [[4, 9], [14, 19]]);
|
|
113155
113116
|
}));
|
|
113156
113117
|
return _getPods.apply(this, arguments);
|
|
113157
113118
|
};
|
|
@@ -113162,15 +113123,15 @@ function _default(context) {
|
|
|
113162
113123
|
|
|
113163
113124
|
me = UI.authn.currentUser();
|
|
113164
113125
|
div = dom.createElement('div');
|
|
113165
|
-
|
|
113126
|
+
_context7.next = 8;
|
|
113166
113127
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
113167
113128
|
|
|
113168
113129
|
case 8:
|
|
113169
|
-
_yield$Promise$all =
|
|
113130
|
+
_yield$Promise$all = _context7.sent;
|
|
113170
113131
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
113171
113132
|
books = _yield$Promise$all2[0];
|
|
113172
113133
|
pods = _yield$Promise$all2[1];
|
|
113173
|
-
return
|
|
113134
|
+
return _context7.abrupt("return", [{
|
|
113174
113135
|
paneName: 'home',
|
|
113175
113136
|
label: 'Your stuff',
|
|
113176
113137
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -113186,10 +113147,10 @@ function _default(context) {
|
|
|
113186
113147
|
|
|
113187
113148
|
case 13:
|
|
113188
113149
|
case "end":
|
|
113189
|
-
return
|
|
113150
|
+
return _context7.stop();
|
|
113190
113151
|
}
|
|
113191
113152
|
}
|
|
113192
|
-
},
|
|
113153
|
+
}, _callee6);
|
|
113193
113154
|
}));
|
|
113194
113155
|
return _getDashboardItems.apply(this, arguments);
|
|
113195
113156
|
}
|
|
@@ -113208,29 +113169,29 @@ function _default(context) {
|
|
|
113208
113169
|
}
|
|
113209
113170
|
|
|
113210
113171
|
function _showDashboard() {
|
|
113211
|
-
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113172
|
+
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
113212
113173
|
var options,
|
|
113213
113174
|
dashboardContainer,
|
|
113214
113175
|
outlineContainer,
|
|
113215
113176
|
tab,
|
|
113216
113177
|
dashboard,
|
|
113217
113178
|
closeDashboard,
|
|
113218
|
-
|
|
113219
|
-
return regeneratorRuntime.wrap(function
|
|
113179
|
+
_args7 = arguments;
|
|
113180
|
+
return regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
113220
113181
|
while (1) {
|
|
113221
|
-
switch (
|
|
113182
|
+
switch (_context8.prev = _context8.next) {
|
|
113222
113183
|
case 0:
|
|
113223
113184
|
closeDashboard = function _closeDashboard() {
|
|
113224
113185
|
dashboardContainer.style.display = 'none';
|
|
113225
113186
|
outlineContainer.style.display = 'inherit';
|
|
113226
113187
|
};
|
|
113227
113188
|
|
|
113228
|
-
options =
|
|
113189
|
+
options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
113229
113190
|
dashboardContainer = getDashboardContainer();
|
|
113230
113191
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
113231
113192
|
|
|
113232
113193
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
113233
|
-
|
|
113194
|
+
_context8.next = 12;
|
|
113234
113195
|
break;
|
|
113235
113196
|
}
|
|
113236
113197
|
|
|
@@ -113239,25 +113200,25 @@ function _default(context) {
|
|
|
113239
113200
|
tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
113240
113201
|
|
|
113241
113202
|
if (!tab) {
|
|
113242
|
-
|
|
113203
|
+
_context8.next = 11;
|
|
113243
113204
|
break;
|
|
113244
113205
|
}
|
|
113245
113206
|
|
|
113246
113207
|
tab.click();
|
|
113247
|
-
return
|
|
113208
|
+
return _context8.abrupt("return");
|
|
113248
113209
|
|
|
113249
113210
|
case 11:
|
|
113250
113211
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
113251
113212
|
|
|
113252
113213
|
case 12:
|
|
113253
|
-
|
|
113214
|
+
_context8.next = 14;
|
|
113254
113215
|
return globalAppTabs({
|
|
113255
113216
|
selectedTab: options.pane,
|
|
113256
113217
|
onClose: closeDashboard
|
|
113257
113218
|
});
|
|
113258
113219
|
|
|
113259
113220
|
case 14:
|
|
113260
|
-
dashboard =
|
|
113221
|
+
dashboard = _context8.sent;
|
|
113261
113222
|
// close the dashboard if user log out
|
|
113262
113223
|
UI.authn.authSession.onLogout(closeDashboard); // finally - switch to showing dashboard
|
|
113263
113224
|
|
|
@@ -113266,10 +113227,10 @@ function _default(context) {
|
|
|
113266
113227
|
|
|
113267
113228
|
case 18:
|
|
113268
113229
|
case "end":
|
|
113269
|
-
return
|
|
113230
|
+
return _context8.stop();
|
|
113270
113231
|
}
|
|
113271
113232
|
}
|
|
113272
|
-
},
|
|
113233
|
+
}, _callee7);
|
|
113273
113234
|
}));
|
|
113274
113235
|
return _showDashboard.apply(this, arguments);
|
|
113275
113236
|
}
|
|
@@ -113300,7 +113261,45 @@ function _default(context) {
|
|
|
113300
113261
|
}();
|
|
113301
113262
|
}
|
|
113302
113263
|
|
|
113303
|
-
function
|
|
113264
|
+
function checkForContainerRepresentation(_x) {
|
|
113265
|
+
return _checkForContainerRepresentation.apply(this, arguments);
|
|
113266
|
+
}
|
|
113267
|
+
|
|
113268
|
+
function _checkForContainerRepresentation() {
|
|
113269
|
+
_checkForContainerRepresentation = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(subject) {
|
|
113270
|
+
var response, containerTurtle;
|
|
113271
|
+
return regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
113272
|
+
while (1) {
|
|
113273
|
+
switch (_context9.prev = _context9.next) {
|
|
113274
|
+
case 0:
|
|
113275
|
+
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
113276
|
+
_context9.next = 6;
|
|
113277
|
+
break;
|
|
113278
|
+
}
|
|
113279
|
+
|
|
113280
|
+
_context9.next = 3;
|
|
113281
|
+
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
113282
|
+
headers: {
|
|
113283
|
+
accept: 'text/turtle'
|
|
113284
|
+
}
|
|
113285
|
+
}));
|
|
113286
|
+
|
|
113287
|
+
case 3:
|
|
113288
|
+
response = _context9.sent;
|
|
113289
|
+
containerTurtle = response.responseText;
|
|
113290
|
+
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
113291
|
+
|
|
113292
|
+
case 6:
|
|
113293
|
+
case "end":
|
|
113294
|
+
return _context9.stop();
|
|
113295
|
+
}
|
|
113296
|
+
}
|
|
113297
|
+
}, _callee8);
|
|
113298
|
+
}));
|
|
113299
|
+
return _checkForContainerRepresentation.apply(this, arguments);
|
|
113300
|
+
}
|
|
113301
|
+
|
|
113302
|
+
function getRelevantPanes(_x2, _x3) {
|
|
113304
113303
|
return _getRelevantPanes.apply(this, arguments);
|
|
113305
113304
|
}
|
|
113306
113305
|
|
|
@@ -113311,39 +113310,48 @@ function _default(context) {
|
|
|
113311
113310
|
while (1) {
|
|
113312
113311
|
switch (_context10.prev = _context10.next) {
|
|
113313
113312
|
case 0:
|
|
113313
|
+
if (!subject.uri.endsWith('/')) {
|
|
113314
|
+
_context10.next = 3;
|
|
113315
|
+
break;
|
|
113316
|
+
}
|
|
113317
|
+
|
|
113318
|
+
_context10.next = 3;
|
|
113319
|
+
return checkForContainerRepresentation(subject);
|
|
113320
|
+
|
|
113321
|
+
case 3:
|
|
113314
113322
|
panes = context.session.paneRegistry;
|
|
113315
113323
|
relevantPanes = panes.list.filter(function (pane) {
|
|
113316
113324
|
return pane.label(subject, context) && !pane.global;
|
|
113317
113325
|
});
|
|
113318
113326
|
|
|
113319
113327
|
if (!(relevantPanes.length === 0)) {
|
|
113320
|
-
_context10.next =
|
|
113328
|
+
_context10.next = 7;
|
|
113321
113329
|
break;
|
|
113322
113330
|
}
|
|
113323
113331
|
|
|
113324
113332
|
return _context10.abrupt("return", [panes.byName('internal')]);
|
|
113325
113333
|
|
|
113326
|
-
case
|
|
113327
|
-
_context10.next =
|
|
113334
|
+
case 7:
|
|
113335
|
+
_context10.next = 9;
|
|
113328
113336
|
return UI.authn.filterAvailablePanes(relevantPanes);
|
|
113329
113337
|
|
|
113330
|
-
case
|
|
113338
|
+
case 9:
|
|
113331
113339
|
filteredPanes = _context10.sent;
|
|
113332
113340
|
|
|
113333
113341
|
if (!(filteredPanes.length === 0)) {
|
|
113334
|
-
_context10.next =
|
|
113342
|
+
_context10.next = 12;
|
|
113335
113343
|
break;
|
|
113336
113344
|
}
|
|
113337
113345
|
|
|
113338
113346
|
return _context10.abrupt("return", [relevantPanes[0]]);
|
|
113339
113347
|
|
|
113340
|
-
case
|
|
113348
|
+
case 12:
|
|
113341
113349
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
113342
113350
|
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
|
|
113343
113351
|
|
|
113344
113352
|
return _context10.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
113345
113353
|
|
|
113346
|
-
case
|
|
113354
|
+
case 15:
|
|
113347
113355
|
case "end":
|
|
113348
113356
|
return _context10.stop();
|
|
113349
113357
|
}
|
|
@@ -113359,7 +113367,7 @@ function _default(context) {
|
|
|
113359
113367
|
}) || relevantPanes[0];
|
|
113360
113368
|
}
|
|
113361
113369
|
|
|
113362
|
-
function expandedHeaderTR(
|
|
113370
|
+
function expandedHeaderTR(_x4, _x5, _x6) {
|
|
113363
113371
|
return _expandedHeaderTR.apply(this, arguments);
|
|
113364
113372
|
} // expandedHeaderTR
|
|
113365
113373
|
// / //////////////////////////////////////////////////////////////////////////
|
|
@@ -122254,10 +122262,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
122254
122262
|
});
|
|
122255
122263
|
exports["default"] = void 0;
|
|
122256
122264
|
var _default = {
|
|
122257
|
-
buildTime: '2021-11-09T21:
|
|
122258
|
-
commit: '
|
|
122265
|
+
buildTime: '2021-11-09T21:34:46Z',
|
|
122266
|
+
commit: '652ac900c372e99b2bda9d96d6e88901c9f36f4f',
|
|
122259
122267
|
npmInfo: {
|
|
122260
|
-
'solid-panes': '3.5.
|
|
122268
|
+
'solid-panes': '3.5.11',
|
|
122261
122269
|
npm: '6.10.0',
|
|
122262
122270
|
ares: '1.15.0',
|
|
122263
122271
|
brotli: '1.0.7',
|
|
@@ -150067,7 +150075,7 @@ function _createBanner() {
|
|
|
150067
150075
|
function createHelpMenu() {
|
|
150068
150076
|
var helpMenuList = document.createElement('ul');
|
|
150069
150077
|
helpMenuList.classList.add('header-user-menu__list');
|
|
150070
|
-
helpMenuList.appendChild(createUserMenuItem(createUserMenuLink('User guide', 'https://github.
|
|
150078
|
+
helpMenuList.appendChild(createUserMenuItem(createUserMenuLink('User guide', 'https://solid.github.io/userguide/', '_blank')));
|
|
150071
150079
|
helpMenuList.appendChild(createUserMenuItem(createUserMenuLink('Report a problem', 'https://github.com/solid/solidos/issues', '_blank')));
|
|
150072
150080
|
var helpMenu = document.createElement('nav');
|
|
150073
150081
|
helpMenu.classList.add('header-user-menu__navigation-menu');
|
|
@@ -150565,26 +150573,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150565
150573
|
"use strict";
|
|
150566
150574
|
__webpack_require__.r(__webpack_exports__);
|
|
150567
150575
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
150568
|
-
buildTime: '2021-
|
|
150569
|
-
commit: '
|
|
150576
|
+
buildTime: '2021-12-14T15:46:27Z',
|
|
150577
|
+
commit: '3cd7662155546780331e9c8f6e62b074232b3851',
|
|
150570
150578
|
npmInfo: {
|
|
150571
|
-
mashlib: '1.7.
|
|
150572
|
-
npm: '6.
|
|
150573
|
-
ares: '1.
|
|
150574
|
-
brotli: '1.0.
|
|
150575
|
-
cldr: '
|
|
150576
|
-
|
|
150577
|
-
|
|
150578
|
-
|
|
150579
|
-
|
|
150580
|
-
|
|
150581
|
-
|
|
150582
|
-
|
|
150583
|
-
|
|
150584
|
-
|
|
150585
|
-
|
|
150586
|
-
|
|
150587
|
-
v8: '7.5.288.22-node.16',
|
|
150579
|
+
mashlib: '1.7.12',
|
|
150580
|
+
npm: '6.14.15',
|
|
150581
|
+
ares: '1.18.1',
|
|
150582
|
+
brotli: '1.0.9',
|
|
150583
|
+
cldr: '39.0',
|
|
150584
|
+
icu: '69.1',
|
|
150585
|
+
llhttp: '2.1.4',
|
|
150586
|
+
modules: '83',
|
|
150587
|
+
napi: '8',
|
|
150588
|
+
nghttp2: '1.42.0',
|
|
150589
|
+
node: '14.18.2',
|
|
150590
|
+
openssl: '1.1.1l',
|
|
150591
|
+
tz: '2021a',
|
|
150592
|
+
unicode: '13.0',
|
|
150593
|
+
uv: '1.42.0',
|
|
150594
|
+
v8: '8.4.371.23-node.85',
|
|
150588
150595
|
zlib: '1.2.11'
|
|
150589
150596
|
}
|
|
150590
150597
|
});
|