@intuitionrobotics/thunderstorm 0.43.3 → 0.44.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/core/BaseStorm.d.ts +1 -1
- package/app-backend/core/BaseStorm.js +2 -2
- package/app-backend/core/BaseStorm.js.map +1 -1
- package/app-backend/core/Storm.js +9 -7
- package/app-backend/core/Storm.js.map +1 -1
- package/app-backend/exceptions.d.ts +2 -2
- package/app-backend/exceptions.js +2 -2
- 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 -6
- 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 -3
- 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 -10
- 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 -9
- 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 -8
- package/app-backend/modules/server/HttpServer.js.map +1 -1
- package/app-backend/modules/server/server-api.d.ts +3 -4
- package/app-backend/modules/server/server-api.js +27 -45
- 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 -6
- 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/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.js +0 -20
- 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 +15 -36
- 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.js +0 -20
- 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 -3
- 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 +2 -2
- 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 -2
- package/app-frontend/modules/dialog/DialogModule.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 -2
- 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 -5
- 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 -3
- 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/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 +5 -4
- 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/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,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.AppPage = exports.dispatch_onPageTitleChanged = void 0;
|
|
24
4
|
const BaseComponent_1 = require("./BaseComponent");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppPage.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/AppPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppPage.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/AppPage.tsx"],"names":[],"mappings":";;;AAAA,mDAA8C;AAC9C,6DAAuD;AAM1C,QAAA,2BAA2B,GAAG,IAAI,sCAAiB,CAAmD,oBAAoB,CAAC,CAAC;AAGzI,MAAsB,OACrB,SAAQ,6BAAmB;IAM3B,YAAsB,CAAI,EAAE,SAAkB;QAC7C,KAAK,CAAC,CAAC,CAAC,CAAC;QAHF,YAAO,GAAY,KAAK,CAAC;QAIhC,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAC;IAC9C,CAAC;IAED,YAAY,CAAC,SAAiB;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,IAAI,CAAC,OAAO;YACf,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;IAClC,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,QAAQ,CAAC,kBAAkB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC;QAChC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,oBAAoB;;QACnB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,MAAA,KAAK,CAAC,oBAAoB,qDAAK;IAChC,CAAC;CACD;AA7BD,0BA6BC"}
|
|
@@ -1,37 +1,16 @@
|
|
|
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.renderApp = exports.AppWrapper = void 0;
|
|
24
4
|
const React = require("react");
|
|
25
5
|
const ReactDOM = require("react-dom");
|
|
26
6
|
const react_router_dom_1 = require("react-router-dom");
|
|
27
|
-
// noinspection TypeScriptPreferShortImport`
|
|
28
7
|
const HistoryModule_1 = require("../modules/HistoryModule");
|
|
29
8
|
const Thunder_1 = require("./Thunder");
|
|
30
|
-
const
|
|
9
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
31
10
|
const AppWrapper = (props) => {
|
|
32
11
|
const MainApp = Thunder_1.Thunder.getInstance().getMainApp();
|
|
33
12
|
if (!MainApp)
|
|
34
|
-
throw new
|
|
13
|
+
throw new exceptions_1.ImplementationMissingException("mainApp was not specified!!");
|
|
35
14
|
return (React.createElement(react_router_dom_1.Router, { history: HistoryModule_1.BrowserHistoryModule.getHistory() },
|
|
36
15
|
React.createElement(MainApp, null)));
|
|
37
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/AppWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppWrapper.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/AppWrapper.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,sCAAsC;AACtC,uDAAwC;AACxC,4DAA8D;AAC9D,uCAAkC;AAClC,6EAA4F;AAGrF,MAAM,UAAU,GAAG,CAAC,KAAmB,EAAE,EAAE;IAEjD,MAAM,OAAO,GAAG,iBAAO,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,CAAC;IACnD,IAAI,CAAC,OAAO;QACX,MAAM,IAAI,2CAA8B,CAAC,6BAA6B,CAAC,CAAC;IAEzE,OAAO,CACN,oBAAC,yBAAM,IAAC,OAAO,EAAE,oCAAoB,CAAC,UAAU,EAAE;QACjD,oBAAC,OAAO,OAAE,CACF,CAAC,CAAA;AACZ,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB;AAEF,SAAgB,SAAS,CAAC,QAAgB,KAAK;IAC9C,QAAQ,CAAC,MAAM,CACd,oBAAC,kBAAU,OAAE,EACb,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAC9B,CAAC;AACH,CAAC;AALD,8BAKC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by tacb0ss on 28/07/2018.
|
|
3
|
-
*/
|
|
4
1
|
import * as React from "react";
|
|
5
|
-
import {
|
|
2
|
+
import { TimerHandler } from "@intuitionrobotics/ts-common/utils/date-time-tools";
|
|
3
|
+
import { LogLevel, LogParam } from "@intuitionrobotics/ts-common/core/logger/types";
|
|
6
4
|
export declare class BaseComponent<P = any, S = any> extends React.Component<P, S> {
|
|
7
5
|
private stateKeysToUpdate?;
|
|
8
6
|
private logger;
|
|
@@ -1,40 +1,19 @@
|
|
|
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.BaseComponent = void 0;
|
|
24
|
-
/**
|
|
25
|
-
* Created by tacb0ss on 28/07/2018.
|
|
26
|
-
*/
|
|
27
4
|
const React = require("react");
|
|
28
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
29
5
|
const StorageModule_1 = require("../modules/StorageModule");
|
|
30
6
|
const ResourcesModule_1 = require("../modules/ResourcesModule");
|
|
31
7
|
const HistoryModule_1 = require("../modules/HistoryModule");
|
|
32
8
|
const Thunder_1 = require("./Thunder");
|
|
9
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
10
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
11
|
+
const types_1 = require("@intuitionrobotics/ts-common/core/logger/types");
|
|
33
12
|
class BaseComponent extends React.Component {
|
|
34
13
|
constructor(props) {
|
|
35
14
|
super(props);
|
|
36
15
|
this.timeoutMap = {};
|
|
37
|
-
this.logger = new
|
|
16
|
+
this.logger = new Logger_1.Logger(this.constructor.name);
|
|
38
17
|
this._componentDidMount = this.componentDidMount;
|
|
39
18
|
this.componentDidMount = () => {
|
|
40
19
|
// @ts-ignore
|
|
@@ -52,26 +31,26 @@ class BaseComponent extends React.Component {
|
|
|
52
31
|
}
|
|
53
32
|
debounce(handler, key, ms = 0) {
|
|
54
33
|
const k = "debounce" + key;
|
|
55
|
-
|
|
56
|
-
this.timeoutMap[k] =
|
|
34
|
+
date_time_tools_1._clearTimeout(this.timeoutMap[k]);
|
|
35
|
+
this.timeoutMap[k] = date_time_tools_1._setTimeout(handler, ms);
|
|
57
36
|
}
|
|
58
37
|
throttle(handler, key, ms = 0) {
|
|
59
38
|
const k = "throttle" + key;
|
|
60
39
|
if (this.timeoutMap[k])
|
|
61
40
|
return;
|
|
62
|
-
this.timeoutMap[k] =
|
|
41
|
+
this.timeoutMap[k] = date_time_tools_1._setTimeout(() => {
|
|
63
42
|
handler();
|
|
64
43
|
delete this.timeoutMap[k];
|
|
65
44
|
}, ms);
|
|
66
45
|
}
|
|
67
46
|
throttleV2(handler, key, ms, force = false) {
|
|
68
47
|
const k = "throttle_v2" + key;
|
|
69
|
-
const now =
|
|
48
|
+
const now = date_time_tools_1.currentTimeMillies();
|
|
70
49
|
const timeoutMapElement = this.timeoutMap[k];
|
|
71
50
|
if (timeoutMapElement && now - timeoutMapElement <= ms && !force)
|
|
72
51
|
return;
|
|
73
52
|
handler();
|
|
74
|
-
this.timeoutMap[k] =
|
|
53
|
+
this.timeoutMap[k] = date_time_tools_1.currentTimeMillies();
|
|
75
54
|
}
|
|
76
55
|
setStateKeysToUpdate(stateKeysToUpdate) {
|
|
77
56
|
this.stateKeysToUpdate = stateKeysToUpdate;
|
|
@@ -82,19 +61,19 @@ class BaseComponent extends React.Component {
|
|
|
82
61
|
return this.stateKeysToUpdate.find(key => this.state[key] !== nextState[key]) !== undefined;
|
|
83
62
|
}
|
|
84
63
|
logVerbose(...toLog) {
|
|
85
|
-
this.logImpl(
|
|
64
|
+
this.logImpl(types_1.LogLevel.Verbose, false, toLog);
|
|
86
65
|
}
|
|
87
66
|
logDebug(...toLog) {
|
|
88
|
-
this.logImpl(
|
|
67
|
+
this.logImpl(types_1.LogLevel.Debug, false, toLog);
|
|
89
68
|
}
|
|
90
69
|
logInfo(...toLog) {
|
|
91
|
-
this.logImpl(
|
|
70
|
+
this.logImpl(types_1.LogLevel.Info, false, toLog);
|
|
92
71
|
}
|
|
93
72
|
logWarning(...toLog) {
|
|
94
|
-
this.logImpl(
|
|
73
|
+
this.logImpl(types_1.LogLevel.Warning, false, toLog);
|
|
95
74
|
}
|
|
96
75
|
logError(...toLog) {
|
|
97
|
-
this.logImpl(
|
|
76
|
+
this.logImpl(types_1.LogLevel.Error, false, toLog);
|
|
98
77
|
}
|
|
99
78
|
log(level, bold, ...toLog) {
|
|
100
79
|
this.logImpl(level, bold, toLog);
|
|
@@ -120,7 +99,7 @@ class BaseComponent extends React.Component {
|
|
|
120
99
|
return ResourcesModule_1.ResourcesModule.getImageUrl(relativePath);
|
|
121
100
|
}
|
|
122
101
|
static getQueryParameter(name) {
|
|
123
|
-
return HistoryModule_1.BrowserHistoryModule.
|
|
102
|
+
return HistoryModule_1.BrowserHistoryModule.getQueryParam(name);
|
|
124
103
|
}
|
|
125
104
|
static getUrl() {
|
|
126
105
|
return HistoryModule_1.BrowserHistoryModule.getCurrent().pathname;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponent.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/BaseComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseComponent.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/BaseComponent.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,4DAAuD;AACvD,gEAA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CAAC;QACjC,IAAI,CAAC,YAAY;YAChB,OAAO,EAAE,CAAC;QAEX,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnC,YAAY,IAAI,MAAM,CAAC;QAExB,OAAO,iCAAe,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAC,IAAY;QACpC,OAAO,oCAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,MAAM;QACZ,OAAO,oCAAoB,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;IACnD,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IAC9B,CAAC;CACD;AApID,sCAoIC"}
|
|
@@ -1,32 +1,12 @@
|
|
|
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.SimpleScriptInjector = void 0;
|
|
24
4
|
const React = require("react");
|
|
25
|
-
const
|
|
5
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
26
6
|
class SimpleScriptInjector extends React.Component {
|
|
27
7
|
componentDidMount() {
|
|
28
8
|
if (SimpleScriptInjector.injected[this.props.src]) {
|
|
29
|
-
|
|
9
|
+
date_time_tools_1._setTimeout(() => this.props.onLoaded(this.props.src));
|
|
30
10
|
return;
|
|
31
11
|
}
|
|
32
12
|
const script = document.createElement("script");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleScriptInjector.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/SimpleScriptInjector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleScriptInjector.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/SimpleScriptInjector.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,wFAA+E;AAO/E,MAAa,oBACZ,SAAQ,KAAK,CAAC,SAAgB;IAI9B,iBAAiB;QAChB,IAAI,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAClD,6BAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YACvD,OAAO;SACP;QAED,MAAM,MAAM,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACnE,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;QAC5B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;QACpB,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;QAC3B,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1D,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAClC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IACxD,CAAC;IAED,MAAM;QACL,OAAO,EAAE,CAAC;IACX,CAAC;;AAvBF,oDAwBC;AArBgB,6BAAQ,GAAyC,EAAE,CAAC"}
|
|
@@ -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;AAE3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AU,CAAC,GAAG,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,WAAW;QACd,OAAO,OAAO,CAAC,QAAmB,CAAC;IACvC,CAAC;IAED,IAAI;QACA,mBAAQ,CAAC,SAAS,CAAC,qCAAiB,CAAC,CAAC;QAEtC,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,6BAAa,CAAC,gBAAgB,CAAC,CAAC,0BAAkB,EAAE,6BAAqB,CAAC,CAAC,CAAC;QAC5E,6BAAa,CAAC,kBAAkB,CAAC,CAAC,4BAAoB,EAAE,+BAAuB,CAAC,CAAC,CAAC;QAClF,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,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) {
|
|
@@ -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;AAMxE,MAAa,iBACZ,SAAQ,uBAAgB;IAIxB,YAAY,MAAS;QACpB,KAAK,CAAC,MAAM,CAAC,CAAC;IACf,CAAC;IAEM,UAAU,CAAC,CAAmB;QACpC,MAAM,SAAS,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;QACxD,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,MAAM,SAAS,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;YACxD,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;AAtBD,8CAsBC"}
|
|
@@ -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 = {
|
|
@@ -21,14 +21,15 @@
|
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.ForceUpgrade = exports.RequestKey_AssertAppVersion = void 0;
|
|
24
|
-
const
|
|
24
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
25
25
|
const XhrHttpModule_1 = require("./http/XhrHttpModule");
|
|
26
26
|
const force_upgrade_1 = require("../../shared/force-upgrade");
|
|
27
27
|
const types_1 = require("../../shared/types");
|
|
28
28
|
const tools_1 = require("../utils/tools");
|
|
29
|
+
const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
|
|
29
30
|
exports.RequestKey_AssertAppVersion = "assert-app-version";
|
|
30
|
-
const dispatch_onUpgradeRequired = new
|
|
31
|
-
class ForceUpgrade_Class extends
|
|
31
|
+
const dispatch_onUpgradeRequired = new dispatcher_1.Dispatcher("__onUpgradeRequired");
|
|
32
|
+
class ForceUpgrade_Class extends module_1.Module {
|
|
32
33
|
constructor() {
|
|
33
34
|
super("ForceUpgrade");
|
|
34
35
|
this.compareVersion = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ForceUpgrade.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/ForceUpgrade.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,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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AEvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,GAAW,EAAE,WAAyB;QACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC;IACvE,CAAC;IAEO,gCAAgC,CAAC,kBAAgC,EAAE,WAAmB,MAAM,CAAC,QAAQ,CAAC,QAAQ;QAClH,OAAO;YACH,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,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"}
|