liteflow-editor-process 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1020 -0
- package/dist/LiteFlowEditor/assets/and-icon.svg +20 -0
- package/dist/LiteFlowEditor/assets/catch-icon.svg +14 -0
- package/dist/LiteFlowEditor/assets/chain-icon.svg +11 -0
- package/dist/LiteFlowEditor/assets/common-icon.svg +18 -0
- package/dist/LiteFlowEditor/assets/end-icon.svg +14 -0
- package/dist/LiteFlowEditor/assets/for-icon.svg +20 -0
- package/dist/LiteFlowEditor/assets/if-icon.svg +14 -0
- package/dist/LiteFlowEditor/assets/indicator-icons.svg +16 -0
- package/dist/LiteFlowEditor/assets/intermediate-end-icon.svg +20 -0
- package/dist/LiteFlowEditor/assets/intermediate-event-catch-error.svg +40 -0
- package/dist/LiteFlowEditor/assets/iterator-icon.svg +7 -0
- package/dist/LiteFlowEditor/assets/little-warning-icon.svg +1 -0
- package/dist/LiteFlowEditor/assets/not-icon.svg +20 -0
- package/dist/LiteFlowEditor/assets/or-icon.svg +20 -0
- package/dist/LiteFlowEditor/assets/start-icon.svg +16 -0
- package/dist/LiteFlowEditor/assets/switch-icon.svg +15 -0
- package/dist/LiteFlowEditor/assets/then-icon.svg +23 -0
- package/dist/LiteFlowEditor/assets/virtual-icon.svg +21 -0
- package/dist/LiteFlowEditor/assets/warning-icon.svg +1 -0
- package/dist/LiteFlowEditor/assets/when-icon.svg +21 -0
- package/dist/LiteFlowEditor/assets/while-icon.svg +24 -0
- package/dist/LiteFlowEditor/cells/and.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/and.js +8 -0
- package/dist/LiteFlowEditor/cells/catch.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/catch.js +8 -0
- package/dist/LiteFlowEditor/cells/chain.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/chain.js +8 -0
- package/dist/LiteFlowEditor/cells/common.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/common.js +8 -0
- package/dist/LiteFlowEditor/cells/end.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/end.js +11 -0
- package/dist/LiteFlowEditor/cells/for.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/for.js +8 -0
- package/dist/LiteFlowEditor/cells/if.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/if.js +9 -0
- package/dist/LiteFlowEditor/cells/index.d.ts +25 -0
- package/dist/LiteFlowEditor/cells/index.js +219 -0
- package/dist/LiteFlowEditor/cells/intermediate-end.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/intermediate-end.js +11 -0
- package/dist/LiteFlowEditor/cells/iterator.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/iterator.js +8 -0
- package/dist/LiteFlowEditor/cells/not.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/not.js +8 -0
- package/dist/LiteFlowEditor/cells/or.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/or.js +8 -0
- package/dist/LiteFlowEditor/cells/start.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/start.js +11 -0
- package/dist/LiteFlowEditor/cells/switch.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/switch.js +9 -0
- package/dist/LiteFlowEditor/cells/then.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/then.js +11 -0
- package/dist/LiteFlowEditor/cells/virtual.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/virtual.js +8 -0
- package/dist/LiteFlowEditor/cells/when.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/when.js +11 -0
- package/dist/LiteFlowEditor/cells/while.d.ts +2 -0
- package/dist/LiteFlowEditor/cells/while.js +8 -0
- package/dist/LiteFlowEditor/common/anchor.d.ts +2 -0
- package/dist/LiteFlowEditor/common/anchor.js +10 -0
- package/dist/LiteFlowEditor/common/connector.d.ts +2 -0
- package/dist/LiteFlowEditor/common/connector.js +20 -0
- package/dist/LiteFlowEditor/common/edge.d.ts +61 -0
- package/dist/LiteFlowEditor/common/edge.js +57 -0
- package/dist/LiteFlowEditor/common/events.d.ts +4 -0
- package/dist/LiteFlowEditor/common/events.js +97 -0
- package/dist/LiteFlowEditor/common/index.d.ts +4 -0
- package/dist/LiteFlowEditor/common/index.js +11 -0
- package/dist/LiteFlowEditor/common/layout.d.ts +12 -0
- package/dist/LiteFlowEditor/common/layout.js +308 -0
- package/dist/LiteFlowEditor/common/router.d.ts +2 -0
- package/dist/LiteFlowEditor/common/router.js +40 -0
- package/dist/LiteFlowEditor/common/shortcuts.d.ts +10 -0
- package/dist/LiteFlowEditor/common/shortcuts.js +183 -0
- package/dist/LiteFlowEditor/components/NodeBadge/index.d.ts +6 -0
- package/dist/LiteFlowEditor/components/NodeBadge/index.js +24 -0
- package/dist/LiteFlowEditor/components/NodeBadge/index.module.less +10 -0
- package/dist/LiteFlowEditor/components/NodeToolBar/index.d.ts +6 -0
- package/dist/LiteFlowEditor/components/NodeToolBar/index.js +121 -0
- package/dist/LiteFlowEditor/components/NodeToolBar/index.module.less +133 -0
- package/dist/LiteFlowEditor/components/NodeView/index.d.ts +7 -0
- package/dist/LiteFlowEditor/components/NodeView/index.js +14 -0
- package/dist/LiteFlowEditor/components/NodeView/index.module.less +14 -0
- package/dist/LiteFlowEditor/components/index.d.ts +3 -0
- package/dist/LiteFlowEditor/components/index.js +3 -0
- package/dist/LiteFlowEditor/constant/index.d.ts +79 -0
- package/dist/LiteFlowEditor/constant/index.js +215 -0
- package/dist/LiteFlowEditor/context/GraphContext.d.ts +13 -0
- package/dist/LiteFlowEditor/context/GraphContext.js +10 -0
- package/dist/LiteFlowEditor/context/ScriptContext.d.ts +37 -0
- package/dist/LiteFlowEditor/context/ScriptContext.js +15 -0
- package/dist/LiteFlowEditor/hooks/index.d.ts +5 -0
- package/dist/LiteFlowEditor/hooks/index.js +5 -0
- package/dist/LiteFlowEditor/hooks/useClickAway.d.ts +5 -0
- package/dist/LiteFlowEditor/hooks/useClickAway.js +38 -0
- package/dist/LiteFlowEditor/hooks/useGraph.d.ts +1 -0
- package/dist/LiteFlowEditor/hooks/useGraph.js +7 -0
- package/dist/LiteFlowEditor/hooks/useGraphWrapper.d.ts +2 -0
- package/dist/LiteFlowEditor/hooks/useGraphWrapper.js +7 -0
- package/dist/LiteFlowEditor/hooks/useHistory.d.ts +2 -0
- package/dist/LiteFlowEditor/hooks/useHistory.js +69 -0
- package/dist/LiteFlowEditor/hooks/useModel.d.ts +3 -0
- package/dist/LiteFlowEditor/hooks/useModel.js +7 -0
- package/dist/LiteFlowEditor/hooks/useUpdateEffect.d.ts +7 -0
- package/dist/LiteFlowEditor/hooks/useUpdateEffect.js +17 -0
- package/dist/LiteFlowEditor/i18n/en_US/translation.json +138 -0
- package/dist/LiteFlowEditor/i18n/index.d.ts +2 -0
- package/dist/LiteFlowEditor/i18n/index.js +28 -0
- package/dist/LiteFlowEditor/i18n/zh_CN/translation.json +139 -0
- package/dist/LiteFlowEditor/i18n/zh_TW/translation.json +139 -0
- package/dist/LiteFlowEditor/index.d.ts +37 -0
- package/dist/LiteFlowEditor/index.js +299 -0
- package/dist/LiteFlowEditor/index.module.less +127 -0
- package/dist/LiteFlowEditor/mock/index.d.ts +2 -0
- package/dist/LiteFlowEditor/mock/index.js +272 -0
- package/dist/LiteFlowEditor/model/builder.d.ts +43 -0
- package/dist/LiteFlowEditor/model/builder.js +239 -0
- package/dist/LiteFlowEditor/model/chain.d.ts +83 -0
- package/dist/LiteFlowEditor/model/chain.js +278 -0
- package/dist/LiteFlowEditor/model/el/and-operator.d.ts +53 -0
- package/dist/LiteFlowEditor/model/el/and-operator.js +178 -0
- package/dist/LiteFlowEditor/model/el/catch-operator.d.ts +81 -0
- package/dist/LiteFlowEditor/model/el/catch-operator.js +338 -0
- package/dist/LiteFlowEditor/model/el/chain-operator.d.ts +53 -0
- package/dist/LiteFlowEditor/model/el/chain-operator.js +170 -0
- package/dist/LiteFlowEditor/model/el/for-operator.d.ts +56 -0
- package/dist/LiteFlowEditor/model/el/for-operator.js +171 -0
- package/dist/LiteFlowEditor/model/el/if-operator.d.ts +64 -0
- package/dist/LiteFlowEditor/model/el/if-operator.js +265 -0
- package/dist/LiteFlowEditor/model/el/index.d.ts +40 -0
- package/dist/LiteFlowEditor/model/el/index.js +47 -0
- package/dist/LiteFlowEditor/model/el/iterator-operator.d.ts +56 -0
- package/dist/LiteFlowEditor/model/el/iterator-operator.js +183 -0
- package/dist/LiteFlowEditor/model/el/node-operator.d.ts +62 -0
- package/dist/LiteFlowEditor/model/el/node-operator.js +136 -0
- package/dist/LiteFlowEditor/model/el/not-operator.d.ts +68 -0
- package/dist/LiteFlowEditor/model/el/not-operator.js +231 -0
- package/dist/LiteFlowEditor/model/el/or-operator.d.ts +53 -0
- package/dist/LiteFlowEditor/model/el/or-operator.js +178 -0
- package/dist/LiteFlowEditor/model/el/switch-operator.d.ts +56 -0
- package/dist/LiteFlowEditor/model/el/switch-operator.js +173 -0
- package/dist/LiteFlowEditor/model/el/then-operator.d.ts +66 -0
- package/dist/LiteFlowEditor/model/el/then-operator.js +159 -0
- package/dist/LiteFlowEditor/model/el/when-operator.d.ts +58 -0
- package/dist/LiteFlowEditor/model/el/when-operator.js +181 -0
- package/dist/LiteFlowEditor/model/el/while-operator.d.ts +56 -0
- package/dist/LiteFlowEditor/model/el/while-operator.js +171 -0
- package/dist/LiteFlowEditor/model/node.d.ts +182 -0
- package/dist/LiteFlowEditor/model/node.js +463 -0
- package/dist/LiteFlowEditor/model/utils/createTag.d.ts +1 -0
- package/dist/LiteFlowEditor/model/utils/createTag.js +5 -0
- package/dist/LiteFlowEditor/model/utils/end.d.ts +87 -0
- package/dist/LiteFlowEditor/model/utils/end.js +185 -0
- package/dist/LiteFlowEditor/model/utils/index.d.ts +7 -0
- package/dist/LiteFlowEditor/model/utils/index.js +10 -0
- package/dist/LiteFlowEditor/model/utils/start.d.ts +87 -0
- package/dist/LiteFlowEditor/model/utils/start.js +185 -0
- package/dist/LiteFlowEditor/model/utils/virtual.d.ts +78 -0
- package/dist/LiteFlowEditor/model/utils/virtual.js +167 -0
- package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.js +44 -0
- package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.js +26 -0
- package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.js +39 -0
- package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.js +154 -0
- package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.js +27 -0
- package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.js +33 -0
- package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.js +27 -0
- package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.js +27 -0
- package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.d.ts +7 -0
- package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.js +27 -0
- package/dist/LiteFlowEditor/model-checker/checkers/index.d.ts +14 -0
- package/dist/LiteFlowEditor/model-checker/checkers/index.js +38 -0
- package/dist/LiteFlowEditor/model-checker/index.d.ts +22 -0
- package/dist/LiteFlowEditor/model-checker/index.js +43 -0
- package/dist/LiteFlowEditor/model-checker/types.d.ts +11 -0
- package/dist/LiteFlowEditor/model-checker/types.js +1 -0
- package/dist/LiteFlowEditor/panels/breadcrumb/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/breadcrumb/index.js +67 -0
- package/dist/LiteFlowEditor/panels/breadcrumb/index.module.less +23 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.d.ts +11 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.js +98 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.module.less +7 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.d.ts +8 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.js +18 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.d.ts +3 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.js +3 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.d.ts +9 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.js +10 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.d.ts +14 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.js +108 -0
- package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.module.less +81 -0
- package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.d.ts +3 -0
- package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.js +199 -0
- package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.js +42 -0
- package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.d.ts +8 -0
- package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.js +110 -0
- package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.module.less +11 -0
- package/dist/LiteFlowEditor/panels/layout/index.d.ts +16 -0
- package/dist/LiteFlowEditor/panels/layout/index.js +117 -0
- package/dist/LiteFlowEditor/panels/layout/index.module.less +30 -0
- package/dist/LiteFlowEditor/panels/settingBar/basic/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/settingBar/basic/index.js +50 -0
- package/dist/LiteFlowEditor/panels/settingBar/basic/index.module.less +17 -0
- package/dist/LiteFlowEditor/panels/settingBar/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/settingBar/index.js +219 -0
- package/dist/LiteFlowEditor/panels/settingBar/index.module.less +45 -0
- package/dist/LiteFlowEditor/panels/settingBar/outline/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/settingBar/outline/index.js +124 -0
- package/dist/LiteFlowEditor/panels/settingBar/outline/index.module.less +39 -0
- package/dist/LiteFlowEditor/panels/settingBar/parameters/index.d.ts +6 -0
- package/dist/LiteFlowEditor/panels/settingBar/parameters/index.js +415 -0
- package/dist/LiteFlowEditor/panels/settingBar/parameters/index.module.less +4 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.d.ts +13 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.js +62 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.d.ts +48 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.js +94 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.d.ts +33 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.js +433 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.d.ts +33 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.js +195 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/component.d.ts +10 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/component.js +2780 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/condition.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/condition.js +54 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/index.d.ts +2 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/index.js +2 -0
- package/dist/LiteFlowEditor/panels/settingBar/properties/index.module.less +149 -0
- package/dist/LiteFlowEditor/panels/sideBar/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/sideBar/index.js +153 -0
- package/dist/LiteFlowEditor/panels/sideBar/index.module.less +48 -0
- package/dist/LiteFlowEditor/panels/toolBar/index.d.ts +8 -0
- package/dist/LiteFlowEditor/panels/toolBar/index.js +42 -0
- package/dist/LiteFlowEditor/panels/toolBar/index.module.less +19 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/check.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/check.js +40 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.d.ts +12 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.js +46 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.d.ts +15 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.js +133 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.d.ts +14 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.js +38 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.js +17 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.d.ts +4 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.js +104 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/global.less +6 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/index.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/index.js +12 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/index.module.less +169 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.js +83 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.js +16 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/save.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/save.js +12 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.js +23 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.js +16 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/view.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/view.js +37 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.d.ts +7 -0
- package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.js +67 -0
- package/dist/LiteFlowEditor/utils/eventBus.d.ts +34 -0
- package/dist/LiteFlowEditor/utils/eventBus.js +86 -0
- package/dist/LiteFlowEditor/utils/flowChartUtils.d.ts +9 -0
- package/dist/LiteFlowEditor/utils/flowChartUtils.js +34 -0
- package/dist/LiteFlowEditor/utils/index.d.ts +33 -0
- package/dist/LiteFlowEditor/utils/index.js +245 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +97 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
type EventType = MouseEvent | TouchEvent;
|
|
3
|
+
type BasicTarget<T = HTMLElement> = (() => T | null) | T | null | MutableRefObject<T | null | undefined>;
|
|
4
|
+
declare const useClickAway: (onClickAway: (event: EventType) => void, target: BasicTarget | BasicTarget[], eventName?: string) => void;
|
|
5
|
+
export default useClickAway;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react';
|
|
2
|
+
var defaultEvent = 'click';
|
|
3
|
+
var getTargetElement = function getTargetElement(target, defaultElement) {
|
|
4
|
+
if (!target) {
|
|
5
|
+
return defaultElement;
|
|
6
|
+
}
|
|
7
|
+
var targetElement;
|
|
8
|
+
if (typeof target === 'function') {
|
|
9
|
+
targetElement = target();
|
|
10
|
+
} else if ('current' in target) {
|
|
11
|
+
targetElement = target.current;
|
|
12
|
+
} else {
|
|
13
|
+
targetElement = target;
|
|
14
|
+
}
|
|
15
|
+
return targetElement;
|
|
16
|
+
};
|
|
17
|
+
var useClickAway = function useClickAway(onClickAway, target) {
|
|
18
|
+
var eventName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultEvent;
|
|
19
|
+
var onClickAwayRef = useRef(onClickAway);
|
|
20
|
+
onClickAwayRef.current = onClickAway;
|
|
21
|
+
useEffect(function () {
|
|
22
|
+
var handler = function handler(event) {
|
|
23
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
24
|
+
if (targets.some(function (targetItem) {
|
|
25
|
+
var targetElement = getTargetElement(targetItem);
|
|
26
|
+
return !targetElement || (targetElement === null || targetElement === void 0 ? void 0 : targetElement.contains(event.target));
|
|
27
|
+
})) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
onClickAwayRef.current(event);
|
|
31
|
+
};
|
|
32
|
+
document.addEventListener(eventName, handler);
|
|
33
|
+
return function () {
|
|
34
|
+
document.removeEventListener(eventName, handler);
|
|
35
|
+
};
|
|
36
|
+
}, [target, eventName]);
|
|
37
|
+
};
|
|
38
|
+
export default useClickAway;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useGraph: () => import("@antv/x6").Graph;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { GraphContext } from "../context/GraphContext";
|
|
3
|
+
export var useGraphWrapper = function useGraphWrapper() {
|
|
4
|
+
var _useContext = useContext(GraphContext),
|
|
5
|
+
graphWrapper = _useContext.graphWrapper;
|
|
6
|
+
return graphWrapper;
|
|
7
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { setModel, useModel } from "./useModel";
|
|
2
|
+
import ELBuilder from "../model/builder";
|
|
3
|
+
export var history = {
|
|
4
|
+
$historyStack: [],
|
|
5
|
+
$cursorIndex: 0,
|
|
6
|
+
$graph: undefined,
|
|
7
|
+
init: function init(graph) {
|
|
8
|
+
this.$graph = graph;
|
|
9
|
+
this.$historyStack = [];
|
|
10
|
+
this.$cursorIndex = 0;
|
|
11
|
+
},
|
|
12
|
+
canRedo: function canRedo() {
|
|
13
|
+
return this.$cursorIndex < this.$historyStack.length - 1;
|
|
14
|
+
},
|
|
15
|
+
canUndo: function canUndo() {
|
|
16
|
+
return this.$cursorIndex > 0;
|
|
17
|
+
},
|
|
18
|
+
push: function push(nextState) {
|
|
19
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
20
|
+
silent: false
|
|
21
|
+
};
|
|
22
|
+
if (this.$historyStack.length > this.$cursorIndex + 1) {
|
|
23
|
+
this.$historyStack.splice(this.$cursorIndex + 1, this.$historyStack.length - this.$cursorIndex);
|
|
24
|
+
}
|
|
25
|
+
if (nextState) {
|
|
26
|
+
this.$historyStack.push(nextState.toJSON());
|
|
27
|
+
} else {
|
|
28
|
+
this.$historyStack.push(useModel().toJSON());
|
|
29
|
+
}
|
|
30
|
+
this.$cursorIndex++;
|
|
31
|
+
if (!options.silent) {
|
|
32
|
+
this.$graph.trigger('model:change');
|
|
33
|
+
this.$graph.trigger('toolBar:forceUpdate');
|
|
34
|
+
this.$graph.trigger('settingBar:forceUpdate');
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
redo: function redo() {
|
|
38
|
+
if (this.canRedo()) {
|
|
39
|
+
this.$cursorIndex++;
|
|
40
|
+
setModel(ELBuilder.build(this.$historyStack[this.$cursorIndex]));
|
|
41
|
+
this.$graph.trigger('model:change');
|
|
42
|
+
this.$graph.trigger('toolBar:forceUpdate');
|
|
43
|
+
this.$graph.trigger('settingBar:forceUpdate');
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
undo: function undo() {
|
|
47
|
+
if (this.canUndo()) {
|
|
48
|
+
this.$cursorIndex--;
|
|
49
|
+
setModel(ELBuilder.build(this.$historyStack[this.$cursorIndex]));
|
|
50
|
+
this.$graph.trigger('model:change');
|
|
51
|
+
this.$graph.trigger('toolBar:forceUpdate');
|
|
52
|
+
this.$graph.trigger('settingBar:forceUpdate');
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
cleanHistory: function cleanHistory() {
|
|
56
|
+
this.$historyStack = [useModel().toJSON()];
|
|
57
|
+
this.$cursorIndex = 0;
|
|
58
|
+
this.$graph.trigger('model:change');
|
|
59
|
+
this.$graph.trigger('toolBar:forceUpdate');
|
|
60
|
+
this.$graph.trigger('settingBar:forceUpdate');
|
|
61
|
+
},
|
|
62
|
+
length: function length() {
|
|
63
|
+
return this.$historyStack.length ? this.$historyStack.length - 1 : 0;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export var useHistory = function useHistory() {
|
|
67
|
+
// const { history } = useContext(GraphContext);
|
|
68
|
+
return history;
|
|
69
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* useUpdateEffect - 类似 useEffect,但会跳过首次渲染
|
|
5
|
+
* @param effect 副作用函数
|
|
6
|
+
* @param deps 依赖列表
|
|
7
|
+
*/
|
|
8
|
+
export function useUpdateEffect(effect, deps) {
|
|
9
|
+
var isFirstRender = useRef(true);
|
|
10
|
+
useEffect(function () {
|
|
11
|
+
if (isFirstRender.current) {
|
|
12
|
+
isFirstRender.current = false;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
return effect();
|
|
16
|
+
}, deps);
|
|
17
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chain": "Chain",
|
|
3
|
+
"back": "Back",
|
|
4
|
+
"back_chain_list": "Back to workflow list",
|
|
5
|
+
"save": "Save",
|
|
6
|
+
"save_chain": "Save current workflow",
|
|
7
|
+
"tips": "Tips",
|
|
8
|
+
"clear_canvas": "Clear canvas",
|
|
9
|
+
"clear_canvas_tips": "Clear current canvas",
|
|
10
|
+
"test_run": "Test run",
|
|
11
|
+
"test_run_tips": "Test run current workflow",
|
|
12
|
+
"shrink": "Shrink",
|
|
13
|
+
"magnify": "Magnify",
|
|
14
|
+
"adaptation_window": "Adaptation window",
|
|
15
|
+
"revoke": "Revoke",
|
|
16
|
+
"redo": "Redo",
|
|
17
|
+
"select_nodes": "Select nodes",
|
|
18
|
+
"full_screen": "Full screen",
|
|
19
|
+
"view_check_items": "View check items",
|
|
20
|
+
"start": "Start",
|
|
21
|
+
"end": "End",
|
|
22
|
+
"node": "Node",
|
|
23
|
+
"iterator": "Iterator node",
|
|
24
|
+
"switch": "Switch",
|
|
25
|
+
"if": "If",
|
|
26
|
+
"serial": "Serial",
|
|
27
|
+
"parallel": "Parallel",
|
|
28
|
+
"sequential_class": "Sequential class",
|
|
29
|
+
"node_class": "Node class",
|
|
30
|
+
"loop_class": "Loop class",
|
|
31
|
+
"branch_class": "Branch class",
|
|
32
|
+
"node_attribute": "Node attribute",
|
|
33
|
+
"node_attribute_tips": "Click on the node to edit its attributes",
|
|
34
|
+
"workflow_parameters": "Workflow parameters",
|
|
35
|
+
"node_while": "While loop node",
|
|
36
|
+
"node_for": "For loop node",
|
|
37
|
+
"node_catch": "Catch node",
|
|
38
|
+
"node_common": "Node",
|
|
39
|
+
"node_chain": "Chain node",
|
|
40
|
+
"node_intermediate_end": "Intermediate end node",
|
|
41
|
+
"node_end": "End node",
|
|
42
|
+
"node_then": "Serial(Then)",
|
|
43
|
+
"node_when": "Parallel(When)",
|
|
44
|
+
"node_iterator": "Interator",
|
|
45
|
+
"node_switch": "Switch",
|
|
46
|
+
"node_if": "If",
|
|
47
|
+
"empty_node": "Empty node",
|
|
48
|
+
"node_empty_tips": "Please configure the component of the node",
|
|
49
|
+
"check_list": "Check list",
|
|
50
|
+
"check_list_tips": "Save before ensuring that all problems have been solved",
|
|
51
|
+
"check_list_tips_2": "Drag the serial or parallel nodes in the left panel into the middle of the start and end nodes.",
|
|
52
|
+
"check_list_tips_3": "All problems have been solved",
|
|
53
|
+
"check_list_tips_4": "Cannot only have start and end nodes",
|
|
54
|
+
"insert_node": "Insert node",
|
|
55
|
+
"insert_node_before": "Insert node before",
|
|
56
|
+
"insert_node_after": "Insert node after",
|
|
57
|
+
"replace_node": "Replace current node",
|
|
58
|
+
"delete_node": "Delete node",
|
|
59
|
+
"delete_node_tips": "Confirm to delete the this node?",
|
|
60
|
+
"delete_node_content": "Click the confirm button to delete, click the cancel button to return",
|
|
61
|
+
"open_node": "Open node",
|
|
62
|
+
"close_node": "Close node",
|
|
63
|
+
"node_name": "Node name",
|
|
64
|
+
"node_name_placeholder": "Please input node name, not fill in will use default name",
|
|
65
|
+
"component": "Component",
|
|
66
|
+
"component_placeholder": "Please select component",
|
|
67
|
+
"query_log": "Query log",
|
|
68
|
+
"query_log_placeholder": "Please select query log",
|
|
69
|
+
"predict_template": "Predict template",
|
|
70
|
+
"predict_template_placeholder": "Please select predict template",
|
|
71
|
+
"loop_node": "Loop node",
|
|
72
|
+
"loop_node_placeholder": "Please select loop node",
|
|
73
|
+
"query_dimension_and_indicator": "Query dimension and indicator",
|
|
74
|
+
"indicator": "Indicator",
|
|
75
|
+
"dimension": "Dimension",
|
|
76
|
+
"modify_config": "Modify config",
|
|
77
|
+
"start_config": "Start config",
|
|
78
|
+
"query_filter": "Query filter",
|
|
79
|
+
"add_query_filter": "Add query filter",
|
|
80
|
+
"input_variables": "Input variables",
|
|
81
|
+
"input_variables_tips": "Please input variables",
|
|
82
|
+
"input_variables_value_tips": "Please input variables value",
|
|
83
|
+
"delete": "Delete",
|
|
84
|
+
"delete_success": "Delete success",
|
|
85
|
+
"delete_warning": "The parameter has node references, cannot be deleted!",
|
|
86
|
+
"add_input_variables": "Add input variables",
|
|
87
|
+
"report_template": "Report template",
|
|
88
|
+
"report_template_placeholder": "Please select report template",
|
|
89
|
+
"knowledge_base": "Knowledge base",
|
|
90
|
+
"knowledge_base_placeholder": "Please select knowledge base",
|
|
91
|
+
"enable_network_retrieval": "Enable network retrieval",
|
|
92
|
+
"input_insert_variables": "Input / insert variables",
|
|
93
|
+
"no_available_variables": "No available variables",
|
|
94
|
+
"parameter_name": "Parameter name",
|
|
95
|
+
"parameter_name_placeholder": "Please select parameter name",
|
|
96
|
+
"parameter_name_input_placeholder": "Please input parameter name",
|
|
97
|
+
"parameter_name_exist": "Parameter name exist",
|
|
98
|
+
"add": "Add",
|
|
99
|
+
"parameter_type": "Parameter type",
|
|
100
|
+
"parameter_type_placeholder": "Please select parameter type",
|
|
101
|
+
"log_field": "Log field",
|
|
102
|
+
"log_field_placeholder": "Please select log field",
|
|
103
|
+
"parameter_description": "Parameter description",
|
|
104
|
+
"parameter_description_input_placeholder": "Please input parameter description",
|
|
105
|
+
"operation": "Operation",
|
|
106
|
+
"add_parameter": "Add parameter",
|
|
107
|
+
"parameter_name_not_selected": "A parameter has not selected a parameter name!",
|
|
108
|
+
"parameter_type_not_selected": "A parameter has not selected a parameter type!",
|
|
109
|
+
"log_field_not_selected": "A checkbox parameter has not selected a log field!",
|
|
110
|
+
"parameter_description_not_input": "A parameter has not entered a parameter description!",
|
|
111
|
+
"predict_template_not_selected": "Prediction template not selected!",
|
|
112
|
+
"input_variable_not_configured": "Value not configured",
|
|
113
|
+
"input_variable_value": "Input variable value",
|
|
114
|
+
"input_variable_value_not_configured": "Variable name not configured",
|
|
115
|
+
"loop_node_not_selected": "Loop component has not selected the node to loop",
|
|
116
|
+
"query_dimension_not_selected": "Query dimension not selected!",
|
|
117
|
+
"report_template_not_selected": "Report template not selected!",
|
|
118
|
+
"query_log_not_selected": "Query log not selected!",
|
|
119
|
+
"edit": "Edit",
|
|
120
|
+
"edit_current_workflow": "Edit current workflow",
|
|
121
|
+
"enter_edit_state": "Enter edit state",
|
|
122
|
+
"test_run_before_save": "Test run before save, do you want to save current workflow?",
|
|
123
|
+
"confirm": "Confirm",
|
|
124
|
+
"cancel": "Cancel",
|
|
125
|
+
"clear_current_canvas": "Clear the current canvas?",
|
|
126
|
+
"selectNodes": "Analysis Nodes",
|
|
127
|
+
"selectNodes_placeholder": "Please select analysis nodes",
|
|
128
|
+
"root_cause_node_not_selected": "Root cause analysis node not selected",
|
|
129
|
+
"analysis_field": "Analysis Field",
|
|
130
|
+
"analysis_field_template": "Analysis Field Template",
|
|
131
|
+
"analysis_field_template_placeholder": "You can select analysis field template",
|
|
132
|
+
"analysis_field_not_selected": "Analysis field not selected",
|
|
133
|
+
"analysis_agg": "Root Cause Analysis Metric",
|
|
134
|
+
"analysis_agg_placeholder": "Please select root cause analysis metric",
|
|
135
|
+
"analysis_agg_not_selected": "Root cause analysis metric not selected",
|
|
136
|
+
"no_permission": "No permission",
|
|
137
|
+
"no_permission_tips_add_node": "You have no permission to add nodes"
|
|
138
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next'; // react-i18next 的初始化插件
|
|
3
|
+
var zh_CN = require("./zh_CN/translation.json");
|
|
4
|
+
var zh_TW = require("./zh_TW/translation.json");
|
|
5
|
+
var en_US = require("./en_US/translation.json");
|
|
6
|
+
var resources = {
|
|
7
|
+
zh_CN: {
|
|
8
|
+
translation: zh_CN
|
|
9
|
+
},
|
|
10
|
+
zh_TW: {
|
|
11
|
+
translation: zh_TW
|
|
12
|
+
},
|
|
13
|
+
en_US: {
|
|
14
|
+
translation: en_US
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
i18n.use(initReactI18next).init({
|
|
18
|
+
resources: resources,
|
|
19
|
+
fallbackLng: 'zh_CN',
|
|
20
|
+
ns: ['translation'],
|
|
21
|
+
defaultNS: 'translation',
|
|
22
|
+
// 插值配置
|
|
23
|
+
interpolation: {
|
|
24
|
+
// 是否转义 HTML 标签
|
|
25
|
+
escapeValue: false
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export default i18n;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chain": "工作流",
|
|
3
|
+
"back": "返回",
|
|
4
|
+
"back_chain_list": "返回工作流列表",
|
|
5
|
+
"save": "保存",
|
|
6
|
+
"save_chain": "保存当前工作流",
|
|
7
|
+
"tips": "提示",
|
|
8
|
+
"clear_canvas": "清空画布",
|
|
9
|
+
"clear_canvas_tips": "清空当前画布",
|
|
10
|
+
"test_run": "测试运行",
|
|
11
|
+
"test_run_tips": "测试运行当前工作流",
|
|
12
|
+
"shrink": "缩小",
|
|
13
|
+
"magnify": "放大",
|
|
14
|
+
"adaptation_window": "适配窗口",
|
|
15
|
+
"revoke": "撤销",
|
|
16
|
+
"redo": "重做",
|
|
17
|
+
"select_nodes": "框选节点",
|
|
18
|
+
"full_screen": "全屏",
|
|
19
|
+
"view_check_items": "查看检查项",
|
|
20
|
+
"start": "开始",
|
|
21
|
+
"end": "结束",
|
|
22
|
+
"node": "节点",
|
|
23
|
+
"iterator": "循环节点",
|
|
24
|
+
"switch": "选择",
|
|
25
|
+
"if": "条件",
|
|
26
|
+
"serial": "串行",
|
|
27
|
+
"parallel": "串行",
|
|
28
|
+
"sequential_class": "顺序类",
|
|
29
|
+
"node_class": "节点类",
|
|
30
|
+
"loop_class": "循环类",
|
|
31
|
+
"branch_class": "分支类",
|
|
32
|
+
"node_attribute": "节点属性",
|
|
33
|
+
"node_attribute_tips": "请点击节点编辑节点属性",
|
|
34
|
+
"workflow_parameters": "工作流参数",
|
|
35
|
+
"node_while": "while循环节点",
|
|
36
|
+
"node_for": "for循环节点",
|
|
37
|
+
"node_catch": "catch节点",
|
|
38
|
+
"node_common": "节点",
|
|
39
|
+
"node_chain": "子流程节点",
|
|
40
|
+
"node_intermediate_end": "中间结束节点",
|
|
41
|
+
"node_end": "结束节点",
|
|
42
|
+
"node_then": "串行(Then)",
|
|
43
|
+
"node_when": "并行(When)",
|
|
44
|
+
"node_iterator": "Interator循环",
|
|
45
|
+
"node_switch": "Switch选择",
|
|
46
|
+
"node_if": "If条件",
|
|
47
|
+
"empty_node": "待配置组件",
|
|
48
|
+
"node_empty_tips": "请配置节点执行的组件",
|
|
49
|
+
"check_list": "检查清单",
|
|
50
|
+
"check_list_tips": "保存前确保所有问题均已解决",
|
|
51
|
+
"check_list_tips_2": "将左侧面板中的串行或并行节点拖入开始和结束节点中间。",
|
|
52
|
+
"check_list_tips_3": "所有问题均已解决",
|
|
53
|
+
"check_list_tips_4": "不能只有开始和结束节点",
|
|
54
|
+
"insert_node": "插入节点",
|
|
55
|
+
"insert_node_before": "前面插入节点",
|
|
56
|
+
"insert_node_after": "后面插入节点",
|
|
57
|
+
"replace_node": "替换当前节点",
|
|
58
|
+
"delete_node": "删除节点",
|
|
59
|
+
"delete_node_tips": "确认要删除此节点?",
|
|
60
|
+
"delete_node_content": "点击确认按钮进行删除,点击取消按钮返回",
|
|
61
|
+
"open_node": "展开节点",
|
|
62
|
+
"close_node": "折叠节点",
|
|
63
|
+
"node_name": "节点名称",
|
|
64
|
+
"node_name_placeholder": "请输入节点名称, 不填则使用默认名称",
|
|
65
|
+
"component": "组件",
|
|
66
|
+
"component_placeholder": "请选择要执行的组件",
|
|
67
|
+
"query_log": "查询日志",
|
|
68
|
+
"query_log_placeholder": "请选择查询日志",
|
|
69
|
+
"predict_template": "预测模板",
|
|
70
|
+
"predict_template_placeholder": "请选择预测模板",
|
|
71
|
+
"loop_node": "循环节点",
|
|
72
|
+
"loop_node_placeholder": "请选择循环节点",
|
|
73
|
+
"query_dimension_and_indicator": "查询维度&指标",
|
|
74
|
+
"indicator": "指标",
|
|
75
|
+
"dimension": "维度",
|
|
76
|
+
"modify_config": "修改配置",
|
|
77
|
+
"start_config": "开始配置",
|
|
78
|
+
"query_filter": "查询过滤器",
|
|
79
|
+
"add_query_filter": "添加过滤器",
|
|
80
|
+
"input_variables": "输入变量",
|
|
81
|
+
"input_variables_tips": "请设置变量",
|
|
82
|
+
"input_variables_value_tips": "请设置变量值",
|
|
83
|
+
"delete": "删除",
|
|
84
|
+
"delete_success": "删除成功",
|
|
85
|
+
"delete_warning": "该参数有节点引用,无法删除!",
|
|
86
|
+
"add_input_variables": "新增输入变量",
|
|
87
|
+
"report_template": "报告模板",
|
|
88
|
+
"report_template_placeholder": "请选择报告模板",
|
|
89
|
+
"knowledge_base": "知识库",
|
|
90
|
+
"knowledge_base_placeholder": "请选择知识库",
|
|
91
|
+
"enable_network_retrieval": "开启联网检索",
|
|
92
|
+
"input_insert_variables": "输入 / 插入变量",
|
|
93
|
+
"no_available_variables": "暂无可用变量",
|
|
94
|
+
"parameter_name": "参数名称",
|
|
95
|
+
"parameter_name_placeholder": "请选择参数名称",
|
|
96
|
+
"parameter_name_input_placeholder": "请输入参数名称",
|
|
97
|
+
"parameter_name_exist": "参数名称已存在",
|
|
98
|
+
"add": "添加",
|
|
99
|
+
"parameter_type": "参数类型",
|
|
100
|
+
"parameter_type_placeholder": "请选择参数类型",
|
|
101
|
+
"log_field": "日志字段",
|
|
102
|
+
"log_field_placeholder": "请选择日志字段",
|
|
103
|
+
"parameter_description": "参数描述(中文)",
|
|
104
|
+
"parameter_description_input_placeholder": "请输入参数描述",
|
|
105
|
+
"operation": "操作",
|
|
106
|
+
"add_parameter": "添加参数",
|
|
107
|
+
"parameter_name_not_selected": "有参数未选择参数名称!",
|
|
108
|
+
"parameter_type_not_selected": "有参数未选择参数类型!",
|
|
109
|
+
"log_field_not_selected": "有选择框参数未选择日志字段!",
|
|
110
|
+
"parameter_description_not_input": "有参数未填写参数描述!",
|
|
111
|
+
"predict_template_not_selected": "未选择预测模板!",
|
|
112
|
+
"input_variable_not_configured": "未配置值",
|
|
113
|
+
"input_variable_value": "输入变量值",
|
|
114
|
+
"input_variable_value_not_configured": "未配置变量名称",
|
|
115
|
+
"loop_node_not_selected": "循环组件未选择要循环的节点",
|
|
116
|
+
"query_dimension_not_selected": "未选择查询维度",
|
|
117
|
+
"report_template_not_selected": "未选择报告模板",
|
|
118
|
+
"query_log_not_selected": "未选择查询日志",
|
|
119
|
+
"edit": "编辑",
|
|
120
|
+
"edit_current_workflow": "编辑当前工作流",
|
|
121
|
+
"enter_edit_state": "进入编辑状态",
|
|
122
|
+
"test_run_before_save": "测试运行前需要先保存,是否保存当前工作流?",
|
|
123
|
+
"confirm": "确认",
|
|
124
|
+
"cancel": "取消",
|
|
125
|
+
"clear_current_canvas": "是否清空当前画布?",
|
|
126
|
+
"selectNodes": "分析节点",
|
|
127
|
+
"selectNodes_placeholder": "请选择分析节点",
|
|
128
|
+
"root_cause_node_not_selected": "未选择根因分析节点",
|
|
129
|
+
"analysis_field": "分析字段",
|
|
130
|
+
"analysis_field_placeholder": "请选择分析字段",
|
|
131
|
+
"analysis_field_template": "分析字段模板",
|
|
132
|
+
"analysis_field_template_placeholder": "可选择分析字段模板",
|
|
133
|
+
"analysis_field_not_selected": "未选择分析字段",
|
|
134
|
+
"analysis_agg": "根因分析指标",
|
|
135
|
+
"analysis_agg_placeholder": "请选择根因分析指标",
|
|
136
|
+
"analysis_agg_not_selected": "未选择根因分析指标",
|
|
137
|
+
"no_permission": "没有权限",
|
|
138
|
+
"no_permission_tips_add_node": "您没有权限添加节点"
|
|
139
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chain": "工作流",
|
|
3
|
+
"back": "返回",
|
|
4
|
+
"back_chain_list": "返回工作流列表",
|
|
5
|
+
"save": "保存",
|
|
6
|
+
"save_chain": "保存當前工作流",
|
|
7
|
+
"tips": "提示",
|
|
8
|
+
"clear_canvas": "清空畫布",
|
|
9
|
+
"clear_canvas_tips": "清空當前畫布",
|
|
10
|
+
"test_run": "測試運行",
|
|
11
|
+
"test_run_tips": "測試運行當前工作流",
|
|
12
|
+
"shrink": "縮小",
|
|
13
|
+
"magnify": "放大",
|
|
14
|
+
"adaptation_window": "適配視窗",
|
|
15
|
+
"revoke": "撤銷",
|
|
16
|
+
"redo": "重做",
|
|
17
|
+
"select_nodes": "框選節點",
|
|
18
|
+
"full_screen": "全螢幕",
|
|
19
|
+
"view_check_items": "查看檢查項",
|
|
20
|
+
"start": "開始",
|
|
21
|
+
"end": "結束",
|
|
22
|
+
"node": "節點",
|
|
23
|
+
"iterator": "迴圈節點",
|
|
24
|
+
"switch": "選擇",
|
|
25
|
+
"if": "條件",
|
|
26
|
+
"serial": "串行",
|
|
27
|
+
"parallel": "並行",
|
|
28
|
+
"sequential_class": "順序類",
|
|
29
|
+
"node_class": "節點類",
|
|
30
|
+
"loop_class": "迴圈類",
|
|
31
|
+
"branch_class": "分支類",
|
|
32
|
+
"node_attribute": "節點屬性",
|
|
33
|
+
"node_attribute_tips": "請點擊節點編輯節點屬性",
|
|
34
|
+
"workflow_parameters": "工作流參數",
|
|
35
|
+
"node_while": "迴圈節點",
|
|
36
|
+
"node_for": "for節點",
|
|
37
|
+
"node_catch": "catch節點",
|
|
38
|
+
"node_common": "普通節點",
|
|
39
|
+
"node_chain": "子流程節點",
|
|
40
|
+
"node_intermediate_end": "中間結束節點",
|
|
41
|
+
"node_end": "結束節點",
|
|
42
|
+
"node_then": "串行(Then)",
|
|
43
|
+
"node_when": "并行(When)",
|
|
44
|
+
"node_iterator": "Interator循环",
|
|
45
|
+
"node_switch": "Switch选择",
|
|
46
|
+
"node_if": "If条件",
|
|
47
|
+
"empty_node": "待配置組件",
|
|
48
|
+
"node_empty_tips": "請配置節點執行的組件",
|
|
49
|
+
"check_list": "檢查清单",
|
|
50
|
+
"check_list_tips": "保存前確保所有問題均已解決",
|
|
51
|
+
"check_list_tips_2": "將左侧面板中的串行或并行節點拖入开始和结束節點中间。",
|
|
52
|
+
"check_list_tips_3": "所有問題均已解決",
|
|
53
|
+
"check_list_tips_4": "不能只有开始和结束節點",
|
|
54
|
+
"insert_node": "插入節點",
|
|
55
|
+
"insert_node_before": "前面插入節點",
|
|
56
|
+
"insert_node_after": "后面插入節點",
|
|
57
|
+
"replace_node": "替换当前節點",
|
|
58
|
+
"delete_node": "删除節點",
|
|
59
|
+
"delete_node_tips": "確認要刪除此節點?",
|
|
60
|
+
"delete_node_content": "點擊確認按鈕進行刪除,點擊取消按鈕返回",
|
|
61
|
+
"open_node": "展開節點",
|
|
62
|
+
"close_node": "折疊節點",
|
|
63
|
+
"node_name": "節點名稱",
|
|
64
|
+
"node_name_placeholder": "請輸入節點名稱,不填則使用默認名稱",
|
|
65
|
+
"component": "組件",
|
|
66
|
+
"component_placeholder": "請選擇要執行的組件",
|
|
67
|
+
"query_log": "查詢日誌",
|
|
68
|
+
"query_log_placeholder": "請選擇查詢日誌",
|
|
69
|
+
"predict_template": "預測模板",
|
|
70
|
+
"predict_template_placeholder": "請選擇預測模板",
|
|
71
|
+
"loop_node": "循環節點",
|
|
72
|
+
"loop_node_placeholder": "請選擇循環節點",
|
|
73
|
+
"query_dimension_and_indicator": "查詢維度&指標",
|
|
74
|
+
"indicator": "指標",
|
|
75
|
+
"dimension": "維度",
|
|
76
|
+
"modify_config": "修改配置",
|
|
77
|
+
"start_config": "開始配置",
|
|
78
|
+
"query_filter": "查詢過濾器",
|
|
79
|
+
"add_query_filter": "添加過濾器",
|
|
80
|
+
"input_variables": "輸入變量",
|
|
81
|
+
"input_variables_tips": "請設定變量",
|
|
82
|
+
"input_variables_value_tips": "請設定變量值",
|
|
83
|
+
"delete": "删除",
|
|
84
|
+
"delete_success": "删除成功",
|
|
85
|
+
"delete_warning": "該參數有節點引用,無法删除!",
|
|
86
|
+
"add_input_variables": "新增輸入變量",
|
|
87
|
+
"report_template": "报告模板",
|
|
88
|
+
"report_template_placeholder": "請選擇报告模板",
|
|
89
|
+
"knowledge_base": "知识库",
|
|
90
|
+
"knowledge_base_placeholder": "請選擇知识库",
|
|
91
|
+
"enable_network_retrieval": "开启联网检索",
|
|
92
|
+
"input_insert_variables": "輸入 / 插入變量",
|
|
93
|
+
"no_available_variables": "暂无可用變量",
|
|
94
|
+
"parameter_name": "參數名稱",
|
|
95
|
+
"parameter_name_placeholder": "請選擇參數名稱",
|
|
96
|
+
"parameter_name_input_placeholder": "請輸入參數名稱",
|
|
97
|
+
"parameter_name_exist": "參數名稱已存在",
|
|
98
|
+
"add": "添加",
|
|
99
|
+
"parameter_type": "參數類型",
|
|
100
|
+
"parameter_type_placeholder": "請選擇參數類型",
|
|
101
|
+
"log_field": "日誌字段",
|
|
102
|
+
"log_field_placeholder": "請選擇日誌字段",
|
|
103
|
+
"parameter_description": "參數描述(中文)",
|
|
104
|
+
"parameter_description_input_placeholder": "請輸入參數描述",
|
|
105
|
+
"operation": "操作",
|
|
106
|
+
"add_parameter": "添加參數",
|
|
107
|
+
"parameter_name_not_selected": "有參數未選擇參數名稱!",
|
|
108
|
+
"parameter_type_not_selected": "有參數未選擇參數類型!",
|
|
109
|
+
"log_field_not_selected": "有選擇框參數未選擇日誌字段!",
|
|
110
|
+
"parameter_description_not_input": "有參數未填寫參數描述!",
|
|
111
|
+
"predict_template_not_selected": "未選擇預測模板!",
|
|
112
|
+
"input_variable_not_configured": "未配置值",
|
|
113
|
+
"input_variable_value": "輸入變量值",
|
|
114
|
+
"input_variable_value_not_configured": "未配置變量名稱",
|
|
115
|
+
"loop_node_not_selected": "循環組件未選擇要循環的節點",
|
|
116
|
+
"query_dimension_not_selected": "未選擇查詢維度",
|
|
117
|
+
"report_template_not_selected": "未選擇报告模板",
|
|
118
|
+
"query_log_not_selected": "未選擇查詢日誌",
|
|
119
|
+
"edit": "编辑",
|
|
120
|
+
"edit_current_workflow": "编辑当前工作流",
|
|
121
|
+
"enter_edit_state": "进入编辑状态",
|
|
122
|
+
"test_run_before_save": "测试运行前需要先保存,是否保存当前工作流?",
|
|
123
|
+
"confirm": "确认",
|
|
124
|
+
"cancel": "取消",
|
|
125
|
+
"clear_current_canvas": "是否清空当前画布?",
|
|
126
|
+
"selectNodes": "分析節點",
|
|
127
|
+
"selectNodes_placeholder": "請選擇分析節點",
|
|
128
|
+
"root_cause_node_not_selected": "未選擇根因分析節點",
|
|
129
|
+
"analysis_field": "分析字段",
|
|
130
|
+
"analysis_field_placeholder": "請選擇分析字段",
|
|
131
|
+
"analysis_field_template": "分析字段模板",
|
|
132
|
+
"analysis_field_template_placeholder": "可選擇分析字段模板",
|
|
133
|
+
"analysis_field_not_selected": "未選擇分析字段",
|
|
134
|
+
"analysis_agg": "根因分析指標",
|
|
135
|
+
"analysis_agg_placeholder": "請選擇根因分析指標",
|
|
136
|
+
"analysis_agg_not_selected": "未選擇根因分析指標",
|
|
137
|
+
"no_permission": "沒有權限",
|
|
138
|
+
"no_permission_tips_add_node": "您沒有權限添加節點"
|
|
139
|
+
}
|