fix: plugin-workflow, import Instruction from nodes (#1095)
Reviewed-on: daoyoucloud/tachybase#1095 Co-authored-by: bai.zixv <bai.zixv@foxmail.com> Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
parent
bc0f05ded2
commit
78af8dae67
@ -1,9 +1,10 @@
|
|||||||
import { css } from '@tachybase/client';
|
import { css } from '@tachybase/client';
|
||||||
import { ArrayTable } from '@tachybase/components';
|
import { ArrayTable } from '@tachybase/components';
|
||||||
import { Instruction, WorkflowVariableInput } from '@tachybase/plugin-workflow/client';
|
|
||||||
|
|
||||||
|
import { WorkflowVariableInput } from '../..';
|
||||||
import { NAMESPACE_INSTRUCTION_JSON_PARSE } from '../../../common/constants';
|
import { NAMESPACE_INSTRUCTION_JSON_PARSE } from '../../../common/constants';
|
||||||
import { tval } from '../../locale';
|
import { tval } from '../../locale';
|
||||||
|
import { Instruction } from '../../nodes';
|
||||||
|
|
||||||
export class JSONParseInstruction extends Instruction {
|
export class JSONParseInstruction extends Instruction {
|
||||||
title = tval('JSON Parse');
|
title = tval('JSON Parse');
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ArrowUpOutlined } from '@ant-design/icons';
|
|
||||||
|
|
||||||
import { css, cx, useCompile } from '@tachybase/client';
|
import { css, cx, useCompile } from '@tachybase/client';
|
||||||
|
|
||||||
|
import { ArrowUpOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
NodeDefaultView,
|
|
||||||
Branch,
|
Branch,
|
||||||
|
defaultFieldNames,
|
||||||
|
NodeDefaultView,
|
||||||
|
nodesOptions,
|
||||||
|
scopeOptions,
|
||||||
|
triggerOptions,
|
||||||
useFlowContext,
|
useFlowContext,
|
||||||
useStyles,
|
useStyles,
|
||||||
VariableOption,
|
VariableOption,
|
||||||
WorkflowVariableInput,
|
WorkflowVariableInput,
|
||||||
defaultFieldNames,
|
|
||||||
nodesOptions,
|
|
||||||
scopeOptions,
|
|
||||||
triggerOptions,
|
|
||||||
Instruction,
|
|
||||||
} from '../..';
|
} from '../..';
|
||||||
import { NAMESPACE, lang } from '../../locale';
|
import { lang, NAMESPACE } from '../../locale';
|
||||||
|
import { Instruction } from '../../nodes';
|
||||||
|
|
||||||
function findOption(options: VariableOption[], paths: string[]) {
|
function findOption(options: VariableOption[], paths: string[]) {
|
||||||
let opts = options;
|
let opts = options;
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
import { SchemaInitializerItemType, useCollectionManager_deprecated, useCompile, usePlugin } from '@tachybase/client';
|
import { SchemaInitializerItemType, useCollectionManager_deprecated, useCompile, usePlugin } from '@tachybase/client';
|
||||||
|
|
||||||
import WorkflowPlugin, {
|
import WorkflowPlugin, { CollectionBlockInitializer, defaultFieldNames, getCollectionFieldOptions } from '../../..';
|
||||||
defaultFieldNames,
|
|
||||||
getCollectionFieldOptions,
|
|
||||||
CollectionBlockInitializer,
|
|
||||||
Instruction,
|
|
||||||
} from '../../..';
|
|
||||||
|
|
||||||
import { SchemaConfig, SchemaConfigButton } from './SchemaConfig';
|
|
||||||
import { ModeConfig } from './ModeConfig';
|
|
||||||
import { AssigneesSelect } from './AssigneesSelect';
|
|
||||||
import { NAMESPACE } from '../../../locale';
|
import { NAMESPACE } from '../../../locale';
|
||||||
|
import { Instruction } from '../../../nodes';
|
||||||
|
import { AssigneesSelect } from './AssigneesSelect';
|
||||||
|
import { ModeConfig } from './ModeConfig';
|
||||||
|
import { SchemaConfig, SchemaConfigButton } from './SchemaConfig';
|
||||||
|
|
||||||
const MULTIPLE_ASSIGNED_MODE = {
|
const MULTIPLE_ASSIGNED_MODE = {
|
||||||
SINGLE: Symbol('single'),
|
SINGLE: Symbol('single'),
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Button, Tooltip } from 'antd';
|
|
||||||
import { PlusOutlined } from '@ant-design/icons';
|
|
||||||
|
|
||||||
import { css } from '@tachybase/client';
|
import { css } from '@tachybase/client';
|
||||||
|
|
||||||
import {
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
NodeDefaultView,
|
import { Button, Tooltip } from 'antd';
|
||||||
Branch,
|
|
||||||
useFlowContext,
|
|
||||||
useStyles,
|
|
||||||
useGetAriaLabelOfAddButton,
|
|
||||||
RadioWithTooltip,
|
|
||||||
Instruction,
|
|
||||||
} from '../..';
|
|
||||||
|
|
||||||
import { NAMESPACE, lang } from '../../locale';
|
import {
|
||||||
|
Branch,
|
||||||
|
NodeDefaultView,
|
||||||
|
RadioWithTooltip,
|
||||||
|
useFlowContext,
|
||||||
|
useGetAriaLabelOfAddButton,
|
||||||
|
useStyles,
|
||||||
|
} from '../..';
|
||||||
|
import { lang, NAMESPACE } from '../../locale';
|
||||||
|
import { Instruction } from '../../nodes';
|
||||||
|
|
||||||
export default class extends Instruction {
|
export default class extends Instruction {
|
||||||
title = `{{t("Parallel branch", { ns: "${NAMESPACE}" })}}`;
|
title = `{{t("Parallel branch", { ns: "${NAMESPACE}" })}}`;
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
import { ArrayItems } from '@tachybase/components';
|
import { ArrayItems } from '@tachybase/components';
|
||||||
|
|
||||||
import {
|
import { defaultFieldNames, WorkflowVariableInput, WorkflowVariableJSON, WorkflowVariableTextArea } from '../..';
|
||||||
defaultFieldNames,
|
|
||||||
Instruction,
|
|
||||||
WorkflowVariableInput,
|
|
||||||
WorkflowVariableJSON,
|
|
||||||
WorkflowVariableTextArea,
|
|
||||||
} from '../..';
|
|
||||||
import { NAMESPACE } from '../../locale';
|
import { NAMESPACE } from '../../locale';
|
||||||
|
import { Instruction } from '../../nodes';
|
||||||
|
|
||||||
export default class extends Instruction {
|
export default class extends Instruction {
|
||||||
title = `{{t("HTTP request", { ns: "${NAMESPACE}" })}}`;
|
title = `{{t("HTTP request", { ns: "${NAMESPACE}" })}}`;
|
||||||
|
@ -3,8 +3,9 @@ import { css } from '@tachybase/client';
|
|||||||
|
|
||||||
import { Trans } from 'react-i18next';
|
import { Trans } from 'react-i18next';
|
||||||
|
|
||||||
import { defaultFieldNames, Instruction, WorkflowVariableRawTextArea } from '../..';
|
import { defaultFieldNames, WorkflowVariableRawTextArea } from '../..';
|
||||||
import { NAMESPACE } from '../../locale';
|
import { NAMESPACE } from '../../locale';
|
||||||
|
import { Instruction } from '../../nodes';
|
||||||
|
|
||||||
export default class extends Instruction {
|
export default class extends Instruction {
|
||||||
title = `{{t("SQL action", { ns: "${NAMESPACE}" })}}`;
|
title = `{{t("SQL action", { ns: "${NAMESPACE}" })}}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user