redux-connected-devtools 0.0.15 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.depcheck +20 -0
- package/.env +2 -0
- package/.prettierrc.js +10 -0
- package/.vscode/settings.json +12 -0
- package/.vscode/tasks.json +33 -0
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/index.html +58 -0
- package/jest.config.js +8 -0
- package/package.json +58 -63
- package/src/__tests__/sum.ts +9 -0
- package/src/components/DevInspector/DevInspector.scss +2 -0
- package/src/components/DevInspector/DevInspector.style.tsx +7 -0
- package/src/components/DevInspector/DevInspector.tsx +34 -0
- package/src/components/DevList/DevList.scss +2 -0
- package/src/components/DevList/DevList.style.tsx +34 -0
- package/src/components/DevList/DevList.tsx +65 -0
- package/src/components/DevMenu/DevMenu.scss +2 -0
- package/src/components/DevMenu/DevMenu.style.tsx +53 -0
- package/src/components/DevMenu/DevMenu.tsx +77 -0
- package/src/components/DevPanel/DevPanel.scss +2 -0
- package/src/components/DevPanel/DevPanel.style.tsx +25 -0
- package/src/components/DevPanel/DevPanel.tsx +58 -0
- package/src/components/DevtoolsApp/DevtoolsApp.scss +2 -0
- package/src/components/DevtoolsApp/DevtoolsApp.style.tsx +12 -0
- package/src/components/DevtoolsApp/DevtoolsApp.tsx +45 -0
- package/src/components/Icon/AllIcons.tsx +66 -0
- package/src/components/Icon/Icon.scss +2 -0
- package/src/components/Icon/Icon.style.tsx +11 -0
- package/src/components/Icon/Icon.tsx +28 -0
- package/src/components/JourneyRow/JourneyRow.scss +2 -0
- package/src/components/JourneyRow/JourneyRow.style.tsx +46 -0
- package/src/components/JourneyRow/JourneyRow.tsx +60 -0
- package/src/components/JsonViewer/JsonViewer.scss +2 -0
- package/src/components/JsonViewer/JsonViewer.style.tsx +31 -0
- package/src/components/JsonViewer/JsonViewer.tsx +23 -0
- package/src/components/Lifecycle/Lifecycle.scss +2 -0
- package/src/components/Lifecycle/Lifecycle.style.tsx +6 -0
- package/src/components/Lifecycle/Lifecycle.tsx +36 -0
- package/src/components/LogsViewer/LogsViewer.scss +2 -0
- package/src/components/LogsViewer/LogsViewer.style.tsx +5 -0
- package/src/components/LogsViewer/LogsViewer.tsx +14 -0
- package/src/components/RequestDetails/RequestDetails.scss +2 -0
- package/src/components/RequestDetails/RequestDetails.style.tsx +20 -0
- package/src/components/RequestDetails/RequestDetails.tsx +60 -0
- package/src/components/RequestJourney/RequestJourney.scss +2 -0
- package/src/components/RequestJourney/RequestJourney.style.tsx +27 -0
- package/src/components/RequestJourney/RequestJourney.tsx +33 -0
- package/src/components/RequestRow/RequestRow.scss +2 -0
- package/src/components/RequestRow/RequestRow.style.tsx +32 -0
- package/src/components/RequestRow/RequestRow.tsx +37 -0
- package/src/components/Size/Size.scss +2 -0
- package/src/components/Size/Size.style.tsx +6 -0
- package/src/components/Size/Size.tsx +21 -0
- package/src/components/StateViewer/StateViewer.scss +2 -0
- package/src/components/StateViewer/StateViewer.style.tsx +5 -0
- package/src/components/StateViewer/StateViewer.tsx +17 -0
- package/src/components/Time/Time.scss +2 -0
- package/src/components/Time/Time.style.tsx +17 -0
- package/src/components/Time/Time.tsx +25 -0
- package/src/containers/DevMenuContainer.tsx +28 -0
- package/src/containers/DevPanelContainer.tsx +12 -0
- package/src/containers/DevtoolsAppContainer.tsx +42 -0
- package/src/containers/EndpointConfigsContainer.tsx +12 -0
- package/src/containers/EndpointStatusContainer.tsx +12 -0
- package/src/containers/GlobalSettingsContainer.tsx +12 -0
- package/src/containers/GlobalStatsContainer.tsx +12 -0
- package/src/containers/JsonViewerContainer.tsx +8 -0
- package/src/containers/LifecycleApiErrorContainer.tsx +11 -0
- package/src/containers/LifecycleContainer.tsx +12 -0
- package/src/containers/LifecycleFailedContainer.tsx +11 -0
- package/src/containers/LifecycleGeneralErrorContainer.tsx +11 -0
- package/src/containers/LifecycleInQueueContainer.tsx +11 -0
- package/src/containers/LifecyclePendingApiContainer.tsx +11 -0
- package/src/containers/LifecyclePostActionContainer.tsx +11 -0
- package/src/containers/LifecycleReceivedContainer.tsx +11 -0
- package/src/containers/LogsViewerContainer.tsx +8 -0
- package/src/containers/StateViewerContainer.tsx +8 -0
- package/src/data/devComponents.tsx +27 -0
- package/src/data/devRouter.ts +107 -0
- package/src/data/devRoutes.ts +90 -0
- package/src/hooks/useStoreSize.ts +27 -0
- package/src/index.ts +1 -0
- package/src/store/initialState.ts +42 -0
- package/src/store/selectors.ts +220 -0
- package/src/types.ts +1 -0
- package/src/utils/date.ts +11 -0
- package/src/utils/download.ts +17 -0
- package/tsconfig.json +18 -0
- package/vite.config.ts +27 -0
- package/esm/components/Config/Config.d.ts +0 -6
- package/esm/components/Config/Config.js +0 -15
- package/esm/components/DevTools/DevTools.d.ts +0 -4
- package/esm/components/DevTools/DevTools.js +0 -19
- package/esm/components/DevToolsLocal/DevToolsLocal.d.ts +0 -4
- package/esm/components/DevToolsLocal/DevToolsLocal.js +0 -12
- package/esm/components/Dispatcher/Dispatcher.d.ts +0 -8
- package/esm/components/Dispatcher/Dispatcher.js +0 -61
- package/esm/components/GlobalSettings/GlobalSettings.d.ts +0 -6
- package/esm/components/GlobalSettings/GlobalSettings.js +0 -16
- package/esm/components/Group/Group.d.ts +0 -9
- package/esm/components/Group/Group.js +0 -14
- package/esm/components/Json/Json.d.ts +0 -7
- package/esm/components/Json/Json.js +0 -9
- package/esm/components/Logs/Logs.d.ts +0 -6
- package/esm/components/Logs/Logs.js +0 -49
- package/esm/components/Monitor/Monitor.d.ts +0 -6
- package/esm/components/Monitor/Monitor.js +0 -54
- package/esm/components/OverlayManager/OverlayManager.d.ts +0 -6
- package/esm/components/OverlayManager/OverlayManager.js +0 -17
- package/esm/components/Panel/Panel.d.ts +0 -14
- package/esm/components/Panel/Panel.js +0 -46
- package/esm/components/Preview/Preview.d.ts +0 -18
- package/esm/components/Preview/Preview.js +0 -58
- package/esm/components/Redux/Redux.d.ts +0 -6
- package/esm/components/Redux/Redux.js +0 -72
- package/esm/components/ReduxSettings/ReduxSettings.d.ts +0 -9
- package/esm/components/ReduxSettings/ReduxSettings.js +0 -60
- package/esm/components/Requests/Requests.d.ts +0 -6
- package/esm/components/Requests/Requests.js +0 -61
- package/esm/components/Status/Status.d.ts +0 -6
- package/esm/components/Status/Status.js +0 -16
- package/esm/components/TaskManager/TaskManager.d.ts +0 -9
- package/esm/components/TaskManager/TaskManager.js +0 -22
- package/esm/components/Timeline/Timeline.d.ts +0 -6
- package/esm/components/Timeline/Timeline.js +0 -13
- package/esm/components/TimelineEvent/TimelineEvent.d.ts +0 -7
- package/esm/components/TimelineEvent/TimelineEvent.js +0 -13
- package/esm/components/TimelineHeader/TimelineHeader.d.ts +0 -4
- package/esm/components/TimelineHeader/TimelineHeader.js +0 -5
- package/esm/components/TimelineRow/TimelineRow.d.ts +0 -7
- package/esm/components/TimelineRow/TimelineRow.js +0 -13
- package/esm/components/TimelineRowHeader/TimelineRowHeader.d.ts +0 -7
- package/esm/components/TimelineRowHeader/TimelineRowHeader.js +0 -10
- package/esm/components/Toggle/Toggle.d.ts +0 -8
- package/esm/components/Toggle/Toggle.js +0 -8
- package/esm/components/VirtualList/VirtualList.d.ts +0 -19
- package/esm/components/VirtualList/VirtualList.js +0 -30
- package/esm/components/Visual/Visual.d.ts +0 -6
- package/esm/components/Visual/Visual.js +0 -38
- package/esm/components/prefix.d.ts +0 -2
- package/esm/components/prefix.js +0 -2
- package/esm/data/boxSizes.d.ts +0 -2
- package/esm/data/boxSizes.js +0 -10
- package/esm/data/dispatcherActions.d.ts +0 -5
- package/esm/data/dispatcherActions.js +0 -35
- package/esm/data/layoutDefault.d.ts +0 -2
- package/esm/data/layoutDefault.js +0 -46
- package/esm/data/panels.d.ts +0 -2
- package/esm/data/panels.js +0 -14
- package/esm/data/panelsArrangements.d.ts +0 -19
- package/esm/data/panelsArrangements.js +0 -19
- package/esm/data/panelsLocal.d.ts +0 -2
- package/esm/data/panelsLocal.js +0 -7
- package/esm/data/reduxFilterOptions.d.ts +0 -20
- package/esm/data/reduxFilterOptions.js +0 -223
- package/esm/data/widgets.d.ts +0 -2
- package/esm/data/widgets.js +0 -154
- package/esm/data/widgetsLocal.d.ts +0 -2
- package/esm/data/widgetsLocal.js +0 -19
- package/esm/hooks/index.d.ts +0 -7
- package/esm/hooks/index.js +0 -7
- package/esm/hooks/misc/hookState.d.ts +0 -8
- package/esm/hooks/misc/hookState.js +0 -6
- package/esm/hooks/misc/util.d.ts +0 -5
- package/esm/hooks/misc/util.js +0 -21
- package/esm/hooks/useBoolean.d.ts +0 -3
- package/esm/hooks/useBoolean.js +0 -3
- package/esm/hooks/useClickAway.d.ts +0 -3
- package/esm/hooks/useClickAway.js +0 -27
- package/esm/hooks/useEvent.d.ts +0 -13
- package/esm/hooks/useEvent.js +0 -35
- package/esm/hooks/useKey.d.ts +0 -12
- package/esm/hooks/useKey.js +0 -29
- package/esm/hooks/useList.d.ts +0 -57
- package/esm/hooks/useList.js +0 -74
- package/esm/hooks/useLocalstorage.d.ts +0 -10
- package/esm/hooks/useLocalstorage.js +0 -75
- package/esm/hooks/usePanels.d.ts +0 -10
- package/esm/hooks/usePanels.js +0 -45
- package/esm/hooks/useSetState.d.ts +0 -2
- package/esm/hooks/useSetState.js +0 -10
- package/esm/hooks/useToggle.d.ts +0 -2
- package/esm/hooks/useToggle.js +0 -6
- package/esm/hooks/useUpdate.d.ts +0 -1
- package/esm/hooks/useUpdate.js +0 -6
- package/esm/index.d.ts +0 -4
- package/esm/index.js +0 -4
- package/esm/selectors/selectors.d.ts +0 -21
- package/esm/selectors/selectors.js +0 -20
- package/esm/theme/devtoolsTheme.d.ts +0 -2
- package/esm/theme/devtoolsTheme.js +0 -95
- package/esm/types.d.ts +0 -21
- package/esm/types.js +0 -1
- package/esm/utils/filter.d.ts +0 -3
- package/esm/utils/filter.js +0 -25
- package/esm/utils/localStorage.d.ts +0 -2
- package/esm/utils/localStorage.js +0 -21
- package/esm/utils/sockets.d.ts +0 -7
- package/esm/utils/sockets.js +0 -27
- package/lib/components/Colors copy.css +0 -3
- package/lib/components/Colors copy.css.map +0 -1
- package/lib/components/Colors.css +0 -3
- package/lib/components/Colors.css.map +0 -1
- package/lib/components/ColorsDark.css +0 -3
- package/lib/components/ColorsDark.css.map +0 -1
- package/lib/components/Config/Config.css +0 -15
- package/lib/components/Config/Config.css.map +0 -1
- package/lib/components/Config/Config.d.ts +0 -6
- package/lib/components/Config/Config.js +0 -20
- package/lib/components/DevTools/DevTools.css +0 -11
- package/lib/components/DevTools/DevTools.css.map +0 -1
- package/lib/components/DevTools/DevTools.d.ts +0 -4
- package/lib/components/DevTools/DevTools.js +0 -24
- package/lib/components/DevToolsLocal/DevToolsLocal.css +0 -11
- package/lib/components/DevToolsLocal/DevToolsLocal.css.map +0 -1
- package/lib/components/DevToolsLocal/DevToolsLocal.d.ts +0 -4
- package/lib/components/DevToolsLocal/DevToolsLocal.js +0 -17
- package/lib/components/Dispatcher/Dispatcher.css +0 -15
- package/lib/components/Dispatcher/Dispatcher.css.map +0 -1
- package/lib/components/Dispatcher/Dispatcher.d.ts +0 -8
- package/lib/components/Dispatcher/Dispatcher.js +0 -65
- package/lib/components/GlobalSettings/GlobalSettings.css +0 -3
- package/lib/components/GlobalSettings/GlobalSettings.css.map +0 -1
- package/lib/components/GlobalSettings/GlobalSettings.d.ts +0 -6
- package/lib/components/GlobalSettings/GlobalSettings.js +0 -21
- package/lib/components/Group/Group.css +0 -41
- package/lib/components/Group/Group.css.map +0 -1
- package/lib/components/Group/Group.d.ts +0 -9
- package/lib/components/Group/Group.js +0 -19
- package/lib/components/Json/Json.css +0 -5
- package/lib/components/Json/Json.css.map +0 -1
- package/lib/components/Json/Json.d.ts +0 -7
- package/lib/components/Json/Json.js +0 -14
- package/lib/components/Logs/Logs.css +0 -5
- package/lib/components/Logs/Logs.css.map +0 -1
- package/lib/components/Logs/Logs.d.ts +0 -6
- package/lib/components/Logs/Logs.js +0 -54
- package/lib/components/Monitor/Monitor.css +0 -5
- package/lib/components/Monitor/Monitor.css.map +0 -1
- package/lib/components/Monitor/Monitor.d.ts +0 -6
- package/lib/components/Monitor/Monitor.js +0 -59
- package/lib/components/OverlayManager/OverlayManager.css +0 -72
- package/lib/components/OverlayManager/OverlayManager.css.map +0 -1
- package/lib/components/OverlayManager/OverlayManager.d.ts +0 -6
- package/lib/components/OverlayManager/OverlayManager.js +0 -22
- package/lib/components/Panel/Panel.css +0 -35
- package/lib/components/Panel/Panel.css.map +0 -1
- package/lib/components/Panel/Panel.d.ts +0 -14
- package/lib/components/Panel/Panel.js +0 -51
- package/lib/components/Prefix copy.css +0 -3
- package/lib/components/Prefix copy.css.map +0 -1
- package/lib/components/Prefix.css +0 -3
- package/lib/components/Prefix.css.map +0 -1
- package/lib/components/Preview/Preview.css +0 -29
- package/lib/components/Preview/Preview.css.map +0 -1
- package/lib/components/Preview/Preview.d.ts +0 -18
- package/lib/components/Preview/Preview.js +0 -64
- package/lib/components/Reading.css +0 -107
- package/lib/components/Reading.css.map +0 -1
- package/lib/components/Redux/Redux.css +0 -86
- package/lib/components/Redux/Redux.css.map +0 -1
- package/lib/components/Redux/Redux.d.ts +0 -6
- package/lib/components/Redux/Redux.js +0 -77
- package/lib/components/ReduxSettings/ReduxSettings.css +0 -10
- package/lib/components/ReduxSettings/ReduxSettings.css.map +0 -1
- package/lib/components/ReduxSettings/ReduxSettings.d.ts +0 -9
- package/lib/components/ReduxSettings/ReduxSettings.js +0 -64
- package/lib/components/Requests/Requests.css +0 -8
- package/lib/components/Requests/Requests.css.map +0 -1
- package/lib/components/Requests/Requests.d.ts +0 -6
- package/lib/components/Requests/Requests.js +0 -66
- package/lib/components/Status/Status.css +0 -15
- package/lib/components/Status/Status.css.map +0 -1
- package/lib/components/Status/Status.d.ts +0 -6
- package/lib/components/Status/Status.js +0 -21
- package/lib/components/TaskManager/TaskManager.css +0 -9
- package/lib/components/TaskManager/TaskManager.css.map +0 -1
- package/lib/components/TaskManager/TaskManager.d.ts +0 -9
- package/lib/components/TaskManager/TaskManager.js +0 -28
- package/lib/components/Timeline/Timeline.css +0 -5
- package/lib/components/Timeline/Timeline.css.map +0 -1
- package/lib/components/Timeline/Timeline.d.ts +0 -6
- package/lib/components/Timeline/Timeline.js +0 -18
- package/lib/components/TimelineEvent/TimelineEvent.css +0 -20
- package/lib/components/TimelineEvent/TimelineEvent.css.map +0 -1
- package/lib/components/TimelineEvent/TimelineEvent.d.ts +0 -7
- package/lib/components/TimelineEvent/TimelineEvent.js +0 -18
- package/lib/components/TimelineHeader/TimelineHeader.css +0 -6
- package/lib/components/TimelineHeader/TimelineHeader.css.map +0 -1
- package/lib/components/TimelineHeader/TimelineHeader.d.ts +0 -4
- package/lib/components/TimelineHeader/TimelineHeader.js +0 -10
- package/lib/components/TimelineRow/TimelineRow.css +0 -14
- package/lib/components/TimelineRow/TimelineRow.css.map +0 -1
- package/lib/components/TimelineRow/TimelineRow.d.ts +0 -7
- package/lib/components/TimelineRow/TimelineRow.js +0 -18
- package/lib/components/TimelineRowHeader/TimelineRowHeader.css +0 -45
- package/lib/components/TimelineRowHeader/TimelineRowHeader.css.map +0 -1
- package/lib/components/TimelineRowHeader/TimelineRowHeader.d.ts +0 -7
- package/lib/components/TimelineRowHeader/TimelineRowHeader.js +0 -15
- package/lib/components/Toggle/Toggle.css +0 -3
- package/lib/components/Toggle/Toggle.css.map +0 -1
- package/lib/components/Toggle/Toggle.d.ts +0 -8
- package/lib/components/Toggle/Toggle.js +0 -13
- package/lib/components/Variables.css +0 -3
- package/lib/components/Variables.css.map +0 -1
- package/lib/components/VirtualList/VirtualList.css +0 -13
- package/lib/components/VirtualList/VirtualList.css.map +0 -1
- package/lib/components/VirtualList/VirtualList.d.ts +0 -19
- package/lib/components/VirtualList/VirtualList.js +0 -35
- package/lib/components/Visual/Visual.css +0 -57
- package/lib/components/Visual/Visual.css.map +0 -1
- package/lib/components/Visual/Visual.d.ts +0 -6
- package/lib/components/Visual/Visual.js +0 -43
- package/lib/components/prefix.d.ts +0 -2
- package/lib/components/prefix.js +0 -5
- package/lib/data/boxSizes.d.ts +0 -2
- package/lib/data/boxSizes.js +0 -13
- package/lib/data/dispatcherActions.d.ts +0 -5
- package/lib/data/dispatcherActions.js +0 -38
- package/lib/data/layoutDefault.d.ts +0 -2
- package/lib/data/layoutDefault.js +0 -49
- package/lib/data/panels.d.ts +0 -2
- package/lib/data/panels.js +0 -17
- package/lib/data/panelsArrangements.d.ts +0 -19
- package/lib/data/panelsArrangements.js +0 -22
- package/lib/data/panelsLocal.d.ts +0 -2
- package/lib/data/panelsLocal.js +0 -10
- package/lib/data/reduxFilterOptions.d.ts +0 -20
- package/lib/data/reduxFilterOptions.js +0 -227
- package/lib/data/widgets.d.ts +0 -2
- package/lib/data/widgets.js +0 -157
- package/lib/data/widgetsLocal.d.ts +0 -2
- package/lib/data/widgetsLocal.js +0 -22
- package/lib/hooks/index.d.ts +0 -7
- package/lib/hooks/index.js +0 -17
- package/lib/hooks/misc/hookState.d.ts +0 -8
- package/lib/hooks/misc/hookState.js +0 -10
- package/lib/hooks/misc/util.d.ts +0 -5
- package/lib/hooks/misc/util.js +0 -27
- package/lib/hooks/useBoolean.d.ts +0 -3
- package/lib/hooks/useBoolean.js +0 -7
- package/lib/hooks/useClickAway.d.ts +0 -3
- package/lib/hooks/useClickAway.js +0 -31
- package/lib/hooks/useEvent.d.ts +0 -13
- package/lib/hooks/useEvent.js +0 -37
- package/lib/hooks/useKey.d.ts +0 -12
- package/lib/hooks/useKey.js +0 -34
- package/lib/hooks/useList.d.ts +0 -57
- package/lib/hooks/useList.js +0 -79
- package/lib/hooks/useLocalstorage.d.ts +0 -10
- package/lib/hooks/useLocalstorage.js +0 -79
- package/lib/hooks/usePanels.d.ts +0 -10
- package/lib/hooks/usePanels.js +0 -49
- package/lib/hooks/useSetState.d.ts +0 -2
- package/lib/hooks/useSetState.js +0 -14
- package/lib/hooks/useToggle.d.ts +0 -2
- package/lib/hooks/useToggle.js +0 -10
- package/lib/hooks/useUpdate.d.ts +0 -1
- package/lib/hooks/useUpdate.js +0 -9
- package/lib/index.css +0 -605
- package/lib/index.css.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -11
- package/lib/selectors/selectors.d.ts +0 -21
- package/lib/selectors/selectors.js +0 -24
- package/lib/theme/devtoolsTheme.d.ts +0 -2
- package/lib/theme/devtoolsTheme.js +0 -97
- package/lib/types.d.ts +0 -21
- package/lib/types.js +0 -2
- package/lib/utils/filter.d.ts +0 -3
- package/lib/utils/filter.js +0 -29
- package/lib/utils/localStorage.d.ts +0 -2
- package/lib/utils/localStorage.js +0 -26
- package/lib/utils/sockets.d.ts +0 -7
- package/lib/utils/sockets.js +0 -34
@@ -1,30 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { FixedSizeList } from 'react-window';
|
3
|
-
import classnames from 'classnames';
|
4
|
-
import cssPrefix from '../prefix';
|
5
|
-
function EmptyList() {
|
6
|
-
return React.createElement("div", { className: cssPrefix + "EmptyList-container" }, "Empty List");
|
7
|
-
}
|
8
|
-
export function VirtualList(props) {
|
9
|
-
var items = props.items, height = props.height;
|
10
|
-
var selectable = typeof props.onClick === 'function';
|
11
|
-
var className = classnames(cssPrefix + "VirtualList-container", props.className, {
|
12
|
-
selectable: selectable,
|
13
|
-
});
|
14
|
-
if (items.length === 0) {
|
15
|
-
return React.createElement(EmptyList, null);
|
16
|
-
}
|
17
|
-
var itemsWithClick = items.map(function (item) {
|
18
|
-
return {
|
19
|
-
onClick: function () {
|
20
|
-
if (props.onClick) {
|
21
|
-
props.onClick(item);
|
22
|
-
}
|
23
|
-
},
|
24
|
-
item: item,
|
25
|
-
};
|
26
|
-
});
|
27
|
-
return (React.createElement("div", { className: className },
|
28
|
-
React.createElement(FixedSizeList, { height: height, itemCount: items.length, itemSize: 45, itemData: itemsWithClick, width: '100%' }, props.children)));
|
29
|
-
}
|
30
|
-
export default VirtualList;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import classnames from 'classnames';
|
3
|
-
import Group from '../Group/Group';
|
4
|
-
import * as selectors from '../../selectors/selectors';
|
5
|
-
import { useDispatch, useSelector } from 'react-redux';
|
6
|
-
import { preview } from '../Preview/Preview';
|
7
|
-
import { ConnectionType } from 'redux-connected/lib/types/types';
|
8
|
-
import cssPrefix from '../prefix';
|
9
|
-
export function Visual(props) {
|
10
|
-
var dispatch = useDispatch();
|
11
|
-
var requests = useSelector(selectors.$requestsRaw);
|
12
|
-
var configs = useSelector(selectors.$endpointsConfig);
|
13
|
-
var nodeTypes = useSelector(selectors.$nodeTypes);
|
14
|
-
var isWide = props.isWide;
|
15
|
-
function onClick(request) {
|
16
|
-
dispatch(preview(request, 'request'));
|
17
|
-
}
|
18
|
-
function renderRequests(nodeName) {
|
19
|
-
var requestsForNode = requests.filter(function (request) { return request.nodeName === nodeName; });
|
20
|
-
return requestsForNode.map(function (request) {
|
21
|
-
var className = classnames('request', request.status);
|
22
|
-
return (React.createElement("div", { key: request.meta.id, className: className, onClick: function () { return onClick(request); } }, request.meta.sequence));
|
23
|
-
});
|
24
|
-
}
|
25
|
-
function renderGroup(nodeName) {
|
26
|
-
var config = configs[nodeName];
|
27
|
-
if (config.connectionType !== ConnectionType.REST) {
|
28
|
-
return null;
|
29
|
-
}
|
30
|
-
return (React.createElement(Group, { key: nodeName, title: nodeName, isWide: isWide },
|
31
|
-
React.createElement(React.Fragment, null, renderRequests(nodeName))));
|
32
|
-
}
|
33
|
-
var className = classnames(cssPrefix + "Visual-container", {
|
34
|
-
wide: isWide,
|
35
|
-
});
|
36
|
-
return React.createElement("div", { className: className }, Object.keys(nodeTypes).map(renderGroup));
|
37
|
-
}
|
38
|
-
export default Visual;
|
package/esm/components/prefix.js
DELETED
package/esm/data/boxSizes.d.ts
DELETED
package/esm/data/boxSizes.js
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
export var SINGLE_NODE = {
|
2
|
-
get: [{}],
|
3
|
-
setAll: [{ title: 'TITLE' }],
|
4
|
-
patch: [{ rnd: Math.random() }],
|
5
|
-
};
|
6
|
-
export var COLLECTION_NODE = {
|
7
|
-
get: [{}],
|
8
|
-
setAll: [{ p1: { id: 'p1', title: 'TITLE' } }],
|
9
|
-
set: ['p2', { id: 'p2', title: 'TITLE' }],
|
10
|
-
add: [{ title: 'TITLE' }],
|
11
|
-
patch: ['p1', { title: 'SECOND_TITLE' }],
|
12
|
-
delete: ['p1'],
|
13
|
-
};
|
14
|
-
export var QUEUE_NODE = {
|
15
|
-
get: [],
|
16
|
-
setAll: [{ '1': { id: '1', title: 'LOG' } }],
|
17
|
-
push: [{ id: '2', title: 'LOG' }],
|
18
|
-
pop: [],
|
19
|
-
clear: [],
|
20
|
-
pushMany: [{ '2': { id: '2', title: 'LOG' } }],
|
21
|
-
};
|
22
|
-
export var GROUPED_LIST_NODE = {
|
23
|
-
get: [{}],
|
24
|
-
setAll: [{ p1: { id: 'p1', title: 'TITLE' } }],
|
25
|
-
set: ['p2', { id: 'p2', title: 'TITLE' }],
|
26
|
-
add: [{ title: 'TITLE' }],
|
27
|
-
patch: ['p1', { title: 'SECOND_TITLE' }],
|
28
|
-
delete: ['p1'],
|
29
|
-
getItems: ['p1'],
|
30
|
-
setItems: ['p1', { '1': { id: '1', title: 'LOG' } }],
|
31
|
-
pushItem: ['p1', { id: '2', title: 'LOG' }],
|
32
|
-
popItem: ['p1'],
|
33
|
-
clearItems: ['p1'],
|
34
|
-
pushManyItems: ['p1', { '2': { id: '2', title: 'LOG' } }],
|
35
|
-
};
|
@@ -1,46 +0,0 @@
|
|
1
|
-
export var layout = {
|
2
|
-
topLeft1: {
|
3
|
-
dimension: { x: 13, y: 17 },
|
4
|
-
position: { x: 2, y: 2 },
|
5
|
-
},
|
6
|
-
topLeft2: {
|
7
|
-
dimension: { x: 13, y: 17 },
|
8
|
-
position: { x: 16, y: 2 },
|
9
|
-
},
|
10
|
-
topRight2: {
|
11
|
-
dimension: { x: 13, y: 17 },
|
12
|
-
position: { x: 30, y: 2 },
|
13
|
-
},
|
14
|
-
topRight1: {
|
15
|
-
dimension: { x: 13, y: 17 },
|
16
|
-
position: { x: 44, y: 2 },
|
17
|
-
},
|
18
|
-
bottomLeft1: {
|
19
|
-
dimension: { x: 13, y: 17 },
|
20
|
-
position: { x: 2, y: 75 },
|
21
|
-
},
|
22
|
-
bottomLeft2: {
|
23
|
-
dimension: { x: 13, y: 17 },
|
24
|
-
position: { x: 16, y: 75 },
|
25
|
-
},
|
26
|
-
bottomRight2: {
|
27
|
-
dimension: { x: 13, y: 17 },
|
28
|
-
position: { x: 30, y: 75 },
|
29
|
-
},
|
30
|
-
bottomRight1: {
|
31
|
-
dimension: { x: 13, y: 17 },
|
32
|
-
position: { x: 44, y: 75 },
|
33
|
-
},
|
34
|
-
center1: {
|
35
|
-
dimension: { x: 55, y: 33 },
|
36
|
-
position: { x: 2, y: 20 },
|
37
|
-
},
|
38
|
-
center2: {
|
39
|
-
dimension: { x: 55, y: 20 },
|
40
|
-
position: { x: 2, y: 54 },
|
41
|
-
},
|
42
|
-
portrait: {
|
43
|
-
dimension: { x: 55, y: 30 },
|
44
|
-
position: { x: 2, y: 2 },
|
45
|
-
},
|
46
|
-
};
|
package/esm/data/panels.d.ts
DELETED
package/esm/data/panels.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
|
-
import { layout } from './layoutDefault';
|
3
|
-
export var panels = {
|
4
|
-
p1: __assign({ id: 'p1', widgetId: 'processes', title: 'Processes', description: 'Start & stop processes' }, layout.topLeft1),
|
5
|
-
p2: __assign({ id: 'p2', widgetId: 'requests', title: 'Requests', description: 'Monitor API requests' }, layout.bottomRight2),
|
6
|
-
p3: __assign({ id: 'p3', widgetId: 'endpoints', title: 'Endpoints Configuration', description: 'Configure API for root nodes ' }, layout.bottomRight1),
|
7
|
-
p4: __assign({ id: 'p4', widgetId: 'apiStatus', title: 'API Status', description: 'Connection status for root nodes' }, layout.bottomLeft2),
|
8
|
-
p5: __assign({ id: 'p5', widgetId: 'logs', title: 'Logs', description: 'Watch console logs' }, layout.topLeft2),
|
9
|
-
p6: __assign({ id: 'p6', widgetId: 'visual', title: 'Visual', description: 'High-level requests visualization by root node' }, layout.topRight2),
|
10
|
-
p7: __assign({ id: 'p7', widgetId: 'settings', title: 'Settings', description: 'Global settings' }, layout.bottomLeft1),
|
11
|
-
p8: __assign({ id: 'p8', widgetId: 'preview', title: 'Preview', description: 'Preview a specific datapoint' }, layout.topRight1),
|
12
|
-
p9: __assign({ id: 'p9', widgetId: 'redux', title: 'Redux devtools', description: 'Watch actions and state changes' }, layout.center1),
|
13
|
-
p10: __assign({ id: 'p10', widgetId: 'timeline', title: 'Timeline', description: 'See redux events timeline' }, layout.center2),
|
14
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export declare const arrangement1: {
|
2
|
-
PANELS_STATE: string;
|
3
|
-
'PANEL_LOCK_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
|
4
|
-
'PANEL_OFFSET_c607e8f8-2212-4702-9072-9f623a70cda8': string;
|
5
|
-
'PANEL_OFFSET_42ac4e09-1048-4758-961b-869f6fd995f3': string;
|
6
|
-
'PANEL_OFFSET_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
|
7
|
-
'PANEL_OFFSET_fcc06beb-da2e-4bef-b8de-2b7754fa493f': string;
|
8
|
-
'PANEL_OFFSET_858c1417-cc0d-4320-9b13-002a130ebf49': string;
|
9
|
-
'TASK_MANAGER_c607e8f8-2212-4702-9072-9f623a70cda8': string;
|
10
|
-
'TASK_MANAGER_42ac4e09-1048-4758-961b-869f6fd995f3': string;
|
11
|
-
'TASK_MANAGER_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
|
12
|
-
'TASK_MANAGER_fcc06beb-da2e-4bef-b8de-2b7754fa493f': string;
|
13
|
-
'TASK_MANAGER_858c1417-cc0d-4320-9b13-002a130ebf49': string;
|
14
|
-
TASK_MANAGER_1: string;
|
15
|
-
TASK_MANAGER_2: string;
|
16
|
-
TASK_MANAGER_center: string;
|
17
|
-
TASK_MANAGER_3: string;
|
18
|
-
TASK_MANAGER_4: string;
|
19
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export var arrangement1 = {
|
2
|
-
PANELS_STATE: '[{"guid":"858c1417-cc0d-4320-9b13-002a130ebf49","isWide":false},{"guid":"dc4e0a4b-50b7-4900-adbb-2a93b9c0d826","isWide":true},{"guid":"fcc06beb-da2e-4bef-b8de-2b7754fa493f"},{"guid":"c607e8f8-2212-4702-9072-9f623a70cda8"},{"guid":"42ac4e09-1048-4758-961b-869f6fd995f3"}]',
|
3
|
-
'PANEL_LOCK_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"YES"',
|
4
|
-
'PANEL_OFFSET_c607e8f8-2212-4702-9072-9f623a70cda8': '{"x":-1051,"y":-417}',
|
5
|
-
'PANEL_OFFSET_42ac4e09-1048-4758-961b-869f6fd995f3': '{"x":-1050,"y":-8}',
|
6
|
-
'PANEL_OFFSET_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '{"x":-290,"y":-8}',
|
7
|
-
'PANEL_OFFSET_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '{"x":73,"y":-418}',
|
8
|
-
'PANEL_OFFSET_858c1417-cc0d-4320-9b13-002a130ebf49': '{"x":73,"y":-8}',
|
9
|
-
'TASK_MANAGER_c607e8f8-2212-4702-9072-9f623a70cda8': '"preview"',
|
10
|
-
'TASK_MANAGER_42ac4e09-1048-4758-961b-869f6fd995f3': '"apiStatus"',
|
11
|
-
'TASK_MANAGER_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"redux"',
|
12
|
-
'TASK_MANAGER_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '"visual"',
|
13
|
-
'TASK_MANAGER_858c1417-cc0d-4320-9b13-002a130ebf49': '"requests"',
|
14
|
-
TASK_MANAGER_1: '"preview"',
|
15
|
-
TASK_MANAGER_2: '"apiStatus"',
|
16
|
-
TASK_MANAGER_center: '"redux"',
|
17
|
-
TASK_MANAGER_3: '"visual"',
|
18
|
-
TASK_MANAGER_4: '"requests"',
|
19
|
-
};
|
package/esm/data/panelsLocal.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
|
-
import { layout } from './layoutDefault';
|
3
|
-
export var panels = {
|
4
|
-
p1: __assign(__assign({ id: 'p1', widgetId: 'timeline', title: 'Timeline', description: 'See redux events timeline' }, layout.portrait), { props: {
|
5
|
-
selector: function (state) { return Object.values(state.sagas); },
|
6
|
-
} }),
|
7
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Reading } from 'redux-connected';
|
2
|
-
import { ApiInfoPerType } from 'redux-store-generator';
|
3
|
-
export declare type IncludePredicate = (reading: Reading, apiInfo?: ApiInfoPerType) => boolean | undefined;
|
4
|
-
export declare type ExcludePredicate = (reading: Reading, apiInfo?: ApiInfoPerType) => boolean | undefined;
|
5
|
-
export interface ReadingsFilter {
|
6
|
-
id: string;
|
7
|
-
label: string;
|
8
|
-
isShow?: boolean;
|
9
|
-
include?: IncludePredicate;
|
10
|
-
exclude?: ExcludePredicate;
|
11
|
-
}
|
12
|
-
export interface Preset {
|
13
|
-
key: string;
|
14
|
-
text: string;
|
15
|
-
isCustom?: boolean;
|
16
|
-
selectedItems?: string[];
|
17
|
-
}
|
18
|
-
export declare const readingsFilters: ReadingsFilter[];
|
19
|
-
export declare const presets: Preset[];
|
20
|
-
export declare const findPreset: (filters: Record<string, boolean>) => Preset;
|
@@ -1,223 +0,0 @@
|
|
1
|
-
import { __spreadArray } from "tslib";
|
2
|
-
export var readingsFilters = [
|
3
|
-
{
|
4
|
-
id: 'root',
|
5
|
-
label: 'Show root',
|
6
|
-
isShow: true,
|
7
|
-
include: function (reading) {
|
8
|
-
var action = reading.action;
|
9
|
-
return action['@@redux-store-generator/AUTO_GENERATED_ACTION'];
|
10
|
-
},
|
11
|
-
},
|
12
|
-
{
|
13
|
-
id: 'apiState',
|
14
|
-
label: 'Show API state',
|
15
|
-
isShow: true,
|
16
|
-
include: function (reading) {
|
17
|
-
var action = reading.action;
|
18
|
-
return action['@@redux-connected/STATUS_ACTION'];
|
19
|
-
},
|
20
|
-
},
|
21
|
-
{
|
22
|
-
id: 'apiConfig',
|
23
|
-
label: 'Show API config',
|
24
|
-
isShow: true,
|
25
|
-
include: function (reading) {
|
26
|
-
var action = reading.action;
|
27
|
-
return action['@@redux-connected/CONFIG_ACTION'];
|
28
|
-
},
|
29
|
-
},
|
30
|
-
{
|
31
|
-
id: 'sagasMessages',
|
32
|
-
label: 'Show sagas messages',
|
33
|
-
isShow: true,
|
34
|
-
include: function (reading) {
|
35
|
-
var action = reading.action;
|
36
|
-
return (action['@@redux-saga/SAGA_ACTION'] &&
|
37
|
-
action.type !== 'LOG' &&
|
38
|
-
!action['@@redux-store-generator/AUTO_GENERATED_ACTION']);
|
39
|
-
},
|
40
|
-
},
|
41
|
-
{
|
42
|
-
id: 'globalStats',
|
43
|
-
label: 'Show global stats',
|
44
|
-
isShow: true,
|
45
|
-
include: function (reading) {
|
46
|
-
var action = reading.action;
|
47
|
-
return action['@@redux-connected/GLOBAL_STATS_ACTION'];
|
48
|
-
},
|
49
|
-
},
|
50
|
-
{
|
51
|
-
id: 'globalSettings',
|
52
|
-
label: 'Show global settings',
|
53
|
-
isShow: true,
|
54
|
-
include: function (reading) {
|
55
|
-
var action = reading.action;
|
56
|
-
return action['@@redux-connected/GLOBAL_SETTINGS_ACTION'];
|
57
|
-
},
|
58
|
-
},
|
59
|
-
{
|
60
|
-
id: 'sagasInfo',
|
61
|
-
label: 'Show sagas info',
|
62
|
-
isShow: true,
|
63
|
-
include: function (reading) {
|
64
|
-
var action = reading.action;
|
65
|
-
return action['@@redux-connected/SAGA_ACTION'];
|
66
|
-
},
|
67
|
-
},
|
68
|
-
{
|
69
|
-
id: 'log',
|
70
|
-
label: 'Show log',
|
71
|
-
isShow: true,
|
72
|
-
include: function (reading) {
|
73
|
-
var action = reading.action;
|
74
|
-
return action.type === 'LOG';
|
75
|
-
},
|
76
|
-
},
|
77
|
-
{
|
78
|
-
id: 'hideGet',
|
79
|
-
label: 'Hide get',
|
80
|
-
exclude: function (reading, apiInfo) {
|
81
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
82
|
-
var action = reading.action;
|
83
|
-
var info = apiInfo[action.type];
|
84
|
-
return info === null || info === void 0 ? void 0 : info.isGet;
|
85
|
-
},
|
86
|
-
},
|
87
|
-
{
|
88
|
-
id: 'hidePatch',
|
89
|
-
label: 'Hide patch',
|
90
|
-
exclude: function (reading, apiInfo) {
|
91
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
92
|
-
var action = reading.action;
|
93
|
-
var info = apiInfo[action.type];
|
94
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'patch';
|
95
|
-
},
|
96
|
-
},
|
97
|
-
{
|
98
|
-
id: 'hideSetAll',
|
99
|
-
label: 'Hide setAll',
|
100
|
-
exclude: function (reading, apiInfo) {
|
101
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
102
|
-
var action = reading.action;
|
103
|
-
var info = apiInfo[action.type];
|
104
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'setAll';
|
105
|
-
},
|
106
|
-
},
|
107
|
-
{
|
108
|
-
id: 'hideSet',
|
109
|
-
label: 'Hide set',
|
110
|
-
exclude: function (reading, apiInfo) {
|
111
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
112
|
-
var action = reading.action;
|
113
|
-
var info = apiInfo[action.type];
|
114
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'set';
|
115
|
-
},
|
116
|
-
},
|
117
|
-
{
|
118
|
-
id: 'hideDelete',
|
119
|
-
label: 'Hide delete',
|
120
|
-
exclude: function (reading, apiInfo) {
|
121
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
122
|
-
var action = reading.action;
|
123
|
-
var info = apiInfo[action.type];
|
124
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'delete';
|
125
|
-
},
|
126
|
-
},
|
127
|
-
{
|
128
|
-
id: 'hidePush',
|
129
|
-
label: 'Hide push',
|
130
|
-
exclude: function (reading, apiInfo) {
|
131
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
132
|
-
var action = reading.action;
|
133
|
-
var info = apiInfo[action.type];
|
134
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'push';
|
135
|
-
},
|
136
|
-
},
|
137
|
-
{
|
138
|
-
id: 'hidePop',
|
139
|
-
label: 'Hide pop',
|
140
|
-
exclude: function (reading, apiInfo) {
|
141
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
142
|
-
var action = reading.action;
|
143
|
-
var info = apiInfo[action.type];
|
144
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'pop';
|
145
|
-
},
|
146
|
-
},
|
147
|
-
{
|
148
|
-
id: 'hideClear',
|
149
|
-
label: 'Hide clear',
|
150
|
-
exclude: function (reading, apiInfo) {
|
151
|
-
if (apiInfo === void 0) { apiInfo = {}; }
|
152
|
-
var action = reading.action;
|
153
|
-
var info = apiInfo[action.type];
|
154
|
-
return (info === null || info === void 0 ? void 0 : info.verb) === 'clear';
|
155
|
-
},
|
156
|
-
},
|
157
|
-
];
|
158
|
-
export var presets = [
|
159
|
-
{
|
160
|
-
key: 'custom',
|
161
|
-
text: 'Custom',
|
162
|
-
isCustom: true,
|
163
|
-
},
|
164
|
-
{
|
165
|
-
key: 'default',
|
166
|
-
text: 'Default',
|
167
|
-
selectedItems: ['root'].sort(),
|
168
|
-
},
|
169
|
-
{
|
170
|
-
key: 'connected',
|
171
|
-
text: 'Connected',
|
172
|
-
selectedItems: [
|
173
|
-
'apiState',
|
174
|
-
'apiConfig',
|
175
|
-
'sagasMessages',
|
176
|
-
'globalStats',
|
177
|
-
'globalSettings',
|
178
|
-
'log',
|
179
|
-
'sagasInfo',
|
180
|
-
].sort(),
|
181
|
-
},
|
182
|
-
{
|
183
|
-
key: 'get',
|
184
|
-
text: 'GET',
|
185
|
-
selectedItems: [
|
186
|
-
'root',
|
187
|
-
'hidePatch',
|
188
|
-
'hideSetAll',
|
189
|
-
'hideSet',
|
190
|
-
'hideDelete',
|
191
|
-
'hidePush',
|
192
|
-
'hidePop',
|
193
|
-
'hideClear',
|
194
|
-
].sort(),
|
195
|
-
},
|
196
|
-
{
|
197
|
-
key: 'all',
|
198
|
-
text: 'All',
|
199
|
-
selectedItems: [
|
200
|
-
'root',
|
201
|
-
'apiState',
|
202
|
-
'apiConfig',
|
203
|
-
'sagasMessages',
|
204
|
-
'globalStats',
|
205
|
-
'globalSettings',
|
206
|
-
'sagasInfo',
|
207
|
-
].sort(),
|
208
|
-
},
|
209
|
-
];
|
210
|
-
var sameArray = function (array1, array2) {
|
211
|
-
var sortedArray1 = __spreadArray([], array1).sort();
|
212
|
-
var sortedArray2 = __spreadArray([], array2).sort();
|
213
|
-
return (sortedArray1.length === sortedArray2.length &&
|
214
|
-
sortedArray1.every(function (value, index) { return value === sortedArray2[index]; }));
|
215
|
-
};
|
216
|
-
export var findPreset = function (filters) {
|
217
|
-
var checkedFilters = Object.keys(filters)
|
218
|
-
.filter(function (key) { return filters[key]; })
|
219
|
-
.sort();
|
220
|
-
return (presets.find(function (preset) {
|
221
|
-
return preset && sameArray(preset.selectedItems || [], checkedFilters);
|
222
|
-
}) || presets[0]);
|
223
|
-
};
|
package/esm/data/widgets.d.ts
DELETED
package/esm/data/widgets.js
DELETED
@@ -1,154 +0,0 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
|
-
import React from 'react';
|
3
|
-
import Monitor from '../components/Monitor/Monitor';
|
4
|
-
import Requests from '../components/Requests/Requests';
|
5
|
-
import Redux from '../components/Redux/Redux';
|
6
|
-
import Config from '../components/Config/Config';
|
7
|
-
import Status from '../components/Status/Status';
|
8
|
-
import Preview from '../components/Preview/Preview';
|
9
|
-
import Logs from '../components/Logs/Logs';
|
10
|
-
import Visual from '../components/Visual/Visual';
|
11
|
-
import GlobalSettings from '../components/GlobalSettings/GlobalSettings';
|
12
|
-
import Timeline from '../components/Timeline/Timeline';
|
13
|
-
export var widgets = {
|
14
|
-
processes: {
|
15
|
-
id: 'processes',
|
16
|
-
widgetId: 'processes',
|
17
|
-
title: 'Processes',
|
18
|
-
description: 'Start & stop processes',
|
19
|
-
dimension: {
|
20
|
-
x: 13,
|
21
|
-
y: 17,
|
22
|
-
},
|
23
|
-
component: function (props) { return React.createElement(Monitor, __assign({}, props)); },
|
24
|
-
props: {
|
25
|
-
isWide: false,
|
26
|
-
},
|
27
|
-
},
|
28
|
-
requests: {
|
29
|
-
id: 'requests',
|
30
|
-
widgetId: 'requests',
|
31
|
-
title: 'Requests',
|
32
|
-
description: 'Monitor API requests',
|
33
|
-
dimension: {
|
34
|
-
x: 13,
|
35
|
-
y: 17,
|
36
|
-
},
|
37
|
-
component: function (props) { return React.createElement(Requests, __assign({}, props)); },
|
38
|
-
props: {
|
39
|
-
isWide: false,
|
40
|
-
},
|
41
|
-
},
|
42
|
-
endpoints: {
|
43
|
-
id: 'endpoints',
|
44
|
-
widgetId: 'endpoints',
|
45
|
-
title: 'Endpoints Configuration',
|
46
|
-
description: 'Configure API for root nodes ',
|
47
|
-
dimension: {
|
48
|
-
x: 13,
|
49
|
-
y: 17,
|
50
|
-
},
|
51
|
-
component: function (props) { return React.createElement(Config, __assign({}, props)); },
|
52
|
-
props: {
|
53
|
-
isWide: false,
|
54
|
-
},
|
55
|
-
},
|
56
|
-
apiStatus: {
|
57
|
-
id: 'apiStatus',
|
58
|
-
widgetId: 'apiStatus',
|
59
|
-
title: 'API Status',
|
60
|
-
description: 'Connection status for root nodes',
|
61
|
-
dimension: {
|
62
|
-
x: 13,
|
63
|
-
y: 17,
|
64
|
-
},
|
65
|
-
component: function (props) { return React.createElement(Status, __assign({}, props)); },
|
66
|
-
props: {
|
67
|
-
isWide: false,
|
68
|
-
},
|
69
|
-
},
|
70
|
-
logs: {
|
71
|
-
id: 'logs',
|
72
|
-
widgetId: 'logs',
|
73
|
-
title: 'Logs',
|
74
|
-
description: 'Watch console logs',
|
75
|
-
dimension: {
|
76
|
-
x: 13,
|
77
|
-
y: 17,
|
78
|
-
},
|
79
|
-
component: function (props) { return React.createElement(Logs, __assign({}, props)); },
|
80
|
-
props: {
|
81
|
-
isWide: false,
|
82
|
-
},
|
83
|
-
},
|
84
|
-
visual: {
|
85
|
-
id: 'visual',
|
86
|
-
widgetId: 'visual',
|
87
|
-
title: 'Visual',
|
88
|
-
description: 'High-level requests visualization by root node',
|
89
|
-
dimension: {
|
90
|
-
x: 13,
|
91
|
-
y: 17,
|
92
|
-
},
|
93
|
-
component: function (props) { return React.createElement(Visual, __assign({}, props)); },
|
94
|
-
props: {
|
95
|
-
isWide: false,
|
96
|
-
},
|
97
|
-
},
|
98
|
-
settings: {
|
99
|
-
id: 'settings',
|
100
|
-
widgetId: 'settings',
|
101
|
-
title: 'Settings',
|
102
|
-
description: 'Global settings',
|
103
|
-
dimension: {
|
104
|
-
x: 13,
|
105
|
-
y: 17,
|
106
|
-
},
|
107
|
-
component: function (props) { return React.createElement(GlobalSettings, __assign({}, props)); },
|
108
|
-
props: {
|
109
|
-
isWide: false,
|
110
|
-
},
|
111
|
-
},
|
112
|
-
preview: {
|
113
|
-
id: 'preview',
|
114
|
-
widgetId: 'preview',
|
115
|
-
title: 'Preview',
|
116
|
-
description: 'Preview a specific datapoint',
|
117
|
-
dimension: {
|
118
|
-
x: 13,
|
119
|
-
y: 17,
|
120
|
-
},
|
121
|
-
component: function (props) { return React.createElement(Preview, __assign({}, props)); },
|
122
|
-
props: {
|
123
|
-
isWide: false,
|
124
|
-
},
|
125
|
-
},
|
126
|
-
redux: {
|
127
|
-
id: 'redux',
|
128
|
-
widgetId: 'redux',
|
129
|
-
title: 'Redux devtools',
|
130
|
-
description: 'Watch actions and state changes',
|
131
|
-
dimension: {
|
132
|
-
x: 24,
|
133
|
-
y: 33,
|
134
|
-
},
|
135
|
-
component: function (props) { return React.createElement(Redux, __assign({}, props)); },
|
136
|
-
props: {
|
137
|
-
isWide: true,
|
138
|
-
},
|
139
|
-
},
|
140
|
-
timeline: {
|
141
|
-
id: 'timeline',
|
142
|
-
widgetId: 'timeline',
|
143
|
-
title: 'Timeline',
|
144
|
-
description: 'Timeline',
|
145
|
-
dimension: {
|
146
|
-
x: 55,
|
147
|
-
y: 20,
|
148
|
-
},
|
149
|
-
component: function (props) { return React.createElement(Timeline, __assign({}, props)); },
|
150
|
-
props: {
|
151
|
-
isWide: true,
|
152
|
-
},
|
153
|
-
},
|
154
|
-
};
|