@intuitionrobotics/thunderstorm 0.45.0 → 0.45.1
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 +20 -0
- package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
- package/app-backend/api/v1/utils/version/assert.js +20 -0
- 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 +22 -2
- package/app-backend/core/BaseStorm.js.map +1 -1
- package/app-backend/core/Storm.js +27 -9
- package/app-backend/core/Storm.js.map +1 -1
- package/app-backend/exceptions.d.ts +2 -2
- package/app-backend/exceptions.js +22 -2
- package/app-backend/exceptions.js.map +1 -1
- package/app-backend/modules/CleanupScheduler.js +4 -5
- package/app-backend/modules/CleanupScheduler.js.map +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.d.ts +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.js +9 -23
- package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
- package/app-backend/modules/ForceUpgrade.d.ts +1 -1
- package/app-backend/modules/ForceUpgrade.js +26 -8
- package/app-backend/modules/ForceUpgrade.js.map +1 -1
- package/app-backend/modules/SlackModule.d.ts +4 -2
- package/app-backend/modules/SlackModule.js +30 -9
- package/app-backend/modules/SlackModule.js.map +1 -1
- package/app-backend/modules/_imports.d.ts +10 -0
- package/app-backend/modules/_imports.js +43 -0
- package/app-backend/modules/_imports.js.map +1 -0
- package/app-backend/modules/http/AxiosHttpModule.js +23 -3
- package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxy.d.ts +1 -2
- package/app-backend/modules/proxy/RemoteProxy.js +30 -11
- 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 +29 -11
- package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
- package/app-backend/modules/server/HttpServer.d.ts +2 -3
- package/app-backend/modules/server/HttpServer.js +31 -9
- package/app-backend/modules/server/HttpServer.js.map +1 -1
- package/app-backend/modules/server/server-api.d.ts +7 -3
- package/app-backend/modules/server/server-api.js +56 -30
- 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 +26 -7
- 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 +30 -12
- package/app-backend/utils/LogClient_File.js.map +1 -1
- package/app-backend/utils/file.js +20 -0
- package/app-backend/utils/file.js.map +1 -1
- package/app-backend/utils/promisify-request.js +22 -2
- package/app-backend/utils/promisify-request.js.map +1 -1
- package/app-backend/utils/to-be-removed.js +20 -0
- 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 +22 -2
- package/app-backend/utils/types.js.map +1 -1
- package/app-frontend/components/ActionButton.js +20 -0
- package/app-frontend/components/ActionButton.js.map +1 -1
- package/app-frontend/components/DropDown.js +24 -5
- package/app-frontend/components/DropDown.js.map +1 -1
- package/app-frontend/components/FilterInput.js +23 -4
- package/app-frontend/components/FilterInput.js.map +1 -1
- package/app-frontend/components/GenericSelect.js +21 -1
- package/app-frontend/components/GenericSelect.js.map +1 -1
- package/app-frontend/components/GenericTabs.d.ts +4 -0
- package/app-frontend/components/GenericTabs.js +11 -0
- package/app-frontend/components/GenericTabs.js.map +1 -0
- package/app-frontend/components/Overlay.js +20 -0
- package/app-frontend/components/Overlay.js.map +1 -1
- package/app-frontend/components/TS_Input.js +23 -3
- 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 +20 -0
- package/app-frontend/components/TS_Table.js.map +1 -1
- package/app-frontend/components/TS_TextArea.js +20 -0
- package/app-frontend/components/TS_TextArea.js.map +1 -1
- package/app-frontend/components/adapter/Adapter.js +26 -6
- package/app-frontend/components/adapter/Adapter.js.map +1 -1
- package/app-frontend/components/adapter/BaseRenderer.js +20 -0
- 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 +1 -2
- package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
- package/app-frontend/components/checkbox/TS_CheckboxField.js +18 -0
- package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
- package/app-frontend/components/form/Form.d.ts +1 -2
- package/app-frontend/components/form/Form.js +22 -2
- package/app-frontend/components/form/Form.js.map +1 -1
- package/app-frontend/components/form/types.d.ts +1 -2
- package/app-frontend/components/form/types.js +20 -0
- package/app-frontend/components/form/types.js.map +1 -1
- package/app-frontend/components/playground/Example_NewProps.js +20 -0
- package/app-frontend/components/playground/Example_NewProps.js.map +1 -1
- package/app-frontend/components/playground/Playground.js +21 -1
- package/app-frontend/components/playground/Playground.js.map +1 -1
- package/app-frontend/components/tree/MenuComponent.js +22 -2
- package/app-frontend/components/tree/MenuComponent.js.map +1 -1
- package/app-frontend/components/tree/MultiTypeAdaptor.js +22 -2
- package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +20 -0
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
- package/app-frontend/components/tree/Tree.js +23 -3
- package/app-frontend/components/tree/Tree.js.map +1 -1
- package/app-frontend/components/tree/types.js +20 -0
- 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 +20 -0
- package/app-frontend/components/types.js.map +1 -1
- package/app-frontend/core/AbstractThunder.d.ts +3 -0
- package/app-frontend/core/AbstractThunder.js +32 -0
- package/app-frontend/core/AbstractThunder.js.map +1 -1
- package/app-frontend/core/AppPage.js +20 -0
- package/app-frontend/core/AppPage.js.map +1 -1
- package/app-frontend/core/AppWrapper.js +23 -2
- package/app-frontend/core/AppWrapper.js.map +1 -1
- package/app-frontend/core/BaseComponent.d.ts +4 -2
- package/app-frontend/core/BaseComponent.js +41 -18
- package/app-frontend/core/BaseComponent.js.map +1 -1
- package/app-frontend/core/SimpleScriptInjector.js +22 -2
- package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
- package/app-frontend/core/Thunder.js +22 -3
- package/app-frontend/core/Thunder.js.map +1 -1
- package/app-frontend/core/thunder-dispatcher.d.ts +1 -2
- package/app-frontend/core/thunder-dispatcher.js +23 -13
- 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 +23 -4
- package/app-frontend/modules/ForceUpgrade.js.map +1 -1
- package/app-frontend/modules/HistoryModule.d.ts +5 -3
- package/app-frontend/modules/HistoryModule.js +28 -9
- package/app-frontend/modules/HistoryModule.js.map +1 -1
- package/app-frontend/modules/ResourcesModule.d.ts +4 -1
- package/app-frontend/modules/ResourcesModule.js +25 -2
- package/app-frontend/modules/ResourcesModule.js.map +1 -1
- package/app-frontend/modules/StorageModule.d.ts +4 -1
- package/app-frontend/modules/StorageModule.js +26 -4
- 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 +20 -0
- 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 +25 -4
- package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
- package/app-frontend/modules/dialog/Dialog.js +22 -0
- 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 +22 -2
- package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
- package/app-frontend/modules/http/HttpClient.js +20 -0
- package/app-frontend/modules/http/HttpClient.js.map +1 -1
- package/app-frontend/modules/http/XhrHttpModule.js +10 -9
- package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
- package/app-frontend/modules/locale/LocaleModule.d.ts +4 -1
- package/app-frontend/modules/locale/LocaleModule.js +24 -5
- package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
- package/app-frontend/modules/locale/types.d.ts +3 -0
- package/app-frontend/modules/locale/types.js +20 -0
- 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 +3 -4
- 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 +2 -2
- package/app-frontend/modules/routing/RoutingModule.js +25 -6
- package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
- package/app-frontend/modules/routing/route.d.ts +2 -2
- package/app-frontend/modules/routing/route.js +20 -0
- package/app-frontend/modules/routing/route.js.map +1 -1
- package/app-frontend/modules/toaster/BaseToaster.js +22 -0
- package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
- package/app-frontend/modules/toaster/Toaster.js +20 -0
- 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 +25 -5
- package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
- package/app-frontend/modules/tooltip/Tooltip.js +22 -2
- 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 +23 -4
- package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
- package/app-frontend/tools/KeyboardListener.js +17 -0
- package/app-frontend/tools/KeyboardListener.js.map +1 -1
- package/app-frontend/tools/Stylable.js +20 -0
- package/app-frontend/tools/Stylable.js.map +1 -1
- package/app-frontend/types/renderer-map.js +20 -0
- package/app-frontend/types/renderer-map.js.map +1 -1
- package/app-frontend/utils/tools.js +23 -3
- package/app-frontend/utils/tools.js.map +1 -1
- package/backend-test.d.ts +1 -0
- package/backend-test.js +34 -0
- package/backend-test.js.map +1 -0
- package/backend.d.ts +17 -0
- package/backend.js +50 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +55 -0
- package/frontend.js +88 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +37 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/shared/BaseHttpModule.d.ts +1 -1
- package/shared/BaseHttpModule.js +5 -6
- package/shared/BaseHttpModule.js.map +1 -1
- package/shared/BaseHttpRequest.js +27 -9
- package/shared/BaseHttpRequest.js.map +1 -1
- package/shared/consts.js +20 -0
- package/shared/consts.js.map +1 -1
- package/shared/force-upgrade.js +20 -0
- package/shared/force-upgrade.js.map +1 -1
- package/shared/request-types.js +20 -0
- package/shared/request-types.js.map +1 -1
- package/shared/types.js +20 -0
- package/shared/types.js.map +1 -1
- package/test-backend/StormTester.js +26 -6
- package/test-backend/StormTester.js.map +1 -1
- package/test-frontend/ThunderTester.js +20 -0
- package/test-frontend/ThunderTester.js.map +1 -1
|
@@ -1,16 +1,37 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.renderApp = exports.AppWrapper = void 0;
|
|
4
24
|
const React = require("react");
|
|
5
25
|
const ReactDOM = require("react-dom");
|
|
6
26
|
const react_router_dom_1 = require("react-router-dom");
|
|
27
|
+
// noinspection TypeScriptPreferShortImport`
|
|
7
28
|
const HistoryModule_1 = require("../modules/HistoryModule");
|
|
8
29
|
const Thunder_1 = require("./Thunder");
|
|
9
|
-
const
|
|
30
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
10
31
|
const AppWrapper = (props) => {
|
|
11
32
|
const MainApp = Thunder_1.Thunder.getInstance().getMainApp();
|
|
12
33
|
if (!MainApp)
|
|
13
|
-
throw new
|
|
34
|
+
throw new ts_common_1.ImplementationMissingException("mainApp was not specified!!");
|
|
14
35
|
return (React.createElement(react_router_dom_1.Router, { history: HistoryModule_1.BrowserHistoryModule.getHistory() },
|
|
15
36
|
React.createElement(MainApp, null)));
|
|
16
37
|
};
|
|
@@ -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;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,+BAA+B;AAC/B,sCAAsC;AACtC,uDAAwC;AACxC,4CAA4C;AAC5C,4DAA8D;AAC9D,uCAAkC;AAClC,4DAA4E;AAIrE,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,0CAA8B,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,6 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by tacb0ss on 28/07/2018.
|
|
3
|
+
*/
|
|
1
4
|
import * as React from "react";
|
|
2
|
-
import { TimerHandler } from "@intuitionrobotics/ts-common
|
|
3
|
-
import { LogLevel, LogParam } from "@intuitionrobotics/ts-common/core/logger/types";
|
|
5
|
+
import { LogLevel, LogParam, TimerHandler } from "@intuitionrobotics/ts-common";
|
|
4
6
|
export declare class BaseComponent<P = any, S = any> extends React.Component<P, S> {
|
|
5
7
|
private stateKeysToUpdate?;
|
|
6
8
|
private logger;
|
|
@@ -1,22 +1,44 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.BaseComponent = void 0;
|
|
24
|
+
/**
|
|
25
|
+
* Created by tacb0ss on 28/07/2018.
|
|
26
|
+
*/
|
|
4
27
|
const React = require("react");
|
|
28
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
5
29
|
const StorageModule_1 = require("../modules/StorageModule");
|
|
6
30
|
const ResourcesModule_1 = require("../modules/ResourcesModule");
|
|
7
31
|
const HistoryModule_1 = require("../modules/HistoryModule");
|
|
8
|
-
const
|
|
9
|
-
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
10
|
-
const types_1 = require("@intuitionrobotics/ts-common/core/logger/types");
|
|
11
|
-
const thunder_dispatcher_1 = require("./thunder-dispatcher");
|
|
32
|
+
const Thunder_1 = require("./Thunder");
|
|
12
33
|
class BaseComponent extends React.Component {
|
|
13
34
|
constructor(props) {
|
|
14
35
|
super(props);
|
|
15
36
|
this.timeoutMap = {};
|
|
16
|
-
this.logger = new
|
|
37
|
+
this.logger = new ts_common_1.Logger(this.constructor.name);
|
|
17
38
|
this._componentDidMount = this.componentDidMount;
|
|
18
39
|
this.componentDidMount = () => {
|
|
19
|
-
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
Thunder_1.Thunder.getInstance().addUIListener(this);
|
|
20
42
|
if (this._componentDidMount)
|
|
21
43
|
this._componentDidMount();
|
|
22
44
|
};
|
|
@@ -24,31 +46,32 @@ class BaseComponent extends React.Component {
|
|
|
24
46
|
this.componentWillUnmount = () => {
|
|
25
47
|
if (this._componentWillUnmount)
|
|
26
48
|
this._componentWillUnmount();
|
|
27
|
-
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
Thunder_1.Thunder.getInstance().removeUIListener(this);
|
|
28
51
|
};
|
|
29
52
|
}
|
|
30
53
|
debounce(handler, key, ms = 0) {
|
|
31
54
|
const k = "debounce" + key;
|
|
32
|
-
|
|
33
|
-
this.timeoutMap[k] =
|
|
55
|
+
ts_common_1._clearTimeout(this.timeoutMap[k]);
|
|
56
|
+
this.timeoutMap[k] = ts_common_1._setTimeout(handler, ms);
|
|
34
57
|
}
|
|
35
58
|
throttle(handler, key, ms = 0) {
|
|
36
59
|
const k = "throttle" + key;
|
|
37
60
|
if (this.timeoutMap[k])
|
|
38
61
|
return;
|
|
39
|
-
this.timeoutMap[k] =
|
|
62
|
+
this.timeoutMap[k] = ts_common_1._setTimeout(() => {
|
|
40
63
|
handler();
|
|
41
64
|
delete this.timeoutMap[k];
|
|
42
65
|
}, ms);
|
|
43
66
|
}
|
|
44
67
|
throttleV2(handler, key, ms, force = false) {
|
|
45
68
|
const k = "throttle_v2" + key;
|
|
46
|
-
const now =
|
|
69
|
+
const now = ts_common_1.currentTimeMillies();
|
|
47
70
|
const timeoutMapElement = this.timeoutMap[k];
|
|
48
71
|
if (timeoutMapElement && now - timeoutMapElement <= ms && !force)
|
|
49
72
|
return;
|
|
50
73
|
handler();
|
|
51
|
-
this.timeoutMap[k] =
|
|
74
|
+
this.timeoutMap[k] = ts_common_1.currentTimeMillies();
|
|
52
75
|
}
|
|
53
76
|
setStateKeysToUpdate(stateKeysToUpdate) {
|
|
54
77
|
this.stateKeysToUpdate = stateKeysToUpdate;
|
|
@@ -59,19 +82,19 @@ class BaseComponent extends React.Component {
|
|
|
59
82
|
return this.stateKeysToUpdate.find(key => this.state[key] !== nextState[key]) !== undefined;
|
|
60
83
|
}
|
|
61
84
|
logVerbose(...toLog) {
|
|
62
|
-
this.logImpl(
|
|
85
|
+
this.logImpl(ts_common_1.LogLevel.Verbose, false, toLog);
|
|
63
86
|
}
|
|
64
87
|
logDebug(...toLog) {
|
|
65
|
-
this.logImpl(
|
|
88
|
+
this.logImpl(ts_common_1.LogLevel.Debug, false, toLog);
|
|
66
89
|
}
|
|
67
90
|
logInfo(...toLog) {
|
|
68
|
-
this.logImpl(
|
|
91
|
+
this.logImpl(ts_common_1.LogLevel.Info, false, toLog);
|
|
69
92
|
}
|
|
70
93
|
logWarning(...toLog) {
|
|
71
|
-
this.logImpl(
|
|
94
|
+
this.logImpl(ts_common_1.LogLevel.Warning, false, toLog);
|
|
72
95
|
}
|
|
73
96
|
logError(...toLog) {
|
|
74
|
-
this.logImpl(
|
|
97
|
+
this.logImpl(ts_common_1.LogLevel.Error, false, toLog);
|
|
75
98
|
}
|
|
76
99
|
log(level, bold, ...toLog) {
|
|
77
100
|
this.logImpl(level, bold, toLog);
|
|
@@ -97,7 +120,7 @@ class BaseComponent extends React.Component {
|
|
|
97
120
|
return ResourcesModule_1.ResourcesModule.getImageUrl(relativePath);
|
|
98
121
|
}
|
|
99
122
|
static getQueryParameter(name) {
|
|
100
|
-
return HistoryModule_1.BrowserHistoryModule.
|
|
123
|
+
return HistoryModule_1.BrowserHistoryModule.getQueryParams()[name];
|
|
101
124
|
}
|
|
102
125
|
static getUrl() {
|
|
103
126
|
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;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH;;GAEG;AACH,+BAA+B;AAE/B,4DAAsI;AACtI,4DAAuD;AACvD,gEAA2D;AAC3D,4DAA8D;AAC9D,uCAAkC;AAElC,MAAa,aACZ,SAAQ,KAAK,CAAC,SAAe;IAQ7B,YAAY,KAAQ;QACnB,KAAK,CAAC,KAAK,CAAC,CAAC;QAHN,eAAU,GAA4B,EAAE,CAAC;QAIhD,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAM,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAEhD,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,iBAAiB,GAAG,GAAG,EAAE;YAC7B,aAAa;YACb,iBAAO,CAAC,WAAW,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAE1C,IAAI,IAAI,CAAC,kBAAkB;gBAC1B,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC5B,CAAC,CAAC;QAEF,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,oBAAoB,CAAC;QACvD,IAAI,CAAC,oBAAoB,GAAG,GAAG,EAAE;YAChC,IAAI,IAAI,CAAC,qBAAqB;gBAC7B,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAE9B,aAAa;YACb,iBAAO,CAAC,WAAW,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC,CAAC;IACH,CAAC;IAED,QAAQ,CAAC,OAAqB,EAAE,GAAW,EAAE,EAAE,GAAG,CAAC;QAClD,MAAM,CAA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AAC,IAAI,CAAC,GAAW,EAAE,YAAkD;QAC1E,OAAO,6BAAa,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,CAA2B;QAC9C,OAAQ,CAAC,CAAC,aAA6B,CAAC,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,aAAqB;QACvC,IAAI,YAAY,GAAG,aAAa,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,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC;IACpD,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,12 +1,32 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.SimpleScriptInjector = void 0;
|
|
4
24
|
const React = require("react");
|
|
5
|
-
const
|
|
25
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
6
26
|
class SimpleScriptInjector extends React.Component {
|
|
7
27
|
componentDidMount() {
|
|
8
28
|
if (SimpleScriptInjector.injected[this.props.src]) {
|
|
9
|
-
|
|
29
|
+
ts_common_1._setTimeout(() => this.props.onLoaded(this.props.src));
|
|
10
30
|
return;
|
|
11
31
|
}
|
|
12
32
|
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;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,+BAA+B;AAC/B,4DAAyD;AAOzD,MAAa,oBACZ,SAAQ,KAAK,CAAC,SAAgB;IAI9B,iBAAiB;QAChB,IAAI,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAClD,uBAAW,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,7 +1,28 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.Thunder = exports.SuccessHandler_Dispatch = exports.ErrorHandler_Dispatch = exports.SuccessHandler_Toast = exports.ErrorHandler_Toast = void 0;
|
|
4
24
|
const AppWrapper_1 = require("./AppWrapper");
|
|
25
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
5
26
|
const XhrHttpModule_1 = require("../modules/http/XhrHttpModule");
|
|
6
27
|
const ToasterModule_1 = require("../modules/toaster/ToasterModule");
|
|
7
28
|
const RoutingModule_1 = require("../modules/routing/RoutingModule");
|
|
@@ -12,8 +33,6 @@ const AbstractThunder_1 = require("./AbstractThunder");
|
|
|
12
33
|
const ThunderstormModule_1 = require("../modules/ThunderstormModule");
|
|
13
34
|
const DialogModule_1 = require("../modules/dialog/DialogModule");
|
|
14
35
|
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");
|
|
17
36
|
const ErrorHandler_Toast = (request, resError) => {
|
|
18
37
|
const errorMessage = request.errorMessage || (resError === null || resError === void 0 ? void 0 : resError.debugMessage);
|
|
19
38
|
return errorMessage && ToasterModule_1.ToastModule.toastError(errorMessage);
|
|
@@ -47,7 +66,7 @@ class Thunder extends AbstractThunder_1.AbstractThunder {
|
|
|
47
66
|
return Thunder.instance;
|
|
48
67
|
}
|
|
49
68
|
init() {
|
|
50
|
-
|
|
69
|
+
ts_common_1.BeLogged.addClient(ts_common_1.LogClient_Browser);
|
|
51
70
|
super.init();
|
|
52
71
|
XhrHttpModule_1.XhrHttpModule.setErrorHandlers([exports.ErrorHandler_Toast, exports.ErrorHandler_Dispatch]);
|
|
53
72
|
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":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAGH,6CAAqD;AACrD,4DAAiF;AACjF,iEAA4D;AAC5D,oEAA6D;AAC7D,oEAA+D;AAC/D,4DAA8D;AAC9D,4DAAuD;AACvD,gEAA2D;AAE3D,uDAA6E;AAC7E,sEAAiE;AACjE,iEAA4D;AAE5D,6DAAuD;AAEhD,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,MAAM,oBAAoB,GAA0B,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,cAAc,IAAI,2BAAW,CAAC,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AAAtI,QAAA,oBAAoB,wBAAkH;AAE5I,MAAM,qBAAqB,GAA6B,CAAC,OAAO,EAAE,EAAE,CAAC,2CAAyB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAA/I,QAAA,qBAAqB,yBAA0H;AACrJ,MAAM,uBAAuB,GAA0B,CAAC,OAAO,EAAE,EAAE,CAAC,2CAAyB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAA7I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AC,OAAO,CAAC;IACxB,CAAC;CACJ;AA9CD,0BA8CC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
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;
|
|
5
3
|
export declare class ThunderDispatcher<T extends object, K extends FunctionKeys<T>> extends Dispatcher<T, K> {
|
|
4
|
+
static readonly listenersResolver: () => any[];
|
|
6
5
|
constructor(method: K);
|
|
7
6
|
dispatchUI(p: Parameters<T[K]>): ReturnPromiseType<T[K]>[];
|
|
8
7
|
dispatchUIAsync(p: Parameters<T[K]>): Promise<ReturnPromiseType<T[K]>[]>;
|
|
@@ -1,4 +1,24 @@
|
|
|
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
|
+
*/
|
|
2
22
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
23
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
24
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,30 +29,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
29
|
});
|
|
10
30
|
};
|
|
11
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ThunderDispatcher =
|
|
32
|
+
exports.ThunderDispatcher = void 0;
|
|
13
33
|
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;
|
|
26
34
|
class ThunderDispatcher extends dispatcher_1.Dispatcher {
|
|
27
35
|
constructor(method) {
|
|
28
36
|
super(method);
|
|
29
37
|
}
|
|
30
38
|
dispatchUI(p) {
|
|
39
|
+
const listeners = ThunderDispatcher.listenersResolver();
|
|
31
40
|
// @ts-ignore
|
|
32
41
|
return listeners.filter(this.filter).map((listener) => listener[this.method](...p));
|
|
33
42
|
}
|
|
34
43
|
dispatchUIAsync(p) {
|
|
35
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const listeners = ThunderDispatcher.listenersResolver();
|
|
36
46
|
return Promise.all(listeners.filter(this.filter).map((listener) => __awaiter(this, void 0, void 0, function* () {
|
|
37
47
|
const params = p;
|
|
38
48
|
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;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,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 ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
5
5
|
const thunder_dispatcher_1 = require("../core/thunder-dispatcher");
|
|
6
|
-
class ConnectivityModule_Class extends
|
|
6
|
+
class ConnectivityModule_Class extends ts_common_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,4DAAoD;AACpD,mEAA6D;AAM7D,MAAM,wBACL,SAAQ,kBAAM;IAKd;QACC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAHrB,kCAA6B,GAAG,IAAI,sCAAiB,CAAiD,wBAAwB,CAAC,CAAC;QAYxI,gBAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;QAEnC,2BAAsB,GAAG,GAAG,EAAE;YAC7B,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;QAClD,CAAC,CAAC;QAEM,0BAAqB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QAhBtD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/C,CAAC;IAES,IAAI;QACb,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAC/D,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACjE,CAAC;CAWD;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";
|
|
2
2
|
import { UpgradeRequired } from "../../shared/force-upgrade";
|
|
3
3
|
export declare const RequestKey_AssertAppVersion = "assert-app-version";
|
|
4
4
|
declare type Config = {
|
|
@@ -1,15 +1,34 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.ForceUpgrade = exports.RequestKey_AssertAppVersion = void 0;
|
|
4
|
-
const
|
|
24
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
5
25
|
const XhrHttpModule_1 = require("./http/XhrHttpModule");
|
|
6
26
|
const force_upgrade_1 = require("../../shared/force-upgrade");
|
|
7
27
|
const types_1 = require("../../shared/types");
|
|
8
28
|
const tools_1 = require("../utils/tools");
|
|
9
|
-
const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
|
|
10
29
|
exports.RequestKey_AssertAppVersion = "assert-app-version";
|
|
11
|
-
const dispatch_onUpgradeRequired = new
|
|
12
|
-
class ForceUpgrade_Class extends
|
|
30
|
+
const dispatch_onUpgradeRequired = new ts_common_1.Dispatcher("__onUpgradeRequired");
|
|
31
|
+
class ForceUpgrade_Class extends ts_common_1.Module {
|
|
13
32
|
constructor() {
|
|
14
33
|
super("ForceUpgrade");
|
|
15
34
|
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":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,4DAGsC;AACtC,wDAAmD;AACnD,8DAKoC;AACpC,8CAA8C;AAC9C,0CAA2C;AAE9B,QAAA,2BAA2B,GAAG,oBAAoB,CAAC;AAShE,MAAM,0BAA0B,GAAG,IAAI,sBAAU,CAA2C,qBAAqB,CAAC,CAAC;AAEnH,MAAM,kBACL,SAAQ,kBAAc;IAEtB;QACC,KAAK,CAAC,cAAc,CAAC,CAAC;QAQvB,mBAAc,GAAG,GAAG,EAAE;YACrB,6BAAa;iBACX,aAAa,CAA6B,kBAAU,CAAC,GAAG,EAAE,mCAA2B,CAAC;iBACtF,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;iBAC5C,OAAO,CAAC,CAAC,QAAyB,EAAE,EAAE;gBACtC,0BAA0B,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;IAdF,CAAC;IAES,IAAI;QACb,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;IAC5E,CAAC;CAUD;AAEY,QAAA,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by tacb0ss on 27/07/2018.
|
|
3
|
+
*/
|
|
4
|
+
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
5
|
import { History, LocationDescriptorObject } from "history";
|
|
3
|
-
import { QueryParams } from "../../
|
|
6
|
+
import { QueryParams } from "../../index";
|
|
4
7
|
export declare class BrowserHistoryModule_Class extends Module {
|
|
5
8
|
private readonly history;
|
|
6
9
|
constructor();
|
|
@@ -9,7 +12,6 @@ export declare class BrowserHistoryModule_Class extends Module {
|
|
|
9
12
|
private composeQuery;
|
|
10
13
|
private getEncodedQueryParams;
|
|
11
14
|
getQueryParams(): QueryParams;
|
|
12
|
-
getQueryParam(k: string): string | undefined;
|
|
13
15
|
setQuery(queryParams: QueryParams): void;
|
|
14
16
|
addQueryParam(key: string, value: string): void;
|
|
15
17
|
removeQueryParam(key: string): void;
|
|
@@ -1,10 +1,32 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.BrowserHistoryModule = exports.BrowserHistoryModule_Class = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Created by tacb0ss on 27/07/2018.
|
|
26
|
+
*/
|
|
27
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
6
28
|
const history_1 = require("history");
|
|
7
|
-
class BrowserHistoryModule_Class extends
|
|
29
|
+
class BrowserHistoryModule_Class extends ts_common_1.Module {
|
|
8
30
|
constructor() {
|
|
9
31
|
super("BrowserHistoryModule");
|
|
10
32
|
this.getEncodedQueryParams = () => {
|
|
@@ -39,14 +61,14 @@ class BrowserHistoryModule_Class extends module_1.Module {
|
|
|
39
61
|
this.history.replace(push);
|
|
40
62
|
}
|
|
41
63
|
composeQuery(queryParams) {
|
|
42
|
-
const queryAsString =
|
|
64
|
+
const queryAsString = ts_common_1._keys(queryParams).map((key) => `${key}=${queryParams[key]}`).join("&");
|
|
43
65
|
if (queryAsString.length === 0)
|
|
44
66
|
return undefined;
|
|
45
67
|
return queryAsString;
|
|
46
68
|
}
|
|
47
69
|
getQueryParams() {
|
|
48
70
|
const params = this.getEncodedQueryParams();
|
|
49
|
-
|
|
71
|
+
ts_common_1._keys(params).forEach(key => {
|
|
50
72
|
const value = params[key];
|
|
51
73
|
if (!value) {
|
|
52
74
|
delete params[key];
|
|
@@ -56,12 +78,9 @@ class BrowserHistoryModule_Class extends module_1.Module {
|
|
|
56
78
|
});
|
|
57
79
|
return params;
|
|
58
80
|
}
|
|
59
|
-
getQueryParam(k) {
|
|
60
|
-
return this.getQueryParams()[k];
|
|
61
|
-
}
|
|
62
81
|
setQuery(queryParams) {
|
|
63
82
|
const encodedQueryParams = Object.assign({}, queryParams);
|
|
64
|
-
|
|
83
|
+
ts_common_1._keys(encodedQueryParams).forEach(key => {
|
|
65
84
|
const value = encodedQueryParams[key];
|
|
66
85
|
if (!value) {
|
|
67
86
|
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;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH;;GAEG;AACH,4DAGsC;AACtC,qCAIiB;AAGjB,MAAa,0BACZ,SAAQ,kBAAM;IAGd;QACC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAoBvB,0BAAqB,GAAG,GAAgB,EAAE;YACjD,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;gBAC/C,OAAO,EAAE,CAAC;YAEX,OAAO,IAAI,EAAE;gBACZ,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;oBAChC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;qBACvC,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC;oBACtC,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;oBAE3C,MAAM;aACP;YAED,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACxB,MAAM,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AgC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC;IAEO,gCAAgC,CAAC,kBAAgC,EAAE,WAAmB,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACrH,OAAO;YACN,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;SACxE,CAAC;IACH,CAAC;IAEO,iBAAiB,CAAC,kBAA+B;QACxD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,CAAC;QAEvE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IAED,SAAS;QACR,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/B,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD;AA7HD,gEA6HC;AAEY,QAAA,oBAAoB,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by tacb0ss on 27/07/2018.
|
|
3
|
+
*/
|
|
4
|
+
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
5
|
export declare type ResourceId = string;
|
|
3
6
|
export declare class ResourcesModule_Class extends Module {
|
|
4
7
|
private readonly relativePath;
|
|
@@ -1,8 +1,31 @@
|
|
|
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
|
+
*/
|
|
2
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
23
|
exports.ResourcesModule = exports.ResourcesModule_Class = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Created by tacb0ss on 27/07/2018.
|
|
26
|
+
*/
|
|
27
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
28
|
+
class ResourcesModule_Class extends ts_common_1.Module {
|
|
6
29
|
constructor() {
|
|
7
30
|
super("ResourcesModule");
|
|
8
31
|
this.relativePath = "../../res/";
|