@intuitionrobotics/thunderstorm 0.45.3 → 0.46.0
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/app-backend/api/v1/utils/version/_assert.js +0 -20
- package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
- package/app-backend/api/v1/utils/version/assert.js +0 -20
- package/app-backend/api/v1/utils/version/assert.js.map +1 -1
- package/app-backend/core/BaseStorm.d.ts +1 -1
- package/app-backend/core/BaseStorm.js +2 -22
- package/app-backend/core/BaseStorm.js.map +1 -1
- package/app-backend/core/Storm.js +9 -27
- package/app-backend/core/Storm.js.map +1 -1
- package/app-backend/exceptions.d.ts +2 -2
- package/app-backend/exceptions.js +2 -22
- package/app-backend/exceptions.js.map +1 -1
- package/app-backend/modules/CleanupScheduler.js +5 -4
- package/app-backend/modules/CleanupScheduler.js.map +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.d.ts +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.js +23 -9
- package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
- package/app-backend/modules/ForceUpgrade.d.ts +1 -1
- package/app-backend/modules/ForceUpgrade.js +8 -26
- package/app-backend/modules/ForceUpgrade.js.map +1 -1
- package/app-backend/modules/SlackModule.d.ts +2 -4
- package/app-backend/modules/SlackModule.js +9 -30
- package/app-backend/modules/SlackModule.js.map +1 -1
- package/app-backend/modules/http/AxiosHttpModule.js +3 -23
- package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxy.d.ts +2 -1
- package/app-backend/modules/proxy/RemoteProxy.js +11 -30
- package/app-backend/modules/proxy/RemoteProxy.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxyCaller.d.ts +1 -1
- package/app-backend/modules/proxy/RemoteProxyCaller.js +11 -29
- package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
- package/app-backend/modules/server/HttpServer.d.ts +2 -1
- package/app-backend/modules/server/HttpServer.js +9 -31
- package/app-backend/modules/server/HttpServer.js.map +1 -1
- package/app-backend/modules/server/server-api.d.ts +3 -1
- package/app-backend/modules/server/server-api.js +27 -25
- package/app-backend/modules/server/server-api.js.map +1 -1
- package/app-backend/modules/server/server-errors.d.ts +1 -1
- package/app-backend/modules/server/server-errors.js +7 -26
- package/app-backend/modules/server/server-errors.js.map +1 -1
- package/app-backend/utils/LogClient_File.d.ts +2 -2
- package/app-backend/utils/LogClient_File.js +12 -30
- package/app-backend/utils/LogClient_File.js.map +1 -1
- package/app-backend/utils/file.js +0 -20
- package/app-backend/utils/file.js.map +1 -1
- package/app-backend/utils/promisify-request.js +2 -22
- package/app-backend/utils/promisify-request.js.map +1 -1
- package/app-backend/utils/to-be-removed.js +0 -20
- package/app-backend/utils/to-be-removed.js.map +1 -1
- package/app-backend/utils/types.d.ts +1 -1
- package/app-backend/utils/types.js +2 -22
- package/app-backend/utils/types.js.map +1 -1
- package/app-frontend/components/ActionButton.js +0 -20
- package/app-frontend/components/ActionButton.js.map +1 -1
- package/app-frontend/components/DropDown.js +5 -24
- package/app-frontend/components/DropDown.js.map +1 -1
- package/app-frontend/components/FilterInput.js +4 -23
- package/app-frontend/components/FilterInput.js.map +1 -1
- package/app-frontend/components/GenericSelect.js +0 -20
- package/app-frontend/components/GenericSelect.js.map +1 -1
- package/app-frontend/components/Overlay.js +0 -20
- package/app-frontend/components/Overlay.js.map +1 -1
- package/app-frontend/components/TS_Input.js +3 -23
- package/app-frontend/components/TS_Input.js.map +1 -1
- package/app-frontend/components/TS_Table.d.ts +1 -1
- package/app-frontend/components/TS_Table.js +0 -20
- package/app-frontend/components/TS_Table.js.map +1 -1
- package/app-frontend/components/TS_TextArea.js +0 -20
- package/app-frontend/components/TS_TextArea.js.map +1 -1
- package/app-frontend/components/adapter/Adapter.js +6 -26
- package/app-frontend/components/adapter/Adapter.js.map +1 -1
- package/app-frontend/components/adapter/BaseRenderer.js +0 -20
- package/app-frontend/components/adapter/BaseRenderer.js.map +1 -1
- package/app-frontend/components/checkbox/TS_Checkbox.d.ts +2 -2
- package/app-frontend/components/checkbox/TS_Checkbox.js +2 -1
- package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
- package/app-frontend/components/checkbox/TS_CheckboxField.js +0 -18
- package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
- package/app-frontend/components/form/Form.d.ts +2 -1
- package/app-frontend/components/form/Form.js +2 -22
- package/app-frontend/components/form/Form.js.map +1 -1
- package/app-frontend/components/form/types.d.ts +2 -1
- package/app-frontend/components/form/types.js +0 -20
- package/app-frontend/components/form/types.js.map +1 -1
- package/app-frontend/components/playground/Example_NewProps.js +0 -20
- package/app-frontend/components/playground/Example_NewProps.js.map +1 -1
- package/app-frontend/components/playground/Playground.js +1 -21
- package/app-frontend/components/playground/Playground.js.map +1 -1
- package/app-frontend/components/tree/MenuComponent.js +2 -22
- package/app-frontend/components/tree/MenuComponent.js.map +1 -1
- package/app-frontend/components/tree/MultiTypeAdaptor.js +2 -22
- package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +0 -20
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
- package/app-frontend/components/tree/Tree.js +3 -23
- package/app-frontend/components/tree/Tree.js.map +1 -1
- package/app-frontend/components/tree/types.js +0 -20
- package/app-frontend/components/tree/types.js.map +1 -1
- package/app-frontend/components/treeicons.js.map +1 -1
- package/app-frontend/components/types.js +0 -20
- package/app-frontend/components/types.js.map +1 -1
- package/app-frontend/core/AbstractThunder.d.ts +0 -3
- package/app-frontend/core/AbstractThunder.js +0 -32
- package/app-frontend/core/AbstractThunder.js.map +1 -1
- package/app-frontend/core/AppPage.js +0 -20
- package/app-frontend/core/AppPage.js.map +1 -1
- package/app-frontend/core/AppWrapper.js +2 -23
- package/app-frontend/core/AppWrapper.js.map +1 -1
- package/app-frontend/core/BaseComponent.d.ts +2 -4
- package/app-frontend/core/BaseComponent.js +18 -41
- package/app-frontend/core/BaseComponent.js.map +1 -1
- package/app-frontend/core/SimpleScriptInjector.js +2 -22
- package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
- package/app-frontend/core/Thunder.js +3 -22
- package/app-frontend/core/Thunder.js.map +1 -1
- package/app-frontend/core/thunder-dispatcher.d.ts +2 -1
- package/app-frontend/core/thunder-dispatcher.js +13 -23
- package/app-frontend/core/thunder-dispatcher.js.map +1 -1
- package/app-frontend/modules/ConnectivityModule.d.ts +1 -1
- package/app-frontend/modules/ConnectivityModule.js +2 -2
- package/app-frontend/modules/ConnectivityModule.js.map +1 -1
- package/app-frontend/modules/ForceUpgrade.d.ts +1 -1
- package/app-frontend/modules/ForceUpgrade.js +4 -23
- package/app-frontend/modules/ForceUpgrade.js.map +1 -1
- package/app-frontend/modules/HistoryModule.d.ts +3 -5
- package/app-frontend/modules/HistoryModule.js +9 -28
- package/app-frontend/modules/HistoryModule.js.map +1 -1
- package/app-frontend/modules/ResourcesModule.d.ts +1 -4
- package/app-frontend/modules/ResourcesModule.js +2 -25
- package/app-frontend/modules/ResourcesModule.js.map +1 -1
- package/app-frontend/modules/StorageModule.d.ts +1 -4
- package/app-frontend/modules/StorageModule.js +4 -26
- package/app-frontend/modules/StorageModule.js.map +1 -1
- package/app-frontend/modules/ThunderstormModule.d.ts +1 -1
- package/app-frontend/modules/ThunderstormModule.js +3 -3
- package/app-frontend/modules/ThunderstormModule.js.map +1 -1
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js +0 -20
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js.map +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.d.ts +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.js +4 -25
- package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
- package/app-frontend/modules/dialog/Dialog.js +0 -22
- package/app-frontend/modules/dialog/Dialog.js.map +1 -1
- package/app-frontend/modules/dialog/DialogModule.d.ts +1 -1
- package/app-frontend/modules/dialog/DialogModule.js +2 -22
- package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
- package/app-frontend/modules/http/HttpClient.js +0 -20
- package/app-frontend/modules/http/HttpClient.js.map +1 -1
- package/app-frontend/modules/http/XhrHttpModule.js +9 -10
- package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
- package/app-frontend/modules/locale/LocaleModule.d.ts +1 -4
- package/app-frontend/modules/locale/LocaleModule.js +5 -24
- package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
- package/app-frontend/modules/locale/types.d.ts +0 -3
- package/app-frontend/modules/locale/types.js +0 -20
- package/app-frontend/modules/locale/types.js.map +1 -1
- package/app-frontend/modules/menu/MenuAndButton.js +2 -2
- package/app-frontend/modules/menu/MenuAndButton.js.map +1 -1
- package/app-frontend/modules/menu/MenuModule.d.ts +1 -1
- package/app-frontend/modules/menu/MenuModule.js +4 -3
- package/app-frontend/modules/menu/MenuModule.js.map +1 -1
- package/app-frontend/modules/menu/PopupMenu.js +2 -2
- package/app-frontend/modules/menu/PopupMenu.js.map +1 -1
- package/app-frontend/modules/routing/RoutingModule.d.ts +1 -1
- package/app-frontend/modules/routing/RoutingModule.js +6 -25
- package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
- package/app-frontend/modules/routing/route.js +0 -20
- package/app-frontend/modules/routing/route.js.map +1 -1
- package/app-frontend/modules/toaster/BaseToaster.js +0 -22
- package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
- package/app-frontend/modules/toaster/Toaster.js +0 -20
- package/app-frontend/modules/toaster/Toaster.js.map +1 -1
- package/app-frontend/modules/toaster/ToasterModule.d.ts +1 -1
- package/app-frontend/modules/toaster/ToasterModule.js +5 -25
- package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
- package/app-frontend/modules/tooltip/Tooltip.js +2 -22
- package/app-frontend/modules/tooltip/Tooltip.js.map +1 -1
- package/app-frontend/modules/tooltip/TooltipModule.d.ts +1 -1
- package/app-frontend/modules/tooltip/TooltipModule.js +4 -23
- package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
- package/app-frontend/tools/KeyboardListener.js +0 -17
- package/app-frontend/tools/KeyboardListener.js.map +1 -1
- package/app-frontend/tools/Stylable.js +0 -20
- package/app-frontend/tools/Stylable.js.map +1 -1
- package/app-frontend/types/renderer-map.js +0 -20
- package/app-frontend/types/renderer-map.js.map +1 -1
- package/app-frontend/utils/tools.js +3 -23
- package/app-frontend/utils/tools.js.map +1 -1
- package/index.d.ts +0 -6
- package/index.js +0 -37
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/shared/BaseHttpModule.d.ts +1 -1
- package/shared/BaseHttpModule.js +6 -5
- package/shared/BaseHttpModule.js.map +1 -1
- package/shared/BaseHttpRequest.js +9 -27
- package/shared/BaseHttpRequest.js.map +1 -1
- package/shared/consts.js +0 -20
- package/shared/consts.js.map +1 -1
- package/shared/force-upgrade.js +0 -20
- package/shared/force-upgrade.js.map +1 -1
- package/shared/request-types.js +0 -20
- package/shared/request-types.js.map +1 -1
- package/shared/types.js +0 -20
- package/shared/types.js.map +1 -1
- package/test-backend/StormTester.js +6 -26
- package/test-backend/StormTester.js.map +1 -1
- package/test-frontend/ThunderTester.js +0 -20
- package/test-frontend/ThunderTester.js.map +1 -1
- package/app-backend/modules/_imports.d.ts +0 -10
- package/app-backend/modules/_imports.js +0 -43
- package/app-backend/modules/_imports.js.map +0 -1
- package/app-frontend/components/GenericTabs.d.ts +0 -4
- package/app-frontend/components/GenericTabs.js +0 -11
- package/app-frontend/components/GenericTabs.js.map +0 -1
- package/backend-test.d.ts +0 -1
- package/backend-test.js +0 -34
- package/backend-test.js.map +0 -1
- package/backend.d.ts +0 -17
- package/backend.js +0 -50
- package/backend.js.map +0 -1
- package/frontend.d.ts +0 -55
- package/frontend.js +0 -88
- package/frontend.js.map +0 -1
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.Thunder = exports.SuccessHandler_Dispatch = exports.ErrorHandler_Dispatch = exports.SuccessHandler_Toast = exports.ErrorHandler_Toast = void 0;
|
|
24
4
|
const AppWrapper_1 = require("./AppWrapper");
|
|
25
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
26
5
|
const XhrHttpModule_1 = require("../modules/http/XhrHttpModule");
|
|
27
6
|
const ToasterModule_1 = require("../modules/toaster/ToasterModule");
|
|
28
7
|
const RoutingModule_1 = require("../modules/routing/RoutingModule");
|
|
@@ -33,6 +12,8 @@ const AbstractThunder_1 = require("./AbstractThunder");
|
|
|
33
12
|
const ThunderstormModule_1 = require("../modules/ThunderstormModule");
|
|
34
13
|
const DialogModule_1 = require("../modules/dialog/DialogModule");
|
|
35
14
|
const thunder_dispatcher_1 = require("./thunder-dispatcher");
|
|
15
|
+
const LogClient_Browser_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_Browser");
|
|
16
|
+
const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
|
|
36
17
|
const ErrorHandler_Toast = (request, resError) => {
|
|
37
18
|
const errorMessage = request.errorMessage || (resError === null || resError === void 0 ? void 0 : resError.debugMessage);
|
|
38
19
|
return errorMessage && ToasterModule_1.ToastModule.toastError(errorMessage);
|
|
@@ -66,7 +47,7 @@ class Thunder extends AbstractThunder_1.AbstractThunder {
|
|
|
66
47
|
return Thunder.instance;
|
|
67
48
|
}
|
|
68
49
|
init() {
|
|
69
|
-
|
|
50
|
+
BeLogged_1.BeLogged.addClient(LogClient_Browser_1.LogClient_Browser);
|
|
70
51
|
super.init();
|
|
71
52
|
XhrHttpModule_1.XhrHttpModule.setErrorHandlers([exports.ErrorHandler_Toast, exports.ErrorHandler_Dispatch]);
|
|
72
53
|
XhrHttpModule_1.XhrHttpModule.setSuccessHandlers([exports.SuccessHandler_Toast, exports.SuccessHandler_Dispatch]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thunder.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/Thunder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Thunder.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/Thunder.ts"],"names":[],"mappings":";;;AACA,6CAAqD;AACrD,iEAA4D;AAC5D,oEAA6D;AAC7D,oEAA+D;AAC/D,4DAA8D;AAC9D,4DAAuD;AACvD,gEAA2D;AAE3D,uDAA6E;AAC7E,sEAAiE;AACjE,iEAA4D;AAE5D,6DAAuD;AAEvD,kGAA+F;AAC/F,gFAA6E;AAEtE,MAAM,kBAAkB,GAA6B,CAAC,OAAO,EAAE,QAAS,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,KAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,CAAA,CAAC;IACpE,OAAO,YAAY,IAAI,2BAAW,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AAChE,CAAC,CAAC;AAHW,QAAA,kBAAkB,sBAG7B;AACK,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AClF,6BAAa,CAAC,yBAAyB,CAAC,CAAC,OAA6B,EAAE,EAAE;YACtE,IAAI,OAAO,CAAC,SAAS,EAAE,KAAK,GAAG;gBAC3B,OAAO,KAAK,CAAC;YAEjB,MAAM,yBAAyB,GAAG,IAAI,sCAAiB,CAAyD,2BAA2B,CAAC,CAAC;YAC7I,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACzC,yBAAyB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;IAMM,UAAU,CAAC,OAAwC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AA9CD,0BA8CC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Dispatcher } from "@intuitionrobotics/ts-common/core/dispatcher";
|
|
2
2
|
import { FunctionKeys, ReturnPromiseType } from "@intuitionrobotics/ts-common/utils/types";
|
|
3
|
+
export declare const addUIListener: (listener: any) => void;
|
|
4
|
+
export declare const removeUIListener: (listener: any) => void;
|
|
3
5
|
export declare class ThunderDispatcher<T extends object, K extends FunctionKeys<T>> extends Dispatcher<T, K> {
|
|
4
|
-
static readonly listenersResolver: () => any[];
|
|
5
6
|
constructor(method: K);
|
|
6
7
|
dispatchUI(p: Parameters<T[K]>): ReturnPromiseType<T[K]>[];
|
|
7
8
|
dispatchUIAsync(p: Parameters<T[K]>): Promise<ReturnPromiseType<T[K]>[]>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
23
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -29,20 +9,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29
9
|
});
|
|
30
10
|
};
|
|
31
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.ThunderDispatcher = void 0;
|
|
12
|
+
exports.ThunderDispatcher = exports.removeUIListener = exports.addUIListener = void 0;
|
|
33
13
|
const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
|
|
14
|
+
const array_tools_1 = require("@intuitionrobotics/ts-common/utils/array-tools");
|
|
15
|
+
const listeners = [];
|
|
16
|
+
const addUIListener = (listener) => {
|
|
17
|
+
console.log(`Register UI listener: ${listener}`);
|
|
18
|
+
listeners.push(listener);
|
|
19
|
+
};
|
|
20
|
+
exports.addUIListener = addUIListener;
|
|
21
|
+
const removeUIListener = (listener) => {
|
|
22
|
+
console.log(`Unregister UI listener: ${listener}`);
|
|
23
|
+
array_tools_1.removeItemFromArray(listeners, listener);
|
|
24
|
+
};
|
|
25
|
+
exports.removeUIListener = removeUIListener;
|
|
34
26
|
class ThunderDispatcher extends dispatcher_1.Dispatcher {
|
|
35
27
|
constructor(method) {
|
|
36
28
|
super(method);
|
|
37
29
|
}
|
|
38
30
|
dispatchUI(p) {
|
|
39
|
-
const listeners = ThunderDispatcher.listenersResolver();
|
|
40
31
|
// @ts-ignore
|
|
41
32
|
return listeners.filter(this.filter).map((listener) => listener[this.method](...p));
|
|
42
33
|
}
|
|
43
34
|
dispatchUIAsync(p) {
|
|
44
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const listeners = ThunderDispatcher.listenersResolver();
|
|
46
36
|
return Promise.all(listeners.filter(this.filter).map((listener) => __awaiter(this, void 0, void 0, function* () {
|
|
47
37
|
const params = p;
|
|
48
38
|
return listener[this.method](...params);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thunder-dispatcher.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/thunder-dispatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thunder-dispatcher.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/thunder-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AAKxE,gFAAmF;AAEnF,MAAM,SAAS,GAAU,EAAE,CAAC;AAErB,MAAM,aAAa,GAAG,CAAC,QAAa,EAAS,EAAE;IACrD,OAAO,CAAC,GAAG,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAC;IACjD,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC,CAAA;AAHY,QAAA,aAAa,iBAGzB;AAEM,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAAS,EAAE;IACxD,OAAO,CAAC,GAAG,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IACnD,iCAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAC1C,CAAC,CAAA;AAHY,QAAA,gBAAgB,oBAG5B;AAED,MAAa,iBACZ,SAAQ,uBAAgB;IAExB,YAAY,MAAS;QACpB,KAAK,CAAC,MAAM,CAAC,CAAC;IACf,CAAC;IAEM,UAAU,CAAC,CAAmB;QACpC,aAAa;QACb,OAAO,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,QAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IAEY,eAAe,CAAC,CAAmB;;YAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAO,QAAW,EAAE,EAAE;gBAC1E,MAAM,MAAM,GAAQ,CAAC,CAAC;gBACtB,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACzC,CAAC,CAAA,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACD;AAlBD,8CAkBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectivityModule = void 0;
|
|
4
|
-
const
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
5
|
const thunder_dispatcher_1 = require("../core/thunder-dispatcher");
|
|
6
|
-
class ConnectivityModule_Class extends
|
|
6
|
+
class ConnectivityModule_Class extends module_1.Module {
|
|
7
7
|
constructor() {
|
|
8
8
|
super("ConnectivityModule");
|
|
9
9
|
this.dispatch_onConnectivityChange = new thunder_dispatcher_1.ThunderDispatcher('__onConnectivityChange');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectivityModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ConnectivityModule.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ConnectivityModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ConnectivityModule.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAChE,mEAA6D;AAM7D,MAAM,wBACF,SAAQ,eAAM;IAKd;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAHxB,kCAA6B,GAAG,IAAI,sCAAiB,CAAiD,wBAAwB,CAAC,CAAC;QAYxI,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;QAEnC,2BAAsB,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC9C,IAAI,CAAC,6BAA6B,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACtD,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;QACrD,CAAC,CAAC;QAEM,0BAAqB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QAhBnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAES,IAAI;QACV,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAC/D,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACpE,CAAC;CAWJ;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
2
2
|
import { UpgradeRequired } from "../../shared/force-upgrade";
|
|
3
3
|
export declare const RequestKey_AssertAppVersion = "assert-app-version";
|
|
4
4
|
declare type Config = {
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.ForceUpgrade = exports.RequestKey_AssertAppVersion = void 0;
|
|
24
|
-
const
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
25
5
|
const XhrHttpModule_1 = require("./http/XhrHttpModule");
|
|
26
6
|
const force_upgrade_1 = require("../../shared/force-upgrade");
|
|
27
7
|
const types_1 = require("../../shared/types");
|
|
28
8
|
const tools_1 = require("../utils/tools");
|
|
9
|
+
const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
|
|
29
10
|
exports.RequestKey_AssertAppVersion = "assert-app-version";
|
|
30
|
-
const dispatch_onUpgradeRequired = new
|
|
31
|
-
class ForceUpgrade_Class extends
|
|
11
|
+
const dispatch_onUpgradeRequired = new dispatcher_1.Dispatcher("__onUpgradeRequired");
|
|
12
|
+
class ForceUpgrade_Class extends module_1.Module {
|
|
32
13
|
constructor() {
|
|
33
14
|
super("ForceUpgrade");
|
|
34
15
|
this.compareVersion = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ForceUpgrade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ForceUpgrade.ts"],"names":[],"mappings":";;;AACA,qEAAgE;AAChE,wDAAmD;AACnD,8DAKoC;AACpC,8CAA8C;AAC9C,0CAA2C;AAC3C,6EAAwE;AAE3D,QAAA,2BAA2B,GAAG,oBAAoB,CAAC;AAShE,MAAM,0BAA0B,GAAG,IAAI,uBAAU,CAA2C,qBAAqB,CAAC,CAAC;AAEnH,MAAM,kBACF,SAAQ,eAAc;IAEtB;QACI,KAAK,CAAC,cAAc,CAAC,CAAC;QAQ1B,mBAAc,GAAG,GAAG,EAAE;YAClB,6BAAa;iBACR,aAAa,CAA6B,kBAAU,CAAC,GAAG,EAAE,mCAA2B,CAAC;iBACtF,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;iBAC5C,OAAO,CAAC,CAAC,QAAyB,EAAE,EAAE;gBACnC,0BAA0B,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;QACX,CAAC,CAAC;IAdF,CAAC;IAES,IAAI;QACV,6BAAa,CAAC,gBAAgB,CAAC,yCAAyB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;QACvF,6BAAa,CAAC,gBAAgB,CAAC,sCAAsB,EAAE,GAAG,mBAAW,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;CAUJ;AAEY,QAAA,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* Created by tacb0ss on 27/07/2018.
|
|
3
|
-
*/
|
|
4
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
5
2
|
import { History, LocationDescriptorObject } from "history";
|
|
6
|
-
import { QueryParams } from "../../
|
|
3
|
+
import { QueryParams } from "../../shared/types";
|
|
7
4
|
export declare class BrowserHistoryModule_Class extends Module {
|
|
8
5
|
private readonly history;
|
|
9
6
|
constructor();
|
|
@@ -12,6 +9,7 @@ export declare class BrowserHistoryModule_Class extends Module {
|
|
|
12
9
|
private composeQuery;
|
|
13
10
|
private getEncodedQueryParams;
|
|
14
11
|
getQueryParams(): QueryParams;
|
|
12
|
+
getQueryParam(k: string): string | undefined;
|
|
15
13
|
setQuery(queryParams: QueryParams): void;
|
|
16
14
|
addQueryParam(key: string, value: string): void;
|
|
17
15
|
removeQueryParam(key: string): void;
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.BrowserHistoryModule = exports.BrowserHistoryModule_Class = void 0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
|
+
const object_tools_1 = require("@intuitionrobotics/ts-common/utils/object-tools");
|
|
28
6
|
const history_1 = require("history");
|
|
29
|
-
class BrowserHistoryModule_Class extends
|
|
7
|
+
class BrowserHistoryModule_Class extends module_1.Module {
|
|
30
8
|
constructor() {
|
|
31
9
|
super("BrowserHistoryModule");
|
|
32
10
|
this.getEncodedQueryParams = () => {
|
|
@@ -61,14 +39,14 @@ class BrowserHistoryModule_Class extends ts_common_1.Module {
|
|
|
61
39
|
this.history.replace(push);
|
|
62
40
|
}
|
|
63
41
|
composeQuery(queryParams) {
|
|
64
|
-
const queryAsString =
|
|
42
|
+
const queryAsString = object_tools_1._keys(queryParams).map((key) => `${key}=${queryParams[key]}`).join("&");
|
|
65
43
|
if (queryAsString.length === 0)
|
|
66
44
|
return undefined;
|
|
67
45
|
return queryAsString;
|
|
68
46
|
}
|
|
69
47
|
getQueryParams() {
|
|
70
48
|
const params = this.getEncodedQueryParams();
|
|
71
|
-
|
|
49
|
+
object_tools_1._keys(params).forEach(key => {
|
|
72
50
|
const value = params[key];
|
|
73
51
|
if (!value) {
|
|
74
52
|
delete params[key];
|
|
@@ -78,9 +56,12 @@ class BrowserHistoryModule_Class extends ts_common_1.Module {
|
|
|
78
56
|
});
|
|
79
57
|
return params;
|
|
80
58
|
}
|
|
59
|
+
getQueryParam(k) {
|
|
60
|
+
return this.getQueryParams()[k];
|
|
61
|
+
}
|
|
81
62
|
setQuery(queryParams) {
|
|
82
63
|
const encodedQueryParams = Object.assign({}, queryParams);
|
|
83
|
-
|
|
64
|
+
object_tools_1._keys(encodedQueryParams).forEach(key => {
|
|
84
65
|
const value = encodedQueryParams[key];
|
|
85
66
|
if (!value) {
|
|
86
67
|
delete encodedQueryParams[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/HistoryModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/HistoryModule.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAChE,kFAAsE;AACtE,qCAAgF;AAGhF,MAAa,0BACT,SAAQ,eAAM;IAGd;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAoB1B,0BAAqB,GAAG,GAAgB,EAAE;YAC9C,MAAM,WAAW,GAAgB,EAAE,CAAC;YACpC,IAAI,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC3C,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;gBAC5C,OAAO,EAAE,CAAC;YAEd,OAAO,IAAI,EAAE;gBACT,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;oBAC7B,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;qBAC1C,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC;oBACnC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;oBAE3C,MAAM;aACb;YAED,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACrB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC/B,OAAO,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;YAC5C,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBACvB,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK;oBACxB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KA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AC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;YACzF,MAAM,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC;SAC3E,CAAC;IACN,CAAC;IAEO,iBAAiB,CAAC,kBAA+B;QACrD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,CAAC;QAEvE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED,SAAS;QACL,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;IAClC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AAjID,gEAiIC;AAEY,QAAA,oBAAoB,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Created by tacb0ss on 27/07/2018.
|
|
3
|
-
*/
|
|
4
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
5
2
|
export declare type ResourceId = string;
|
|
6
3
|
export declare class ResourcesModule_Class extends Module {
|
|
7
4
|
private readonly relativePath;
|
|
@@ -1,31 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.ResourcesModule = exports.ResourcesModule_Class = void 0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
28
|
-
class ResourcesModule_Class extends ts_common_1.Module {
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
|
+
class ResourcesModule_Class extends module_1.Module {
|
|
29
6
|
constructor() {
|
|
30
7
|
super("ResourcesModule");
|
|
31
8
|
this.relativePath = "../../res/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourcesModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ResourcesModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResourcesModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ResourcesModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAIlE,MAAa,qBACZ,SAAQ,eAAM;IAKd;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,GAAG,IAAI,CAAC,YAAY,SAAS,CAAC;IACzD,CAAC;IAED,IAAI;IACJ,CAAC;IAEM,WAAW,CAAC,YAAwB;QAC1C,OAAO,GAAG,IAAI,CAAC,kBAAkB,GAAG,YAAY,EAAE,CAAA;IACnD,CAAC;CACD;AAlBD,sDAkBC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.StorageKey = exports.StorageModule = exports.StorageModule_Class = void 0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
|
+
const merge_tools_1 = require("@intuitionrobotics/ts-common/utils/merge-tools");
|
|
28
6
|
const thunder_dispatcher_1 = require("../core/thunder-dispatcher");
|
|
29
|
-
class StorageModule_Class extends
|
|
7
|
+
class StorageModule_Class extends module_1.Module {
|
|
30
8
|
constructor() {
|
|
31
9
|
super("StorageModule");
|
|
32
10
|
this.cache = {};
|
|
@@ -104,7 +82,7 @@ class StorageKey {
|
|
|
104
82
|
}
|
|
105
83
|
patch(value) {
|
|
106
84
|
const previousValue = this.get();
|
|
107
|
-
const mergedValue =
|
|
85
|
+
const mergedValue = merge_tools_1.merge(previousValue, value);
|
|
108
86
|
this.set(mergedValue);
|
|
109
87
|
return mergedValue;
|
|
110
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/StorageModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StorageModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/StorageModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,gFAAuE;AACvE,mEAA6D;AAK7D,MAAa,mBACZ,SAAQ,eAAM;IAGd;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;QAHhB,UAAK,GAA8C,EAAE,CAAC;QAUtD,uBAAkB,GAAG,CAAC,CAAe,EAAE,EAAE;YAChD,MAAM,UAAU,GAAG,IAAI,sCAAiB,CAAyC,qBAAqB,CAAC,CAAC;YACxG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3B,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChC,CAAC,CAAC;QAEF,eAAU,GAAG,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;IAZ3E,CAAC;IAES,IAAI;QACb,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAUD,GAAG,CAAC,GAAW,EAAE,KAA+B,EAAE,UAAmB,IAAI;QACxE,IAAI,CAAC,KAAK;YACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAEzB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,UAAU,CAAC,OAAO,C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E,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM;QACL,qBAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,qBAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;CACD;AAlCD,gCAkCC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThunderstormModule = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ThunderstormModule_Class extends
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
|
+
class ThunderstormModule_Class extends module_1.Module {
|
|
6
6
|
constructor() {
|
|
7
7
|
super("ThunderstormModule");
|
|
8
|
-
this.
|
|
8
|
+
this.setConfig({ appName: "Thunderstorm-WebApp" });
|
|
9
9
|
}
|
|
10
10
|
init() {
|
|
11
11
|
this.setAppName(this.config.appName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderstormModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ThunderstormModule.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ThunderstormModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ThunderstormModule.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAOlE,MAAM,wBACL,SAAQ,eAAc;IAEtB;QACC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAC,CAAC,CAAC;IAClD,CAAC;IAED,IAAI;QACH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,UAAU,CAAC,OAAe;QACzB,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,mBAAmB,CAAC,UAAkB;QACrC,IAAI,QAAQ,GAA2B,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC/F,IAAI,CAAC,QAAQ,EAAE;YACd,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC1C,QAAQ,CAAC,IAAI,GAAG,aAAa,CAAC;YAC9B,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SAC/D;QAED,QAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,CAAC;CACD;AAEY,QAAA,kBAAkB,GAAG,IAAI,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.ReactEntryComponentInjector = void 0;
|
|
24
4
|
const React = require("react");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactEntryComponentInjector.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/ReactEntryComponentInjector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReactEntryComponentInjector.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/ReactEntryComponentInjector.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,qFAA6E;AAC7E,4DAAuD;AAevD,MAAa,2BACZ,SAAQ,6BAA2B;IAKnC,YAAY,KAAY;QACvB,KAAK,CAAC,KAAK,CAAC,CAAC;QAHN,UAAK,GAAoC,KAAK,CAAC,SAAS,EAAE,CAAC;QAOnE,yBAAoB,GAAG,CAAC,GAAW,EAAE,OAAgB,EAAE,EAAE;YACxD,IAAI,GAAG,KAAK,IAAI,CAAC,KAAK,CAAC,GAAG;gBACzB,OAAO;YAER,IAAI,CAAC,OAAO;gBACZ,qCAAqC;gBACpC,OAAO;YAER,IAAI,CAAC,eAAe,CAAC,4DAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC;QAZD,IAAI,CAAC,KAAK,GAAG,EAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC;IAC5C,CAAC;IAaO,eAAe,CAAC,IAAU;;QACjC,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,WAAW,CAAC,IAAI,EAAE;QACtC,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC,CAAC;IACjC,CAAC;IAED,iBAAiB;QAChB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;QAC3B,MAAM,IAAI,GAAG,4DAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,IAAI;YACP,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEnC,4DAA2B,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC,CAAC;QACrF,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAChC,CAAC;IAED,MAAM;QACL,OAAO,6BAAK,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAG,IAAI,CAAC,SAAS,EAAE,CAAO,CAAC;IAC3E,CAAC;IAEO,SAAS;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QACjC,IAAI,MAAM;YACT,OAAO,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC;QAEjD,OAAO,6BAAK,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC;YAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;iBAAS,CAAC;IACnF,CAAC;CACD;AAhDD,kEAgDC"}
|
|
@@ -1,39 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EntryComponentLoadingModule = exports.PageLoadingModule_Class = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Thunderstorm is a full web app framework!
|
|
6
|
-
*
|
|
7
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
8
|
-
* Typescript & React frontend infrastructure
|
|
9
|
-
*
|
|
10
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
const index_1 = require("../../../index");
|
|
25
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
26
|
-
// noinspection TypeScriptPreferShortImport
|
|
27
4
|
const XhrHttpModule_1 = require("../http/XhrHttpModule");
|
|
28
5
|
const HistoryModule_1 = require("../HistoryModule");
|
|
29
|
-
|
|
6
|
+
const types_1 = require("../../../shared/types");
|
|
7
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
8
|
+
class PageLoadingModule_Class extends module_1.Module {
|
|
30
9
|
constructor() {
|
|
31
10
|
super("PageLoadingModule");
|
|
32
11
|
this.injected = {};
|
|
33
12
|
}
|
|
34
13
|
loadScript(src, progressListener) {
|
|
35
14
|
XhrHttpModule_1.XhrHttpModule
|
|
36
|
-
.createRequest(
|
|
15
|
+
.createRequest(types_1.HttpMethod.GET, src)
|
|
37
16
|
.setUrl(`${HistoryModule_1.BrowserHistoryModule.getOrigin()}/${src}`)
|
|
38
17
|
.setOnProgressListener((ev) => {
|
|
39
18
|
const progress = ev.loaded / ev.total;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-component-loading-module.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/entry-component-loading-module.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"entry-component-loading-module.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/component-loader/entry-component-loading-module.tsx"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,oDAAsD;AACtD,iDAA+D;AAC/D,qEAAgE;AAKhE,MAAa,uBACT,SAAQ,eAAU;IAElB;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAGd,aAAQ,GAAyC,EAAE,CAAC;IAFrE,CAAC;IAID,UAAU,CAAC,GAAW,EAAE,gBAA4C;QAChE,6BAAa;aACR,aAAa,CAAqB,kBAAU,CAAC,GAAG,EAAE,GAAG,CAAC;aACtD,MAAM,CAAC,GAAG,oCAAoB,CAAC,SAAS,EAAE,IAAI,GAAG,EAAE,CAAC;aACpD,qBAAqB,CAAC,CAAC,EAAe,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC;YACtC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC,CAAC;aACD,OAAO,CAAC,QAAQ,CAAC,EAAE;YAChB,MAAM,UAAU,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACvE,UAAU,CAAC,SAAS,GAAG,QAAQ,CAAC;YAChC,UAAU,CAAC,EAAE,GAAG,GAAG,CAAC;YACpB,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;QACpC,CAAC,CAAC,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAW;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;CACJ;AA7BD,0DA6BC;AAEY,QAAA,2BAA2B,GAAG,IAAI,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Thunderstorm is a full web app framework!
|
|
4
|
-
*
|
|
5
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
6
|
-
* Typescript & React frontend infrastructure
|
|
7
|
-
*
|
|
8
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.Dialog = exports.DialogButton_Cancel = exports.DialogButton_Close = exports.DialogButton_Redo = exports.DialogButton_Undo = exports.DialogButton_Save = exports.DialogButton_Submit = void 0;
|
|
24
4
|
const React = require("react");
|
|
25
|
-
// noinspection TypeScriptPreferShortImport
|
|
26
5
|
const DialogModule_1 = require("./DialogModule");
|
|
27
|
-
// noinspection TypeScriptPreferShortImport
|
|
28
6
|
const BaseComponent_1 = require("../../core/BaseComponent");
|
|
29
7
|
const tools_1 = require("../../utils/tools");
|
|
30
8
|
const modalOverlay = {
|