diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 441b8bd320..168374889f 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -12,8 +12,7 @@ import { Field, Form } from '@formily/core'; import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@formily/react'; import { untracked } from '@formily/reactive'; import { evaluators } from '@nocobase/evaluators/client'; -import { isURL } from '@nocobase/utils/client'; -import { parse } from '@nocobase/json-templates'; +import { isURL, parse } from '@nocobase/utils/client'; import { App, message } from 'antd'; import _ from 'lodash'; import get from 'lodash/get'; diff --git a/packages/core/server/src/environment.ts b/packages/core/server/src/environment.ts index f76dc373b2..7ec8b3045f 100644 --- a/packages/core/server/src/environment.ts +++ b/packages/core/server/src/environment.ts @@ -7,7 +7,7 @@ * For more information, please refer to: https://www.nocobase.com/agreement. */ -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; import _ from 'lodash'; export class Environment { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts index f1a5035e6a..240f52e08b 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts @@ -8,7 +8,8 @@ */ import { Context, Next } from '@nocobase/actions'; -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; + import { appendArrayColumn } from '@nocobase/evaluators'; import Application from '@nocobase/server'; import axios from 'axios'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts index 006efc6ab8..b6745f9dc4 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts @@ -20,8 +20,7 @@ import { useVariables, useLocalVariables, } from '@nocobase/client'; -import { flatten, unflatten } from '@nocobase/utils/client'; -import { parse } from '@nocobase/json-templates'; +import { flatten, parse, unflatten } from '@nocobase/utils/client'; import { useMemoizedFn } from 'ahooks'; import deepmerge from 'deepmerge'; import { default as _, default as lodash } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/server.ts b/packages/plugins/@nocobase/plugin-users/src/server/server.ts index b1c2c93731..d55bb0020a 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/server.ts @@ -9,7 +9,7 @@ import { Collection, Model, Op } from '@nocobase/database'; import { InstallOptions, Plugin } from '@nocobase/server'; -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; import * as actions from './actions/users'; import { UserModel } from './models/UserModel'; import PluginUserDataSyncServer from '@nocobase/plugin-user-data-sync'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts index 2b372cc256..00f493ec1e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts @@ -7,7 +7,7 @@ * For more information, please refer to: https://www.nocobase.com/agreement. */ -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; import { FlowNodeModel, Instruction, JOB_STATUS, Processor } from '@nocobase/plugin-workflow'; import evaluators, { Evaluator } from '@nocobase/evaluators'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx index acb7e8a86b..3b46b23c34 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx @@ -9,7 +9,7 @@ import { useFieldSchema } from '@formily/react'; import { css, SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils/client'; import React from 'react'; import { useFlowContext } from '../FlowContext'; import { SimpleDesigner } from './SimpleDesigner'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx index de839ef8e4..5c1b676754 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx @@ -31,8 +31,8 @@ import { usePlugin, useResourceActionContext, } from '@nocobase/client'; -import { str2moment } from '@nocobase/utils/client'; -import { parse } from '@nocobase/json-templates'; +import { parse, str2moment } from '@nocobase/utils/client'; + import WorkflowPlugin from '..'; import { AddButton } from '../AddNodeContext'; import { useFlowContext } from '../FlowContext'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts index 608b4aecf5..1a6d20dd79 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts @@ -10,7 +10,7 @@ import { Model, Transaction, Transactionable } from '@nocobase/database'; import { appendArrayColumn } from '@nocobase/evaluators'; import { Logger } from '@nocobase/logger'; -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; import set from 'lodash/set'; import type Plugin from './Plugin'; import { EXECUTION_STATUS, JOB_STATUS } from './constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/function.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/function.test.ts index 9820ae00b8..946b4d1bc4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/function.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/function.test.ts @@ -10,7 +10,7 @@ import dayjs from 'dayjs'; import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { parse } from '@nocobase/json-templates'; +import { parse } from '@nocobase/utils'; import { dateRangeFns } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts index 5a024c74ac..6512cc4a3b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts @@ -8,6 +8,7 @@ */ import { Evaluator, evaluators } from '@nocobase/evaluators'; +import { parse } from '@nocobase/utils'; import { Instruction } from '.'; import type Processor from '../Processor'; import { JOB_STATUS } from '../constants';