orc-shared 1.2.2-dev.0 → 1.2.2
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/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,35 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _navigation = require("../actions/navigation");
|
|
9
|
-
|
|
10
7
|
var _parseHelper = require("../utils/parseHelper");
|
|
11
|
-
|
|
12
8
|
var _scopes = require("../actions/scopes");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
(function () {
|
|
17
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
12
|
enterModule && enterModule(module);
|
|
19
13
|
})();
|
|
20
|
-
|
|
21
14
|
(function () {
|
|
22
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
16
|
enterModule && enterModule(module);
|
|
24
17
|
})();
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var initialState = _immutable.default.fromJS({
|
|
35
25
|
route: {},
|
|
36
26
|
tabIndex: {},
|
|
@@ -40,24 +30,21 @@ var initialState = _immutable.default.fromJS({
|
|
|
40
30
|
currentPrependPath: null,
|
|
41
31
|
closingTabsHandlerActions: {}
|
|
42
32
|
});
|
|
43
|
-
|
|
44
33
|
var navigationReducer = function navigationReducer(state, action) {
|
|
45
34
|
if (state === void 0) {
|
|
46
35
|
state = initialState;
|
|
47
36
|
}
|
|
48
|
-
|
|
49
37
|
switch (action.type) {
|
|
50
38
|
case _navigation.SET_ROUTE:
|
|
51
39
|
return state.withMutations(function (s) {
|
|
52
40
|
var prependPath = state.get("currentPrependPath") || state.getIn(["config", "prependPath"]);
|
|
53
41
|
s.set("route", _immutable.default.fromJS(action.payload));
|
|
54
42
|
var _action$payload = action.payload,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
href = _action$payload.location.pathname,
|
|
44
|
+
_action$payload$match = _action$payload.match,
|
|
45
|
+
path = _action$payload$match.path,
|
|
46
|
+
params = _action$payload$match.params;
|
|
59
47
|
var remainingSection = (0, _parseHelper.getAllAfterPrependHref)(prependPath, href);
|
|
60
|
-
|
|
61
48
|
if (remainingSection) {
|
|
62
49
|
s.setIn(["tabIndex", remainingSection], _immutable.default.fromJS({
|
|
63
50
|
href: href,
|
|
@@ -65,107 +52,81 @@ var navigationReducer = function navigationReducer(state, action) {
|
|
|
65
52
|
params: params
|
|
66
53
|
}));
|
|
67
54
|
var moduleName = path.replace(new RegExp("^".concat(prependPath, "(\\w+)(?:/.*)?$")), "$1");
|
|
68
|
-
|
|
69
55
|
var moduleList = s.getIn(["moduleTabs", moduleName]) || _immutable.default.List();
|
|
70
|
-
|
|
71
56
|
if (!moduleList.includes(remainingSection)) {
|
|
72
57
|
s.setIn(["moduleTabs", moduleName], moduleList.push(remainingSection));
|
|
73
58
|
}
|
|
74
59
|
}
|
|
75
60
|
});
|
|
76
|
-
|
|
77
61
|
case _navigation.MAP_HREF:
|
|
78
62
|
var prependPath = state.get("currentPrependPath") || state.getIn(["config", "prependPath"]);
|
|
79
63
|
var _action$payload2 = action.payload,
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
from = _action$payload2.from,
|
|
65
|
+
to = _action$payload2.to;
|
|
82
66
|
var remainingSectionFrom = (0, _parseHelper.getAllAfterPrependHref)(prependPath, from);
|
|
83
67
|
var remainingSectionTo = (0, _parseHelper.getAllAfterPrependHref)(prependPath, to);
|
|
84
68
|
if (remainingSectionFrom && remainingSectionTo) return state.setIn(["mappedHrefs", remainingSectionFrom], remainingSectionTo);
|
|
85
69
|
return state;
|
|
86
|
-
|
|
87
70
|
case _navigation.REMOVE_TAB:
|
|
88
71
|
return state.withMutations(function (s) {
|
|
89
72
|
var prependPath = s.get("currentPrependPath") || s.getIn(["config", "prependPath"]);
|
|
90
73
|
var _action$payload3 = action.payload,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
74
|
+
module = _action$payload3.module,
|
|
75
|
+
path = _action$payload3.path;
|
|
94
76
|
var list = s.getIn(["moduleTabs", module]) || _immutable.default.List();
|
|
95
|
-
|
|
96
77
|
var remainingSection = (0, _parseHelper.getAllAfterPrependHref)(prependPath, path);
|
|
97
|
-
|
|
98
78
|
if (remainingSection) {
|
|
99
79
|
var index = list.indexOf(remainingSection);
|
|
100
|
-
|
|
101
80
|
if (index !== -1) {
|
|
102
81
|
s.deleteIn(["moduleTabs", module, index]);
|
|
103
82
|
}
|
|
104
|
-
|
|
105
83
|
s.deleteIn(["tabIndex", remainingSection]);
|
|
106
84
|
}
|
|
107
85
|
});
|
|
108
|
-
|
|
109
86
|
case _navigation.SET_HREF_CONFIG:
|
|
110
87
|
return state.set("config", _immutable.default.fromJS(action.payload));
|
|
111
|
-
|
|
112
88
|
case _navigation.SET_CURRENT_PREPEND_PATH:
|
|
113
89
|
return state.set("currentPrependPath", action.payload);
|
|
114
|
-
|
|
115
90
|
case _scopes.APPLICATION_SCOPE_HAS_CHANGED:
|
|
116
91
|
return state.withMutations(function (s) {
|
|
117
92
|
return s.set("moduleTabs", _immutable.default.fromJS({})).set("tabIndex", _immutable.default.fromJS({})).set("mappedHrefs", _immutable.default.fromJS({}));
|
|
118
93
|
});
|
|
119
|
-
|
|
120
94
|
case _navigation.SET_CLOSING_TAB_HANDLER_ACTIONS:
|
|
121
95
|
return state.setIn(["closingTabsHandlerActions", action.payload.module], _immutable.default.fromJS(action.payload.actions));
|
|
122
|
-
|
|
123
96
|
default:
|
|
124
97
|
return state;
|
|
125
98
|
}
|
|
126
99
|
};
|
|
127
|
-
|
|
128
100
|
var _default = navigationReducer;
|
|
129
101
|
var _default2 = _default;
|
|
130
102
|
var _default3 = _default2;
|
|
131
103
|
exports.default = _default3;
|
|
132
104
|
;
|
|
133
|
-
|
|
134
105
|
(function () {
|
|
135
106
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
136
|
-
|
|
137
107
|
if (!reactHotLoader) {
|
|
138
108
|
return;
|
|
139
109
|
}
|
|
140
|
-
|
|
141
110
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
142
111
|
reactHotLoader.register(navigationReducer, "navigationReducer", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
143
112
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
144
113
|
})();
|
|
145
|
-
|
|
146
114
|
;
|
|
147
|
-
|
|
148
115
|
(function () {
|
|
149
116
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
150
117
|
leaveModule && leaveModule(module);
|
|
151
118
|
})();
|
|
152
|
-
|
|
153
119
|
;
|
|
154
|
-
|
|
155
120
|
(function () {
|
|
156
121
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
157
|
-
|
|
158
122
|
if (!reactHotLoader) {
|
|
159
123
|
return;
|
|
160
124
|
}
|
|
161
|
-
|
|
162
125
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
163
126
|
reactHotLoader.register(navigationReducer, "navigationReducer", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
164
127
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/navigation.js");
|
|
165
128
|
})();
|
|
166
|
-
|
|
167
129
|
;
|
|
168
|
-
|
|
169
130
|
(function () {
|
|
170
131
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
171
132
|
leaveModule && leaveModule(module);
|
package/dist/reducers/request.js
CHANGED
|
@@ -2,116 +2,88 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.LOGOUT = exports.ERROR = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _utils = require("../utils");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
var initialState = _immutable.default.fromJS({
|
|
31
23
|
actives: _immutable.default.Map(),
|
|
32
24
|
logout: false,
|
|
33
25
|
error: null
|
|
34
26
|
});
|
|
35
|
-
|
|
36
27
|
var ERROR = "error";
|
|
37
28
|
exports.ERROR = ERROR;
|
|
38
29
|
var LOGOUT = "logout";
|
|
39
30
|
exports.LOGOUT = LOGOUT;
|
|
40
|
-
|
|
41
31
|
var requestReducer = function requestReducer(state, action) {
|
|
42
32
|
if (state === void 0) {
|
|
43
33
|
state = initialState;
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
if (action.type.endsWith("_REQUEST")) {
|
|
47
36
|
var requestName = action.type.replace(/_REQUEST$/, "");
|
|
48
37
|
return state.setIn(["actives", requestName], true);
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
if (action.type.endsWith("_SUCCESS")) {
|
|
52
40
|
var _requestName = action.type.replace(/_SUCCESS$/, "");
|
|
53
|
-
|
|
54
41
|
return state.deleteIn(["actives", _requestName]).set("logout", false);
|
|
55
42
|
}
|
|
56
|
-
|
|
57
43
|
if (action.type.endsWith("_FAILURE")) {
|
|
58
44
|
var _requestName2 = action.type.replace(/_FAILURE$/, "");
|
|
59
|
-
|
|
60
45
|
if ((0, _utils.safeGet)(action, "payload", "status") === 403) {
|
|
61
46
|
return state.deleteIn(["actives", _requestName2]).set("logout", true);
|
|
62
47
|
} else {
|
|
63
48
|
return state.deleteIn(["actives", _requestName2]).set("error", _immutable.default.fromJS(action));
|
|
64
49
|
}
|
|
65
50
|
}
|
|
66
|
-
|
|
67
51
|
return state;
|
|
68
52
|
};
|
|
69
|
-
|
|
70
53
|
var _default = requestReducer;
|
|
71
54
|
var _default2 = _default;
|
|
72
55
|
var _default3 = _default2;
|
|
73
56
|
exports.default = _default3;
|
|
74
57
|
;
|
|
75
|
-
|
|
76
58
|
(function () {
|
|
77
59
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
78
|
-
|
|
79
60
|
if (!reactHotLoader) {
|
|
80
61
|
return;
|
|
81
62
|
}
|
|
82
|
-
|
|
83
63
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
84
64
|
reactHotLoader.register(ERROR, "ERROR", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
85
65
|
reactHotLoader.register(LOGOUT, "LOGOUT", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
86
66
|
reactHotLoader.register(requestReducer, "requestReducer", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
87
67
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
88
68
|
})();
|
|
89
|
-
|
|
90
69
|
;
|
|
91
|
-
|
|
92
70
|
(function () {
|
|
93
71
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
72
|
leaveModule && leaveModule(module);
|
|
95
73
|
})();
|
|
96
|
-
|
|
97
74
|
;
|
|
98
|
-
|
|
99
75
|
(function () {
|
|
100
76
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
101
|
-
|
|
102
77
|
if (!reactHotLoader) {
|
|
103
78
|
return;
|
|
104
79
|
}
|
|
105
|
-
|
|
106
80
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
107
81
|
reactHotLoader.register(ERROR, "ERROR", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
108
82
|
reactHotLoader.register(LOGOUT, "LOGOUT", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
109
83
|
reactHotLoader.register(requestReducer, "requestReducer", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
110
84
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/request.js");
|
|
111
85
|
})();
|
|
112
|
-
|
|
113
86
|
;
|
|
114
|
-
|
|
115
87
|
(function () {
|
|
116
88
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
117
89
|
leaveModule && leaveModule(module);
|
|
@@ -2,72 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _lodash = require("lodash");
|
|
9
|
-
|
|
10
7
|
var _constants = require("../constants");
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
18
|
return a;
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
21
|
return a;
|
|
30
22
|
};
|
|
31
|
-
|
|
32
23
|
var initialState = _immutable.default.fromJS({
|
|
33
24
|
creates: _immutable.default.Map(),
|
|
34
25
|
deletes: _immutable.default.Map(),
|
|
35
26
|
fetches: _immutable.default.Map(),
|
|
36
27
|
updates: _immutable.default.Map()
|
|
37
28
|
});
|
|
38
|
-
|
|
39
29
|
var containsRequestStateData = function containsRequestStateData(action) {
|
|
40
30
|
var _action$meta;
|
|
41
|
-
|
|
42
31
|
return !!(action != null && (_action$meta = action.meta) != null && _action$meta.requestState);
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
var getPathFromAction = function getPathFromAction(action) {
|
|
46
34
|
var firstSegment = _constants.requestStateOperationMap[action.meta.requestState.operation];
|
|
47
|
-
|
|
48
35
|
if (!firstSegment) {
|
|
49
36
|
return null;
|
|
50
37
|
}
|
|
51
|
-
|
|
52
38
|
return [firstSegment].concat((0, _lodash.castArray)(action.meta.requestState.keys));
|
|
53
39
|
};
|
|
54
|
-
|
|
55
40
|
var requestStateReducer = function requestStateReducer(state, action) {
|
|
56
41
|
if (state === void 0) {
|
|
57
42
|
state = initialState;
|
|
58
43
|
}
|
|
59
|
-
|
|
60
44
|
if (!containsRequestStateData(action)) {
|
|
61
45
|
return state;
|
|
62
46
|
}
|
|
63
|
-
|
|
64
47
|
if (action.type.endsWith("_REQUEST")) {
|
|
65
48
|
var path = getPathFromAction(action);
|
|
66
|
-
|
|
67
49
|
if (path === null) {
|
|
68
50
|
return state;
|
|
69
51
|
}
|
|
70
|
-
|
|
71
52
|
return state.setIn([].concat(path, ["state"]), _immutable.default.fromJS({
|
|
72
53
|
inProgress: true,
|
|
73
54
|
value: false,
|
|
@@ -75,14 +56,11 @@ var requestStateReducer = function requestStateReducer(state, action) {
|
|
|
75
56
|
errorResponse: null
|
|
76
57
|
}));
|
|
77
58
|
}
|
|
78
|
-
|
|
79
59
|
if (action.type.endsWith("_SUCCESS")) {
|
|
80
60
|
var _path = getPathFromAction(action);
|
|
81
|
-
|
|
82
61
|
if (_path === null) {
|
|
83
62
|
return state;
|
|
84
63
|
}
|
|
85
|
-
|
|
86
64
|
return state.setIn([].concat(_path, ["state"]), _immutable.default.fromJS({
|
|
87
65
|
inProgress: false,
|
|
88
66
|
value: true,
|
|
@@ -90,16 +68,12 @@ var requestStateReducer = function requestStateReducer(state, action) {
|
|
|
90
68
|
errorResponse: null
|
|
91
69
|
}));
|
|
92
70
|
}
|
|
93
|
-
|
|
94
71
|
if (action.type.endsWith("_FAILURE")) {
|
|
95
72
|
var _action$payload;
|
|
96
|
-
|
|
97
73
|
var _path2 = getPathFromAction(action);
|
|
98
|
-
|
|
99
74
|
if (_path2 === null) {
|
|
100
75
|
return state;
|
|
101
76
|
}
|
|
102
|
-
|
|
103
77
|
return state.setIn([].concat(_path2, ["state"]), _immutable.default.fromJS({
|
|
104
78
|
inProgress: false,
|
|
105
79
|
value: false,
|
|
@@ -107,16 +81,13 @@ var requestStateReducer = function requestStateReducer(state, action) {
|
|
|
107
81
|
errorResponse: (_action$payload = action.payload) != null ? _action$payload : null
|
|
108
82
|
}));
|
|
109
83
|
}
|
|
110
|
-
|
|
111
84
|
switch (action.type) {
|
|
112
85
|
case "RESET_REQUEST_STATE":
|
|
113
86
|
{
|
|
114
87
|
var _path3 = getPathFromAction(action);
|
|
115
|
-
|
|
116
88
|
if (_path3 === null) {
|
|
117
89
|
return state;
|
|
118
90
|
}
|
|
119
|
-
|
|
120
91
|
return state.setIn([].concat(_path3, ["state"]), _immutable.default.fromJS({
|
|
121
92
|
inProgress: false,
|
|
122
93
|
value: false,
|
|
@@ -124,57 +95,44 @@ var requestStateReducer = function requestStateReducer(state, action) {
|
|
|
124
95
|
errorResponse: null
|
|
125
96
|
}));
|
|
126
97
|
}
|
|
127
|
-
|
|
128
98
|
default:
|
|
129
99
|
return state;
|
|
130
100
|
}
|
|
131
101
|
};
|
|
132
|
-
|
|
133
102
|
var _default = requestStateReducer;
|
|
134
103
|
var _default2 = _default;
|
|
135
104
|
var _default3 = _default2;
|
|
136
105
|
exports.default = _default3;
|
|
137
106
|
;
|
|
138
|
-
|
|
139
107
|
(function () {
|
|
140
108
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
141
|
-
|
|
142
109
|
if (!reactHotLoader) {
|
|
143
110
|
return;
|
|
144
111
|
}
|
|
145
|
-
|
|
146
112
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
147
113
|
reactHotLoader.register(containsRequestStateData, "containsRequestStateData", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
148
114
|
reactHotLoader.register(getPathFromAction, "getPathFromAction", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
149
115
|
reactHotLoader.register(requestStateReducer, "requestStateReducer", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
150
116
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
151
117
|
})();
|
|
152
|
-
|
|
153
118
|
;
|
|
154
|
-
|
|
155
119
|
(function () {
|
|
156
120
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
157
121
|
leaveModule && leaveModule(module);
|
|
158
122
|
})();
|
|
159
|
-
|
|
160
123
|
;
|
|
161
|
-
|
|
162
124
|
(function () {
|
|
163
125
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
164
|
-
|
|
165
126
|
if (!reactHotLoader) {
|
|
166
127
|
return;
|
|
167
128
|
}
|
|
168
|
-
|
|
169
129
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
170
130
|
reactHotLoader.register(containsRequestStateData, "containsRequestStateData", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
171
131
|
reactHotLoader.register(getPathFromAction, "getPathFromAction", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
172
132
|
reactHotLoader.register(requestStateReducer, "requestStateReducer", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
173
133
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/requestStates.js");
|
|
174
134
|
})();
|
|
175
|
-
|
|
176
135
|
;
|
|
177
|
-
|
|
178
136
|
(function () {
|
|
179
137
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
180
138
|
leaveModule && leaveModule(module);
|
package/dist/reducers/scopes.js
CHANGED
|
@@ -2,48 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _normalizr = require("normalizr");
|
|
9
|
-
|
|
10
7
|
var _scopes = _interopRequireDefault(require("../schemas/scopes"));
|
|
11
|
-
|
|
12
8
|
var _scopes2 = require("../actions/scopes");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
(function () {
|
|
17
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
12
|
enterModule && enterModule(module);
|
|
19
13
|
})();
|
|
20
|
-
|
|
21
14
|
(function () {
|
|
22
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
16
|
enterModule && enterModule(module);
|
|
24
17
|
})();
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var initialState = _immutable.default.fromJS({});
|
|
35
|
-
|
|
36
25
|
var scopeReducer = function scopeReducer(state, action) {
|
|
37
26
|
if (state === void 0) {
|
|
38
27
|
state = initialState;
|
|
39
28
|
}
|
|
40
|
-
|
|
41
29
|
switch (action.type) {
|
|
42
30
|
case _scopes2.GET_SCOPES_SUCCESS:
|
|
43
31
|
{
|
|
44
32
|
var loadedScopes = state.toJS();
|
|
45
33
|
var normalizedScopes = (0, _normalizr.normalize)(action.payload, _scopes.default);
|
|
46
|
-
|
|
47
34
|
if (Object.keys(loadedScopes).length > 0) {
|
|
48
35
|
var addedScope = {};
|
|
49
36
|
Object.values(normalizedScopes.entities.scopes).forEach(function (scope) {
|
|
@@ -56,7 +43,6 @@ var scopeReducer = function scopeReducer(state, action) {
|
|
|
56
43
|
});
|
|
57
44
|
Object.values(addedScope).forEach(function (scope) {
|
|
58
45
|
var parentScope = loadedScopes[scope.parentScopeId];
|
|
59
|
-
|
|
60
46
|
if (parentScope) {
|
|
61
47
|
if (!parentScope.children.includes(scope.id)) {
|
|
62
48
|
parentScope.children.push(scope.id);
|
|
@@ -68,56 +54,42 @@ var scopeReducer = function scopeReducer(state, action) {
|
|
|
68
54
|
});
|
|
69
55
|
return state.merge(_immutable.default.fromJS(loadedScopes));
|
|
70
56
|
}
|
|
71
|
-
|
|
72
57
|
return state.merge(_immutable.default.fromJS(normalizedScopes.entities.scopes));
|
|
73
58
|
}
|
|
74
|
-
|
|
75
59
|
default:
|
|
76
60
|
return state;
|
|
77
61
|
}
|
|
78
62
|
};
|
|
79
|
-
|
|
80
63
|
var _default = scopeReducer;
|
|
81
64
|
var _default2 = _default;
|
|
82
65
|
var _default3 = _default2;
|
|
83
66
|
exports.default = _default3;
|
|
84
67
|
;
|
|
85
|
-
|
|
86
68
|
(function () {
|
|
87
69
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
88
|
-
|
|
89
70
|
if (!reactHotLoader) {
|
|
90
71
|
return;
|
|
91
72
|
}
|
|
92
|
-
|
|
93
73
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
94
74
|
reactHotLoader.register(scopeReducer, "scopeReducer", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
95
75
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
96
76
|
})();
|
|
97
|
-
|
|
98
77
|
;
|
|
99
|
-
|
|
100
78
|
(function () {
|
|
101
79
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
102
80
|
leaveModule && leaveModule(module);
|
|
103
81
|
})();
|
|
104
|
-
|
|
105
82
|
;
|
|
106
|
-
|
|
107
83
|
(function () {
|
|
108
84
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
109
|
-
|
|
110
85
|
if (!reactHotLoader) {
|
|
111
86
|
return;
|
|
112
87
|
}
|
|
113
|
-
|
|
114
88
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
115
89
|
reactHotLoader.register(scopeReducer, "scopeReducer", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
116
90
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/scopes.js");
|
|
117
91
|
})();
|
|
118
|
-
|
|
119
92
|
;
|
|
120
|
-
|
|
121
93
|
(function () {
|
|
122
94
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
123
95
|
leaveModule && leaveModule(module);
|