orc-shared 1.1.2 → 1.2.0-dev.12
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/actions/modules.js +63 -1
- package/dist/actions/scopes.js +59 -22
- package/dist/components/AppFrame/About.js +8 -3
- package/dist/components/AppFrame/MenuItem.js +5 -14
- package/dist/components/AppFrame/Sidebar.js +19 -8
- package/dist/components/ApplicationModuleLoader.js +143 -0
- package/dist/components/Authenticate.js +12 -12
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +113 -0
- package/dist/components/MaterialUI/muiThemes.js +5 -0
- package/dist/components/Modules.js +126 -41
- package/dist/components/Routing/FullPage.js +3 -1
- package/dist/components/Routing/Page.js +5 -3
- package/dist/components/Routing/Segment.js +1 -1
- package/dist/components/Routing/withWaypointing.js +6 -2
- package/dist/components/Scope/useScopeConfirmationModalState.js +7 -16
- package/dist/components/Scope/useScopeData.js +4 -13
- package/dist/constants.js +19 -2
- package/dist/content/icons/lock.svg +3 -0
- package/dist/content/icons/orckestra-icon.svg +5 -0
- package/dist/content/icons/unlock.svg +3 -0
- package/dist/content/iconsSheet.svg +11 -0
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/reducers/modules.js +39 -1
- package/dist/reducers/scopes.js +27 -0
- package/dist/reducers/settings.js +31 -2
- package/dist/selectors/authentication.js +57 -18
- package/dist/selectors/modules.js +15 -1
- package/dist/selectors/scope.js +7 -1
- package/dist/selectors/settings.js +13 -1
- package/package.json +6 -5
- package/src/actions/modules.js +30 -0
- package/src/actions/modules.test.js +50 -1
- package/src/actions/scopes.js +33 -7
- package/src/actions/scopes.test.js +84 -14
- package/src/components/AppFrame/About.js +10 -3
- package/src/components/AppFrame/AppFrame.test.js +9 -0
- package/src/components/AppFrame/MenuItem.js +3 -5
- package/src/components/AppFrame/MenuItem.test.js +2 -24
- package/src/components/AppFrame/Sidebar.js +11 -12
- package/src/components/AppFrame/Sidebar.test.js +18 -0
- package/src/components/ApplicationModuleLoader.js +52 -0
- package/src/components/ApplicationModuleLoader.test.js +149 -0
- package/src/components/Authenticate.js +5 -4
- package/src/components/Authenticate.test.js +23 -4
- package/src/components/MaterialUI/Navigation/ExternalLink.js +25 -0
- package/src/components/MaterialUI/Navigation/ExternalLink.test.js +26 -0
- package/src/components/MaterialUI/muiThemes.js +5 -0
- package/src/components/Modules.js +103 -20
- package/src/components/Modules.test.js +315 -28
- package/src/components/Provision.test.js +34 -0
- package/src/components/Routing/FullPage.js +2 -1
- package/src/components/Routing/FullPage.test.js +23 -0
- package/src/components/Routing/Page.js +2 -2
- package/src/components/Routing/Page.test.js +20 -0
- package/src/components/Routing/Segment.js +1 -1
- package/src/components/Routing/withWaypointing.js +2 -2
- package/src/components/Routing/withWaypointing.test.js +33 -5
- package/src/components/Scope/useScopeConfirmationModalState.js +5 -16
- package/src/components/Scope/useScopeConfirmationModalState.test.js +39 -13
- package/src/components/Scope/useScopeData.js +0 -3
- package/src/components/Scope/useScopeData.test.js +0 -27
- package/src/constants.js +15 -0
- package/src/content/icons/lock.svg +3 -0
- package/src/content/icons/orckestra-icon.svg +5 -0
- package/src/content/icons/unlock.svg +3 -0
- package/src/content/iconsSheet.svg +11 -0
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hocs/withScopeData.test.js +0 -31
- package/src/reducers/modules.js +48 -2
- package/src/reducers/modules.test.js +117 -2
- package/src/reducers/scopes.js +30 -0
- package/src/reducers/scopes.test.js +45 -1
- package/src/reducers/settings.js +26 -2
- package/src/reducers/settings.test.js +74 -6
- package/src/selectors/authentication.js +53 -27
- package/src/selectors/authentication.test.js +600 -12
- package/src/selectors/modules.js +7 -0
- package/src/selectors/modules.test.js +16 -1
- package/src/selectors/scope.js +2 -0
- package/src/selectors/scope.test.js +5 -0
- package/src/selectors/settings.js +6 -0
- package/src/translations/en-US.json +1 -1
- package/src/translations/fr-CA.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ This library provides the [infrastructure](docs/infrastructure.md) to construct
|
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|
|
13
|
-
Copyright ©
|
|
13
|
+
Copyright © 2022 Orckestra Technologies Inc.
|
|
14
14
|
|
|
15
15
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
16
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/actions/modules.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.setModulesStructure = exports.SET_MODULES_STRUCTURE = void 0;
|
|
4
|
+
exports.setRoutingPerformed = exports.setNewScopeAndModuleName = exports.setModulesStructure = exports.setModuleAsVisible = exports.initializeFirstModuleScope = exports.SET_ROUTING_PERFORMED = exports.SET_NEW_SCOPE_AND_MODULE_NAME = exports.SET_MODULE_AS_VISIBLE = exports.SET_MODULES_STRUCTURE = exports.INITIALIZE_FIRST_MODULE_SCOPE = void 0;
|
|
5
5
|
|
|
6
6
|
(function () {
|
|
7
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -32,6 +32,52 @@ var setModulesStructure = function setModulesStructure(modules) {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
exports.setModulesStructure = setModulesStructure;
|
|
35
|
+
var SET_MODULE_AS_VISIBLE = "SET_MODULE_AS_VISIBLE";
|
|
36
|
+
exports.SET_MODULE_AS_VISIBLE = SET_MODULE_AS_VISIBLE;
|
|
37
|
+
|
|
38
|
+
var setModuleAsVisible = function setModuleAsVisible(module) {
|
|
39
|
+
return {
|
|
40
|
+
type: SET_MODULE_AS_VISIBLE,
|
|
41
|
+
payload: module
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.setModuleAsVisible = setModuleAsVisible;
|
|
46
|
+
var INITIALIZE_FIRST_MODULE_SCOPE = "INITIALIZE_FIRST_MODULE_SCOPE";
|
|
47
|
+
exports.INITIALIZE_FIRST_MODULE_SCOPE = INITIALIZE_FIRST_MODULE_SCOPE;
|
|
48
|
+
|
|
49
|
+
var initializeFirstModuleScope = function initializeFirstModuleScope(scope) {
|
|
50
|
+
return {
|
|
51
|
+
type: INITIALIZE_FIRST_MODULE_SCOPE,
|
|
52
|
+
payload: scope
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.initializeFirstModuleScope = initializeFirstModuleScope;
|
|
57
|
+
var SET_NEW_SCOPE_AND_MODULE_NAME = "SET_NEW_SCOPE_AND_MODULE_NAME";
|
|
58
|
+
exports.SET_NEW_SCOPE_AND_MODULE_NAME = SET_NEW_SCOPE_AND_MODULE_NAME;
|
|
59
|
+
|
|
60
|
+
var setNewScopeAndModuleName = function setNewScopeAndModuleName(scope, moduleName) {
|
|
61
|
+
return {
|
|
62
|
+
type: SET_NEW_SCOPE_AND_MODULE_NAME,
|
|
63
|
+
payload: {
|
|
64
|
+
scope: scope,
|
|
65
|
+
moduleName: moduleName
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.setNewScopeAndModuleName = setNewScopeAndModuleName;
|
|
71
|
+
var SET_ROUTING_PERFORMED = "SET_ROUTING_PERFORMED";
|
|
72
|
+
exports.SET_ROUTING_PERFORMED = SET_ROUTING_PERFORMED;
|
|
73
|
+
|
|
74
|
+
var setRoutingPerformed = function setRoutingPerformed() {
|
|
75
|
+
return {
|
|
76
|
+
type: SET_ROUTING_PERFORMED
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.setRoutingPerformed = setRoutingPerformed;
|
|
35
81
|
;
|
|
36
82
|
|
|
37
83
|
(function () {
|
|
@@ -43,6 +89,14 @@ exports.setModulesStructure = setModulesStructure;
|
|
|
43
89
|
|
|
44
90
|
reactHotLoader.register(SET_MODULES_STRUCTURE, "SET_MODULES_STRUCTURE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
45
91
|
reactHotLoader.register(setModulesStructure, "setModulesStructure", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
92
|
+
reactHotLoader.register(SET_MODULE_AS_VISIBLE, "SET_MODULE_AS_VISIBLE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
93
|
+
reactHotLoader.register(setModuleAsVisible, "setModuleAsVisible", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
94
|
+
reactHotLoader.register(INITIALIZE_FIRST_MODULE_SCOPE, "INITIALIZE_FIRST_MODULE_SCOPE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
95
|
+
reactHotLoader.register(initializeFirstModuleScope, "initializeFirstModuleScope", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
96
|
+
reactHotLoader.register(SET_NEW_SCOPE_AND_MODULE_NAME, "SET_NEW_SCOPE_AND_MODULE_NAME", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
97
|
+
reactHotLoader.register(setNewScopeAndModuleName, "setNewScopeAndModuleName", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
98
|
+
reactHotLoader.register(SET_ROUTING_PERFORMED, "SET_ROUTING_PERFORMED", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
99
|
+
reactHotLoader.register(setRoutingPerformed, "setRoutingPerformed", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
46
100
|
})();
|
|
47
101
|
|
|
48
102
|
;
|
|
@@ -63,6 +117,14 @@ exports.setModulesStructure = setModulesStructure;
|
|
|
63
117
|
|
|
64
118
|
reactHotLoader.register(SET_MODULES_STRUCTURE, "SET_MODULES_STRUCTURE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
65
119
|
reactHotLoader.register(setModulesStructure, "setModulesStructure", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
120
|
+
reactHotLoader.register(SET_MODULE_AS_VISIBLE, "SET_MODULE_AS_VISIBLE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
121
|
+
reactHotLoader.register(setModuleAsVisible, "setModuleAsVisible", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
122
|
+
reactHotLoader.register(INITIALIZE_FIRST_MODULE_SCOPE, "INITIALIZE_FIRST_MODULE_SCOPE", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
123
|
+
reactHotLoader.register(initializeFirstModuleScope, "initializeFirstModuleScope", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
124
|
+
reactHotLoader.register(SET_NEW_SCOPE_AND_MODULE_NAME, "SET_NEW_SCOPE_AND_MODULE_NAME", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
125
|
+
reactHotLoader.register(setNewScopeAndModuleName, "setNewScopeAndModuleName", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
126
|
+
reactHotLoader.register(SET_ROUTING_PERFORMED, "SET_ROUTING_PERFORMED", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
127
|
+
reactHotLoader.register(setRoutingPerformed, "setRoutingPerformed", "/home/vsts/work/1/s/src/actions/modules.js");
|
|
66
128
|
})();
|
|
67
129
|
|
|
68
130
|
;
|
package/dist/actions/scopes.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.validateOvertureApplication = exports.getScopes = exports.getDefaultScope = exports.getAppModules = exports.applicationScopeHasChanged = exports.GET_SCOPES_SUCCESS = exports.GET_SCOPES_REQUEST = exports.GET_SCOPES_FAILURE = exports.GET_SCOPES = exports.GET_MY_SCOPE_SUCCESS = exports.GET_MY_SCOPE_REQUEST = exports.GET_MY_SCOPE_FAILURE = exports.GET_MY_SCOPE = exports.GET_APPLICATION_MODULES_SUCCESS = exports.GET_APPLICATION_MODULES_REQUEST = exports.GET_APPLICATION_MODULES_FAILURE = exports.GET_APPLICATION_MODULES = exports.APPLICATION_SCOPE_HAS_CHANGED = void 0;
|
|
5
5
|
|
|
6
6
|
var _makeApiAction = require("./makeApiAction");
|
|
7
7
|
|
|
@@ -9,6 +9,8 @@ var _makeOrcApiAction = _interopRequireDefault(require("./makeOrcApiAction"));
|
|
|
9
9
|
|
|
10
10
|
var _requestsApi = require("./requestsApi");
|
|
11
11
|
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
(function () {
|
|
@@ -41,47 +43,72 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
41
43
|
return a;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
|
-
var
|
|
45
|
-
if (!
|
|
46
|
-
throw new Error('"
|
|
46
|
+
var validateOvertureApplication = function validateOvertureApplication() {
|
|
47
|
+
if (!OVERTURE_APPLICATION) {
|
|
48
|
+
throw new Error('"overtureApplication.name" is missing in the configuration.');
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
|
|
50
|
-
exports.
|
|
51
|
-
|
|
52
|
+
exports.validateOvertureApplication = validateOvertureApplication;
|
|
53
|
+
validateOvertureApplication();
|
|
54
|
+
var GET_APPLICATION_MODULES = "GET_APPLICATION_MODULES";
|
|
55
|
+
exports.GET_APPLICATION_MODULES = GET_APPLICATION_MODULES;
|
|
56
|
+
|
|
57
|
+
var _makeActionTypes = (0, _makeApiAction.makeActionTypes)(GET_APPLICATION_MODULES),
|
|
58
|
+
_makeActionTypes2 = _slicedToArray(_makeActionTypes, 3),
|
|
59
|
+
GET_APPLICATION_MODULES_REQUEST = _makeActionTypes2[0],
|
|
60
|
+
GET_APPLICATION_MODULES_SUCCESS = _makeActionTypes2[1],
|
|
61
|
+
GET_APPLICATION_MODULES_FAILURE = _makeActionTypes2[2];
|
|
62
|
+
|
|
63
|
+
exports.GET_APPLICATION_MODULES_FAILURE = GET_APPLICATION_MODULES_FAILURE;
|
|
64
|
+
exports.GET_APPLICATION_MODULES_SUCCESS = GET_APPLICATION_MODULES_SUCCESS;
|
|
65
|
+
exports.GET_APPLICATION_MODULES_REQUEST = GET_APPLICATION_MODULES_REQUEST;
|
|
66
|
+
|
|
67
|
+
var getAppModules = function getAppModules() {
|
|
68
|
+
return (0, _makeOrcApiAction.default)(GET_APPLICATION_MODULES, _requestsApi.getApplicationModules.buildUrl(OVERTURE_APPLICATION));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.getAppModules = getAppModules;
|
|
52
72
|
var GET_SCOPES = "GET_SCOPES";
|
|
53
73
|
exports.GET_SCOPES = GET_SCOPES;
|
|
54
74
|
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
GET_SCOPES_REQUEST =
|
|
58
|
-
GET_SCOPES_SUCCESS =
|
|
59
|
-
GET_SCOPES_FAILURE =
|
|
75
|
+
var _makeActionTypes3 = (0, _makeApiAction.makeActionTypes)(GET_SCOPES),
|
|
76
|
+
_makeActionTypes4 = _slicedToArray(_makeActionTypes3, 3),
|
|
77
|
+
GET_SCOPES_REQUEST = _makeActionTypes4[0],
|
|
78
|
+
GET_SCOPES_SUCCESS = _makeActionTypes4[1],
|
|
79
|
+
GET_SCOPES_FAILURE = _makeActionTypes4[2];
|
|
60
80
|
|
|
61
81
|
exports.GET_SCOPES_FAILURE = GET_SCOPES_FAILURE;
|
|
62
82
|
exports.GET_SCOPES_SUCCESS = GET_SCOPES_SUCCESS;
|
|
63
83
|
exports.GET_SCOPES_REQUEST = GET_SCOPES_REQUEST;
|
|
64
84
|
|
|
65
|
-
var getScopes = function getScopes() {
|
|
66
|
-
return (0, _makeOrcApiAction.default)(GET_SCOPES, _requestsApi.getUserScopeTreeRequest.buildUrl(
|
|
85
|
+
var getScopes = function getScopes(module) {
|
|
86
|
+
return (0, _makeOrcApiAction.default)(GET_SCOPES, _requestsApi.getUserScopeTreeRequest.buildUrl(module === _constants.overtureModule.System ? _constants.overtureModule.Orders : module, {}), _requestsApi.getUserScopeTreeRequest.verb, {
|
|
87
|
+
bailout: false,
|
|
88
|
+
meta: {
|
|
89
|
+
module: module
|
|
90
|
+
}
|
|
91
|
+
});
|
|
67
92
|
};
|
|
68
93
|
|
|
69
94
|
exports.getScopes = getScopes;
|
|
70
95
|
var GET_MY_SCOPE = "GET_MY_SCOPE";
|
|
71
96
|
exports.GET_MY_SCOPE = GET_MY_SCOPE;
|
|
72
97
|
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
GET_MY_SCOPE_REQUEST =
|
|
76
|
-
GET_MY_SCOPE_SUCCESS =
|
|
77
|
-
GET_MY_SCOPE_FAILURE =
|
|
98
|
+
var _makeActionTypes5 = (0, _makeApiAction.makeActionTypes)(GET_MY_SCOPE),
|
|
99
|
+
_makeActionTypes6 = _slicedToArray(_makeActionTypes5, 3),
|
|
100
|
+
GET_MY_SCOPE_REQUEST = _makeActionTypes6[0],
|
|
101
|
+
GET_MY_SCOPE_SUCCESS = _makeActionTypes6[1],
|
|
102
|
+
GET_MY_SCOPE_FAILURE = _makeActionTypes6[2];
|
|
78
103
|
|
|
79
104
|
exports.GET_MY_SCOPE_FAILURE = GET_MY_SCOPE_FAILURE;
|
|
80
105
|
exports.GET_MY_SCOPE_SUCCESS = GET_MY_SCOPE_SUCCESS;
|
|
81
106
|
exports.GET_MY_SCOPE_REQUEST = GET_MY_SCOPE_REQUEST;
|
|
82
107
|
|
|
83
|
-
var getDefaultScope = function getDefaultScope() {
|
|
84
|
-
return (0, _makeOrcApiAction.default)(GET_MY_SCOPE, _requestsApi.getUserScopeRequest.buildUrl(
|
|
108
|
+
var getDefaultScope = function getDefaultScope(module) {
|
|
109
|
+
return (0, _makeOrcApiAction.default)(GET_MY_SCOPE, _requestsApi.getUserScopeRequest.buildUrl(module === _constants.overtureModule.System ? _constants.overtureModule.Orders : module), _requestsApi.getUserScopeRequest.verb, {
|
|
110
|
+
bailout: false
|
|
111
|
+
});
|
|
85
112
|
};
|
|
86
113
|
|
|
87
114
|
exports.getDefaultScope = getDefaultScope;
|
|
@@ -108,7 +135,12 @@ exports.applicationScopeHasChanged = applicationScopeHasChanged;
|
|
|
108
135
|
return;
|
|
109
136
|
}
|
|
110
137
|
|
|
111
|
-
reactHotLoader.register(
|
|
138
|
+
reactHotLoader.register(validateOvertureApplication, "validateOvertureApplication", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
139
|
+
reactHotLoader.register(GET_APPLICATION_MODULES, "GET_APPLICATION_MODULES", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
140
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_REQUEST, "GET_APPLICATION_MODULES_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
141
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_SUCCESS, "GET_APPLICATION_MODULES_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
142
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_FAILURE, "GET_APPLICATION_MODULES_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
143
|
+
reactHotLoader.register(getAppModules, "getAppModules", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
112
144
|
reactHotLoader.register(GET_SCOPES, "GET_SCOPES", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
113
145
|
reactHotLoader.register(GET_SCOPES_REQUEST, "GET_SCOPES_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
114
146
|
reactHotLoader.register(GET_SCOPES_SUCCESS, "GET_SCOPES_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
@@ -139,7 +171,12 @@ exports.applicationScopeHasChanged = applicationScopeHasChanged;
|
|
|
139
171
|
return;
|
|
140
172
|
}
|
|
141
173
|
|
|
142
|
-
reactHotLoader.register(
|
|
174
|
+
reactHotLoader.register(validateOvertureApplication, "validateOvertureApplication", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
175
|
+
reactHotLoader.register(GET_APPLICATION_MODULES, "GET_APPLICATION_MODULES", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
176
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_REQUEST, "GET_APPLICATION_MODULES_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
177
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_SUCCESS, "GET_APPLICATION_MODULES_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
178
|
+
reactHotLoader.register(GET_APPLICATION_MODULES_FAILURE, "GET_APPLICATION_MODULES_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
179
|
+
reactHotLoader.register(getAppModules, "getAppModules", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
143
180
|
reactHotLoader.register(GET_SCOPES, "GET_SCOPES", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
144
181
|
reactHotLoader.register(GET_SCOPES_REQUEST, "GET_SCOPES_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
145
182
|
reactHotLoader.register(GET_SCOPES_SUCCESS, "GET_SCOPES_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
@@ -23,7 +23,7 @@ var _useViewState3 = _interopRequireDefault(require("../../hooks/useViewState"))
|
|
|
23
23
|
|
|
24
24
|
var _aboutBackground = _interopRequireDefault(require("../../content/aboutBackground.png"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _orckestraLogoWhite = _interopRequireDefault(require("../../content/orckestra-logo-white.png"));
|
|
27
27
|
|
|
28
28
|
var _close = _interopRequireDefault(require("../../content/close.png"));
|
|
29
29
|
|
|
@@ -147,7 +147,8 @@ var About = function About(_ref2) {
|
|
|
147
147
|
src: _close.default,
|
|
148
148
|
alt: "X"
|
|
149
149
|
})), /*#__PURE__*/_react.default.createElement("img", {
|
|
150
|
-
src:
|
|
150
|
+
src: _orckestraLogoWhite.default,
|
|
151
|
+
width: "250",
|
|
151
152
|
alt: "Orckestra"
|
|
152
153
|
}), /*#__PURE__*/_react.default.createElement(AboutParagraph, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
153
154
|
message: _objectSpread(_objectSpread({}, _sharedMessages.default.ccVersion), {}, {
|
|
@@ -197,7 +198,11 @@ var About = function About(_ref2) {
|
|
|
197
198
|
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
198
199
|
message: _sharedMessages.default.ccName
|
|
199
200
|
}))), /*#__PURE__*/_react.default.createElement(AboutParagraph, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
200
|
-
message: _sharedMessages.default.copyright
|
|
201
|
+
message: _objectSpread(_objectSpread({}, _sharedMessages.default.copyright), {}, {
|
|
202
|
+
values: {
|
|
203
|
+
year: new Date().getFullYear()
|
|
204
|
+
}
|
|
205
|
+
})
|
|
201
206
|
}), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
202
207
|
message: _sharedMessages.default.allRightsReserved
|
|
203
208
|
})));
|
|
@@ -5,8 +5,6 @@ exports.default = exports.MenuIcon = exports.Label = exports.BlockWithA = export
|
|
|
5
5
|
|
|
6
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
7
|
|
|
8
|
-
var _reactRedux = require("react-redux");
|
|
9
|
-
|
|
10
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
9
|
|
|
12
10
|
var _styledTransitionGroup = _interopRequireDefault(require("styled-transition-group"));
|
|
@@ -22,7 +20,7 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
22
20
|
var _templateObject;
|
|
23
21
|
|
|
24
22
|
var _excluded = ["menuToggle", "staticContext", "dispatch", "active", "component"],
|
|
25
|
-
_excluded2 = ["open", "label", "icon", "alert", "pageScopeSelector", "closingTabHandler", "hide", "href"];
|
|
23
|
+
_excluded2 = ["open", "label", "icon", "alert", "pageScopeSelector", "closingTabHandler", "hide", "isHidden", "href"];
|
|
26
24
|
|
|
27
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
26
|
|
|
@@ -139,14 +137,11 @@ var MenuItem = function MenuItem(_ref5) {
|
|
|
139
137
|
pageScopeSelector = _ref5.pageScopeSelector,
|
|
140
138
|
closingTabHandler = _ref5.closingTabHandler,
|
|
141
139
|
hide = _ref5.hide,
|
|
140
|
+
_ref5$isHidden = _ref5.isHidden,
|
|
141
|
+
isHidden = _ref5$isHidden === void 0 ? false : _ref5$isHidden,
|
|
142
142
|
href = _ref5.href,
|
|
143
143
|
props = _objectWithoutProperties(_ref5, _excluded2);
|
|
144
144
|
|
|
145
|
-
var hideSelector = function hideSelector(state) {
|
|
146
|
-
return typeof hide === "function" ? hide(state) : hide != null ? hide : false;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var isHidden = (0, _reactRedux.useSelector)(hideSelector);
|
|
150
145
|
var ItemWrapper = Block;
|
|
151
146
|
|
|
152
147
|
if (props.menuToggle) {
|
|
@@ -177,13 +172,9 @@ var MenuItem = function MenuItem(_ref5) {
|
|
|
177
172
|
})));
|
|
178
173
|
};
|
|
179
174
|
|
|
180
|
-
__signature__(MenuItem, "
|
|
181
|
-
return [_reactRedux.useSelector];
|
|
182
|
-
});
|
|
175
|
+
__signature__(MenuItem, "useRef{alertMessage}");
|
|
183
176
|
|
|
184
|
-
__signature__(MenuItem, "
|
|
185
|
-
return [_reactRedux.useSelector];
|
|
186
|
-
});
|
|
177
|
+
__signature__(MenuItem, "useRef{alertMessage}");
|
|
187
178
|
|
|
188
179
|
var _default = MenuItem;
|
|
189
180
|
var _default2 = _default;
|
|
@@ -17,6 +17,8 @@ var _navigation = require("../../selectors/navigation");
|
|
|
17
17
|
|
|
18
18
|
var _MenuItem = _interopRequireDefault(require("./MenuItem"));
|
|
19
19
|
|
|
20
|
+
var _modules = require("../../selectors/modules");
|
|
21
|
+
|
|
20
22
|
var _excluded = ["id"];
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -93,17 +95,21 @@ var EnhancedMenuItem = function EnhancedMenuItem(_ref2) {
|
|
|
93
95
|
var id = _ref2.id,
|
|
94
96
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
var defaultModule = (0, _reactRedux.useSelector)(_modules.getScopeModuleInformationSelector);
|
|
99
|
+
var isHidden = !defaultModule.visibleModules.includes(id);
|
|
100
|
+
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, _extends({}, props, useEnhancement(id), {
|
|
101
|
+
isHidden: isHidden
|
|
102
|
+
}));
|
|
97
103
|
};
|
|
98
104
|
|
|
99
105
|
exports.EnhancedMenuItem = EnhancedMenuItem;
|
|
100
106
|
|
|
101
|
-
__signature__(EnhancedMenuItem, "
|
|
102
|
-
return [useEnhancement];
|
|
107
|
+
__signature__(EnhancedMenuItem, "useSelector{defaultModule}\nuseEnhancement{}", function () {
|
|
108
|
+
return [_reactRedux.useSelector, useEnhancement];
|
|
103
109
|
});
|
|
104
110
|
|
|
105
|
-
__signature__(EnhancedMenuItem, "
|
|
106
|
-
return [useEnhancement];
|
|
111
|
+
__signature__(EnhancedMenuItem, "useSelector{defaultModule}\nuseEnhancement{}", function () {
|
|
112
|
+
return [_reactRedux.useSelector, useEnhancement];
|
|
107
113
|
});
|
|
108
114
|
|
|
109
115
|
var LogoSvg = _styledComponents.default.svg.withConfig({
|
|
@@ -112,9 +118,14 @@ var LogoSvg = _styledComponents.default.svg.withConfig({
|
|
|
112
118
|
})(["flex:0 0 auto;margin:auto 12.5px 7px;height:25px;width:25px;fill-rule:evenodd;clip-rule:evenodd;fill:#666666;"]);
|
|
113
119
|
|
|
114
120
|
var Logo = function Logo() {
|
|
115
|
-
return /*#__PURE__*/_react.default.createElement(LogoSvg,
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement(LogoSvg, {
|
|
122
|
+
viewBox: "0 0 260 260"
|
|
123
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
124
|
+
d: "M1.11,125.62C1.11,74.94,40.22,39,93.72,39S186,74.94,186,125.62s-38.79,86.66-92.29,86.66S1.11,176.3,1.11,125.62Zm135.47,0c0-29.1-18.46-46.62-42.86-46.62S50.54,96.52,50.54,125.62s18.77,46.62,43.18,46.62S136.58,154.72,136.58,125.62Z"
|
|
125
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
126
|
+
cx: "227.6",
|
|
127
|
+
cy: "181.13",
|
|
128
|
+
r: "31.29"
|
|
118
129
|
}));
|
|
119
130
|
};
|
|
120
131
|
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
|
|
10
|
+
var _scopes = require("../actions/scopes");
|
|
11
|
+
|
|
12
|
+
var _settings = require("../selectors/settings");
|
|
13
|
+
|
|
14
|
+
var _Authenticate = require("./Authenticate");
|
|
15
|
+
|
|
16
|
+
var _constants = require("../constants");
|
|
17
|
+
|
|
18
|
+
var _modules = require("../actions/modules");
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
(function () {
|
|
25
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
|
+
enterModule && enterModule(module);
|
|
27
|
+
})();
|
|
28
|
+
|
|
29
|
+
(function () {
|
|
30
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31
|
+
enterModule && enterModule(module);
|
|
32
|
+
})();
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37
|
+
|
|
38
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
39
|
+
|
|
40
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
41
|
+
|
|
42
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
47
|
+
return a;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
51
|
+
return a;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var ApplicationModuleLoader = function ApplicationModuleLoader(_ref) {
|
|
55
|
+
var children = _ref.children;
|
|
56
|
+
var dispatch = (0, _reactRedux.useDispatch)();
|
|
57
|
+
|
|
58
|
+
var _useState = (0, _react.useState)(false),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
scopesLoaded = _useState2[0],
|
|
61
|
+
setScopesLoaded = _useState2[1];
|
|
62
|
+
|
|
63
|
+
var loadedModules = (0, _reactRedux.useSelector)(_settings.getLoadedModulesScopeSelector);
|
|
64
|
+
var applicationModules = (0, _reactRedux.useSelector)(_settings.getApplicationModulesSelector);
|
|
65
|
+
var defaultScope = (0, _reactRedux.useSelector)(_settings.defaultScopeSelector);
|
|
66
|
+
(0, _react.useEffect)(function () {
|
|
67
|
+
if (applicationModules.length > 0 && scopesLoaded === false) {
|
|
68
|
+
if (applicationModules.includes(_constants.overtureModule.System)) {
|
|
69
|
+
dispatch((0, _modules.initializeFirstModuleScope)(_constants.scopeTypes.global));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
applicationModules.forEach(function (x) {
|
|
73
|
+
// For the default scope, the latest that will be returned will be the chosen one
|
|
74
|
+
dispatch((0, _scopes.getDefaultScope)(x)); // For scopes, they need to be merged
|
|
75
|
+
|
|
76
|
+
dispatch((0, _scopes.getScopes)(x));
|
|
77
|
+
});
|
|
78
|
+
setScopesLoaded(true);
|
|
79
|
+
}
|
|
80
|
+
}, [dispatch, applicationModules, scopesLoaded]);
|
|
81
|
+
var scopeLoadedFromAllModules = applicationModules.length > 0 && applicationModules.reduce(function (prev, current) {
|
|
82
|
+
return prev && loadedModules.includes(current);
|
|
83
|
+
}, true);
|
|
84
|
+
var applicationModuleReady = scopeLoadedFromAllModules && defaultScope != null;
|
|
85
|
+
|
|
86
|
+
if (!applicationModuleReady) {
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_Authenticate.Loader, null);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return _react.default.Children.only(children);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
__signature__(ApplicationModuleLoader, "useDispatch{dispatch}\nuseState{[scopesLoaded, setScopesLoaded](false)}\nuseSelector{loadedModules}\nuseSelector{applicationModules}\nuseSelector{defaultScope}\nuseEffect{}", function () {
|
|
94
|
+
return [_reactRedux.useDispatch, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
__signature__(ApplicationModuleLoader, "useDispatch{dispatch}\nuseState{[scopesLoaded, setScopesLoaded](false)}\nuseSelector{loadedModules}\nuseSelector{applicationModules}\nuseSelector{defaultScope}\nuseEffect{}", function () {
|
|
98
|
+
return [_reactRedux.useDispatch, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
var _default = ApplicationModuleLoader;
|
|
102
|
+
var _default2 = _default;
|
|
103
|
+
var _default3 = _default2;
|
|
104
|
+
exports.default = _default3;
|
|
105
|
+
;
|
|
106
|
+
|
|
107
|
+
(function () {
|
|
108
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
109
|
+
|
|
110
|
+
if (!reactHotLoader) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
reactHotLoader.register(ApplicationModuleLoader, "ApplicationModuleLoader", "/home/vsts/work/1/s/src/components/ApplicationModuleLoader.js");
|
|
115
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/ApplicationModuleLoader.js");
|
|
116
|
+
})();
|
|
117
|
+
|
|
118
|
+
;
|
|
119
|
+
|
|
120
|
+
(function () {
|
|
121
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122
|
+
leaveModule && leaveModule(module);
|
|
123
|
+
})();
|
|
124
|
+
|
|
125
|
+
;
|
|
126
|
+
|
|
127
|
+
(function () {
|
|
128
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
129
|
+
|
|
130
|
+
if (!reactHotLoader) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
reactHotLoader.register(ApplicationModuleLoader, "ApplicationModuleLoader", "/home/vsts/work/1/s/src/components/ApplicationModuleLoader.js");
|
|
135
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/ApplicationModuleLoader.js");
|
|
136
|
+
})();
|
|
137
|
+
|
|
138
|
+
;
|
|
139
|
+
|
|
140
|
+
(function () {
|
|
141
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
142
|
+
leaveModule && leaveModule(module);
|
|
143
|
+
})();
|
|
@@ -17,6 +17,8 @@ var _authentication = require("../actions/authentication");
|
|
|
17
17
|
|
|
18
18
|
var _request = require("../reducers/request");
|
|
19
19
|
|
|
20
|
+
var _ApplicationModuleLoader = _interopRequireDefault(require("./ApplicationModuleLoader"));
|
|
21
|
+
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
23
|
|
|
22
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -46,9 +48,6 @@ var useAuthenticationData = function useAuthenticationData() {
|
|
|
46
48
|
loading: (0, _reactRedux.useSelector)(function (state) {
|
|
47
49
|
return state.getIn(["requests", "actives", _authentication.GET_AUTHENTICATION_PROFILE]);
|
|
48
50
|
}),
|
|
49
|
-
defaultScope: (0, _reactRedux.useSelector)(function (state) {
|
|
50
|
-
return state.getIn(["settings", "defaultScope"]);
|
|
51
|
-
}) || null,
|
|
52
51
|
authedUser: (0, _reactRedux.useSelector)(function (state) {
|
|
53
52
|
return state.getIn(["authentication", "name"]);
|
|
54
53
|
}),
|
|
@@ -63,12 +62,12 @@ var useAuthenticationData = function useAuthenticationData() {
|
|
|
63
62
|
|
|
64
63
|
exports.useAuthenticationData = useAuthenticationData;
|
|
65
64
|
|
|
66
|
-
__signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{}\nuseSelector{}
|
|
67
|
-
return [_reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector
|
|
65
|
+
__signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{}\nuseSelector{}", function () {
|
|
66
|
+
return [_reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
68
67
|
});
|
|
69
68
|
|
|
70
|
-
__signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{}\nuseSelector{}
|
|
71
|
-
return [_reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector
|
|
69
|
+
__signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{}\nuseSelector{}", function () {
|
|
70
|
+
return [_reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
72
71
|
});
|
|
73
72
|
|
|
74
73
|
var Wrapper = _styledComponents.default.div.withConfig({
|
|
@@ -103,12 +102,11 @@ var Authenticate = function Authenticate(_ref2) {
|
|
|
103
102
|
|
|
104
103
|
var _useAuthenticationDat = useAuthenticationData(),
|
|
105
104
|
loading = _useAuthenticationDat.loading,
|
|
106
|
-
defaultScope = _useAuthenticationDat.defaultScope,
|
|
107
105
|
authedUser = _useAuthenticationDat.authedUser,
|
|
108
106
|
requestError = _useAuthenticationDat.requestError,
|
|
109
107
|
needLogin = _useAuthenticationDat.needLogin;
|
|
110
108
|
|
|
111
|
-
if (loading
|
|
109
|
+
if (loading) {
|
|
112
110
|
return /*#__PURE__*/_react.default.createElement(Loader, null);
|
|
113
111
|
}
|
|
114
112
|
|
|
@@ -118,15 +116,17 @@ var Authenticate = function Authenticate(_ref2) {
|
|
|
118
116
|
needLogin: needLogin
|
|
119
117
|
});
|
|
120
118
|
} else {
|
|
121
|
-
return _react.default.
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement(_ApplicationModuleLoader.default, {
|
|
120
|
+
children: children
|
|
121
|
+
});
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
__signature__(Authenticate, "useAuthenticationData{{ loading,
|
|
125
|
+
__signature__(Authenticate, "useAuthenticationData{{ loading, authedUser, requestError, needLogin }}", function () {
|
|
126
126
|
return [useAuthenticationData];
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
__signature__(Authenticate, "useAuthenticationData{{ loading,
|
|
129
|
+
__signature__(Authenticate, "useAuthenticationData{{ loading, authedUser, requestError, needLogin }}", function () {
|
|
130
130
|
return [useAuthenticationData];
|
|
131
131
|
});
|
|
132
132
|
|