mftsccs-browser 1.1.55-beta → 1.1.57-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 {
|
|
@@ -16384,6 +16378,10 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
16384
16378
|
let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
|
|
16385
16379
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
16386
16380
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
16381
|
+
let newType = typeof newData[key];
|
|
16382
|
+
if (newType == "string") {
|
|
16383
|
+
newData[key] = {};
|
|
16384
|
+
}
|
|
16387
16385
|
}
|
|
16388
16386
|
else {
|
|
16389
16387
|
newData = {};
|
|
@@ -16417,8 +16415,10 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
16417
16415
|
}
|
|
16418
16416
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
16419
16417
|
let mymainData = compositionData[mainComposition[i]];
|
|
16420
|
-
mymainData
|
|
16421
|
-
|
|
16418
|
+
if (mymainData) {
|
|
16419
|
+
mymainData["id"] = mainComposition[i];
|
|
16420
|
+
mainData.push(mymainData);
|
|
16421
|
+
}
|
|
16422
16422
|
}
|
|
16423
16423
|
return mainData;
|
|
16424
16424
|
});
|
|
@@ -16466,6 +16466,10 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16466
16466
|
}
|
|
16467
16467
|
if (connections[i].toTheConceptId in compositionData) {
|
|
16468
16468
|
newData = compositionData[connections[i].toTheConceptId];
|
|
16469
|
+
let newType = typeof newData[key];
|
|
16470
|
+
if (newType == "string") {
|
|
16471
|
+
newData[key] = {};
|
|
16472
|
+
}
|
|
16469
16473
|
}
|
|
16470
16474
|
else {
|
|
16471
16475
|
newData = {};
|
|
@@ -16512,6 +16516,10 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16512
16516
|
}
|
|
16513
16517
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
16514
16518
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
16519
|
+
let newType = typeof newData[key];
|
|
16520
|
+
if (newType == "string") {
|
|
16521
|
+
newData[key] = {};
|
|
16522
|
+
}
|
|
16515
16523
|
}
|
|
16516
16524
|
else {
|
|
16517
16525
|
newData = {};
|
|
@@ -17300,7 +17308,9 @@ function FormatConceptsAndConnections(connections_1, compositionData_1, mainComp
|
|
|
17300
17308
|
}
|
|
17301
17309
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
17302
17310
|
let mymainData = compositionData[mainComposition[i]];
|
|
17303
|
-
|
|
17311
|
+
if (mymainData) {
|
|
17312
|
+
mainData.push(mymainData);
|
|
17313
|
+
}
|
|
17304
17314
|
}
|
|
17305
17315
|
return mainData;
|
|
17306
17316
|
});
|
|
@@ -17389,7 +17399,9 @@ function FormatFromConnectionsAlteredArray(connections_1, compositionData_1, con
|
|
|
17389
17399
|
}
|
|
17390
17400
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
17391
17401
|
let mymainData = compositionData[mainComposition[i]];
|
|
17392
|
-
|
|
17402
|
+
if (mymainData) {
|
|
17403
|
+
mainData.push(mymainData);
|
|
17404
|
+
}
|
|
17393
17405
|
}
|
|
17394
17406
|
return mainData;
|
|
17395
17407
|
});
|
|
@@ -17648,6 +17660,7 @@ function formatConnectionsDataId(linkers, conceptIds, mainCompositionIds, revers
|
|
|
17648
17660
|
let newCompositionData = [];
|
|
17649
17661
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
|
|
17650
17662
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
|
|
17663
|
+
console.log("this is the composition data", compositionData);
|
|
17651
17664
|
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse);
|
|
17652
17665
|
return output;
|
|
17653
17666
|
});
|
|
@@ -20818,19 +20831,22 @@ function sendMessage(type, payload) {
|
|
|
20818
20831
|
return new Promise((resolve, reject) => {
|
|
20819
20832
|
// navigator.serviceWorker.ready
|
|
20820
20833
|
// .then((registration) => {
|
|
20821
|
-
if (navigator.serviceWorker.controller) {
|
|
20834
|
+
if ((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')) {
|
|
20822
20835
|
const responseHandler = (event) => {
|
|
20823
|
-
var _a, _b, _c;
|
|
20836
|
+
var _a, _b, _c, _d, _e, _f;
|
|
20824
20837
|
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
20838
|
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: (
|
|
20839
|
+
if (((_b = event === null || event === void 0 ? void 0 : event.data) === null || _b === void 0 ? void 0 : _b.status) == 401) {
|
|
20840
|
+
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 })));
|
|
20841
|
+
}
|
|
20842
|
+
else if (((_d = event === null || event === void 0 ? void 0 : event.data) === null || _d === void 0 ? void 0 : _d.status) == 500) {
|
|
20843
|
+
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
20844
|
}
|
|
20829
20845
|
else {
|
|
20830
20846
|
reject(`Failed to handle action ${type} ${JSON.stringify(payload)}`);
|
|
20831
20847
|
}
|
|
20832
20848
|
}
|
|
20833
|
-
if ((
|
|
20849
|
+
if ((_f = event.data) === null || _f === void 0 ? void 0 : _f.actions) {
|
|
20834
20850
|
payload.actions = JSON.parse(JSON.stringify(event.data.actions));
|
|
20835
20851
|
}
|
|
20836
20852
|
resolve(event.data);
|