From 4a26b9b20853961fc9ec7035dbab5e61f5ca60fa Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 18 Nov 2023 21:20:30 +0800 Subject: [PATCH] fix: import @nocobase/utils/client --- packages/core/client/src/nocobase-buildin-plugin/index.tsx | 7 ++++--- .../antd/date-picker/__tests__/util.test.ts | 2 +- .../client/src/schema-component/antd/form-v2/utils.tsx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/core/client/src/nocobase-buildin-plugin/index.tsx b/packages/core/client/src/nocobase-buildin-plugin/index.tsx index 99cfbc831..e3523ac88 100644 --- a/packages/core/client/src/nocobase-buildin-plugin/index.tsx +++ b/packages/core/client/src/nocobase-buildin-plugin/index.tsx @@ -1,4 +1,4 @@ -import { LoadingOutlined } from '@ant-design/icons'; +import { DisconnectOutlined, LoadingOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer } from '@formily/reactive-react'; import { Button, Modal, Result, Spin } from 'antd'; @@ -54,8 +54,9 @@ const getProps = (app: Application) => { if (app.ws.serverDown) { return { status: 'error', - title: 'App error', - subTitle: 'The server is down', + icon: , + title: "You're offline", + subTitle: 'Please check the server status or network connection status', }; } diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts b/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts index 7777975ae..c48241b02 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts @@ -1,4 +1,4 @@ -import { str2moment } from '@nocobase/utils'; +import { str2moment } from '@nocobase/utils/client'; import dayjs from 'dayjs'; import { moment2str } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/utils.tsx b/packages/core/client/src/schema-component/antd/form-v2/utils.tsx index d0e8278b8..81c2b6ae6 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/utils.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/utils.tsx @@ -1,6 +1,6 @@ import { Field } from '@formily/core'; import { evaluators } from '@nocobase/evaluators/client'; -import { uid } from '@nocobase/utils'; +import { uid } from '@nocobase/utils/client'; import _, { last } from 'lodash'; import { ActionType } from '../../../schema-settings/LinkageRules/type'; import { VariableOption, VariablesContextType } from '../../../variables/types';