mftsccs-browser 1.1.55-beta → 1.1.56-beta
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/dist/main.bundle.js
CHANGED
|
@@ -1579,7 +1579,6 @@ function GetConceptBulk(passedConcepts) {
|
|
|
1579
1579
|
let concept = result[i];
|
|
1580
1580
|
_DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.AddConcept(concept);
|
|
1581
1581
|
}
|
|
1582
|
-
console.log("this is the concept for the binary tree", _app__WEBPACK_IMPORTED_MODULE_4__.BinaryTree.root, result.length);
|
|
1583
1582
|
}
|
|
1584
1583
|
}
|
|
1585
1584
|
else {
|
|
@@ -1873,7 +1872,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1873
1872
|
/* harmony import */ var _Services_Security_GetRequestHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Services/Security/GetRequestHeader */ "./src/Services/Security/GetRequestHeader.ts");
|
|
1874
1873
|
/* harmony import */ var _Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Services/Common/ErrorPosting */ "./src/Services/Common/ErrorPosting.ts");
|
|
1875
1874
|
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
1876
|
-
/* harmony import */ var _DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../DataStructures/ConnectionBinaryTree/ConnectionBinaryTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.ts");
|
|
1877
1875
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1878
1876
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1879
1877
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -1889,7 +1887,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
1889
1887
|
|
|
1890
1888
|
|
|
1891
1889
|
|
|
1892
|
-
|
|
1893
1890
|
/**
|
|
1894
1891
|
* After fetching these connections it is saved in the local static ConnectionBinaryTree so it can be reused without being fetched
|
|
1895
1892
|
* @param connectionIds array of connection ids that need to fetched by the local system
|
|
@@ -1940,7 +1937,6 @@ function GetConnectionBulk() {
|
|
|
1940
1937
|
connectionList.push(connection);
|
|
1941
1938
|
_DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_0__.ConnectionData.AddConnection(connection);
|
|
1942
1939
|
}
|
|
1943
|
-
console.log("this is all the connections", connectionList.length, connectionList, _DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_6__.ConnectionBinaryTree.connectionroot);
|
|
1944
1940
|
}
|
|
1945
1941
|
}
|
|
1946
1942
|
else {
|
|
@@ -2265,9 +2261,7 @@ function LoginToBackend(email, password) {
|
|
|
2265
2261
|
});
|
|
2266
2262
|
if (response.ok) {
|
|
2267
2263
|
const result = yield response.json();
|
|
2268
|
-
console.log(result.data);
|
|
2269
2264
|
_DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken = result.data.token;
|
|
2270
|
-
console.log("this is the token", _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken);
|
|
2271
2265
|
return result;
|
|
2272
2266
|
}
|
|
2273
2267
|
else {
|
|
@@ -16417,8 +16411,10 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
16417
16411
|
}
|
|
16418
16412
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
16419
16413
|
let mymainData = compositionData[mainComposition[i]];
|
|
16420
|
-
mymainData
|
|
16421
|
-
|
|
16414
|
+
if (mymainData) {
|
|
16415
|
+
mymainData["id"] = mainComposition[i];
|
|
16416
|
+
mainData.push(mymainData);
|
|
16417
|
+
}
|
|
16422
16418
|
}
|
|
16423
16419
|
return mainData;
|
|
16424
16420
|
});
|
|
@@ -17300,7 +17296,9 @@ function FormatConceptsAndConnections(connections_1, compositionData_1, mainComp
|
|
|
17300
17296
|
}
|
|
17301
17297
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
17302
17298
|
let mymainData = compositionData[mainComposition[i]];
|
|
17303
|
-
|
|
17299
|
+
if (mymainData) {
|
|
17300
|
+
mainData.push(mymainData);
|
|
17301
|
+
}
|
|
17304
17302
|
}
|
|
17305
17303
|
return mainData;
|
|
17306
17304
|
});
|
|
@@ -17389,7 +17387,9 @@ function FormatFromConnectionsAlteredArray(connections_1, compositionData_1, con
|
|
|
17389
17387
|
}
|
|
17390
17388
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
17391
17389
|
let mymainData = compositionData[mainComposition[i]];
|
|
17392
|
-
|
|
17390
|
+
if (mymainData) {
|
|
17391
|
+
mainData.push(mymainData);
|
|
17392
|
+
}
|
|
17393
17393
|
}
|
|
17394
17394
|
return mainData;
|
|
17395
17395
|
});
|
|
@@ -20818,19 +20818,22 @@ function sendMessage(type, payload) {
|
|
|
20818
20818
|
return new Promise((resolve, reject) => {
|
|
20819
20819
|
// navigator.serviceWorker.ready
|
|
20820
20820
|
// .then((registration) => {
|
|
20821
|
-
if (navigator.serviceWorker.controller) {
|
|
20821
|
+
if ((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')) {
|
|
20822
20822
|
const responseHandler = (event) => {
|
|
20823
|
-
var _a, _b, _c;
|
|
20823
|
+
var _a, _b, _c, _d, _e, _f;
|
|
20824
20824
|
if (((_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.messageId) == messageId) { // Check if the message ID matches
|
|
20825
20825
|
if (!event.data.success) {
|
|
20826
|
-
if (event.data.status == 401) {
|
|
20827
|
-
reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_101__.HandleHttpError)(new Response('Unauthorized', { status: 401, statusText: (
|
|
20826
|
+
if (((_b = event === null || event === void 0 ? void 0 : event.data) === null || _b === void 0 ? void 0 : _b.status) == 401) {
|
|
20827
|
+
reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_101__.HandleHttpError)(new Response('Unauthorized', { status: 401, statusText: (_c = event === null || event === void 0 ? void 0 : event.data) === null || _c === void 0 ? void 0 : _c.statusText })));
|
|
20828
|
+
}
|
|
20829
|
+
else if (((_d = event === null || event === void 0 ? void 0 : event.data) === null || _d === void 0 ? void 0 : _d.status) == 500) {
|
|
20830
|
+
reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_101__.HandleInternalError)(new Response('Unauthorized', { status: 401, statusText: (_e = event === null || event === void 0 ? void 0 : event.data) === null || _e === void 0 ? void 0 : _e.statusText })));
|
|
20828
20831
|
}
|
|
20829
20832
|
else {
|
|
20830
20833
|
reject(`Failed to handle action ${type} ${JSON.stringify(payload)}`);
|
|
20831
20834
|
}
|
|
20832
20835
|
}
|
|
20833
|
-
if ((
|
|
20836
|
+
if ((_f = event.data) === null || _f === void 0 ? void 0 : _f.actions) {
|
|
20834
20837
|
payload.actions = JSON.parse(JSON.stringify(event.data.actions));
|
|
20835
20838
|
}
|
|
20836
20839
|
resolve(event.data);
|