@intuitionrobotics/thunderstorm 0.45.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-backend/api/v1/utils/version/_assert.js +0 -20
- package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
- package/app-backend/api/v1/utils/version/assert.js +0 -20
- package/app-backend/api/v1/utils/version/assert.js.map +1 -1
- package/app-backend/core/BaseStorm.d.ts +1 -1
- package/app-backend/core/BaseStorm.js +2 -22
- package/app-backend/core/BaseStorm.js.map +1 -1
- package/app-backend/core/Storm.js +9 -27
- package/app-backend/core/Storm.js.map +1 -1
- package/app-backend/exceptions.d.ts +2 -2
- package/app-backend/exceptions.js +2 -22
- package/app-backend/exceptions.js.map +1 -1
- package/app-backend/modules/CleanupScheduler.js +5 -4
- package/app-backend/modules/CleanupScheduler.js.map +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.d.ts +1 -1
- package/app-backend/modules/FirestoreBackupScheduler.js +23 -9
- package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
- package/app-backend/modules/ForceUpgrade.d.ts +1 -1
- package/app-backend/modules/ForceUpgrade.js +8 -26
- package/app-backend/modules/ForceUpgrade.js.map +1 -1
- package/app-backend/modules/SlackModule.d.ts +2 -4
- package/app-backend/modules/SlackModule.js +9 -30
- package/app-backend/modules/SlackModule.js.map +1 -1
- package/app-backend/modules/http/AxiosHttpModule.js +3 -23
- package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxy.d.ts +2 -1
- package/app-backend/modules/proxy/RemoteProxy.js +11 -30
- package/app-backend/modules/proxy/RemoteProxy.js.map +1 -1
- package/app-backend/modules/proxy/RemoteProxyCaller.d.ts +1 -1
- package/app-backend/modules/proxy/RemoteProxyCaller.js +11 -29
- package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
- package/app-backend/modules/server/HttpServer.d.ts +2 -1
- package/app-backend/modules/server/HttpServer.js +9 -31
- package/app-backend/modules/server/HttpServer.js.map +1 -1
- package/app-backend/modules/server/server-api.d.ts +3 -1
- package/app-backend/modules/server/server-api.js +27 -25
- package/app-backend/modules/server/server-api.js.map +1 -1
- package/app-backend/modules/server/server-errors.d.ts +1 -1
- package/app-backend/modules/server/server-errors.js +7 -26
- package/app-backend/modules/server/server-errors.js.map +1 -1
- package/app-backend/utils/LogClient_File.d.ts +2 -2
- package/app-backend/utils/LogClient_File.js +12 -30
- package/app-backend/utils/LogClient_File.js.map +1 -1
- package/app-backend/utils/file.js +0 -20
- package/app-backend/utils/file.js.map +1 -1
- package/app-backend/utils/promisify-request.js +2 -22
- package/app-backend/utils/promisify-request.js.map +1 -1
- package/app-backend/utils/to-be-removed.js +0 -20
- package/app-backend/utils/to-be-removed.js.map +1 -1
- package/app-backend/utils/types.d.ts +1 -1
- package/app-backend/utils/types.js +2 -22
- package/app-backend/utils/types.js.map +1 -1
- package/app-frontend/components/ActionButton.js +0 -20
- package/app-frontend/components/ActionButton.js.map +1 -1
- package/app-frontend/components/DropDown.js +5 -24
- package/app-frontend/components/DropDown.js.map +1 -1
- package/app-frontend/components/FilterInput.js +4 -23
- package/app-frontend/components/FilterInput.js.map +1 -1
- package/app-frontend/components/GenericSelect.js +0 -20
- package/app-frontend/components/GenericSelect.js.map +1 -1
- package/app-frontend/components/Overlay.js +0 -20
- package/app-frontend/components/Overlay.js.map +1 -1
- package/app-frontend/components/TS_Input.js +3 -23
- package/app-frontend/components/TS_Input.js.map +1 -1
- package/app-frontend/components/TS_Table.d.ts +1 -1
- package/app-frontend/components/TS_Table.js +0 -20
- package/app-frontend/components/TS_Table.js.map +1 -1
- package/app-frontend/components/TS_TextArea.js +0 -20
- package/app-frontend/components/TS_TextArea.js.map +1 -1
- package/app-frontend/components/adapter/Adapter.js +6 -26
- package/app-frontend/components/adapter/Adapter.js.map +1 -1
- package/app-frontend/components/adapter/BaseRenderer.js +0 -20
- package/app-frontend/components/adapter/BaseRenderer.js.map +1 -1
- package/app-frontend/components/checkbox/TS_Checkbox.d.ts +2 -2
- package/app-frontend/components/checkbox/TS_Checkbox.js +2 -1
- package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
- package/app-frontend/components/checkbox/TS_CheckboxField.js +0 -18
- package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
- package/app-frontend/components/form/Form.d.ts +2 -1
- package/app-frontend/components/form/Form.js +2 -22
- package/app-frontend/components/form/Form.js.map +1 -1
- package/app-frontend/components/form/types.d.ts +2 -1
- package/app-frontend/components/form/types.js +0 -20
- package/app-frontend/components/form/types.js.map +1 -1
- package/app-frontend/components/playground/Example_NewProps.js +0 -20
- package/app-frontend/components/playground/Example_NewProps.js.map +1 -1
- package/app-frontend/components/playground/Playground.js +1 -21
- package/app-frontend/components/playground/Playground.js.map +1 -1
- package/app-frontend/components/tree/MenuComponent.js +2 -22
- package/app-frontend/components/tree/MenuComponent.js.map +1 -1
- package/app-frontend/components/tree/MultiTypeAdaptor.js +2 -22
- package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +0 -20
- package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
- package/app-frontend/components/tree/Tree.js +3 -23
- package/app-frontend/components/tree/Tree.js.map +1 -1
- package/app-frontend/components/tree/types.js +0 -20
- package/app-frontend/components/tree/types.js.map +1 -1
- package/app-frontend/components/treeicons.js.map +1 -1
- package/app-frontend/components/types.js +0 -20
- package/app-frontend/components/types.js.map +1 -1
- package/app-frontend/core/AbstractThunder.d.ts +0 -3
- package/app-frontend/core/AbstractThunder.js +0 -32
- package/app-frontend/core/AbstractThunder.js.map +1 -1
- package/app-frontend/core/AppPage.js +0 -20
- package/app-frontend/core/AppPage.js.map +1 -1
- package/app-frontend/core/AppWrapper.js +2 -23
- package/app-frontend/core/AppWrapper.js.map +1 -1
- package/app-frontend/core/BaseComponent.d.ts +2 -4
- package/app-frontend/core/BaseComponent.js +18 -41
- package/app-frontend/core/BaseComponent.js.map +1 -1
- package/app-frontend/core/SimpleScriptInjector.js +2 -22
- package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
- package/app-frontend/core/Thunder.js +3 -22
- package/app-frontend/core/Thunder.js.map +1 -1
- package/app-frontend/core/thunder-dispatcher.d.ts +2 -1
- package/app-frontend/core/thunder-dispatcher.js +13 -23
- package/app-frontend/core/thunder-dispatcher.js.map +1 -1
- package/app-frontend/modules/ConnectivityModule.d.ts +1 -1
- package/app-frontend/modules/ConnectivityModule.js +2 -2
- package/app-frontend/modules/ConnectivityModule.js.map +1 -1
- package/app-frontend/modules/ForceUpgrade.d.ts +1 -1
- package/app-frontend/modules/ForceUpgrade.js +4 -23
- package/app-frontend/modules/ForceUpgrade.js.map +1 -1
- package/app-frontend/modules/HistoryModule.d.ts +3 -5
- package/app-frontend/modules/HistoryModule.js +9 -28
- package/app-frontend/modules/HistoryModule.js.map +1 -1
- package/app-frontend/modules/ResourcesModule.d.ts +1 -4
- package/app-frontend/modules/ResourcesModule.js +2 -25
- package/app-frontend/modules/ResourcesModule.js.map +1 -1
- package/app-frontend/modules/StorageModule.d.ts +1 -4
- package/app-frontend/modules/StorageModule.js +4 -26
- package/app-frontend/modules/StorageModule.js.map +1 -1
- package/app-frontend/modules/ThunderstormModule.d.ts +1 -1
- package/app-frontend/modules/ThunderstormModule.js +3 -3
- package/app-frontend/modules/ThunderstormModule.js.map +1 -1
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js +0 -20
- package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js.map +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.d.ts +1 -1
- package/app-frontend/modules/component-loader/entry-component-loading-module.js +4 -25
- package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
- package/app-frontend/modules/dialog/Dialog.js +0 -22
- package/app-frontend/modules/dialog/Dialog.js.map +1 -1
- package/app-frontend/modules/dialog/DialogModule.d.ts +1 -1
- package/app-frontend/modules/dialog/DialogModule.js +2 -22
- package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
- package/app-frontend/modules/http/HttpClient.js +0 -20
- package/app-frontend/modules/http/HttpClient.js.map +1 -1
- package/app-frontend/modules/http/XhrHttpModule.js +9 -10
- package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
- package/app-frontend/modules/locale/LocaleModule.d.ts +1 -4
- package/app-frontend/modules/locale/LocaleModule.js +5 -24
- package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
- package/app-frontend/modules/locale/types.d.ts +0 -3
- package/app-frontend/modules/locale/types.js +0 -20
- package/app-frontend/modules/locale/types.js.map +1 -1
- package/app-frontend/modules/menu/MenuAndButton.js +2 -2
- package/app-frontend/modules/menu/MenuAndButton.js.map +1 -1
- package/app-frontend/modules/menu/MenuModule.d.ts +1 -1
- package/app-frontend/modules/menu/MenuModule.js +4 -3
- package/app-frontend/modules/menu/MenuModule.js.map +1 -1
- package/app-frontend/modules/menu/PopupMenu.js +2 -2
- package/app-frontend/modules/menu/PopupMenu.js.map +1 -1
- package/app-frontend/modules/routing/RoutingModule.d.ts +1 -1
- package/app-frontend/modules/routing/RoutingModule.js +6 -25
- package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
- package/app-frontend/modules/routing/route.js +0 -20
- package/app-frontend/modules/routing/route.js.map +1 -1
- package/app-frontend/modules/toaster/BaseToaster.js +0 -22
- package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
- package/app-frontend/modules/toaster/Toaster.js +0 -20
- package/app-frontend/modules/toaster/Toaster.js.map +1 -1
- package/app-frontend/modules/toaster/ToasterModule.d.ts +1 -1
- package/app-frontend/modules/toaster/ToasterModule.js +5 -25
- package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
- package/app-frontend/modules/tooltip/Tooltip.js +2 -22
- package/app-frontend/modules/tooltip/Tooltip.js.map +1 -1
- package/app-frontend/modules/tooltip/TooltipModule.d.ts +1 -1
- package/app-frontend/modules/tooltip/TooltipModule.js +4 -23
- package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
- package/app-frontend/tools/KeyboardListener.js +0 -17
- package/app-frontend/tools/KeyboardListener.js.map +1 -1
- package/app-frontend/tools/Stylable.js +0 -20
- package/app-frontend/tools/Stylable.js.map +1 -1
- package/app-frontend/types/renderer-map.js +0 -20
- package/app-frontend/types/renderer-map.js.map +1 -1
- package/app-frontend/utils/tools.js +3 -23
- package/app-frontend/utils/tools.js.map +1 -1
- package/index.d.ts +0 -6
- package/index.js +0 -37
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/shared/BaseHttpModule.d.ts +1 -1
- package/shared/BaseHttpModule.js +6 -5
- package/shared/BaseHttpModule.js.map +1 -1
- package/shared/BaseHttpRequest.js +9 -27
- package/shared/BaseHttpRequest.js.map +1 -1
- package/shared/consts.js +0 -20
- package/shared/consts.js.map +1 -1
- package/shared/force-upgrade.js +0 -20
- package/shared/force-upgrade.js.map +1 -1
- package/shared/request-types.js +0 -20
- package/shared/request-types.js.map +1 -1
- package/shared/types.js +0 -20
- package/shared/types.js.map +1 -1
- package/test-backend/StormTester.js +6 -26
- package/test-backend/StormTester.js.map +1 -1
- package/test-frontend/ThunderTester.js +0 -20
- package/test-frontend/ThunderTester.js.map +1 -1
- package/app-backend/modules/_imports.d.ts +0 -10
- package/app-backend/modules/_imports.js +0 -43
- package/app-backend/modules/_imports.js.map +0 -1
- package/app-frontend/components/GenericTabs.d.ts +0 -4
- package/app-frontend/components/GenericTabs.js +0 -11
- package/app-frontend/components/GenericTabs.js.map +0 -1
- package/backend-test.d.ts +0 -1
- package/backend-test.js +0 -34
- package/backend-test.js.map +0 -1
- package/backend.d.ts +0 -17
- package/backend.js +0 -50
- package/backend.js.map +0 -1
- package/frontend.d.ts +0 -55
- package/frontend.js +0 -88
- package/frontend.js.map +0 -1
|
@@ -1,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.Toaster = void 0;
|
|
24
4
|
const React = require("react");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/toaster/Toaster.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/toaster/Toaster.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,+CAGuB;AAEvB,MAAa,OACZ,SAAQ,yBAAW;IAEnB,YAAY,KAAiB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAES,aAAa,CAAC,KAAkB;QACzC,MAAM,UAAU,GAAG,KAAK,CAAC,kBAAkB,CAAC;QAC5C,MAAM,QAAQ,GAAG,KAAK,CAAC,gBAAgB,CAAC;QAExC,MAAM,KAAK,GAAkB;YAC5B,cAAc,EAAE,eAAe;YAC/B,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE,KAAK;YACpB,SAAS,EAAE,mEAAmE;YAC9E,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,KAAK,CAAC,OAAO;YACzB,MAAM,EAAE,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACxC,GAAG,EAAE,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO;YACrC,IAAI,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;YAC3E,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC9E,SAAS,EAAE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO;YACjE,MAAM,EAAE,IAAI;SACZ,CAAC;QAEF,OAAO,CACN,6BAAK,SAAS,EAAE,UAAU,KAAK,CAAC,SAAS,EAAE,EAAE,KAAK,kCAAM,KAAK,GAAK,KAAK,CAAC,KAAK;YAC3E,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,6BAAK,uBAAuB,EAAE,EAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO;YAC5G,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CACrB,CACN,CAAA;IACF,CAAC;CACD;AAlCD,0BAkCC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
3
3
|
import { Stylable, StylableBuilder } from "../../tools/Stylable";
|
|
4
4
|
import { Color } from "../../components/types";
|
|
5
5
|
export declare enum ToastType {
|
|
@@ -1,37 +1,17 @@
|
|
|
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.ToastModule = exports.ToastModule_Class = exports.ToastBuilder = exports.ToastType = void 0;
|
|
24
|
-
const
|
|
25
|
-
// noinspection TypeScriptPreferShortImport
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
26
5
|
const thunder_dispatcher_1 = require("../../core/thunder-dispatcher");
|
|
27
6
|
const Stylable_1 = require("../../tools/Stylable");
|
|
7
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
28
8
|
var ToastType;
|
|
29
9
|
(function (ToastType) {
|
|
30
10
|
ToastType[ToastType["success"] = 0] = "success";
|
|
31
11
|
ToastType[ToastType["error"] = 1] = "error";
|
|
32
12
|
ToastType[ToastType["info"] = 2] = "info";
|
|
33
13
|
})(ToastType = exports.ToastType || (exports.ToastType = {}));
|
|
34
|
-
const Interval_DefaultToast = 6 *
|
|
14
|
+
const Interval_DefaultToast = 6 * date_time_tools_1.Second;
|
|
35
15
|
class ToastBuilder extends Stylable_1.StylableBuilder {
|
|
36
16
|
constructor() {
|
|
37
17
|
super(...arguments);
|
|
@@ -64,7 +44,7 @@ class ToastBuilder extends Stylable_1.StylableBuilder {
|
|
|
64
44
|
return this;
|
|
65
45
|
}
|
|
66
46
|
addActions(...actions) {
|
|
67
|
-
|
|
47
|
+
this.actions.push(...actions);
|
|
68
48
|
return this;
|
|
69
49
|
}
|
|
70
50
|
setVerticalPosition(positionVertical) {
|
|
@@ -93,7 +73,7 @@ class ToastBuilder extends Stylable_1.StylableBuilder {
|
|
|
93
73
|
}
|
|
94
74
|
exports.ToastBuilder = ToastBuilder;
|
|
95
75
|
const dispatch_showToast = new thunder_dispatcher_1.ThunderDispatcher("__showToast");
|
|
96
|
-
class ToastModule_Class extends
|
|
76
|
+
class ToastModule_Class extends module_1.Module {
|
|
97
77
|
constructor() {
|
|
98
78
|
super("ToastModule");
|
|
99
79
|
this.DefaultBuilder = new ToastBuilder();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToasterModule.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/toaster/ToasterModule.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToasterModule.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/toaster/ToasterModule.tsx"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,sEAAgE;AAChE,mDAAiE;AAEjE,wFAA4E;AAE5E,IAAY,SAIX;AAJD,WAAY,SAAS;IACpB,+CAAS,CAAA;IACT,2CAAO,CAAA;IACP,yCAAM,CAAA;AACP,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAoBD,MAAM,qBAAqB,GAAG,CAAC,GAAG,wBAAM,CAAC;AAEzC,MAAa,YACZ,SAAQ,0BAAe;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M,SAAS,CAAC,WAA4B,EAAE,WAAmB,qBAAqB;QACtF,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAEO,KAAK,CAAC,QAAyB,EAAE,IAAe,EAAE,WAAmB,qBAAqB;QACjG,IAAI,KAAY,CAAC;QACjB,QAAQ,IAAI,EAAE;YACb,KAAK,SAAS,CAAC,OAAO;gBACrB,KAAK,GAAG,SAAS,CAAC;gBAClB,MAAM;YAEP,KAAK,SAAS,CAAC,KAAK;gBACnB,KAAK,GAAG,SAAS,CAAC;gBAClB,MAAM;YAEP,KAAK,SAAS,CAAC,IAAI;gBAClB,KAAK,GAAG,SAAS,CAAC;gBAClB,MAAM;YAEP;gBACC,KAAK,GAAG,SAAS,CAAC;gBAClB,MAAM;SACP;QAED,IAAI,OAAO,GAAG,QAAQ,CAAC;QACvB,IAAI,OAAO,QAAQ,KAAK,QAAQ;YAC/B,OAAO,GAAG,mBAAW,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAErD,qCAAqC;QACrC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IACzG,CAAC;IA+BO,SAAS,CAAC,KAAkB;QACnC,kBAAkB,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA;IACvC,CAAC;CACD;AAnFD,8CAmFC;AAEY,QAAA,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,30 +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.Tooltip = exports.TooltipDefaultStyle = void 0;
|
|
24
4
|
const React = require("react");
|
|
25
5
|
const TooltipModule_1 = require("./TooltipModule");
|
|
26
6
|
const BaseComponent_1 = require("../../core/BaseComponent");
|
|
27
|
-
const
|
|
7
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
28
8
|
exports.TooltipDefaultStyle = {
|
|
29
9
|
backgroundColor: "#f9f9f9",
|
|
30
10
|
borderRadius: "3px",
|
|
@@ -47,7 +27,7 @@ class Tooltip extends BaseComponent_1.BaseComponent {
|
|
|
47
27
|
return;
|
|
48
28
|
if (this.timeoutInterval)
|
|
49
29
|
clearTimeout(this.timeoutInterval);
|
|
50
|
-
this.timeoutInterval =
|
|
30
|
+
this.timeoutInterval = date_time_tools_1._setTimeout(TooltipModule_1.TooltipModule.hide, duration, model);
|
|
51
31
|
};
|
|
52
32
|
this.state = {};
|
|
53
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/tooltip/Tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.js","source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CAAC;QAC/C,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAGhD,MAAM,aAAa,GAAG;YACrB,GAAG,EAAE,GAAG,GAAG,IAAI;YACf,IAAI,EAAE,GAAG,IAAI,IAAI;SACjB,CAAC;QACF,OAAO,6BAAK,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,kCAAM,CAAC,KAAK,CAAC,KAAK,IAAI,2BAAmB,CAAC,GAAK,aAAa,KACzG,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,6BAAK,uBAAuB,EAAE,EAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CACxG,CAAA;IACP,CAAC;CACD;AA7CD,0BA6CC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
3
3
|
import { Stylable, StylableBuilder } from "../../tools/Stylable";
|
|
4
4
|
export declare type Tooltip_Model = Stylable & {
|
|
5
5
|
content: React.ReactNode;
|
|
@@ -1,32 +1,13 @@
|
|
|
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.TooltipBuilder = exports.TooltipModule = exports.TooltipModule_Class = void 0;
|
|
24
|
-
const
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
25
5
|
const thunder_dispatcher_1 = require("../../core/thunder-dispatcher");
|
|
26
6
|
const Stylable_1 = require("../../tools/Stylable");
|
|
7
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
27
8
|
const dispatch_showTooltip = new thunder_dispatcher_1.ThunderDispatcher("__showTooltip");
|
|
28
|
-
const Interval_DefaultTooltip = 6 *
|
|
29
|
-
class TooltipModule_Class extends
|
|
9
|
+
const Interval_DefaultTooltip = 6 * date_time_tools_1.Second;
|
|
10
|
+
class TooltipModule_Class extends module_1.Module {
|
|
30
11
|
constructor() {
|
|
31
12
|
super("TooltipModule");
|
|
32
13
|
this.show = (tooltip, e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipModule.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/tooltip/TooltipModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TooltipModule.js","sourceRoot":"","sources":["../../../../src/main/app-frontend/modules/tooltip/TooltipModule.ts"],"names":[],"mappings":";;;AAEA,qEAAgE;AAChE,sEAAgE;AAChE,mDAA+D;AAC/D,wFAA0E;AAe1E,MAAM,oBAAoB,GAAG,IAAI,sCAAiB,CAAmC,eAAe,CAAC,CAAC;AACtG,MAAM,uBAAuB,GAAG,CAAC,GAAG,wBAAM,CAAC;AAE3C,MAAa,mBACT,SAAQ,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AAI,CAAC,SAAS;gBACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aAC1B,CAAC;YAEF,qBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC,CAAA;QA7BG,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC;YACD,IAAI,CAAC,QAAQ,GAAG;gBACZ,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;gBACf,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;aAClB,CAAA;IACT,CAAC;CAwBJ;AAxCD,wCAwCC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* A typescript & react boilerplate with api call example
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
exports.KeyboardListener = void 0;
|
|
21
4
|
const React = require("react");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardListener.js","sourceRoot":"","sources":["../../../src/main/app-frontend/tools/KeyboardListener.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyboardListener.js","sourceRoot":"","sources":["../../../src/main/app-frontend/tools/KeyboardListener.tsx"],"names":[],"mappings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EACpD,GAAG,EAAE,CAAC,IAAoB,EAAE,EAAE;gBAC7B,IAAI,IAAI,CAAC,IAAI;oBACZ,OAAO;gBAER,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;gBACjB,IAAI,CAAC,WAAW,EAAE,CAAC;YACpB,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAClB,IAAI,CAAC,KAAK,CAAC,QAAQ,CACf,CAAA;IACP,CAAC;CACD;AAjDD,4CAiDC"}
|
|
@@ -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.StylableBuilder = void 0;
|
|
24
4
|
class StylableBuilder {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stylable.js","sourceRoot":"","sources":["../../../src/main/app-frontend/tools/Stylable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stylable.js","sourceRoot":"","sources":["../../../src/main/app-frontend/tools/Stylable.ts"],"names":[],"mappings":";;;AAOA,MAAa,eAAe;IAI3B,QAAQ,CAAC,KAAoB;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,QAAQ,CAAC,KAAoB;QAC5B,IAAI,CAAC,IAAI,CAAC,KAAK;YACd,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,KAAK,mCAAO,IAAI,CAAC,KAAK,GAAK,KAAK,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,YAAY,CAAC,SAAiB;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,KAAK;QACJ,MAAM,SAAS,GAAa;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SACzB,CAAA;QAED,OAAO,SAAS,CAAC;IAClB,CAAC;CACD;AAnCD,0CAmCC"}
|
|
@@ -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
|
// import * as React from "react";
|
|
23
3
|
//
|
|
24
4
|
// export type InferItemType<R> = R extends Renderer<infer Item> ? Item : "Make sure the Renderer Renders the correct item type e.g. (props:{item:Item}) => React.ReactNode";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-map.js","sourceRoot":"","sources":["../../../src/main/app-frontend/types/renderer-map.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"renderer-map.js","sourceRoot":"","sources":["../../../src/main/app-frontend/types/renderer-map.tsx"],"names":[],"mappings":";AAEA,kCAAkC;AAClC,EAAE;AACF,6KAA6K;AAC7K,EAAE;AACF,iEAAiE;AACjE,EAAE;AACF,mDAAmD;AACnD,4BAA4B;AAC5B,IAAI;AACJ,EAAE;AACF,kHAAkH;AAClH,cAAc;AACd,WAAW;AACX,IAAI;AACJ,EAAE;AACF,8GAA8G;AAC9G,mBAAmB;AACnB,qBAAqB;AACrB,IAAI"}
|
|
@@ -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.stopPropagation = exports.convertBase64ToFile = exports.browserType = void 0;
|
|
24
|
-
const
|
|
4
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
25
5
|
function browserType() {
|
|
26
6
|
if (navigator === null || navigator === void 0 ? void 0 : navigator.vendor.includes("Google")) {
|
|
27
7
|
return 'chrome';
|
|
28
8
|
}
|
|
29
|
-
throw new
|
|
9
|
+
throw new exceptions_1.BadImplementationException("No matching browser detected");
|
|
30
10
|
}
|
|
31
11
|
exports.browserType = browserType;
|
|
32
12
|
function convertBase64ToFile(fileName, base64, _mimeType) {
|
|
@@ -34,7 +14,7 @@ function convertBase64ToFile(fileName, base64, _mimeType) {
|
|
|
34
14
|
const match = arr[0].match(/:(.*?);/);
|
|
35
15
|
const mimeType = (match && match[1]) || (_mimeType && _mimeType);
|
|
36
16
|
if (!mimeType)
|
|
37
|
-
throw new
|
|
17
|
+
throw new exceptions_1.ImplementationMissingException("Could not extract mime type from data...");
|
|
38
18
|
const bstr = atob(arr[1]);
|
|
39
19
|
let n = bstr.length;
|
|
40
20
|
const u8arr = new Uint8Array(n);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/main/app-frontend/utils/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/main/app-frontend/utils/tools.ts"],"names":[],"mappings":";;;AACA,6EAGsD;AAGtD,SAAgB,WAAW;IAC1B,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,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derstorm 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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
25
|
-
}) : (function(o, m, k, k2) {
|
|
26
|
-
if (k2 === undefined) k2 = k;
|
|
27
|
-
o[k2] = m[k];
|
|
28
|
-
}));
|
|
29
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
30
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31
|
-
};
|
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
__exportStar(require("./shared/types"), exports);
|
|
34
|
-
__exportStar(require("./shared/request-types"), exports);
|
|
35
|
-
__exportStar(require("./shared/force-upgrade"), exports);
|
|
36
|
-
__exportStar(require("./shared/consts"), exports);
|
|
37
|
-
__exportStar(require("./shared/BaseHttpRequest"), exports);
|
|
38
|
-
__exportStar(require("./shared/BaseHttpModule"), exports);
|
|
39
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/thunderstorm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.00",
|
|
4
4
|
"description": "Thunderstorm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build": "tsc"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@intuitionrobotics/firebase": "~0.
|
|
31
|
-
"@intuitionrobotics/ts-common": "~0.
|
|
30
|
+
"@intuitionrobotics/firebase": "~0.46.0",
|
|
31
|
+
"@intuitionrobotics/ts-common": "~0.46.0",
|
|
32
32
|
"@slack/web-api": "^5.1.0",
|
|
33
33
|
"axios": "^1.4.0",
|
|
34
34
|
"body-parser": "^1.19.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-select": "^4.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@intuitionrobotics/testelot": "~0.
|
|
45
|
+
"@intuitionrobotics/testelot": "~0.46.0",
|
|
46
46
|
"@types/compression": "^1.7.0",
|
|
47
47
|
"@types/express": "^4.16.1",
|
|
48
48
|
"@types/history": "^4.7.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiTypeBinder, HttpMethod } from "./types";
|
|
2
|
-
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
|
+
import { Module } from "@intuitionrobotics/ts-common/core/module";
|
|
3
3
|
import { RequestErrorHandler, RequestSuccessHandler, ResponseHandler } from "./request-types";
|
|
4
4
|
import { BaseHttpRequest } from "./BaseHttpRequest";
|
|
5
5
|
declare type HttpConfig = {
|
package/shared/BaseHttpModule.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseHttpModule_Class = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const module_1 = require("@intuitionrobotics/ts-common/core/module");
|
|
5
|
+
const array_tools_1 = require("@intuitionrobotics/ts-common/utils/array-tools");
|
|
6
|
+
class BaseHttpModule_Class extends module_1.Module {
|
|
6
7
|
constructor(name) {
|
|
7
8
|
super(name);
|
|
8
9
|
this.defaultErrorHandlers = [];
|
|
@@ -38,7 +39,7 @@ class BaseHttpModule_Class extends ts_common_1.Module {
|
|
|
38
39
|
successHandler(request);
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
|
-
this.
|
|
42
|
+
this.setConfig({ compress: true });
|
|
42
43
|
}
|
|
43
44
|
init() {
|
|
44
45
|
this.timeout = this.config.timeout || this.timeout;
|
|
@@ -50,10 +51,10 @@ class BaseHttpModule_Class extends ts_common_1.Module {
|
|
|
50
51
|
this.defaultHeaders[key.toLowerCase()] = header;
|
|
51
52
|
}
|
|
52
53
|
addDefaultResponseHandler(defaultResponseHandler) {
|
|
53
|
-
|
|
54
|
+
this.defaultResponseHandler.push(defaultResponseHandler);
|
|
54
55
|
}
|
|
55
56
|
removeDefaultResponseHandler(defaultResponseHandler) {
|
|
56
|
-
|
|
57
|
+
array_tools_1.removeItemFromArray(this.defaultResponseHandler, defaultResponseHandler);
|
|
57
58
|
}
|
|
58
59
|
setErrorHandlers(defaultErrorHandlers) {
|
|
59
60
|
this.defaultErrorHandlers = defaultErrorHandlers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseHttpModule.js","sourceRoot":"","sources":["../../src/main/shared/BaseHttpModule.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":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11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BaseHttpRequest = void 0;
|
|
13
|
-
|
|
14
|
-
* Thunderstorm is a full web app framework!
|
|
15
|
-
*
|
|
16
|
-
* Typescript & Express backend infrastructure that natively runs on firebase function
|
|
17
|
-
* Typescript & React frontend infrastructure
|
|
18
|
-
*
|
|
19
|
-
* Copyright (C) 2020 Intuition Robotics
|
|
20
|
-
*
|
|
21
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
22
|
-
* you may not use this file except in compliance with the License.
|
|
23
|
-
* You may obtain a copy of the License at
|
|
24
|
-
*
|
|
25
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
-
*
|
|
27
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
28
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
30
|
-
* See the License for the specific language governing permissions and
|
|
31
|
-
* limitations under the License.
|
|
32
|
-
*/
|
|
33
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
13
|
+
const object_tools_1 = require("@intuitionrobotics/ts-common/utils/object-tools");
|
|
34
14
|
const types_1 = require("./types");
|
|
35
15
|
const request_types_1 = require("./request-types");
|
|
16
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
17
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
36
18
|
class BaseHttpRequest {
|
|
37
19
|
constructor(requestKey, requestData) {
|
|
38
20
|
this.headers = {};
|
|
@@ -61,7 +43,7 @@ class BaseHttpRequest {
|
|
|
61
43
|
}
|
|
62
44
|
// I want this to follow through
|
|
63
45
|
default:
|
|
64
|
-
throw new
|
|
46
|
+
throw new exceptions_1.BadImplementationException("Headers values can only be of type: (() => string | string[]) | string | string[] ");
|
|
65
47
|
}
|
|
66
48
|
});
|
|
67
49
|
};
|
|
@@ -129,7 +111,7 @@ class BaseHttpRequest {
|
|
|
129
111
|
setUrlParams(params) {
|
|
130
112
|
if (!params)
|
|
131
113
|
return this;
|
|
132
|
-
|
|
114
|
+
object_tools_1._keys(params).forEach((key) => {
|
|
133
115
|
const param = params[key];
|
|
134
116
|
return param && typeof param === "string" && this.setUrlParam(key, param);
|
|
135
117
|
});
|
|
@@ -146,7 +128,7 @@ class BaseHttpRequest {
|
|
|
146
128
|
}
|
|
147
129
|
setRelativeUrl(relativeUrl) {
|
|
148
130
|
if (!this.origin)
|
|
149
|
-
throw new
|
|
131
|
+
throw new exceptions_1.BadImplementationException('if you want to use relative urls, you need to set an origin');
|
|
150
132
|
this.url = this.origin + relativeUrl;
|
|
151
133
|
return this;
|
|
152
134
|
}
|
|
@@ -209,13 +191,13 @@ class BaseHttpRequest {
|
|
|
209
191
|
asJson() {
|
|
210
192
|
const response = this.getResponse();
|
|
211
193
|
if (!response)
|
|
212
|
-
throw new
|
|
194
|
+
throw new exceptions_1.BadImplementationException("No xhr.response...");
|
|
213
195
|
return JSON.parse(response);
|
|
214
196
|
}
|
|
215
197
|
asText() {
|
|
216
198
|
const response = this.getResponse();
|
|
217
199
|
if (!response)
|
|
218
|
-
throw new
|
|
200
|
+
throw new exceptions_1.BadImplementationException("No xhr object... maybe you didn't wait for the request to return??");
|
|
219
201
|
return response;
|
|
220
202
|
}
|
|
221
203
|
resolveResponse() {
|
|
@@ -282,7 +264,7 @@ class BaseHttpRequest {
|
|
|
282
264
|
this.handleRequestSuccess(this);
|
|
283
265
|
resolve();
|
|
284
266
|
});
|
|
285
|
-
|
|
267
|
+
date_time_tools_1._setTimeout(() => {
|
|
286
268
|
const label = this.label || `http request: ${this.key}`;
|
|
287
269
|
new Promise(toCall)
|
|
288
270
|
.then(() => console.log(`Async call completed: ${label}`))
|