redux-connected-devtools 0.0.13 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +47 -62
- package/public/devtools.html +8 -0
- package/public/icon.png +0 -0
- package/public/manifest.json +29 -0
- package/public/options.html +12 -0
- package/public/panel.html +39 -0
- package/public/popup.html +12 -0
- package/src/__tests__/sum.ts +9 -0
- package/src/background.ts +49 -0
- package/src/components/DevInspector/DevInspector.scss +2 -0
- package/src/components/DevInspector/DevInspector.style.tsx +8 -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 +62 -0
- package/src/components/DevMenu/DevMenu.scss +2 -0
- package/src/components/DevMenu/DevMenu.style.tsx +53 -0
- package/src/components/DevMenu/DevMenu.tsx +76 -0
- package/src/components/DevPanel/DevPanel.scss +2 -0
- package/src/components/DevPanel/DevPanel.style.tsx +16 -0
- package/src/components/DevPanel/DevPanel.tsx +51 -0
- package/src/components/JourneyRow/JourneyRow.scss +2 -0
- package/src/components/JourneyRow/JourneyRow.style.tsx +46 -0
- package/src/components/JourneyRow/JourneyRow.tsx +58 -0
- package/src/components/JsonViewer/JsonViewer.scss +2 -0
- package/src/components/JsonViewer/JsonViewer.style.tsx +31 -0
- package/src/components/JsonViewer/JsonViewer.tsx +24 -0
- package/src/components/Lifecycle/Lifecycle.scss +2 -0
- package/src/components/Lifecycle/Lifecycle.style.tsx +6 -0
- package/src/components/Lifecycle/Lifecycle.tsx +31 -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 +6 -0
- package/src/components/RequestJourney/RequestJourney.tsx +33 -0
- package/src/components/RequestRow/RequestRow.scss +2 -0
- package/src/components/RequestRow/RequestRow.style.tsx +31 -0
- package/src/components/RequestRow/RequestRow.tsx +37 -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 +10 -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/LifecycleApiErrorContainer.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/content_script.ts +19 -0
- package/src/data/devComponents.tsx +25 -0
- package/src/data/devRoutes.ts +83 -0
- package/src/devtools.tsx +29 -0
- package/src/index.ts +1 -0
- package/src/injected_script.ts +9 -0
- package/src/options.tsx +77 -0
- package/src/panel.tsx +30 -0
- package/src/popup.tsx +63 -0
- package/src/store/initialState.ts +42 -0
- package/src/store/selectors.ts +205 -0
- package/src/sum.ts +3 -0
- package/src/types.ts +1 -0
- package/src/utils/date.ts +3 -0
- package/tsconfig.json +24 -0
- package/vite.config.ts +45 -0
- package/webpack/webpack.common.js +46 -0
- package/webpack/webpack.dev.js +7 -0
- package/webpack/webpack.prod.js +6 -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/Dispatcher/Dispatcher.d.ts +0 -8
- package/esm/components/Dispatcher/Dispatcher.js +0 -62
- 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 -52
- 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 -19
- 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/Toggle/Toggle.d.ts +0 -9
- 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/panels.d.ts +0 -2
- package/esm/data/panels.js +0 -74
- package/esm/data/panelsArrangements.d.ts +0 -19
- package/esm/data/panelsArrangements.js +0 -19
- 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 -85
- 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 -43
- 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 -3
- package/esm/index.js +0 -3
- 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/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/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 -3
- 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/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 -66
- 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 -3
- 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 -3
- 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 -3
- 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 -57
- 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 -19
- 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/Toggle/Toggle.css +0 -3
- package/lib/components/Toggle/Toggle.css.map +0 -1
- package/lib/components/Toggle/Toggle.d.ts +0 -9
- 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 -56
- 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/panels.d.ts +0 -2
- package/lib/data/panels.js +0 -77
- package/lib/data/panelsArrangements.d.ts +0 -19
- package/lib/data/panelsArrangements.js +0 -22
- 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 -89
- 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 -47
- 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 -488
- package/lib/index.css.map +0 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -9
- 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/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
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"Toggle.css"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import 'react-toggle/style.css';
|
3
|
-
import Toggle from 'react-toggle';
|
4
|
-
declare type ToggleProps = {
|
5
|
-
defaultChecked: boolean;
|
6
|
-
onChange: () => {};
|
7
|
-
};
|
8
|
-
export declare function Toggle(props: ToggleProps): JSX.Element;
|
9
|
-
export default Toggle;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Toggle = void 0;
|
4
|
-
var tslib_1 = require("tslib");
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
6
|
-
require("react-toggle/style.css");
|
7
|
-
var react_toggle_1 = tslib_1.__importDefault(require("react-toggle"));
|
8
|
-
function Toggle(props) {
|
9
|
-
return (react_1.default.createElement("div", { className: "Toggle-container" },
|
10
|
-
react_1.default.createElement(react_toggle_1.default, { defaultChecked: props.defaultChecked, onChange: props.onChange })));
|
11
|
-
}
|
12
|
-
exports.Toggle = Toggle;
|
13
|
-
exports.default = react_toggle_1.default;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"Variables.css"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
.__devtools__EmptyList-container {
|
2
|
-
min-height: 280px;
|
3
|
-
padding: 20px;
|
4
|
-
display: flex;
|
5
|
-
flex-direction: row;
|
6
|
-
align-items: center;
|
7
|
-
justify-content: center;
|
8
|
-
font-size: 13px;
|
9
|
-
color: rgba(255, 255, 255, 0.5);
|
10
|
-
font-weight: 100;
|
11
|
-
}
|
12
|
-
|
13
|
-
/*# sourceMappingURL=VirtualList.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["file:///Users/dht/projects/redux-connected/packages/redux-connected-devtools/src/components/VirtualList/VirtualList.scss"],"names":[],"mappings":"AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"VirtualList.css"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type VirtualListProps = {
|
3
|
-
children: any;
|
4
|
-
items: any[];
|
5
|
-
className?: string;
|
6
|
-
height: number;
|
7
|
-
onClick?(item: any): void;
|
8
|
-
};
|
9
|
-
export declare type VirtualListRowProps = {
|
10
|
-
index: number;
|
11
|
-
style: any;
|
12
|
-
data: any;
|
13
|
-
};
|
14
|
-
export interface VirtualListItemWithEvent<T> {
|
15
|
-
onClick(): void;
|
16
|
-
item: T;
|
17
|
-
}
|
18
|
-
export declare function VirtualList<T>(props: VirtualListProps): JSX.Element;
|
19
|
-
export default VirtualList;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.VirtualList = void 0;
|
4
|
-
var tslib_1 = require("tslib");
|
5
|
-
var React = tslib_1.__importStar(require("react"));
|
6
|
-
var react_window_1 = require("react-window");
|
7
|
-
var classnames_1 = tslib_1.__importDefault(require("classnames"));
|
8
|
-
var prefix_1 = tslib_1.__importDefault(require("../prefix"));
|
9
|
-
function EmptyList() {
|
10
|
-
return React.createElement("div", { className: prefix_1.default + "EmptyList-container" }, "Empty List");
|
11
|
-
}
|
12
|
-
function VirtualList(props) {
|
13
|
-
var items = props.items, height = props.height;
|
14
|
-
var selectable = typeof props.onClick === 'function';
|
15
|
-
var className = classnames_1.default(prefix_1.default + "VirtualList-container", props.className, {
|
16
|
-
selectable: selectable,
|
17
|
-
});
|
18
|
-
if (items.length === 0) {
|
19
|
-
return React.createElement(EmptyList, null);
|
20
|
-
}
|
21
|
-
var itemsWithClick = items.map(function (item) {
|
22
|
-
return {
|
23
|
-
onClick: function () {
|
24
|
-
if (props.onClick) {
|
25
|
-
props.onClick(item);
|
26
|
-
}
|
27
|
-
},
|
28
|
-
item: item,
|
29
|
-
};
|
30
|
-
});
|
31
|
-
return (React.createElement("div", { className: className },
|
32
|
-
React.createElement(react_window_1.FixedSizeList, { height: height, itemCount: items.length, itemSize: 45, itemData: itemsWithClick, width: '100%' }, props.children)));
|
33
|
-
}
|
34
|
-
exports.VirtualList = VirtualList;
|
35
|
-
exports.default = VirtualList;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
.__devtools__Visual-container {
|
2
|
-
padding: 10px 10px;
|
3
|
-
max-height: 350px;
|
4
|
-
overflow: auto;
|
5
|
-
}
|
6
|
-
.__devtools__Visual-container.wide {
|
7
|
-
max-height: 710px;
|
8
|
-
}
|
9
|
-
.__devtools__Visual-container .request {
|
10
|
-
width: 20px;
|
11
|
-
height: 20px;
|
12
|
-
margin: 2px;
|
13
|
-
float: left;
|
14
|
-
border-radius: 3px;
|
15
|
-
font-size: 10px;
|
16
|
-
line-height: 20px;
|
17
|
-
text-align: center;
|
18
|
-
cursor: pointer;
|
19
|
-
background-color: gray;
|
20
|
-
border: 1px solid gray;
|
21
|
-
color: #333;
|
22
|
-
}
|
23
|
-
.__devtools__Visual-container .request.IDLE {
|
24
|
-
background-color: rgba(255, 255, 255, 0.2);
|
25
|
-
border: 1px solid rgba(255, 255, 255, 0.2);
|
26
|
-
}
|
27
|
-
.__devtools__Visual-container .request.ON_QUEUE {
|
28
|
-
background-color: orange;
|
29
|
-
border: 1px solid orange;
|
30
|
-
}
|
31
|
-
.__devtools__Visual-container .request.PRE_RUN {
|
32
|
-
background-color: orange;
|
33
|
-
border: 1px solid orangered;
|
34
|
-
}
|
35
|
-
.__devtools__Visual-container .request.RUNNING {
|
36
|
-
background-color: plum;
|
37
|
-
border: 1px solid plum;
|
38
|
-
}
|
39
|
-
.__devtools__Visual-container .request.SUCCESS {
|
40
|
-
background-color: yellowgreen;
|
41
|
-
border: 1px solid yellowgreen;
|
42
|
-
}
|
43
|
-
.__devtools__Visual-container .request.ERROR {
|
44
|
-
background-color: lightcoral;
|
45
|
-
border: 1px solid lightcoral;
|
46
|
-
}
|
47
|
-
.__devtools__Visual-container .request:hover {
|
48
|
-
border: 1px solid gray;
|
49
|
-
}
|
50
|
-
.__devtools__Visual-container .request:active {
|
51
|
-
position: relative;
|
52
|
-
bottom: 1px;
|
53
|
-
right: 1px;
|
54
|
-
}
|
55
|
-
|
56
|
-
/*# sourceMappingURL=Visual.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["file:///Users/dht/projects/redux-connected/packages/redux-connected-devtools/src/components/Visual/Visual.scss"],"names":[],"mappings":"AAEA;EACI;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA","file":"Visual.css"}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Visual = void 0;
|
4
|
-
var tslib_1 = require("tslib");
|
5
|
-
var React = tslib_1.__importStar(require("react"));
|
6
|
-
var classnames_1 = tslib_1.__importDefault(require("classnames"));
|
7
|
-
var Group_1 = tslib_1.__importDefault(require("../Group/Group"));
|
8
|
-
var selectors = tslib_1.__importStar(require("../../selectors/selectors"));
|
9
|
-
var react_redux_1 = require("react-redux");
|
10
|
-
var Preview_1 = require("../Preview/Preview");
|
11
|
-
var types_1 = require("redux-connected/lib/types/types");
|
12
|
-
var prefix_1 = tslib_1.__importDefault(require("../prefix"));
|
13
|
-
function Visual(props) {
|
14
|
-
var dispatch = react_redux_1.useDispatch();
|
15
|
-
var requests = react_redux_1.useSelector(selectors.$requestsRaw);
|
16
|
-
var configs = react_redux_1.useSelector(selectors.$endpointsConfig);
|
17
|
-
var nodeTypes = react_redux_1.useSelector(selectors.$nodeTypes);
|
18
|
-
var isWide = props.isWide;
|
19
|
-
function onClick(request) {
|
20
|
-
dispatch(Preview_1.preview(request, 'request'));
|
21
|
-
}
|
22
|
-
function renderRequests(nodeName) {
|
23
|
-
var requestsForNode = requests.filter(function (request) { return request.nodeName === nodeName; });
|
24
|
-
return requestsForNode.map(function (request) {
|
25
|
-
var className = classnames_1.default('request', request.status);
|
26
|
-
return (React.createElement("div", { key: request.meta.id, className: className, onClick: function () { return onClick(request); } }, request.meta.sequence));
|
27
|
-
});
|
28
|
-
}
|
29
|
-
function renderGroup(nodeName) {
|
30
|
-
var config = configs[nodeName];
|
31
|
-
if (config.connectionType !== types_1.ConnectionType.REST) {
|
32
|
-
return null;
|
33
|
-
}
|
34
|
-
return (React.createElement(Group_1.default, { key: nodeName, title: nodeName, isWide: isWide },
|
35
|
-
React.createElement(React.Fragment, null, renderRequests(nodeName))));
|
36
|
-
}
|
37
|
-
var className = classnames_1.default(prefix_1.default + "Visual-container", {
|
38
|
-
wide: isWide,
|
39
|
-
});
|
40
|
-
return React.createElement("div", { className: className }, Object.keys(nodeTypes).map(renderGroup));
|
41
|
-
}
|
42
|
-
exports.Visual = Visual;
|
43
|
-
exports.default = Visual;
|
package/lib/components/prefix.js
DELETED
package/lib/data/boxSizes.d.ts
DELETED
package/lib/data/boxSizes.js
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GROUPED_LIST_NODE = exports.QUEUE_NODE = exports.COLLECTION_NODE = exports.SINGLE_NODE = void 0;
|
4
|
-
exports.SINGLE_NODE = {
|
5
|
-
get: [{}],
|
6
|
-
setAll: [{ title: 'TITLE' }],
|
7
|
-
patch: [{ rnd: Math.random() }],
|
8
|
-
};
|
9
|
-
exports.COLLECTION_NODE = {
|
10
|
-
get: [{}],
|
11
|
-
setAll: [{ p1: { id: 'p1', title: 'TITLE' } }],
|
12
|
-
set: ['p2', { id: 'p2', title: 'TITLE' }],
|
13
|
-
add: [{ title: 'TITLE' }],
|
14
|
-
patch: ['p1', { title: 'SECOND_TITLE' }],
|
15
|
-
delete: ['p1'],
|
16
|
-
};
|
17
|
-
exports.QUEUE_NODE = {
|
18
|
-
get: [],
|
19
|
-
setAll: [{ '1': { id: '1', title: 'LOG' } }],
|
20
|
-
push: [{ id: '2', title: 'LOG' }],
|
21
|
-
pop: [],
|
22
|
-
clear: [],
|
23
|
-
pushMany: [{ '2': { id: '2', title: 'LOG' } }],
|
24
|
-
};
|
25
|
-
exports.GROUPED_LIST_NODE = {
|
26
|
-
get: [{}],
|
27
|
-
setAll: [{ p1: { id: 'p1', title: 'TITLE' } }],
|
28
|
-
set: ['p2', { id: 'p2', title: 'TITLE' }],
|
29
|
-
add: [{ title: 'TITLE' }],
|
30
|
-
patch: ['p1', { title: 'SECOND_TITLE' }],
|
31
|
-
delete: ['p1'],
|
32
|
-
getItems: ['p1'],
|
33
|
-
setItems: ['p1', { '1': { id: '1', title: 'LOG' } }],
|
34
|
-
pushItem: ['p1', { id: '2', title: 'LOG' }],
|
35
|
-
popItem: ['p1'],
|
36
|
-
clearItems: ['p1'],
|
37
|
-
pushManyItems: ['p1', { '2': { id: '2', title: 'LOG' } }],
|
38
|
-
};
|
package/lib/data/panels.d.ts
DELETED
package/lib/data/panels.js
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.panels = void 0;
|
4
|
-
var boxSizes_1 = require("./boxSizes");
|
5
|
-
exports.panels = {
|
6
|
-
p1: {
|
7
|
-
id: 'p1',
|
8
|
-
widgetId: 'processes',
|
9
|
-
title: 'Processes',
|
10
|
-
description: 'Start & stop processes',
|
11
|
-
dimension: boxSizes_1.boxSizes[0],
|
12
|
-
position: { x: 2, y: 2 },
|
13
|
-
},
|
14
|
-
p2: {
|
15
|
-
id: 'p2',
|
16
|
-
widgetId: 'requests',
|
17
|
-
title: 'Requests',
|
18
|
-
description: 'Monitor API requests',
|
19
|
-
dimension: boxSizes_1.boxSizes[0],
|
20
|
-
position: { x: 16, y: 2 },
|
21
|
-
},
|
22
|
-
p3: {
|
23
|
-
id: 'p3',
|
24
|
-
widgetId: 'redux',
|
25
|
-
title: 'Redux devtools',
|
26
|
-
description: 'Watch actions and state changes',
|
27
|
-
dimension: boxSizes_1.boxSizes[1],
|
28
|
-
},
|
29
|
-
p4: {
|
30
|
-
id: 'p4',
|
31
|
-
widgetId: 'endpoints',
|
32
|
-
title: 'Endpoints Configuration',
|
33
|
-
description: 'Configure API for root nodes ',
|
34
|
-
dimension: boxSizes_1.boxSizes[0],
|
35
|
-
position: { x: 30, y: 2 },
|
36
|
-
},
|
37
|
-
p5: {
|
38
|
-
id: 'p5',
|
39
|
-
widgetId: 'apiStatus',
|
40
|
-
title: 'API Status',
|
41
|
-
description: 'Connection status for root nodes',
|
42
|
-
dimension: boxSizes_1.boxSizes[0],
|
43
|
-
position: { x: 44, y: 2 },
|
44
|
-
},
|
45
|
-
p6: {
|
46
|
-
id: 'p6',
|
47
|
-
widgetId: 'logs',
|
48
|
-
title: 'Logs',
|
49
|
-
description: 'Watch console logs',
|
50
|
-
dimension: boxSizes_1.boxSizes[0],
|
51
|
-
position: { x: 2, y: 20 },
|
52
|
-
},
|
53
|
-
p7: {
|
54
|
-
id: 'p7',
|
55
|
-
widgetId: 'visual',
|
56
|
-
title: 'Visual',
|
57
|
-
description: 'High-level requests visualization by root node',
|
58
|
-
dimension: boxSizes_1.boxSizes[0],
|
59
|
-
position: { x: 16, y: 20 },
|
60
|
-
},
|
61
|
-
p8: {
|
62
|
-
id: 'p8',
|
63
|
-
widgetId: 'settings',
|
64
|
-
title: 'Settings',
|
65
|
-
description: 'Global settings',
|
66
|
-
dimension: boxSizes_1.boxSizes[0],
|
67
|
-
position: { x: 30, y: 20 },
|
68
|
-
},
|
69
|
-
p9: {
|
70
|
-
id: 'p9',
|
71
|
-
widgetId: 'preview',
|
72
|
-
title: 'Preview',
|
73
|
-
description: 'Preview a specific datapoint',
|
74
|
-
dimension: boxSizes_1.boxSizes[0],
|
75
|
-
position: { x: 44, y: 20 },
|
76
|
-
},
|
77
|
-
};
|
@@ -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,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.arrangement1 = void 0;
|
4
|
-
exports.arrangement1 = {
|
5
|
-
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"}]',
|
6
|
-
'PANEL_LOCK_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"YES"',
|
7
|
-
'PANEL_OFFSET_c607e8f8-2212-4702-9072-9f623a70cda8': '{"x":-1051,"y":-417}',
|
8
|
-
'PANEL_OFFSET_42ac4e09-1048-4758-961b-869f6fd995f3': '{"x":-1050,"y":-8}',
|
9
|
-
'PANEL_OFFSET_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '{"x":-290,"y":-8}',
|
10
|
-
'PANEL_OFFSET_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '{"x":73,"y":-418}',
|
11
|
-
'PANEL_OFFSET_858c1417-cc0d-4320-9b13-002a130ebf49': '{"x":73,"y":-8}',
|
12
|
-
'TASK_MANAGER_c607e8f8-2212-4702-9072-9f623a70cda8': '"preview"',
|
13
|
-
'TASK_MANAGER_42ac4e09-1048-4758-961b-869f6fd995f3': '"apiStatus"',
|
14
|
-
'TASK_MANAGER_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"redux"',
|
15
|
-
'TASK_MANAGER_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '"visual"',
|
16
|
-
'TASK_MANAGER_858c1417-cc0d-4320-9b13-002a130ebf49': '"requests"',
|
17
|
-
TASK_MANAGER_1: '"preview"',
|
18
|
-
TASK_MANAGER_2: '"apiStatus"',
|
19
|
-
TASK_MANAGER_center: '"redux"',
|
20
|
-
TASK_MANAGER_3: '"visual"',
|
21
|
-
TASK_MANAGER_4: '"requests"',
|
22
|
-
};
|
@@ -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;
|