solid-ui 2.5.1-f1fa48a2 → 2.6.0-157bdf24
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/README.md +4 -0
- package/dist/solid-ui.js +426 -312
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/acl/access-groups.js +2 -2
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl.js +2 -2
- package/lib/acl/acl.js.map +1 -1
- package/lib/chat/infinite.js +0 -1
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +3 -4
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/signature.d.ts.map +1 -1
- package/lib/chat/signature.js +0 -1
- package/lib/chat/signature.js.map +1 -1
- package/lib/chat/thread.js +3 -6
- package/lib/chat/thread.js.map +1 -1
- package/lib/folders.js +0 -2
- package/lib/folders.js.map +1 -1
- package/lib/footer/index.d.ts.map +1 -1
- package/lib/footer/index.js +3 -4
- package/lib/footer/index.js.map +1 -1
- package/lib/header/index.js +11 -12
- package/lib/header/index.js.map +1 -1
- package/lib/iconBase.d.ts.map +1 -1
- package/lib/iconBase.js +0 -1
- package/lib/iconBase.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/log.d.ts +7 -7
- package/lib/log.d.ts.map +1 -1
- package/lib/log.js +2 -2
- package/lib/log.js.map +1 -1
- package/lib/login/login.js +35 -38
- package/lib/login/login.js.map +1 -1
- package/lib/matrix/types.js.map +1 -1
- package/lib/messageArea.js +0 -2
- package/lib/messageArea.js.map +1 -1
- package/lib/tabs.d.ts.map +1 -1
- package/lib/tabs.js.map +1 -1
- package/lib/utils/headerFooterHelpers.d.ts.map +1 -1
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/utils/keyHelpers/accessData.d.ts.map +1 -1
- package/lib/utils/keyHelpers/acl.d.ts.map +1 -1
- package/lib/utils/keyHelpers/acl.js +1 -1
- package/lib/utils/keyHelpers/acl.js.map +1 -1
- package/lib/utils/keyHelpers/otherHelpers.d.ts.map +1 -1
- package/lib/versionInfo.d.ts +4 -2
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +30 -29
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons/iconLinks.d.ts.map +1 -1
- package/lib/widgets/buttons/iconLinks.js +2 -2
- package/lib/widgets/buttons/iconLinks.js.map +1 -1
- package/lib/widgets/buttons.d.ts.map +1 -1
- package/lib/widgets/buttons.js +0 -1
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteBar.js +6 -7
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +0 -1
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.js +1 -1
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms.js +1 -2
- package/lib/widgets/forms.js.map +1 -1
- package/lib/widgets/index.js.map +1 -1
- package/lib/widgets/widgetHelpers.d.ts.map +1 -1
- package/lib/widgets/widgetHelpers.js +3 -3
- package/lib/widgets/widgetHelpers.js.map +1 -1
- package/package.json +57 -57
package/lib/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","names":["TERROR","TWARN","TMESG","TSUCCESS","TINFO","TDEBUG","TALL","LogLevel","exports","_level","_ascending","_dom","document","_window","window","log","str","type","arguments","length","undefined","typestr","logArea","getElementById","addendum","createElement","setAttribute","now","Date","innerHTML","concat","getHours","getMinutes","getSeconds","escapeForXML","insertBefore","firstChild","appendChild","console","msg","message","warn","debug","info","error","success","alert","clear","_dom2","setLevel","level","dumpHTML","_dom3","
|
|
1
|
+
{"version":3,"file":"log.js","names":["TERROR","TWARN","TMESG","TSUCCESS","TINFO","TDEBUG","TALL","LogLevel","exports","_level","_ascending","_dom","document","_window","window","log","str","type","arguments","length","undefined","typestr","logArea","getElementById","addendum","createElement","setAttribute","now","Date","innerHTML","concat","getHours","getMinutes","getSeconds","escapeForXML","insertBefore","firstChild","appendChild","console","msg","message","warn","debug","info","error","success","alert","clear","_dom2","setLevel","level","dumpHTML","_dom3","body","logAscending","logDescending","replace","setInternals"],"sources":["../src/log.ts"],"sourcesContent":["// /////////////////////// Logging\n//\n// bitmask levels\n// const TNONE = 0\n/** @internal */\nconst TERROR = 1\n/** @internal */\nconst TWARN = 2\n/** @internal */\nconst TMESG = 4\n/** @internal */\nconst TSUCCESS = 8\n/** @internal */\nconst TINFO = 16\n/** @internal */\nconst TDEBUG = 32\n/** @internal */\nconst TALL = 63\n\n/** @internal */\nexport enum LogLevel {\n Error = TERROR,\n Warning = TWARN,\n Message = TMESG,\n Success = TSUCCESS,\n Info = TINFO,\n Debug = TDEBUG,\n All = TALL\n}\n\n/** @internal */\nlet _level: number = TERROR + TWARN + TMESG\n/** @internal */\nlet _ascending: boolean = false\n/** @internal */\nlet _dom: HTMLDocument = document // must be able to override for tests\n/** @internal */\nlet _window: Window = window // must be able to override for tests\n\n/** @internal */\nfunction log (str: string, type: number = TMESG, typestr: string = 'mesg') {\n if (!(_level & type)) return // bitmask\n\n if (typeof _dom !== 'undefined') {\n const logArea = _dom.getElementById('status')\n if (!logArea) return\n\n const addendum = _dom.createElement('span')\n addendum.setAttribute('class', typestr)\n const now = new Date()\n addendum.innerHTML = `${now.getHours()}:${now.getMinutes()}:${now.getSeconds()} [${typestr}] ${escapeForXML(str)}<br/>`\n if (_ascending) {\n logArea.insertBefore(addendum, logArea.firstChild)\n } else {\n logArea.appendChild(addendum)\n }\n } else if (typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.log(str)\n }\n}\n\n/**\n * Adds a message to the element with id \"status\". The messages are prepended with\n * time and type of message, in this case [mesg].\n */\nexport function msg (message: string) {\n log(message)\n}\n\n/**\n * Adds a warning message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [warn].\n */\nexport function warn (message: string): void {\n log(message, TWARN, 'warn')\n}\n\n/**\n * Adds a debugging message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [dbug].\n */\nexport function debug (message: string): void {\n log(message, TDEBUG, 'dbug')\n}\n\n/**\n * Adds a info message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [info].\n */\nexport function info (message: string): void {\n log(message, TINFO, 'info')\n}\n\n/**\n * Adds a error to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [eror].\n */\nexport function error (message: string): void {\n log(message, TERROR, 'eror')\n}\n\n/**\n * Adds a success message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [good].\n */\nexport function success (message: string): void {\n log(message, TSUCCESS, 'good')\n}\n\n/**\n * Uses the global alert to send an alert. If global alert is not available, it\n * will output the message using the method [[warning]]s.\n */\nexport function alert (message: string): void {\n if (_window && typeof _window.alert !== 'undefined') {\n _window.alert(message)\n } else {\n warn(message)\n }\n}\n\n/**\n * Will clear the content of the element with id \"status\".\n */\nexport function clear (): void {\n const logArea = _dom?.getElementById('status')\n if (!logArea) return\n logArea.innerHTML = ''\n}\n\n/**\n * Lets you configure which types of messages will be shown. The module uses\n * [bitmask](https://en.wikipedia.org/wiki/Mask_(computing)) to filter which\n * types of messages should be shown. E.g. if you only want warning messages\n * to be shown, pass 2 to the function, if you want warning and success to be\n * shown, pass 10 (2+8). By passing the sum of all, 63, you'll show all\n * types of messages.\n *\n * - Error: 1\n * - Warning: 2\n * - Message: 4\n * - Success: 8\n * - Info: 16\n * - Debug: 32\n */\nexport function setLevel (level: number): void {\n _level = TALL\n debug('Log level is now ' + level)\n _level = level\n}\n\n/**\n * Will dump the current HTML using the [[debug]] method.\n */\nexport function dumpHTML (): void {\n if (!_dom) return\n const level = _level\n _level = TALL\n debug(_dom?.body?.innerHTML || '')\n _level = level\n}\n\n/**\n * Will start prepending messages the list of log messages.\n */\nexport function logAscending () {\n _ascending = true\n}\n\n/**\n * Will start appending messages the list of log messages. (This is default\n * behavior.)\n */\nexport function logDescending () {\n _ascending = false\n}\n\n/** @internal */\nexport function escapeForXML (str: string): string {\n // can be replaced with function utils module when migrating\n return str\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n}\n\n/** @internal */\nexport function setInternals (window, document) {\n _window = window\n _dom = document\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,IAAMA,MAAM,GAAG,CAAC;AAChB;AACA,IAAMC,KAAK,GAAG,CAAC;AACf;AACA,IAAMC,KAAK,GAAG,CAAC;AACf;AACA,IAAMC,QAAQ,GAAG,CAAC;AAClB;AACA,IAAMC,KAAK,GAAG,EAAE;AAChB;AACA,IAAMC,MAAM,GAAG,EAAE;AACjB;AACA,IAAMC,IAAI,GAAG,EAAE;;AAEf;AAAA,IACYC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAUpB;AACA,IAAIE,MAAc,GAAGT,MAAM,GAAGC,KAAK,GAAGC,KAAK;AAC3C;AACA,IAAIQ,UAAmB,GAAG,KAAK;AAC/B;AACA,IAAIC,IAAkB,GA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASoB,QAAQA,CAAEC,KAAa,EAAQ;EAC7CzC,MAAM,GAAGH,IAAI;EACboC,KAAK,CAAC,mBAAmB,GAAGQ,KAAK,CAAC;EAClCzC,MAAM,GAAGyC,KAAK;AAChB;;AAEA;AACA;AACA;AACO,SAASC,QAAQA,CAAA,EAAU;EAAA,IAAAC,KAAA;EAChC,IAAI,CAACzC,IAAI,EAAE;EACX,IAAMuC,KAAK,GAAGzC,MAAM;EACpBA,MAAM,GAAGH,IAAI;EACboC,KAAK,CAAC,EAAAU,KAAA,GAAAzC,IAAI,cAAAyC,KAAA,gBAAAA,KAAA,GAAJA,KAAA,CAAMC,IAAI,cAAAD,KAAA,uBAAVA,KAAA,CAAYvB,SAAS,KAAI,EAAE,CAAC;EAClCpB,MAAM,GAAGyC,KAAK;AAChB;;AAEA;AACA;AACA;AACO,SAASI,YAAYA,CAAA,EAAI;EAC9B5C,UAAU,GAAG,IAAI;AACnB;;AAEA;AACA;AACA;AACA;AACO,SAAS6C,aAAaA,CAAA,EAAI;EAC/B7C,UAAU,GAAG,KAAK;AACpB;;AAEA;AACO,SAASwB,YAAYA,CAAElB,GAAW,EAAU;EACjD;EACA,OAAOA,GAAG,CACPwC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CACtBA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CACrBA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;AAC1B;;AAEA;AACO,SAASC,YAAYA,CAAE3C,MAAM,EAAEF,QAAQ,EAAE;EAC9CC,OAAO,GAAGC,MAAM;EAChBH,IAAI,GAAGC,QAAQ;AACjB","ignoreList":[]}
|
package/lib/login/login.js
CHANGED
|
@@ -30,7 +30,7 @@ var ns = _interopRequireWildcard(require("../ns.js"));
|
|
|
30
30
|
var _signup = require("../signup/signup.js");
|
|
31
31
|
var utils = _interopRequireWildcard(require("../utils"));
|
|
32
32
|
var widgets = _interopRequireWildcard(require("../widgets"));
|
|
33
|
-
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
|
|
33
|
+
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 _t1 in e) "default" !== _t1 && {}.hasOwnProperty.call(e, _t1) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t1)) && (i.get || i.set) ? o(f, _t1, i) : f[_t1] = e[_t1]); return f; })(e, t); }
|
|
34
34
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
35
35
|
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; } }
|
|
36
36
|
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; } /* eslint-disable camelcase */ /**
|
|
@@ -56,7 +56,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
56
56
|
* * Vocabulary: "load" loads a file if it exists;
|
|
57
57
|
* * 'Ensure" CREATES the file if it does not exist (if it can) and then loads it.
|
|
58
58
|
* @packageDocumentation
|
|
59
|
-
*/
|
|
59
|
+
*/
|
|
60
60
|
var store = _solidLogic.solidLogicSingleton.store;
|
|
61
61
|
var _solidLogicSingleton$ = _solidLogic.solidLogicSingleton.profile,
|
|
62
62
|
loadPreferences = _solidLogicSingleton$.loadPreferences,
|
|
@@ -121,7 +121,7 @@ function ensureLoadedPreferences(_x) {
|
|
|
121
121
|
// used to be logInLoadProfile
|
|
122
122
|
function _ensureLoadedPreferences() {
|
|
123
123
|
_ensureLoadedPreferences = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(context) {
|
|
124
|
-
var progressDisplay, preferencesFile, m2,
|
|
124
|
+
var progressDisplay, preferencesFile, m2, _t4;
|
|
125
125
|
return _regenerator["default"].wrap(function (_context4) {
|
|
126
126
|
while (1) switch (_context4.prev = _context4.next) {
|
|
127
127
|
case 0:
|
|
@@ -148,8 +148,8 @@ function _ensureLoadedPreferences() {
|
|
|
148
148
|
break;
|
|
149
149
|
case 4:
|
|
150
150
|
_context4.prev = 4;
|
|
151
|
-
|
|
152
|
-
if (!(
|
|
151
|
+
_t4 = _context4["catch"](1);
|
|
152
|
+
if (!(_t4 instanceof _solidLogic.UnauthorizedError)) {
|
|
153
153
|
_context4.next = 5;
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
@@ -158,7 +158,7 @@ function _ensureLoadedPreferences() {
|
|
|
158
158
|
_context4.next = 11;
|
|
159
159
|
break;
|
|
160
160
|
case 5:
|
|
161
|
-
if (!(
|
|
161
|
+
if (!(_t4 instanceof _solidLogic.CrossOriginForbiddenError)) {
|
|
162
162
|
_context4.next = 6;
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
@@ -166,7 +166,7 @@ function _ensureLoadedPreferences() {
|
|
|
166
166
|
context.preferencesFileError = m2;
|
|
167
167
|
return _context4.abrupt("return", context);
|
|
168
168
|
case 6:
|
|
169
|
-
if (!(
|
|
169
|
+
if (!(_t4 instanceof _solidLogic.SameOriginForbiddenError)) {
|
|
170
170
|
_context4.next = 7;
|
|
171
171
|
break;
|
|
172
172
|
}
|
|
@@ -174,7 +174,7 @@ function _ensureLoadedPreferences() {
|
|
|
174
174
|
debug.warn(m2);
|
|
175
175
|
return _context4.abrupt("return", context);
|
|
176
176
|
case 7:
|
|
177
|
-
if (!(
|
|
177
|
+
if (!(_t4 instanceof _solidLogic.NotEditableError)) {
|
|
178
178
|
_context4.next = 8;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
@@ -182,7 +182,7 @@ function _ensureLoadedPreferences() {
|
|
|
182
182
|
debug.warn(m2);
|
|
183
183
|
return _context4.abrupt("return", context);
|
|
184
184
|
case 8:
|
|
185
|
-
if (!(
|
|
185
|
+
if (!(_t4 instanceof _solidLogic.WebOperationError)) {
|
|
186
186
|
_context4.next = 9;
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
@@ -191,16 +191,16 @@ function _ensureLoadedPreferences() {
|
|
|
191
191
|
_context4.next = 11;
|
|
192
192
|
break;
|
|
193
193
|
case 9:
|
|
194
|
-
if (!(
|
|
194
|
+
if (!(_t4 instanceof _solidLogic.FetchError)) {
|
|
195
195
|
_context4.next = 10;
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
|
-
m2 = "Strange: Error ".concat(
|
|
198
|
+
m2 = "Strange: Error ".concat(_t4.status, " trying to read your preference file.").concat(_t4.message);
|
|
199
199
|
(0, _log.alert)(m2);
|
|
200
200
|
_context4.next = 11;
|
|
201
201
|
break;
|
|
202
202
|
case 10:
|
|
203
|
-
throw new Error("(via loadPrefs) ".concat(
|
|
203
|
+
throw new Error("(via loadPrefs) ".concat(_t4));
|
|
204
204
|
case 11:
|
|
205
205
|
return _context4.abrupt("return", context);
|
|
206
206
|
case 12:
|
|
@@ -221,7 +221,7 @@ function ensureLoadedProfile(_x2) {
|
|
|
221
221
|
*/
|
|
222
222
|
function _ensureLoadedProfile() {
|
|
223
223
|
_ensureLoadedProfile = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(context) {
|
|
224
|
-
var logInContext,
|
|
224
|
+
var logInContext, _t5;
|
|
225
225
|
return _regenerator["default"].wrap(function (_context5) {
|
|
226
226
|
while (1) switch (_context5.prev = _context5.next) {
|
|
227
227
|
case 0:
|
|
@@ -250,11 +250,11 @@ function _ensureLoadedProfile() {
|
|
|
250
250
|
break;
|
|
251
251
|
case 5:
|
|
252
252
|
_context5.prev = 5;
|
|
253
|
-
|
|
253
|
+
_t5 = _context5["catch"](1);
|
|
254
254
|
if (context.div && context.dom) {
|
|
255
|
-
context.div.appendChild(widgets.errorMessageBlock(context.dom,
|
|
255
|
+
context.div.appendChild(widgets.errorMessageBlock(context.dom, _t5.message));
|
|
256
256
|
}
|
|
257
|
-
throw new Error("Can't log in: ".concat(
|
|
257
|
+
throw new Error("Can't log in: ".concat(_t5));
|
|
258
258
|
case 6:
|
|
259
259
|
return _context5.abrupt("return", context);
|
|
260
260
|
case 7:
|
|
@@ -270,7 +270,7 @@ function findAppInstances(_x3, _x4, _x5) {
|
|
|
270
270
|
}
|
|
271
271
|
function _findAppInstances() {
|
|
272
272
|
_findAppInstances = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(context, theClass, isPublic) {
|
|
273
|
-
var items,
|
|
273
|
+
var items, _t6;
|
|
274
274
|
return _regenerator["default"].wrap(function (_context6) {
|
|
275
275
|
while (1) switch (_context6.prev = _context6.next) {
|
|
276
276
|
case 0:
|
|
@@ -281,13 +281,13 @@ function _findAppInstances() {
|
|
|
281
281
|
_context6.next = 1;
|
|
282
282
|
return getScopedAppInstances(theClass, context.me);
|
|
283
283
|
case 1:
|
|
284
|
-
|
|
284
|
+
_t6 = _context6.sent;
|
|
285
285
|
_context6.next = 3;
|
|
286
286
|
break;
|
|
287
287
|
case 2:
|
|
288
|
-
|
|
288
|
+
_t6 = [];
|
|
289
289
|
case 3:
|
|
290
|
-
items =
|
|
290
|
+
items = _t6;
|
|
291
291
|
if (isPublic === true) {
|
|
292
292
|
// old API - not recommended!
|
|
293
293
|
items = items.filter(function (item) {
|
|
@@ -323,7 +323,7 @@ function registrationControl(_x6, _x7, _x8) {
|
|
|
323
323
|
}
|
|
324
324
|
function _registrationControl() {
|
|
325
325
|
_registrationControl = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(context, instance, theClass) {
|
|
326
|
-
var registrationStatements, renderScopeCheckbox, dom, box, me, scopes, msg, tbody, form, _iterator, _step, scope, row,
|
|
326
|
+
var registrationStatements, renderScopeCheckbox, dom, box, me, scopes, msg, tbody, form, _iterator, _step, scope, row, _t7;
|
|
327
327
|
return _regenerator["default"].wrap(function (_context7) {
|
|
328
328
|
while (1) switch (_context7.prev = _context7.next) {
|
|
329
329
|
case 0:
|
|
@@ -366,13 +366,13 @@ function _registrationControl() {
|
|
|
366
366
|
break;
|
|
367
367
|
case 4:
|
|
368
368
|
_context7.prev = 4;
|
|
369
|
-
|
|
369
|
+
_t7 = _context7["catch"](2);
|
|
370
370
|
if (context.div && context.preferencesFileError) {
|
|
371
371
|
msg = '(Lists of stuff not available)';
|
|
372
372
|
context.div.appendChild(dom.createElement('p')).textContent = msg;
|
|
373
373
|
} else if (context.div) {
|
|
374
|
-
msg = "registrationControl: Type indexes not available: ".concat(
|
|
375
|
-
context.div.appendChild(widgets.errorMessageBlock(context.dom,
|
|
374
|
+
msg = "registrationControl: Type indexes not available: ".concat(_t7);
|
|
375
|
+
context.div.appendChild(widgets.errorMessageBlock(context.dom, _t7));
|
|
376
376
|
}
|
|
377
377
|
debug.log(msg);
|
|
378
378
|
return _context7.abrupt("return", context);
|
|
@@ -435,7 +435,7 @@ function registrationList(_x9, _x0) {
|
|
|
435
435
|
*/
|
|
436
436
|
function _registrationList() {
|
|
437
437
|
_registrationList = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
|
|
438
|
-
var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop,
|
|
438
|
+
var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop, _t8, _t9;
|
|
439
439
|
return _regenerator["default"].wrap(function (_context0) {
|
|
440
440
|
while (1) switch (_context0.prev = _context0.next) {
|
|
441
441
|
case 0:
|
|
@@ -534,8 +534,8 @@ function _registrationList() {
|
|
|
534
534
|
break;
|
|
535
535
|
case 10:
|
|
536
536
|
_context0.prev = 10;
|
|
537
|
-
|
|
538
|
-
_iterator3.e(
|
|
537
|
+
_t8 = _context0["catch"](6);
|
|
538
|
+
_iterator3.e(_t8);
|
|
539
539
|
case 11:
|
|
540
540
|
_context0.prev = 11;
|
|
541
541
|
_iterator3.f();
|
|
@@ -548,8 +548,8 @@ function _registrationList() {
|
|
|
548
548
|
break;
|
|
549
549
|
case 14:
|
|
550
550
|
_context0.prev = 14;
|
|
551
|
-
|
|
552
|
-
_iterator2.e(
|
|
551
|
+
_t9 = _context0["catch"](3);
|
|
552
|
+
_iterator2.e(_t9);
|
|
553
553
|
case 15:
|
|
554
554
|
_context0.prev = 15;
|
|
555
555
|
_iterator2.f();
|
|
@@ -943,7 +943,7 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
943
943
|
} // const status = ''
|
|
944
944
|
function _makeNewWorkspace() {
|
|
945
945
|
_makeNewWorkspace = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(_event) {
|
|
946
|
-
var row, cell, newBase, newWs, newData, _t3
|
|
946
|
+
var row, cell, newBase, newWs, newData, _t3;
|
|
947
947
|
return _regenerator["default"].wrap(function (_context3) {
|
|
948
948
|
while (1) switch (_context3.prev = _context3.next) {
|
|
949
949
|
case 0:
|
|
@@ -955,12 +955,9 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
955
955
|
_context3.next = 1;
|
|
956
956
|
return widgets.askName(dom, _solidLogic.solidLogicSingleton.store, cell, ns.solid('URL'), ns.space('Workspace'), 'Workspace');
|
|
957
957
|
case 1:
|
|
958
|
-
|
|
959
|
-
newBase = _t3(_t4);
|
|
958
|
+
newBase = _t3(_context3.sent);
|
|
960
959
|
newWs = widgets.newThing(context.preferencesFile);
|
|
961
|
-
newData = [(0, _rdflib.st)(context.me, ns.space('workspace'), newWs, context.preferencesFile),
|
|
962
|
-
// eslint-disable-next-line camelcase
|
|
963
|
-
(0, _rdflib.st)(newWs, ns.space('uriPrefix'), newBase, context.preferencesFile)];
|
|
960
|
+
newData = [(0, _rdflib.st)(context.me, ns.space('workspace'), newWs, context.preferencesFile), (0, _rdflib.st)(newWs, ns.space('uriPrefix'), newBase, context.preferencesFile)];
|
|
964
961
|
if (_solidLogic.solidLogicSingleton.store.updater) {
|
|
965
962
|
_context3.next = 2;
|
|
966
963
|
break;
|
|
@@ -1177,7 +1174,7 @@ function getUserRoles() {
|
|
|
1177
1174
|
*/
|
|
1178
1175
|
function _getUserRoles() {
|
|
1179
1176
|
_getUserRoles = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee0() {
|
|
1180
|
-
var _yield$ensureLoadedPr, me, preferencesFile, preferencesFileError,
|
|
1177
|
+
var _yield$ensureLoadedPr, me, preferencesFile, preferencesFileError, _t0;
|
|
1181
1178
|
return _regenerator["default"].wrap(function (_context1) {
|
|
1182
1179
|
while (1) switch (_context1.prev = _context1.next) {
|
|
1183
1180
|
case 0:
|
|
@@ -1198,8 +1195,8 @@ function _getUserRoles() {
|
|
|
1198
1195
|
return _context1.abrupt("return", _solidLogic.solidLogicSingleton.store.each(me, ns.rdf('type'), null, preferencesFile.doc()));
|
|
1199
1196
|
case 3:
|
|
1200
1197
|
_context1.prev = 3;
|
|
1201
|
-
|
|
1202
|
-
debug.warn('Unable to fetch your preferences - this was the error: ',
|
|
1198
|
+
_t0 = _context1["catch"](0);
|
|
1199
|
+
debug.warn('Unable to fetch your preferences - this was the error: ', _t0);
|
|
1203
1200
|
return _context1.abrupt("return", []);
|
|
1204
1201
|
case 4:
|
|
1205
1202
|
case "end":
|