diff --git a/.eslintignore b/.eslintignore index 0864ab2f6..38571fa3f 100755 --- a/.eslintignore +++ b/.eslintignore @@ -30,4 +30,5 @@ storage benchmark packages/core/cli/src packages/core/cli/bin -t.js +# temp +packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx diff --git a/README.md b/README.md index 6f3dcb9cd..f2d6dec0d 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,3 @@ TachyCode is a scalability-first, open-source no-code development platform. It is based on the last Apache version fork of the open-source NocoBase. - -## License - -- [Core packages](https://github.com/nocobase/nocobase/tree/main/packages/core) are [Apache 2.0 licensed](./LICENSE-APACHE-2.0). -- [Plugins packages](https://github.com/nocobase/nocobase/tree/main/packages/plugins) are [AGPL 3.0 licensed](./LICENSE-AGPL). \ No newline at end of file diff --git a/package.json b/package.json index dabfa7f9b..e8d3a8ed5 100644 --- a/package.json +++ b/package.json @@ -96,8 +96,8 @@ "@formily/reactive-react": "2.2.27", "@formily/shared": "2.2.27", "@formily/validator": "2.2.27", - "@types/node": "^20.12.2" + "@types/node": "^20.12.2", + "dayjs": "1.11.10" } - }, - "licenses": "Apache-2.0" + } } diff --git a/packages/core/build/src/buildPlugin.ts b/packages/core/build/src/buildPlugin.ts index fd9e74865..6bfa98083 100644 --- a/packages/core/build/src/buildPlugin.ts +++ b/packages/core/build/src/buildPlugin.ts @@ -39,7 +39,7 @@ const external = [ '@nocobase/logger', '@nocobase/resourcer', '@nocobase/sdk', - '@nocobase/schema', + '@tachybase/schema', '@nocobase/server', '@nocobase/test', '@nocobase/utils', @@ -124,7 +124,7 @@ const external = [ 'china-division', ]; const pluginPrefix = ( - process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@nocobase/plugin-pro-,@hera/plugin-' + process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-' ).split(','); const target_dir = 'dist'; @@ -306,7 +306,7 @@ export async function buildPluginClient(cwd: string, userConfig: UserConfig, sou const outDir = path.join(cwd, target_dir, 'client'); const globals = excludePackages.reduce>((prev, curr) => { - if (curr.startsWith('@nocobase') || curr.startsWith('@hera')) { + if (curr.startsWith('@nocobase') || curr.startsWith('@hera') || curr.startsWith('@tachybase')) { prev[`${curr}/client`] = curr; } prev[curr] = curr; diff --git a/packages/core/cli/src/util.ts b/packages/core/cli/src/util.ts index cbbaeceb6..419b817c9 100644 --- a/packages/core/cli/src/util.ts +++ b/packages/core/cli/src/util.ts @@ -243,7 +243,7 @@ export async function genTsConfigPaths() { paths[`${packageJsonName}/server`] = [`${relativePath}/src/server`]; paths[`${packageJsonName}/e2e`] = [`${relativePath}/src/e2e`]; } - if (packageJsonName === '@nocobase/plugin-workflow-test') { + if (packageJsonName === '@tachybase/plugin-workflow-test') { paths[`${packageJsonName}/e2e`] = [`${relativePath}/src/e2e`]; } }), @@ -322,7 +322,7 @@ export function initEnv() { SOCKET_PATH: 'storage/gateway.sock', NODE_MODULES_PATH: resolve(process.cwd(), 'node_modules'), PM2_HOME: resolve(process.cwd(), './storage/.pm2'), - PLUGIN_PACKAGE_PREFIX: '@nocobase/plugin-,@nocobase/plugin-sample-,@tachybase/preset-,@hera/plugin-', + PLUGIN_PACKAGE_PREFIX: '@nocobase/plugin-,@tachybase/plugin-,@tachybase/preset-,@hera/plugin-', SERVER_TSCONFIG_PATH: './tsconfig.server.json', PLAYWRIGHT_AUTH_FILE: resolve(process.cwd(), 'storage/playwright/.auth/admin.json'), CACHE_DEFAULT_STORE: 'memory', diff --git a/packages/core/client/package.json b/packages/core/client/package.json index 3b4877489..c194a3e3e 100644 --- a/packages/core/client/package.json +++ b/packages/core/client/package.json @@ -20,9 +20,9 @@ "@emotion/css": "^11.7.1", "@formily/antd-v5": "^1.1.9", "@nocobase/evaluators": "workspace:*", - "@nocobase/schema": "workspace:*", "@nocobase/sdk": "workspace:*", "@nocobase/utils": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "antd-style": "3.4.5", diff --git a/packages/core/client/src/acl/ACLProvider.tsx b/packages/core/client/src/acl/ACLProvider.tsx index a0d9b8c37..d13385622 100644 --- a/packages/core/client/src/acl/ACLProvider.tsx +++ b/packages/core/client/src/acl/ACLProvider.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { Schema, useField, useFieldSchema } from '@tachybase/schema'; import React, { createContext, useContext, useEffect } from 'react'; import { Navigate } from 'react-router-dom'; import { omit } from 'lodash'; diff --git a/packages/core/client/src/acl/ACLShortcut.tsx b/packages/core/client/src/acl/ACLShortcut.tsx index 8027035e0..195154d4b 100644 --- a/packages/core/client/src/acl/ACLShortcut.tsx +++ b/packages/core/client/src/acl/ACLShortcut.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Card } from 'antd'; import React from 'react'; import { SchemaComponent } from '../schema-component'; diff --git a/packages/core/client/src/acl/Configuration/RoleConfigure.tsx b/packages/core/client/src/acl/Configuration/RoleConfigure.tsx index a90d3ae6a..fdeb7521a 100644 --- a/packages/core/client/src/acl/Configuration/RoleConfigure.tsx +++ b/packages/core/client/src/acl/Configuration/RoleConfigure.tsx @@ -1,5 +1,5 @@ -import { onFieldChange } from '@nocobase/schema'; -import { connect } from '@nocobase/schema'; +import { onFieldChange } from '@tachybase/schema'; +import { connect } from '@tachybase/schema'; import { Checkbox } from 'antd'; import uniq from 'lodash/uniq'; import React, { useContext } from 'react'; diff --git a/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx b/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx index 231e1f0a6..c964d0694 100644 --- a/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx +++ b/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx @@ -1,6 +1,6 @@ import { FormItem, FormLayout } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { connect, useField, useForm } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField, useForm } from '@tachybase/schema'; import { Checkbox, Table, Tag } from 'antd'; import { isEmpty } from 'lodash'; import React, { createContext } from 'react'; diff --git a/packages/core/client/src/acl/Configuration/ScopeSelect.tsx b/packages/core/client/src/acl/Configuration/ScopeSelect.tsx index 0b9ba8383..f27ae7e94 100644 --- a/packages/core/client/src/acl/Configuration/ScopeSelect.tsx +++ b/packages/core/client/src/acl/Configuration/ScopeSelect.tsx @@ -1,4 +1,4 @@ -import { createForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent } from '../../schema-component'; import { scopesSchema } from './schemas/scopes'; diff --git a/packages/core/client/src/acl/Configuration/StrategyActions.tsx b/packages/core/client/src/acl/Configuration/StrategyActions.tsx index a56f4214d..89c92217e 100644 --- a/packages/core/client/src/acl/Configuration/StrategyActions.tsx +++ b/packages/core/client/src/acl/Configuration/StrategyActions.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { connect, useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField } from '@tachybase/schema'; import { Checkbox, Select, Table, Tag } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/acl/Configuration/schemas/roles.ts b/packages/core/client/src/acl/Configuration/schemas/roles.ts index ced47bcda..1a1df4d90 100644 --- a/packages/core/client/src/acl/Configuration/schemas/roles.ts +++ b/packages/core/client/src/acl/Configuration/schemas/roles.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import pick from 'lodash/pick'; import { useEffect } from 'react'; import { useRequest } from '../../../api-client'; diff --git a/packages/core/client/src/acl/Configuration/schemas/scopes.ts b/packages/core/client/src/acl/Configuration/schemas/scopes.ts index e6adcafde..a3a18c2c4 100644 --- a/packages/core/client/src/acl/Configuration/schemas/scopes.ts +++ b/packages/core/client/src/acl/Configuration/schemas/scopes.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useContext, useEffect } from 'react'; import { useFormBlockContext } from '../../../block-provider'; import { useFilterOptions } from '../../../schema-component'; diff --git a/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts b/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts index 85d3916e3..2a6405b08 100644 --- a/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts +++ b/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '../../../'; export const useSaveRoleResourceAction = () => { diff --git a/packages/core/client/src/api-client/demos/demo3.tsx b/packages/core/client/src/api-client/demos/demo3.tsx index edb9f99a5..d385d3fda 100644 --- a/packages/core/client/src/api-client/demos/demo3.tsx +++ b/packages/core/client/src/api-client/demos/demo3.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { APIClient, APIClientProvider, useAPIClient, useRequest } from '@nocobase/client'; import { Button, Input, Space, Table } from 'antd'; import MockAdapter from 'axios-mock-adapter'; diff --git a/packages/core/client/src/api-client/hooks/useRequest.ts b/packages/core/client/src/api-client/hooks/useRequest.ts index 37fad4c35..60fdf851f 100644 --- a/packages/core/client/src/api-client/hooks/useRequest.ts +++ b/packages/core/client/src/api-client/hooks/useRequest.ts @@ -1,4 +1,4 @@ -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import { useRequest as useReq, useSetState } from 'ahooks'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; import { AxiosRequestConfig } from 'axios'; diff --git a/packages/core/client/src/application/Application.tsx b/packages/core/client/src/application/Application.tsx index 416681ed4..12f98b1d0 100644 --- a/packages/core/client/src/application/Application.tsx +++ b/packages/core/client/src/application/Application.tsx @@ -1,4 +1,4 @@ -import { define, observable } from '@nocobase/schema'; +import { define, observable } from '@tachybase/schema'; import { APIClientOptions, getSubAppName } from '@nocobase/sdk'; import { i18n as i18next } from 'i18next'; import get from 'lodash/get'; diff --git a/packages/core/client/src/application/WebSocketClient.ts b/packages/core/client/src/application/WebSocketClient.ts index 941fcaeed..b4fd7afe0 100644 --- a/packages/core/client/src/application/WebSocketClient.ts +++ b/packages/core/client/src/application/WebSocketClient.ts @@ -1,4 +1,4 @@ -import { define, observable } from '@nocobase/schema'; +import { define, observable } from '@tachybase/schema'; import { getSubAppName } from '@nocobase/sdk'; import { Application } from './Application'; diff --git a/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx b/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx index 604ff32a8..a467fa21d 100644 --- a/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx +++ b/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, render, screen, waitFor } from '@nocobase/test/client'; import { SchemaToolbarProvider, useSchemaToolbar, useSchemaToolbarRender } from '../schema-toolbar'; import { SchemaComponent, SchemaComponentProvider, SortableContext, SortableProvider } from '../../schema-component'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Application, ApplicationContext } from '@nocobase/client'; describe('SchemaToolbar', () => { diff --git a/packages/core/client/src/application/components/AppComponent.tsx b/packages/core/client/src/application/components/AppComponent.tsx index 5d6d49dce..c7fc35137 100644 --- a/packages/core/client/src/application/components/AppComponent.tsx +++ b/packages/core/client/src/application/components/AppComponent.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React, { FC, useCallback, useEffect } from 'react'; import { ErrorBoundary } from 'react-error-boundary'; import type { Application } from '../Application'; diff --git a/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx b/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx index 1ed608b6f..d5f183ec1 100644 --- a/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx +++ b/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx @@ -1,4 +1,4 @@ -import { useExpressionScope } from '@nocobase/schema'; +import { useExpressionScope } from '@tachybase/schema'; import React, { ComponentType, useMemo } from 'react'; import { useDesignable } from '../../schema-component'; import _ from 'lodash'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx index 4bc85820f..e0f58f1c8 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import React, { FC, useCallback, useMemo } from 'react'; import { useActionContext, SchemaComponent } from '../../../schema-component'; import { useSchemaInitializerItem } from '../context'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx index 85d6c4bb9..f0d81d886 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import classNames from 'classnames'; import React, { ReactNode, memo, useMemo } from 'react'; import { Icon } from '../../../icon'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx index 93711b355..fa584f362 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx @@ -1,6 +1,6 @@ import Icon, { RightOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { Menu, MenuProps, theme } from 'antd'; import React, { FC, ReactNode, useMemo } from 'react'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-initializer/hoc/index.tsx b/packages/core/client/src/application/schema-initializer/hoc/index.tsx index 3d5bd7386..be82053cf 100644 --- a/packages/core/client/src/application/schema-initializer/hoc/index.tsx +++ b/packages/core/client/src/application/schema-initializer/hoc/index.tsx @@ -1,4 +1,4 @@ -import { ISchema, observer } from '@nocobase/schema'; +import { ISchema, observer } from '@tachybase/schema'; import { ConfigProvider, Popover, theme } from 'antd'; import React, { ComponentType, useCallback, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/application/schema-initializer/types.ts b/packages/core/client/src/application/schema-initializer/types.ts index d35bf25aa..e7ef92202 100644 --- a/packages/core/client/src/application/schema-initializer/types.ts +++ b/packages/core/client/src/application/schema-initializer/types.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { ButtonProps, PopoverProps } from 'antd'; import { ComponentType, ReactNode } from 'react'; import type { diff --git a/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx b/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx index f73d111bc..e822b268c 100644 --- a/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx +++ b/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx @@ -5,7 +5,7 @@ import { SchemaSettingsChildren } from './SchemaSettingsChildren'; import { SchemaSettingsIcon } from './SchemaSettingsIcon'; import React from 'react'; import { useDesignable } from '../../../schema-component'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; /** * @internal diff --git a/packages/core/client/src/application/schema-settings/hooks/index.tsx b/packages/core/client/src/application/schema-settings/hooks/index.tsx index 60103a69a..aefc9841b 100644 --- a/packages/core/client/src/application/schema-settings/hooks/index.tsx +++ b/packages/core/client/src/application/schema-settings/hooks/index.tsx @@ -4,8 +4,8 @@ import { SchemaSettingOptions } from '../types'; import React from 'react'; import { SchemaSettingsWrapper } from '../components'; import { SchemaSettingsProps } from '../../../schema-settings'; -import { Schema } from '@nocobase/schema'; -import { GeneralField } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; +import { GeneralField } from '@tachybase/schema'; import { Designable } from '../../../schema-component'; type UseSchemaSettingsRenderOptions = Omit, 'name' | 'items'> & diff --git a/packages/core/client/src/application/schema-toolbar/hooks/index.tsx b/packages/core/client/src/application/schema-toolbar/hooks/index.tsx index 00568fedf..a8e670279 100644 --- a/packages/core/client/src/application/schema-toolbar/hooks/index.tsx +++ b/packages/core/client/src/application/schema-toolbar/hooks/index.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useComponent, useDesignable } from '../../../schema-component'; import { SchemaToolbar, SchemaToolbarProps } from '../../../schema-settings/GeneralSchemaDesigner'; diff --git a/packages/core/client/src/application/utils/globalDeps.ts b/packages/core/client/src/application/utils/globalDeps.ts index 3e7539361..2b37f37dc 100644 --- a/packages/core/client/src/application/utils/globalDeps.ts +++ b/packages/core/client/src/application/utils/globalDeps.ts @@ -7,18 +7,18 @@ import * as dndKitSortable from '@dnd-kit/sortable'; import * as dndKitUtilities from '@dnd-kit/utilities'; import * as emotionCss from '@emotion/css'; import * as formilyAntdV5 from '@formily/antd-v5'; -import * as formilyCore from '@nocobase/schema'; -import * as formilyJsonSchema from '@nocobase/schema'; -import * as formilyPath from '@nocobase/schema'; -import * as formilyReact from '@nocobase/schema'; -import * as formilyJsonReactive from '@nocobase/schema'; -import * as formilyReactiveReact from '@nocobase/schema'; -import * as formilyShared from '@nocobase/schema'; -import * as formilyValidator from '@nocobase/schema'; +import * as formilyCore from '@tachybase/schema'; +import * as formilyJsonSchema from '@tachybase/schema'; +import * as formilyPath from '@tachybase/schema'; +import * as formilyReact from '@tachybase/schema'; +import * as formilyJsonReactive from '@tachybase/schema'; +import * as formilyReactiveReact from '@tachybase/schema'; +import * as formilyShared from '@tachybase/schema'; +import * as formilyValidator from '@tachybase/schema'; import * as nocobaseEvaluators from '@nocobase/evaluators/client'; import * as nocobaseClientUtils from '@nocobase/utils/client'; import * as nocobaseSDK from '@nocobase/sdk'; -import * as nocobaseSchema from '@nocobase/schema'; +import * as nocobaseSchema from '@tachybase/schema'; import { dayjs } from '@nocobase/utils/client'; import * as ahooks from 'ahooks'; import * as antd from 'antd'; @@ -78,7 +78,7 @@ export function defineGlobalDeps(requirejs: RequireJS) { requirejs.define('@nocobase/evaluators', () => nocobaseEvaluators); requirejs.define('@nocobase/evaluators/client', () => nocobaseEvaluators); requirejs.define('@nocobase/sdk', () => nocobaseSDK); - requirejs.define('@nocobase/schema', () => nocobaseSchema); + requirejs.define('@tachybase/schema', () => nocobaseSchema); // dnd-kit 相关 requirejs.define('@dnd-kit/accessibility', () => dndKitAccessibility); diff --git a/packages/core/client/src/block-provider/BlockProvider.tsx b/packages/core/client/src/block-provider/BlockProvider.tsx index c24c0955c..bd129f4fa 100644 --- a/packages/core/client/src/block-provider/BlockProvider.tsx +++ b/packages/core/client/src/block-provider/BlockProvider.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { Field, GeneralField } from '@nocobase/schema'; -import { RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { Field, GeneralField } from '@tachybase/schema'; +import { RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Col, Row } from 'antd'; import merge from 'deepmerge'; import template from 'lodash/template'; diff --git a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx index 52ed4aad7..d53b83353 100644 --- a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx +++ b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { Spin } from 'antd'; import _ from 'lodash'; import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index e691a5912..64ab10971 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { RecursionField, Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { RecursionField, Schema, useField, useFieldSchema } from '@tachybase/schema'; import { Spin } from 'antd'; import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; import { useCollection_deprecated } from '../collection-manager'; diff --git a/packages/core/client/src/block-provider/FormFieldProvider.tsx b/packages/core/client/src/block-provider/FormFieldProvider.tsx index 0b51feb96..4e226a230 100644 --- a/packages/core/client/src/block-provider/FormFieldProvider.tsx +++ b/packages/core/client/src/block-provider/FormFieldProvider.tsx @@ -1,6 +1,6 @@ -import { createForm, onFormValuesChange } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; -import { autorun } from '@nocobase/schema'; +import { createForm, onFormValuesChange } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; +import { autorun } from '@tachybase/schema'; import { forEach } from '@nocobase/utils/client'; import { Spin } from 'antd'; import React, { createContext, useContext, useEffect, useMemo } from 'react'; diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index 45d613d3b..3fd8eec6a 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { FormContext, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FormContext, useField, useFieldSchema } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { useCollectionManager_deprecated } from '../collection-manager'; import { FixedBlockWrapper, SchemaComponentOptions } from '../schema-component'; diff --git a/packages/core/client/src/block-provider/TableFieldProvider.tsx b/packages/core/client/src/block-provider/TableFieldProvider.tsx index 36bec8b14..b15669d33 100644 --- a/packages/core/client/src/block-provider/TableFieldProvider.tsx +++ b/packages/core/client/src/block-provider/TableFieldProvider.tsx @@ -1,5 +1,5 @@ -import { ArrayField, Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField, Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React, { createContext, useContext, useEffect } from 'react'; import { APIClient } from '../api-client'; import { BlockProvider, useBlockRequestContext } from './BlockProvider'; diff --git a/packages/core/client/src/block-provider/TableSelectorProvider.tsx b/packages/core/client/src/block-provider/TableSelectorProvider.tsx index 4b26e7154..3822cd51e 100644 --- a/packages/core/client/src/block-provider/TableSelectorProvider.tsx +++ b/packages/core/client/src/block-provider/TableSelectorProvider.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { Schema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import uniq from 'lodash/uniq'; import React, { createContext, useContext, useEffect, useState } from 'react'; diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 28d9672c0..2ee19743b 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -1,6 +1,6 @@ -import { Field, Form } from '@nocobase/schema'; -import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { untracked } from '@nocobase/schema'; +import { Field, Form } from '@tachybase/schema'; +import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { untracked } from '@tachybase/schema'; import { isURL, parse } from '@nocobase/utils/client'; import { App, message } from 'antd'; import _ from 'lodash'; diff --git a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts index d2a368b06..5e309c8c8 100644 --- a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts +++ b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts @@ -1,4 +1,4 @@ -import { reaction } from '@nocobase/schema'; +import { reaction } from '@tachybase/schema'; import { flatten, getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; import { useEffect, useState } from 'react'; diff --git a/packages/core/client/src/china-region/index.tsx b/packages/core/client/src/china-region/index.tsx index 0ca8f676f..f0335794c 100644 --- a/packages/core/client/src/china-region/index.tsx +++ b/packages/core/client/src/china-region/index.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import React from 'react'; import { SchemaComponentOptions } from '..'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx index 263099170..3507ec253 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx @@ -1,7 +1,7 @@ import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useField, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useField, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button, Dropdown, MenuProps } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx index 4d9d91368..d0fad69c2 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; -import { useField, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button, Dropdown, MenuProps } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx index 5f398f856..cd98a8e5d 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button, Dropdown, MenuProps } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx index e97af4013..097ab3378 100644 --- a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx @@ -1,6 +1,6 @@ import { DeleteOutlined, ExclamationCircleFilled } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { Button, message } from 'antd'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx index 62fbfcab4..d21b5c202 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cloneDeep from 'lodash/cloneDeep'; import omit from 'lodash/omit'; import React, { useEffect, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx index a64129d8c..39d135023 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cloneDeep from 'lodash/cloneDeep'; import omit from 'lodash/omit'; import set from 'lodash/set'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx index f72134555..b348e8ccd 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cloneDeep from 'lodash/cloneDeep'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx b/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx index 354aa50c9..faf6de0a2 100644 --- a/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx +++ b/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { omit, set } from 'lodash'; import cloneDeep from 'lodash/cloneDeep'; import React, { useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx b/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx index 4135a918a..658a9e17c 100644 --- a/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; -import { useField, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx b/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx index 25822c7f3..e91d2976c 100644 --- a/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx @@ -1,8 +1,8 @@ import { SyncOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { useField, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { useField, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx b/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx index d78b4672d..a17e9c27d 100644 --- a/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx +++ b/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cloneDeep from 'lodash/cloneDeep'; import set from 'lodash/set'; import React, { useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx index ed323cb2e..3ec9bfc7c 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Tag } from 'antd'; import React from 'react'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx index a526ef2ac..f73780b05 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Tag } from 'antd'; import React from 'react'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx index 589528db7..fdb6b4a49 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Tag } from 'antd'; import React from 'react'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx b/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx index 1f17d7aab..c0e903055 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Tag } from 'antd'; import { useAntdToken } from 'antd-style'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/index.tsx b/packages/core/client/src/collection-manager/Configuration/components/index.tsx index 77984637b..1137fa2d3 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/index.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import { Select, AutoComplete } from 'antd'; import React, { useState, useEffect } from 'react'; import { useRecord } from '../../../record-provider'; diff --git a/packages/core/client/src/collection-manager/Configuration/index.tsx b/packages/core/client/src/collection-manager/Configuration/index.tsx index 6f627edd4..834489e50 100644 --- a/packages/core/client/src/collection-manager/Configuration/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/index.tsx @@ -1,4 +1,4 @@ -import { registerValidateFormats } from '@nocobase/schema'; +import { registerValidateFormats } from '@tachybase/schema'; export * from './AddFieldAction'; export * from './EditFieldAction'; diff --git a/packages/core/client/src/collection-manager/ResourceActionProvider.tsx b/packages/core/client/src/collection-manager/ResourceActionProvider.tsx index eaab4c15c..858ee9445 100644 --- a/packages/core/client/src/collection-manager/ResourceActionProvider.tsx +++ b/packages/core/client/src/collection-manager/ResourceActionProvider.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { Result } from 'ahooks/es/useRequest/src/types'; import React, { createContext, useContext, useEffect } from 'react'; import { useCollectionManager_deprecated } from '.'; diff --git a/packages/core/client/src/collection-manager/action-hooks.ts b/packages/core/client/src/collection-manager/action-hooks.ts index a5e2f5f19..06018be11 100644 --- a/packages/core/client/src/collection-manager/action-hooks.ts +++ b/packages/core/client/src/collection-manager/action-hooks.ts @@ -1,4 +1,4 @@ -import { useField, useForm } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; import { message } from 'antd'; import _ from 'lodash'; import cloneDeep from 'lodash/cloneDeep'; diff --git a/packages/core/client/src/collection-manager/demos/demo2.tsx b/packages/core/client/src/collection-manager/demos/demo2.tsx index 645446a13..05f4d4a43 100644 --- a/packages/core/client/src/collection-manager/demos/demo2.tsx +++ b/packages/core/client/src/collection-manager/demos/demo2.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, CollectionField, diff --git a/packages/core/client/src/collection-manager/demos/demo4.tsx b/packages/core/client/src/collection-manager/demos/demo4.tsx index 3c09d139e..9f6d13a2a 100644 --- a/packages/core/client/src/collection-manager/demos/demo4.tsx +++ b/packages/core/client/src/collection-manager/demos/demo4.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { AntdSchemaComponentProvider, ExtendCollectionsProvider, diff --git a/packages/core/client/src/collection-manager/demos/demo5.tsx b/packages/core/client/src/collection-manager/demos/demo5.tsx index ec2be53a1..ee763190c 100644 --- a/packages/core/client/src/collection-manager/demos/demo5.tsx +++ b/packages/core/client/src/collection-manager/demos/demo5.tsx @@ -1,8 +1,8 @@ import { FormDrawer, FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { ISchema } from '@nocobase/schema'; -import { FormContext, SchemaOptionsContext } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { ISchema } from '@tachybase/schema'; +import { FormContext, SchemaOptionsContext } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { AntdSchemaComponentProvider, Application, diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts b/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts index 1fadd53e5..54a8a322e 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts @@ -1,4 +1,4 @@ -import { action } from '@nocobase/schema'; +import { action } from '@tachybase/schema'; import { useCollectionManager_deprecated } from '.'; import { useCompile } from '../../schema-component'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts index c01c747f8..631b26254 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts @@ -4,7 +4,7 @@ import { useCallback, useMemo, useState } from 'react'; import { useCompile, useSchemaComponentContext } from '../../schema-component'; import { CollectionFieldOptions_deprecated, CollectionOptions } from '../types'; import { InheritanceCollectionMixin } from '../mixins/InheritanceCollectionMixin'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useDataSourceManager } from '../../data-source/data-source/DataSourceManagerProvider'; import { useDataSource } from '../../data-source/data-source/DataSourceProvider'; import { DEFAULT_DATA_SOURCE_KEY } from '../../data-source/data-source/DataSourceManager'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts index 1848ab144..e1f87650e 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts @@ -1,4 +1,4 @@ -import { SchemaKey } from '@nocobase/schema'; +import { SchemaKey } from '@tachybase/schema'; import { useAPIClient } from '../../api-client'; import { InheritanceCollectionMixin } from '../mixins/InheritanceCollectionMixin'; import { useCallback, useMemo } from 'react'; diff --git a/packages/core/client/src/collection-manager/interfaces/checkbox.ts b/packages/core/client/src/collection-manager/interfaces/checkbox.ts index 51d4f8aab..a80bbe8e9 100644 --- a/packages/core/client/src/collection-manager/interfaces/checkbox.ts +++ b/packages/core/client/src/collection-manager/interfaces/checkbox.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { defaultProps, operators } from '../'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts b/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts index 4bd5215ea..d7f7e057a 100644 --- a/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts +++ b/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts b/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts index 18cccac88..98e6d0bcf 100644 --- a/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts +++ b/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/collection.ts b/packages/core/client/src/collection-manager/interfaces/collection.ts index 333ac060e..525142488 100644 --- a/packages/core/client/src/collection-manager/interfaces/collection.ts +++ b/packages/core/client/src/collection-manager/interfaces/collection.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { collectionDataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/createdBy.ts b/packages/core/client/src/collection-manager/interfaces/createdBy.ts index 1f51d8dd4..4bb26ac37 100644 --- a/packages/core/client/src/collection-manager/interfaces/createdBy.ts +++ b/packages/core/client/src/collection-manager/interfaces/createdBy.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps, recordPickerViewer } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/email.ts b/packages/core/client/src/collection-manager/interfaces/email.ts index 38e0dabb6..712362c1d 100644 --- a/packages/core/client/src/collection-manager/interfaces/email.ts +++ b/packages/core/client/src/collection-manager/interfaces/email.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { defaultProps, operators, unique } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/input.ts b/packages/core/client/src/collection-manager/interfaces/input.ts index 0052f4f99..f9d5a5fed 100644 --- a/packages/core/client/src/collection-manager/interfaces/input.ts +++ b/packages/core/client/src/collection-manager/interfaces/input.ts @@ -1,7 +1,7 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { defaultProps, operators, unique, primaryKey } from './properties'; import { i18n } from '../../i18n'; -import { registerValidateRules } from '@nocobase/schema'; +import { registerValidateRules } from '@tachybase/schema'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; registerValidateRules({ diff --git a/packages/core/client/src/collection-manager/interfaces/integer.ts b/packages/core/client/src/collection-manager/interfaces/integer.ts index e03bdb9e6..f9c53deb7 100644 --- a/packages/core/client/src/collection-manager/interfaces/integer.ts +++ b/packages/core/client/src/collection-manager/interfaces/integer.ts @@ -1,4 +1,4 @@ -import { registerValidateFormats } from '@nocobase/schema'; +import { registerValidateFormats } from '@tachybase/schema'; import { i18n } from '../../i18n'; import { defaultProps, operators, unique, autoIncrement, primaryKey } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/json.tsx b/packages/core/client/src/collection-manager/interfaces/json.tsx index 1aa077373..310124191 100644 --- a/packages/core/client/src/collection-manager/interfaces/json.tsx +++ b/packages/core/client/src/collection-manager/interfaces/json.tsx @@ -1,5 +1,5 @@ import { FormItem, FormLayout } from '@formily/antd-v5'; -import { registerValidateRules } from '@nocobase/schema'; +import { registerValidateRules } from '@tachybase/schema'; import React from 'react'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/linkTo.ts b/packages/core/client/src/collection-manager/interfaces/linkTo.ts index 65548ca5b..34eccf598 100644 --- a/packages/core/client/src/collection-manager/interfaces/linkTo.ts +++ b/packages/core/client/src/collection-manager/interfaces/linkTo.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/m2m.tsx b/packages/core/client/src/collection-manager/interfaces/m2m.tsx index 126d976b4..041c4cd59 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2m.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { getUniqueKeyFromCollection } from './o2m'; import { defaultProps, relationshipType, reverseFieldProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/m2o.tsx b/packages/core/client/src/collection-manager/interfaces/m2o.tsx index 2b196c5e9..f5dc43772 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2o.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { getUniqueKeyFromCollection } from './o2m'; import { constraintsProps, relationshipType, reverseFieldProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/markdown.ts b/packages/core/client/src/collection-manager/interfaces/markdown.ts index 5f22d0c36..f0433f45e 100644 --- a/packages/core/client/src/collection-manager/interfaces/markdown.ts +++ b/packages/core/client/src/collection-manager/interfaces/markdown.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts b/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts index 9ec4cacb7..74799da57 100644 --- a/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts +++ b/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/o2m.tsx b/packages/core/client/src/collection-manager/interfaces/o2m.tsx index fbfb0c89e..1d9eccae2 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2m.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Collection } from '../../data-source'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { constraintsProps, relationshipType, reverseFieldProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/o2o.tsx b/packages/core/client/src/collection-manager/interfaces/o2o.tsx index 75073fbbc..5e909b2c9 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2o.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { getUniqueKeyFromCollection } from './o2m'; import { constraintsProps, relationshipType, reverseFieldProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/percent.ts b/packages/core/client/src/collection-manager/interfaces/percent.ts index 74b8a3df2..cdfffe51b 100644 --- a/packages/core/client/src/collection-manager/interfaces/percent.ts +++ b/packages/core/client/src/collection-manager/interfaces/percent.ts @@ -1,5 +1,5 @@ -import { registerValidateRules } from '@nocobase/schema'; -import { ISchema } from '@nocobase/schema'; +import { registerValidateRules } from '@tachybase/schema'; +import { ISchema } from '@tachybase/schema'; import { i18n } from '../../i18n'; import { defaultProps, operators, unique } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/properties/index.ts b/packages/core/client/src/collection-manager/interfaces/properties/index.ts index b11c860ed..0de599757 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/index.ts @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export * as operators from './operators'; export const type: ISchema = { diff --git a/packages/core/client/src/collection-manager/interfaces/richText.ts b/packages/core/client/src/collection-manager/interfaces/richText.ts index 018c7c5ef..267c9f51a 100644 --- a/packages/core/client/src/collection-manager/interfaces/richText.ts +++ b/packages/core/client/src/collection-manager/interfaces/richText.ts @@ -1,4 +1,4 @@ -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/select.ts b/packages/core/client/src/collection-manager/interfaces/select.ts index 4d03112d9..49d937865 100644 --- a/packages/core/client/src/collection-manager/interfaces/select.ts +++ b/packages/core/client/src/collection-manager/interfaces/select.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/subTable.ts b/packages/core/client/src/collection-manager/interfaces/subTable.ts index 4cd1e56d0..deecc9cfe 100644 --- a/packages/core/client/src/collection-manager/interfaces/subTable.ts +++ b/packages/core/client/src/collection-manager/interfaces/subTable.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { defaultProps } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/textarea.ts b/packages/core/client/src/collection-manager/interfaces/textarea.ts index 00ab498d1..454bf87b2 100644 --- a/packages/core/client/src/collection-manager/interfaces/textarea.ts +++ b/packages/core/client/src/collection-manager/interfaces/textarea.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/types.ts b/packages/core/client/src/collection-manager/interfaces/types.ts index 03eb9276c..b5bb58462 100644 --- a/packages/core/client/src/collection-manager/interfaces/types.ts +++ b/packages/core/client/src/collection-manager/interfaces/types.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; interface IDefault { type: string; diff --git a/packages/core/client/src/collection-manager/interfaces/updatedBy.ts b/packages/core/client/src/collection-manager/interfaces/updatedBy.ts index 28a7c4a3a..eb89a4b89 100644 --- a/packages/core/client/src/collection-manager/interfaces/updatedBy.ts +++ b/packages/core/client/src/collection-manager/interfaces/updatedBy.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps, recordPickerViewer } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/url.ts b/packages/core/client/src/collection-manager/interfaces/url.ts index 2f211523a..8230d171f 100644 --- a/packages/core/client/src/collection-manager/interfaces/url.ts +++ b/packages/core/client/src/collection-manager/interfaces/url.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/sub-table.tsx b/packages/core/client/src/collection-manager/sub-table.tsx index 0ac2c7a39..cf7b4a334 100644 --- a/packages/core/client/src/collection-manager/sub-table.tsx +++ b/packages/core/client/src/collection-manager/sub-table.tsx @@ -1,4 +1,4 @@ -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import React, { createContext, useContext, useState } from 'react'; import { diff --git a/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx b/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx index 4915ca585..da9553a18 100644 --- a/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx @@ -1,4 +1,4 @@ -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { Table, Tag } from 'antd'; import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx b/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx index 93d028e9b..8527b1e80 100644 --- a/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx @@ -1,4 +1,4 @@ -import { useField, useForm } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; import { Cascader, Input, Select, Spin, Table, Tag } from 'antd'; import { last, omit } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx b/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx index c58cd9196..721db369c 100644 --- a/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx @@ -1,4 +1,4 @@ -import { RecursionField, useForm } from '@nocobase/schema'; +import { RecursionField, useForm } from '@tachybase/schema'; import { Spin, Table } from 'antd'; import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx index d2dddaf49..71002ed9e 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx @@ -2,8 +2,8 @@ import { useTranslation } from 'react-i18next'; import { useAsyncData } from '../../../../async-data-provider'; import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; import { Alert, Cascader, Input, Select, Spin, Table, Tag } from 'antd'; -import { observer, useField, useForm } from '@nocobase/schema'; -import { ArrayField } from '@nocobase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; +import { ArrayField } from '@tachybase/schema'; import { useFieldInterfaceOptions } from '../../../Configuration/interfaces'; import { useCompile } from '../../../../schema-component'; import { useCollectionManager_deprecated } from '../../../hooks'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx index fd4233e26..a926bbd2f 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx @@ -1,7 +1,7 @@ import { useAsyncData } from '../../../../async-data-provider'; import React, { useEffect } from 'react'; import { Table } from 'antd'; -import { Schema, observer, useForm } from '@nocobase/schema'; +import { Schema, observer, useForm } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; export const PreviewTable = observer( diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx index c68d7e2c6..03e6f68e5 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx @@ -1,4 +1,4 @@ -import { useField, useForm } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; import { useAsyncData } from '../../../../async-data-provider'; import React, { useEffect } from 'react'; import { Input, SchemaComponent } from '../../../../schema-component'; @@ -6,7 +6,7 @@ import { css } from '@emotion/css'; import { Button } from 'antd'; import { EditOutlined, RightSquareOutlined } from '@ant-design/icons'; import { useTranslation } from 'react-i18next'; -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; export const SQLInput = ({ disabled }) => { const { t } = useTranslation(); diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx index 53321d350..68590bf16 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx @@ -1,7 +1,7 @@ import { useAPIClient, useRequest } from '../../../../api-client'; import { AsyncDataProvider } from '../../../../async-data-provider'; import React, { useEffect, useRef } from 'react'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useRecord } from '../../../../record-provider'; export const SQLRequestProvider: React.FC<{ diff --git a/packages/core/client/src/collection-manager/templates/sql.tsx b/packages/core/client/src/collection-manager/templates/sql.tsx index e460e00ee..34cf9ec0c 100644 --- a/packages/core/client/src/collection-manager/templates/sql.tsx +++ b/packages/core/client/src/collection-manager/templates/sql.tsx @@ -1,4 +1,4 @@ -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; import { SQLInput, PreviewTable, FieldsConfigure, SQLRequestProvider } from './components/sql-collection'; import { getConfigurableProperties } from './properties'; import { i18n } from '../../i18n'; diff --git a/packages/core/client/src/collection-manager/templates/types.ts b/packages/core/client/src/collection-manager/templates/types.ts index eb5846193..4c819698a 100644 --- a/packages/core/client/src/collection-manager/templates/types.ts +++ b/packages/core/client/src/collection-manager/templates/types.ts @@ -1,4 +1,4 @@ -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import type { FieldOptions } from '../types'; import type { Application } from '../../application'; import type { CollectionOptions, Collection } from '../../data-source/collection/Collection'; diff --git a/packages/core/client/src/collection-manager/types.ts b/packages/core/client/src/collection-manager/types.ts index bc4c44d52..3e25f6715 100644 --- a/packages/core/client/src/collection-manager/types.ts +++ b/packages/core/client/src/collection-manager/types.ts @@ -1,4 +1,4 @@ -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import type { ReactNode } from 'react'; import type { CollectionManager, CollectionOptions } from '../data-source'; diff --git a/packages/core/client/src/common/useFieldComponentName.tsx b/packages/core/client/src/common/useFieldComponentName.tsx index 0e73ebe51..e4e58739c 100644 --- a/packages/core/client/src/common/useFieldComponentName.tsx +++ b/packages/core/client/src/common/useFieldComponentName.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useIsFileField } from '../schema-component/antd/form-item/FormItem.Settings'; import { useColumnSchema } from '../schema-component/antd/table-v2/Table.Column.Decorator'; import { useCollectionField } from '../data-source'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx index 31734d01a..ece70aa14 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Table, TableProps } from 'antd'; import { SchemaComponent, UseDataBlockProps, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { createApp } from './createApp'; const collection = 'users'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx index 4d5fe1fdd..8f40d5b96 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Select, Table, TableProps } from 'antd'; import { SchemaComponent, UseDataBlockProps, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import useUrlState from '@ahooksjs/use-url-state'; import { createApp } from './createApp'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx index a591367d0..7cac8fe89 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx @@ -1,7 +1,7 @@ import React, { FC } from 'react'; import { Button, Form, FormProps, Input, InputNumber, notification } from 'antd'; import { SchemaComponent, useDataBlockResource, withDynamicSchemaProps } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { createApp } from './createApp'; interface DemoFormFieldType { diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx index 78da69ef6..c211b7ec9 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx @@ -7,7 +7,7 @@ import { useCollectionRecordData, withDynamicSchemaProps, } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import useUrlState from '@ahooksjs/use-url-state'; import { createApp } from './createApp'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx index 278a173b3..1e112f0f5 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx @@ -8,7 +8,7 @@ import { useCollectionRecordData, withDynamicSchemaProps, } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { createApp } from './createApp'; interface DemoFormFieldType { diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx index 272351c7c..49587fbab 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { SchemaComponent, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; import { Table, TableProps } from 'antd'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { createApp } from './createApp'; const schema: ISchema = { diff --git a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts index f066c9625..9cf0014ad 100644 --- a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts +++ b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts @@ -1,4 +1,4 @@ -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import type { CollectionFieldOptions } from '../collection'; import { CollectionFieldInterfaceManager } from './CollectionFieldInterfaceManager'; diff --git a/packages/core/client/src/data-source/collection-field/CollectionField.tsx b/packages/core/client/src/data-source/collection-field/CollectionField.tsx index a5e84b10a..617a3e8c9 100644 --- a/packages/core/client/src/data-source/collection-field/CollectionField.tsx +++ b/packages/core/client/src/data-source/collection-field/CollectionField.tsx @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { connect, useField, useFieldSchema } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { connect, useField, useFieldSchema } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import { concat } from 'lodash'; import React, { useEffect, useMemo } from 'react'; import { useFormBlockContext } from '../../block-provider/FormBlockProvider'; diff --git a/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx b/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx index af1fd09be..650509a2e 100644 --- a/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx +++ b/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx @@ -1,6 +1,6 @@ import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; -import { useFieldSchema, type SchemaKey } from '@nocobase/schema'; +import { useFieldSchema, type SchemaKey } from '@tachybase/schema'; import type { CollectionFieldOptions } from '../collection'; import { useCollection, useCollectionManager } from '../collection'; diff --git a/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts b/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts index bbe3ab766..adb1fe3e4 100644 --- a/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts +++ b/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts @@ -1,5 +1,5 @@ import type { CollectionOptions, Collection } from '../collection'; -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import type { CollectionTemplateManager } from './CollectionTemplateManager'; import type { Application } from '../../application/Application'; diff --git a/packages/core/client/src/data-source/collection/Collection.ts b/packages/core/client/src/data-source/collection/Collection.ts index 42ae365ba..66e7ea820 100644 --- a/packages/core/client/src/data-source/collection/Collection.ts +++ b/packages/core/client/src/data-source/collection/Collection.ts @@ -1,4 +1,4 @@ -import { SchemaKey } from '@nocobase/schema'; +import { SchemaKey } from '@tachybase/schema'; import { filter } from 'lodash'; import type { CollectionManager } from './CollectionManager'; diff --git a/packages/core/client/src/data-source/collection/CollectionManager.ts b/packages/core/client/src/data-source/collection/CollectionManager.ts index 41d7b7b00..367f59abd 100644 --- a/packages/core/client/src/data-source/collection/CollectionManager.ts +++ b/packages/core/client/src/data-source/collection/CollectionManager.ts @@ -1,4 +1,4 @@ -import type { SchemaKey } from '@nocobase/schema'; +import type { SchemaKey } from '@tachybase/schema'; import type { DataSource } from '../data-source'; import type { CollectionFieldOptions, CollectionOptions, GetCollectionFieldPredicate } from './Collection'; diff --git a/packages/core/client/src/filter-provider/FilterProvider.tsx b/packages/core/client/src/filter-provider/FilterProvider.tsx index daa6e8b8a..138fc2ed6 100644 --- a/packages/core/client/src/filter-provider/FilterProvider.tsx +++ b/packages/core/client/src/filter-provider/FilterProvider.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { uniqBy } from 'lodash'; import React, { createContext, useCallback, useEffect, useRef } from 'react'; import { useBlockRequestContext } from '../block-provider/BlockProvider'; @@ -6,7 +6,7 @@ import { CollectionFieldOptions_deprecated, useCollection_deprecated } from '../ import { removeNullCondition } from '../schema-component'; import { mergeFilter, useAssociatedFields } from './utils'; import { useDataLoadingMode } from '../modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem'; -import { GeneralField } from '@nocobase/schema'; +import { GeneralField } from '@tachybase/schema'; enum FILTER_OPERATOR { AND = '$and', diff --git a/packages/core/client/src/filter-provider/utils.ts b/packages/core/client/src/filter-provider/utils.ts index c80966363..98c60646f 100644 --- a/packages/core/client/src/filter-provider/utils.ts +++ b/packages/core/client/src/filter-provider/utils.ts @@ -1,4 +1,4 @@ -import { Schema, useFieldSchema } from '@nocobase/schema'; +import { Schema, useFieldSchema } from '@tachybase/schema'; import { flatten, getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; import { useCallback, useEffect, useState } from 'react'; @@ -37,8 +37,8 @@ export const mergeFilter = (filters: any[], op = '$and') => { }; export const getSupportFieldsByAssociation = (inheritCollectionsChain: string[], block: DataBlock) => { - return block.associatedFields?.filter( - (field) => inheritCollectionsChain?.some((collectionName) => collectionName === field.target), + return block.associatedFields?.filter((field) => + inheritCollectionsChain?.some((collectionName) => collectionName === field.target), ); }; diff --git a/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx b/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx index 5a7589a0f..abdc5d02e 100644 --- a/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx +++ b/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useMemo } from 'react'; import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx b/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx index c1f2c04dd..0f4a9251e 100644 --- a/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx +++ b/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../../..'; diff --git a/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx b/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx index 23342ee2f..f972c14d6 100644 --- a/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx +++ b/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { FilterableFieldsSchemaSettingsItem } from '../../../schema-component/antd/filter/Filter.Action.Designer'; diff --git a/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx b/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx index 33f7ee29d..34fa56b7c 100644 --- a/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx +++ b/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { diff --git a/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx b/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx index 198e63722..0e3a530c2 100644 --- a/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx +++ b/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema, useField, connect, mapProps, ISchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { useFieldSchema, useField, connect, mapProps, ISchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; import { Tree as AntdTree } from 'antd'; import { useSchemaToolbar } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx index 9756c099f..3694f27c1 100644 --- a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx +++ b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { isInitializersSame, useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { diff --git a/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx b/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx index 6207462ee..cc68cb8a4 100644 --- a/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx +++ b/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx @@ -1,5 +1,5 @@ -import { isValid } from '@nocobase/schema'; -import { useFieldSchema } from '@nocobase/schema'; +import { isValid } from '@tachybase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts index f554a9a2e..350a00bba 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export function createDetailsWithPaginationUISchema(options: { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx index cdce21f09..473f153e8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFormBlockContext } from '../../../../block-provider'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx index 3ef8cb3aa..84b40cd67 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts index ded79d788..160ccb2e6 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export function createDetailsUISchema(options: { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts index 8e60b76e9..7f644e8e8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../../collection-manager'; import { SchemaSettingsBlockTitleItem, SchemaSettingsFormItemTemplate } from '../../../../schema-settings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts index dcb8e6321..597f946dd 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useParamsFromRecord } from '../../../../../block-provider/BlockProvider'; import { useCollectionParentRecordData, diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts index 242c4b0d5..eccfa36b0 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts @@ -1,6 +1,6 @@ import { createBlockInPage, expect, oneEmptyForm, test } from '@nocobase/test/e2e'; import { T3106, T3469 } from './templatesOfBug'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; test.describe('where creation form block can be added', () => { test('page', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts index 2297254f2..8a2dbf420 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { vi } from 'vitest'; import { createEditFormBlockUISchema } from '../createEditFormBlockUISchema'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts index 468719b7a..746124a01 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export interface CreateFormBlockUISchemaOptions { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts index 9d9021a42..df238dbac 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; interface EditFormBlockOptions { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx index 4a5bbd494..17180e55b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFormBlockContext } from '../../../../block-provider'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts index 87d34c83a..57f631c36 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFormBlockContext } from '../../../../block-provider'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx index 999ecaa78..0bd3a5f59 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx @@ -1,6 +1,6 @@ import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { useApp, useSchemaToolbar } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockSchema.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockSchema.ts index 91fd63299..d2921b4e1 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockSchema.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; export const createGridCardBlockSchema = (options: { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts index db7dc7de9..502b20ec7 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts @@ -1,6 +1,6 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockSchema.ts b/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockSchema.ts index bd0f5a0b4..458bdd7f5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockSchema.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; export const createListBlockSchema = (options: { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts index 4d6fed775..b07297a3c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts index f2ba6c3e0..91bb60c63 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createTableSelectorUISchema = (options: { collectionName: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts index 0e42f984e..85287487b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx index 4bc141294..4efb200f3 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx @@ -1,5 +1,5 @@ import { MenuOutlined } from '@ant-design/icons'; -import { ISchema, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx index 9999bd1b3..babf80bc6 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager/hooks/useCollection_deprecated'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx index f16e23c47..51a9e6467 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCompile } from '../../../../schema-component'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts index 06debae22..33560ed00 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createTableBlockUISchema = (options: { dataSource: string; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts index 24be82811..c4d692889 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useParsedFilter } from '../../../../../block-provider/hooks/useParsedFilter'; import { useMemo } from 'react'; import { useParentRecordCommon } from '../../../useParentRecordCommon'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx index 5bcce238b..b6dcf3b9e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useEffect } from 'react'; import { useFilterBlock } from '../../../../../filter-provider/FilterProvider'; import { mergeFilter } from '../../../../../filter-provider/utils'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx index b799cb892..87c72a8e0 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useAPIClient } from '../../../../api-client'; import { useTableBlockContext, useFormBlockContext } from '../../../../block-provider'; import { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx index 0ed78a2cc..d77884f31 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { useApp } from '../../../../application'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx index cde321fbc..d3d1edf44 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useIsFileField } from '../../../../schema-component'; import { useColumnSchema } from '../../../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts index 69d861b2a..8fc60df70 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createCollapseBlockSchema = (options: { collectionName: string; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts index 58af629e0..b864326e7 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts index af5943429..ed7558a0e 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts index 1ccbd00ef..f5b7e7ba4 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createFilterFormBlockSchema = (options: { collectionName: string; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts index aec0b8931..5bf47f8b3 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts index 84a20c461..42c1f7b92 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts @@ -1,6 +1,6 @@ import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { useApp } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts index 111f4087d..b69ad3f76 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx index 201e5de1d..4d34ccb34 100644 --- a/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/Cascader/cascaderComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Cascader/cascaderComponentFieldSettings.tsx index 460127ff7..ab557898e 100644 --- a/packages/core/client/src/modules/fields/component/Cascader/cascaderComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Cascader/cascaderComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx index 8400564a7..0723e2c5f 100644 --- a/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsDateFormat } from '../../../../schema-settings/SchemaSettingsDateFormat'; import { useColumnSchema } from '../../../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx index 040a5ceff..bdcefc076 100644 --- a/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx index 02112de82..0d9c3ec2e 100644 --- a/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useDesignable } from '../../../../schema-component'; diff --git a/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx index 1f84678ac..4bceb3e97 100644 --- a/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsNumberFormat } from '../../../../schema-settings/SchemaSettingsNumberFormat'; import { useColumnSchema } from '../../../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx index c269458e1..9f58b2de0 100644 --- a/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx index c5896a9d9..5794c49e7 100644 --- a/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx index e7af03137..4c4fb9398 100644 --- a/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx index 289c344ab..b72239bad 100644 --- a/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx index b3346d668..67bf1912f 100644 --- a/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx index f70d564db..94a89be77 100644 --- a/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFieldComponentName } from '../../../../common/useFieldComponentName'; diff --git a/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx index 04b34c6a8..575987479 100644 --- a/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsDateFormat } from '../../../../schema-settings/SchemaSettingsDateFormat'; import { useColumnSchema } from '../../../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx b/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx index f8570a660..8f3736fb6 100644 --- a/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx +++ b/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import React from 'react'; import { InitializerWithSwitch } from '../../../schema-initializer/items/InitializerWithSwitch'; diff --git a/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx b/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx index e2265e8a4..ea68cadb0 100644 --- a/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx +++ b/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { InitializerWithSwitch } from '../../../schema-initializer/items/InitializerWithSwitch'; import { useSchemaInitializerItem } from '../../../application'; diff --git a/packages/core/client/src/modules/menu/GroupItem.tsx b/packages/core/client/src/modules/menu/GroupItem.tsx index 103aadfb1..15b09d3d9 100644 --- a/packages/core/client/src/modules/menu/GroupItem.tsx +++ b/packages/core/client/src/modules/menu/GroupItem.tsx @@ -1,5 +1,5 @@ import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useCallback, useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { FormDialog, SchemaComponent, SchemaComponentOptions } from '../../schema-component'; diff --git a/packages/core/client/src/modules/menu/LinkMenuItem.tsx b/packages/core/client/src/modules/menu/LinkMenuItem.tsx index 6f888193b..7ae43088a 100644 --- a/packages/core/client/src/modules/menu/LinkMenuItem.tsx +++ b/packages/core/client/src/modules/menu/LinkMenuItem.tsx @@ -1,5 +1,5 @@ import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useCallback, useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { FormDialog, SchemaComponent, SchemaComponentOptions } from '../../schema-component'; diff --git a/packages/core/client/src/modules/menu/PageMenuItem.tsx b/packages/core/client/src/modules/menu/PageMenuItem.tsx index c63a034dc..8555415fc 100644 --- a/packages/core/client/src/modules/menu/PageMenuItem.tsx +++ b/packages/core/client/src/modules/menu/PageMenuItem.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React, { useCallback, useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { SchemaInitializerItem, useSchemaInitializer } from '../../application'; diff --git a/packages/core/client/src/nocobase-buildin-plugin/index.tsx b/packages/core/client/src/nocobase-buildin-plugin/index.tsx index 957e33b62..013e2ebbb 100644 --- a/packages/core/client/src/nocobase-buildin-plugin/index.tsx +++ b/packages/core/client/src/nocobase-buildin-plugin/index.tsx @@ -1,6 +1,6 @@ import { DisconnectOutlined, LoadingOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { getSubAppName } from '@nocobase/sdk'; import { Button, Modal, Result, Spin } from 'antd'; import React, { FC } from 'react'; diff --git a/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts b/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts index d356a86d3..e16d3435f 100644 --- a/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts +++ b/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts @@ -1,4 +1,4 @@ -import { setValidateLanguage } from '@nocobase/schema'; +import { setValidateLanguage } from '@tachybase/schema'; import { App, ConfigProvider } from 'antd'; import dayjs from 'dayjs'; import { loadConstrueLocale } from '../../antd-config-provider/loadConstrueLocale'; diff --git a/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx b/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx index 2737a3d28..1c080e719 100644 --- a/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx +++ b/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { get } from 'lodash'; import React, { useContext } from 'react'; import { useACLRoleContext } from '../acl/ACLProvider'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx index 7132f4536..74adacb49 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx @@ -1,6 +1,6 @@ -import { ISchema } from '@nocobase/schema'; -import { useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { App } from 'antd'; import React, { FC, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx index c486b2fb5..eb2f78aa5 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx @@ -1,6 +1,6 @@ -import { ISchema } from '@nocobase/schema'; -import { useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { App } from 'antd'; import type { RcFile } from 'antd/es/upload'; import React, { FC, useMemo } from 'react'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx index 0a00697df..9747c7fa9 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx @@ -1,6 +1,6 @@ -import { ISchema } from '@nocobase/schema'; -import { useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { App } from 'antd'; import React, { FC, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx b/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx index e4c307267..fb3ea5dfb 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx +++ b/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx @@ -1,5 +1,5 @@ -import { Observer, ReactFC } from '@nocobase/schema'; -import { observable } from '@nocobase/schema'; +import { Observer, ReactFC } from '@tachybase/schema'; +import { observable } from '@tachybase/schema'; import React, { Fragment } from 'react'; import { createPortal } from 'react-dom'; import { render as reactRender, unmount as reactUnmount } from './render'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/style.ts b/packages/core/client/src/schema-component/antd/__builtins__/style.ts index bfd7dd015..94b397ec2 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/style.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/style.ts @@ -1,6 +1,6 @@ import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import { useStyleRegister } from '@ant-design/cssinjs'; -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import type { ComponentTokenMap, GlobalToken } from 'antd/es/theme/interface'; import { CustomToken } from '../../../global-theme'; import { useConfig, usePrefixCls, useToken } from './hooks'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Container.tsx b/packages/core/client/src/schema-component/antd/action/Action.Container.tsx index bda253268..f890d4dd4 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Container.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Container.tsx @@ -1,4 +1,4 @@ -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useActionContext } from '.'; import { ActionDrawer } from './Action.Drawer'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index 365f307ef..1c4a3d793 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -1,7 +1,7 @@ import { ArrayTable } from '@formily/antd-v5'; -import { Field, onFieldValueChange } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema, useForm, useFormEffects } from '@nocobase/schema'; -import { isValid, uid } from '@nocobase/schema'; +import { Field, onFieldValueChange } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema, useForm, useFormEffects } from '@tachybase/schema'; +import { isValid, uid } from '@tachybase/schema'; import { Alert, Flex, ModalProps, Tag } from 'antd'; import React, { useCallback, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx index aeb3d830b..537114ee6 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx @@ -1,4 +1,4 @@ -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Drawer } from 'antd'; import classNames from 'classnames'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Link.tsx b/packages/core/client/src/schema-component/antd/action/Action.Link.tsx index 0ec107c3b..5f8d16170 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Link.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Link.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; import classnames from 'classnames'; import Action from './Action'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx index 6110fcfa2..b5eeb6801 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Modal, ModalProps } from 'antd'; import classNames from 'classnames'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx index a8885a8cf..c329c3d64 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer, RecursionField, SchemaExpressionScopeContext, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, SchemaExpressionScopeContext, useField, useFieldSchema } from '@tachybase/schema'; import React, { useContext } from 'react'; import { createPortal } from 'react-dom'; import { useActionContext } from '.'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.tsx b/packages/core/client/src/schema-component/antd/action/Action.tsx index 3a3a474ea..73f8bc056 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.tsx @@ -1,4 +1,4 @@ -import { observer, RecursionField, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { isPortalInBody } from '@nocobase/utils/client'; import { App, Button } from 'antd'; import classnames from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/action/ActionBar.tsx b/packages/core/client/src/schema-component/antd/action/ActionBar.tsx index 330cbe33c..c3da7151c 100644 --- a/packages/core/client/src/schema-component/antd/action/ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/action/ActionBar.tsx @@ -1,5 +1,5 @@ import { cx } from '@emotion/css'; -import { RecursionField, observer, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, observer, useFieldSchema } from '@tachybase/schema'; import { Space } from 'antd'; import React, { CSSProperties, useContext } from 'react'; import { createPortal } from 'react-dom'; diff --git a/packages/core/client/src/schema-component/antd/action/context.tsx b/packages/core/client/src/schema-component/antd/action/context.tsx index da261d212..775b70474 100644 --- a/packages/core/client/src/schema-component/antd/action/context.tsx +++ b/packages/core/client/src/schema-component/antd/action/context.tsx @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { DrawerProps, ModalProps } from 'antd'; import React, { createContext } from 'react'; import { useActionContext } from './hooks'; diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx index 370103288..02b3cc1ee 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx index c348b55cf..0e0d83b3c 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx @@ -1,4 +1,4 @@ -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, ActionContextProvider, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx index 888c89856..4adf93184 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, observer, useField, useFieldSchema } from '@tachybase/schema'; import { Action, SchemaComponent, SchemaComponentProvider, useActionContext } from '@nocobase/client'; import { Radio } from 'antd'; import React, { useRef } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx index 05d897ced..285ce5143 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx @@ -1,4 +1,4 @@ -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx index aebf5a9ba..0b5b9d4db 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx @@ -10,8 +10,8 @@ import { NumberPicker, Submit, } from '@formily/antd-v5'; -import { Field, createForm, onFieldValueChange } from '@nocobase/schema'; -import { connect, createSchemaField, observer, useField, useForm, useFormEffects } from '@nocobase/schema'; +import { Field, createForm, onFieldValueChange } from '@tachybase/schema'; +import { connect, createSchemaField, observer, useField, useForm, useFormEffects } from '@tachybase/schema'; import { Select } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx index a52b3f1a9..a42ded095 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Action, ActionBar, diff --git a/packages/core/client/src/schema-component/antd/action/hooks.ts b/packages/core/client/src/schema-component/antd/action/hooks.ts index 87316c0fd..d9137d11d 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks.ts @@ -1,4 +1,4 @@ -import { useFieldSchema, useForm } from '@nocobase/schema'; +import { useFieldSchema, useForm } from '@tachybase/schema'; import { App } from 'antd'; import { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts index dd755f2fa..db6fb6db9 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useBlockContext } from '../../../../block-provider/BlockProvider'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts index c0354553f..051a421cb 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; import { useCompile } from '../../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts index 5d3893d71..15d4f9587 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; import { useCompile } from '../../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts index f977e521e..8aa4739c5 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; import { useCompile } from '../../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/action/utils.ts b/packages/core/client/src/schema-component/antd/action/utils.ts index 3285aab24..69c2d85f0 100644 --- a/packages/core/client/src/schema-component/antd/action/utils.ts +++ b/packages/core/client/src/schema-component/antd/action/utils.ts @@ -1,4 +1,4 @@ -import type { ISchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; import { last } from 'lodash'; import { ActionType } from '../../../schema-settings/LinkageRules/type'; import { VariableOption, VariablesContextType } from '../../../variables/types'; diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx index 34f0cd534..dac49e127 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useEffect, useMemo, useState } from 'react'; import { useCollectionManager_deprecated } from '../../../collection-manager'; import { AssociationFieldContext } from './context'; diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index 37b6a91ea..700d3f1ff 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -1,7 +1,7 @@ import { LoadingOutlined, PlusOutlined } from '@ant-design/icons'; -import { onFieldChange } from '@nocobase/schema'; -import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { onFieldChange } from '@tachybase/schema'; +import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Space, message } from 'antd'; import { isFunction } from 'mathjs'; import React, { useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/Editable.tsx b/packages/core/client/src/schema-component/antd/association-field/Editable.tsx index dc53961e5..2968077e6 100644 --- a/packages/core/client/src/schema-component/antd/association-field/Editable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/Editable.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import React from 'react'; import { SchemaComponentOptions } from '../../'; import { useAssociationCreateActionProps as useCAP } from '../../../block-provider/hooks'; diff --git a/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx b/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx index 69b96aa81..9551d93c6 100644 --- a/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx @@ -1,4 +1,4 @@ -import { RecursionField, connect, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, connect, useField, useFieldSchema } from '@tachybase/schema'; import { differenceBy, unionBy } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; import { diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx index 8f0f5ad93..a97cd3be2 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx @@ -1,7 +1,7 @@ import { ArrayItems, FormItem } from '@formily/antd-v5'; -import { createForm, onFormValuesChange } from '@nocobase/schema'; -import { FormProvider, connect, createSchemaField, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { createForm, onFormValuesChange } from '@tachybase/schema'; +import { FormProvider, connect, createSchemaField, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Select as AntdSelect, Input, Space, Spin, Tag } from 'antd'; import dayjs from 'dayjs'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; @@ -49,7 +49,10 @@ const CascadeSelect = connect((props) => { useEffect(() => { if (value) { const values = Array.isArray(value) - ? extractLastNonNullValueObjects(value?.filter((v) => v.value), true) + ? extractLastNonNullValueObjects( + value?.filter((v) => v.value), + true, + ) : transformNestedData(value); const options = values?.map?.((v) => { return { diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx index be34327d3..4780076ae 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx @@ -9,7 +9,7 @@ import { uid, useField, useFieldSchema, -} from '@nocobase/schema'; +} from '@tachybase/schema'; import { fuzzysearch } from '@nocobase/utils/client'; import { Input, Space } from 'antd'; import React, { useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalDrawerSubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalDrawerSubTable.tsx index 5c229a149..05a60fddf 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalDrawerSubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalDrawerSubTable.tsx @@ -1,6 +1,6 @@ import { EditOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React, { useContext, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { InternalSubTable } from './InternalSubTable'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx index dba3280d6..a1ec35d3b 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx @@ -1,6 +1,6 @@ import { css, cx } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; -import { RecursionField, useField, useFieldSchema, observer } from '@nocobase/schema'; +import { RecursionField, useField, useFieldSchema, observer } from '@tachybase/schema'; import React, { useEffect } from 'react'; import { CollectionProvider_deprecated } from '../../../collection-manager'; import { useAssociationFieldContext, useInsertSchema } from './hooks'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx index 6b6f04aca..324bb0457 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx @@ -1,4 +1,4 @@ -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Input, Select } from 'antd'; import { differenceBy, unionBy } from 'lodash'; import React, { useContext, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx index 4a882f821..456a5c255 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx @@ -1,6 +1,6 @@ import { EditOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { observer, useFieldSchema } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; import React, { useContext, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { ActionContext, ActionContextProvider } from '../action/context'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx index 75c17da4d..a75964886 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; -import { RecursionField, SchemaOptionsContext, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, SchemaOptionsContext, observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useEffect } from 'react'; import { ACLCollectionProvider, useACLActionParamsContext } from '../../../acl'; import { CollectionProvider_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx index 102ee3f85..1a2db9cf3 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx @@ -1,5 +1,5 @@ -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import React, { Fragment, useRef, useState } from 'react'; import { useDesignable } from '../../'; import { BlockAssociationContext, WithoutTableFieldResource } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx index 48731235c..104e27e25 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx @@ -1,5 +1,5 @@ -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import React, { Fragment, useRef, useState } from 'react'; import { useDesignable } from '../../'; import { BlockAssociationContext, WithoutTableFieldResource } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/association-field/Nester.tsx b/packages/core/client/src/schema-component/antd/association-field/Nester.tsx index 824e41fe5..ce4320a7e 100644 --- a/packages/core/client/src/schema-component/antd/association-field/Nester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/Nester.tsx @@ -1,10 +1,10 @@ import { CloseOutlined, PlusOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { ArrayField } from '@nocobase/schema'; -import { spliceArrayState } from '@nocobase/schema'; -import { RecursionField, observer, useFieldSchema } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; -import { each } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { spliceArrayState } from '@tachybase/schema'; +import { RecursionField, observer, useFieldSchema } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; +import { each } from '@tachybase/schema'; import { Button, Card, Divider, Tooltip } from 'antd'; import _ from 'lodash'; import React, { useCallback, useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx index 5f026c3ff..a18296c77 100644 --- a/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; import { AssociationFieldProvider } from './AssociationFieldProvider'; import { FileManageReadPretty } from './FileManager'; diff --git a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx index 827d83b5b..097c6e967 100644 --- a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx @@ -1,9 +1,9 @@ import { css } from '@emotion/css'; -import { ArrayField } from '@nocobase/schema'; -import { exchangeArrayState } from '@nocobase/schema'; -import { observer, RecursionField, useFieldSchema } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; -import { isArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { exchangeArrayState } from '@tachybase/schema'; +import { observer, RecursionField, useFieldSchema } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; +import { isArr } from '@tachybase/schema'; import { Button } from 'antd'; import { unionBy, uniqBy } from 'lodash'; import React, { useContext, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx index 82e7fc77a..0adca18bd 100644 --- a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx @@ -1,4 +1,4 @@ -import { RecursionField, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useState } from 'react'; import { CollectionProvider_deprecated, useCollectionManager_deprecated } from '../../../../collection-manager'; import { CreateAction } from '../../../../schema-initializer/components'; diff --git a/packages/core/client/src/schema-component/antd/association-field/context.ts b/packages/core/client/src/schema-component/antd/association-field/context.ts index fc7d4a37c..30695cbcb 100644 --- a/packages/core/client/src/schema-component/antd/association-field/context.ts +++ b/packages/core/client/src/schema-component/antd/association-field/context.ts @@ -1,4 +1,4 @@ -import { GeneralField } from '@nocobase/schema'; +import { GeneralField } from '@tachybase/schema'; import { createContext } from 'react'; export interface AssociationFieldContextProps { diff --git a/packages/core/client/src/schema-component/antd/association-field/hooks.ts b/packages/core/client/src/schema-component/antd/association-field/hooks.ts index 03b800b98..fc8211c8f 100644 --- a/packages/core/client/src/schema-component/antd/association-field/hooks.ts +++ b/packages/core/client/src/schema-component/antd/association-field/hooks.ts @@ -1,6 +1,6 @@ -import { GeneralField } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; -import { reaction } from '@nocobase/schema'; +import { GeneralField } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; +import { reaction } from '@tachybase/schema'; import { flatten, getValuesByPath } from '@nocobase/utils/client'; import _, { isString } from 'lodash'; import cloneDeep from 'lodash/cloneDeep'; diff --git a/packages/core/client/src/schema-component/antd/association-field/index.ts b/packages/core/client/src/schema-component/antd/association-field/index.ts index c10bffffc..37f657072 100644 --- a/packages/core/client/src/schema-component/antd/association-field/index.ts +++ b/packages/core/client/src/schema-component/antd/association-field/index.ts @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { Action } from '../action'; import { Editable } from './Editable'; import { InternalPicker } from './InternalPicker'; diff --git a/packages/core/client/src/schema-component/antd/association-field/util.ts b/packages/core/client/src/schema-component/antd/association-field/util.ts index d01da97d9..411ccca69 100644 --- a/packages/core/client/src/schema-component/antd/association-field/util.ts +++ b/packages/core/client/src/schema-component/antd/association-field/util.ts @@ -1,11 +1,11 @@ -import { ISchema, Schema } from '@nocobase/schema'; -import { isArr } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; +import { isArr } from '@tachybase/schema'; import { getDefaultFormat, str2moment } from '@nocobase/utils/client'; import { Tag } from 'antd'; import dayjs from 'dayjs'; import React from 'react'; import { CollectionFieldOptions_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; export const useLabelUiSchemaV2 = () => { const { getCollectionJoinField } = useCollectionManager_deprecated(); diff --git a/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx b/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx index f90d7b617..64a2e7b88 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx @@ -1,4 +1,4 @@ -import { Schema, useFieldSchema } from '@nocobase/schema'; +import { Schema, useFieldSchema } from '@tachybase/schema'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { SchemaComponentContext, createDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx index e83dde074..0f5f06c68 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx index 785932c7d..8b7866a8a 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx index 49f75fe84..0ceef816a 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx @@ -1,5 +1,5 @@ import { CloseOutlined, SearchOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Col, Collapse, Input, Row, Tree } from 'antd'; import cls from 'classnames'; import React, { ChangeEvent, MouseEvent, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx index ff97746a8..33320b67f 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import cls from 'classnames'; import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx index aa92e0e2f..c3dfb53a9 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx @@ -1,5 +1,5 @@ import React, { useContext } from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { createDesignable, SchemaComponentContext } from '../..'; import { useAPIClient } from '../../../api-client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx index 3f988d035..803028f86 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx @@ -1,4 +1,4 @@ -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import React from 'react'; import { useCurrentSchema } from '../../../schema-initializer/utils'; diff --git a/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx index 15ee704c0..8a7eac521 100644 --- a/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx @@ -1,8 +1,8 @@ import { LoadingOutlined } from '@ant-design/icons'; import { ArrayCollapse, ArrayItems, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { ISchema, connect, mapProps, mapReadPretty, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, connect, mapProps, mapReadPretty, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import _ from 'lodash'; import React, { useCallback, useEffect, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx index 3e5ca61fe..82192b31c 100644 --- a/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; import { useFieldTitle } from '../../hooks'; import { RemoteSelect } from '../remote-select'; diff --git a/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts b/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts index e9cdaae0d..b6b7f502f 100644 --- a/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts +++ b/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback, useMemo } from 'react'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; import { isInFilterFormBlock } from '../../../filter-provider'; diff --git a/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx b/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx index 50fb36a4f..e3704c484 100644 --- a/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx +++ b/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { AutoComplete as AntdAutoComplete } from 'antd'; import { ReadPretty } from '../input'; diff --git a/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx b/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx index 81658b067..342b9bb43 100644 --- a/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { SortableItem } from '../../common'; import { useDesigner, useProps } from '../../hooks'; import { useGetAriaLabelOfBlockItem } from './hooks/useGetAriaLabelOfBlockItem'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { withDynamicSchemaProps } from '../../../application/hoc/withDynamicSchemaProps'; export const BlockItem: React.FC = withDynamicSchemaProps((props) => { diff --git a/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx index d6621c0f1..228137f4d 100644 --- a/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx @@ -1,5 +1,5 @@ -import { observer, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { BlockItem, DndContext, DragHandler, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts b/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts index 54a7373e2..c086b91b1 100644 --- a/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts +++ b/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useCallback } from 'react'; import { useBlockContext } from '../../../../block-provider/BlockProvider'; diff --git a/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx b/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx index b8ed3b8b3..277bf337c 100644 --- a/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx +++ b/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Card } from 'antd'; import React from 'react'; import { useSchemaTemplate } from '../../../schema-templates'; diff --git a/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx b/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx index b922bd5e9..e514d2fe0 100644 --- a/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx @@ -1,7 +1,7 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { ArrayField } from '@nocobase/schema'; -import { connect, mapProps, mapReadPretty, useField } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, mapProps, mapReadPretty, useField } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import { Cascader as AntdCascader, Space } from 'antd'; import { isBoolean, omit } from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx index df39d47f6..a617e52fd 100644 --- a/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx @@ -1,6 +1,6 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import React from 'react'; import { defaultFieldNames } from './defaultFieldNames'; diff --git a/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx index a4bee17fd..240c6a940 100644 --- a/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx @@ -1,7 +1,7 @@ import { FormItem } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; import { APIClient, APIClientProvider, @@ -35,12 +35,15 @@ mock.onGet('/china_regions').reply(200, { const useAsyncDataSource = (api: APIClient) => (field) => { field.loading = true; console.log('useAsyncDataSource'); - api.request({ url: 'china_regions' }).then( - action.bound((res) => { - field.dataSource = res?.data?.data || []; - field.loading = false; - }), - ); + api + .request({ url: 'china_regions' }) + .then( + action.bound((res) => { + field.dataSource = res?.data?.data || []; + field.loading = false; + }), + ) + .catch(console.error); }; const useLoadData = () => { diff --git a/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx b/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx index a7d96c861..52fd5c4e9 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx +++ b/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx @@ -1,6 +1,6 @@ import { CheckOutlined, CloseOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty, useField } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty, useField } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { Checkbox as AntdCheckbox, Tag } from 'antd'; import type { CheckboxGroupProps, CheckboxProps } from 'antd/es/checkbox'; import uniq from 'lodash/uniq'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx index 3906348dd..052515db0 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty, observer, useField } from '@nocobase/schema'; +import { connect, mapReadPretty, observer, useField } from '@tachybase/schema'; import { Cascader, Select, SelectProps, Tag } from 'antd'; import React, { useCallback, useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx index 18e7e9b7d..60072dc9c 100644 --- a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx +++ b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { ColorPicker as AntdColorPicker } from 'antd'; import cls from 'classnames'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx b/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx index 612f23c4a..1262b83a2 100644 --- a/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx +++ b/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx @@ -1,5 +1,5 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { Select, Tag } from 'antd'; import React from 'react'; import { useCompile } from '../../hooks/useCompile'; diff --git a/packages/core/client/src/schema-component/antd/cron/Cron.tsx b/packages/core/client/src/schema-component/antd/cron/Cron.tsx index b9b5a0028..c85717d13 100644 --- a/packages/core/client/src/schema-component/antd/cron/Cron.tsx +++ b/packages/core/client/src/schema-component/antd/cron/Cron.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import cronstrue from 'cronstrue'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cron/CronSet.tsx b/packages/core/client/src/schema-component/antd/cron/CronSet.tsx index 922e0113f..3a914bbdc 100644 --- a/packages/core/client/src/schema-component/antd/cron/CronSet.tsx +++ b/packages/core/client/src/schema-component/antd/cron/CronSet.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty, useFieldSchema } from '@nocobase/schema'; +import { connect, mapReadPretty, useFieldSchema } from '@tachybase/schema'; import { Select, SelectProps } from 'antd'; import React, { useEffect, useMemo, useState } from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/custom-cascader/CustomCascader.tsx b/packages/core/client/src/schema-component/antd/custom-cascader/CustomCascader.tsx index e38d39ce0..167ef76f3 100644 --- a/packages/core/client/src/schema-component/antd/custom-cascader/CustomCascader.tsx +++ b/packages/core/client/src/schema-component/antd/custom-cascader/CustomCascader.tsx @@ -1,7 +1,7 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { ArrayField } from '@nocobase/schema'; -import { connect, mapProps, mapReadPretty, useField } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, mapProps, mapReadPretty, useField } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import { Cascader as AntdCascader, Space } from 'antd'; import { isBoolean, omit } from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/custom-cascader/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/custom-cascader/ReadPretty.tsx index df39d47f6..a617e52fd 100644 --- a/packages/core/client/src/schema-component/antd/custom-cascader/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/custom-cascader/ReadPretty.tsx @@ -1,6 +1,6 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import React from 'react'; import { defaultFieldNames } from './defaultFieldNames'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx b/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx index 74236313c..4570fd0fa 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { DatePicker as AntdDatePicker } from 'antd'; import type { DatePickerProps as AntdDatePickerProps, diff --git a/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx index 4bbc37497..5fd2f8db1 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx @@ -1,5 +1,5 @@ import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; -import { isArr } from '@nocobase/schema'; +import { isArr } from '@tachybase/schema'; import { getDefaultFormat, str2moment } from '@nocobase/utils/client'; import type { DatePickerProps as AntdDatePickerProps, diff --git a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx index 2f390f9fd..a48168aca 100644 --- a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx +++ b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx index f4fb7d1b6..7a0775285 100644 --- a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx +++ b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Button } from 'antd'; import React, { forwardRef, createRef } from 'react'; import { composeRef } from 'rc-util/lib/ref'; diff --git a/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx b/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx index 4befcc5a4..32f2c94f1 100644 --- a/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx +++ b/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx @@ -1,6 +1,6 @@ -import { createForm, onFieldValueChange } from '@nocobase/schema'; -import { FieldContext, FormContext } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { createForm, onFieldValueChange } from '@tachybase/schema'; +import { FieldContext, FormContext } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import React, { useCallback, useContext, useMemo } from 'react'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; import { SchemaComponent } from '../../core'; diff --git a/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx b/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx index 8abce08c3..48dcee1dd 100644 --- a/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/filter/Filter.tsx b/packages/core/client/src/schema-component/antd/filter/Filter.tsx index 488fc5ef0..d1ba48676 100644 --- a/packages/core/client/src/schema-component/antd/filter/Filter.tsx +++ b/packages/core/client/src/schema-component/antd/filter/Filter.tsx @@ -1,5 +1,5 @@ -import { ObjectField as ObjectFieldModel } from '@nocobase/schema'; -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { ObjectField as ObjectFieldModel } from '@tachybase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useEffect } from 'react'; import { useRequest } from '../../../api-client'; import { useProps } from '../../hooks/useProps'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx b/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx index de77a7e70..3cce7f9c6 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { createForm, Field, Form } from '@nocobase/schema'; -import { observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { createForm, Field, Form } from '@tachybase/schema'; +import { observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { flatten, unflatten } from '@nocobase/utils/client'; import { Button, Space } from 'antd'; import React, { createContext, useCallback, useContext, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx b/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx index 53a27aa7f..4d6e4123d 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx @@ -1,6 +1,6 @@ import { CloseCircleOutlined } from '@ant-design/icons'; -import { ObjectField as ObjectFieldModel } from '@nocobase/schema'; -import { ArrayFieldComponent as ArrayField, connect, useField } from '@nocobase/schema'; +import { ObjectField as ObjectFieldModel } from '@tachybase/schema'; +import { ArrayFieldComponent as ArrayField, connect, useField } from '@tachybase/schema'; import { Select, Space } from 'antd'; import React, { useContext } from 'react'; import { Trans, useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx b/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx index 3b9a3b1b0..3c69a1f73 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx @@ -1,6 +1,6 @@ import { CloseCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Cascader, Select, Space } from 'antd'; import React, { useCallback, useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx index 7571e4db1..21a2807d9 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx @@ -1,5 +1,5 @@ -import { ArrayField as ArrayFieldModel } from '@nocobase/schema'; -import { ObjectFieldComponent as ObjectField, observer, useField } from '@nocobase/schema'; +import { ArrayField as ArrayFieldModel } from '@tachybase/schema'; +import { ObjectFieldComponent as ObjectField, observer, useField } from '@tachybase/schema'; import React from 'react'; import { FilterGroup } from './FilterGroup'; import { FilterItem } from './FilterItem'; diff --git a/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx b/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx index 07032f418..ceed7e09d 100644 --- a/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx +++ b/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { useFieldSchema, useForm } from '@nocobase/schema'; +import { useFieldSchema, useForm } from '@tachybase/schema'; import { Button } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/filter/context.ts b/packages/core/client/src/schema-component/antd/filter/context.ts index caad7eb7c..05aa807ad 100644 --- a/packages/core/client/src/schema-component/antd/filter/context.ts +++ b/packages/core/client/src/schema-component/antd/filter/context.ts @@ -1,5 +1,5 @@ -import { ObjectField } from '@nocobase/schema'; -import { Schema } from '@nocobase/schema'; +import { ObjectField } from '@tachybase/schema'; +import { Schema } from '@tachybase/schema'; import { createContext } from 'react'; export interface FilterContextProps { diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx index 37f8c007b..c9a4d5fc7 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { AntdSchemaComponentProvider, Application, diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx index 0949d1243..2a261c3ba 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { AntdSchemaComponentProvider, Filter, diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx index 87019f108..bd81cb55c 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Filter, FilterAction, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts index a5f863861..4266d654b 100644 --- a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts +++ b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import flat from 'flat'; import { useTranslation } from 'react-i18next'; import { useBlockRequestContext } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/filter/useOperators.ts b/packages/core/client/src/schema-component/antd/filter/useOperators.ts index d69d3003b..3c389ebd3 100644 --- a/packages/core/client/src/schema-component/antd/filter/useOperators.ts +++ b/packages/core/client/src/schema-component/antd/filter/useOperators.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; import { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/useValues.ts b/packages/core/client/src/schema-component/antd/filter/useValues.ts index 1ad9f8ce7..c079a588f 100644 --- a/packages/core/client/src/schema-component/antd/filter/useValues.ts +++ b/packages/core/client/src/schema-component/antd/filter/useValues.ts @@ -1,5 +1,5 @@ -import { useField } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import flat, { unflatten } from 'flat'; import cloneDeep from 'lodash/cloneDeep'; import get from 'lodash/get'; diff --git a/packages/core/client/src/schema-component/antd/form-dialog/index.tsx b/packages/core/client/src/schema-component/antd/form-dialog/index.tsx index 43956b4ff..311de5938 100644 --- a/packages/core/client/src/schema-component/antd/form-dialog/index.tsx +++ b/packages/core/client/src/schema-component/antd/form-dialog/index.tsx @@ -1,7 +1,7 @@ -import { createForm, Form, IFormProps } from '@nocobase/schema'; -import { FormProvider, Observer, observer, ReactFC } from '@nocobase/schema'; -import { toJS } from '@nocobase/schema'; -import { applyMiddleware, IMiddleware, isBool, isFn, isNum, isStr } from '@nocobase/schema'; +import { createForm, Form, IFormProps } from '@tachybase/schema'; +import { FormProvider, Observer, observer, ReactFC } from '@tachybase/schema'; +import { toJS } from '@tachybase/schema'; +import { applyMiddleware, IMiddleware, isBool, isFn, isNum, isStr } from '@tachybase/schema'; import { Modal, ModalProps, ThemeConfig } from 'antd'; import React, { Fragment, useLayoutEffect, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx index 8d544f4dc..0420d6b0f 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx index 3636b3eb9..97e585606 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx @@ -1,6 +1,6 @@ import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index 0eac6d3ed..8925cf49a 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -1,7 +1,7 @@ import { css, cx } from '@emotion/css'; import { FormItem as Item } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useEffect, useMemo } from 'react'; import { ACLCollectionFieldProvider } from '../../../acl/ACLProvider'; import { useApp } from '../../../application'; diff --git a/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx b/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx index a0fbfe7ff..98c64b9b2 100644 --- a/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx @@ -1,7 +1,7 @@ import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { ISchema, Schema, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, Schema, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts index 8df586379..2395bf988 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { nextTick } from '@nocobase/utils/client'; import _ from 'lodash'; import { useEffect, useMemo, useRef } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts index 054b6849d..23bc76121 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; -import { reaction } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; +import { reaction } from '@tachybase/schema'; import { getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; import { useCallback, useEffect } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts index 42b61d6e8..ec8d8ae78 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { Schema, useFieldSchema, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { Schema, useFieldSchema, useForm } from '@tachybase/schema'; import _ from 'lodash'; import { useCallback, useEffect, useMemo } from 'react'; import { diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx index 9badf3419..91f6839ad 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../application/schema-settings'; import { useFormBlockContext } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx index e48f2c63d..c45995d0d 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx @@ -1,9 +1,9 @@ import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; -import { createForm, Field, Form as FormilyForm, onFieldInit, onFormInputChange } from '@nocobase/schema'; -import { FieldContext, FormContext, observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; -import { reaction } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { createForm, Field, Form as FormilyForm, onFieldInit, onFormInputChange } from '@tachybase/schema'; +import { FieldContext, FormContext, observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; +import { reaction } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { getValuesByPath } from '@nocobase/utils/client'; import { ConfigProvider, Spin } from 'antd'; import React, { useEffect, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx b/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx index 9c7e819c2..322df2d75 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx @@ -1,4 +1,4 @@ -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useEffect } from 'react'; import { useFormBlockContext } from '../../../block-provider'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx b/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx index 92db3f7e8..b4566ac61 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { error, forEach } from '@nocobase/utils/client'; import { Select, Space } from 'antd'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx index 3074a095e..7cadffeb8 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { Action, Application, diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx index ed0838010..25196f9a0 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { Action, Application, diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx index 797d8161c..d01e037a1 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Action, Application, 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 0cf7db0b4..1f9e49623 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,4 +1,4 @@ -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; import { evaluators } from '@nocobase/evaluators/client'; import { uid } from '@nocobase/utils/client'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/form/Form.tsx b/packages/core/client/src/schema-component/antd/form/Form.tsx index da2d141da..7f0f6e234 100644 --- a/packages/core/client/src/schema-component/antd/form/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form/Form.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { FieldContext, FormContext, observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FieldContext, FormContext, observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; import { ConfigProvider, Spin } from 'antd'; import React, { createContext, useContext, useEffect, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx index 059f33907..9c9f7e5e4 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, SchemaComponent, SchemaComponentProvider, useCloseAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx index 5110d3991..ca6b4560a 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx index f4a185bf1..ee47ffbf1 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx index fbf8cb606..4cc9062db 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, SchemaComponent, SchemaComponentProvider, useCloseAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx index 614a1a78b..5fcd3de3a 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { APIClientProvider, Action, diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx index 33bcc82d3..ba926d5a4 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx index 1fa9ecff2..e87b77afb 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx @@ -1,5 +1,5 @@ import { FormItem, Input } from '@formily/antd-v5'; -import { ISchema, observer, useForm } from '@nocobase/schema'; +import { ISchema, observer, useForm } from '@tachybase/schema'; import { Action, Form, FormUseValues, SchemaComponent, SchemaComponentProvider, useRequest } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx index 6de5e28a7..8c931cba0 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx @@ -1,5 +1,5 @@ import { FormItem } from '@formily/antd-v5'; -import { ISchema, observer } from '@nocobase/schema'; +import { ISchema, observer } from '@tachybase/schema'; import { Action, ActionContextProvider, diff --git a/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx b/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx index 1b3f9f294..f8fb38d9c 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx @@ -35,8 +35,8 @@ import { Waterfall, WordCloud, } from '@antv/g2plot'; -import { Field } from '@nocobase/schema'; -import { observer, useField } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField } from '@tachybase/schema'; import { Spin } from 'antd'; import cls from 'classnames'; import React, { forwardRef, useEffect, useRef } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx b/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx index 296ac6fe9..e8d3f0185 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useAPIClient } from '../../../api-client'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx index c12bfe63a..cee477a4a 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { FormContext, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FormContext, useField, useFieldSchema } from '@tachybase/schema'; import React, { createContext, useContext, useEffect, useMemo } from 'react'; import { BlockProvider, useBlockRequestContext, useParsedFilter } from '../../../block-provider'; import useStyles from './GridCard.Decorator.style'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx index 220b595dc..4be9ad08c 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { Slider } from 'antd'; import _ from 'lodash'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx index f841b0a77..09f52ca04 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { ObjectField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { ObjectField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { Card } from 'antd'; import React from 'react'; import { useCollectionParentRecordData } from '../../../data-source/collection-record/CollectionRecordProvider'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx index 7e428e36c..5646f2a53 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx @@ -1,6 +1,6 @@ import { css, cx } from '@emotion/css'; -import { ArrayField } from '@nocobase/schema'; -import { RecursionField, Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { RecursionField, Schema, useField, useFieldSchema } from '@tachybase/schema'; import { List as AntdList, Col, PaginationProps } from 'antd'; import React, { useCallback, useState } from 'react'; import { SortableItem } from '../../common'; diff --git a/packages/core/client/src/schema-component/antd/grid/Block.tsx b/packages/core/client/src/schema-component/antd/grid/Block.tsx index 4e399e73f..7058758b5 100644 --- a/packages/core/client/src/schema-component/antd/grid/Block.tsx +++ b/packages/core/client/src/schema-component/antd/grid/Block.tsx @@ -1,4 +1,4 @@ -import { observer, useFieldSchema } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { DragHandler } from '../../'; diff --git a/packages/core/client/src/schema-component/antd/grid/Grid.tsx b/packages/core/client/src/schema-component/antd/grid/Grid.tsx index 7f87aa305..ddb757e67 100644 --- a/packages/core/client/src/schema-component/antd/grid/Grid.tsx +++ b/packages/core/client/src/schema-component/antd/grid/Grid.tsx @@ -1,7 +1,7 @@ import { TinyColor } from '@ctrl/tinycolor'; import { useDndContext, useDndMonitor, useDraggable, useDroppable } from '@dnd-kit/core'; -import { ISchema, RecursionField, Schema, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, RecursionField, Schema, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cls from 'classnames'; import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react'; import { useDesignable, useFormBlockContext, useSchemaInitializerRender } from '../../../'; diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx index cb1e94efb..84a02de58 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { observer, useFieldSchema } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; import { Application, BlockItem, diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx index 5e3d76f4b..aea7ae290 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { APIClientProvider, CurrentUserProvider, diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx index c82fc3f54..8ae57996e 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Application, CardItem, diff --git a/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx b/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx index 1e877d442..d41253634 100644 --- a/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx +++ b/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx @@ -1,7 +1,7 @@ import { CloseOutlined, LoadingOutlined } from '@ant-design/icons'; import { useFormLayout } from '@formily/antd-v5'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { Button, Space } from 'antd'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx b/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx index b03575424..b313b60d1 100644 --- a/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { InputNumber as AntdNumber, InputNumberProps } from 'antd'; import React from 'react'; import { ReadPretty } from './ReadPretty'; diff --git a/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx index 37aac84da..99490c2ce 100644 --- a/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx @@ -1,4 +1,4 @@ -import { isValid } from '@nocobase/schema'; +import { isValid } from '@tachybase/schema'; import { toFixedByStep } from '@nocobase/utils/client'; import type { InputProps } from 'antd/es/input'; import type { InputNumberProps } from 'antd/es/input-number'; diff --git a/packages/core/client/src/schema-component/antd/input/Input.tsx b/packages/core/client/src/schema-component/antd/input/Input.tsx index c22052aa3..9c3c86c77 100644 --- a/packages/core/client/src/schema-component/antd/input/Input.tsx +++ b/packages/core/client/src/schema-component/antd/input/Input.tsx @@ -1,5 +1,5 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { Input as AntdInput } from 'antd'; import { InputProps, TextAreaProps } from 'antd/es/input'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/Json.tsx b/packages/core/client/src/schema-component/antd/input/Json.tsx index 52a440664..fb79ff955 100644 --- a/packages/core/client/src/schema-component/antd/input/Json.tsx +++ b/packages/core/client/src/schema-component/antd/input/Json.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { Input } from 'antd'; import { TextAreaProps } from 'antd/es/input'; import React, { useState, useEffect, Ref } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx b/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx index 2e42a931d..ea0ae2daa 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx @@ -1,7 +1,7 @@ import { css, cx } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { FormContext, useField } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FormContext, useField } from '@tachybase/schema'; import _ from 'lodash'; import React, { createContext, useContext, useEffect, useMemo } from 'react'; import { BlockProvider, useBlockRequestContext, useParsedFilter } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/list/List.Designer.tsx b/packages/core/client/src/schema-component/antd/list/List.Designer.tsx index 2694428c5..94a24c1a8 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Designer.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/list/List.Item.tsx b/packages/core/client/src/schema-component/antd/list/List.Item.tsx index 62d58aa97..14dcdaded 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Item.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Item.tsx @@ -1,5 +1,5 @@ -import { ObjectField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { ObjectField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import classnames from 'classnames'; import React from 'react'; import { css, cx } from '@emotion/css'; diff --git a/packages/core/client/src/schema-component/antd/list/List.tsx b/packages/core/client/src/schema-component/antd/list/List.tsx index 8bd7d7a07..86cafe0f7 100644 --- a/packages/core/client/src/schema-component/antd/list/List.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.tsx @@ -1,6 +1,6 @@ import { cx } from '@emotion/css'; -import { ArrayField } from '@nocobase/schema'; -import { RecursionField, Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { RecursionField, Schema, useField, useFieldSchema } from '@tachybase/schema'; import { List as AntdList, PaginationProps } from 'antd'; import React, { useCallback, useState } from 'react'; import { SortableItem } from '../../common'; diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx index b8a374812..c5b3e6e02 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx index 3f5b4894f..d2fa406d8 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx @@ -1,4 +1,4 @@ -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import { Input as AntdInput, Button, Space, Spin } from 'antd'; import cls from 'classnames'; import React, { useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx index e29deb579..e7266b444 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx @@ -1,5 +1,5 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { Input as AntdInput, Spin } from 'antd'; import React from 'react'; import { useGlobalTheme } from '../../../global-theme'; diff --git a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx index eaeccb3e3..89a882f79 100644 --- a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx @@ -2,7 +2,7 @@ * title: Markdown.Void */ import { FormItem } from '@formily/antd-v5'; -import { observer, useField } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; import { Markdown, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx index de0895299..d0900c0a3 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx @@ -1,6 +1,6 @@ import { TreeSelect } from '@formily/antd-v5'; -import { Field, onFieldChange } from '@nocobase/schema'; -import { ISchema, Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field, onFieldChange } from '@tachybase/schema'; +import { ISchema, Schema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { findByUid } from '.'; diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.tsx index 0a3cd6c23..9eebedd7d 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.tsx @@ -7,8 +7,8 @@ import { SchemaExpressionScopeContext, useField, useFieldSchema, -} from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +} from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import { Menu as AntdMenu, MenuProps } from 'antd'; import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx index ec760c9f3..3773b25d4 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx @@ -1,7 +1,7 @@ /** * title: Menu */ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Menu, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx index 63a13254e..da706ed05 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx @@ -1,7 +1,7 @@ /** * title: Menu */ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Menu, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx index 26bfdd77e..ed07cc95f 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx @@ -1,7 +1,7 @@ /** * title: Menu */ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Menu, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Layout } from 'antd'; import React, { useRef } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/menu/util.ts b/packages/core/client/src/schema-component/antd/menu/util.ts index b3150d1fa..24b965127 100644 --- a/packages/core/client/src/schema-component/antd/menu/util.ts +++ b/packages/core/client/src/schema-component/antd/menu/util.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; export function findByUid(schema: Schema, uid: string) { if (!Schema.isSchemaInstance(schema)) { diff --git a/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx b/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx index 4907573c2..84b0f9045 100644 --- a/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx +++ b/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx @@ -1,7 +1,7 @@ import { customAlphabet as Alphabet } from 'nanoid'; import React, { useEffect } from 'react'; import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty, useForm } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty, useForm } from '@tachybase/schema'; import { Input as AntdInput } from 'antd'; import { ReadPretty } from '../input'; import { useCollectionField } from '../../../data-source/collection-field/CollectionFieldProvider'; diff --git a/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx b/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx index ace046d27..8a15b76d5 100644 --- a/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx +++ b/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React, { useContext, useEffect, useRef, useState } from 'react'; import { useRecord } from '../../../record-provider'; diff --git a/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx b/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx index 77c289728..6dea71ff8 100644 --- a/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx +++ b/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx b/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx index c9d058db2..48ea1ff06 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useDesignable } from '../..'; import { SchemaSettings } from '../../../application/schema-settings'; import { useSchemaToolbar } from '../../../application/schema-toolbar'; diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index d7ec7872e..a238ad993 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { PageHeader as AntdPageHeader } from '@ant-design/pro-layout'; import { FormLayout } from '@formily/antd-v5'; -import { Schema, SchemaOptionsContext, useFieldSchema } from '@nocobase/schema'; +import { Schema, SchemaOptionsContext, useFieldSchema } from '@tachybase/schema'; import { Button, Tabs } from 'antd'; import classNames from 'classnames'; import React, { useContext, useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx index 0756a1382..b0de0f3a2 100644 --- a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx @@ -1,6 +1,6 @@ import { App } from 'antd'; import { useTranslation } from 'react-i18next'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useDesignable } from '../../hooks'; import { useSchemaToolbar } from '../../../application/schema-toolbar'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx b/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx index fd0a008e6..a0304f840 100644 --- a/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx @@ -1,5 +1,5 @@ import { DragOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Space } from 'antd'; import React from 'react'; import { DragHandler, useDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx index 589856ad4..3bf36c636 100644 --- a/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { DocumentTitleProvider, Page, SchemaComponent, SchemaComponentProvider, Application } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/pagination/index.tsx b/packages/core/client/src/schema-component/antd/pagination/index.tsx index 4c8a6692e..d153dfeeb 100644 --- a/packages/core/client/src/schema-component/antd/pagination/index.tsx +++ b/packages/core/client/src/schema-component/antd/pagination/index.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Pagination as AntdPagination } from 'antd'; import React, { KeyboardEventHandler } from 'react'; import { useProps } from '../../hooks/useProps'; diff --git a/packages/core/client/src/schema-component/antd/password/Password.tsx b/packages/core/client/src/schema-component/antd/password/Password.tsx index 1d4c471ee..9c4efdae0 100644 --- a/packages/core/client/src/schema-component/antd/password/Password.tsx +++ b/packages/core/client/src/schema-component/antd/password/Password.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { Input } from 'antd'; import { PasswordProps } from 'antd/es/input'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx b/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx index 1c30ed800..8c4d4659c 100644 --- a/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx +++ b/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx @@ -1,4 +1,4 @@ -import { isFn } from '@nocobase/schema'; +import { isFn } from '@tachybase/schema'; import React, { Fragment } from 'react'; import { getStrength } from './utils'; diff --git a/packages/core/client/src/schema-component/antd/percent/Percent.tsx b/packages/core/client/src/schema-component/antd/percent/Percent.tsx index 6da142646..5991c3cbd 100644 --- a/packages/core/client/src/schema-component/antd/percent/Percent.tsx +++ b/packages/core/client/src/schema-component/antd/percent/Percent.tsx @@ -1,5 +1,5 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; -import { isNum } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; +import { isNum } from '@tachybase/schema'; import { InputNumber } from 'antd'; import * as math from 'mathjs'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/preview/Preview.tsx b/packages/core/client/src/schema-component/antd/preview/Preview.tsx index 9a6a3f061..742c866f6 100644 --- a/packages/core/client/src/schema-component/antd/preview/Preview.tsx +++ b/packages/core/client/src/schema-component/antd/preview/Preview.tsx @@ -1,5 +1,5 @@ import { DeleteOutlined, DownloadOutlined, PlusOutlined } from '@ant-design/icons'; -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { Upload as AntdUpload, Button, Progress, Space, UploadFile } from 'antd'; import cls from 'classnames'; import { saveAs } from 'file-saver'; diff --git a/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx b/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx index 03a3eaa0e..2820a78f7 100644 --- a/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx +++ b/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/css'; import { FormItem } from '@formily/antd-v5'; -import { Field, createForm } from '@nocobase/schema'; -import { FormContext, RecursionField, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field, createForm } from '@tachybase/schema'; +import { FormContext, RecursionField, observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { useMemo, useRef } from 'react'; import { useCollectionManager_deprecated } from '../../../collection-manager'; import { StablePopover } from '../popover'; diff --git a/packages/core/client/src/schema-component/antd/radio/Radio.tsx b/packages/core/client/src/schema-component/antd/radio/Radio.tsx index 9bad30080..7b4d3a8e5 100644 --- a/packages/core/client/src/schema-component/antd/radio/Radio.tsx +++ b/packages/core/client/src/schema-component/antd/radio/Radio.tsx @@ -1,5 +1,5 @@ -import { connect, mapProps, mapReadPretty, useField } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty, useField } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { Radio as AntdRadio, Tag } from 'antd'; import type { RadioGroupProps, RadioProps } from 'antd/es/radio'; import React, { useState, useEffect } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx index 7916cbf06..b4d8dd2d6 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Select } from 'antd'; import { differenceBy, unionBy } from 'lodash'; import React, { createContext, useContext, useEffect, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx index 4a6718b50..80436057b 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx @@ -1,5 +1,5 @@ -import { observer, RecursionField, useFieldSchema } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { observer, RecursionField, useFieldSchema } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import React, { Fragment, useRef, useState } from 'react'; import { WithoutTableFieldResource } from '../../../block-provider'; // TODO: 不要使用 '../../../block-provider' 这个路径引用 BlockAssociationContext,在 Vitest 中会报错,待修复 diff --git a/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx index 7fa4debc5..4fcba06bd 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { InputRecordPicker } from './InputRecordPicker'; import { ReadPrettyRecordPicker } from './ReadPrettyRecordPicker'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx index f9b0b4951..21b5ab967 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx @@ -1,7 +1,7 @@ /** * title: 勾选 */ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { APIClientProvider, Action, diff --git a/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts b/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts index 1efeca7ee..82819701c 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts +++ b/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; export const useFieldNames = (props) => { const fieldSchema = useFieldSchema(); diff --git a/packages/core/client/src/schema-component/antd/record-picker/util.ts b/packages/core/client/src/schema-component/antd/record-picker/util.ts index 660b42be4..f0fc4218a 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/util.ts +++ b/packages/core/client/src/schema-component/antd/record-picker/util.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { isArr } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { isArr } from '@tachybase/schema'; import { dayjs, getDefaultFormat, str2moment } from '@nocobase/utils/client'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx index 281ca70ce..14cbefa1b 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx @@ -1,4 +1,4 @@ -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useRequest } from '../../../api-client'; import { useRecord } from '../../../record-provider'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx index 2cd5de098..2f2666496 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx @@ -1,5 +1,5 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty, useFieldSchema } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty, useFieldSchema } from '@tachybase/schema'; import { Divider, SelectProps, Tag } from 'antd'; import dayjs from 'dayjs'; import { uniqBy } from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx b/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx index 2f3530338..43b27199a 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx +++ b/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import React from 'react'; import ReactQuill from 'react-quill'; import { isVariable } from '../../../variables/utils/isVariable'; diff --git a/packages/core/client/src/schema-component/antd/select/FormulaSelect.tsx b/packages/core/client/src/schema-component/antd/select/FormulaSelect.tsx index fdfdc54d8..89ff196f8 100644 --- a/packages/core/client/src/schema-component/antd/select/FormulaSelect.tsx +++ b/packages/core/client/src/schema-component/antd/select/FormulaSelect.tsx @@ -1,6 +1,6 @@ import { CloseCircleFilled, CloseOutlined } from '@ant-design/icons'; -import { useFieldSchema, useForm } from '@nocobase/schema'; -import { isValid, toArr } from '@nocobase/schema'; +import { useFieldSchema, useForm } from '@tachybase/schema'; +import { isValid, toArr } from '@tachybase/schema'; import { isPlainObject } from '@nocobase/utils/client'; import type { SelectProps } from 'antd'; import { Select as AntdSelect, Empty, Spin, Tag } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx index bd7965443..caed64497 100644 --- a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx @@ -1,6 +1,6 @@ -import { isArrayField } from '@nocobase/schema'; -import { observer, useField } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { isArrayField } from '@tachybase/schema'; +import { observer, useField } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { Tag } from 'antd'; import React from 'react'; import { EllipsisWithTooltip } from '../input/EllipsisWithTooltip'; diff --git a/packages/core/client/src/schema-component/antd/select/Select.tsx b/packages/core/client/src/schema-component/antd/select/Select.tsx index 147891da8..82398fd4c 100644 --- a/packages/core/client/src/schema-component/antd/select/Select.tsx +++ b/packages/core/client/src/schema-component/antd/select/Select.tsx @@ -1,6 +1,6 @@ import { CloseCircleFilled, CloseOutlined, LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; -import { isValid, toArr } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; +import { isValid, toArr } from '@tachybase/schema'; import { isPlainObject } from '@nocobase/utils/client'; import type { SelectProps } from 'antd'; import { Select as AntdSelect, Empty, Spin, Tag } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx index ec20ff461..f2d883bc7 100644 --- a/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx @@ -2,7 +2,7 @@ * title: Select */ import { FormItem } from '@formily/antd-v5'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { SchemaComponent, SchemaComponentProvider, Select } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx index 9dca9972a..19a7308e7 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx @@ -1,5 +1,5 @@ import { DragOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Space } from 'antd'; import React from 'react'; import { useSchemaInitializerRender } from '../../../application'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx index 2b325d86a..5822a0dbc 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; import { SortableItem, useDesigner } from '../..'; import { useFlag } from '../../../flag-provider/hooks/useFlag'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx index 6f4d4df78..af9757722 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React, { useLayoutEffect } from 'react'; import { SortableItem, diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx index 81642350b..523fbaf9d 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { set } from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx index aa2f0fcc2..98e2bf7b1 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import React from 'react'; export const TableColumn = (props) => { diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index b186714ad..799c91655 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -2,11 +2,11 @@ import { DeleteOutlined, MenuOutlined, CopyOutlined } from '@ant-design/icons'; import { TinyColor } from '@ctrl/tinycolor'; import { SortableContext, SortableContextProps, useSortable } from '@dnd-kit/sortable'; import { css } from '@emotion/css'; -import { ArrayField } from '@nocobase/schema'; -import { spliceArrayState } from '@nocobase/schema'; -import { RecursionField, Schema, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { spliceArrayState } from '@tachybase/schema'; +import { RecursionField, Schema, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { isPortalInBody } from '@nocobase/utils/client'; import { useMemoizedFn } from 'ahooks'; import { Table as AntdTable, TableColumnProps } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx index c7d103037..45f105977 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx @@ -1,6 +1,6 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; -import { Field } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; +import { Field } from '@tachybase/schema'; import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { useAPIClient } from '../../../api-client'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx index 3895fe2b8..597885705 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import React, { useEffect } from 'react'; import { useFormBlockContext } from '../../../block-provider'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx index 63552ff16..a500a803f 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx b/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx index 41deab217..a5415a38d 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx @@ -1,4 +1,4 @@ -import { observer, RecursionField } from '@nocobase/schema'; +import { observer, RecursionField } from '@tachybase/schema'; import React from 'react'; import { useCollectionManager_deprecated } from '../../../../collection-manager'; import { useRecord } from '../../../../record-provider'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx index c0bb0bb6b..ffd700a81 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { APIClientProvider, AntdSchemaComponentProvider, diff --git a/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx index 2d12a45f9..efce442fb 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { connect, ISchema, observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, ISchema, observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import { Table, TableColumnType } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/utils.ts b/packages/core/client/src/schema-component/antd/table-v2/utils.ts index e3e142664..788426528 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/utils.ts +++ b/packages/core/client/src/schema-component/antd/table-v2/utils.ts @@ -1,4 +1,4 @@ -import { ISchema, Schema } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; export const isCollectionFieldComponent = (schema: ISchema) => { return schema['x-component'] === 'CollectionField'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Array.tsx b/packages/core/client/src/schema-component/antd/table/Table.Array.tsx index b4c9fec6b..24b575e3e 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Array.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Array.tsx @@ -1,7 +1,7 @@ import { MenuOutlined } from '@ant-design/icons'; import { TinyColor } from '@ctrl/tinycolor'; import { css } from '@emotion/css'; -import { ArrayField, Field } from '@nocobase/schema'; +import { ArrayField, Field } from '@tachybase/schema'; import { RecursionField, Schema, @@ -9,7 +9,7 @@ import { observer, useField, useFieldSchema, -} from '@nocobase/schema'; +} from '@tachybase/schema'; import { Table, TableColumnProps } from 'antd'; import { default as classNames, default as cls } from 'classnames'; import React, { useContext, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx index 84177657b..303753d62 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; import { SortableItem, useDesigner } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx index 51484048a..6d1a1b98b 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React, { useLayoutEffect } from 'react'; import { SortableItem, useCollection_deprecated, useCompile, useDesignable, useDesigner } from '../../../'; import { designerCss } from './Table.Column.ActionBar'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx index 1b981962b..c53c9b571 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema, useForm } from '@tachybase/schema'; import React from 'react'; import { useCollectionManager_deprecated } from '../../../collection-manager'; import { diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.tsx index 7e057bdbe..40633081e 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import React from 'react'; export const TableColumn = (props) => { diff --git a/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx b/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx index 6c01c93ed..bc0c01919 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx @@ -1,5 +1,5 @@ import { DragOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Space } from 'antd'; import React from 'react'; import { useSchemaInitializerRender } from '../../../application'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx b/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx index b0334097f..51d5f40bd 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { observer, useField } from '@nocobase/schema'; -import { isArr, isValid } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField } from '@tachybase/schema'; +import { isArr, isValid } from '@tachybase/schema'; import { TableProps } from 'antd'; import React from 'react'; import { TableVoid } from './Table.Void'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx index 3ce7742ae..1bd569528 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useCollection_deprecated, useResourceActionContext } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Void.tsx b/packages/core/client/src/schema-component/antd/table/Table.Void.tsx index c71bbd7bf..6cb5d662d 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Void.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Void.tsx @@ -1,5 +1,5 @@ -import { createForm, Field } from '@nocobase/schema'; -import { FieldContext, FormContext, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm, Field } from '@tachybase/schema'; +import { FieldContext, FormContext, observer, useField, useFieldSchema } from '@tachybase/schema'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; import { TablePaginationConfig, TableProps } from 'antd'; import { cloneDeep } from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx index b9368b944..e08ff9698 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx index 4eb88c40f..682ef682f 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx index 6961fd9c5..79d87c3b1 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx index 446bdce37..5fc0c894a 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx @@ -1,5 +1,5 @@ -import { ISchema, observer } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, observer } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Action, Application, diff --git a/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx b/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx index cced4deec..a96a0fb51 100644 --- a/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx b/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx index b4fe00d41..13fbf3371 100644 --- a/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer, RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { Tabs as AntdTabs, TabPaneProps, TabsProps } from 'antd'; import classNames from 'classnames'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx index 8ca0f140c..1664a1b8e 100644 --- a/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx @@ -1,7 +1,7 @@ /** * title: Tabs */ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Action, Application, SchemaComponent, SchemaComponentProvider, Tabs } from '@nocobase/client'; import React from 'react'; import { AntdSchemaComponentProvider } from '../../AntdSchemaComponentProvider'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx index e74b8fa9c..65a3fc5e2 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx @@ -1,5 +1,5 @@ import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; -import { toArr } from '@nocobase/schema'; +import { toArr } from '@tachybase/schema'; import dayjs from 'dayjs'; import { TimeRangePickerProps } from 'antd/es/time-picker'; import cls from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx b/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx index ebe001ad9..6689b44d0 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx @@ -1,5 +1,5 @@ import { dayjsable, formatDayjsValue } from '@formily/antd-v5/esm/__builtins__'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import dayjs from 'dayjs'; import { TimePicker as AntdTimePicker } from 'antd'; import { TimePickerProps as AntdTimePickerProps, TimeRangePickerProps } from 'antd/es/time-picker'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx index 56de09800..3fda7173d 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx @@ -1,7 +1,7 @@ import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; -import { Field } from '@nocobase/schema'; -import { observer, useField } from '@nocobase/schema'; -import { isArr } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, useField } from '@tachybase/schema'; +import { isArr } from '@tachybase/schema'; import { Tag } from 'antd'; import { TreeSelectProps } from 'antd/es/tree-select'; import cls from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx b/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx index 70e86d933..fab724e89 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx @@ -1,5 +1,5 @@ import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { TreeSelect as AntdTreeSelect } from 'antd'; import React from 'react'; import { ReadPretty } from './ReadPretty'; diff --git a/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx b/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx index 34345a63a..0e4ea7f2d 100644 --- a/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx +++ b/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import React, { useMemo } from 'react'; import { DatePicker } from '../date-picker'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx index 8cbf568a8..8f4f47b83 100644 --- a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx @@ -1,6 +1,6 @@ import { DownloadOutlined } from '@ant-design/icons'; -import { Field } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { isString } from '@nocobase/utils/client'; import { Button, Modal, Space } from 'antd'; import useUploadStyle from 'antd/es/upload/style'; diff --git a/packages/core/client/src/schema-component/antd/upload/Upload.tsx b/packages/core/client/src/schema-component/antd/upload/Upload.tsx index 729836d42..496d58eb3 100644 --- a/packages/core/client/src/schema-component/antd/upload/Upload.tsx +++ b/packages/core/client/src/schema-component/antd/upload/Upload.tsx @@ -1,5 +1,5 @@ import { DeleteOutlined, DownloadOutlined, InboxOutlined, LoadingOutlined, PlusOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { Upload as AntdUpload, Button, Modal, Progress, Space, UploadFile } from 'antd'; import cls from 'classnames'; import { saveAs } from 'file-saver'; diff --git a/packages/core/client/src/schema-component/antd/upload/shared.ts b/packages/core/client/src/schema-component/antd/upload/shared.ts index ee07df6ac..09f58f008 100644 --- a/packages/core/client/src/schema-component/antd/upload/shared.ts +++ b/packages/core/client/src/schema-component/antd/upload/shared.ts @@ -1,7 +1,7 @@ -import { Field } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; -import { reaction } from '@nocobase/schema'; -import { isArr, isValid, toArr as toArray } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; +import { reaction } from '@tachybase/schema'; +import { isArr, isValid, toArr as toArray } from '@tachybase/schema'; import { UploadFile } from 'antd/es/upload/interface'; import { useEffect } from 'react'; import { useAPIClient } from '../../../api-client'; diff --git a/packages/core/client/src/schema-component/antd/variable/Input.tsx b/packages/core/client/src/schema-component/antd/variable/Input.tsx index 01958f5ce..0f5923819 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -1,6 +1,6 @@ import { CloseCircleFilled } from '@ant-design/icons'; import { css, cx } from '@emotion/css'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import { Input as AntInput, Cascader, DatePicker, InputNumber, Select, Space, Tag } from 'antd'; import useAntdInputStyle from 'antd/es/input/style'; diff --git a/packages/core/client/src/schema-component/antd/variable/TextArea.tsx b/packages/core/client/src/schema-component/antd/variable/TextArea.tsx index ed766130f..fff3b92ac 100644 --- a/packages/core/client/src/schema-component/antd/variable/TextArea.tsx +++ b/packages/core/client/src/schema-component/antd/variable/TextArea.tsx @@ -1,5 +1,5 @@ import { css, cx } from '@emotion/css'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { Input, Space } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/variable/Variable.tsx b/packages/core/client/src/schema-component/antd/variable/Variable.tsx index 9d9b0b81d..cb7997143 100644 --- a/packages/core/client/src/schema-component/antd/variable/Variable.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Variable.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import React, { createContext, useContext } from 'react'; import { Input } from './Input'; diff --git a/packages/core/client/src/schema-component/common/dnd-context/index.tsx b/packages/core/client/src/schema-component/common/dnd-context/index.tsx index 4c8df8547..b3e17d51b 100644 --- a/packages/core/client/src/schema-component/common/dnd-context/index.tsx +++ b/packages/core/client/src/schema-component/common/dnd-context/index.tsx @@ -1,6 +1,6 @@ import { DndContext as DndKitContext, DragEndEvent, DragOverlay, rectIntersection } from '@dnd-kit/core'; import { Props } from '@dnd-kit/core/dist/components/DndContext/DndContext'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useAPIClient } from '../../../'; diff --git a/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx b/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx index 0ee9638cf..0095ea760 100644 --- a/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx +++ b/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx @@ -1,7 +1,7 @@ import { TinyColor } from '@ctrl/tinycolor'; import { useDraggable, useDroppable } from '@dnd-kit/core'; import { cx } from '@emotion/css'; -import { Schema, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Schema, observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { HTMLAttributes, createContext, useContext, useMemo } from 'react'; import { useToken } from '../../antd/__builtins__'; diff --git a/packages/core/client/src/schema-component/core/FormProvider.tsx b/packages/core/client/src/schema-component/core/FormProvider.tsx index fc4a17238..f2b1f7792 100644 --- a/packages/core/client/src/schema-component/core/FormProvider.tsx +++ b/packages/core/client/src/schema-component/core/FormProvider.tsx @@ -1,9 +1,9 @@ -import { createForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; import { FormProvider as FormilyFormProvider, SchemaExpressionScopeContext, SchemaOptionsContext, -} from '@nocobase/schema'; +} from '@tachybase/schema'; import React, { useContext, useMemo } from 'react'; import { SchemaComponentOptions } from './SchemaComponentOptions'; diff --git a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx index 77f2c8e8e..18d9b161d 100644 --- a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx +++ b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { Schema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { Schema } from '@tachybase/schema'; import { Spin } from 'antd'; import React, { useMemo } from 'react'; import { useRequest } from '../../api-client'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponent.tsx b/packages/core/client/src/schema-component/core/SchemaComponent.tsx index 6cc3bdde4..3569fa821 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponent.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponent.tsx @@ -1,4 +1,4 @@ -import { IRecursionFieldProps, ISchemaFieldProps, RecursionField, Schema } from '@nocobase/schema'; +import { IRecursionFieldProps, ISchemaFieldProps, RecursionField, Schema } from '@tachybase/schema'; import React, { useContext, useMemo } from 'react'; import { SchemaComponentContext } from '../context'; import { SchemaComponentOptions } from './SchemaComponentOptions'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx b/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx index 403e6535d..7a9cc154d 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx @@ -1,4 +1,4 @@ -import { ExpressionScope, SchemaComponentsContext, SchemaOptionsContext } from '@nocobase/schema'; +import { ExpressionScope, SchemaComponentsContext, SchemaOptionsContext } from '@tachybase/schema'; import React, { PropsWithChildren, memo, useContext, useMemo } from 'react'; import { ISchemaComponentOptionsProps } from '../types'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx b/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx index 4d879ebea..4c7dc7751 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx @@ -1,6 +1,6 @@ -import { createForm } from '@nocobase/schema'; -import { FormProvider, Schema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FormProvider, Schema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React, { useMemo, useState, PropsWithChildren } from 'react'; import { useTranslation } from 'react-i18next'; import { SchemaComponentContext } from '../context'; diff --git a/packages/core/client/src/schema-component/demos/demo1.tsx b/packages/core/client/src/schema-component/demos/demo1.tsx index cc0357a0b..a4dcc18eb 100644 --- a/packages/core/client/src/schema-component/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/demos/demo1.tsx @@ -3,9 +3,9 @@ */ import React from 'react'; import { SchemaComponentProvider, SchemaComponent, useDesignable } from '@nocobase/client'; -import { observer, Schema, useFieldSchema } from '@nocobase/schema'; +import { observer, Schema, useFieldSchema } from '@tachybase/schema'; import { Button, Space } from 'antd'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; const Hello = observer( (props) => { diff --git a/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts b/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts index 31e49e47c..fb974d8cc 100644 --- a/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts +++ b/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts @@ -1,5 +1,5 @@ import { vi } from 'vitest'; -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { createDesignable, Designable } from '../useDesignable'; describe('createDesignable', () => { diff --git a/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts b/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts index afa1b354b..215c65366 100644 --- a/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts +++ b/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { splitWrapSchema } from '../useDesignable'; describe('splitWrapSchema', () => { diff --git a/packages/core/client/src/schema-component/hooks/useCompile.ts b/packages/core/client/src/schema-component/hooks/useCompile.ts index ec962bbf9..db1a62e37 100644 --- a/packages/core/client/src/schema-component/hooks/useCompile.ts +++ b/packages/core/client/src/schema-component/hooks/useCompile.ts @@ -1,4 +1,4 @@ -import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@nocobase/schema'; +import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@tachybase/schema'; import { isValidElement, useContext } from 'react'; interface Props { diff --git a/packages/core/client/src/schema-component/hooks/useComponent.ts b/packages/core/client/src/schema-component/hooks/useComponent.ts index fd8d78817..a215ecaae 100644 --- a/packages/core/client/src/schema-component/hooks/useComponent.ts +++ b/packages/core/client/src/schema-component/hooks/useComponent.ts @@ -1,4 +1,4 @@ -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { get } from 'lodash'; import { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/useDesignable.tsx b/packages/core/client/src/schema-component/hooks/useDesignable.tsx index 0574fec5a..059d63307 100644 --- a/packages/core/client/src/schema-component/hooks/useDesignable.tsx +++ b/packages/core/client/src/schema-component/hooks/useDesignable.tsx @@ -1,6 +1,6 @@ -import { GeneralField, Query } from '@nocobase/schema'; -import { ISchema, Schema, SchemaOptionsContext, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { GeneralField, Query } from '@tachybase/schema'; +import { ISchema, Schema, SchemaOptionsContext, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { message } from 'antd'; import cloneDeep from 'lodash/cloneDeep'; import get from 'lodash/get'; diff --git a/packages/core/client/src/schema-component/hooks/useDesigner.ts b/packages/core/client/src/schema-component/hooks/useDesigner.ts index 159771d13..5f5758af6 100644 --- a/packages/core/client/src/schema-component/hooks/useDesigner.ts +++ b/packages/core/client/src/schema-component/hooks/useDesigner.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useComponent, useDesignable } from '.'; import { useMemo } from 'react'; import { SchemaToolbar } from '../../schema-settings'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts b/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts index b6bc70a97..2db716c8c 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx index a338f7b1f..e523a6c6c 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx +++ b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldProps.ts b/packages/core/client/src/schema-component/hooks/useFieldProps.ts index 846c9c404..8da47484e 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldProps.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldProps.ts @@ -1,5 +1,5 @@ import { useContext, useRef } from 'react'; -import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@nocobase/schema'; +import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@tachybase/schema'; export const useFieldProps = (schema: Schema) => { const options = useContext(SchemaOptionsContext); diff --git a/packages/core/client/src/schema-component/hooks/useFieldTitle.ts b/packages/core/client/src/schema-component/hooks/useFieldTitle.ts index bfcb651c4..9a71c58ed 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldTitle.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldTitle.ts @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useEffect } from 'react'; import { useCompile } from './useCompile'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-component/types.ts b/packages/core/client/src/schema-component/types.ts index 8cbd43f8b..2969831bb 100644 --- a/packages/core/client/src/schema-component/types.ts +++ b/packages/core/client/src/schema-component/types.ts @@ -1,5 +1,5 @@ -import { Form } from '@nocobase/schema'; -import { IRecursionFieldProps, ISchemaFieldProps, SchemaReactComponents } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { IRecursionFieldProps, ISchemaFieldProps, SchemaReactComponents } from '@tachybase/schema'; import React from 'react'; export interface ISchemaComponentContext { diff --git a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx index 9aad9733e..c8c227886 100644 --- a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useCallback, useMemo } from 'react'; import { useCollection, diff --git a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx index 3506d2c3c..14c37d19b 100644 --- a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import React, { useMemo } from 'react'; import { SchemaComponent, useActionContext, useDesignable, useRecord } from '../..'; import { SchemaInitializer } from '../../application/schema-initializer/SchemaInitializer'; diff --git a/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx b/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx index dd387ab7d..62810aa94 100644 --- a/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx +++ b/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx @@ -1,6 +1,6 @@ import { DownOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { observer, RecursionField, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { observer, RecursionField, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { Button, Dropdown, MenuProps } from 'antd'; import React, { useEffect, useMemo, useState, forwardRef, createRef } from 'react'; import { composeRef } from 'rc-util/lib/ref'; diff --git a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx index 53e519a71..205ec68b5 100644 --- a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx +++ b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import _ from 'lodash'; import React, { useCallback, useEffect, useMemo } from 'react'; import { useFormBlockContext } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx b/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx index 61e5d37c6..76df583dd 100644 --- a/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx +++ b/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx @@ -9,8 +9,8 @@ import { useSchemaInitializerItem, useSchemaInitializerRender, } from '@nocobase/client'; -import { observer, useField } from '@nocobase/schema'; -import { Field } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; +import { Field } from '@tachybase/schema'; const Hello = observer(() => { const field = useField(); diff --git a/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts b/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts index 4373f7799..78623065a 100644 --- a/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts +++ b/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx index d63f6ad4d..b8284152a 100644 --- a/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx @@ -1,4 +1,4 @@ -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import React from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../application'; diff --git a/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx b/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx index 1ef435a08..da517bf77 100644 --- a/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx +++ b/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx @@ -1,4 +1,4 @@ -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import React from 'react'; import { useCurrentSchema } from '../utils'; diff --git a/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx b/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx index c09a699ba..e9ebc4784 100644 --- a/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useSchemaInitializerItem } from '../../application'; import { InitializerWithSwitch } from './InitializerWithSwitch'; diff --git a/packages/core/client/src/schema-initializer/utils.ts b/packages/core/client/src/schema-initializer/utils.ts index 159cfbba3..5ef9fde7c 100644 --- a/packages/core/client/src/schema-initializer/utils.ts +++ b/packages/core/client/src/schema-initializer/utils.ts @@ -1,6 +1,6 @@ -import { Field, Form } from '@nocobase/schema'; -import { ISchema, Schema, useFieldSchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field, Form } from '@tachybase/schema'; +import { ISchema, Schema, useFieldSchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import _ from 'lodash'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-items/GeneralSchemaItems.tsx b/packages/core/client/src/schema-items/GeneralSchemaItems.tsx index 7ea799019..eca32f4f6 100644 --- a/packages/core/client/src/schema-items/GeneralSchemaItems.tsx +++ b/packages/core/client/src/schema-items/GeneralSchemaItems.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, observer, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-items/GeneralSettings.tsx b/packages/core/client/src/schema-items/GeneralSettings.tsx index 4a3e2fd18..acc4d34c0 100644 --- a/packages/core/client/src/schema-items/GeneralSettings.tsx +++ b/packages/core/client/src/schema-items/GeneralSettings.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../schema-component'; import { SchemaSettingOptions } from '../application'; diff --git a/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx b/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx index 9458aa75c..3725077b4 100644 --- a/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx +++ b/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { Select } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx b/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx index 2932ada43..bf9e1572f 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx @@ -1,6 +1,6 @@ -import { Field } from '@nocobase/schema'; -import { connect, mapProps, observer } from '@nocobase/schema'; -import { observable } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { connect, mapProps, observer } from '@tachybase/schema'; +import { observable } from '@tachybase/schema'; import { Tree as AntdTree } from 'antd'; import _ from 'lodash'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx index ebde414c9..fa754802e 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx @@ -1,8 +1,8 @@ import { CopyOutlined } from '@ant-design/icons'; import { ArrayBase } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { ISchema, RecursionField, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { toArr, uid } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { ISchema, RecursionField, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { toArr, uid } from '@tachybase/schema'; import { Badge, Card, Collapse, CollapsePanelProps, CollapseProps, Empty, Input } from 'antd'; import cls from 'classnames'; import { clone } from 'lodash'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx b/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx index 2807e83a4..b21525727 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, observer, useField, useFieldSchema } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import { Select } from 'antd'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts b/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts index 1672ee36a..257ecde68 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts +++ b/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import React, { useCallback, useState } from 'react'; import { useCollectionManager_deprecated } from '../../../collection-manager'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/utils.tsx b/packages/core/client/src/schema-settings/DataTemplates/utils.tsx index fdf843fe7..4dba0278d 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/utils.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/utils.tsx @@ -1,5 +1,5 @@ import { ArrayBase } from '@formily/antd-v5'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { message } from 'antd'; import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx b/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx index 86f83af64..61230ed9b 100644 --- a/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx +++ b/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/css'; import dayjs from 'dayjs'; -import { connect, mapProps } from '@nocobase/schema'; +import { connect, mapProps } from '@tachybase/schema'; import { useBoolean } from 'ahooks'; import { Input, Radio, Space } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx b/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx index ae131d9a6..19a34b012 100644 --- a/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx +++ b/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { observer, useFieldSchema } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; import React, { useEffect, useMemo } from 'react'; import { useCompile } from '../../schema-component'; import { Variable } from '.././../schema-component'; diff --git a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx index 3d18f18b1..23d11cf84 100644 --- a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx +++ b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx @@ -1,5 +1,5 @@ -import { observer, useForm } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; import React from 'react'; import { useCollectionManager_deprecated } from '../../collection-manager'; import { SchemaComponent, useCompile, useProps } from '../../schema-component'; diff --git a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx index f777bbd6a..dad031aa7 100644 --- a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx +++ b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx @@ -1,6 +1,6 @@ import { DragOutlined, MenuOutlined, PlusOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { Space } from 'antd'; import classNames from 'classnames'; import React, { FC, useEffect, useMemo, useRef } from 'react'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx b/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx index 42eabaf45..49b98be2f 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx @@ -1,6 +1,6 @@ -import { createForm, onFieldValueChange } from '@nocobase/schema'; -import { FieldContext, FormContext } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { createForm, onFieldValueChange } from '@tachybase/schema'; +import { FieldContext, FormContext } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import React, { useContext, useMemo } from 'react'; import { SchemaComponent } from '../../schema-component/core'; import { useComponent } from '../../schema-component/hooks'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx index 75987a407..3e9b5abdb 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx @@ -1,8 +1,8 @@ import { CloseCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { TreeSelect } from '@formily/antd-v5'; -import { observer } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Select, Space } from 'antd'; import React, { useCallback, useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx index 622bc6cb0..59d03553f 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx @@ -1,10 +1,10 @@ -import { ArrayField as ArrayFieldModel, VoidField } from '@nocobase/schema'; +import { ArrayField as ArrayFieldModel, VoidField } from '@tachybase/schema'; import { ArrayFieldComponent as ArrayField, ObjectFieldComponent as ObjectField, observer, useField, -} from '@nocobase/schema'; +} from '@tachybase/schema'; import { Space } from 'antd'; import React, { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx index 7eb39166b..709e2eccb 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx @@ -1,8 +1,8 @@ import { CopyOutlined } from '@ant-design/icons'; import { ArrayBase } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { ISchema, RecursionField, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { toArr } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { ISchema, RecursionField, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { toArr } from '@tachybase/schema'; import { Badge, Card, Collapse, CollapsePanelProps, CollapseProps, Empty, Input } from 'antd'; import cls from 'classnames'; import { cloneDeep } from 'lodash'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/context.ts b/packages/core/client/src/schema-settings/LinkageRules/context.ts index a390a3abf..3d03d6166 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/context.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/context.ts @@ -1,5 +1,5 @@ -import { ObjectField } from '@nocobase/schema'; -import { Schema } from '@nocobase/schema'; +import { ObjectField } from '@tachybase/schema'; +import { Schema } from '@tachybase/schema'; import { createContext } from 'react'; export interface FilterContextProps { diff --git a/packages/core/client/src/schema-settings/LinkageRules/index.tsx b/packages/core/client/src/schema-settings/LinkageRules/index.tsx index 7e8a1d783..d341d55e6 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/index.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/index.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { Form } from '@nocobase/schema'; -import { observer, useFieldSchema } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; import React, { useMemo } from 'react'; import { FormBlockContext } from '../../block-provider'; import { useCollectionManager_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/useValues.ts b/packages/core/client/src/schema-settings/LinkageRules/useValues.ts index 12de544f4..c02d174e6 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/useValues.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/useValues.ts @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { useEffect, useContext } from 'react'; import { LinkageLogicContext } from './context'; diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index 940fd9333..837e30c59 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -1,8 +1,8 @@ import { css } from '@emotion/css'; import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input } from '@formily/antd-v5'; -import { Field, GeneralField, createForm } from '@nocobase/schema'; -import { ISchema, Schema, SchemaOptionsContext, useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field, GeneralField, createForm } from '@tachybase/schema'; +import { ISchema, Schema, SchemaOptionsContext, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { error } from '@nocobase/utils/client'; import type { DropdownProps } from 'antd'; import { diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx index 0c6dec51a..097ec19ff 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import React, { FC, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { DatePickerProvider, useCollectionManager_deprecated, useRecord } from '..'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx index 71bc100af..25b5ca86f 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { ISchema, Schema, useField } from '@nocobase/schema'; +import { ISchema, Schema, useField } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useCollectionManager_deprecated, useDesignable } from '..'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx index 32fe8cfe4..e9d26e80d 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, Schema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React, { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx b/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx index b8faee9a1..c552f7ba9 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx @@ -1,5 +1,5 @@ import { css } from '@emotion/css'; -import { ISchema, Schema, useField, useForm } from '@nocobase/schema'; +import { ISchema, Schema, useField, useForm } from '@tachybase/schema'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Select } from 'antd'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx b/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx index 1ae54351e..91899c540 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx b/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx index 494bced8e..ea4f9bb7d 100644 --- a/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx @@ -1,6 +1,6 @@ -import { Form } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; // @ts-ignore -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import _ from 'lodash'; import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx b/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx index 172a79d77..3cce5358f 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx @@ -1,4 +1,4 @@ -import { ISchema, Schema } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; import React, { useContext, useMemo } from 'react'; import { CollectionFieldOptions_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; import { useCompile, useGetFilterOptions } from '../../../schema-component'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts index e741da290..caebd64de 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts @@ -1,5 +1,5 @@ -import { Form } from '@nocobase/schema'; -import { Schema } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { Schema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { useFormBlockContext } from '../../../block-provider'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts index fc780366a..ccca2acae 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; import { CollectionFieldOptions } from '../../../data-source/collection/Collection'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts index 82d26a2a7..f1b23d22e 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; import { useParentCollection } from '../../../data-source/collection/AssociationProvider'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts index 2819f0ff1..a1f939877 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts index bb11cd62c..8811d35e5 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { useAPIClient } from '../../../api-client'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts index 1ba13e203..cb494c694 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; import { CollectionFieldOptions } from '../../../data-source/collection/Collection'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts index 6c0ac2641..d8a0ac739 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts @@ -1,5 +1,5 @@ -import { Form } from '@nocobase/schema'; -import { ISchema, Schema } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; import { useMemo } from 'react'; import { CollectionFieldOptions_deprecated, useCollection_deprecated } from '../../../collection-manager'; import { useBlockCollection } from './useBlockCollection'; diff --git a/packages/core/client/src/schema-settings/VariableInput/type.ts b/packages/core/client/src/schema-settings/VariableInput/type.ts index 0c083ec21..de2b0d9a2 100644 --- a/packages/core/client/src/schema-settings/VariableInput/type.ts +++ b/packages/core/client/src/schema-settings/VariableInput/type.ts @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import type { DefaultOptionType } from 'antd/lib/cascader'; export interface Option extends DefaultOptionType { diff --git a/packages/core/client/src/schema-settings/demos/schema-basic.tsx b/packages/core/client/src/schema-settings/demos/schema-basic.tsx index dc9943963..17b836344 100644 --- a/packages/core/client/src/schema-settings/demos/schema-basic.tsx +++ b/packages/core/client/src/schema-settings/demos/schema-basic.tsx @@ -7,7 +7,7 @@ import { SchemaSettings, useSchemaSettingsRender, } from '@nocobase/client'; -import { observer, useFieldSchema } from '@nocobase/schema'; +import { observer, useFieldSchema } from '@tachybase/schema'; const mySchemaSetting = new SchemaSettings({ name: 'MySchemaSetting', diff --git a/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts b/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts index a2e9b3195..1b4bebf74 100644 --- a/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts +++ b/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx b/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx index a481f2fde..680150640 100644 --- a/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx +++ b/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx @@ -1,5 +1,5 @@ -import { Form } from '@nocobase/schema'; -import { Schema, useFieldSchema } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { Schema, useFieldSchema } from '@tachybase/schema'; import React, { useContext, useMemo } from 'react'; import { CollectionFieldOptions_deprecated } from '../..'; import { isSystemField } from '../SchemaSettings'; diff --git a/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts b/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts index bd54a77d8..3dff6867d 100644 --- a/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts +++ b/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useCollectionManager_deprecated } from '../../collection-manager'; import { useColumnSchema } from '../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/schema-settings/isPatternDisabled.tsx b/packages/core/client/src/schema-settings/isPatternDisabled.tsx index 080cd7e8b..0b8ca59be 100644 --- a/packages/core/client/src/schema-settings/isPatternDisabled.tsx +++ b/packages/core/client/src/schema-settings/isPatternDisabled.tsx @@ -1,4 +1,4 @@ -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; export const isPatternDisabled = (fieldSchema: Schema) => { return fieldSchema?.['x-component-props']?.['pattern-disable'] == true; diff --git a/packages/core/client/src/schema-settings/types.ts b/packages/core/client/src/schema-settings/types.ts index 964ea04bf..54fe381ea 100644 --- a/packages/core/client/src/schema-settings/types.ts +++ b/packages/core/client/src/schema-settings/types.ts @@ -1,4 +1,4 @@ -import { Form } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; export interface DataScopeProps { /** diff --git a/packages/core/client/src/schema-templates/BlockTemplate.tsx b/packages/core/client/src/schema-templates/BlockTemplate.tsx index 7c4444384..3a42180eb 100644 --- a/packages/core/client/src/schema-templates/BlockTemplate.tsx +++ b/packages/core/client/src/schema-templates/BlockTemplate.tsx @@ -1,4 +1,4 @@ -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import React, { createContext, useContext, useMemo } from 'react'; import { RemoteSchemaComponent, useDesignable } from '..'; import { useSchemaTemplateManager } from './SchemaTemplateManagerProvider'; diff --git a/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx b/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx index cd60413bd..a6fe7cfcf 100644 --- a/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx +++ b/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx @@ -1,5 +1,5 @@ -import { ISchema, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import React, { ReactNode, createContext, useContext, useMemo } from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts b/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts index fb227fcc7..bd665041f 100644 --- a/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts +++ b/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { useBulkDestroyActionProps, useDestroyActionProps, useUpdateActionProps } from '../../block-provider/hooks'; import { useSchemaTemplateManager } from '../SchemaTemplateManagerProvider'; import { uiSchemaTemplatesCollection } from '../collections/uiSchemaTemplates'; diff --git a/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx b/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx index 2555e32f1..e6cdafd63 100644 --- a/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx +++ b/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx @@ -1,5 +1,5 @@ -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Card, message } from 'antd'; import cloneDeep from 'lodash/cloneDeep'; import React from 'react'; diff --git a/packages/core/client/src/user/ChangePassword.tsx b/packages/core/client/src/user/ChangePassword.tsx index eb7131cf3..fd558e085 100644 --- a/packages/core/client/src/user/ChangePassword.tsx +++ b/packages/core/client/src/user/ChangePassword.tsx @@ -1,5 +1,5 @@ -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { MenuProps } from 'antd'; import React, { useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/user/EditProfile.tsx b/packages/core/client/src/user/EditProfile.tsx index 6335303e4..d37cfd537 100644 --- a/packages/core/client/src/user/EditProfile.tsx +++ b/packages/core/client/src/user/EditProfile.tsx @@ -1,5 +1,5 @@ -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { MenuProps } from 'antd'; import React, { useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/user/Help.tsx b/packages/core/client/src/user/Help.tsx index 5d44021db..cda9a6214 100644 --- a/packages/core/client/src/user/Help.tsx +++ b/packages/core/client/src/user/Help.tsx @@ -5,7 +5,7 @@ import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { DropdownVisibleContext, usePlugin, useToken } from '..'; import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { parseHTML } from '@nocobase/utils/client'; /** diff --git a/packages/core/client/src/user/VerificationCode.tsx b/packages/core/client/src/user/VerificationCode.tsx index 45b0aacc1..124464b78 100644 --- a/packages/core/client/src/user/VerificationCode.tsx +++ b/packages/core/client/src/user/VerificationCode.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import { css } from '@emotion/css'; import { useAPIClient } from '../api-client'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useEffect, useRef, useState } from 'react'; import { Button, Input, message } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/variables/VariablesProvider.tsx b/packages/core/client/src/variables/VariablesProvider.tsx index 531d18477..140041033 100644 --- a/packages/core/client/src/variables/VariablesProvider.tsx +++ b/packages/core/client/src/variables/VariablesProvider.tsx @@ -1,4 +1,4 @@ -import { raw, untracked } from '@nocobase/schema'; +import { raw, untracked } from '@tachybase/schema'; import { getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; import React, { createContext, useCallback, useEffect, useMemo, useRef } from 'react'; diff --git a/packages/core/client/src/variables/__tests__/useVariables.test.tsx b/packages/core/client/src/variables/__tests__/useVariables.test.tsx index 04faeaf52..00b45a2e9 100644 --- a/packages/core/client/src/variables/__tests__/useVariables.test.tsx +++ b/packages/core/client/src/variables/__tests__/useVariables.test.tsx @@ -1,4 +1,4 @@ -import { SchemaExpressionScopeContext, SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaExpressionScopeContext, SchemaOptionsContext } from '@tachybase/schema'; import { act, renderHook, waitFor } from '@nocobase/test/client'; import React from 'react'; import { APIClientProvider } from '../../api-client'; diff --git a/packages/core/client/src/variables/hooks/useLocalVariables.tsx b/packages/core/client/src/variables/hooks/useLocalVariables.tsx index 93e557f9c..fa678c09a 100644 --- a/packages/core/client/src/variables/hooks/useLocalVariables.tsx +++ b/packages/core/client/src/variables/hooks/useLocalVariables.tsx @@ -1,4 +1,4 @@ -import { Form } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; import { useMemo } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; import { useBlockCollection } from '../../schema-settings/VariableInput/hooks/useBlockCollection'; diff --git a/packages/core/schema/package.json b/packages/core/schema/package.json index daa03feff..0a9fdcb6f 100644 --- a/packages/core/schema/package.json +++ b/packages/core/schema/package.json @@ -1,5 +1,5 @@ { - "name": "@nocobase/schema", + "name": "@tachybase/schema", "version": "0.21.24", "license": "Apache-2.0", "main": "lib/index.js", diff --git a/packages/core/server/package.json b/packages/core/server/package.json index f54b78d9d..d43153d7e 100644 --- a/packages/core/server/package.json +++ b/packages/core/server/package.json @@ -18,10 +18,10 @@ "@nocobase/evaluators": "workspace:*", "@nocobase/logger": "workspace:*", "@nocobase/resourcer": "workspace:*", - "@nocobase/schema": "workspace:*", "@nocobase/sdk": "workspace:*", "@nocobase/telemetry": "workspace:*", "@nocobase/utils": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/decompress": "4.2.4", "@types/ini": "^1.3.31", "@types/koa-send": "^4.1.3", diff --git a/packages/core/server/src/plugin-manager/constants.ts b/packages/core/server/src/plugin-manager/constants.ts index 7628f4625..bed01d8a2 100644 --- a/packages/core/server/src/plugin-manager/constants.ts +++ b/packages/core/server/src/plugin-manager/constants.ts @@ -2,7 +2,7 @@ export const APP_NAME = 'tachybase'; export const DEFAULT_PLUGIN_STORAGE_PATH = 'storage/plugins'; export const DEFAULT_PLUGIN_PATH = 'packages/plugins/'; export const pluginPrefix = ( - process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@nocobase/plugin-pro-,@hera/plugin-' + process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-' ).split(','); export const requireRegex = /require\s*\(['"`](.*?)['"`]\)/g; export const importRegex = /^import(?:['"\s]*([\w*${}\s,]+)from\s*)?['"\s]['"\s](.*[@\w_-]+)['"\s].*/gm; diff --git a/packages/core/server/src/plugin-manager/plugin-manager.ts b/packages/core/server/src/plugin-manager/plugin-manager.ts index 65303e745..02f937b7c 100644 --- a/packages/core/server/src/plugin-manager/plugin-manager.ts +++ b/packages/core/server/src/plugin-manager/plugin-manager.ts @@ -136,7 +136,7 @@ export class PluginManager { */ static getPluginPkgPrefix() { return ( - process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@nocobase/plugin-pro-,@hera/plugin-' + process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-' ).split(','); } diff --git a/packages/plugins/@hera/plugin-approval-mobile/package.json b/packages/plugins/@hera/plugin-approval-mobile/package.json index 35d2af5fa..21c15b82c 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/package.json +++ b/packages/plugins/@hera/plugin-approval-mobile/package.json @@ -4,7 +4,7 @@ "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "5.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/lodash": "^4.17.0", "antd": "5.16.1", "antd-mobile": "^5.35.0", diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/ApprovalBlockInitializer.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/ApprovalBlockInitializer.tsx index 86626ca17..ce7064c59 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/ApprovalBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/ApprovalBlockInitializer.tsx @@ -5,7 +5,7 @@ import { useSchemaInitializerItem, } from '@nocobase/client'; import React from 'react'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Toast } from 'antd-mobile'; import { CalendarOutline } from 'antd-mobile-icons'; diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/TodosBlock.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/TodosBlock.tsx index 7fb13aff2..01ced803e 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/TodosBlock.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/TodosBlock.tsx @@ -8,7 +8,7 @@ import { TabBatchProcessingType } from './component/TabBatchProcessingType'; import { TabApprovalType } from './component/TabApprovalType'; import { TabReadingType } from './component/TabReadingType'; import { TabApprovalItem } from './component/TabApprovalItem'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; export const TodosBlock = () => { const fieldSchema = useFieldSchema(); diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApplicantType.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApplicantType.tsx index 4f8105056..1d0f4888c 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApplicantType.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApplicantType.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Picker, Space } from 'antd-mobile'; import { DownOutline } from 'antd-mobile-icons'; import React, { useState } from 'react'; diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApprovalItem.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApprovalItem.tsx index 2287700a6..8d5c2cabe 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApprovalItem.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/component/TabApprovalItem.tsx @@ -1,4 +1,4 @@ -import { connect, useFieldSchema } from '@nocobase/schema'; +import { connect, useFieldSchema } from '@tachybase/schema'; import { Badge, Empty, List, Space, Tag } from 'antd-mobile'; import React from 'react'; diff --git a/packages/plugins/@hera/plugin-approval/package.json b/packages/plugins/@hera/plugin-approval/package.json index 9fca5a3ac..5c0e6614e 100644 --- a/packages/plugins/@hera/plugin-approval/package.json +++ b/packages/plugins/@hera/plugin-approval/package.json @@ -14,8 +14,8 @@ "@nocobase/data-source-manager": "workspace:*", "@nocobase/database": "workspace:*", "@nocobase/plugin-ui-schema-storage": "workspace:*", - "@nocobase/schema": "workspace:*", "@nocobase/utils": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/lodash": "4.17.0", "antd": "5.16.1", "lodash": "^4.17.21", @@ -25,9 +25,9 @@ }, "peerDependencies": { "@nocobase/client": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" + "@nocobase/test": "workspace:*", + "@tachybase/plugin-workflow": "workspace:*" }, "description.zh-CN": "可配置通用的审批流程,在审批中心完成审批的完整操作。", "displayName.zh-CN": "工作流:审批中心" diff --git a/packages/plugins/@hera/plugin-approval/src/client/common/Pd.FormBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/common/Pd.FormBlock.tsx index 59b03c3e0..4d16f66e4 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/common/Pd.FormBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/common/Pd.FormBlock.tsx @@ -11,7 +11,7 @@ import { useAssociationNames, useDesignable, } from '@nocobase/client'; -import { RecursionField, createForm, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, createForm, useField, useFieldSchema } from '@tachybase/schema'; import { Fragment, useContext, useMemo, useRef } from 'react'; import { useContextApprovalExecution } from '../usage/approval-block/common/Pd.ApprovalExecution'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/VC.ApprovalInstructionNode.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/VC.ApprovalInstructionNode.tsx index 752c85219..53f6de645 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/VC.ApprovalInstructionNode.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/VC.ApprovalInstructionNode.tsx @@ -1,5 +1,5 @@ import { css, useCompile } from '@nocobase/client'; -import { Branch, NodeDefaultView, useFlowContext, useStyles } from '@nocobase/plugin-workflow/client'; +import { Branch, NodeDefaultView, useFlowContext, useStyles } from '@tachybase/plugin-workflow/client'; import { Tag } from 'antd'; import React from 'react'; import { APPROVAL_ACTION_STATUS, approvalStatusConfigObj } from '../../constants'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesAddition.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesAddition.tsx index 328f2169c..1e76afc4b 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesAddition.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesAddition.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { PlusOutlined } from '@ant-design/icons'; import { ArrayItems } from '@formily/antd-v5'; -import { useWorkflowExecuted } from '@nocobase/plugin-workflow/client'; +import { useWorkflowExecuted } from '@tachybase/plugin-workflow/client'; import { Button, Popover, Space } from 'antd'; import { useCallback, useState } from 'react'; import { useTranslation } from '../../../locale'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesSelect.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesSelect.tsx index b94c96ebb..d9a71a1e2 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesSelect.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approval-config/VC.AssigneesSelect.tsx @@ -1,6 +1,6 @@ import { RemoteSelect, SchemaComponent, Variable, useCollectionFilterOptions, useToken } from '@nocobase/client'; -import { FilterDynamicComponent, useWorkflowVariableOptions } from '@nocobase/plugin-workflow/client'; -import { useField } from '@nocobase/schema'; +import { FilterDynamicComponent, useWorkflowVariableOptions } from '@tachybase/plugin-workflow/client'; +import { useField } from '@tachybase/schema'; import { default as React } from 'react'; // 添加审批人-选择器 diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/Iz.ApproverAddBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/Iz.ApproverAddBlock.tsx index 603486439..c60b6310d 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/Iz.ApproverAddBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/Iz.ApproverAddBlock.tsx @@ -4,7 +4,7 @@ import PluginWorkflow, { useFlowContext, useNodeContext, useTrigger, -} from '@nocobase/plugin-workflow/client'; +} from '@tachybase/plugin-workflow/client'; import { NAMESPACE } from '../../../locale'; import { ApproverAddBlockComponent } from './VC.ApproverAddBlock'; import { ApproverAddBlockKit } from './VC.ApproverAddBlockKit'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApprovalFormBlockProvider.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApprovalFormBlockProvider.tsx index 41f27229c..6e6b63d44 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApprovalFormBlockProvider.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApprovalFormBlockProvider.tsx @@ -9,7 +9,7 @@ import { useAssociationNames, useDesignable, } from '@nocobase/client'; -import { RecursionField, createForm, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, createForm, useField, useFieldSchema } from '@tachybase/schema'; import React, { Fragment, useContext, useMemo, useRef } from 'react'; export const ApprovalFormBlockProvider = (props) => { diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverAddBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverAddBlock.tsx index 65b0b92e1..bd7ac4965 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverAddBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverAddBlock.tsx @@ -8,7 +8,7 @@ import { useSchemaInitializerItem, useSchemaTemplateManager, } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; import _ from 'lodash'; export const ApproverAddBlockComponent = () => { diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverBlock.tsx index 0a78a23ba..c20c49d4d 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverBlock.tsx @@ -1,7 +1,7 @@ import { SchemaComponent, useAPIClient, useFormBlockContext, useRequest } from '@nocobase/client'; import { uid } from '@nocobase/utils/client'; import { default as React, useCallback, useContext } from 'react'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { Spin } from 'antd'; import { flatSchemaArray } from '../../../constants'; @@ -9,7 +9,7 @@ import { ApprovalFormBlockProvider } from './VC.ApprovalFormBlockProvider'; import { FormBlockProvider } from '../../../common/Pd.FormBlock'; import { ActionBarProvider } from './Pd.ActionBarProvider'; import { ApprovalActionProvider } from './Pd.ApprovalActionProvider'; -import { DetailsBlockProvider, SimpleDesigner } from '@nocobase/plugin-workflow/client'; +import { DetailsBlockProvider, SimpleDesigner } from '@tachybase/plugin-workflow/client'; import { ContextApproverBlock } from './Pd.SchemaConfigButtonContext'; import { useApprovalFormBlockProps } from './useApprovalFormBlockProps'; import { ContextApproverConfig } from '../Pd.ContextApproverConfig'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverInterface.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverInterface.tsx index e5a72a2b4..58e8d2776 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverInterface.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/approver-interface/VC.ApproverInterface.tsx @@ -5,7 +5,7 @@ import { SchemaComponentContext, css, } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; import { uid } from '@nocobase/utils/client'; import React, { useContext, useState } from 'react'; import { CollectionApprovalTodos } from '../../../common/Cn.ApprovalTodos'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/index.ts b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/index.ts index 249a4aad5..b4b399a93 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/index.ts @@ -1,5 +1,5 @@ import { Plugin } from '@nocobase/client'; -import PluginWorkflow from '@nocobase/plugin-workflow/client'; +import PluginWorkflow from '@tachybase/plugin-workflow/client'; import { ApprovalInstruction } from './node.ApprovalInstruction'; import { ApproverActionConfigInitializer } from './approver-interface/Iz.ApproverActionConfig'; import { ApproverAddBlockInitializer } from './approver-interface/Iz.ApproverAddBlock'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/node.ApprovalInstruction.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/node.ApprovalInstruction.tsx index 36f19f0fd..84e87a5bc 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/node.ApprovalInstruction.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/instruction/node.ApprovalInstruction.tsx @@ -1,6 +1,6 @@ import { ArrayItems } from '@formily/antd-v5'; import { css } from '@nocobase/client'; -import { Instruction, RadioWithTooltip } from '@nocobase/plugin-workflow/client'; +import { Instruction, RadioWithTooltip } from '@tachybase/plugin-workflow/client'; import { uid } from '@nocobase/utils/client'; import React from 'react'; import { APPROVAL_ACTION_STATUS } from '../../constants'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts index d9d5a3a63..3dd893e76 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/index.ts @@ -1,5 +1,5 @@ import { Plugin } from '@nocobase/client'; -import PluginWorkflow from '@nocobase/plugin-workflow/client'; +import PluginWorkflow from '@tachybase/plugin-workflow/client'; import { ApprovalTrigger } from './node.ApprovalTrigger'; import { LauncherActionConfigInitializer } from './launcher-interface/Iz.LauncherActionConfig'; import { LauncherAddBlockButtonIntializer } from './launcher-interface/Iz.LauncherAddBlockButton'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.LauncherInterface.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.LauncherInterface.tsx index 030148c9b..019aeecf1 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.LauncherInterface.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.LauncherInterface.tsx @@ -1,5 +1,5 @@ import { SchemaComponent, parseCollectionName } from '@nocobase/client'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import React from 'react'; import { SchemaAddBlock } from './VC.SchemaAddBlock'; import { getSchemaLauncherInterface } from './Sm.LauncherInterface'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.SchemaAddBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.SchemaAddBlock.tsx index b23d652ce..38c311888 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.SchemaAddBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/launcher-interface/VC.SchemaAddBlock.tsx @@ -6,7 +6,7 @@ import { useFormBlockProps, useRequest, } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; import { uid } from '@nocobase/utils/client'; import { Spin } from 'antd'; import React, { useContext } from 'react'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/node.ApprovalTrigger.tsx b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/node.ApprovalTrigger.tsx index e3794338e..f1215e910 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/node.ApprovalTrigger.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/configuration/trigger/node.ApprovalTrigger.tsx @@ -5,8 +5,8 @@ import { Trigger, getCollectionFieldOptions, useWorkflowAnyExecuted, -} from '@nocobase/plugin-workflow/client'; -import { useForm } from '@nocobase/schema'; +} from '@tachybase/plugin-workflow/client'; +import { useForm } from '@tachybase/schema'; import { SchemaConfigButton } from './VC.ConfigButton'; import { NAMESPACE, tval, usePluginTranslation } from '../../locale'; import { LauncherInterface } from './launcher-interface/VC.LauncherInterface'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/constants.ts b/packages/plugins/@hera/plugin-approval/src/client/constants.ts index de3f6a727..c356e7c41 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/constants.ts +++ b/packages/plugins/@hera/plugin-approval/src/client/constants.ts @@ -1,4 +1,4 @@ -import { JOB_STATUS } from '@nocobase/plugin-workflow/client'; +import { JOB_STATUS } from '@tachybase/plugin-workflow/client'; import { NAMESPACE, lang } from './locale'; // 审批状态 export const APPROVAL_STATUS = { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/common/Pd.FlowContext.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/common/Pd.FlowContext.tsx index 9681ba49e..afbc21a05 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/common/Pd.FlowContext.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/common/Pd.FlowContext.tsx @@ -1,4 +1,4 @@ -import { FlowContext } from '@nocobase/plugin-workflow/client'; +import { FlowContext } from '@tachybase/plugin-workflow/client'; import React, { useContext } from 'react'; export function useFlowContext() { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.ApplyActionStatus.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.ApplyActionStatus.tsx index b49528795..7d0d3591d 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.ApplyActionStatus.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.ApplyActionStatus.tsx @@ -1,6 +1,6 @@ import React, { useContext } from 'react'; import { useCurrentUserContext } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; import { createContext } from 'react'; import { useApproval } from '../../approval-common/Pd.ApprovalData'; import { APPROVAL_STATUS } from '../../../constants'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.WithdrawAction.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.WithdrawAction.tsx index 4a259f14c..b2851effa 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.WithdrawAction.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/Pd.WithdrawAction.tsx @@ -1,5 +1,5 @@ import { useCurrentUserContext } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; import { APPROVAL_STATUS } from '../../../constants'; import { useApproval } from '../../approval-common/Pd.ApprovalData'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/VC.ViewActionLaunchContent.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/VC.ViewActionLaunchContent.tsx index a53032566..3de5fe798 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/VC.ViewActionLaunchContent.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/VC.ViewActionLaunchContent.tsx @@ -7,8 +7,8 @@ import { useRecord, useRequest, } from '@nocobase/client'; -import { DetailsBlockProvider, FlowContext } from '@nocobase/plugin-workflow/client'; -import { useForm } from '@nocobase/schema'; +import { DetailsBlockProvider, FlowContext } from '@tachybase/plugin-workflow/client'; +import { useForm } from '@tachybase/schema'; import { Result, Spin } from 'antd'; import { useContext } from 'react'; import { NAMESPACE } from '../../../locale'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/apply-button/hooks/useSubmit.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/apply-button/hooks/useSubmit.tsx index a2c660298..988055643 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/apply-button/hooks/useSubmit.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/apply-button/hooks/useSubmit.tsx @@ -5,8 +5,8 @@ import { useBlockRequestContext, useCollection_deprecated, } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; -import { useField, useForm } from '@nocobase/schema'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; +import { useField, useForm } from '@tachybase/schema'; import { useContextApprovalStatus } from '../Pd.ActionStatus'; export function useSubmit() { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useDestroyAction.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useDestroyAction.tsx index c74dd444f..60ae730dc 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useDestroyAction.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useDestroyAction.tsx @@ -1,5 +1,5 @@ import { useAPIClient, useActionContext } from '@nocobase/client'; -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { useApproval } from '../../../approval-common/Pd.ApprovalData'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useFormBlockProps.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useFormBlockProps.tsx index d164e8fcd..ee53b8687 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useFormBlockProps.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useFormBlockProps.tsx @@ -1,6 +1,6 @@ import { useCurrentUserContext } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; -import { useForm } from '@nocobase/schema'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; +import { useForm } from '@tachybase/schema'; import { useEffect } from 'react'; import { useContextApprovalExecution } from '../../common/Pd.ApprovalExecution'; import { useApproval } from '../../../approval-common/Pd.ApprovalData'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useSubmit.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useSubmit.tsx index ecb65718a..e76b94310 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useSubmit.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useSubmit.tsx @@ -1,6 +1,6 @@ import { useAPIClient, useActionContext } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; -import { useField, useForm } from '@nocobase/schema'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; +import { useField, useForm } from '@tachybase/schema'; import _ from 'lodash'; import { useApproval } from '../../../approval-common/Pd.ApprovalData'; import { useContextApprovalStatus } from '../Pd.ApplyActionStatus'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useWithdrawAction.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useWithdrawAction.tsx index b4b6d5741..f13660aef 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useWithdrawAction.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/launch/hooks/useWithdrawAction.tsx @@ -1,5 +1,5 @@ import { useAPIClient, useActionContext } from '@nocobase/client'; -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { useApproval } from '../../../approval-common/Pd.ApprovalData'; // 撤回 diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/Dt.ApprovalFormBlock.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/Dt.ApprovalFormBlock.tsx index d415bb3a6..23877929f 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/Dt.ApprovalFormBlock.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/Dt.ApprovalFormBlock.tsx @@ -10,8 +10,8 @@ import { useCurrentUserContext, useDesignable, } from '@nocobase/client'; -import { useFlowContext } from '@nocobase/plugin-workflow/client'; -import { RecursionField, createForm, useField, useFieldSchema } from '@nocobase/schema'; +import { useFlowContext } from '@tachybase/plugin-workflow/client'; +import { RecursionField, createForm, useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import React, { Fragment, useContext, useMemo, useRef } from 'react'; import { useContextApprovalExecutions } from './Pd.ApprovalExecutions'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/VC.ViewActionTodosContent.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/VC.ViewActionTodosContent.tsx index b621a4fdf..54131bccd 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/VC.ViewActionTodosContent.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/VC.ViewActionTodosContent.tsx @@ -6,7 +6,7 @@ import { useRecord, useRequest, } from '@nocobase/client'; -import { DetailsBlockProvider, ExecutionContextProvider } from '@nocobase/plugin-workflow/client'; +import { DetailsBlockProvider, ExecutionContextProvider } from '@tachybase/plugin-workflow/client'; import { Result, Spin } from 'antd'; import _ from 'lodash'; import React, { useContext } from 'react'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/hooks/useSubmit.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/hooks/useSubmit.tsx index 7ad618d34..cbcc7c2c6 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/hooks/useSubmit.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-block/todos/hooks/useSubmit.tsx @@ -1,5 +1,5 @@ import { useAPIClient, useActionContext, useRefreshActionProps } from '@nocobase/client'; -import { useField, useForm } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; import { useContextApprovalAction } from '../Pd.ApprovalAction'; import { useContextApprovalExecutions } from '../Pd.ApprovalExecutions'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/VC.ApprovalProcess.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/VC.ApprovalProcess.tsx index 774fe99d6..4e3d65f48 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/VC.ApprovalProcess.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/VC.ApprovalProcess.tsx @@ -1,12 +1,12 @@ import { createStyles, useCurrentUserContext } from '@nocobase/client'; -import { EXECUTION_STATUS } from '@nocobase/plugin-workflow/client'; +import { EXECUTION_STATUS } from '@tachybase/plugin-workflow/client'; import { Space, Table } from 'antd'; import _ from 'lodash'; import React, { useMemo } from 'react'; import { useApproval } from './Pd.ApprovalData'; import { APPROVAL_ACTION_STATUS, APPROVAL_STATUS } from '../../constants'; import { ContextWithActionEnabled } from './Pd.WithActionEnabled'; -import { usePluginTranslation, useTranslation } from '../../locale'; +import { tval, usePluginTranslation, useTranslation } from '../../locale'; import { getAntdTableColumns } from './process-columns/columns'; // 审批(发起/待办)区块-查看-审批处理 @@ -47,7 +47,6 @@ const getStyles = createStyles(({ css, token }) => ({ })); function getResults({ approval, currentUser }) { - const { t } = useTranslation(); const { workflow, approvalExecutions, records } = approval; approvalExecutions.sort((a, b) => Date.parse(a.createdAt) - Date.parse(b.createdAt)); @@ -59,7 +58,7 @@ function getResults({ approval, currentUser }) { records: [ { groupCount: 1, - node: { title: t('Apply') }, + node: { title: tval('Apply') }, user: { ...approval.createdBy, id: approval.createdById, diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.node.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.node.tsx index 091f7b925..3fe17ecf1 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.node.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.node.tsx @@ -1,4 +1,4 @@ -import { observer, useField, Field } from '@nocobase/schema'; +import { observer, useField, Field } from '@tachybase/schema'; export const NodeColumn = observer( () => { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.status.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.status.tsx index 5ca45703b..a81dde72b 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.status.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.status.tsx @@ -1,5 +1,5 @@ import { useCompile, useRecord } from '@nocobase/client'; -import { Field, observer, useField } from '@nocobase/schema'; +import { Field, observer, useField } from '@tachybase/schema'; import { Tag } from 'antd'; import _ from 'lodash'; import React from 'react'; diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.user.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.user.tsx index 3ba459e79..a9b56f4fc 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.user.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.user.tsx @@ -1,4 +1,4 @@ -import { observer, useField, Field } from '@nocobase/schema'; +import { observer, useField, Field } from '@tachybase/schema'; export const UserColumn = observer( () => { diff --git a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.workflow.tsx b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.workflow.tsx index ca1e4a556..42da79711 100644 --- a/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.workflow.tsx +++ b/packages/plugins/@hera/plugin-approval/src/client/usage/approval-common/approval-columns/column.workflow.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { css } from '@nocobase/client'; -import { observer, useField, Field } from '@nocobase/schema'; +import { observer, useField, Field } from '@tachybase/schema'; import { useTranslation } from '../../../locale'; export const WorkflowColumn = observer( diff --git a/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.js b/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts similarity index 97% rename from packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.js rename to packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts index 127443982..cb1cc4562 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.js +++ b/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts @@ -1,6 +1,7 @@ import { uid } from '@nocobase/utils'; -import { Instruction, JOB_STATUS } from '@nocobase/plugin-workflow'; +import { Instruction, JOB_STATUS } from '@tachybase/plugin-workflow'; import { APPROVAL_STATUS, APPROVAL_ACTION_STATUS } from './constants'; +import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; const NEGOTIATION_MODE = { SINGLE: Symbol('single'), ALL: Symbol('all'), @@ -231,7 +232,7 @@ export default class ApprovalInstruction extends Instruction { return job; } async duplicateConfig(node, { transaction }) { - const uiSchemaRepo = this.workflow.app.db.getRepository('uiSchemas'); + const uiSchemaRepo = this.workflow.app.db.getRepository('uiSchemas'); if (!node.config.applyDetail) { return node.config; } diff --git a/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts b/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts index 2bdd695e9..cba818b24 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts +++ b/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts @@ -2,7 +2,7 @@ import { get } from 'lodash'; import { Op, BelongsTo, HasOne } from 'sequelize'; import { modelAssociationByKey } from '@nocobase/database'; import { parseCollectionName } from '@nocobase/data-source-manager'; -import { EXECUTION_STATUS, Trigger, toJSON, JOB_STATUS } from '@nocobase/plugin-workflow'; +import { EXECUTION_STATUS, Trigger, toJSON, JOB_STATUS } from '@tachybase/plugin-workflow'; import { APPROVAL_ACTION_STATUS, APPROVAL_STATUS } from './constants'; import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; diff --git a/packages/plugins/@hera/plugin-approval/src/server/actions.ts b/packages/plugins/@hera/plugin-approval/src/server/actions.ts index c3953b8be..3c23be238 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/actions.ts +++ b/packages/plugins/@hera/plugin-approval/src/server/actions.ts @@ -1,5 +1,5 @@ import actions, { utils } from '@nocobase/actions'; -import WorkflowPlugin, { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; import { APPROVAL_STATUS, APPROVAL_ACTION_STATUS } from './constants'; import { parseCollectionName } from '@nocobase/data-source-manager'; diff --git a/packages/plugins/@hera/plugin-approval/src/server/plugin.ts b/packages/plugins/@hera/plugin-approval/src/server/plugin.ts index 7fdb5679b..aac3fce6d 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/plugin.ts +++ b/packages/plugins/@hera/plugin-approval/src/server/plugin.ts @@ -1,6 +1,6 @@ import path from 'path'; import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '@tachybase/plugin-workflow'; import ApprovalTrigger from './ApprovalTrigger'; import ApprovalInstruction from './ApprovalInstruction'; import { init } from './actions'; diff --git a/packages/plugins/@hera/plugin-audit-logs/package.json b/packages/plugins/@hera/plugin-audit-logs/package.json index 7ef6fce10..545a4726b 100644 --- a/packages/plugins/@hera/plugin-audit-logs/package.json +++ b/packages/plugins/@hera/plugin-audit-logs/package.json @@ -17,10 +17,10 @@ "peerDependencies": { "@nocobase/client": "workspace:*", "@nocobase/database": "workspace:*", - "@nocobase/schema": "workspace:*", "@nocobase/server": "workspace:*", "@nocobase/test": "workspace:*", - "@nocobase/utils": "workspace:*" + "@nocobase/utils": "workspace:*", + "@tachybase/schema": "workspace:*" }, "description.zh-CN": "审计日志。", "displayName.zh-CN": "审计日志" diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx index 3375f3739..51204e198 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx @@ -1,5 +1,5 @@ import { TableOutlined } from '@ant-design/icons'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { createTableBlockSchema, SchemaInitializerItem, diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsField.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsField.tsx index d545e1a46..c0a3065fd 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsField.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsField.tsx @@ -1,6 +1,6 @@ import { EllipsisWithTooltip, useCompile } from '@nocobase/client'; import React from 'react'; -import { observer, useField } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; export const AuditLogsField = observer( () => { diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsValue.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsValue.tsx index 1c44af811..50ee5730a 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsValue.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/components/AuditLogsValue.tsx @@ -1,6 +1,6 @@ import { EllipsisWithTooltip, FormProvider, SchemaComponent, useRecord } from '@nocobase/client'; import React from 'react'; -import { observer, useField } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; export const AuditLogsValue = observer( () => { diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx index 6fdece6a0..bb422e851 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx @@ -1,5 +1,5 @@ import { ArrayTable } from '@formily/antd-v5'; -import { observer, useField } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; import { ExtendCollectionsProvider, FormProvider, diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx index d86ef58a5..32aa50988 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsDataScope, diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx b/packages/plugins/@hera/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx index 5b3a2b87a..a3bd93fe9 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx @@ -1,5 +1,5 @@ import { MenuOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { createDesignable, Resizable, SchemaInitializer, useAPIClient, useDesignable } from '@nocobase/client'; import React from 'react'; import { tval, useAuditLogsTranslation } from '../locale'; diff --git a/packages/plugins/@hera/plugin-audit-logs/src/client/utils.ts b/packages/plugins/@hera/plugin-audit-logs/src/client/utils.ts index 763e70c1f..5e5988fce 100644 --- a/packages/plugins/@hera/plugin-audit-logs/src/client/utils.ts +++ b/packages/plugins/@hera/plugin-audit-logs/src/client/utils.ts @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { tval } from './locale'; export const createSchema = () => { diff --git a/packages/plugins/@hera/plugin-core/package.json b/packages/plugins/@hera/plugin-core/package.json index 7c6b0de35..7c5ce1b33 100644 --- a/packages/plugins/@hera/plugin-core/package.json +++ b/packages/plugins/@hera/plugin-core/package.json @@ -13,8 +13,8 @@ "@ant-design/pro-layout": "^7.16.11", "@emotion/css": "^11.11.2", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", "@react-pdf/renderer": "^3.3.2", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "antd-style": "3.4.5", diff --git a/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx b/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx index 799742079..fbb064eaa 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx @@ -5,7 +5,7 @@ import { Document, Page, pdfjs } from 'react-pdf'; import { saveAs } from 'file-saver'; import 'react-pdf/dist/Page/AnnotationLayer.css'; import 'react-pdf/dist/Page/TextLayer.css'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useRequest } from '@nocobase/client'; import { useTranslation } from '../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/components/SignatureInput.tsx b/packages/plugins/@hera/plugin-core/src/client/components/SignatureInput.tsx index 484f18a7e..ddad802fd 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/SignatureInput.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/SignatureInput.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps } from '@nocobase/schema'; +import { connect, mapProps } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useRef, useEffect } from 'react'; import SignaturePad from './SignaturePad'; diff --git a/packages/plugins/@hera/plugin-core/src/client/components/custom-components/CustomComponentDispatcher.tsx b/packages/plugins/@hera/plugin-core/src/client/components/custom-components/CustomComponentDispatcher.tsx index d786cde86..c7222bd19 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/custom-components/CustomComponentDispatcher.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/custom-components/CustomComponentDispatcher.tsx @@ -2,7 +2,7 @@ import { SchemaComponent, SchemaSettings, useApp, useDesignable, usePlugin } fro import React from 'react'; import { ErrorBoundary } from 'react-error-boundary'; import { useTranslation } from '../../locale'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { Field } from '@nocobase/database'; import { useCustomComponent } from '../../hooks/useCustomComponent'; import { CustomComponentType } from './custom-components'; diff --git a/packages/plugins/@hera/plugin-core/src/client/components/custom-components/custom-components.ts b/packages/plugins/@hera/plugin-core/src/client/components/custom-components/custom-components.ts index 3e9eb5f78..115213578 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/custom-components/custom-components.ts +++ b/packages/plugins/@hera/plugin-core/src/client/components/custom-components/custom-components.ts @@ -1,4 +1,4 @@ -import { ReactFC } from '@nocobase/schema'; +import { ReactFC } from '@tachybase/schema'; import { ComponentType, MemoExoticComponent } from 'react'; export interface CustomFunctionComponent

extends React.FunctionComponent

{ diff --git a/packages/plugins/@hera/plugin-core/src/client/components/excel-table/ExcelFile.tsx b/packages/plugins/@hera/plugin-core/src/client/components/excel-table/ExcelFile.tsx index a6bedd773..1f86794b5 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/excel-table/ExcelFile.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/excel-table/ExcelFile.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps } from '@nocobase/schema'; +import { connect, mapProps } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useRef, useState } from 'react'; import ModalFullScreen from '../modal-full-screen/ModalFullScreen'; diff --git a/packages/plugins/@hera/plugin-core/src/client/components/fields/AssociatedField.tsx b/packages/plugins/@hera/plugin-core/src/client/components/fields/AssociatedField.tsx index 893fd68b8..9b5fc8a79 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/fields/AssociatedField.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/fields/AssociatedField.tsx @@ -1,5 +1,5 @@ import _ from 'lodash'; -import { ISchema, RecursionField, connect, observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { ISchema, RecursionField, connect, observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { ActionContextProvider, CollectionProvider_deprecated, diff --git a/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx b/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx index 8b8299001..c3f15d7b2 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx @@ -1,5 +1,5 @@ -import { onFormValuesChange } from '@nocobase/schema'; -import { useField, useFieldSchema, useForm, useFormEffects } from '@nocobase/schema'; +import { onFormValuesChange } from '@tachybase/schema'; +import { useField, useFieldSchema, useForm, useFormEffects } from '@tachybase/schema'; import { Input } from '@nocobase/client'; import { Descriptions, DescriptionsProps } from 'antd'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/FormFilterScope.tsx b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/FormFilterScope.tsx index e7da338e5..5b413200e 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/FormFilterScope.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/FormFilterScope.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/css'; import { ArrayCollapse } from '@formily/antd-v5'; -import { Form } from '@nocobase/schema'; -import { observer, useField, useFieldSchema } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; +import { observer, useField, useFieldSchema } from '@tachybase/schema'; import { FormBlockContext, RecordProvider, diff --git a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/VariableInput.tsx b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/VariableInput.tsx index f51752209..be112ad64 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/VariableInput.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/VariableInput.tsx @@ -1,7 +1,7 @@ -import { Form } from '@nocobase/schema'; +import { Form } from '@tachybase/schema'; // @ts-ignore -import { Schema } from '@nocobase/schema'; -import { SchemaOptionsContext, useField, useFieldSchema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; +import { SchemaOptionsContext, useField, useFieldSchema } from '@tachybase/schema'; import { CollectionFieldOptions, useVariableScope, diff --git a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/context.ts b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/context.ts index 8ce483c3f..6a26dc2e3 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/filter-form/context.ts +++ b/packages/plugins/@hera/plugin-core/src/client/components/filter-form/context.ts @@ -1,5 +1,5 @@ -import { ObjectField } from '@nocobase/schema'; -import { Schema } from '@nocobase/schema'; +import { ObjectField } from '@tachybase/schema'; +import { Schema } from '@tachybase/schema'; import { createContext } from 'react'; export interface FilterContextProps { diff --git a/packages/plugins/@hera/plugin-core/src/client/components/system/OnlineUserProvider.tsx b/packages/plugins/@hera/plugin-core/src/client/components/system/OnlineUserProvider.tsx index db53b4a18..7fffd5a80 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/system/OnlineUserProvider.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/system/OnlineUserProvider.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { css, useAPIClient, useApp } from '@nocobase/client'; import { Button, Dropdown } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx b/packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx index 3fbe7b019..f8c8aaabc 100644 --- a/packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx @@ -35,7 +35,7 @@ import { useResourceActionContext, } from '@nocobase/client'; import PluginACLClient, { RolesManagerContext } from '@nocobase/plugin-acl/client'; -import { connect, mapReadPretty, uid, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { connect, mapReadPretty, uid, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { App, Button, diff --git a/packages/plugins/@hera/plugin-core/src/client/features/embed/usePageSettingsProps.tsx b/packages/plugins/@hera/plugin-core/src/client/features/embed/usePageSettingsProps.tsx index 45be68793..4a8c32833 100644 --- a/packages/plugins/@hera/plugin-core/src/client/features/embed/usePageSettingsProps.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/features/embed/usePageSettingsProps.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { App } from 'antd'; import { useMatch } from 'react-router-dom'; import { useTranslation } from '../../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/hooks/useFilterBlockActionProps.tsx b/packages/plugins/@hera/plugin-core/src/client/hooks/useFilterBlockActionProps.tsx index bbf714661..13d6d2e99 100644 --- a/packages/plugins/@hera/plugin-core/src/client/hooks/useFilterBlockActionProps.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/hooks/useFilterBlockActionProps.tsx @@ -1,5 +1,5 @@ -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { isEmpty } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { isEmpty } from '@tachybase/schema'; import { findFilterTargets, mergeFilter, diff --git a/packages/plugins/@hera/plugin-core/src/client/index.tsx b/packages/plugins/@hera/plugin-core/src/client/index.tsx index bf38df10f..fe0d14f60 100644 --- a/packages/plugins/@hera/plugin-core/src/client/index.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/index.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { Plugin, RemoteSchemaTemplateManagerProvider, EditTitleField, useCollection } from '@nocobase/client'; import { remove } from 'lodash'; -import { useFieldSchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; -import { autorun } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; +import { autorun } from '@tachybase/schema'; import { Locale, tval } from './locale'; import { PageModeSetting, diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx index 2de2a82f8..523040d8c 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/association-cascader/AssociationCascader.tsx @@ -1,6 +1,6 @@ import React, { useMemo } from 'react'; import { Cascader } from 'antd'; -import { connect } from '@nocobase/schema'; +import { connect } from '@tachybase/schema'; import { useCollectionManager, useRequest } from '@nocobase/client'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/auto-complete/AutoComplete.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/auto-complete/AutoComplete.tsx index 49f492cf3..4b216611e 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/auto-complete/AutoComplete.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/auto-complete/AutoComplete.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { AutoComplete as AntdAutoComplete } from 'antd'; -import { connect, useFieldSchema } from '@nocobase/schema'; +import { connect, useFieldSchema } from '@tachybase/schema'; import { useAPIClient } from '@nocobase/client'; import { useAsyncEffect } from 'ahooks'; import { fuzzysearch } from '../../utils'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx index 992591a9c..5bfc9c86b 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useAPIClient, useBlockRequestContext, useFilterBlock } from '@nocobase/client'; import { Descriptions, DescriptionsProps, Spin, Table } from 'antd'; import { transformers } from '../../schema-settings/GroupBlockConfigure'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/OutboundLinkActionInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/OutboundLinkActionInitializer.tsx index b643fcfa4..fca81b467 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/OutboundLinkActionInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/OutboundLinkActionInitializer.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { ActionInitializer, Application } from '@nocobase/client'; import { Popover, Space, Button, Input } from 'antd'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useProps } from '@nocobase/client'; import { ShareAltOutlined } from '@ant-design/icons'; import { lang, tval, useTranslation } from '../../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useCreateActionProps.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useCreateActionProps.tsx index c3282705d..fadd98473 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useCreateActionProps.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useCreateActionProps.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { __UNSAFE__, getFormValues, diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useOutboundActionProps.ts b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useOutboundActionProps.ts index 178b863ac..6b1c02cf2 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useOutboundActionProps.ts +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/actions/hooks/useOutboundActionProps.ts @@ -1,5 +1,5 @@ import { message } from 'antd'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import copy from 'copy-to-clipboard'; import { useTranslation } from '../../../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/GroupBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/GroupBlockInitializer.tsx index 71a92d005..c113be719 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/GroupBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/GroupBlockInitializer.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useSchemaInitializer, useSchemaInitializerItem, diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SettingBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SettingBlockInitializer.tsx index 467e3de87..8271231fb 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SettingBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SettingBlockInitializer.tsx @@ -1,6 +1,6 @@ import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { APIClientProvider, createFormBlockSchema, useAPIClient, useCollectionManager } from '@nocobase/client'; import { DataBlockInitializer, diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SheetBlockInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SheetBlockInitializer.tsx index 2758bce1f..a0d014b7f 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SheetBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/blocks/SheetBlockInitializer.tsx @@ -1,5 +1,5 @@ import { TableOutlined } from '@ant-design/icons'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { useSchemaInitializer, useSchemaInitializerItem, diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/items/CustomFilterFormItemInitializer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/items/CustomFilterFormItemInitializer.tsx index 55511a677..ceabef3c1 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/items/CustomFilterFormItemInitializer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-initializer/items/CustomFilterFormItemInitializer.tsx @@ -28,9 +28,9 @@ import { } from '@nocobase/client'; import { ConfigProvider, Radio, Space } from 'antd'; import React, { memo, useCallback, useContext, useMemo, Profiler } from 'react'; -import { Schema, SchemaOptionsContext, observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { Schema, SchemaOptionsContext, observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { ArrayItems, FormLayout } from '@formily/antd-v5'; -import { Field, onFieldValueChange } from '@nocobase/schema'; +import { Field, onFieldValueChange } from '@tachybase/schema'; import { EditDefaultValue, EditFormulaTitleField, @@ -42,7 +42,7 @@ import { import _ from 'lodash'; import { SchemaSettingsRemove } from '../../schema-settings/SchemaSettingsRemove'; import { tval, useTranslation } from '../../locale'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; const FieldComponentProps: React.FC = observer( (props) => { diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/GroupBlockConfigure.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/GroupBlockConfigure.tsx index 6f1f345c2..3afecc4ab 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/GroupBlockConfigure.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/GroupBlockConfigure.tsx @@ -7,7 +7,7 @@ import { import React, { useContext } from 'react'; import { useTranslation } from '../locale'; import { GroupBlockContext } from '../schema-initializer/blocks/GroupBlockInitializer'; -import { ISchema, connect, useFieldSchema } from '@nocobase/schema'; +import { ISchema, connect, useFieldSchema } from '@tachybase/schema'; import { ArrayItems, FormItem, Space } from '@formily/antd-v5'; import { PullRequestOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePickerType.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePickerType.tsx index 59f539149..e65a5846e 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePickerType.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePickerType.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { SchemaSettingsModalItem, useCollectionManager, useDesignable } from '@nocobase/client'; import { tval, useTranslation } from '../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePresets.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePresets.tsx index c28b87321..3bf4f9323 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePresets.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsDatePresets.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { ISchema, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useFieldSchema } from '@tachybase/schema'; import { SchemaSettingsModalItem, useCollectionManager, useDesignable } from '@nocobase/client'; import { tval, useTranslation } from '../locale'; import { dayjs } from '@nocobase/utils/client'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsRemove.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsRemove.tsx index a487f9be5..eb3dc1559 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsRemove.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsRemove.tsx @@ -1,9 +1,9 @@ -import { ISchema, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { SchemaSettingsItem, useFormActiveFields, useSchemaSettings } from '@nocobase/client'; import { App, ModalFuncProps } from 'antd'; import { FC } from 'react'; import { useTranslation } from '../locale'; -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; import React from 'react'; export interface SchemaSettingsRemoveProps { diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsSubmitDataType.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsSubmitDataType.tsx index fb54a2a3d..a902ffea8 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsSubmitDataType.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/SchemaSettingsSubmitDataType.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { SchemaSettingsSwitchItem, useDesignable } from '@nocobase/client'; import { useTranslation } from '../locale'; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx index 1fabdf595..1d44c575f 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { getShouldChange, SchemaComponent, diff --git a/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/Features.tsx b/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/Features.tsx new file mode 100644 index 000000000..57a5d2ffd --- /dev/null +++ b/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/Features.tsx @@ -0,0 +1,29 @@ +import { useApp } from '@nocobase/client'; +import { Card, Divider, List, Typography } from 'antd'; +import React from 'react'; +import PluginCoreClient from '..'; + +const data = [ + 'Racing car sprays burning fuel into crowd.', + 'Japanese princess to wed commoner.', + 'Australian walks 100km after outback crash.', + 'Man charged over missing wedding girl.', + 'Los Angeles battles huge wildfires.', +]; + +export const Features = () => { + const app = useApp(); + const plugin = app.pm.get(PluginCoreClient); + return ( + + ( + + [ITEM] {item} + + )} + /> + + ); +}; diff --git a/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/index.ts b/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/index.ts index ccd3c1270..3e20b7d94 100644 --- a/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/index.ts +++ b/packages/plugins/@hera/plugin-core/src/client/settings-manager-components/index.ts @@ -1,8 +1,9 @@ import { Application } from '@nocobase/client'; -import { lang } from '../locale'; +import { tval } from '../locale'; import { Configuration } from './TokenConfiguration'; import { HomePageConfiguration } from './HomePageConfiguration'; import { LinkManager } from './LinkManager'; +import { Features } from './Features'; export * from './HomePageConfiguration'; export * from './LinkManager'; @@ -11,18 +12,27 @@ export * from './TokenConfiguration'; export class PluginSettingsHelper { constructor(private app: Application) {} async load() { - this.app.pluginSettingsManager.add('home_page', { - title: lang('HomePage Config'), + this.app.pluginSettingsManager.add('hera', { + title: tval('Hera integration'), + icon: 'HomeOutlined', + }); + this.app.pluginSettingsManager.add('hera.features', { + title: tval('Hera features'), + icon: 'ApiOutlined', + Component: Features, + }); + this.app.pluginSettingsManager.add('hera.home_page', { + title: tval('HomePage Config'), icon: 'HomeOutlined', Component: HomePageConfiguration, }); - this.app.pluginSettingsManager.add('token', { - title: lang('Third-party integration configuration'), + this.app.pluginSettingsManager.add('hera.token', { + title: tval('Third-party integration configuration'), icon: 'ShareAltOutlined', Component: Configuration, }); - this.app.pluginSettingsManager.add('linkmanage', { - title: lang('Link manager'), + this.app.pluginSettingsManager.add('hera.linkmanage', { + title: tval('Link manager'), icon: 'ShareAltOutlined', Component: LinkManager, }); diff --git a/packages/plugins/@hera/plugin-core/src/locale/en-US.json b/packages/plugins/@hera/plugin-core/src/locale/en-US.json index eb1b339c9..3e72d98ed 100644 --- a/packages/plugins/@hera/plugin-core/src/locale/en-US.json +++ b/packages/plugins/@hera/plugin-core/src/locale/en-US.json @@ -23,8 +23,10 @@ "Edit department": "Edit department", "Group block": "Group block", "Group": "Group", + "Hera integration": "Hera integration", "HomePage Config": "HomePage Config", "Last month": "Last month", + "Link manager": "Link manager", "Main department": "Main department", "Main": "Main", "Mobile UI": "Mobile UI", @@ -54,6 +56,7 @@ "System setting": "System setting", "The department has members, please remove them first": "The department has members, please remove them first", "The department has sub-departments, please delete them first": "The department has sub-departments, please delete them first", + "Third-party integration configuration": "Third-party integration configuration", "This field is currently not supported for use in form blocks.": "This field is currently not supported for use in form blocks.", "This month": "This month", "This year": "This year", diff --git a/packages/plugins/@hera/plugin-core/src/locale/zh-CN.json b/packages/plugins/@hera/plugin-core/src/locale/zh-CN.json index 2f5b02a4d..f4553bf34 100644 --- a/packages/plugins/@hera/plugin-core/src/locale/zh-CN.json +++ b/packages/plugins/@hera/plugin-core/src/locale/zh-CN.json @@ -23,8 +23,10 @@ "Edit department": "编辑部门", "Group block": "汇总区块", "Group": "汇总", + "Hera integration": "赫拉集成", "HomePage Config": "主页配置", "Last month": "上月", + "Link manager": "链接管理器", "Main department": "主属部门", "Main": "主属部门", "Mobile UI": "移动端页面", @@ -54,6 +56,7 @@ "System setting": "系统设置", "The department has members, please remove them first": "部门下有成员,请先移除", "The department has sub-departments, please delete them first": "部门下有子部门,请先删除子部门", + "Third-party integration configuration": "第三方集成配置", "This field is currently not supported for use in form blocks.": "该字段目前不支持在表单区块中使用。", "This month": "本月", "This year": "今年", diff --git a/packages/plugins/@hera/plugin-core/src/server/collections/systemSettings.ts b/packages/plugins/@hera/plugin-core/src/server/collections/systemSettings.ts new file mode 100644 index 000000000..18d7e5b73 --- /dev/null +++ b/packages/plugins/@hera/plugin-core/src/server/collections/systemSettings.ts @@ -0,0 +1,12 @@ +import { extendCollection } from '@nocobase/database'; + +export default extendCollection({ + name: 'systemSettings', + fields: [ + { + type: 'json', + name: 'features', + defaultValue: [], + }, + ], +}); diff --git a/packages/plugins/@hera/plugin-mobile/package.json b/packages/plugins/@hera/plugin-mobile/package.json index 00e9415e5..77599bd9e 100644 --- a/packages/plugins/@hera/plugin-mobile/package.json +++ b/packages/plugins/@hera/plugin-mobile/package.json @@ -6,7 +6,7 @@ "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "5.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/lodash": "^4.17.0", "antd": "5.16.1", "antd-mobile": "^5.35.0", diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-block/schema-create/createGridCardBlockSchma.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-block/schema-create/createGridCardBlockSchma.ts index 11886ec64..d1fac8170 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-block/schema-create/createGridCardBlockSchma.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-block/schema-create/createGridCardBlockSchma.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { uid } from '@nocobase/utils/client'; export const createGridCardBlockSchema = (options, componentName) => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlock.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlock.tsx index 26274f2b9..40c03d950 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlock.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlock.tsx @@ -1,5 +1,5 @@ import { BlockItem, css, useDesignable, useRequest, withDynamicSchemaProps } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Swiper } from 'antd-mobile'; import React, { useEffect, useState } from 'react'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlockInitializer.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlockInitializer.tsx index 6a204bd3e..433c4186e 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperBlockInitializer.tsx @@ -7,7 +7,7 @@ import { } from '@nocobase/client'; import React from 'react'; import { createGridCardBlockSchema } from '../../schma-block/schema-create/createGridCardBlockSchma'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Toast } from 'antd-mobile'; export const SwiperBlockInitializer = () => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperFieldSettings.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperFieldSettings.tsx index f763763b7..da814cf47 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperFieldSettings.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/SwiperFieldSettings.tsx @@ -6,7 +6,7 @@ import { useDesignable, useFormBlockContext, } from '@nocobase/client'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTranslation } from '../../locale'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/useSwiperBlockProps.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/useSwiperBlockProps.ts index 8901112b7..5a9d2b19a 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/useSwiperBlockProps.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/swiper/useSwiperBlockProps.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useNavigate } from 'react-router-dom'; import React, { useEffect } from 'react'; import { useCollection, useDesignable, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearch.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearch.tsx index fab9b9505..fe4d9eb78 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearch.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearch.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { RecursionField } from '@nocobase/schema'; +import { RecursionField } from '@tachybase/schema'; import { useTabSearchAction } from './TabSearchAction'; export const TabSearch = () => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearchAction.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearchAction.ts index 8f398430d..9ad958f33 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearchAction.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/TabSearchAction.ts @@ -1,5 +1,5 @@ import { useDesigner, useSchemaInitializerRender } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { isTabSearchCollapsibleInputItem } from '../utils'; export const useTabSearchAction = () => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.ts index 16dd43be7..bbbd0aced 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.ts @@ -1,5 +1,5 @@ import { useMemo, useRef, useState } from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCollection, useCollectionManager, useDesignable, useDesigner } from '@nocobase/client'; import { canBeDataField, diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemAction.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemAction.ts index 6b00f36d8..56dc9ca0f 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemAction.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemAction.ts @@ -1,7 +1,7 @@ import React from 'react'; import { MenuProps } from 'antd'; import { useCollection, useDesigner } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useTranslation } from '../../../../locale'; export const useTabSearchFieldItemAction = (props) => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemProps.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemProps.ts index a25029414..3c7f2b829 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemProps.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSearchFieldItemProps.ts @@ -1,6 +1,6 @@ import { useMemo } from 'react'; import { useCollection, useCollectionManager } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTabSearchCollapsibleInputItem } from './hooks'; import { canBeOptionalField } from '../../utils'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSerachFieldItemRelatedProps.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSerachFieldItemRelatedProps.tsx index d716665de..25f2aa99d 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSerachFieldItemRelatedProps.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/TabSerachFieldItemRelatedProps.tsx @@ -7,7 +7,7 @@ import { useFilterBlock, useRequest, } from '@nocobase/client'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { useTabSearchCollapsibleInputItem } from './hooks'; import { canBeRelatedField } from '../../utils'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/hooks.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/hooks.tsx index 448ed0daf..93c09617d 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/hooks.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/components/field-item/hooks.tsx @@ -1,5 +1,5 @@ import { findFilterTargets, mergeFilter, useApp, useCollection, useFilterBlock } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useMemo } from 'react'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/create/createTabSearchBlockSchema.ts b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/create/createTabSearchBlockSchema.ts index 3d7684d7b..bc8f4dfd3 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/create/createTabSearchBlockSchema.ts +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/create/createTabSearchBlockSchema.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { uid } from '@nocobase/utils/client'; export const createTabSearchBlockSchema = (options: { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.tsx index 560d1d4ef..af5b90f76 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.tsx @@ -4,7 +4,7 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@nocobase/client'; -import { merge } from '@nocobase/schema'; +import { merge } from '@tachybase/schema'; import React from 'react'; export const TabSearchFieldSchemaInitializerGadget = () => { diff --git a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/settings/TabSearchItemFieldSettings.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/settings/TabSearchItemFieldSettings.tsx index e125ff329..d37b56360 100644 --- a/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/settings/TabSearchItemFieldSettings.tsx +++ b/packages/plugins/@hera/plugin-mobile/src/client/schma-component/tab-search/settings/TabSearchItemFieldSettings.tsx @@ -8,7 +8,7 @@ import { useFormBlockContext, } from '@nocobase/client'; import { useTranslation } from '../../../locale'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import _ from 'lodash'; import { isTabSearchCollapsibleInputItem } from '../utils'; diff --git a/packages/plugins/@hera/plugin-rental/package.json b/packages/plugins/@hera/plugin-rental/package.json index 4c0edbb26..e53e511d6 100644 --- a/packages/plugins/@hera/plugin-rental/package.json +++ b/packages/plugins/@hera/plugin-rental/package.json @@ -9,7 +9,7 @@ "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "^5.3.6", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "dayjs": "^1.11.8", diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx index 79df61edb..cb50559aa 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx @@ -1,8 +1,8 @@ import React from 'react'; import _ from 'lodash'; import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { FormPath } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { FormPath } from '@tachybase/schema'; import { useRequest } from '@nocobase/client'; import { Space, Spin, Tag } from 'antd'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx index a0dc7a50a..85c0531a1 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx @@ -1,8 +1,8 @@ import React from 'react'; import _ from 'lodash'; import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { FormPath } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { FormPath } from '@tachybase/schema'; import { useRequest } from '@nocobase/client'; import { Descriptions, Spin } from 'antd'; import { formatQuantity } from '../../utils/currencyUtils'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx index 27efefbb8..a547968c0 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx @@ -1,5 +1,5 @@ -import { onFieldInit, onFieldValueChange } from '@nocobase/schema'; -import { useField, useForm, useFormEffects } from '@nocobase/schema'; +import { onFieldInit, onFieldValueChange } from '@tachybase/schema'; +import { useField, useForm, useFormEffects } from '@tachybase/schema'; import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useRequest } from '@nocobase/client'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx index 8b96924f8..ed50a2ac1 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx @@ -1,5 +1,5 @@ -import { onFieldInit, onFieldValueChange } from '@nocobase/schema'; -import { useForm, useFormEffects } from '@nocobase/schema'; +import { onFieldInit, onFieldValueChange } from '@tachybase/schema'; +import { useForm, useFormEffects } from '@tachybase/schema'; import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useRequest } from '@nocobase/client'; import _ from 'lodash'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx index 515beb734..34f7577d5 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx @@ -1,7 +1,7 @@ import _ from 'lodash'; import { Spin } from 'antd'; import React from 'react'; -import { observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { useFeeItems } from '../hooks'; import { useDeepCompareEffect } from 'ahooks'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx index 780e8a5d2..8b8759f61 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import _ from 'lodash'; import { formatQuantity } from '../../utils/currencyUtils'; import { Spin } from 'antd'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx index 0449c1621..14cade392 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import _ from 'lodash'; import { ConversionLogics, RecordCategory } from '../../utils/constants'; import { formatQuantity } from '../../utils/currencyUtils'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx index 2a2e74fab..f73457f5d 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import _ from 'lodash'; import { formatQuantity } from '../../utils/currencyUtils'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx index 5b6b22856..50444e49e 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx @@ -1,7 +1,7 @@ import _ from 'lodash'; import { Spin } from 'antd'; import React from 'react'; -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { RecordCategory } from '../../utils/constants'; import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { useCachedRequest, useLeaseItems, useProductFeeItems } from '../hooks'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx index 5758f1dda..fc65ccb46 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx @@ -1,4 +1,4 @@ -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { ConversionLogics, RecordCategory } from '../../utils/constants'; import { Descriptions, Tabs } from 'antd'; import { CustomComponentType, CustomFC, CustomFunctionComponent } from '@hera/plugin-core/client'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx index 9813a18e5..94e24cf29 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx @@ -1,5 +1,5 @@ -import { onFieldValueChange, onFieldInit } from '@nocobase/schema'; -import { useField, useForm, useFormEffects } from '@nocobase/schema'; +import { onFieldValueChange, onFieldInit } from '@tachybase/schema'; +import { useField, useForm, useFormEffects } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; import { ConversionLogics } from '../../utils/constants'; import { useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx b/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx index 8fa8e6ea8..7fb492624 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useAPIClient, useBlockRequestContext, useRequest } from '@nocobase/client'; import { useChartFilter } from '@nocobase/plugin-data-visualization/client'; import { message } from 'antd'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/interfaces/movement.ts b/packages/plugins/@hera/plugin-rental/src/client/interfaces/movement.ts index cee5f8591..3b0c4f503 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/interfaces/movement.ts +++ b/packages/plugins/@hera/plugin-rental/src/client/interfaces/movement.ts @@ -1,6 +1,6 @@ import { CollectionFieldInterface, dataSource, defaultProps, operators } from '@nocobase/client'; import { tval } from '../locale'; -import { Field, uid } from '@nocobase/schema'; +import { Field, uid } from '@tachybase/schema'; export class MovementFieldInterface extends CollectionFieldInterface { name = 'movement'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/schema-components/Movement.tsx b/packages/plugins/@hera/plugin-rental/src/client/schema-components/Movement.tsx index bb128188b..cd90749dd 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/schema-components/Movement.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/schema-components/Movement.tsx @@ -1,5 +1,5 @@ import { useCollectionField } from '@nocobase/client'; -import { connect, isValid, mapProps, mapReadPretty, useField } from '@nocobase/schema'; +import { connect, isValid, mapProps, mapReadPretty, useField } from '@tachybase/schema'; import { Radio, Tag } from 'antd'; import React from 'react'; import { useEffect } from 'react'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/actions/SettlementExcelExportActionInitializer.tsx b/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/actions/SettlementExcelExportActionInitializer.tsx index 7873df783..6a8628d92 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/actions/SettlementExcelExportActionInitializer.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/actions/SettlementExcelExportActionInitializer.tsx @@ -1,6 +1,6 @@ import React, { useContext } from 'react'; import { ActionInitializer, useAPIClient, useRecord } from '@nocobase/client'; -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { SettlementStyleContext } from './SettlementStyleSwitchActionInitializer'; import { ExportToExcel } from './SettlementExportExcel'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/blocks/UnusedRecordsBlockInitializer.tsx b/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/blocks/UnusedRecordsBlockInitializer.tsx index 4d37a2110..0c999312f 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/blocks/UnusedRecordsBlockInitializer.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/schema-initializer/blocks/UnusedRecordsBlockInitializer.tsx @@ -8,7 +8,7 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@nocobase/client'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { ToolOutlined } from '@ant-design/icons'; import { Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-acl/package.json b/packages/plugins/@nocobase/plugin-acl/package.json index aed281fe8..e2a4a8f19 100644 --- a/packages/plugins/@nocobase/plugin-acl/package.json +++ b/packages/plugins/@nocobase/plugin-acl/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@ant-design/icons": "^5.3.6", "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/jsonwebtoken": "^8.5.8", "ahooks": "^3.7.2", "antd": "5.16.1", diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx index 2bfa46248..ca48e4c04 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx @@ -1,7 +1,7 @@ import { SchemaComponent, useActionContext, useRequest } from '@nocobase/client'; import React from 'react'; import { useACLTranslation } from './locale'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; export const NewRole: React.FC = () => { const { t } = useACLTranslation(); diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx index a5089e1f4..d6ce33faa 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx @@ -8,7 +8,7 @@ import { usePlugin, useSchemaComponentContext, } from '@nocobase/client'; -import { ISchema, Schema } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; import { RolesMenu } from './RolesMenu'; import { useACLTranslation } from './locale'; import ACLPlugin from '.'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx index 62117488c..54e113473 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx @@ -9,7 +9,7 @@ import { Menu, Empty, Dropdown, App, Tag, Row, Col, Spin } from 'antd'; import { TagOutlined, MoreOutlined } from '@ant-design/icons'; import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; import { useACLTranslation } from './locale'; -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { RolesManagerContext } from './RolesManagerProvider'; import { roleEditSchema } from './schemas/roles'; import { useLoadMoreObserver } from './hooks/load-more-observer'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx index 784b03db4..ab60918e3 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { CollectionContext, CollectionProvider_deprecated, diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx index 0b4e99120..07c76295c 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx @@ -1,11 +1,11 @@ -import { onFormValuesChange, createForm, Form } from '@nocobase/schema'; -import { connect } from '@nocobase/schema'; +import { onFormValuesChange, createForm, Form } from '@tachybase/schema'; +import { connect } from '@tachybase/schema'; import { SchemaComponent, useAPIClient, useRequest } from '@nocobase/client'; import { Checkbox, message } from 'antd'; import uniq from 'lodash/uniq'; import React, { useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useMemoizedFn } from 'ahooks'; import { RolesManagerContext } from '../RolesManagerProvider'; import { StrategyActions } from './StrategyActions'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx index c8af7292e..c79eee4a6 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx @@ -1,9 +1,9 @@ import { Checkbox, message, Table } from 'antd'; -import { onFormValuesChange, createForm, Form } from '@nocobase/schema'; +import { onFormValuesChange, createForm, Form } from '@tachybase/schema'; import { uniq } from 'lodash'; import React, { useContext, useState, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useAPIClient, SchemaComponent, useRequest } from '@nocobase/client'; import { useStyles } from './style'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx index 6da447da7..75106ea29 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx @@ -1,6 +1,6 @@ import { FormItem, FormLayout } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { connect, useField, useForm } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField, useForm } from '@tachybase/schema'; import { useCollectionManager, useCollectionManager_deprecated, diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx index c7d035e06..f905d402b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx @@ -1,4 +1,4 @@ -import { createForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent } from '@nocobase/client'; import { scopesSchema } from '../schemas/scopes'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx index a0763e972..2f45ed3ae 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { connect, useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField } from '@tachybase/schema'; import { Checkbox, Select, Table, Tag } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts index 50a8d2990..2f444b574 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts @@ -1,8 +1,8 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@nocobase/client'; import { useEffect } from 'react'; import pick from 'lodash/pick'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; export const roleEditSchema = { type: 'object', diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts index 5e7d428d8..3ec00dca3 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { VariableInput, useFilterOptions, useFormBlockContext } from '@nocobase/client'; import { useContext, useEffect } from 'react'; import { RoleResourceCollectionContext } from '../permissions/RolesResourcesActions'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json b/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json index ec6976c62..6a2de4301 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json @@ -13,7 +13,7 @@ "@ant-design/icons": "^5.3.6", "@emotion/css": "^11.7.1", "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "lodash": "4.17.21", "react-i18next": "^11.15.1", diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx index 9c403d88d..c9c9621ae 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { ActionDesigner, SchemaInitializerOpenModeSchemaItems, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts index 680adf0cb..13034e43f 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts @@ -1,6 +1,6 @@ import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { SchemaSettings, useApp, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx index 0542fd83e..58e6c8ac8 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/css'; -import { Field } from '@nocobase/schema'; -import { connect, useField, useFieldSchema } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { connect, useField, useFieldSchema } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import { CollectionFieldProvider, useCollection_deprecated, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts index c1e76a291..6d480f5b7 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; /** * 创建批量编辑表单的 UI Schema diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx index 3bb1ce045..6ee05b0b1 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx @@ -12,7 +12,7 @@ import { import React, { useContext } from 'react'; import { App, message } from 'antd'; import { useNavigate } from 'react-router-dom'; -import { SchemaExpressionScopeContext, useField, useForm } from '@nocobase/schema'; +import { SchemaExpressionScopeContext, useField, useForm } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import { isURL } from '@nocobase/utils/client'; import { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/package.json b/packages/plugins/@nocobase/plugin-action-bulk-update/package.json index 3e647c592..c1baae778 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/package.json +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "react-i18next": "^11.15.1", "react-router-dom": "^6.11.2" diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx index aed357313..21b147b08 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx @@ -1,5 +1,5 @@ -import { ISchema, useFieldSchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { ISchema, useFieldSchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { ActionDesigner, SchemaSettings, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx index a73c4054b..ff6d77205 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx @@ -1,4 +1,4 @@ -import { SchemaExpressionScopeContext, useField, useFieldSchema } from '@nocobase/schema'; +import { SchemaExpressionScopeContext, useField, useFieldSchema } from '@tachybase/schema'; import { TableFieldResource, isVariable, diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/package.json b/packages/plugins/@nocobase/plugin-action-duplicate/package.json index 89f19d51c..72de9eb6f 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/package.json +++ b/packages/plugins/@nocobase/plugin-action-duplicate/package.json @@ -11,7 +11,7 @@ "main": "dist/server/index.js", "devDependencies": { "@emotion/css": "^11.7.1", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "lodash": "4.17.21", "react-i18next": "^11.15.1" diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx index 0a51c8978..0b9fcfaa5 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx @@ -1,5 +1,5 @@ -import { onFieldInputValueChange } from '@nocobase/schema'; -import { ISchema, connect, mapProps, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { onFieldInputValueChange } from '@tachybase/schema'; +import { ISchema, connect, mapProps, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { ActionDesigner, SchemaSettingOpenModeSchemaItems, diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx index 238999007..c2c89b0ff 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx @@ -1,5 +1,5 @@ import { css, cx } from '@emotion/css'; -import { RecursionField, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, observer, useField, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, CollectionProvider_deprecated, diff --git a/packages/plugins/@nocobase/plugin-api-keys/package.json b/packages/plugins/@nocobase/plugin-api-keys/package.json index 8b0e029eb..ca7e285cb 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/package.json +++ b/packages/plugins/@nocobase/plugin-api-keys/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "dayjs": "^1.11.8", diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx index 61a8b5591..24bb495cd 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx @@ -1,4 +1,4 @@ -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { css, useRecord } from '@nocobase/client'; import { useBoolean } from 'ahooks'; import { DatePicker, Select, Space, Typography } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx index 4bfdbff77..b36ef33b5 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx @@ -1,4 +1,4 @@ -import { RecursionField } from '@nocobase/schema'; +import { RecursionField } from '@tachybase/schema'; import { SchemaComponentOptions, useCurrentRoles } from '@nocobase/client'; import React from 'react'; import { ExpiresSelect } from './ExpiresSelect'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx index 701868b78..27999bbf4 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx @@ -1,5 +1,5 @@ -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { useActionContext, useBlockRequestContext, useRecord } from '@nocobase/client'; import { Alert, Modal, Space, Typography } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth/package.json b/packages/plugins/@nocobase/plugin-auth/package.json index c83276922..d51d5d473 100644 --- a/packages/plugins/@nocobase/plugin-auth/package.json +++ b/packages/plugins/@nocobase/plugin-auth/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@ant-design/icons": "~5.3.6", "@emotion/css": "^11.7.1", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/cron": "^2.0.1", "antd": "5.16.1", "cron": "^2.3.1", diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx index ddfde7589..766c49dfb 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx @@ -1,9 +1,9 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { SchemaComponent, useAPIClient, useCurrentUserContext } from '@nocobase/client'; import React, { useCallback } from 'react'; import { useAuthTranslation } from '../locale'; import { useNavigate, useSearchParams } from 'react-router-dom'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useSignUpForms } from '../pages'; import { Authenticator } from '../authenticator'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx index 5fd722719..f4ad4402a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx @@ -1,10 +1,10 @@ import { SchemaComponent } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import React from 'react'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useAuthTranslation } from '../locale'; import { useAPIClient } from '@nocobase/client'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useNavigate, Navigate } from 'react-router-dom'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx index 7d5fb60fa..5b1780820 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { useActionContext, usePlugin, useRecord, useRequest } from '@nocobase/client'; import { useEffect } from 'react'; import AuthPlugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts index b779d0883..fe14caf1a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { i18n, useAPIClient, useActionContext, useRequest } from '@nocobase/client'; import { message } from 'antd'; import { useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/package.json b/packages/plugins/@nocobase/plugin-calendar/package.json index d73b6881e..c4c26c9a2 100644 --- a/packages/plugins/@nocobase/plugin-calendar/package.json +++ b/packages/plugins/@nocobase/plugin-calendar/package.json @@ -19,7 +19,7 @@ "devDependencies": { "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "antd-style": "3.4.5", "cron-parser": "4.4.0", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx index 0826e61d9..f9920e1d7 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx @@ -1,5 +1,5 @@ import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { RecursionField, Schema, observer, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, Schema, observer, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx index 00157fc65..7c8e24f14 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { SchemaSettings, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx index 1d0d2e263..927dc3b70 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Modal, Radio, Space, Typography } from 'antd'; import dayjs from 'dayjs'; import React, { useContext, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx index 9da9bac0e..3147d9866 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; export const Event = observer( diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx index c7c4e6c99..57b537a41 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx @@ -1,5 +1,5 @@ import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useContext } from 'react'; import { Navigate } from 'react-big-calendar/dist/react-big-calendar.esm'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx index cf211d0ae..c69988a51 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useContext, useMemo } from 'react'; import { CalendarToolbarContext } from './context'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx index 18e90aeeb..603bd81e4 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Button } from 'antd'; import React, { useContext } from 'react'; import { Navigate } from 'react-big-calendar/dist/react-big-calendar.esm'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx index 837e81c4d..c9cfe4bc0 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Select } from 'antd'; import React, { useContext } from 'react'; import { CalendarToolbarContext } from './context'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx index 82ce48fc1..870548377 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { AntdSchemaComponentProvider, APIClient, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx index 8f3262275..095cb33b5 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { BlockProvider, FixedBlockWrapper, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts index 943be55f7..f0f1b449a 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { generateNTemplate } from '../../locale'; export const createCalendarBlockUISchema = (options: { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx index 8152388f7..a5da4edec 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx @@ -1,6 +1,6 @@ import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { Collection, CollectionFieldOptions, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx index c45c5050c..8e0f5cb15 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx @@ -1,6 +1,6 @@ import { TableOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useContext } from 'react'; import { useSchemaTemplateManager, diff --git a/packages/plugins/@nocobase/plugin-charts/LICENSE b/packages/plugins/@nocobase/plugin-charts/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-charts/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-charts/package.json b/packages/plugins/@nocobase/plugin-charts/package.json deleted file mode 100644 index 06128e693..000000000 --- a/packages/plugins/@nocobase/plugin-charts/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@nocobase/plugin-charts", - "displayName": "Charts (deprecated)", - "version": "0.21.24", - "description": "The plugin has been deprecated, please use the data visualization plugin instead.", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@ant-design/icons": "~5.3.6", - "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", - "antd": "5.16.1", - "json5": "^2.2.3", - "lodash": "4.17.21", - "react": "^18.2.0", - "react-i18next": "^11.15.1", - "react-router-dom": "^6.11.2" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*", - "@nocobase/utils": "workspace:*" - }, - "description.zh-CN": "已废弃插件,请使用数据可视化插件代替。", - "displayName.zh-CN": "图表(废弃)", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1" -} diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx deleted file mode 100644 index d4180ef30..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx +++ /dev/null @@ -1,121 +0,0 @@ -import { useCompile, useRequest } from '@nocobase/client'; -import { Empty, Spin } from 'antd'; -import JSON5 from 'json5'; -import React, { useEffect, useState } from 'react'; -import { ChartBlockEngineDesigner } from './ChartBlockEngineDesigner'; -import chartRenderComponentsMap from './chartRenderComponents'; -import { lang } from './locale'; -import { templates } from './templates'; - -export interface IQueryConfig { - id: number; -} -export interface IChartConfig { - type: string; - template: string; - metric: string; - dimension: string; - category?: string; - [key: string]: any; -} - -export interface ChartBlockEngineMetaData { - query: IQueryConfig; - chart: IChartConfig; -} - -const ChartRenderComponent = ({ - chartBlockEngineMetaData, -}: { - chartBlockEngineMetaData: ChartBlockEngineMetaData; -}): JSX.Element => { - const compile = useCompile(); - const chartType = chartBlockEngineMetaData.chart.type; - const renderComponent = templates.get(chartType)?.renderComponent; - const RenderComponent = chartRenderComponentsMap.get(renderComponent); //G2Plot | Echarts | D3 |Table - const chartConfig = chartBlockEngineMetaData.chart; - const { loading, dataSet, error } = useGetDataSet(chartBlockEngineMetaData.query.id); - - const [currentConfig, setCurrentConfig] = useState({} as any); - - useEffect(() => { - setCurrentConfig(chartConfig); - }, [JSON.stringify(chartConfig)]); - - if (error) { - return ( - <> - {`May be this chart block's query data has been deleted,please check!`}} /> - - ); - } - - if (currentConfig.type !== chartConfig.type) { - return <>; - } - - switch (renderComponent) { - case 'G2Plot': { - const finalChartOptions = templates.get(chartType)?.defaultChartOptions; - let template; - try { - template = JSON5.parse(chartConfig?.template); - } catch (e) { - template = {}; - } - const config = compile( - { - ...finalChartOptions, - ...template, - data: dataSet, - }, - { ...chartConfig, category: chartConfig?.category ?? '' }, - ); - if (config && chartConfig) { - const { dimension, metric, category } = chartConfig; - if (!metric || !dimension) { - return <>{lang('Please check the chart config')}; - } - } - return <>{loading ? : }; - } - } - return <>; -}; - -export const useGetDataSet = (chartQueryId: number) => { - const { data, loading, error } = useRequest<{ - data: any; - }>({ - url: `/chartsQueries:getData/${chartQueryId}`, - }); - const dataSet = data?.data; - return { - loading, - dataSet: dataSet, - error, - }; -}; - -const ChartBlockEngine = ({ chartBlockEngineMetaData }: { chartBlockEngineMetaData: ChartBlockEngineMetaData }) => { - let renderComponent; - const chartType = chartBlockEngineMetaData?.chart?.type; - - if (chartType) { - renderComponent = templates.get(chartType)?.renderComponent; - } - - if (!chartType || !renderComponent) { - return <>{lang('Please check the chart config')}; - } - - return ( - <> - - - ); -}; - -ChartBlockEngine.Designer = ChartBlockEngineDesigner; - -export { ChartBlockEngine }; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx deleted file mode 100644 index 8ae7ea1ed..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx +++ /dev/null @@ -1,251 +0,0 @@ -import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext, useField, useFieldSchema } from '@nocobase/schema'; -import { - APIClientProvider, - FormDialog, - GeneralSchemaDesigner, - SchemaComponent, - SchemaComponentOptions, - SchemaSettingsDivider, - SchemaSettingsItem, - SchemaSettingsRemove, - css, - i18n, - useAPIClient, - useCompile, - useDesignable, - useGlobalTheme, -} from '@nocobase/client'; -import { error } from '@nocobase/utils/client'; -import { Card } from 'antd'; -import JSON5 from 'json5'; -import React, { useContext, useEffect, useState } from 'react'; -import { useTranslation } from 'react-i18next'; -import { ChartBlockEngineMetaData } from './ChartBlockEngine'; -import { Options } from './ChartBlockInitializer'; -import DataSetPreviewTable from './DataSetPreviewTable'; -import { useFieldsById } from './hooks'; -import { lang } from './locale'; -import { templates } from './templates'; - -export const jsonConfigDesc = (title: string, link: string) => { - return ( - - {lang('Json config references: ')} - - {lang(title)} - - - ); -}; - -const validateJSON = { - validator: `{{(value, rule)=> { - if (!value) { - return ''; - } - try { - const val = JSON.parse(value); - if(!isNaN(val)) { - return false; - } - return true; - } catch(error) { - console.error(error); - return false; - } - }}}`, - message: '{{t("Invalid JSON format",{ ns: "charts" })}}', -}; - -export const ChartBlockEngineDesigner = () => { - const fieldSchema = useFieldSchema(); - const { chartBlockEngineMetaData } = fieldSchema?.['x-component-props'] || {}; - return ( - - - - - - ); -}; - -export const ChartBlockEngineDesignerInitializer = (props) => { - const { chartBlockEngineMetaData }: { chartBlockEngineMetaData: ChartBlockEngineMetaData } = props; - const { t } = useTranslation(); - const options = useContext(SchemaOptionsContext); - const { dn } = useDesignable(); - const fieldSchema = useFieldSchema(); - const api = useAPIClient(); - const field = useField(); - const compile = useCompile(); - const { chart, query } = chartBlockEngineMetaData; - const { fields } = useFieldsById(query.id); - const { theme } = useGlobalTheme(); - - const dataSource = fields.map((field) => { - return { - label: field.name, - value: field.name, - }; - }); - - return ( - { - FormDialog( - { - okText: compile('{{t("Submit")}}'), - title: lang('Edit chart block'), - width: 1200, - bodyStyle: { background: 'var(--nb-box-bg)', maxHeight: '65vh', overflow: 'auto' }, - }, - function Com(form) { - const [chartBlockEngineMetaData, setChartBlockEngineMetaData] = useState(null); - useEffect(() => { - const chartBlockEngineMetaData = { - query: { - id: query?.id, - }, - chart: form.values, //TODO - }; - setChartBlockEngineMetaData(chartBlockEngineMetaData); - }, [form.values.type]); - return ( - - -

- {/* left*/} - - - { - return { - title: template.title, - key: template.type, - description: template.description, - group: template.group, - iconId: template.iconId, - }; - }), - }, - options: { - type: 'void', - 'x-component': 'Options', - }, - }, - }} - /> - - - {/* right*/} -
- - {/* Chart Preview*/} - {chartBlockEngineMetaData && ( - <> - - - )} - - - {/*Data preview*/} - {chartBlockEngineMetaData?.query?.id && ( - - )} - -
-
- - - ); - }, - theme, - ) - .open({ - initialValues: { ...chart }, //reset before chartBlockMetaData - }) - .then((values) => { - //patch updates - values = { - query, - chart: values, - }; - field.title = values.chart.title; - fieldSchema['title'] = values.chart.title; - field.componentProps.chartBlockEngineMetaData = values; - _.set(fieldSchema, 'x-component-props.chartBlockEngineMetaData', values); - dn.emit('patch', { - schema: { - 'x-uid': fieldSchema['x-uid'], - 'x-component-props': fieldSchema['x-component-props'], - }, - }); - dn.refresh(); - }) - .catch((err) => { - error(err); - }); - }} - > - {props.children || props.title || lang('Edit chart block')} - - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx deleted file mode 100644 index fce02c012..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx +++ /dev/null @@ -1,224 +0,0 @@ -import { FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { RecursionField, Schema, SchemaOptionsContext, observer, useField, useForm } from '@nocobase/schema'; -import { - APIClientProvider, - FormDialog, - FormProvider, - SchemaComponent, - SchemaComponentOptions, - css, - useAPIClient, - useCompile, - useGlobalTheme, - useSchemaInitializer, -} from '@nocobase/client'; -import { Card } from 'antd'; -import JSON5 from 'json5'; -import React, { useContext, useEffect, useState } from 'react'; -import { ChartBlockEngineMetaData } from './ChartBlockEngine'; -import { jsonConfigDesc } from './ChartBlockEngineDesigner'; -import { ChartQueryBlockInitializer, ChartQueryMetadata } from './ChartQueryBlockInitializer'; -import DataSetPreviewTable from './DataSetPreviewTable'; -import { lang } from './locale'; -import { templates } from './templates'; - -export const Options = observer( - (props) => { - const form = useForm(); - const field = useField(); - const [s, setSchema] = useState(new Schema({})); - const [chartType, setChartType] = useState(form.values.type); - useEffect(() => { - // form.clearFormGraph('options.*'); - setChartType(form?.values?.type); - if (chartType !== form?.values?.type) { - form.clearFormGraph('options.*'); - } - if (form.values.type) { - const template = templates.get(form.values.type); - setSchema(new Schema(template.configurableProperties || {})); - } - }, [form.values.type]); - return ; - }, - { displayName: 'Options' }, -); - -interface ChartFormInterface { - type: string; - template: string; - metric: string; - dimension: string; - category?: string; - - [key: string]: string; -} - -export const ChartBlockInitializer = (props) => { - const { insert } = useSchemaInitializer(); - const options = useContext(SchemaOptionsContext); - const api = useAPIClient(); - const compile = useCompile(); - const { theme } = useGlobalTheme(); - - return ( - { - const dataSource = chartQueryMetadata?.fields.map((field) => { - return { - label: field.name, - value: field.name, - }; - }); - const values = await FormDialog( - { - okText: compile('{{t("Submit")}}'), - title: lang('Create chart block'), - width: 1200, - bodyStyle: { background: 'var(--nb-box-bg)', maxHeight: '65vh', overflow: 'auto' }, - }, - function Com() { - const form = useForm(); - const [chartBlockEngineMetaData, setChartBlockEngineMetaData] = useState(null); - useEffect(() => { - const chartBlockEngineMetaData = { - query: { - id: chartQueryMetadata?.id, - }, - chart: form.values, //TODO - }; - setChartBlockEngineMetaData(chartBlockEngineMetaData); - }, [form.values.type]); - return ( - - -
- {/* left*/} - - - - { - return { - title: template.title, - key: template.type, - description: template.description, - group: template.group, - iconId: template.iconId, - }; - }), - }, - options: { - type: 'void', - 'x-component': 'Options', - }, - }, - }} - /> - - - - {/* right*/} -
- - {/* Chart Preview*/} - {chartBlockEngineMetaData && ( - <> - - - )} - - - {/*Data preview*/} - {chartBlockEngineMetaData?.query?.id && ( - - )} - -
-
-
-
- ); - }, - theme, - ).open({ - initialValues: {}, - }); - if (values) { - const chartBlockEngineMetaData: ChartBlockEngineMetaData = { - query: { - id: chartQueryMetadata.id, - }, - chart: values, - }; - insert({ - type: 'void', - title: values?.title, - 'x-designer': 'ChartBlockEngine.Designer', - 'x-decorator': 'CardItem', - 'x-component': 'ChartBlockEngine', - 'x-component-props': { - chartBlockEngineMetaData, - }, - }); - } - }} - /> - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx deleted file mode 100644 index bc500d313..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import { TableOutlined } from '@ant-design/icons'; -import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; -import { - FormDialog, - SchemaInitializerItem, - SchemaComponent, - SchemaComponentOptions, - useAPIClient, - useGlobalTheme, - useSchemaInitializer, -} from '@nocobase/client'; -import { error } from '@nocobase/utils/client'; -import React, { useCallback, useContext, useMemo } from 'react'; -import { useChartQueryMetadataContext } from './ChartQueryMetadataProvider'; -import { lang } from './locale'; -import { getQueryTypeSchema } from './settings/queryTypes'; - -export interface ChartQueryMetadata { - id: number; - title: string; - type: string; - fields: { name: string }[]; -} - -export const ChartQueryBlockInitializer = (props) => { - const { templateWrap, onCreateBlockSchema, componentType, createBlockSchema, ...others } = props; - const { setVisible } = useSchemaInitializer(); - const apiClient = useAPIClient(); - const ctx = useChartQueryMetadataContext(); - const options = useContext(SchemaOptionsContext); - const { theme } = useGlobalTheme(); - - const onAddQuery = useCallback( - (info) => { - FormDialog( - { - sql: lang('Add SQL query'), - json: lang('Add JSON query'), - }[info.key], - () => { - return ( -
- - - - - -
- ); - }, - theme, - ) - .open({ - initialValues: { - type: info.key, - }, - }) - .then(async (values) => { - try { - if (apiClient.resource('chartsQueries')?.create) { - const { data } = await apiClient.resource('chartsQueries').create({ values }); - const items = (await ctx.refresh()) as any; - const item = items.find((item) => item.id === data?.data?.id); - onCreateBlockSchema({ item }); - } - setVisible(false); - } catch (err) { - error(err); - } - }) - .catch((err) => { - error(err); - }); - }, - [apiClient, ctx, onCreateBlockSchema, options.components, options.scope, setVisible], - ); - - const items = useMemo(() => { - const defaultItems: any = [ - { - type: 'itemGroup', - title: lang('Select query data'), - children: [], - }, - ]; - const chartQueryMetadata = ctx.data; - if (chartQueryMetadata && Array.isArray(chartQueryMetadata)) { - const item1 = - chartQueryMetadata.length > 0 - ? { - type: 'itemGroup', - title: '{{t("Select chart query", {ns: "charts"})}}', - children: chartQueryMetadata, - } - : null; - const item2 = - chartQueryMetadata.length > 0 - ? { - type: 'divider', - } - : null; - - return [ - item1, - item2, - { - type: 'subMenu', - title: lang('Add chart query'), - // component: AddChartQuery, - children: [ - { - key: 'sql', - type: 'item', - title: 'SQL', - onClick: onAddQuery, - }, - { - key: 'json', - type: 'item', - title: 'JSON', - onClick: onAddQuery, - }, - ], - }, - ].filter(Boolean); - } - - return defaultItems; - }, [ctx.data, onAddQuery]); - - return ( - } - {...others} - onClick={async ({ item }) => { - onCreateBlockSchema({ item }); - setVisible(false); - }} - items={items} - /> - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx deleted file mode 100644 index ccb66bd55..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { useAPIClient, useRequest } from '@nocobase/client'; -import { Spin } from 'antd'; -import React, { createContext, useContext, useEffect } from 'react'; -import { useLocation } from 'react-router-dom'; - -export const ChartQueryMetadataContext = createContext({ - refresh: () => {}, - data: [] as any[], -}); -ChartQueryMetadataContext.displayName = 'ChartQueryMetadataContext'; - -export const ChartQueryMetadataProvider: React.FC = (props) => { - const api = useAPIClient(); - - const options = { - resource: 'chartsQueries', - action: 'listMetadata', - params: { - paginate: false, - sort: ['-id'], - }, - }; - - const location = useLocation(); - - const service = useRequest<{ - data: any; - }>(options, { - manual: true, - }); - - const isAdminPage = location.pathname.startsWith('/admin'); - const token = api.auth.getToken() || ''; - - useEffect(() => { - if (isAdminPage && token) { - service.run(); - } - }, [isAdminPage, token]); - - const refresh = async () => { - const { data } = await api.request(options); - service.mutate(data); - return data?.data || []; - }; - - if (service.loading) { - return ; - } - - return ( - - {props.children} - - ); -}; - -export const useChartQueryMetadataContext = () => { - return useContext(ChartQueryMetadataContext); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx deleted file mode 100644 index 97b7b1f08..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { ISchema } from '@nocobase/schema'; -import { FormItem, Input, SchemaComponent, SchemaComponentProvider, TableV2 } from '@nocobase/client'; -import { Empty, Spin } from 'antd'; -import React from 'react'; -import { useGetDataSet } from './ChartBlockEngine'; - -export default ({ queryId, fields }: { queryId: number; fields }) => { - const { dataSet, loading, error } = useGetDataSet(queryId); - const columns = {}; - if (fields) { - for (const field of fields) { - columns[field.name] = { - type: 'void', - title: field.name, - 'x-component': 'TableV2.Column', - 'x-component-props': { - // width: 200, - }, - properties: { - [field.name]: { - type: 'string', - 'x-component': 'Input', - 'x-read-pretty': true, - }, - }, - }; - } - } - const schema: ISchema = { - type: 'void', - properties: { - input: { - type: 'array', - 'x-component': 'TableV2', - 'x-component-props': { - scroll: { y: 300 }, - }, - default: dataSet, - properties: columns, - }, - }, - }; - - if (error) { - return ( - <> - May be this chart block's query data has been deleted,please check!} /> - - ); - } - - if (loading) - return ( - <> - - - ); - //对dataset中引用类型数据类型进行序列化处理 - dataSet.forEach((item) => { - for (const key in item) { - if (item[key] && item[key] instanceof Object) { - item[key] = JSON.stringify(item[key]); - } - } - }); - return ( - - - - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx deleted file mode 100644 index 1835ccb15..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx +++ /dev/null @@ -1,99 +0,0 @@ -import { Icon } from '@nocobase/client'; -import React from 'react'; - -const RadarChart = () => ( - -); -const FunnelChart = () => ( - -); -const ScatterChart = () => ( - -); -const ColumnChart = () => ( - -); - -const BarChart = () => ( - -); - -const LineChart = () => ( - -); - -const PieChart = () => ( - -); - -const AreaChart = () => ( - -); - -Icon.register({ - 'icon-area': (props) => , - 'icon-pie': (props) => , - 'icon-radar': (props) => , - 'icon-funnel': (props) => , - 'icon-line': (props) => , - 'icon-bar': (props) => , - 'icon-column': (props) => , - 'icon-scatter': (props) => , -}); diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts deleted file mode 100644 index e2bc7b578..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { G2Plot } from '@nocobase/client'; -import DataSetPreviewTable from '../DataSetPreviewTable'; - -const chartRenderComponentsMap = new Map(); -chartRenderComponentsMap.set('G2Plot', G2Plot); -chartRenderComponentsMap.set('DataSetPreviewTable', DataSetPreviewTable); -export default chartRenderComponentsMap; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts deleted file mode 100644 index 07d1d6fe6..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { useChartQueryMetadataContext } from '../ChartQueryMetadataProvider'; -import { useEffect, useState } from 'react'; - -const useFieldsById = (queryId: number) => { - const [fields, setFields] = useState([]); - const ctx = useChartQueryMetadataContext(); - useEffect(() => { - const chartQueryList = ctx?.data; - if (chartQueryList && Array.isArray(chartQueryList)) { - const currentQuery = chartQueryList.find((chartQuery) => chartQuery.id === queryId); - setFields(currentQuery?.fields || []); - } - }, [queryId]); - return { - fields, - }; -}; - -export { useFieldsById }; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx deleted file mode 100644 index 12fdcc9a9..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import { registerValidateRules } from '@nocobase/schema'; -import { BlockSchemaComponentPlugin, Plugin, SchemaComponentOptions, useAPIClient } from '@nocobase/client'; -import JSON5 from 'json5'; -import React from 'react'; -import { ChartBlockEngine } from './ChartBlockEngine'; -import { ChartBlockInitializer } from './ChartBlockInitializer'; -import { ChartQueryMetadataProvider } from './ChartQueryMetadataProvider'; -import './Icons'; -import { NAMESPACE, lang } from './locale'; -import { CustomSelect } from './select'; -import { QueriesTable } from './settings/QueriesTable'; - -registerValidateRules({ - json5: (value, rule) => { - if (!value) { - return ''; - } - try { - const val = JSON5.parse(value); - if (!isNaN(val)) { - return { - type: 'error', - message: lang('Invalid JSON format'), - }; - } - return ''; - } catch (error) { - console.error(error); - return { - type: 'error', - message: lang('Invalid JSON format'), - }; - } - }, -}); - -const ChartsProvider = React.memo((props) => { - const api = useAPIClient(); - const validateSQL = (sql) => { - return new Promise((resolve) => { - api - .request({ - url: 'chartsQueries:validate', - method: 'post', - data: { - sql, - }, - }) - .then(({ data }) => { - resolve(data?.data?.errorMessage); - }) - .catch(() => { - resolve('Invalid SQL'); - }); - }); - }; - return ( - - - {props.children} - - - ); -}); -ChartsProvider.displayName = 'ChartsProvider'; - -export class ChartsPlugin extends Plugin { - async afterAdd() { - this.app.pm.add(BlockSchemaComponentPlugin); - } - async load() { - // Chart (Old) 老的不需要了 - // const blockInitializers = this.app.schemaInitializerManager.get('page:addBlock'); - // blockInitializers?.add('data-blocks.chart-old', { - // icon: 'PieChartOutlined', - // title: '{{t("Chart (Old)",{ns:"charts"})}}', - // Component: 'ChartBlockInitializer', - // }); - this.app.use(ChartsProvider); - this.app.pluginSettingsManager.add(NAMESPACE, { - title: `{{t("Charts", { ns: "${NAMESPACE}" })}}`, - icon: 'PieChartOutlined', - Component: QueriesTable, - aclSnippet: 'pm.charts.queries', - }); - } -} - -export default ChartsPlugin; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts deleted file mode 100644 index 71c6c1c68..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { i18n } from '@nocobase/client'; -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'charts'; - -// i18n.addResources('zh-CN', NAMESPACE, zhCN); -// i18n.addResources('en-US', NAMESPACE, enUS); -// i18n.addResources('ja-JP', NAMESPACE, jaJP); -// i18n.addResources('ru-RU', NAMESPACE, ruRU); -// i18n.addResources('tr-TR', NAMESPACE, trTR); - -export function lang(key: string) { - return i18n.t(key, { ns: NAMESPACE }); -} - -export function useChartsTranslation() { - return useTranslation(NAMESPACE); -} diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx deleted file mode 100644 index d0669239c..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx +++ /dev/null @@ -1,119 +0,0 @@ -import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; -import { Icon, StablePopover, css } from '@nocobase/client'; -import type { SelectProps } from 'antd'; -import { Select as AntdSelect } from 'antd'; -import React from 'react'; -import { lang } from '../locale'; -import { ReadPretty } from './ReadPretty'; - -type Props = SelectProps & { objectValue?: boolean; onChange?: (v: any) => void; multiple: boolean }; - -const { Option, OptGroup } = AntdSelect; -const filterOption = (input, option) => (option?.label ?? '').toLowerCase().includes((input || '').toLowerCase()); - -const InternalSelect = connect( - (props: Props) => { - const { ...others } = props; - const { options, ...othersProps } = { ...others }; - const mode = props.mode || props.multiple ? 'multiple' : undefined; - const group1 = options.filter((option) => option.group === 2); - const group2 = options.filter((option) => option.group === 1); - return ( - { - props.onChange?.(changed === undefined ? null : changed); - }} - mode={mode} - > - - {group1.map((option) => ( - - ))} - - - {group2.map((option) => ( - - ))} - - - ); - }, - mapProps( - { - dataSource: 'options', - loading: true, - }, - (props, field) => { - return { - ...props, - suffixIcon: field?.['loading'] || field?.['validating'] ? : props?.suffixIcon, - }; - }, - ), - mapReadPretty(ReadPretty), -); - -export const CustomSelect = InternalSelect as unknown as typeof InternalSelect & { - ReadPretty: typeof ReadPretty; -}; - -CustomSelect.ReadPretty = ReadPretty; - -export default CustomSelect; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx deleted file mode 100644 index b6932f39c..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { isArrayField } from '@nocobase/schema'; -import { observer, useField } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; -import { Tag } from 'antd'; -import React from 'react'; -import { defaultFieldNames, getCurrentOptions } from './shared'; -import { useCompile } from '@nocobase/client'; - -type Composed = { - Select?: React.FC; - Object?: React.FC; -}; - -export const ReadPretty = observer( - (props: any) => { - const fieldNames = { ...defaultFieldNames, ...props.fieldNames }; - const field = useField(); - const compile = useCompile(); - - if (!isValid(props.value)) { - return
; - } - if (isArrayField(field) && field?.value?.length === 0) { - return
; - } - const dataSource = field.dataSource || props.options || []; - const options = getCurrentOptions(field.value, dataSource, fieldNames); - return ( -
- {options.map((option, key) => ( - - {compile(option[fieldNames.label])} - - ))} -
- ); - }, - { displayName: 'ReadPretty' }, -); diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.md b/packages/plugins/@nocobase/plugin-charts/src/client/select/index.md deleted file mode 100644 index 99230b2d7..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.md +++ /dev/null @@ -1,31 +0,0 @@ -# Select - -## Examples - -### 单选 - - - -### 多选 - - - -### 值为 Object 类型的 Select - - - -## API - -基于 Ant Design 的 [Select](https://ant.design/components/select/#API),相关扩展属性有: - -- `objectValue` 值为 object 类型 -- `fieldNames` 默认值有区别 - -```ts -export const defaultFieldNames = { - label: 'label', - value: 'value', - color: 'color', - options: 'children', -}; -``` diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts deleted file mode 100644 index 8e772cb69..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './CustomSelect'; -export * from './shared'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts b/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts deleted file mode 100644 index d440fdd40..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts +++ /dev/null @@ -1,37 +0,0 @@ -import lodash from 'lodash'; - -export const defaultFieldNames = { - label: 'label', - value: 'value', - color: 'color', - options: 'children', -}; - -export const getCurrentOptions = (values, dataSource, fieldNames) => { - function flatData(data) { - const newArr = []; - for (let i = 0; i < data.length; i++) { - const children = data[i][fieldNames.options]; - if (Array.isArray(children)) { - newArr.push(...flatData(children)); - } - newArr.push({ ...data[i] }); - } - return newArr; - } - const result = flatData(dataSource); - values = lodash - .castArray(values) - .filter((item) => item != null) - .map((val) => (typeof val === 'object' ? val[fieldNames.value] : val)); - const findOptions = (options: any[]) => { - if (!options) return []; - const current = []; - for (const value of values) { - const option = options.find((v) => v[fieldNames.value] === value) || { value: value, label: value }; - current.push(option); - } - return current; - }; - return findOptions(result); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx deleted file mode 100644 index b4afe7ddb..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx +++ /dev/null @@ -1,176 +0,0 @@ -import { DownOutlined, PlusOutlined } from '@ant-design/icons'; -import { createForm } from '@nocobase/schema'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; -import { - ActionContextProvider, - SchemaComponent, - useActionContext, - useRecord, - useResourceActionContext, - useResourceContext, -} from '@nocobase/client'; -import { Button, Dropdown, MenuProps } from 'antd'; -import React, { useMemo, useState } from 'react'; -import { useChartQueryMetadataContext } from '../ChartQueryMetadataProvider'; -import { lang } from '../locale'; -import { getQueryTypeSchema } from './queryTypes'; - -const useCreateAction = () => { - const { setVisible } = useActionContext(); - const form = useForm(); - const { refresh } = useResourceActionContext(); - const { resource } = useResourceContext(); - const ctx = useChartQueryMetadataContext(); - return { - async run() { - await form.submit(); - await resource.create({ values: form.values }); - setVisible(false); - await form.reset(); - refresh(); - ctx.refresh(); - }, - }; -}; - -const useUpdateAction = () => { - const { setVisible } = useActionContext(); - const form = useForm(); - const { refresh } = useResourceActionContext(); - const { resource, targetKey } = useResourceContext(); - const { [targetKey]: filterByTk } = useRecord(); - const ctx = useChartQueryMetadataContext(); - return { - async run() { - await form.submit(); - await resource.update({ filterByTk, values: form.values }); - setVisible(false); - await form.reset(); - refresh(); - ctx.refresh(); - }, - }; -}; - -const useCloseAction = () => { - const { setVisible } = useActionContext(); - return { - async run() { - setVisible(false); - }, - }; -}; - -const getSchema = (initialValue, { form, isNewRecord }) => { - const type = initialValue.type; - const schema: ISchema = { - type: 'void', - name: uid(), - 'x-component': 'Action.Drawer', - 'x-decorator': 'Form', - 'x-decorator-props': { - form, - // initialValue: JSON.parse(JSON.stringify(initialValue)), - }, - title: isNewRecord ? lang('Add query') : lang('Edit query'), - properties: { - title: { - title: lang('Title'), - required: true, - 'x-component': 'Input', - 'x-decorator': 'FormItem', - }, - options: getQueryTypeSchema(type), - footer: { - type: 'void', - 'x-component': 'Action.Drawer.Footer', - properties: { - cancel: { - 'x-component': 'Action', - title: lang('Cancel'), - 'x-component-props': { - useAction: '{{ useCloseAction }}', - }, - }, - submit: { - 'x-component': 'Action', - title: lang('Submit'), - 'x-component-props': { - type: 'primary', - useAction: '{{ useSubmitAction }}', - }, - }, - }, - }, - }, - }; - return schema; -}; - -export const AddNewQuery = () => { - const [visible, setVisible] = useState(false); - const [schema, setSchema] = useState({}); - const form = useMemo(() => createForm(), []); - - const menu = useMemo(() => { - return { - onClick: (info) => { - setVisible(true); - form.setValues({ type: info.key }); - setSchema(getSchema({ type: info.key }, { form, isNewRecord: true })); - }, - items: [ - { - key: 'json', - label: 'JSON', - }, - { - key: 'sql', - label: 'SQL', - }, - { - key: 'api', - label: 'API', - disabled: true, - }, - { - key: 'collection', - label: 'Collection', - disabled: true, - }, - ], - }; - }, [form]); - - return ( - - - - - - - ); -}; - -export const EditQuery = () => { - const [visible, setVisible] = useState(false); - const record = useRecord(); - const form = useMemo(() => createForm(), []); - const schema = getSchema(record, { form, isNewRecord: false }); - return ( - - { - form.setValues(record); - setVisible(true); - }} - > - {lang('Edit')} - - - - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx deleted file mode 100644 index cb15739f6..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { useRecord } from '@nocobase/client'; -import { Table } from 'antd'; -import React from 'react'; - -export const ConfigureFields = () => { - const record = useRecord(); - return ( - - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx deleted file mode 100644 index c2cc5f7be..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { SchemaComponent } from '@nocobase/client'; -import { Card } from 'antd'; -import React, { useState } from 'react'; -import { useTranslation } from 'react-i18next'; -import { AddNewQuery, EditQuery } from './AddNewQuery'; -import { ConfigureFields } from './ConfigureFields'; -import { - chartsQueriesSchema, - useDestroyAllSelectedQueriesAction, - useDestroyQueryItemAction, -} from './schemas/chartsQueries'; -import JSON5 from 'json5'; - -export const QueriesTable = () => { - const [visible, setVisible] = useState(false); - const { t } = useTranslation(); - return ( - - - - ); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts b/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts deleted file mode 100644 index 9a11bf82e..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { ISchema } from '@nocobase/schema'; -import lodash from 'lodash'; - -export const json: ISchema = { - type: 'object', - properties: { - data: { - title: 'JSON', - required: true, - 'x-component': 'Input.TextArea', - 'x-validator': { json5: true }, - 'x-component-props': { - autoSize: { - maxRows: 20, - minRows: 10, - }, - }, - 'x-decorator': 'FormItem', - }, - }, -}; - -export const sql: ISchema = { - type: 'object', - properties: { - sql: { - title: 'SQL', - required: true, - 'x-component': 'Input.TextArea', - 'x-decorator': 'FormItem', - 'x-validator': { - triggerType: 'onBlur', - validator: '{{validateSQL}}', - }, - 'x-component-props': { - autoSize: { - maxRows: 20, - minRows: 10, - }, - }, - }, - }, -}; - -export const api: ISchema = { - type: 'object', - properties: { - api: { - title: 'API', - required: true, - 'x-component': 'Input', - 'x-decorator': 'FormItem', - }, - }, -}; - -const types = { - json, - sql, - api, -}; - -export const getQueryTypeSchema = (type) => { - return lodash.cloneDeep(types[type]); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts deleted file mode 100644 index b5c9b0185..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts +++ /dev/null @@ -1,319 +0,0 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; -import { - useActionContext, - useRecord, - useRequest, - useResourceActionContext, - useResourceContext, -} from '@nocobase/client'; -import { useChartQueryMetadataContext } from '../../ChartQueryMetadataProvider'; - -const collection = { - name: 'chartsQueries', - fields: [ - { - type: 'integer', - name: 'title', - interface: 'input', - uiSchema: { - title: '{{t("Title",{ns:"charts"})}}', - type: 'string', - 'x-component': 'Input', - required: true, - } as ISchema, - }, - { - type: 'string', - name: 'type', - interface: 'select', - uiSchema: { - title: '{{t("Type",{ns:"charts"})}}', - type: 'string', - 'x-component': 'Select', - required: true, - enum: [ - { label: '{{t("API")}}', value: 'api' }, - { label: '{{t("SQL")}}', value: 'sql' }, - { label: '{{t("JSON")}}', value: 'json' }, - ], - } as ISchema, - }, - ], -}; - -export const useDestroyQueryItemAction = () => { - const ctx = useChartQueryMetadataContext(); - const { refresh } = useResourceActionContext(); - const { resource, targetKey } = useResourceContext(); - const { [targetKey]: filterByTk } = useRecord(); - return { - async run() { - await resource.destroy({ filterByTk }); - refresh(); - ctx.refresh(); - }, - }; -}; - -export const useDestroyAllSelectedQueriesAction = () => { - const ctx = useChartQueryMetadataContext(); - const { state, setState, refresh } = useResourceActionContext(); - const { resource, targetKey } = useResourceContext(); - return { - async run() { - await resource.destroy({ - filterByTk: state?.selectedRowKeys || [], - }); - setState?.({ selectedRowKeys: [] }); - refresh(); - ctx.refresh(); - }, - }; -}; - -export const chartsQueriesSchema: ISchema = { - type: 'object', - properties: { - [uid()]: { - type: 'void', - 'x-decorator': 'ResourceActionProvider', - 'x-decorator-props': { - collection, - resourceName: 'chartsQueries', - request: { - resource: 'chartsQueries', - action: 'list', - params: { - pageSize: 50, - sort: ['-id'], - appends: [], - }, - }, - }, - 'x-component': 'CollectionProvider_deprecated', - 'x-component-props': { - collection, - }, - properties: { - actions: { - type: 'void', - 'x-component': 'ActionBar', - 'x-component-props': { - style: { - marginBottom: 16, - }, - }, - properties: { - delete: { - type: 'void', - title: '{{ t("Delete") }}', - 'x-component': 'Action', - 'x-component-props': { - useAction: '{{ useDestroyAllSelectedQueriesAction }}', - confirm: { - title: '{{t("Delete queries",{ns:"charts"})}}', - content: "{{t('Are you sure you want to delete it?')}}", - }, - }, - }, - create: { - type: 'void', - title: '{{t("Add query")}}', - 'x-component': 'AddNewQuery', - 'x-component-props': { - type: 'primary', - }, - properties: { - drawer: { - type: 'void', - 'x-component': 'Action.Drawer', - 'x-decorator': 'Form', - 'x-decorator-props': { - useValues(options) { - const ctx = useActionContext(); - return useRequest( - () => - Promise.resolve({ - data: { - name: `s_${uid()}`, - }, - }), - { ...options, refreshDeps: [ctx.visible] }, - ); - }, - }, - title: '{{t("Add query",{ns:"charts"})}}', - properties: { - title: { - 'x-component': 'CollectionField', - 'x-decorator': 'FormItem', - }, - type: { - 'x-component': 'CollectionField', - 'x-decorator': 'FormItem', - }, - footer: { - type: 'void', - 'x-component': 'Action.Drawer.Footer', - properties: { - cancel: { - title: '{{t("Cancel",{ns:"charts"})}}', - 'x-component': 'Action', - 'x-component-props': { - useAction: '{{ cm.useCancelAction }}', - }, - }, - submit: { - title: '{{t("Submit",{ns:"charts"})}}', - 'x-component': 'Action', - 'x-component-props': { - type: 'primary', - useAction: '{{ cm.useCreateAction }}', - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - table: { - type: 'void', - 'x-uid': 'input', - 'x-component': 'Table.Void', - 'x-component-props': { - rowKey: 'id', - rowSelection: { - type: 'checkbox', - }, - useDataSource: '{{ cm.useDataSourceFromRAC }}', - }, - properties: { - title: { - type: 'void', - 'x-decorator': 'Table.Column.Decorator', - 'x-component': 'Table.Column', - properties: { - title: { - type: 'number', - 'x-component': 'CollectionField', - 'x-read-pretty': true, - }, - }, - }, - type: { - type: 'void', - 'x-decorator': 'Table.Column.Decorator', - 'x-component': 'Table.Column', - properties: { - type: { - type: 'string', - 'x-component': 'CollectionField', - 'x-read-pretty': true, - }, - }, - }, - actions: { - type: 'void', - title: '{{t("Actions")}}', - 'x-component': 'Table.Column', - properties: { - actions: { - type: 'void', - 'x-component': 'Space', - 'x-component-props': { - split: '|', - }, - properties: { - fields: { - type: 'void', - title: '{{t("Configure fields")}}', - 'x-component': 'Action.Link', - 'x-component-props': { - type: 'primary', - }, - properties: { - drawer: { - type: 'void', - 'x-component': 'Action.Drawer', - title: '{{t("Configure fields")}}', - properties: { - configure: { - type: 'void', - 'x-component': 'ConfigureFields', - }, - }, - }, - }, - }, - update: { - type: 'void', - title: '{{t("Edit")}}', - 'x-component': 'EditQuery', - 'x-component-props': { - type: 'primary', - }, - properties: { - drawer: { - type: 'void', - 'x-component': 'Action.Drawer', - 'x-decorator': 'Form', - 'x-decorator-props': { - useValues: '{{ cm.useValuesFromRecord }}', - }, - title: '{{t("Edit")}}', - properties: { - title: { - 'x-component': 'CollectionField', - 'x-decorator': 'FormItem', - }, - footer: { - type: 'void', - 'x-component': 'Action.Drawer.Footer', - properties: { - cancel: { - title: '{{t("Cancel",{ns:"charts"})}}', - 'x-component': 'Action', - 'x-component-props': { - useAction: '{{ cm.useCancelAction }}', - }, - }, - submit: { - title: '{{t("Submit",{ns:"charts"})}}', - 'x-component': 'Action', - 'x-component-props': { - type: 'primary', - useAction: '{{ cm.useUpdateAction }}', - }, - }, - }, - }, - }, - }, - }, - }, - delete: { - type: 'void', - title: '{{ t("Delete") }}', - 'x-component': 'Action.Link', - 'x-component-props': { - confirm: { - title: '{{t("Delete query",{ns:"charts"})}}', - content: "{{t('Are you sure you want to delete it?')}}", - }, - useAction: '{{ useDestroyQueryItemAction }}', - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx deleted file mode 100644 index 018e16cd5..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - yField: '{{metric}}', - xField: '{{dimension}}', - seriesField: '{{category}}', -}; - -export const areaTemplate = { - description: '1 「time」or 「Ordered Noun」 field,1 「Numerical」 field,1 「Unordered Noun」 field (optional)', - type: 'Area', - title: 'Area', - iconId: 'icon-area', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Category axis / Dimension",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Value axis / Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Area | G2Plot","https://g2plot.antv.antgroup.com/api/plots/area")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx deleted file mode 100644 index 23cb4cdfe..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - appendPadding: 10, - isGroup: true, - yField: '{{dimension}}', - xField: '{{metric}}', - seriesField: '{{category}}', - label: { - // 可手动配置 label 数据标签位置 - position: 'middle', // 'top', 'bottom', 'middle', - // 配置样式 - style: { - fill: '#FFFFFF', - opacity: 0.6, - }, - }, - xAxis: { - label: { - autoHide: true, - autoRotate: false, - }, - }, -}; -export const barTemplate = { - description: '1 「time」 or 「ordered noun」 field, 1 「value」 field, 0~ 1 「unordered noun」', - type: 'Bar', - title: 'Bar', - iconId: 'icon-bar', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Category axis / Dimension",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Value axis / Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Bar | G2Plot","https://g2plot.antv.antgroup.com/api/plots/bar")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx deleted file mode 100644 index 0614bcdf6..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - appendPadding: 10, - isGroup: true, - yField: '{{metric}}', - xField: '{{dimension}}', - seriesField: '{{category}}', - label: { - // 可手动配置 label 数据标签位置 - position: 'middle', // 'top', 'bottom', 'middle', - // 配置样式 - style: { - fill: '#FFFFFF', - opacity: 0.6, - }, - }, - xAxis: { - label: { - autoHide: true, - autoRotate: false, - }, - }, -}; - -export const columnTemplate = { - description: '1 「time」 or 「ordered noun」 field, 1 「value」 field, 0 to 1 「unordered noun」', - type: 'Column', - title: 'Column', - iconId: 'icon-column', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Category axis / Dimension",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Value axis / Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Column | G2Plot","https://g2plot.antv.antgroup.com/api/plots/column")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx deleted file mode 100644 index bd7439268..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - xField: '{{dimension}}', - yField: '{{metric}}', - seriesField: '{{category}}', - legend: false, -}; - -export const funnelTemplate = { - description: '1 「Unordered Noun」 field, 1 「Numeric」 field', - type: 'Funnel', - title: 'Funnel', - iconId: 'icon-funnel', - group: 1, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Sector label / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Funnel Layer Width/Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Funnel | G2Plot","https://g2plot.antv.antgroup.com/api/plots/funnel")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx deleted file mode 100644 index bd02df737..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - yField: '{{metric}}', - xField: '{{dimension}}', - seriesField: '{{category}}', - xAxis: { - //type: 'time', - }, - yAxis: { - // label: { - // formatter: '{{(v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`)}}', - // }, - }, -}; - -export const lineTemplate = { - description: '1 「Time」 or 「Order Noun」 field, 1 「Value」 field', - type: 'Line', - title: 'Line', - iconId: 'icon-line', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Category axis / Dimension",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Value axis / Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Line | G2Plot","https://g2plot.antv.antgroup.com/api/plots/line")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx deleted file mode 100644 index 8d2753f99..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - appendPadding: 10, - angleField: '{{metric}}', - colorField: '{{dimension}}', - radius: 0.9, - label: { - type: 'inner', - offset: '-30%', - content: '{{({percent}) => `${(percent * 100).toFixed(0)}%`}}', - style: { - fontSize: 14, - textAlign: 'center', - }, - }, - interactions: [{ type: 'element-active' }], -}; - -export const pieTemplate = { - description: '1 「Time」 or 「Order Noun」 field, 1 「Value」 field', - title: 'Pie', - type: 'Pie', - iconId: 'icon-pie', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Sector label / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Sector Angle / Metric",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Pie | G2Plot","https://g2plot.antv.antgroup.com/api/plots/pie")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx deleted file mode 100644 index 770ff0d2a..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - xField: '{{dimension}}', - yField: '{{metric}}', - appendPadding: [0, 10, 0, 10], - xAxis: { - tickLine: null, - }, - yAxis: { - label: false, - grid: { - alternateColor: 'rgba(0, 0, 0, 0.04)', - }, - }, - // 开启辅助点 - point: { - size: 2, - }, - area: {}, -}; - -export const radarTemplate = { - description: '1~ 2 「Unordered Noun」 fields, 1 「Numeric」 field', - type: 'Radar', - title: 'Radar', - iconId: 'icon-radar', - group: 1, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Branch Tags/Dimensions",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Branch Length/Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Radar | G2Plot","https://g2plot.antv.antgroup.com/api/plots/radar")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx deleted file mode 100644 index 78f72e2e6..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import JSON5 from 'json5'; - -const chartConfig = { - appendPadding: 10, - xField: '{{metric}}', - yField: '{{dimension}}', - colorField: '{{category}}', - shape: 'circle', - size: 4, - yAxis: { - nice: true, - line: { - style: { - stroke: '#aaa', - }, - }, - }, - xAxis: { - min: -100, - grid: { - line: { - style: { - stroke: '#eee', - }, - }, - }, - line: { - style: { - stroke: '#aaa', - }, - }, - }, -}; - -export const scatterTemplate = { - description: '1 「Numeric」 field, 0~ 1 「Unordered Noun」 field', - type: 'Scatter', - title: 'Scatter', - iconId: 'icon-scatter', - group: 2, - renderComponent: 'G2Plot', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: { - dimension: { - required: true, - type: 'string', - title: '{{t("Category axis / Dimension",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - metric: { - required: true, - type: 'string', - title: '{{t("Value axis / Metrics",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - category: { - type: 'string', - title: '{{t("Color legend / Dimensional",{ns:"charts"})}}', - 'x-decorator': 'FormItem', - 'x-component': 'Select', - enum: '{{dataSource}}', - }, - jsonConfig: { - type: 'void', - 'x-component': 'div', - properties: { - template: { - required: true, - title: '{{t("JSON config",{ns:"charts"})}}', - type: 'string', - default: JSON5.stringify(chartConfig, null, 2), - 'x-decorator': 'FormItem', - 'x-component': 'Input.TextArea', - 'x-component-props': { - autoSize: { minRows: 8, maxRows: 16 }, - }, - description: '{{jsonConfigDesc("Scatter | G2Plot","https://g2plot.antv.antgroup.com/api/plots/scatter")}}', - 'x-validator': { json5: true }, - }, - }, - }, - }, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx deleted file mode 100644 index 68addb3d9..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import JSON5 from 'json5'; - -const validateJSON = { - validator: `{{(value, rule)=> { - if (!value) { - return ''; - } - try { - const val = JSON5.parse(value); - if(!isNaN(val)) { - return false; - } - return true; - } catch(error) { - console.error(error); - return false; - } - }}}`, - message: '{{t("Invalid JSON format",{ ns: "charts" })}}', -}; - -const chartConfig = { - appendPadding: 10, - angleField: '{{metric}}', - colorField: '{{dimension}}', - radius: 0.9, - label: { - type: 'inner', - offset: '-30%', - content: '{{({percent}) => `${(percent * 100).toFixed(0)}%`}}', - style: { - fontSize: 14, - textAlign: 'center', - }, - }, - interactions: [{ type: 'element-active' }], -}; -export const tableTemplate = { - title: '表格展示', - type: 'DataSetPreviewTable', - group: 2, - renderComponent: 'DataSetPreviewTable', - defaultChartOptions: chartConfig, - configurableProperties: { - type: 'void', - properties: {}, - }, -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts deleted file mode 100644 index 49171d4db..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { pieTemplate } from './PieTemplate'; -import { barTemplate } from './BarTemplate'; -import { columnTemplate } from './ColumnTemplate'; -import { lineTemplate } from './LineTemplate'; -import { areaTemplate } from './AreaTemplate'; -import { tableTemplate } from './TableTemplate'; -import { scatterTemplate } from './ScatterTemplate'; -import { radarTemplate } from './RadarTemplate'; -import { funnelTemplate } from './FunnelTemplate'; - -export const templates = new Map(); - -templates.set('Pie', pieTemplate); -templates.set('Line', lineTemplate); -templates.set('Area', areaTemplate); -templates.set('Bar', barTemplate); -templates.set('Column', columnTemplate); -templates.set('Scatter', scatterTemplate); -templates.set('Radar', radarTemplate); -templates.set('Funnel', funnelTemplate); -// templates.set('DataSetPreviewTable', tableTemplate); diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts b/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts deleted file mode 100644 index d31fd4a20..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts +++ /dev/null @@ -1,39 +0,0 @@ -import JSON5 from 'json5'; -import { uid } from '@nocobase/schema'; - -const validateArray = (value) => { - try { - value = JSON5.parse(value); - } catch (e) { - return 'Please input validate dataset'; - } - if (Array.isArray(value)) { - if ( - value.every((item) => { - return typeof item === 'object' && Object.keys(item).length > 1; - }) - ) - return true; - } - return 'Please input validate dataset'; -}; - -const parseDataSetString = (str) => { - const dataSetDataArray = JSON5.parse(str); - if (Array.isArray(dataSetDataArray)) { - if ( - dataSetDataArray.every((item) => { - return typeof item === 'object' && Object.keys(item).length > 1; - }) - ) - dataSetDataArray.map((item) => { - if (!item?.id) { - item.id = uid(); - } - return item; - }); - } - return dataSetDataArray; -}; - -export { validateArray, parseDataSetString }; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts deleted file mode 100644 index 056d2b670..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts +++ /dev/null @@ -1,23 +0,0 @@ -export default { - Edit: 'Edit', - Delete: 'Delete', - Cancel: 'Cancel', - Submit: 'Submit', - Actions: 'Actions', - Title: 'Title', - Enable: 'Enable', - 'SAML manager': 'SAML manager', - 'SAML Providers': 'SAML Providers', - 'Redirect url': 'Redirect url', - 'SP entity id': 'SP entity id', - 'Add provider': 'Add', - 'Edit provider': 'Edit', - 'Client id': 'Client id', - 'Entity id or issuer': 'Entity id or issuer', - 'Login Url': 'Login Url', - 'Public cert': 'Public cert', - 'Delete provider': 'Delete', - 'Are you sure you want to delete it?': 'Are you sure you want to delete it?', - 'Sign in button name, which will be displayed on the sign in page': - 'Sign in button name, which will be displayed on the sign in page', -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts deleted file mode 100644 index 7466cc0f7..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts +++ /dev/null @@ -1,52 +0,0 @@ -export default { - "Edit": "Editar", - "Delete": "Borrar", - "Cancel": "Cancelar", - "Submit": "Enviar", - "Actions": "Acciones", - "Title": "Título", - "Enable": "Activar", - "Chart": "Chart", - "Charts": "Charts", - "Queries": "Consultas", - "Select chart query": "Seleccionar consulta de chart", - "Select query data": "Seleccionar datos de consulta", - "Type": "Tipo", - "Chart type": "Tipo de chart", - "Chart title": "Título del chart", - "Basic charts": "Basic charts", - "More charts": "Más charts", - "Chart config": "Chart config", - "Add query": "Añadir consulta", - "Edit query": "Editar consulta", - "Invalid JSON format,must be an object array.": "Formato JSON no válido, debe ser una matriz de objetos.", - "Area": "Área", - "Bar": "Barra", - "Column": "Columna", - "Funnel": "Embudo", - "Line": "Línea", - "Pie": "Tarta", - "Radar": "Radar", - "Scatter": "Dispersión", - "Edit chart block": "Editar bloque de chart", - "Chart preview": "Vista previa de charts", - "Delete queries": "Eliminar consultas", - "Delete query": "Eliminar consulta", - "Add chart query": "Añadir consulta de chart", - "Add SQL query": "Añadir consulta SQL", - "Add JSON query": "Añadir consulta JSON", - "Data preview": "Vista previa de datos", - "Category axis / Dimension": "Eje de categorías / Dimensión", - "Value axis / Metrics": "Eje de valor / Métrica", - "JSON config": "JSON config", - "Create chart block": "Crear bloque de charts", - "Invalid JSON format": "Formato JSON no válido", - "Json config references": "Referencias JSON config", - "Sector Angle / Metric": "Sector Angle / Metric", - "Sector label / Dimensional": "Etiqueta de sector / Dimensional", - "Color legend / Dimensional": "Leyenda de color / Dimensional", - "Funnel Layer Width/Metrics": "Anchura de la capa del embudo / Métrica", - "Branch Tags/Dimensions": "Etiquetas de rama / Dimensión", - "Branch Length/Metrics": "Longitud de rama / Métrica", - "Please check the chart config": "Please check the chart config" -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts deleted file mode 100644 index ff8b4c563..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts deleted file mode 100644 index ff8b4c563..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts deleted file mode 100644 index e0cefaf12..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts +++ /dev/null @@ -1,64 +0,0 @@ -export default { - "Edit": "편집", - "Delete": "삭제", - "Cancel": "취소", - "Submit": "제출", - "Actions": "작업", - "Title": "제목", - "Enable": "사용", - "Chart": "차트", - "Charts": "차트", - "Queries": "쿼리 목록", - "Select chart query": "차트 데이터 선택", - "Select query data": "쿼리 데이터 선택", - "Type": "유형", - "Chart type": "차트 유형", - "Chart title": "차트 제목", - "Basic charts": "기본 차트", - "More charts": "더 많은 차트", - "Chart config": "차트 설정", - "Add query": "쿼리 추가", - "Edit query": "쿼리 편집", - "Invalid JSON format,must be an object array.": "유효하지 않은 JSON 형식, 객체 배열이어야 합니다.", - "Area": "면적 차트", - "Bar": "막대 차트", - "Column": "컬럼 차트", - "Funnel": "퍼널 차트", - "Line": "선형 차트", - "Pie": "파이 차트", - "Radar": "레이더 차트", - "Scatter": "산점도 차트", - "Edit chart block": "차트 블록 편집", - "Chart preview": "차트 미리보기", - "Delete queries": "쿼리 목록 삭제", - "Delete query": "쿼리 삭제", - "Add chart query": "차트 쿼리 추가", - "Add SQL query": "SQL 쿼리 추가", - "Add JSON query": "JSON 쿼리 추가", - "Data preview": "데이터 미리보기", - "Category axis / Dimension": "카테고리 축 / 차원", - "Value axis / Metrics": "값 축 / 메트릭", - "JSON config": "JSON 설정", - "Json config references": "JSON 설정 참조", - "Create chart block": "차트 블록 생성", - "Invalid JSON format": "유효하지 않은 JSON 형식", - "Json config references: ": "JSON 설정 참조: ", - "Sector Angle / Metric": "섹터 각도 / 메트릭", - "Sector label / Dimensional": "섹터 레이블 / 차원", - "Color legend / Dimensional": "색상 범례 / 차원", - "Funnel Layer Width/Metrics": "퍼널 레이어 너비 / 메트릭", - "Branch Tags/Dimensions": "분기 태그 / 차원", - "Branch Length/Metrics": "분기 길이 / 메트릭", - "Please check the chart config": "차트 설정을 확인하십시오", - "1 「time」or 「Ordered Noun」 field,1 「Numerical」 field,1 「Unordered Noun」 field (optional)": - "1개의 「time」 또는 「순서가 지정된 명사」 필드, 1개의 「숫자」 필드, 1개의 「순서가 지정되지 않은 명사」 필드 (선택 사항)", - "1 「time」 or 「ordered noun」 field, 1 「value」 field, 0~ 1 「unordered noun」": - "1개의 「time」 또는 「순서가 지정된 명사」 필드, 1개의 「value」 필드, 0~1개의 「순서가 지정되지 않은 명사」", - "1 「time」 or 「ordered noun」 field, 1 「value」 field, 0 to 1 「unordered noun」": - "1개의 「time」 또는 「순서가 지정된 명사」 필드, 1개의 「value」 필드, 0에서 1개의 「순서가 지정되지 않은 명사」", - "1 「Unordered Noun」 field, 1 「Numeric」 field": "1개의 「순서가 지정되지 않은 명사」 필드, 1개의 「숫자」 필드", - "1 「Time」 or 「Order Noun」 field, 1 「Value」 field": "1개의 「시간」 또는 「순서가 지정된 명사」 필드, 1개의 「값」 필드", - "1~ 2 「Unordered Noun」 fields, 1 「Numeric」 field": "1~2개의 「순서가 지정되지 않은 명사」 필드, 1개의 「숫자」 필드", - "1 「Numeric」 field, 0~ 1 「Unordered Noun」 field": "1개의 「숫자」 필드, 0~1개의 「순서가 지정되지 않은 명사」 필드", - "Chart (Old)": "차트 (이전)" - }; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts deleted file mode 100644 index 6969b693c..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts +++ /dev/null @@ -1,23 +0,0 @@ -export default { - Edit: 'Editar', - Delete: 'Delete', - Cancel: 'Cancelar', - Submit: 'Enviar', - Actions: 'Ações', - Title: 'Titulo', - Enable: 'Ativo', - 'SAML manager': 'Gerenciador SAML', - 'SAML Providers': 'Provedores SAML', - 'Redirect url': 'URL de redirecionamento', - 'SP entity id': 'ID de entidade do provedor de serviço (SP)', - 'Add provider': 'Adicionar', - 'Edit provider': 'Editar', - 'Client id': 'ID do cliente', - 'Entity id or issuer': 'ID de entidade ou emissor', - 'Login Url': 'URL de login', - 'Public cert': 'Certificado público', - 'Delete provider': 'Excluir', - 'Are you sure you want to delete it?': 'Tem certeza de que deseja excluí-lo?', - 'Sign in button name, which will be displayed on the sign in page': - 'Nome do botão de login, que será exibido na página de login', -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts deleted file mode 100644 index ff8b4c563..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts deleted file mode 100644 index ff8b4c563..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts deleted file mode 100644 index 38955e9ef..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts +++ /dev/null @@ -1,64 +0,0 @@ -export default { - Edit: '编辑', - Delete: '删除', - Cancel: '取消', - Submit: '提交', - Actions: '操作', - Title: '名称', - Enable: '启用', - Chart: '图表', - Charts: '图表', - Queries: '查询列表', - 'Select chart query': '选择图表数据', - 'Select query data': '选择查询数据', - Type: '类型', - 'Chart type': '图表类型', - 'Chart title': '图表标题', - 'Basic charts': '基础图表', - 'More charts': '更多图表', - 'Chart config': '图表配置', - 'Add query': '添加查询', - 'Edit query': '编辑查询', - 'Invalid JSON format,must be an object array.': '无效的JSON格式,必须是对象数组。', - Area: '面积图', - Bar: '条形图', - Column: '柱状图', - Funnel: '漏斗图', - Line: '折线图', - Pie: '饼图', - Radar: '雷达图', - Scatter: '散点图', - 'Edit chart block': '编辑图表区块', - 'Chart preview': '图表预览', - 'Delete queries': '删除查询列表', - 'Delete query': '删除查询', - 'Add chart query': '添加图表查询', - 'Add SQL query': '添加SQL查询', - 'Add JSON query': '添加JSON查询', - 'Data preview': '数据预览', - 'Category axis / Dimension': '类别轴 / 维度', - 'Value axis / Metrics': '值轴 / 度量', - 'JSON config': 'JSON 配置', - 'Json config references': 'JSON配置参考', - 'Create chart block': '创建图表区块', - 'Invalid JSON format': '无效的JSON格式', - 'Json config references: ': 'JSON配置参考: ', - 'Sector Angle / Metric': '扇形角 / 度量', - 'Sector label / Dimensional': '扇形标签 / 维度', - 'Color legend / Dimensional': '颜色系列 / 维度', - 'Funnel Layer Width/Metrics': '漏斗层宽度 / 度量', - 'Branch Tags/Dimensions': '分支标签 / 维度', - 'Branch Length/Metrics': '分支长度 / 度量', - 'Please check the chart config': '请检查图表配置', - '1 「time」or 「Ordered Noun」 field,1 「Numerical」 field,1 「Unordered Noun」 field (optional)': - '1 个「时间」或「有序名词」字段,1 个「数值」字段,1 个「无序名词」字段(可选)', - '1 「time」 or 「ordered noun」 field, 1 「value」 field, 0~ 1 「unordered noun」': - '1 个「时间」或「有序名词」字段,1 个「数值」字段,0 ~ 1 个「无序名词」', - '1 「time」 or 「ordered noun」 field, 1 「value」 field, 0 to 1 「unordered noun」': - '1 个「时间」或「有序名词」字段,1 个「数值」字段,0 ~ 1 个「无序名词」', - '1 「Unordered Noun」 field, 1 「Numeric」 field': '1 个「无序名词」字段,1 个「数值」字段', - '1 「Time」 or 「Order Noun」 field, 1 「Value」 field': '1 个「时间」或「有序名词」字段,1 个「数值」字段', - '1~ 2 「Unordered Noun」 fields, 1 「Numeric」 field': '1 ~ 2 个「无序名词」字段,1 个「数值」字段', - '1 「Numeric」 field, 0~ 1 「Unordered Noun」 field': '1 个「数值」字段,0 ~ 1 个「无序名词」字段', - 'Chart (Old)': '图表 (旧)', -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts deleted file mode 100644 index e80cf8d6e..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts +++ /dev/null @@ -1,49 +0,0 @@ -import JSON5 from 'json5'; -import { query } from '../query'; - -export const getData = async (ctx, next) => { - const { filterByTk } = ctx.action.params; - const r = ctx.db.getRepository('chartsQueries'); - try { - const instance = await r.findOne({ filterByTk }); - const result = await query[instance.type](instance.options, { db: ctx.db, skipError: true }); - if (typeof result === 'string') { - ctx.body = JSON5.parse(result); - } else { - ctx.body = result; - } - } catch (error) { - ctx.body = []; - ctx.logger.info('chartsQueries', error); - } - return next(); -}; - -export const validate = async (ctx, next) => { - const { values } = ctx.action.params; - ctx.body = { - errorMessage: '', - }; - try { - await query.sql(values, { db: ctx.db, validateSQL: true }); - } catch (error) { - ctx.body = { - errorMessage: error.message, - }; - } - return next(); -}; - -export const listMetadata = async (ctx, next) => { - const r = ctx.db.getRepository('chartsQueries'); - const items = await r.find({ sort: '-id' }); - ctx.body = items.map((item) => { - return { - id: item.id, - title: item.title, - type: item.type, - fields: item.fields, - }; - }); - return next(); -}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts deleted file mode 100644 index 1b07e0be5..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { defineCollection } from '@nocobase/database'; - -export default defineCollection({ - dumpRules: 'required', - name: 'chartsQueries', - shared: true, - fields: [ - { - name: 'title', - type: 'string', - }, - { - name: 'type', - type: 'string', - }, - { - name: 'options', - type: 'json', - }, - { - name: 'fields', - type: 'json', - defaultValue: [], - }, - ], -}); diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts deleted file mode 100644 index 84ad0ed3a..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { InstallOptions, Plugin } from '@nocobase/server'; -import JSON5 from 'json5'; -import { resolve } from 'path'; -import { getData, listMetadata, validate } from './actions/chartsQueries'; -import { query } from './query'; - -export class ChartsPlugin extends Plugin { - syncFields = async (instance, { transaction }) => { - const _data = await query[instance.type](instance.options, { db: this.db, transaction, validateSQL: true }); - let data; - if (typeof _data === 'string') { - data = JSON5.parse(_data); - } else { - data = _data; - } - const d = Array.isArray(data) ? data?.[0] : data; - const fields = Object.keys(d || {}).map((f) => { - return { - name: f, - }; - }); - instance.set('fields', fields); - }; - - afterAdd() {} - - beforeLoad() { - this.app.db.on('chartsQueries.beforeCreate', this.syncFields); - this.app.db.on('chartsQueries.beforeUpdate', this.syncFields); - } - - async load() { - await this.importCollections(resolve(__dirname, 'collections')); - - this.app.resourcer.registerActionHandlers({ - 'chartsQueries:getData': getData, - 'chartsQueries:listMetadata': listMetadata, - 'chartsQueries:validate': validate, - }); - - this.app.acl.registerSnippet({ - name: 'pm.charts.queries', - actions: ['chartsQueries:*'], - }); - - this.app.acl.allow('chartsQueries', 'getData', 'loggedIn'); - this.app.acl.allow('chartsQueries', 'listMetadata', 'loggedIn'); - } - - async install(options?: InstallOptions) {} - - async afterEnable() {} - - async afterDisable() {} - - async remove() {} -} - -export default ChartsPlugin; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/query.ts b/packages/plugins/@nocobase/plugin-charts/src/server/query.ts deleted file mode 100644 index 0802b1a3f..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/server/query.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Database } from '@nocobase/database'; - -export const query = { - api: async (options) => { - return []; - }, - json: async (options) => { - return options.data || []; - }, - sql: async ( - options, - { - db, - transaction, - skipError, - validateSQL, - }: { db: Database; transaction?: any; skipError?: boolean; validateSQL?: boolean }, - ) => { - try { - // 分号截取,只取第一段 - const sql: string = options.sql.trim().split(';').shift(); - if (!sql) { - throw new Error('SQL is empty'); - } - if (!/^select/i.test(sql) && !/^with([\s\S]+)select([\s\S]+)/i.test(sql)) { - throw new Error('Only select query allowed'); - } - const [data] = await db.sequelize.query(sql, { transaction }); - return data; - } catch (error) { - if (skipError) { - return []; - } - throw error; - } - }, -}; - -export default query; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts b/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts deleted file mode 100644 index 3fa6adc08..000000000 --- a/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -const choicesTypeInterfaceArray = ['radioGroup', 'select']; -export { choicesTypeInterfaceArray }; diff --git a/packages/plugins/@nocobase/plugin-china-region/package.json b/packages/plugins/@nocobase/plugin-china-region/package.json index 02a12d5a8..6897971ed 100644 --- a/packages/plugins/@nocobase/plugin-china-region/package.json +++ b/packages/plugins/@nocobase/plugin-china-region/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/cross-spawn": "^6.0.2", "china-division": "^2.4.0", "cross-spawn": "^7.0.3" diff --git a/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx b/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx index 26f56a3b4..576977a4a 100644 --- a/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { useAPIClient, useRequest } from '@nocobase/client'; export const useChinaRegionDataSource = (options) => { @@ -64,6 +64,9 @@ export const useChinaRegionLoadData = () => { return item; }) || []; field.dataSource = [...field.dataSource]; + }) + .catch((err) => { + console.error(err); }); }; }; diff --git a/packages/plugins/@nocobase/plugin-custom-request/package.json b/packages/plugins/@nocobase/plugin-custom-request/package.json index c1ef995c1..fd51fb903 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/package.json +++ b/packages/plugins/@nocobase/plugin-custom-request/package.json @@ -11,7 +11,7 @@ "main": "dist/server/index.js", "devDependencies": { "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "lodash": "~4.17.21", "react-i18next": "^11.15.1", diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx b/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx index beffbcfde..9ffe98e7f 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx +++ b/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx @@ -1,6 +1,6 @@ import { Action, useAPIClient, useRequest } from '@nocobase/client'; import React from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { listByCurrentRoleUrl } from '../constants'; import { useCustomizeRequestActionProps } from '../hooks'; import { CustomRequestActionDesigner } from './CustomRequestActionDesigner'; diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx b/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx index 61424abc0..7ee836c82 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Action, SchemaSettings, diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts b/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts index f7636df90..e2e1ff011 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts +++ b/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts @@ -1,4 +1,4 @@ -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { TableFieldResource, useAPIClient, diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts b/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts index b2dbba3f6..612484f7f 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts +++ b/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useRequest } from '@nocobase/client'; export const useGetCustomRequest = () => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx b/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx index 7ffdf6813..1d83e6363 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { BlockInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; import { useCustomRequestsResource } from '../hooks/useCustomRequestsResource'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/package.json b/packages/plugins/@nocobase/plugin-data-source-manager/package.json index 4fe91b2a1..fb81b8aba 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/package.json +++ b/packages/plugins/@nocobase/plugin-data-source-manager/package.json @@ -13,7 +13,7 @@ "@dnd-kit/core": "^5.0.1", "@emotion/css": "^11.7.1", "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "antd-style": "3.4.5", diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx index f2b523efe..32fdaded2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; -import { useField, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Button, Dropdown, MenuProps } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx index 22004102a..b88139c73 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx @@ -1,5 +1,5 @@ -import { createForm, Field } from '@nocobase/schema'; -import { FieldContext, FormContext, useField, RecursionField } from '@nocobase/schema'; +import { createForm, Field } from '@tachybase/schema'; +import { FieldContext, FormContext, useField, RecursionField } from '@tachybase/schema'; import { message } from 'antd'; import React, { useContext, useMemo, useEffect, createContext, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx index 7275e6f3c..5e2072d26 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx @@ -1,6 +1,6 @@ -import { useForm, useField } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useForm, useField } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React, { useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx index 8cb03c5af..c80b50875 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx @@ -1,5 +1,5 @@ import { DndContext, DragEndEvent, DragOverlay, MouseSensor, useSensor, useSensors } from '@dnd-kit/core'; -import { RecursionField, observer } from '@nocobase/schema'; +import { RecursionField, observer } from '@tachybase/schema'; import { Badge, Card, Space } from 'antd'; import _ from 'lodash'; import React, { useContext, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx index 6d6de7a3e..fd067bb77 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { ActionContextProvider, IField, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx index b0c92fd8f..2ae14dbc5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx @@ -1,6 +1,6 @@ import { ArrayTable } from '@formily/antd-v5'; -import { ISchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import cloneDeep from 'lodash/cloneDeep'; import omit from 'lodash/omit'; import set from 'lodash/set'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx index 3635bdc52..d8a46297d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx @@ -1,4 +1,4 @@ -import { observer, useForm, useField } from '@nocobase/schema'; +import { observer, useForm, useField } from '@tachybase/schema'; import { Select, Tag } from 'antd'; import React, { useState } from 'react'; import { useCompile, useCollectionManager_deprecated, useRecord, useFieldInterfaceOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx index 4ddfd717e..ed88f3970 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@nocobase/schema'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; import { Input as AntdInput } from 'antd'; import cls from 'classnames'; import { useCollectionRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx index e2d5e0db0..a892f2450 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { Input } from 'antd'; import { debounce } from 'lodash'; import React, { useState, useMemo, useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx index ff01c3671..208f7307a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { useRecord } from '@nocobase/client'; import { Select, Tag } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx index 95ac6f71f..c60118bbd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { Select } from 'antd'; -import { observer, useForm, useField } from '@nocobase/schema'; +import { observer, useForm, useField } from '@tachybase/schema'; import { useParams } from 'react-router-dom'; import { useRecord, useCompile, useAPIClient, useCollectionManager_deprecated } from '@nocobase/client'; import { useRemoteCollectionContext } from '../CollectionFields'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx index 9c2358bcd..17a018e80 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React from 'react'; import { SchemaComponent, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts index 84075be34..6eb4c4d40 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionOptions } from '@nocobase/client'; import { NAMESPACE } from '../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts index 31a3f30bf..24bd12d77 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts @@ -1,5 +1,5 @@ -import { ISchema, Schema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; import { useAPIClient, i18n, CollectionOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx index bf2702a56..b261c041a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx @@ -1,5 +1,5 @@ import { DownOutlined, PlusOutlined } from '@ant-design/icons'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { ActionContext, SchemaComponent, useAPIClient, useCompile, usePlugin } from '@nocobase/client'; import { Button, Dropdown, Empty } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx index 0fad75e6b..8909f14af 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { SchemaComponent, usePlugin, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx index 91a799d81..ebed1faeb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { ActionContext, SchemaComponent, @@ -13,7 +13,7 @@ import { import _ from 'lodash'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { useForm, useField } from '@nocobase/schema'; +import { useForm, useField } from '@tachybase/schema'; import PluginDatabaseConnectionsClient from '../'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx index ee96ccbbd..8999e8b1c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx @@ -1,5 +1,5 @@ import { PlusOutlined } from '@ant-design/icons'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import React, { useContext, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx index 65784eab4..28d578b16 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { createForm, Field } from '@nocobase/schema'; -import { FieldContext, FormContext, useField } from '@nocobase/schema'; +import { createForm, Field } from '@tachybase/schema'; +import { FieldContext, FormContext, useField } from '@tachybase/schema'; import { Space, Switch, Table, TableColumnProps, Tag, Tooltip } from 'antd'; import React, { useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx index 4db2840f1..4f4268cc0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx @@ -1,6 +1,6 @@ -import { createForm, Field } from '@nocobase/schema'; -import { FieldContext, FormContext, observer, useField, useFieldSchema } from '@nocobase/schema'; -import { useAttach } from '@nocobase/schema'; +import { createForm, Field } from '@tachybase/schema'; +import { FieldContext, FormContext, observer, useField, useFieldSchema } from '@tachybase/schema'; +import { useAttach } from '@tachybase/schema'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; import { TableProps } from 'antd'; import React, { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx index 45c9fe4d8..e00ab4977 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -import { ArrayField, Field } from '@nocobase/schema'; -import { RecursionField, Schema, observer, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField, Field } from '@tachybase/schema'; +import { RecursionField, Schema, observer, useField, useFieldSchema } from '@tachybase/schema'; import { RecordIndexProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx index e5c7edf19..b3aef15c7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx @@ -1,6 +1,6 @@ -import { useForm } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React, { useContext, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { CollectionFieldsTable } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx index ff726bae6..f82e0c771 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx @@ -9,8 +9,8 @@ import { useSensor, useSensors, } from '@dnd-kit/core'; -import { RecursionField, observer } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { RecursionField, observer } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { App, Badge, Card, Dropdown, Space, Tabs } from 'antd'; import _ from 'lodash'; import React, { useContext, useEffect, useMemo, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx index 634388de5..2652984e7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { cloneDeep } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx index 3dc46a2e5..32f77802c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx @@ -1,4 +1,4 @@ -import { registerValidateFormats } from '@nocobase/schema'; +import { registerValidateFormats } from '@tachybase/schema'; export * from './ConfigurationTable'; export * from './CollectionFieldsTable'; export * from './schemas/collections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts index 75c8d500a..4b1159bbf 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterfaceTag, CollectionOptions } from '@nocobase/client'; export const collection: CollectionOptions = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts index abf74fa68..6dccbc5a4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts @@ -1,5 +1,5 @@ -import { ISchema, Schema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; import { useAPIClient, i18n } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx index 12ad606ec..9971f1635 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import React from 'react'; import { SchemaComponent, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx index 7be8f42a0..9be55a510 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx @@ -1,4 +1,4 @@ -import { onFieldChange } from '@nocobase/schema'; +import { onFieldChange } from '@tachybase/schema'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { useAPIClient, useRequest, SchemaComponent, useRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx index 5820a88f7..669efcc8e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx @@ -1,6 +1,6 @@ import { FormItem, FormLayout } from '@formily/antd-v5'; -import { ArrayField } from '@nocobase/schema'; -import { connect, useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField } from '@tachybase/schema'; import { Checkbox, Table, Tag } from 'antd'; import { isEmpty } from 'lodash'; import React, { createContext, useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx index 19eb95586..8723cb6b3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx @@ -1,4 +1,4 @@ -import { createForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent, useRecord } from '@nocobase/client'; import { getScopesSchema } from './schemas/scopes'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx index 8f118f65b..bdd1c3db6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { connect, useField } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { connect, useField } from '@tachybase/schema'; import { Checkbox, Select, Table, Tag } from 'antd'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx index 5681608ad..99cb4fccc 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { Card } from 'antd'; import React, { createContext } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts index d26dac6c5..9fec30d71 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { roleCollectionsSchema } from './roleCollections'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts index 645d1f807..9f0d17617 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { useRoleResourceValues } from './useRoleResourceValues'; import { useSaveRoleResourceAction } from './useSaveRoleResourceAction'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts index 81e1166bd..a542cd2c1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useContext, useEffect } from 'react'; import { useFormBlockContext, VariableInput, useFilterFieldOptions } from '@nocobase/client'; import { RoleResourceCollectionContext } from '../RolesResourcesActions'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts index edcb96334..047f63dd8 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useContext } from 'react'; import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '@nocobase/client'; import { PermissionContext } from '../PermisionProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts index 5725e47e9..79d1d96fe 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts @@ -1,4 +1,4 @@ -import { useForm, useField } from '@nocobase/schema'; +import { useForm, useField } from '@tachybase/schema'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; import { useActionContext, useAPIClient } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts index 5f5211a08..523c9672a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { NAMESPACE } from '../locale'; export const statusEnum = [ { value: 'loading', label: `{{t("Loading",{ns:"${NAMESPACE}"})}}`, color: 'orange' }, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/package.json b/packages/plugins/@nocobase/plugin-data-visualization/package.json index 0e3bb5833..855eef55c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/package.json +++ b/packages/plugins/@nocobase/plugin-data-visualization/package.json @@ -13,7 +13,7 @@ "@ant-design/plots": "^2.1.4", "@emotion/css": "^11.7.1", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "classnames": "^2.3.1", diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx index fe210f19c..bd1c2ba67 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx @@ -1,5 +1,5 @@ import { BarChartOutlined, LineChartOutlined } from '@ant-design/icons'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { CompatibleSchemaInitializer, DEFAULT_DATA_SOURCE_KEY, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts index 84ff911cf..793542540 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts @@ -2,7 +2,7 @@ import React, { useContext } from 'react'; import { FieldOption } from '../hooks'; import { ChartRendererContext, QueryProps } from '../renderer'; import { parseField } from '../utils'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import configs, { AnySchemaProperties, Config } from './configs'; import { Transformer } from '../block/transformers'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts index 892827df8..43839a0ef 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts @@ -1,4 +1,4 @@ -import { SchemaProperties } from '@nocobase/schema'; +import { SchemaProperties } from '@tachybase/schema'; import { lang } from '../locale'; export type FieldConfigProps = Partial<{ diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx index 8486083e2..115b0a723 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import React, { createContext, useState } from 'react'; import { ChartRendererProvider } from '../renderer'; import { ChartConfigure } from './ChartConfigure'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx index a2f4731a7..e1774680a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx @@ -1,7 +1,7 @@ import { RightSquareOutlined } from '@ant-design/icons'; import { ArrayItems, Editable, FormCollapse, FormItem, FormLayout, Switch } from '@formily/antd-v5'; -import { Form as FormType, ObjectField, createForm, onFieldChange, onFormInit } from '@nocobase/schema'; -import { FormConsumer, ISchema, Schema } from '@nocobase/schema'; +import { Form as FormType, ObjectField, createForm, onFieldChange, onFormInit } from '@tachybase/schema'; +import { FormConsumer, ISchema, Schema } from '@tachybase/schema'; import { AutoComplete, FormProvider, SchemaComponent, gridRowColWrap, useDesignable } from '@nocobase/client'; import { Alert, App, Button, Card, Col, Modal, Row, Space, Table, Tabs, Typography } from 'antd'; import { cloneDeep, isEqual } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts index 7bd5c9607..76fd93b9c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { lang } from '../../locale'; const getArraySchema = (fields = {}, extra = {}) => ({ diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx index 3d11b1043..96b2c7d7b 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { InitializerWithSwitch, useSchemaInitializerItem } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; export const CollectionFieldInitializer = () => { const schema: ISchema = {}; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx index 1ec554741..5568a6e05 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx @@ -1,5 +1,5 @@ import { DownOutlined } from '@ant-design/icons'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { Action, ActionInitializer, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx index 9f6c20e7d..7e5a78ed3 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx @@ -8,7 +8,7 @@ import { SchemaInitializerSwitch, useSchemaInitializerItem, } from '@nocobase/client'; -import { uid, merge } from '@nocobase/schema'; +import { uid, merge } from '@tachybase/schema'; import { ChartFilterContext } from './FilterProvider'; import { css } from '@emotion/css'; import { theme } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx index ed1246400..7cf35cb88 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { connect, useField } from '@nocobase/schema'; +import { connect, useField } from '@tachybase/schema'; import { Checkbox } from 'antd'; -import { Field } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; export const ChartFilterCheckbox = connect((props) => { const { content } = props; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx index e3e60a8a8..24da24748 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx @@ -1,5 +1,5 @@ import React, { memo, useContext, useEffect, useMemo, useRef } from 'react'; -import { createForm, onFieldInit, onFieldMount, onFieldUnmount } from '@nocobase/schema'; +import { createForm, onFieldInit, onFieldMount, onFieldUnmount } from '@tachybase/schema'; import { ChartFilterContext } from './FilterProvider'; import { DEFAULT_DATA_SOURCE_KEY, FormV2, VariablesContext } from '@nocobase/client'; import { setDefaultValue } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx index 403b59f83..135c70f9e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx @@ -20,8 +20,8 @@ import { useIsAssociationField, } from '@nocobase/client'; import { useChartsTranslation } from '../locale'; -import { Schema, useField, useFieldSchema } from '@nocobase/schema'; -import { Field } from '@nocobase/schema'; +import { Schema, useField, useFieldSchema } from '@tachybase/schema'; +import { Field } from '@tachybase/schema'; import _ from 'lodash'; import { ChartFilterContext } from './FilterProvider'; import { getPropsSchemaByComponent, setDefaultValue } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx index 2b566d4eb..da8415084 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx @@ -1,8 +1,8 @@ import { css, cx } from '@emotion/css'; import { FormItem, FormLayout } from '@formily/antd-v5'; -import { Field, onFieldValueChange } from '@nocobase/schema'; -import { Schema, SchemaOptionsContext, observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Field, onFieldValueChange } from '@tachybase/schema'; +import { Schema, SchemaOptionsContext, observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { ACLCollectionFieldProvider, BlockItem, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts index b81bb9194..b23b6269a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts @@ -1,7 +1,7 @@ import { DEFAULT_DATA_SOURCE_KEY } from '@nocobase/client'; import { moment2str } from '@nocobase/utils/client'; import dayjs from 'dayjs'; -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; export const getOptionsSchema = () => { const options = { 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 2cb2100c3..edb71819c 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 @@ -11,7 +11,7 @@ import { } from '@nocobase/client'; import { useCallback, useContext, useMemo } from 'react'; import { ChartDataContext } from '../block/ChartDataProvider'; -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useChartsTranslation } from '../locale'; import { ChartFilterContext } from '../filter/FilterProvider'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts index f3250bedf..2ef2abcfe 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { ISchema, Schema, useForm } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { ISchema, Schema, useForm } from '@tachybase/schema'; import { CollectionFieldOptions, CollectionFieldOptions_deprecated, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts index c9c92f2d9..14c43c99b 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts @@ -1,6 +1,6 @@ import { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { Schema } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; import { useCollectionFieldsOptions } from '@nocobase/client'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts index 6269733c0..b0c6d0f7d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { useCurrentUserVariable, useDatetimeVariable } from '@nocobase/client'; import { useMemo } from 'react'; import { useFilterVariable } from './filter'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx index 8823b0992..8c92c3e27 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsBlockTitleItem, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx index dada56338..a9c518a79 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { CollectionManagerProvider, DEFAULT_DATA_SOURCE_KEY, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts index 7ee167546..367ceb3b6 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts @@ -1,5 +1,5 @@ -import { Schema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { Schema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import lodash from 'lodash'; import { SelectedField } from './configure'; import { FieldOption } from './hooks'; diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/LICENSE b/packages/plugins/@nocobase/plugin-disable-pm-add/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/package.json b/packages/plugins/@nocobase/plugin-disable-pm-add/package.json deleted file mode 100644 index d613ee0e6..000000000 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@nocobase/plugin-disable-pm-add", - "version": "0.21.24", - "keywords": [ - "system" - ], - "main": "./dist/server/index.js", - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1" -} diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts b/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts deleted file mode 100644 index 85c9163c9..000000000 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Plugin } from '@nocobase/client'; - -class PluginDisablePmAddClient extends Plugin { - async load() {} -} - -export default PluginDisablePmAddClient; diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts b/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts deleted file mode 100644 index 89b7fc6ca..000000000 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { InstallOptions, Plugin } from '@nocobase/server'; - -export class PluginDisablePmAddServer extends Plugin { - beforeLoad() { - // TODO - } - - async load() { - this.app.resourcer.use(async (ctx, next) => { - const { resourceName, actionName } = ctx.action; - if (resourceName === 'pm' && actionName === 'add') { - ctx.throw(403, 'The current environment does not allow adding plugins online'); - } - await next(); - }); - } - - async disable() { - // this.app.resourcer.removeResource('testHello'); - } - - async install(options: InstallOptions) { - // TODO - } -} - -export default PluginDisablePmAddServer; diff --git a/packages/plugins/@nocobase/plugin-export/package.json b/packages/plugins/@nocobase/plugin-export/package.json index 2aad84a3d..e89085cca 100644 --- a/packages/plugins/@nocobase/plugin-export/package.json +++ b/packages/plugins/@nocobase/plugin-export/package.json @@ -11,7 +11,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/node-xlsx": "^0.15.1", "file-saver": "^2.0.5", "lodash": "4.17.21", diff --git a/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx b/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx index 951e03fc0..4c645f97b 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx @@ -1,5 +1,5 @@ -import { Schema, useFieldSchema } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import { Schema, useFieldSchema } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import { SchemaInitializerSwitch, useCollection_deprecated, diff --git a/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx b/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx index bdd9f6530..29715ea63 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx @@ -1,6 +1,6 @@ import { ArrayItems } from '@formily/antd-v5'; -import type { ISchema } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsActionModalItem, diff --git a/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts index db80f5a8b..f5d920706 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@nocobase/client'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts b/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts index 68a13f07b..297188c75 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts +++ b/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useAPIClient, useBlockRequestContext, diff --git a/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts b/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts index 80845c1fc..1ff01c13e 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts +++ b/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { useCollectionManager_deprecated } from '@nocobase/client'; export const useFields = (collectionName: string) => { diff --git a/packages/plugins/@nocobase/plugin-file-manager/package.json b/packages/plugins/@nocobase/plugin-file-manager/package.json index dbe9793b2..aca2e22e3 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/package.json +++ b/packages/plugins/@nocobase/plugin-file-manager/package.json @@ -15,7 +15,7 @@ "@aws-sdk/client-s3": "^3.245.0", "@formily/antd-v5": "1.x", "@koa/multer": "^3.0.0", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/koa-multer": "^1.0.1", "@types/multer": "^1.4.5", "antd": "5.16.1", diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx index 57fdf7211..4f3064f38 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx @@ -1,5 +1,5 @@ import { PlusOutlined, DownOutlined } from '@ant-design/icons'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@nocobase/client'; import { Button, Card, Dropdown } from 'antd'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx index 3263e8603..e529e2210 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { observer, RecursionField, Schema, useField, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { observer, RecursionField, Schema, useField, useForm } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts index 187ae558b..be9700445 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts index 9563d0c32..817ffcd7e 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { NAMESPACE } from '../locale'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-formula-field/package.json b/packages/plugins/@nocobase/plugin-formula-field/package.json index 393668299..40bafc061 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/package.json +++ b/packages/plugins/@nocobase/plugin-formula-field/package.json @@ -11,7 +11,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "react": "^18.2.0", "react-i18next": "^11.15.1" }, diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx index d7429d330..de13245c7 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx +++ b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx @@ -1,6 +1,6 @@ -import { onFormValuesChange } from '@nocobase/schema'; -import { useField, useFieldSchema, useFormEffects } from '@nocobase/schema'; -import { toJS } from '@nocobase/schema'; +import { onFormValuesChange } from '@tachybase/schema'; +import { useField, useFieldSchema, useFormEffects } from '@tachybase/schema'; +import { toJS } from '@tachybase/schema'; import type { CollectionOptions } from '@nocobase/client'; import { Checkbox, diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx index 2ea9d0112..dc9bfc7d3 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx +++ b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx @@ -1,7 +1,7 @@ /** * title: Formula */ -import { connect } from '@nocobase/schema'; +import { connect } from '@tachybase/schema'; import { Formula, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx index cfd6cb52f..6456d87fb 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx +++ b/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx @@ -1,4 +1,4 @@ -import { connect } from '@nocobase/schema'; +import { connect } from '@tachybase/schema'; import Expression from './Expression'; import Result from './Result'; diff --git a/packages/plugins/@nocobase/plugin-gantt/package.json b/packages/plugins/@nocobase/plugin-gantt/package.json index fbb852f9b..73b9a13e9 100644 --- a/packages/plugins/@nocobase/plugin-gantt/package.json +++ b/packages/plugins/@nocobase/plugin-gantt/package.json @@ -14,7 +14,7 @@ "@ctrl/tinycolor": "^3.6.0", "@emotion/css": "^11.7.1", "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "antd-style": "3.4.5", "lodash": "4.17.21", diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx index 6b37b5db2..21a7032d4 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { SchemaSettings, SchemaSettingsBlockTitleItem, diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx index 632475e37..8d0393f72 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase/client'; /** diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx index 9b958774e..031dc6a10 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx @@ -1,6 +1,6 @@ import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx index 88c14f531..a574bce5e 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { useACLRoleContext, diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx index 9da9bac0e..3147d9866 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import React from 'react'; export const Event = observer( diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx index 46359fb50..f5a3eaa14 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx @@ -1,5 +1,5 @@ import { css, cx } from '@emotion/css'; -import { RecursionField, Schema, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, Schema, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx index e65dadb9a..66004a20c 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createGanttBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json b/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json index 244bf6ad0..878acce16 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json @@ -20,7 +20,7 @@ "@antv/x6-plugin-snapline": "^2.0.0", "@antv/x6-react-shape": "^2.0.0", "@emotion/css": "^11.7.1", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "dagre": "^0.8.5", diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx index ec135ea0d..5761e6970 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx @@ -1,5 +1,5 @@ import { DeleteOutlined } from '@ant-design/icons'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { css, SchemaComponent, useActionContext, useRequest } from '@nocobase/client'; import React, { useEffect } from 'react'; import { useCreateActionAndRefreshCM } from './action-hooks'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx index c51783cdb..0e7b1f7b1 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx @@ -6,7 +6,7 @@ import { Selection } from '@antv/x6-plugin-selection'; import { Snapline } from '@antv/x6-plugin-snapline'; import { register } from '@antv/x6-react-shape'; import { cx } from '@emotion/css'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { APIClientProvider, ApplicationContext, diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx index 086946e7c..0406e81e1 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx @@ -1,5 +1,5 @@ -import { observer, useForm } from '@nocobase/schema'; -import { action } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; +import { action } from '@tachybase/schema'; import { useAPIClient, useActionContext, diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx index ff09b3485..0014e553c 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx @@ -1,7 +1,7 @@ import { DeleteOutlined, DownOutlined, EditOutlined, UpOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; -import { SchemaOptionsContext } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionCategroriesContext, CollectionProvider_deprecated, diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx index c5bbc7a55..e433be539 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { css, useCollectionManager_deprecated, useCompile } from '@nocobase/client'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-iframe-block/package.json b/packages/plugins/@nocobase/plugin-iframe-block/package.json index ecdd9bd81..5709b7bb2 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/package.json +++ b/packages/plugins/@nocobase/plugin-iframe-block/package.json @@ -11,7 +11,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "react": "^18.2.0", "react-i18next": "^11.15.1", diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx b/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx index fa154fca0..10ee7486c 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx @@ -1,5 +1,5 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsDivider, diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx b/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx index bbc74f3a0..f35f07f9d 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx +++ b/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx @@ -1,4 +1,4 @@ -import { observer, useField } from '@nocobase/schema'; +import { observer, useField } from '@tachybase/schema'; import { useAPIClient, useApp } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts index 46a037d3a..d22374b1a 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts @@ -1,5 +1,5 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { SchemaSettings, useAPIClient, useDesignable } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-import/package.json b/packages/plugins/@nocobase/plugin-import/package.json index 6c3b0991a..6e18834bc 100644 --- a/packages/plugins/@nocobase/plugin-import/package.json +++ b/packages/plugins/@nocobase/plugin-import/package.json @@ -13,7 +13,7 @@ "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", "@koa/multer": "^3.0.2", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/node-xlsx": "^0.15.1", "antd": "5.16.1", "file-saver": "^2.0.5", diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx b/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx index 8fb23585d..eec9046d1 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx @@ -1,6 +1,6 @@ -import type { ISchema } from '@nocobase/schema'; -import { Schema, useFieldSchema } from '@nocobase/schema'; -import { merge } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; +import { Schema, useFieldSchema } from '@tachybase/schema'; +import { merge } from '@tachybase/schema'; import { SchemaInitializerSwitch, css, diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx b/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx index 951e1c93d..8a04e0da3 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx @@ -1,6 +1,6 @@ import { ArrayItems } from '@formily/antd-v5'; -import type { ISchema } from '@nocobase/schema'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import type { ISchema } from '@tachybase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsActionModalItem, diff --git a/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts index be43f3d22..804371d38 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts @@ -1,5 +1,5 @@ import { ArrayItems } from '@formily/antd-v5'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@nocobase/client'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts b/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts index a3cc8877c..59a1363fe 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts +++ b/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts @@ -1,4 +1,4 @@ -import { Schema, useFieldSchema, useForm } from '@nocobase/schema'; +import { Schema, useFieldSchema, useForm } from '@tachybase/schema'; import { useActionContext, useAPIClient, diff --git a/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts b/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts index a582e8fb2..1d5a7df66 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts +++ b/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts @@ -1,4 +1,4 @@ -import type { VoidField } from '@nocobase/schema'; +import type { VoidField } from '@tachybase/schema'; import { Cascader, css, useCollection_deprecated } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; import { NAMESPACE } from './constants'; diff --git a/packages/plugins/@nocobase/plugin-kanban/package.json b/packages/plugins/@nocobase/plugin-kanban/package.json index de1ce8dd3..fff506e6d 100644 --- a/packages/plugins/@nocobase/plugin-kanban/package.json +++ b/packages/plugins/@nocobase/plugin-kanban/package.json @@ -13,7 +13,7 @@ "@ant-design/icons": "^5.3.6", "@emotion/css": "^11.7.1", "@formily/antd-v5": "^1.1.9", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "antd-style": "3.4.5", "classnames": "^2.3.1", diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx index ca3b05954..156520960 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx @@ -1,5 +1,5 @@ import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext, useField } from '@nocobase/schema'; +import { SchemaOptionsContext, useField } from '@tachybase/schema'; import { FormDialog, SchemaComponent, @@ -13,7 +13,7 @@ import { Button, Space } from 'antd'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { NAMESPACE } from '../locale'; export const CreateAndSelectSort = (props) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx index 3aa89b018..27929a76d 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx @@ -1,6 +1,6 @@ import { MenuOutlined } from '@ant-design/icons'; -import { ISchema, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { CompatibleSchemaInitializer, SchemaInitializerOpenModeSchemaItems, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx index 89da6b6e3..9f9d0efe1 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; -import { observer, RecursionField, useFieldSchema } from '@nocobase/schema'; +import { observer, RecursionField, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, DndContext, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx index 75ce0c5d1..3b88756da 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx @@ -1,4 +1,4 @@ -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; export const KanbanCardViewer: any = observer( (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx index 4fc80b99f..c46d7c1b6 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useFormBlockContext, SchemaSettingsDataScope, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx index c39fdc6e8..73ba5f85d 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { observer, RecursionField, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { observer, RecursionField, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { RecordProvider, SchemaComponentOptions, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx index ef451c930..9820e6397 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx @@ -1,6 +1,6 @@ import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext, useForm } from '@nocobase/schema'; +import { SchemaOptionsContext, useForm } from '@tachybase/schema'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx index 94f8728d7..2fd09ce4d 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx @@ -1,5 +1,5 @@ -import { ArrayField } from '@nocobase/schema'; -import { Schema, useField, useFieldSchema } from '@nocobase/schema'; +import { ArrayField } from '@tachybase/schema'; +import { Schema, useField, useFieldSchema } from '@tachybase/schema'; import { Spin } from 'antd'; import uniq from 'lodash/uniq'; import React, { createContext, useContext, useEffect, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts index 1a6096671..27a79a589 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createKanbanBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-localization-management/package.json b/packages/plugins/@nocobase/plugin-localization-management/package.json index fbab7d199..666f0881b 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/package.json +++ b/packages/plugins/@nocobase/plugin-localization-management/package.json @@ -11,7 +11,7 @@ "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "^5.3.6", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "deepmerge": "^4.3.1", diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx b/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx index 6440262d1..d860f004f 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx +++ b/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx @@ -1,6 +1,6 @@ import { SyncOutlined } from '@ant-design/icons'; -import { Form, createForm } from '@nocobase/schema'; -import { FieldComponent as Field, useField, useForm } from '@nocobase/schema'; +import { Form, createForm } from '@tachybase/schema'; +import { FieldComponent as Field, useField, useForm } from '@tachybase/schema'; import { FormProvider, Input, diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx b/packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx index 718da762c..069775b82 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx +++ b/packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; const collection = { name: 'localization', diff --git a/packages/plugins/@nocobase/plugin-map/package.json b/packages/plugins/@nocobase/plugin-map/package.json index 3d78c3f73..d7ce5d5de 100644 --- a/packages/plugins/@nocobase/plugin-map/package.json +++ b/packages/plugins/@nocobase/plugin-map/package.json @@ -15,7 +15,7 @@ "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", "@googlemaps/js-api-loader": "^1.16.1", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/google.maps": "^3.53.4", "@types/react": "^18.2.73", "@types/react-dom": "^18.2.23", diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx index 495504adc..c4802480d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx @@ -1,4 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { FilterBlockType, FixedBlockDesignerItem, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx index 074dbf0ab..50b0b077d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx @@ -1,6 +1,6 @@ import { TableOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; -import { SchemaOptionsContext } from '@nocobase/schema'; +import { SchemaOptionsContext } from '@tachybase/schema'; import { DataBlockInitializer, FormDialog, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx index df3211e7c..6678eb68d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { BlockProvider, FixedBlockWrapper, SchemaComponentOptions, useBlockRequestContext } from '@nocobase/client'; import React, { createContext, useContext, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts b/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts index 7cc3498ba..a45233cb0 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createMapBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx index 59105dc49..f3380d56e 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx @@ -1,5 +1,5 @@ import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; -import { RecursionField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx index 988baa382..33b1b2618 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx @@ -1,7 +1,7 @@ import AMapLoader from '@amap/amap-jsapi-loader'; import '@amap/amap-jsapi-types'; import { SyncOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { css, useApp, useCollection_deprecated } from '@nocobase/client'; import { useMemoizedFn } from 'ahooks'; import { Alert, App, Button, Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx index a26e5700a..aafa890a1 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx @@ -1,5 +1,5 @@ -import { Field } from '@nocobase/schema'; -import { ISchema, useField, useFieldSchema } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, GeneralSchemaItems, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx index a0fe79a26..cb68846a6 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx @@ -1,5 +1,5 @@ import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; -import { RecursionField, Schema, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, Schema, useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx index 773fe8976..8ea00a41f 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx @@ -1,5 +1,5 @@ import { SyncOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { Loader } from '@googlemaps/js-api-loader'; import { css, useAPIClient, useApp, useCollection_deprecated } from '@nocobase/client'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx index 1f846b7e4..41b3abc32 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { css } from '@nocobase/client'; import React from 'react'; import { AMapComponentProps } from './AMap'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx index 770eff5c2..2941e91df 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema, useForm } from '@nocobase/schema'; +import { useFieldSchema, useForm } from '@tachybase/schema'; import { EllipsisWithTooltip, useCollection_deprecated, useFieldTitle } from '@nocobase/client'; import React from 'react'; import { MapComponent } from './MapComponent'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts index 703820eba..7feb6ee1d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; import { MapTypes } from '../constants'; import { generateNTemplate } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/.npmignore b/packages/plugins/@nocobase/plugin-mobile-client/.npmignore deleted file mode 100644 index c593fe9df..000000000 --- a/packages/plugins/@nocobase/plugin-mobile-client/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -/node_modules -/src \ No newline at end of file diff --git a/packages/plugins/@nocobase/plugin-mobile-client/LICENSE b/packages/plugins/@nocobase/plugin-mobile-client/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-mobile-client/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts deleted file mode 100644 index b68aea57f..000000000 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/package.json b/packages/plugins/@nocobase/plugin-multi-app-manager/package.json index 486625c30..deb011f14 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/package.json +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "antd-style": "3.x", "async-mutex": "^0.3.2", diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx index 7dc7e9983..fe49f0ea1 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty } from '@nocobase/schema'; +import { connect, mapReadPretty } from '@tachybase/schema'; import { useApp } from '@nocobase/client'; import { Input as AntdInput } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts index 8de4acc05..9bad2cade 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { SchemaComponentOptions, tval, diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json b/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json index 3bbc2e552..cc4b84587 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json @@ -8,7 +8,7 @@ ], "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "lodash": "4.17.21", "react": "~18.2.0", diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx index 2ff70704a..cc3151f6c 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { useActionContext, useAPIClient, useRecord } from '@nocobase/client'; import { tableActionColumnSchema } from '@nocobase/plugin-multi-app-manager/client'; import { message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx index 74add98d6..466df2564 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx @@ -1,4 +1,4 @@ -import { connect } from '@nocobase/schema'; +import { connect } from '@tachybase/schema'; import { css, useCollectionManager_deprecated, useRecord, useRequest, useToken } from '@nocobase/client'; import { CollectionsGraph, lodash } from '@nocobase/utils/client'; import { App, Col, Input, Row, Select, Spin, Table, Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-oidc/package.json b/packages/plugins/@nocobase/plugin-oidc/package.json index 8527567ff..6b4e01c1a 100644 --- a/packages/plugins/@nocobase/plugin-oidc/package.json +++ b/packages/plugins/@nocobase/plugin-oidc/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "ahooks": "^3.7.2", "antd": "5.16.1", "nanoid": "3.3.4", diff --git a/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx b/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx index 2dcf62a49..26b71dab9 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx +++ b/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx @@ -1,6 +1,6 @@ import { CopyOutlined } from '@ant-design/icons'; import { ArrayItems, FormTab } from '@formily/antd-v5'; -import { observer } from '@nocobase/schema'; +import { observer } from '@tachybase/schema'; import { FormItem, Input, SchemaComponent, useApp } from '@nocobase/client'; import { Card, Space, message } from 'antd'; import React, { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-saml/package.json b/packages/plugins/@nocobase/plugin-saml/package.json index c9815ab5e..bbdf5d93b 100644 --- a/packages/plugins/@nocobase/plugin-saml/package.json +++ b/packages/plugins/@nocobase/plugin-saml/package.json @@ -11,8 +11,8 @@ "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", - "@nocobase/schema": "workspace:*", "@node-saml/node-saml": "^4.0.2", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "react": "~18.2.0", "react-i18next": "^11.15.1", diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx b/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx index 68de6d225..111504837 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx +++ b/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx @@ -1,5 +1,5 @@ import { CopyOutlined } from '@ant-design/icons'; -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { FormItem, Input, SchemaComponent, useApp, useRecord } from '@nocobase/client'; import { getSubAppName } from '@nocobase/sdk'; import { Card, message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts b/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts index e9a88fbe0..96f647258 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts +++ b/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useActionContext, useRequest } from '@nocobase/client'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-sample-hello/package.json b/packages/plugins/@nocobase/plugin-sample-hello/package.json index de3837ab5..0179e22e4 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/package.json +++ b/packages/plugins/@nocobase/plugin-sample-hello/package.json @@ -6,7 +6,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "react": "^18.2.0", "react-i18next": "^11.15.1" diff --git a/packages/plugins/@nocobase/plugin-sequence-field/package.json b/packages/plugins/@nocobase/plugin-sequence-field/package.json index e2c8a800e..154a039db 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/package.json +++ b/packages/plugins/@nocobase/plugin-sequence-field/package.json @@ -11,7 +11,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "classnames": "^2.3.1", "cron-parser": "4.4.0", diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx b/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx index 85e08067c..ad112a999 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx +++ b/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx @@ -1,6 +1,6 @@ import { ArrayTable, FormButtonGroup, FormDrawer, FormLayout, Submit } from '@formily/antd-v5'; -import { onFieldValueChange } from '@nocobase/schema'; -import { ISchema, SchemaOptionsContext, useForm, useFormEffects } from '@nocobase/schema'; +import { onFieldValueChange } from '@tachybase/schema'; +import { ISchema, SchemaOptionsContext, useForm, useFormEffects } from '@tachybase/schema'; import { CollectionFieldInterface, Cron, diff --git a/packages/plugins/@nocobase/plugin-sms-auth/package.json b/packages/plugins/@nocobase/plugin-sms-auth/package.json index 8bfd37d12..9db0eed6e 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/package.json +++ b/packages/plugins/@nocobase/plugin-sms-auth/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "react": "~18.2.0", "react-i18next": "^11.15.1" diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx b/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx index 0f4556af3..3ecc47bca 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx +++ b/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx @@ -1,5 +1,5 @@ import { SchemaComponent } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import React from 'react'; import VerificationCode from './VerificationCode'; import { Authenticator, useSignIn } from '@nocobase/plugin-auth/client'; diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx b/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx index a00651b63..6e81a6d76 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx +++ b/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { css, useAPIClient } from '@nocobase/client'; import { Button, Input, message } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/package.json b/packages/plugins/@nocobase/plugin-snapshot-field/package.json index d6d2301b6..7bde866d8 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/package.json +++ b/packages/plugins/@nocobase/plugin-snapshot-field/package.json @@ -11,7 +11,7 @@ "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "lodash": "4.17.21", "rc-tree-select": "5.5.5", diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx index 816be3a37..9fc6af448 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx @@ -10,8 +10,8 @@ import { SchemaInitializerItem, useSchemaInitializerItem, } from '@nocobase/client'; -import { ISchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const createSnapshotBlockSchema = (options) => { const { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx index f099c2152..619ca0409 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { BlockAssociationContext, BlockRequestContext_deprecated, diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx index e1bf02d85..174dc84d6 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx @@ -1,4 +1,4 @@ -import { connect, mapReadPretty, useFieldSchema } from '@nocobase/schema'; +import { connect, mapReadPretty, useFieldSchema } from '@tachybase/schema'; import { ReadPrettyRecordPicker, useCollection_deprecated } from '@nocobase/client'; import React from 'react'; import { SnapshotHistoryCollectionProvider } from './SnapshotHistoryCollectionProvider'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts index a2b40b292..8e312158a 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts @@ -1,5 +1,5 @@ -import type { Field } from '@nocobase/schema'; -import { ISchema, useForm } from '@nocobase/schema'; +import type { Field } from '@tachybase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties, diff --git a/packages/plugins/@nocobase/plugin-users/package.json b/packages/plugins/@nocobase/plugin-users/package.json index 9cb44d9d1..0c464acd2 100644 --- a/packages/plugins/@nocobase/plugin-users/package.json +++ b/packages/plugins/@nocobase/plugin-users/package.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "main": "./dist/server/index.js", "devDependencies": { - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/jsonwebtoken": "^8.5.8", "antd": "5.16.1", "jsonwebtoken": "^8.5.1", diff --git a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx index 3272f6199..61516738f 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx @@ -1,8 +1,8 @@ import React, { useEffect } from 'react'; import { Input, Row, Col, Button } from 'antd'; import { Password, useActionContext } from '@nocobase/client'; -import { useField } from '@nocobase/schema'; -import { Field } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; +import { Field } from '@tachybase/schema'; import { useUsersTranslation } from './locale'; import { generatePassword } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx b/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx index ef9e90bb7..332e3561e 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { useField, Schema } from '@nocobase/schema'; -import { Field } from '@nocobase/schema'; +import { useField, Schema } from '@tachybase/schema'; +import { Field } from '@tachybase/schema'; import { useUsersTranslation } from './locale'; import { Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts index 3ad91ab11..49c66e37e 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts @@ -1,7 +1,7 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@nocobase/client'; import { useEffect } from 'react'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; export const userCollection = { name: 'users', diff --git a/packages/plugins/@nocobase/plugin-verification/package.json b/packages/plugins/@nocobase/plugin-verification/package.json index 83647e367..94eb9848e 100644 --- a/packages/plugins/@nocobase/plugin-verification/package.json +++ b/packages/plugins/@nocobase/plugin-verification/package.json @@ -14,7 +14,7 @@ "@alicloud/openapi-client": "0.4.1", "@alicloud/tea-util": "1.4.4", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "antd": "5.16.1", "dayjs": "^1.11.8", "react": "~18.2.0", diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx b/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx index 6db2206da..7e288d2a7 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx +++ b/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { Field } from '@nocobase/schema'; -import { RecursionField, Schema, observer, useField, useForm } from '@nocobase/schema'; +import { Field } from '@tachybase/schema'; +import { RecursionField, Schema, observer, useField, useForm } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; import providerTypes from './providerTypes'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts index d54b67c28..ee2fa7347 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Registry } from '@nocobase/utils/client'; import SMSAliyun from './sms-aliyun'; import SMSTencent from './sms-tencent'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts index 7df55d8f3..a384e0473 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts index 53676a9e7..b0d654fb1 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts @@ -1,4 +1,4 @@ -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts index a4fe413c2..305dd9830 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts @@ -1,4 +1,4 @@ -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { useActionContext, useRequest } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/LICENSE b/packages/plugins/@nocobase/plugin-workflow-action-trigger/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.js b/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/package.json b/packages/plugins/@nocobase/plugin-workflow-action-trigger/package.json deleted file mode 100644 index 1751048ab..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-action-trigger", - "displayName": "Workflow: Action trigger", - "version": "0.21.24", - "description": "Bind action buttons to trigger workflow events when clicked.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/plugins/workflow-action-trigger", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@nocobase/schema": "workspace:*", - "antd": "5.16.1", - "lodash": "4.17.21", - "react": "~18.2.0", - "react-i18next": "^11.15.1", - "sequelize": "^6.26.0" - }, - "peerDependencies": { - "@nocobase/actions": "workspace:*", - "@nocobase/client": "workspace:*", - "@nocobase/data-source-manager": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "可对数据操作按钮绑定,在点击后触发对应的工作流事件。", - "displayName.zh-CN": "工作流:数据操作触发器", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/plugins/workflow-action-trigger" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.js b/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/en-US.json deleted file mode 100644 index 51dcf64a7..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/en-US.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Form event": "Form event", - "Event triggers when submitted a workflow bound form action.": "Event triggers when submitted a workflow bound form action.", - "Form data model": "Form data model", - "Use a collection to match form data.": "Use a collection to match form data.", - "Associations to use": "Associations to use", - "User submitted form": "User submitted form", - "Role of user submitted form": "Role of user submitted form" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts deleted file mode 100644 index 585419235..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-action-trigger'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/ko_KR.json deleted file mode 100644 index d1b851b3a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/ko_KR.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Form event": "폼 이벤트", - "Event triggers when submitted a workflow bound form action.": "작업 흐름에 바인딩된 폼 작업이 제출될 때 이벤트가 트리거됩니다.", - "Form data model": "폼 데이터 모델", - "Use a collection to match form data.": "폼 데이터를 일치시키기 위해 데이터 테이블을 사용합니다.", - "Associations to use": "사용할 관련 데이터", - "User submitted form": "사용자가 제출한 폼", - "Role of user submitted form": "사용자 제출 폼의 역할" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/zh-CN.json deleted file mode 100644 index ee84a6c90..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/zh-CN.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Action event": "操作事件", - "Triggers after specific operations on data are submitted, such as create, update, delete, etc., or directly submitting a record to the workflow.": "在对数据的特定操作提交后触发,如创建、更新、删除等,或直接提交一条数据至工作流。", - "Collection": "数据表", - "Which collection record belongs to.": "数据所属的数据表。", - "Associations to use": "待使用的关系数据", - "Trigger data": "触发器数据", - "User submitted action": "提交操作的用户", - "Role of user submitted action": "提交操作用户的角色" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts deleted file mode 100644 index 51251ce36..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Migration } from '@nocobase/server'; - -export default class extends Migration { - appVersion = '<0.20.0-alpha.7'; - on = 'afterSync'; - async up() { - const { db } = this.context; - - const WorkflowRepo = db.getRepository('workflows'); - await db.sequelize.transaction(async (transaction) => { - await WorkflowRepo.update({ - filter: { - type: 'form', - }, - values: { - type: 'action', - }, - transaction, - }); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/LICENSE b/packages/plugins/@nocobase/plugin-workflow-aggregate/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/README.md b/packages/plugins/@nocobase/plugin-workflow-aggregate/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-aggregate/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/client.js b/packages/plugins/@nocobase/plugin-workflow-aggregate/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/package.json b/packages/plugins/@nocobase/plugin-workflow-aggregate/package.json deleted file mode 100644 index 8d8fdb154..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-aggregate", - "displayName": "Workflow: Aggregate node", - "version": "0.21.24", - "description": "Used to aggregate data against the database in workflow, such as: statistics, sum, average, etc.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-aggregate", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@nocobase/schema": "workspace:*", - "antd": "5.16.1", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/data-source-manager": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "可用于在工作流中对数据库进行聚合查询,如:统计数量、求和、平均值等。", - "displayName.zh-CN": "工作流:聚合查询节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-aggregate" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/server.js b/packages/plugins/@nocobase/plugin-workflow-aggregate/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/en-US.json deleted file mode 100644 index ea7c9f855..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/en-US.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Aggregate": "Aggregate", - "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": - "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.", - "Aggregator function": "Aggregator function", - "Target type": "Target type", - "Data of collection": "Data of collection", - "Data of associated collection": "Data of associated collection", - "Field to aggregate": "Field to aggregate", - "Distinct": "Distinct", - "Query result": "Query result" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts deleted file mode 100644 index 4c2c1a3e9..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-aggregate'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/ko_KR.json deleted file mode 100644 index e5c537f85..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/ko_KR.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Aggregate": "집계 조회", - "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": - "데이터 테이블의 여러 레코드 또는 레코드의 관련 데이터에 대한 카운트, 합계, 최대값, 최소값, 평균값을 찾습니다.", - "Aggregator function": "집계 함수", - "Target type": "대상 유형", - "Data of collection": "데이터 테이블 데이터", - "Data of associated collection": "관련 데이터 테이블 데이터", - "Field to aggregate": "집계할 필드", - "Distinct": "중복 제거", - "Query result": "쿼리 결과" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/zh-CN.json deleted file mode 100644 index f3b9df436..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/zh-CN.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Aggregate": "聚合查询", - "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": - "对一个数据表里的多条数据或者一条数据里的关系数据进行统计、求和、求最大值、最小值、平均值。", - "Aggregator function": "聚合函数", - "Target type": "目标类型", - "Data of collection": "数据表数据", - "Data of associated collection": "关联数据表数据", - "Field to aggregate": "聚合字段", - "Distinct": "去重", - "Query result": "查询结果" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/LICENSE b/packages/plugins/@nocobase/plugin-workflow-delay/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/README.md b/packages/plugins/@nocobase/plugin-workflow-delay/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-delay/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-delay/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/client.js b/packages/plugins/@nocobase/plugin-workflow-delay/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/package.json b/packages/plugins/@nocobase/plugin-workflow-delay/package.json deleted file mode 100644 index 8ac7a5328..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-delay", - "displayName": "Workflow: Delay node", - "version": "0.21.24", - "description": "Could be used in workflow parallel branch for waiting other branches.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-delay", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "antd": "5.16.1", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "可用于工作流并行分支中等待其他分支执行完成。", - "displayName.zh-CN": "工作流:延时节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-delay" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-delay/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/server.js b/packages/plugins/@nocobase/plugin-workflow-delay/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/en-US.json deleted file mode 100644 index 28814db47..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/en-US.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Delay": "Delay", - "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.", - "Duration": "Duration", - "End status": "End status", - "Select status": "Select status", - "Succeed and continue": "Succeed and continue", - "Fail and exit": "Fail and exit" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/es-ES.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/es-ES.json deleted file mode 100644 index 9931cf087..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/es-ES.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Delay": "Retraso", - "Duration": "Duración", - "End status": "Estado final", - "Select status": "Seleccionar estado", - "Succeed and continue": "Éxito y continuar", - "Fail and exit": "Falla y sale" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/fr-FR.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/fr-FR.json deleted file mode 100644 index 6e5cfa59c..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/fr-FR.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Delay": "Délai", - "Duration": "Durée", - "End status": "Statut de fin", - "Select status": "Sélectionner un statut", - "Succeed and continue": "Réussir et continuer", - "Fail and exit": "Échouer et quitter" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts deleted file mode 100644 index c8f617e67..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-delay'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/ko_KR.json deleted file mode 100644 index 2a77f2583..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/ko_KR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Delay": "지연", - "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": - "일정 시간 동안 지연한 다음 프로세스를 계속하거나 종료합니다. 병렬 분기에서 대기 또는 타임아웃 시간을 설정하는 데 사용할 수 있습니다.", - "Duration": "기간", - "End Status": "종료 상태", - "Select status": "상태 선택", - "Succeed and continue": "성공하고 계속", - "Fail and exit": "실패하고 종료" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/pt-BR.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/pt-BR.json deleted file mode 100644 index b00baec14..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/pt-BR.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Delay": "Atraso", - "Duration": "Duração", - "End status": "Status final", - "Select status": "Selecionar status", - "Succeed and continue": "Ter sucesso e continuar", - "Fail and exit": "Falhar e sair" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/zh-CN.json deleted file mode 100644 index 0eb731514..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/zh-CN.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Delay": "延时", - "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "延时一段时间,然后继续或退出流程。可以用于并行分支中等待其他分支或设置超时时间。", - "Duration": "时长", - "End status": "到时状态", - "Select status": "选择状态", - "Succeed and continue": "通过并继续", - "Fail and exit": "失败并退出" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/LICENSE b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.md b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.js b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/package.json b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/package.json deleted file mode 100644 index 6c9db3719..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-dynamic-calculation", - "displayName": "Workflow: Dynamic calculation node", - "version": "0.21.24", - "description": "Useful plugin for doing dynamic calculation based on expression collection records in workflow.", - "keywords": [ - "Workflow", - "Collections" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-dynamic-calculation", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@ant-design/icons": "~5.3.6", - "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", - "antd": "5.16.1", - "lodash": "4.17.21", - "react": "~18.2.0", - "react-i18next": "^11.15.1", - "react-router-dom": "^6.11.2" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/evaluators": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*", - "@nocobase/utils": "workspace:*" - }, - "description.zh-CN": "用于在工作流中进行基于数据行的动态表达式计算。", - "displayName.zh-CN": "工作流:动态表达式计算节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-dynamic-calculation" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.js b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/en-US.json deleted file mode 100644 index 5722e8719..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Dynamic Calculation": "Dynamic Calculation", - "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.", - "Select dynamic expression": "Select dynamic expression", - "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.", - "Variable datasource": "Variable datasource", - "Dynamic expression": "Dynamic expression", - "An expression for calculation in each rows": "An expression for calculation in each rows", - "Unconfigured": "Unconfigured", - "Calculation result": "Calculation result" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts deleted file mode 100644 index 42335720f..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-dynamic-calculation'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/ko_KR.json deleted file mode 100644 index 7de4bd80d..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/ko_KR.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "Dynamic Calculation": "동적 표현식 계산", - "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": - "계산 엔진을 기반으로 한 식을 계산하고 결과값을 얻습니다. 상류 노드의 변수를 식에 사용할 수 있습니다. 식은 표현식 컬렉션에서 동적으로 가져온 것입니다.", - "Select dynamic expression": "동적 표현식 선택", - "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": - "상류 노드에서 조회한 동적 표현식을 선택하세요. 표현식 컬렉션에서 조회해야 합니다.", - "Variable datasource": "변수 데이터 소스", - "Dynamic expression": "동적 표현식", - "An expression for calculation in each rows": "각 행의 계산을 위한 식", - "Unconfigured": "구성되지 않음", - "Calculation result": "계산 결과" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/zh-CN.json deleted file mode 100644 index 8c47d4fa5..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/zh-CN.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Expression": "表达式", - "Dynamic Calculation": "动态表达式计算", - "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。", - "Select dynamic expression": "选择动态表达式", - "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。", - "Variable datasource": "变量数据源", - "Dynamic expression": "动态表达式", - "Used to store expressions for use in workflows so that different expressions can be called for different data.": "用于存储表达式,在工作流中使用,以便针对不同的数据调用不同的表达式。", - "Unconfigured": "未配置", - "Calculation result": "运算结果" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/LICENSE b/packages/plugins/@nocobase/plugin-workflow-loop/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/README.md b/packages/plugins/@nocobase/plugin-workflow-loop/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-loop/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-loop/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/client.js b/packages/plugins/@nocobase/plugin-workflow-loop/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/package.json b/packages/plugins/@nocobase/plugin-workflow-loop/package.json deleted file mode 100644 index 2cec319b8..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-loop", - "displayName": "Workflow: Loop node", - "version": "0.21.24", - "description": "Used to repeat the sub-process processing of each value in an array, and can also be used for fixed times of sub-process processing.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-loop", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@ant-design/icons": "~5.3.6", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "用于对一个数组中的每个值进行重复的子流程处理,也可用于固定次数的重复子流程处理。", - "displayName.zh-CN": "工作流:循环节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-loop" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-loop/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/server.js b/packages/plugins/@nocobase/plugin-workflow-loop/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/en-US.json deleted file mode 100644 index dde8c8e80..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/en-US.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Loop": "Loop", - "Loop target": "Loop target", - "Loop index": "Loop index", - "Loop length": "Loop length", - "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.", - "Scope variables": "Scope variables", - "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts deleted file mode 100644 index 9cb8329df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-loop'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/ko_KR.json deleted file mode 100644 index 462eb6c4f..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/ko_KR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Loop": "루프", - "Loop target": "루프 대상", - "Loop index": "현재 인덱스", - "Loop length": "루프 길이", - "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": - "루프 노드를 사용하면 여러 데이터 세트에 동일한 작업을 수행할 수 있습니다. 이러한 세트의 소스는 쿼리 노드에서 가져온 여러 레코드이거나 단일 레코드의 여러 관련 레코드일 수 있습니다. 루프 노드는 특정 횟수만큼 반복하거나 문자열의 각 문자를 반복하는 데에도 사용할 수 있습니다. 그러나 과도한 루핑은 성능 문제를 일으킬 수 있으므로 주의해서 사용하십시오.", - "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": - "단일 숫자는 루프 카운트로 처리되고, 단일 문자열은 문자 배열로 처리되며, 다른 배열이 아닌 값은 배열로 변환됩니다. 루프 노드는 루프 카운트에 도달하거나 배열 루프가 완료되었을 때 종료됩니다. 루프를 종료하려면 루프에 조건 노드를 추가할 수도 있습니다." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/zh-CN.json deleted file mode 100644 index 19b014bd4..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/zh-CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Loop": "循环", - "Loop target": "循环对象", - "Loop index": "当前索引", - "Loop length": "循环长度", - "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "使用循环节点可以对多条数据进行同样的操作,多条数据的来源可以是查询节点的多条结果,或者一条数据的多条关系数据。也可以用于一定次数的循环,或者对字符串中每一个字符的循环处理。循环次数过高可能引起性能问题,请谨慎使用。", - "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "单一数字值将被视为循环次数,单一字符串值将被视为字符数组,其他非数组值将被转换为数组。达到循环次数,或者将数组循环完成后,循环节点结束。你也可以在循环中添加条件节点,以终止循环。" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/LICENSE b/packages/plugins/@nocobase/plugin-workflow-manual/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/README.md b/packages/plugins/@nocobase/plugin-workflow-manual/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-manual/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-manual/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/client.js b/packages/plugins/@nocobase/plugin-workflow-manual/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/package.json b/packages/plugins/@nocobase/plugin-workflow-manual/package.json deleted file mode 100644 index 63a6b5e51..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-manual", - "displayName": "Workflow: Manual node", - "version": "0.21.24", - "description": "Could be used for workflows which some of decisions are made by users.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-manual", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@ant-design/icons": "~5.3.6", - "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", - "antd": "5.16.1", - "dayjs": "^1.11.8", - "lodash": "4.17.21", - "react": "~18.2.0", - "react-i18next": "^11.15.1", - "react-router-dom": "^6.11.2" - }, - "peerDependencies": { - "@nocobase/actions": "workspace:*", - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-users": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/resourcer": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*", - "@nocobase/utils": "workspace:*" - }, - "description.zh-CN": "用于人工控制部分决策的流程。", - "displayName.zh-CN": "工作流:人工处理节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-manual" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-manual/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/server.js b/packages/plugins/@nocobase/plugin-workflow-manual/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/en-US.json deleted file mode 100644 index f21e782a5..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/en-US.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "Manual": "Manual", - "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.", - "Values preset in this form will override user submitted ones when continue or reject.": "Values preset in this form will override user submitted ones when continue or reject.", - "Assignee": "Assignee", - "Assignees": "Assignees", - "User interface": "User interface", - "Configure user interface": "Configure user interface", - "View user interface": "View user interface", - "Separately": "Separately", - "Each user has own task": "Each user has own task", - "Collaboratively": "Collaboratively", - "Everyone shares one task": "Everyone shares one task", - "Negotiation": "Negotiation", - "All pass": "All pass", - "Everyone should pass": "Everyone should pass", - "Any pass": "Any pass", - "Anyone pass": "Anyone pass", - "Field name existed in form": "Field name existed in form", - "Continue the process": "Continue the process", - "Terminate the process": "Terminate the process", - "Save temporarily": "Save temporarily", - "Custom form": "Custom form", - "Data record": "Data record", - "Create record form": "Create record form", - "Update record form": "Update record form", - "Filter settings": "Filter settings", - "Workflow todos": "Workflow todos", - "Task": "Task" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts deleted file mode 100644 index 6bec93a94..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-manual'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/ko_KR.json deleted file mode 100644 index d625b71b8..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/ko_KR.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "Manual": "수동", - "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": - "수동으로 데이터를 제출하고 계속 진행할지 종료할지를 결정하는 데 사용될 수 있습니다. 워크플로우가 수동 노드에 도달하면 지정된 사용자에 대해 할 일 항목을 생성하고 사용자가 양식을 제출한 후 처리를 계속합니다.", - "Values preset in this form will override user submitted ones when continue or reject.": - "이 양식에 사전 설정된 값은 계속 또는 거부될 때 사용자가 제출한 값이 덮어씁니다.", - "Assignee": "담당자", - "Assignees": "담당자", - "User interface": "사용자 인터페이스", - "Configure user interface": "사용자 인터페이스 구성", - "View user interface": "사용자 인터페이스 보기", - "Separately": "별도로", - "Each user has own task": "각 사용자는 고유한 작업을 갖습니다.", - "Collaboratively": "협력하여", - "Everyone shares one task": "모두가 하나의 작업을 공유합니다.", - "Negotiation": "협상", - "All pass": "모두 통과", - "Everyone should pass": "모든 사람이 통과해야 합니다.", - "Any pass": "어떤 통과", - "Anyone pass": "누구든 통과하면 됩니다.", - "Field name existed in form": "양식에 이미 존재하는 필드 이름", - "Continue the process": "프로세스 계속 진행", - "Terminate the process": "프로세스 종료", - "Save temporarily": "임시로 저장", - "Custom form": "사용자 정의 양식", - "Data record": "데이터 레코드", - "Create record form": "레코드 생성 양식", - "Update record form": "레코드 업데이트 양식", - "Filter settings": "필터 설정", - "Workflow todos": "워크플로우 할 일", - "Task node": "작업 노드" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/zh-CN.json deleted file mode 100644 index 3d521662e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/zh-CN.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "Manual": "人工处理", - "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "可用于人工提交数据,并决定是否继续或退出流程。工作流在执行到人工节点时会为被指派的用户生成待办事项,直到用户提交对应表单后继续处理该流程。", - "Values preset in this form will override user submitted ones when continue or reject.": "表单中预设的字段值会在用户提交继续或拒绝时覆盖相应字段的值。", - "Assignee": "负责人", - "Assignees": "负责人", - "User interface": "操作界面", - "Configure user interface": "配置界面", - "View user interface": "查看界面", - "Separately": "分别处理", - "Each user has own task": "每个人处理各自的任务", - "Collaboratively": "协作处理", - "Everyone shares one task": "所有人共享同一个任务", - "Negotiation": "协商机制", - "All pass": "全部通过", - "Everyone should pass": "每个人通过才通过", - "Any pass": "任意通过", - "Anyone pass": "任何一人通过即通过", - "Field name existed in form": "表单中已有对应标识的字段", - "Continue the process": "继续流程", - "Terminate the process": "终止流程", - "Save temporarily": "暂存", - "Custom form": "自定义表单", - "Data record": "数据记录", - "Create record form": "新增数据表单", - "Update record form": "更新数据表单", - "Filter settings": "筛选设置", - "Workflow todos": "工作流待办", - "Task node": "任务节点", - "Unprocessed": "未处理" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts deleted file mode 100644 index 04cfad3bf..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Migration } from '@nocobase/server'; - -function findSchema(root, filter, onlyLeaf = false) { - const result = []; - - if (!root) { - return result; - } - - if (filter(root) && (!onlyLeaf || !root.properties)) { - result.push(root); - return result; - } - - if (root.properties) { - Object.keys(root.properties).forEach((key) => { - result.push(...findSchema(root.properties[key], filter)); - }); - } - return result; -} - -function changeToDataPath(item) { - if (item && item['x-decorator-props']?.dataSource) { - item['x-decorator-props'].dataPath = item['x-decorator-props'].dataSource.replace(/^{{|}}$/g, ''); - delete item['x-decorator-props'].dataSource; - } -} - -function migrateSchema(schema) { - const root = { properties: schema }; - - const detailNodes = findSchema(root, (item) => { - return ( - item['x-decorator'] === 'DetailsBlockProvider' && - item['x-component'] === 'CardItem' && - item['x-designer'] === 'SimpleDesigner' - ); - }); - - detailNodes.forEach(changeToDataPath); - - return schema; -} - -export default class extends Migration { - async up() { - const { db } = this.context; - const NodeRepo = db.getRepository('flow_nodes'); - await db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'manual', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - const { assignees, forms, schema = {}, ...tabs } = node.config; - return node.update( - { - config: { - assignees, - forms, - schema: migrateSchema({ ...tabs, ...schema }), - }, - }, - { - silent: true, - transaction, - }, - ); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/LICENSE b/packages/plugins/@nocobase/plugin-workflow-parallel/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/README.md b/packages/plugins/@nocobase/plugin-workflow-parallel/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-parallel/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/client.js b/packages/plugins/@nocobase/plugin-workflow-parallel/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/package.json b/packages/plugins/@nocobase/plugin-workflow-parallel/package.json deleted file mode 100644 index af622c1ed..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-parallel", - "displayName": "Workflow: Parallel node", - "version": "0.21.24", - "description": "Could be used for parallel execution of branch processes in the workflow.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-parallel", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@ant-design/icons": "~5.3.6", - "antd": "5.16.1", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "用于在工作流中需要并行执行的分支流程。", - "displayName.zh-CN": "工作流:并行分支节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-parallel" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/server.js b/packages/plugins/@nocobase/plugin-workflow-parallel/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/en-US.json deleted file mode 100644 index b6ab2d009..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Parallel branch": "Parallel branch", - "Run multiple branch processes in parallel.": "Run multiple branch processes in parallel.", - "Add branch": "Add branch", - "All succeeded": "All succeeded", - "Any succeeded": "Any succeeded", - "Any succeeded or failed": "Any succeeded or failed", - "Continue after all branches succeeded": "Continue after all branches succeeded", - "Continue after any branch succeeded": "Continue after any branch succeeded", - "Continue after any branch succeeded, or exit after any branch failed.": "Continue after any branch succeeded, or exit after any branch failed." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/es-ES.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/es-ES.json deleted file mode 100644 index b0733c6d2..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/es-ES.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Parallel branch": "Rama paralela", - "Add branch": "Añadir rama", - "All succeeded": "Todo correcto", - "Any succeeded": "Cualquiera con éxito", - "Any succeeded or failed": "Cualquiera tuvo éxito o falló", - "Continue after all branches succeeded": "Continuar después que todas las ramas han tenido éxito", - "Continue after any branch succeeded": "Continuar después que cualquier rama tenga éxito", - "Continue after any branch succeeded, or exit after any branch failed": "Continuar después de que cualquier rama tenga éxito, o salir después de que cualquier rama falle" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/fr-FR.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/fr-FR.json deleted file mode 100644 index 33f4dc87a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/fr-FR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Parallel branch": "Branche parallèle", - "Add branch": "Ajouter une branche", - "All succeeded": "Tous réussis", - "Any succeeded": "Un réussi", - "Any succeeded or failed": "Un réussi ou un échoué", - "Continue after all branches succeeded": "Continuer après la réussite de toutes les branches", - "Continue after any branch succeeded": "Continuer après la réussite d'une branche", - "Continue after any branch succeeded, or exit after any branch failed": "Continuer après la réussite d'une branche, ou quitter après l'échec d'une branche" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts deleted file mode 100644 index 5bc45d642..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-parallel'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ja-JP.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ja-JP.json deleted file mode 100644 index 300bcebc7..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ja-JP.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Parallel branch": "分岐", - "All succeeded": "すべて成功", - "Any succeeded": "いずれかが成功", - "Continue after all branches succeeded": "すべての分岐が成功した後に続行", - "Continue after any branch succeeded": "いずれかの分岐が成功した後に続行" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ko_KR.json deleted file mode 100644 index 16c07d8e4..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ko_KR.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Parallel branch": "병렬 분기", - "Run multiple branch processes in parallel.": "여러 분기 프로세스를 병렬로 실행합니다.", - "Add branch": "분기 추가", - "All succeeded": "모두 성공", - "Any succeeded": "어떤 것이든 성공", - "Any succeeded or failed": "어떤 것이든 성공 또는 실패", - "Continue after all branches succeeded": "모든 분기가 성공한 후 계속", - "Continue after any branch succeeded": "어떤 분기가든 성공한 후 계속", - "Continue after any branch succeeded, or exit after any branch failed.": "어떤 분기든 성공하면 계속 진행하거나 어떤 분기든 실패하면 종료합니다." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/pt-BR.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/pt-BR.json deleted file mode 100644 index a68ad9608..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/pt-BR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Parallel branch": "Ramo paralelo", - "Add branch": "Adicionar ramo", - "All succeeded": "Todos com sucesso", - "Any succeeded": "Qualquer um com sucesso", - "Any succeeded or failed": "Qualquer um com sucesso ou falha", - "Continue after all branches succeeded": "Continuar após todos os ramos com sucesso", - "Continue after any branch succeeded": "Continuar após qualquer ramo com sucesso", - "Continue after any branch succeeded, or exit after any branch failed": "Continuar após qualquer ramo com sucesso ou sair após qualquer ramo falhar" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ru-RU.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ru-RU.json deleted file mode 100644 index 61faedcaa..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/ru-RU.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Parallel branch": "Параллельная ветвь", - "All succeeded": "Всё успешно", - "Any succeeded": "Что-то успешно", - "Continue after all branches succeeded": "Продолжать после успеха на всех ветвях", - "Continue after any branch succeeded": "Продолжать после успеха на любой из ветвей" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/tr-TR.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/tr-TR.json deleted file mode 100644 index a0fad8c6a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/tr-TR.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Parallel branch": "Paralel dal", - "All succeeded": "Hepsi başarılı", - "Any succeeded": "Herhangi biri başarılı", - "Continue after all branches succeeded": "Tüm dallar başarılı olduktan sonra devam et", - "Continue after any branch succeeded": "Herhangi bir dal başarılı olduktan sonra devam et" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/zh-CN.json deleted file mode 100644 index 57ebdfc9a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/zh-CN.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Parallel branch": "分支", - "Run multiple branch processes in parallel.": "并行运行多个分支流程。", - "Add branch": "增加分支", - "All succeeded": "全部成功", - "Any succeeded": "任意成功", - "Any succeeded or failed": "任意成功或失败", - "Continue after all branches succeeded": "全部分支都成功后才能继续", - "Continue after any branch succeeded": "任意分支成功后就继续", - "Continue after any branch succeeded, or exit after any branch failed.": "任意分支成功就继续流程,或者任意分支失败就退出流程。" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/LICENSE b/packages/plugins/@nocobase/plugin-workflow-request/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-request/README.md b/packages/plugins/@nocobase/plugin-workflow-request/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-request/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-request/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-request/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-request/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/client.js b/packages/plugins/@nocobase/plugin-workflow-request/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-request/package.json b/packages/plugins/@nocobase/plugin-workflow-request/package.json deleted file mode 100644 index 117f813b1..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-request", - "displayName": "Workflow: HTTP request node", - "version": "0.21.24", - "description": "Send HTTP requests to any HTTP service for data interaction in workflow.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-request", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@formily/antd-v5": "^1.1.9", - "antd": "5.16.1", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "可用于在工作流中向任意 HTTP 服务发送请求,进行数据交互。", - "displayName.zh-CN": "工作流:HTTP 请求节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-request" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-request/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/server.js b/packages/plugins/@nocobase/plugin-workflow-request/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/en-US.json deleted file mode 100644 index 7c7d640ec..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/en-US.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "HTTP request": "HTTP request", - "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.", - "HTTP method": "HTTP method", - "URL": "URL", - "Headers": "Headers", - "Add request header": "Add request header", - "Parameters": "Parameters", - "Add parameter": "Add parameter", - "Body": "Body", - "Use variable": "Use variable", - "Format": "Format", - "Insert": "Insert", - "Timeout config": "Timeout config", - "ms": "ms", - "Input request data": "Input request data", - "Only support standard JSON data": "Only support standard JSON data", - "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" only support \"application/json\", and no need to specify", - "Ignore failed request and continue workflow": "Ignore failed request and continue workflow" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/es-ES.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/es-ES.json deleted file mode 100644 index 04134c111..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/es-ES.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "HTTP request": "Petición HTTP", - "HTTP method": "Método HTTP", - "URL": "URL", - "Headers": "Encabezados", - "Add request header": "Añadir encabezado de petición", - "Parameters": "Parámetros", - "Add parameter": "Añadir parámetro", - "Body": "Cuerpo", - "Use variable": "Utilizar variable", - "Format": "Formato", - "Insert": "Insertar", - "Timeout config": "Tiempo de espera config", - "ms": "ms", - "Input request data": "Datos de solicitud de entrada", - "Only support standard JSON data": "Sólo admite datos JSON estándar", - "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" sólo admite \"application/json\", y no es necesario especificar", - "Ignore fail request and continue workflow": "Ignorar solicitud fallida y continuar flujo de trabajo" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/fr-FR.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/fr-FR.json deleted file mode 100644 index 631052e90..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/fr-FR.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "HTTP request": "Requête HTTP", - "HTTP method": "Méthode HTTP", - "URL": "URL", - "Headers": "En-têtes", - "Add request header": "Ajouter un en-tête de requête", - "Parameters": "Paramètres", - "Add parameter": "Ajouter un paramètre", - "Body": "Corps", - "Use variable": "Utiliser une variable", - "Format": "Format", - "Insert": "Insérer", - "Timeout config": "Configuration du délai d'expiration", - "ms": "ms", - "Input request data": "Entrée des données de requête", - "Only support standard JSON data": "Prend uniquement en charge les données JSON standard", - "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" prend uniquement en charge \"application/json\" et n'a pas besoin d'être spécifié", - "Ignore fail request and continue workflow": "Ignorer l'échec de la requête et continuer le workflow" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts deleted file mode 100644 index 2726967b4..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = 'workflow-request'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/ko_KR.json deleted file mode 100644 index ace823986..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/ko_KR.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "HTTP request": "HTTP 요청", - "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": - "URL에 HTTP 요청을 보냅니다. 상류 노드의 변수를 요청 헤더, 매개변수 및 요청 본문으로 사용할 수 있습니다.", - "HTTP method": "HTTP 메서드", - "URL": "주소", - "Headers": "헤더", - "Add request header": "요청 헤더 추가", - "Parameters": "매개변수", - "Add parameter": "매개변수 추가", - "Body": "본문", - "Use variable": "변수 사용", - "Format": "형식", - "Insert": "삽입", - "Timeout config": "시간 초과 설정", - "ms": "밀리초", - "Input request data": "요청 데이터 입력", - "Only support standard JSON data": "표준 JSON 데이터만 지원합니다", - "\"Content-Type\" only support \"application/json\", and no need to specify": - "\"Content-Type\" 헤더는 \"application/json\"만 지원하며 지정할 필요가 없습니다", - "Ignore failed request and continue workflow": "실패한 요청을 무시하고 워크플로를 계속합니다" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/pt-BR.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/pt-BR.json deleted file mode 100644 index 2f7a0dceb..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/pt-BR.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "HTTP request": "Requisição HTTP", - "HTTP method": "Método HTTP", - "URL": "URL", - "Headers": "Cabeçalhos", - "Add request header": "Adicionar cabeçalho de requisição", - "Parameters": "Parâmetros", - "Add parameter": "Adicionar parâmetro", - "Body": "Corpo", - "Use variable": "Usar variável", - "Format": "Formato", - "Insert": "Inserir", - "Timeout config": "Configuração de tempo limite", - "ms": "ms", - "Input request data": "Dados de entrada da requisição", - "Only support standard JSON data": "Suporta somente dados JSON padrão", - "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" somente suporta \"application/json\" e não precisa ser especificado", - "Ignore fail request and continue workflow": "Ignorar falhas na requisição e continuar o fluxo de trabalho" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/zh-CN.json deleted file mode 100644 index 480125f88..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/zh-CN.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "HTTP request": "HTTP 请求", - "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "向指定 URL 发送 HTTP 请求。可以使用上游节点里的变量作为请求头、参数和请求体。", - "HTTP method": "HTTP 方法", - "URL": "地址", - "Headers": "请求头", - "Add request header": "添加请求头", - "Parameters": "参数", - "Add parameter": "添加参数", - "Body": "请求体", - "Use variable": "使用变量", - "Format": "格式化", - "Insert": "插入", - "Timeout config": "超时设置", - "ms": "毫秒", - "Input request data": "输入请求数据", - "Only support standard JSON data": "仅支持标准 JSON 数据", - "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" 请求头仅支持 \"application/json\",无需填写", - "Ignore failed request and continue workflow": "忽略失败的请求并继续工作流" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/LICENSE b/packages/plugins/@nocobase/plugin-workflow-sql/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/README.md b/packages/plugins/@nocobase/plugin-workflow-sql/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow-sql/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-sql/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/client.js b/packages/plugins/@nocobase/plugin-workflow-sql/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/package.json b/packages/plugins/@nocobase/plugin-workflow-sql/package.json deleted file mode 100644 index 663528eff..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@nocobase/plugin-workflow-sql", - "displayName": "Workflow: SQL node", - "version": "0.21.24", - "description": "Execute SQL statements in workflow.", - "keywords": [ - "Workflow" - ], - "homepage": "https://docs.nocobase.com/handbook/workflow-sql", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "antd": "5.16.1", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "可用于在工作流中对数据库执行任意 SQL 语句。", - "displayName.zh-CN": "工作流:SQL 节点", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-sql" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-sql/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/server.js b/packages/plugins/@nocobase/plugin-workflow-sql/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/en-US.json deleted file mode 100644 index e34793751..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/en-US.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "SQL action": "SQL action", - "Execute a SQL statement in database": "Execute a SQL statement in database", - "Usage of SQL query result is not supported yet.": "Usage of SQL query result is not supported yet." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts deleted file mode 100644 index 5cbbb5bab..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useTranslation } from 'react-i18next'; - -export const NAMESPACE = '@nocobase/plugin-workflow-sql'; - -export function useLang(key: string, options = {}) { - const { t } = usePluginTranslation(options); - return t(key); -} - -export function usePluginTranslation(options) { - return useTranslation(NAMESPACE, options); -} diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/ko_KR.json deleted file mode 100644 index f7fdf44b1..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/ko_KR.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "SQL action": "SQL 작업", - "Execute a SQL statement in database": "데이터베이스에서 SQL 문을 실행합니다", - "Usage of SQL query result is not supported yet.": "아직 SQL 쿼리 결과의 사용은 지원되지 않습니다." -} diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/zh-CN.json deleted file mode 100644 index bb9549300..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "SQL action": "SQL 操作", - "Execute a SQL statement in database.": "在数据库中执行一个 SQL 语句", - "Select a data source to execute SQL.": "选择一个数据源来执行 SQL", - "SQL query result could be used through <1>JSON query node (Commercial plugin).": "SQL 执行的结果可在 <1>JSON 解析节点 中使用(商业插件)。" -} diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts deleted file mode 100644 index 3b60b3bee..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/LICENSE b/packages/plugins/@nocobase/plugin-workflow-test/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow-test/README.md b/packages/plugins/@nocobase/plugin-workflow-test/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow-test/client.d.ts b/packages/plugins/@nocobase/plugin-workflow-test/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/client.js b/packages/plugins/@nocobase/plugin-workflow-test/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-test/server.d.ts b/packages/plugins/@nocobase/plugin-workflow-test/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/server.js b/packages/plugins/@nocobase/plugin-workflow-test/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow/.npmignore b/packages/plugins/@nocobase/plugin-workflow/.npmignore deleted file mode 100644 index c593fe9df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -/node_modules -/src \ No newline at end of file diff --git a/packages/plugins/@nocobase/plugin-workflow/LICENSE b/packages/plugins/@nocobase/plugin-workflow/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/plugins/@nocobase/plugin-workflow/README.md b/packages/plugins/@nocobase/plugin-workflow/README.md deleted file mode 100644 index e83d0373a..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -English | [中文](./README.zh-CN.md) - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow/README.zh-CN.md b/packages/plugins/@nocobase/plugin-workflow/README.zh-CN.md deleted file mode 100644 index e690848dd..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/README.zh-CN.md +++ /dev/null @@ -1,9 +0,0 @@ -# workflow - -[English](./README.md) | 中文 - -## 安装激活 - -内置插件无需手动安装激活。 - -## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-workflow/client.d.ts b/packages/plugins/@nocobase/plugin-workflow/client.d.ts deleted file mode 100644 index 6c459cbac..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/client'; -export { default } from './dist/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/client.js b/packages/plugins/@nocobase/plugin-workflow/client.js deleted file mode 100644 index b6e3be70e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/client.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow/server.d.ts b/packages/plugins/@nocobase/plugin-workflow/server.d.ts deleted file mode 100644 index c41081ddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/server.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dist/server'; -export { default } from './dist/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow/server.js b/packages/plugins/@nocobase/plugin-workflow/server.js deleted file mode 100644 index 972842039..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/server.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/index.ts deleted file mode 100644 index 7e74612df..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './server'; -export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/en-US.json deleted file mode 100644 index ac0cbc6ae..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/en-US.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Workflow": "Workflow", - "Execution history": "Execution history", - "Executed": "Executed", - "Trigger type": "Trigger type", - "Status": "Status", - "On": "On", - "Off": "Off", - "Version": "Version", - "Copy to new version": "Copy to new version", - "Duplicate": "Duplicate", - "Loading": "Loading", - "Load failed": "Load failed", - "Trigger": "Trigger", - "Trigger variables": "Trigger variables", - "Trigger data": "Trigger data", - "Trigger time": "Trigger time", - "Triggered at": "Triggered at", - "Collection event": "Collection event", - "Trigger on": "Trigger on", - "After record added": "After record added", - "After record updated": "After record updated", - "After record added or updated": "After record added or updated", - "After record deleted": "After record deleted", - "Changed fields": "Changed fields", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.", - "Only triggers when match conditions": "Only triggers when match conditions", - "Schedule event": "Schedule event", - "Trigger mode": "Trigger mode", - "Based on certain date": "Based on certain date", - "Based on date field of collection": "Based on date field of collection", - "Starts on": "Starts on", - "Ends on": "Ends on", - "No end": "No end", - "Exactly at": "Exactly at", - "Repeat mode": "Repeat mode", - "Repeat limit": "Repeat limit", - "No limit": "No limit", - "Seconds": "Seconds", - "Minutes": "Minutes", - "Hours": "Hours", - "Days": "Days", - "Weeks": "Weeks", - "Months": "Months", - "No repeat": "No repeat", - "Every": "Every", - "By minute": "By minute", - "By hour": "By hour", - "By day": "By day", - "By week": "By week", - "By month": "By month", - "By field": "By field", - "By custom date": "By custom date", - "Advanced": "Advanced", - "End": "End", - "Node result": "Node result", - "Constant": "Constant", - "Null": "Null", - "Boolean": "Boolean", - "String": "String", - "Operator": "Operator", - "Arithmetic calculation": "Arithmetic calculation", - "String operation": "String operation", - "Executed at": "Executed at", - "Queueing": "Queueing", - "On going": "On going", - "Succeeded": "Succeeded", - "Failed": "Failed", - "Pending": "Pending", - "Canceled": "Canceled", - "This node contains branches, deleting will also be preformed to them, are you sure?": "This node contains branches, deleting will also be preformed to them, are you sure?", - "Control": "Control", - "Collection operations": "Collection operations", - "Extended types": "Extended types", - "Node type": "Node type", - "Calculation": "Calculation", - "Configure calculation": "Configure calculation", - "Calculation result": "Calculation result", - "True": "True", - "False": "False", - "concat": "concat", - "Condition": "Condition", - "Mode": "Mode", - "Continue when \"Yes\"": "Continue when \"Yes\"", - "Branch into \"Yes\" and \"No\"": "Branch into \"Yes\" and \"No\"", - "Conditions": "Conditions", - "Create record": "Create record", - "Update record": "Update record", - "Query record": "Query record", - "Multiple records": "Multiple records", - "Please select collection first": "Please select collection first", - "Only update records matching conditions": "Only update records matching conditions", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.", - "Trigger in executed workflow cannot be modified": "Trigger in executed workflow cannot be modified", - "Node in executed workflow cannot be modified": "Node in executed workflow cannot be modified", - "Can not delete": "Can not delete", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting." -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/es-ES.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/es-ES.json deleted file mode 100644 index d0ffb375f..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/es-ES.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Workflow": "Flujo de trabajo", - "Execution history": "Historial de ejecución", - "Executed": "Ejecutado", - "Trigger type": "Tipo de activador", - "Status": "Estado", - "On": "Activado", - "Off": "Apagado", - "Version": "Versión", - "Copy to new version": "Copiar a nueva versión", - "Duplicate": "Duplicar", - "Loading": "Cargando", - "Load failed": "Carga fallida", - "Trigger": "Disparador", - "Trigger variables": "Variables de activación", - "Trigger data": "Datos de activación", - "Trigger time": "Tiempo de activación", - "Triggered at": "Disparado a las", - "Collection event": "Evento de recogida", - "Trigger on": "Activado en", - "After record added": "Después de añadir el registro", - "After record updated": "Después de actualizar el registro", - "After record added or updated": "Después de añadir o actualizar el registro", - "After record deleted": "Después de eliminar el registro", - "Changed fields": "Campos modificados", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Se activa sólo si cambia uno de los campos seleccionados. Si no se selecciona, significa que se activará cuando cambie cualquier campo. Cuando se añade o elimina un registro, se considera que se ha modificado cualquier campo.", - "Only triggers when match conditions": "Sólo se dispara cuando coinciden las condiciones", - "Schedule event": "Programar evento", - "Trigger mode": "Modo de activación", - "Based on certain date": "Basado en fecha determinada", - "Based on date field of collection": "Basado en el campo de fecha de la colección", - "Starts on": "Comienza el", - "Ends on": "Finaliza el", - "No end": "Sin fin", - "Exactly at": "Exactamente en", - "Repeat mode": "Modo repetición", - "Repeat limit": "Límite de repetición", - "No limit": "Sin límite", - "Seconds": "Segundos", - "Minutes": "Minutos", - "Hours": "Horas", - "Days": "Días", - "Weeks": "Semanas", - "Months": "Meses", - "No repeat": "No repetir", - "Every": "Cada", - "By minute": "Por minuto", - "By hour": "Por hora", - "By day": "Por día", - "By week": "Por semana", - "By month": "Por mes", - "By field": "Por campo", - "By custom date": "Por fecha personalizada", - "Advanced": "Avanzada", - "End": "Fin", - "Node result": "Resultado nodo", - "Constant": "Constante", - "Null": "Null", - "Boolean": "Booleano", - "String": "Cadena", - "Operator": "Calculadora", - "Arithmetic calculation": "Cálculo aritmético", - "String operation": "Operación de Cadena", - "Executed at": "Ejecutado en", - "Queueing": "Puesta en cola", - "On going": "En curso", - "Succeeded": "Logrado", - "Failed": "Fallido", - "Pending": "Pendiente", - "Canceled": "Cancelado", - "This node contains branches, deleting will also be preformed to them, are you sure?": "Este nodo contiene ramas, el borrado también se preformará a ellas, ¿estás seguro?", - "Control": "Control", - "Collection operations": "Operaciones de recogida", - "Extended types": "Tipos ampliados", - "Node type": "Tipo de nodo", - "Calculation": "Cálculo", - "Configure calculation": "Configurar cálculo", - "Calculation result": "Resultado del cálculo", - "True": "Verdadero", - "False": "Falso", - "concat": "concat", - "Condition": "Condición", - "Mode": "Modo", - "Continue when \"Yes\"": "Continuar cuando \"Sí\"", - "Branch into \"Yes\" and \"No\"": "Ramificarse en \"Sí\" y \"No\"", - "Conditions": "Condiciones", - "Create record": "Crear registro", - "Update record": "Actualizar registro", - "Query record": "Consultar registro", - "Multiple records": "Múltiples registros", - "Please select collection first": "Por favor, seleccione primero la colección", - "Only update records matching conditions": "Actualizar sólo los registros que cumplan las condiciones", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Los campos a los que no se les asigne un valor se establecerán en el valor predeterminado, y los que no tengan un valor predeterminado se establecerán en nulo.", - "Trigger in executed workflow cannot be modified": "No se puede modificar el desencadenante en el flujo de trabajo ejecutado", - "Node in executed workflow cannot be modified": "Nodo en flujo de trabajo ejecutado no puede ser modificado", - "Can not delete": "No se puede eliminar", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "El resultado de este nodo ha sido referenciado por otros nodos ({{nodes}}" -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/fr-FR.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/fr-FR.json deleted file mode 100644 index 2c4fc9278..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/fr-FR.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Workflow": "Workflow", - "Execution history": "Historique d'exécution", - "Executed": "Exécuté", - "Trigger type": "Type de déclencheur", - "Status": "Statut", - "On": "Activé", - "Off": "Désactivé", - "Version": "Version", - "Copy to new version": "Copier vers une nouvelle version", - "Duplicate": "Dupliquer", - "Loading": "Chargement", - "Load failed": "Échec du chargement", - "Trigger": "Déclencheur", - "Trigger variables": "Variables de déclenchement", - "Trigger data": "Données de déclenchement", - "Trigger time": "Temps de déclenchement", - "Triggered at": "Déclenché à", - "Collection event": "Événement de collection", - "Trigger on": "Déclencher sur", - "After record added": "Après l'ajout d'un enregistrement", - "After record updated": "Après la mise à jour d'un enregistrement", - "After record added or updated": "Après l'ajout ou la mise à jour d'un enregistrement", - "After record deleted": "Après la suppression d'un enregistrement", - "Changed fields": "Champs modifiés", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Déclenché uniquement si l'un des champs sélectionnés change. S'il n'est pas sélectionné, cela signifie qu'il sera déclenché lorsque n'importe quel champ change. Lorsque l'enregistrement est ajouté ou supprimé, n'importe quel champ est considéré comme ayant été modifié.", - "Only triggers when match conditions": "Déclenche uniquement lorsque les conditions correspondent", - "Schedule event": "Événement planifié", - "Trigger mode": "Mode de déclenchement", - "Based on certain date": "Basé sur une date spécifique", - "Based on date field of collection": "Basé sur le champ de date de la collection", - "Starts on": "Commence le", - "Ends on": "Se termine le", - "No end": "Pas de fin", - "Exactly at": "Exactement à", - "Repeat mode": "Mode de répétition", - "Repeat limit": "Limite de répétition", - "No limit": "Pas de limite", - "Seconds": "Secondes", - "Minutes": "Minutes", - "Hours": "Heures", - "Days": "Jours", - "Weeks": "Semaines", - "Months": "Mois", - "No repeat": "Pas de répétition", - "Every": "Chaque", - "By minute": "Par minute", - "By hour": "Par heure", - "By day": "Par jour", - "By week": "Par semaine", - "By month": "Par mois", - "By field": "Par champ", - "By custom date": "Par date personnalisée", - "Advanced": "Avancé", - "End": "Fin", - "Node result": "Résultat du nœud", - "Constant": "Constante", - "Null": "Null", - "Boolean": "Booléen", - "String": "Chaîne de caractères", - "Operator": "Calculatrice", - "Arithmetic calculation": "Calcul arithmétique", - "String operation": "Opération sur les chaînes de caractères", - "Executed at": "Exécuté à", - "Queueing": "En attente", - "On going": "En cours", - "Succeeded": "Réussi", - "Failed": "Échoué", - "Pending": "En attente", - "Canceled": "Annulé", - "This node contains branches, deleting will also be preformed to them, are you sure?": "Ce nœud contient des branches, leur suppression sera également effectuée, êtes-vous sûr(e) ?", - "Control": "Contrôle", - "Collection operations": "Opérations sur la collection", - "Extended types": "Types étendus", - "Node type": "Type de nœud", - "Calculation": "Calcul", - "Configure calculation": "Configurer le calcul", - "Calculation result": "Résultat du calcul", - "True": "Vrai", - "False": "Faux", - "concat": "concat", - "Condition": "Condition", - "Mode": "Mode", - "Continue when \"Yes\"": "Continuer quand \"Oui\"", - "Branch into \"Yes\" and \"No\"": "Brancher sur \"Oui\" et \"Non\"", - "Conditions": "Conditions", - "Create record": "Créer un enregistrement", - "Update record": "Mettre à jour un enregistrement", - "Query record": "Interroger un enregistrement", - "Multiple records": "Multiples enregistrements", - "Please select collection first": "Veuillez d'abord sélectionner une collection", - "Only update records matching conditions": "Mettre à jour uniquement les enregistrements correspondant aux conditions", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Les champs qui ne reçoivent pas de valeur seront définis sur la valeur par défaut, et ceux qui n'ont pas de valeur par défaut seront définis sur null.", - "Trigger in executed workflow cannot be modified": "Le déclencheur dans le workflow exécuté ne peut pas être modifié", - "Node in executed workflow cannot be modified": "Le nœud dans le workflow exécuté ne peut pas être modifié", - "Can not delete": "Impossible de supprimer", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "Le résultat de ce nœud a été référencé par d'autres nœuds ({{nodes}}), veuillez supprimer son utilisation avant de le supprimer." -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/ja-JP.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/ja-JP.json deleted file mode 100644 index 65bccf5bb..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/ja-JP.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "Workflow": "ワークフロー", - "Execution history": "実行履歴", - "Trigger type": "トリガータイプ", - "Status": "状態", - "On": "有効", - "Off": "無効", - "Version": "バージョン", - "Copy to new version": "新しいバージョンにコピー", - "Load failed": "読み込みに失敗しました", - "Trigger": "トリガー", - "Collection event": "コレクションイベント", - "Trigger on": "トリガータイミング", - "After record added": "レコードを追加した後", - "After record updated": "レコードを更新した後", - "After record added or updated": "レコードを追加もしくは更新した後", - "After record deleted": "レコードを削除した後", - "Changed fields": "フィールドが変更された時", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "選択したフィールドの 1 つが変更された場合にのみトリガーされます。 選択されていない場合は、フィールドが変更されたときにトリガーされることを意味します。 レコードが追加または削除されると、すべてのフィールドが変更されたと見なされます。", - "Only triggers when match conditions": "以下の条件を満たすと発動", - "Schedule event": "スケジュールイベント", - "Trigger mode": "トリガーモード", - "Based on certain date": "カスタム時間", - "Based on date field of collection": "コレクションのフィールド時間に基づく", - "Starts on": "開始", - "Ends on": "終了", - "Exactly at": "ちょうど", - "Repeat mode": "繰り返しパターン", - "Repeat limit": "繰り返し回数", - "No limit": "無制限", - "Seconds": "秒", - "Minutes": "分", - "Hours": "時", - "Days": "日", - "Weeks": "週", - "Months": "月", - "No repeat": "繰り返さない", - "Every": "毎", - "By minute": "分ごと", - "By hour": "時間ごと", - "By day": "日ごと", - "By week": "週ごと", - "By month": "月ごと", - "By field": "フィールドごと", - "By custom date": "カスタム時間", - "Advanced": "アドバンスド", - "End": "終了", - "Trigger variables": "トリガーフィールド", - "Node result": "ノードの結果", - "Constant": "定数", - "Boolean": "論理値", - "String": "文字列", - "Arithmetic calculation": "算術演算", - "String operation": "文字列操作", - "On going": "処理中", - "Succeeded": "成功", - "Failed": "失敗", - "Canceled": "取消", - "This node contains branches, deleting will also be preformed to them, are you sure?": "ノードにはブランチが含まれており、そのすべてのブランチの下にあるすべての子ノードが同時に削除されます。続行してもよろしいですか?", - "Control": "プロセス制御", - "Collection operations": "フィールド操作", - "Node type": "ノードタイプ", - "Calculation": "演算", - "Configure calculation": "演算設定", - "Calculation result": "演算結果", - "True": "真", - "False": "偽", - "Condition": "条件", - "Mode": "モデル", - "Continue when \"Yes\"": "「はい」の場合に続行", - "Branch into \"Yes\" and \"No\"": "「はい」と「いいえ」で分岐して続行", - "Conditions": "条件設定", - "Create record": "レコード追加", - "Update record": "レコード更新", - "Query record": "クエリ レコード", - "Multiple records": "複数レコード", - "Please select collection first": "先にコレクションを選択してください", - "Only update records matching conditions": "条件を満たすレコードのみ更新", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "値が割り当てられていないフィールドはデフォルト値に設定され、デフォルト値がないフィールドは null に設定されます", - "Trigger in executed workflow cannot be modified": "すでにワークフローを実行したトリガーは変更できません", - "Node in executed workflow cannot be modified": "すでに実行されたワークフローのノードは変更できません" -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/ko_KR.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/ko_KR.json deleted file mode 100644 index c14334c9b..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/ko_KR.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "Workflow": "워크플로우", - "Execution history": "실행 기록", - "Clear all executions": "모든 실행 기록 지우기", - "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "지우기 작업은 실행 횟수를 재설정하지 않으며 시작된 실행이 삭제되지 않습니다. 모두 삭제하시겠습니까?", - "Executed": "실행됨", - "Sync enabled status of all workflows from the database": "데이터베이스에서 모든 워크플로우의 활성 상태 동기화", - "Trigger type": "트리거 유형", - "Status": "상태", - "On": "활성", - "Off": "비활성", - "Version": "버전", - "Copy to new version": "새 버전으로 복사", - "Duplicate": "복제", - "Duplicate to new workflow": "새로운 워크플로우로 복제", - "Delete a main version will cause all other revisions to be deleted too.": "주 버전을 삭제하면 모든 다른 수정 사항도 삭제됩니다.", - "Loading": "로딩 중", - "Load failed": "로드 실패", - "Use transaction": "트랜잭션 사용", - "Data operation nodes in the workflow will run in the same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "워크플로우의 데이터 작업 노드는 어떠한 방해가 발생할 때까지 동일한 트랜잭션에서 실행됩니다. 어떠한 실패도 데이터 롤백을 유발하며 실행 이력도 롤백됩니다.", - "Auto delete history when execution is on end status": "실행이 종료 상태일 때 자동으로 이력 삭제", - "Trigger": "트리거", - "Trigger variables": "트리거 변수", - "Trigger data": "트리거 데이터", - "Trigger time": "트리거 시간", - "Triggered at": "트리거 시간", - "Bind workflows": "워크플로우 바인딩", - "Workflow will be triggered after submitting succeeded.": "제출 성공 후 워크플로우가 트리거됩니다.", - "Workflow will be triggered after saving succeeded.": "저장 성공 후 워크플로우가 트리거됩니다.", - "Workflow will be triggered directly once the button is clicked, without data saving.": "버튼을 클릭하면 데이터 저장 없이 워크플로우가 직접 트리거됩니다.", - "Submit to workflow": "워크플로우에 제출", - "Add workflow": "워크플로우 추가", - "Select workflow": "워크플로우 선택", - "Trigger data context": "트리거 데이터 컨텍스트", - "Full form data": "전체 폼 데이터", - "Select context": "컨텍스트 선택", - "Collection event": "데이터 테이블 이벤트", - "Event will be triggered on collection data row created, updated or deleted.": "데이터 테이블의 데이터 행이 생성, 업데이트 또는 삭제될 때 이벤트가 트리거됩니다.", - "Trigger on": "트리거 조건", - "After record added": "레코드 추가 후", - "After record updated": "레코드 업데이트 후", - "After record added or updated": "레코드 추가 또는 업데이트 후", - "After record deleted": "레코드 삭제 후", - "Changed fields": "변경된 필드", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When the record is added or deleted, any field is considered to have been changed.": - "선택한 필드 중 하나라도 변경되면 트리거됩니다. 선택하지 않으면 어떤 필드가 변경되더라도 트리거됩니다. 레코드가 추가되거나 삭제될 때는 어떤 필드든지 변경된 것으로 간주됩니다.", - "Only triggers when match conditions": "일치하는 조건이 충족될 때만 트리거됩니다", - "Preload associations": "연결 데이터를 미리 로드합니다", - "Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": - "후속 노드에서 액세스해야 하는 연관 필드를 선택하십시오. 두 개 이상의 수많은 연관 레벨은 성능 문제를 발생시킬 수 있으므로 주의해서 사용하십시오.", - "Schedule event": "일정 이벤트", - "Event will be scheduled and triggered based on time conditions.": "이벤트는 시간 조건을 기반으로 예약되고 트리거됩니다.", - "Trigger mode": "트리거 모드", - "Based on certain date": "특정 날짜를 기준으로", - "Based on date field of collection": "컬렉션의 날짜 필드를 기반으로", - "Starts on": "시작 날짜", - "Ends on": "종료 날짜", - "No end": "종료 없음", - "Exactly at": "정확한 시각", - "Repeat mode": "반복 모드", - "Repeat limit": "반복 제한", - "No limit": "제한 없음", - "Seconds": "초", - "Minutes": "분", - "Hours": "시간", - "Days": "일", - "Weeks": "주", - "Months": "월", - "No repeat": "반복 없음", - "Every": "매", - "By minute": "분당", - "By hour": "시간당", - "By day": "매일", - "By week": "매주", - "By month": "매월", - "By field": "필드별", - "By custom date": "사용자 정의 날짜별", - "Advanced": "고급", - "End": "종료", - "Node result": "노드 결과", - "Variable key of node": "노드 변수 키", - "Scope variables": "범위 변수", - "Operator": "연산자", - "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression can be a static or dynamic one from an expression collections.": - "계산 엔진을 기반으로 식을 계산하고 결과값을 얻습니다. 상류 노드의 변수를 식에서 사용할 수 있습니다. 식은 표현식 컬렉션에서 정적 또는 동적일 수 있습니다.", - "String operation": "문자열 연산", - "System variables": "시스템 변수", - "System time": "시스템 시간", - "Date variables": "날짜 변수", - "Executed at": "실행된 시각", - "Queueing": "대기 중", - "On going": "진행 중", - "Resolved": "해결됨", - "Pending": "보류 중", - "Failed": "실패", - "Error": "오류", - "Aborted": "중단됨", - "Canceled": "취소됨", - "Rejected": "거부됨", - "Retry needed": "재시도 필요", - "Triggered but still waiting in the queue to execute.": "트리거되었지만 아직 대기열에서 실행 대기 중입니다.", - "Started and executing, maybe waiting for an async callback (manual, delay, etc.).": - "시작되어 실행 중이며, 비동기 콜백을 기다리는 중일 수 있습니다(수동, 지연 등).", - "Successfully finished.": "성공적으로 완료됨", - "Failed to satisfy node configurations.": "노드 구성을 충족하지 못했습니다.", - "Some node meets error.": "일부 노드에서 오류가 발생했습니다.", - "Running of some node was aborted by program flow.": "프로그램 플로우에 의해 일부 노드의 실행이 중단되었습니다.", - "Manually canceled the whole execution when waiting.": "대기 중에 수동으로 전체 실행이 취소되었습니다.", - "Rejected from a manual node.": "수동 노드에서 거부되었습니다.", - "General failed but should do another try.": "일반적인 실패이지만 다시 시도해야 합니다.", - "Operations": "작업", - "This node contains branches, deleting will also be performed on them, are you sure?": - "이 노드에는 분기가 포함되어 있습니다. 삭제하면 그들에게도 적용됩니다. 계속하시겠습니까?", - "Control": "프로세스 제어", - "Collection operations": "데이터 테이블 조작", - "Manual": "수동 처리", - "Extended types": "확장된 유형", - "Node type": "노드 유형", - "Calculation": "계산", - "Calculation engine": "계산 엔진", - "Basic": "기본", - "Calculation expression": "계산식", - "Expression syntax error": "식 문법 오류", - "Syntax references: ": "문법 참조:", - "Calculation result": "계산 결과", - "True": "참", - "False": "거짓", - "concat": "연결", - "Condition": "조건", - "Based on the boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": - "계산 결과의 참/거짓을 기반으로 프로세스를 '계속' 또는 '종료'하거나 '예' 및 '아니오'의 다른 분기에서 계속합니다.", - "Mode": "모드", - "Continue when \"Yes\"": "\"예\"일 때 계속", - "Branch into \"Yes\" and \"No\"": "\"예\" 및 \"아니오\"로 분기", - "Condition expression": "조건식", - "Create record": "레코드 생성", - "Add a new record to a collection. You can use variables from upstream nodes to assign values to fields.": - "컬렉션에 새로운 레코드를 추가합니다. 상류 노드의 변수를 사용하여 필드에 값을 할당할 수 있습니다.", - "Update record": "레코드 업데이트", - "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": - "데이터 테이블의 레코드를 업데이트합니다. 상류 노드의 변수를 쿼리 조건 및 필드 값으로 사용할 수 있습니다.", - "Update mode": "업데이트 모드", - "Update in a batch": "일괄 업데이트", - "Update one by one": "개별 업데이트", - "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": - "일괄로 모든 해당 데이터를 한 번에 업데이트하며, 데이터 양이 많을 때 성능이 더 좋습니다. 그러나 업데이트된 데이터는 다른 워크플로를 트리거하지 않으며 감사 로그를 기록하지 않습니다.", - "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": - "업데이트된 데이터는 다른 워크플로를 트리거하고 감사 로그도 기록할 수 있습니다. 그러나 일반적으로 몇 개 또는 몇 십 개의 데이터에만 적용되며, 그렇지 않으면 성능 문제가 발생할 수 있습니다.", - "Query record": "데이터 조회", - "Query records from a collection. You can use variables from upstream nodes as query conditions.": - "데이터 테이블에서 레코드를 조회합니다. 상류 노드의 변수를 쿼리 조건으로 사용할 수 있습니다.", - "Allow multiple records as a result": "다중 레코드 결과 허용", - "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": - "선택한 경우, 쿼리 결과에 여러 레코드가 있는 경우 결과로 배열이 반환되어 루프 노드를 사용하여 하나씩 조작할 수 있습니다. 그렇지 않으면 하나의 레코드만 반환됩니다.", - "Exit when the query result is null": "쿼리 결과가 null인 경우 종료", - "Please select the collection first": "먼저 데이터 테이블을 선택하세요.", - "Only update records matching conditions": "조건과 일치하는 레코드만 업데이트", - "Please add at least one condition": "최소한 하나의 조건을 추가하세요.", - "Unassigned fields will be set to default values, and those without default values will be set to null.": - "미할당된 필드는 기본값으로 설정되며 기본값이 없는 필드는 null로 설정됩니다.", - "Delete record": "데이터 삭제", - "Delete records of a collection. Could use variables in the workflow context as a filter. All records matching the filter will be deleted.": - "데이터 테이블의 레코드를 삭제합니다. 워크플로 컨텍스트의 변수를 필터로 사용할 수 있습니다. 필터와 일치하는 모든 레코드가 삭제됩니다.", - "Executed workflow cannot be modified": "이미 실행된 워크플로는 수정할 수 없습니다.", - "Cannot delete": "삭제할 수 없음", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": - "이 노드의 결과가 다른 노드에서 참조되었습니다({{nodes}}). 삭제 전에 참조를 제거하세요." -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/pt-BR.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/pt-BR.json deleted file mode 100644 index 7ff7e6509..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/pt-BR.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Workflow": "Fluxo de trabalho", - "Execution history": "Histórico de execução", - "Executed": "Executado", - "Trigger type": "Tipo de acionador", - "Status": "Status", - "On": "Ligado", - "Off": "Desligado", - "Version": "Versão", - "Copy to new version": "Copiar para nova versão", - "Duplicate": "Duplicar", - "Loading": "Carregando", - "Load failed": "Falha ao carregar", - "Trigger": "Acionador", - "Trigger variables": "Variáveis do acionador", - "Trigger data": "Dados do acionador", - "Trigger time": "Tempo do acionador", - "Triggered at": "Acionado em", - "Collection event": "Evento da coleção", - "Trigger on": "Acionar em", - "After record added": "Depois do registro ser adicionado", - "After record updated": "Depois do registro ser atualizado", - "After record added or updated": "Depois do registro ser adicionado ou atualizado", - "After record deleted": "Depois do registro ser excluído", - "Changed fields": "Campos alterados", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Acionado apenas se um dos campos selecionados for alterado. Se não estiver selecionado, será acionado quando qualquer campo for alterado. Quando um registro é adicionado ou excluído, qualquer campo é considerado como tendo sido alterado.", - "Only triggers when match conditions": "Aciona somente quando as condições correspondem", - "Schedule event": "Evento programado", - "Trigger mode": "Modo de acionamento", - "Based on certain date": "Com base em uma data específica", - "Based on date field of collection": "Com base no campo de data da coleção", - "Starts on": "Começa em", - "Ends on": "Termina em", - "No end": "Sem fim", - "Exactly at": "Exatamente às", - "Repeat mode": "Modo de repetição", - "Repeat limit": "Limite de repetição", - "No limit": "Sem limite", - "Seconds": "Segundos", - "Minutes": "Minutos", - "Hours": "Horas", - "Days": "Dias", - "Weeks": "Semanas", - "Months": "Meses", - "No repeat": "Sem repetição", - "Every": "Cada", - "By minute": "Por minuto", - "By hour": "Por hora", - "By day": "Por dia", - "By week": "Por semana", - "By month": "Por mês", - "By field": "Por campo", - "By custom date": "Por data personalizada", - "Advanced": "Avançado", - "End": "Fim", - "Node result": "Resultado do nó", - "Constant": "Constante", - "Null": "Nulo", - "Boolean": "Booleano", - "String": "String", - "Operator": "Calculadora", - "Arithmetic calculation": "Cálculo aritmético", - "String operation": "Operação de string", - "Executed at": "Executado em", - "Queueing": "Em fila", - "On going": "Em andamento", - "Succeeded": "Sucesso", - "Failed": "Falhou", - "Pending": "Pendente", - "Canceled": "Cancelado", - "This node contains branches, deleting will also be preformed to them, are you sure?": "Este nó contém ramos, a exclusão também será realizada neles, você tem certeza?", - "Control": "Controle", - "Collection operations": "Operações de coleção", - "Extended types": "Tipos estendidos", - "Node type": "Tipo de nó", - "Calculation": "Cálculo", - "Configure calculation": "Configurar cálculo", - "Calculation result": "Resultado do cálculo", - "True": "Verdadeiro", - "False": "Falso", - "concat": "concatenar", - "Condition": "Condição", - "Mode": "Modo", - "Continue when \"Yes\"": "Continuar quando \"Sim\"", - "Branch into \"Yes\" and \"No\"": "Ramo em \"Sim\" e \"Não\"", - "Conditions": "Condições", - "Create record": "Criar registro", - "Update record": "Atualizar registro", - "Query record": "Consultar registro", - "Multiple records": "Múltiplos registros", - "Please select collection first": "Por favor, selecione uma coleção primeiro", - "Only update records matching conditions": "Atualizar somente registros que atendem às condições", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Campos que não recebem valor serão definidos como valor padrão e aqueles sem valor padrão serão definidos como nulo.", - "Trigger in executed workflow cannot be modified": "O acionador em fluxo de trabalho executado não pode ser modificado", - "Node in executed workflow cannot be modified": "O nó em fluxo de trabalho executado não pode ser modificado", - "Can not delete": "Não é possível excluir", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "O resultado deste nó foi referenciado por outros nós ({{nodes}}), por favor, remova a referência antes de excluir." -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/ru-RU.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/ru-RU.json deleted file mode 100644 index 8b7293354..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/ru-RU.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "Workflow": "Рабочий процесс", - "Execution history": "История запусков", - "Trigger type": "Тип триггера", - "Status": "Статус", - "On": "Вкл.", - "Off": "Выкл.", - "Version": "Версия", - "Copy to new version": "Скопировать в новую версию", - "Load failed": "Загрузка не удалась", - "Trigger": "Триггер", - "Collection event": "Событие коллекции", - "Trigger on": "Триггер на", - "After record added": "После добавления записи", - "After record updated": "После обновления записи", - "After record added or updated": "После добавления или обновления записи", - "After record deleted": "После удаления записи", - "Changed fields": "Измененные поля", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Запускается только при изменении одного из выбранных полей. Если флажок не установлен, это означает, что он будет срабатывать при изменении любого поля. При добавлении или удалении записи любое поле считается измененным.", - "Only triggers when match conditions": "Срабатывает только при совпадении условий", - "Schedule event": "Событие по расписанию", - "Trigger mode": "Режим триггера", - "Based on certain date": "На основе определенной даты", - "Based on date field of collection": "На базе поля с датой в коллекции", - "Starts on": "Стартует с", - "Ends on": "Оканчивается в", - "Exactly at": "Ровно в", - "Repeat mode": "Режим повтора", - "Repeat limit": "Ограничение на повторы", - "No limit": "Нет ограничений", - "Seconds": "Секунды", - "Minutes": "Минуты", - "Hours": "Часы", - "Days": "Дни", - "Weeks": "Недели", - "Months": "Месяцы", - "No repeat": "Не повторять", - "Every": "Каждые", - "By minute": "По минутам", - "By hour": "По часам", - "By day": "По дням", - "By week": "По неделям", - "By month": "По месяцам", - "By field": "По полю", - "By custom date": "По пользовательской дате", - "Advanced": "Продвинутый", - "End": "Окончание", - "Trigger variables": "Контекст триггера", - "Node result": "Результат Узла", - "Constant": "Константа", - "Boolean": "Логический", - "String": "Строка", - "Arithmetic calculation": "Арифметическое вычисление", - "String operation": "Операция со строкой", - "On going": "Непрерывный", - "Succeeded": "Успешный", - "Failed": "Неудачный", - "Canceled": "Прерванный", - "This node contains branches, deleting will also be preformed to them, are you sure?": "Этот узел содержит ветки, к ним тоже будет произведено удаление, вы уверены?", - "Control": "Управление", - "Collection operations": "Операции с Коллекцией", - "Node type": "Тип Узла", - "Calculation": "Вычисление", - "Configure calculation": "Настроить вычисление", - "Calculation result": "Результат вычисления", - "True": "Истина", - "False": "Ложь", - "Condition": "Условие", - "Mode": "Режим", - "Continue when \"Yes\"": "Продолжить когда \"Да\"", - "Branch into \"Yes\" and \"No\"": "Разветвление на \"Да\" and \"Нет\"", - "Conditions": "Условия", - "Create record": "Создать запись", - "Update record": "Обновить запись", - "Query record": "Запрос записи", - "Multiple records": "Множество записей", - "Please select collection first": "Выберите сначала Коллекцию, пожалуйста", - "Only update records matching conditions": "Обновлять только записи, соответствующие условиям", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Поля, которым не присвоено значение, будут установлены на значение по умолчанию, а поля, не имеющие значения по умолчанию, будут установлены на null.", - "Trigger in executed workflow cannot be modified": "Триггер в выполняемом рабочем процессе не может быть изменен", - "Node in executed workflow cannot be modified": "Узел в выполняемом рабочем процессе не может быть изменен" -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/tr-TR.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/tr-TR.json deleted file mode 100644 index 8b8dfafcc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/tr-TR.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "Workflow": "İş Akışı", - "Execution history": "Yürütme Geçmişi", - "Trigger type": "Tetikleme türü", - "Status": "Durum", - "On": "Aç", - "Off": "Kapa", - "Version": "Sürüm", - "Copy to new version": "Yeni sürüme kopyala", - "Load failed": "Yükleme başarısız", - "Trigger": "Tetikle", - "Collection event": "Koleksiyon etkinliği", - "Trigger on": "Tetikleme açık", - "After record added": "Kayıt eklendikten sonra", - "After record updated": "Kayıt güncellendikten sonra", - "After record added or updated": "Kayıt eklendikten veya güncellendikten sonra", - "After record deleted": "Kayıt silindikten sonra", - "Changed fields": "Değiştirilen alanlar", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Yalnızca seçilen alanlardan biri değiştiğinde tetiklenir. Seçili değilse, herhangi bir alan değiştiğinde tetikleneceği anlamına gelir. Kayıt eklendiğinde veya silindiğinde, herhangi bir alan değiştirilmiş olarak kabul edilir.", - "Only triggers when match conditions": "Yalnızca eşleşme koşulları olduğunda tetiklenir", - "Schedule event": "Etkinlik planla", - "Trigger mode": "Tetikleme modu", - "Based on certain date": "Belirli bir tarihe göre", - "Based on date field of collection": "Koleksiyonun tarih alanına göre", - "Starts on": "Başlangıç", - "Ends on": "Bitiş", - "Exactly at": "Tam zamanı", - "Repeat mode": "Tekrarlama modu", - "Repeat limit": "Tekrarlama limiti", - "No limit": "Limit yok", - "Seconds": "Saniye", - "Minutes": "Dakika", - "Hours": "Saat", - "Days": "Gün", - "Weeks": "Hafta", - "Months": "Ay", - "No repeat": "Tekrar yok", - "Every": "Her", - "By minute": "Dakikada", - "By hour": "Saatte", - "By day": "Günde", - "By week": "Haftada", - "By month": "Ayda", - "By field": "Alanda", - "By custom date": "Özel tarihe göre", - "Advanced": "Gelişmiş", - "End": "Son", - "Trigger variables": "Tetikleyici bağlamı", - "Node result": "Düğüm sonucu", - "Constant": "Devamlı", - "Boolean": "Boolean", - "String": "String", - "Arithmetic calculation": "Aritmetik hesaplama", - "String operation": "String operation", - "On going": "Devam eden", - "Succeeded": "Başarılı", - "Failed": "Başarısız", - "Canceled": "İptal edilen", - "This node contains branches, deleting will also be preformed to them, are you sure?": "Bu düğüm başka içeriklerle bağlantı içeriyor, silme işlemini onaylarsanız o bağlantılarda silinecek, emin misiniz?", - "Control": "Kontrol", - "Collection operations": "Koleksiyon operasyonları", - "Node type": "Düğüm türü", - "Calculation": "Hesaplama", - "Configure calculation": "Hesaplamayı yapılandır", - "Calculation result": "Hesaplama sonucu", - "True": "Doğru", - "False": "Yanlış", - "Condition": "Koşul", - "Mode": "Tür", - "Continue when \"Yes\"": "\"Evet\" durumunda devam", - "Branch into \"Yes\" and \"No\"": "\"Evet\" ve \"Hayır\" olarak dallandırın", - "Conditions": "Koşullar", - "Create record": "Kayıt oluştur", - "Update record": "Kayıt güncelle", - "Query record": "Sorgu kaydı", - "Multiple records": "Birden çok kayıt", - "Please select collection first": "Lütfen önce koleksiyonu seçin", - "Only update records matching conditions": "Yalnızca koşullarla eşleşen kayıtları güncelleyin", - "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Değer atanmamış alanlar varsayılan değere, varsayılan değeri olmayan alanlar ise null olarak ayarlanır.", - "Trigger in executed workflow cannot be modified": "Yürütülen iş akışındaki tetikleyici değiştirilemez", - "Node in executed workflow cannot be modified": "Yürütülen iş akışındaki düğüm değiştirilemez" -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json deleted file mode 100644 index 4a074ac09..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "Workflow": "工作流", - "Execution history": "执行历史", - "Clear all executions": "清除所有执行记录", - "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": - "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?", - "Executed": "已执行", - "Sync enabled status of all workflows from database": "从数据库同步所有工作流的启用状态", - "Trigger type": "触发方式", - "Status": "状态", - "On": "启用", - "Off": "停用", - "Version": "版本", - "Copy to new version": "复制到新版本", - "Duplicate": "复制", - "Duplicate to new workflow": "复制为新工作流", - "Delete a main version will cause all other revisions to be deleted too.": "删除主版本将导致其他版本一并被删除。", - "Loading": "加载中", - "Load failed": "加载失败", - "Use transaction": "启用事务", - "Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": - "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。", - "Auto delete history when execution is on end status": "执行结束后自动删除对应状态的历史记录", - "Trigger": "触发器", - "Trigger variables": "触发器变量", - "Trigger data": "触发数据", - "Trigger time": "触发时间", - "Triggered at": "触发时间", - - "Execute mode": "执行模式", - "Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.": "基于触发类型异步或同步执行工作流,创建后不可更改。", - "Asynchronously": "异步", - "Synchronously": "同步", - "Will be executed in the background as a queued task.": "将作为队列任务在后台执行。", - "For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.": - "适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。", - - "Bind workflows": "绑定工作流", - "Workflow will be triggered before or after submitting succeeded based on workflow type.": "工作流会基于其类型在提交成功之前或之后触发。", - "Workflow will be triggered directly once the button clicked, without data saving.": "按钮点击后直接触发工作流,但不会保存数据。", - "Workflow will be triggered before deleting succeeded.": "删除成功之前触发工作流。", - "Submit to workflow": "提交至工作流", - "Add workflow": "添加工作流", - "Select workflow": "选择工作流", - "Trigger data context": "触发数据上下文", - "Full form data": "完整表单数据", - "Select context": "选择上下文", - "Collection event": "数据表事件", - "Event will be triggered on collection data row created, updated or deleted.": - "当数据表中的数据被新增、更新或删除时触发。", - "Trigger on": "触发时机", - "After record added": "新增数据后", - "After record updated": "更新数据后", - "After record added or updated": "新增或更新数据后", - "After record deleted": "删除数据后", - "Changed fields": "发生变动的字段", - "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": - "只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增或删除数据时,任意字段都被认为发生变动。", - "Only triggers when match conditions": "满足以下条件才触发", - "Preload associations": "预加载关联数据", - "Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": - "请选中需要在后续节点中被访问的关系字段。超过两层的对多关联可能会导致性能问题,请谨慎使用。", - "Schedule event": "定时任务", - "Event will be scheduled and triggered base on time conditions.": "基于时间条件进行定时触发的事件。", - "Trigger mode": "触发模式", - "Based on certain date": "自定义时间", - "Based on date field of collection": "根据数据表时间字段", - "Starts on": "开始于", - "Ends on": "结束于", - "No end": "不结束", - "Exactly at": "当时", - "Repeat mode": "重复模式", - "Repeat limit": "重复次数", - "No limit": "不限", - "Seconds": "秒", - "Minutes": "分钟", - "Hours": "小时", - "Days": "天", - "Weeks": "周", - "Months": "月", - "No repeat": "不重复", - "Every": "每", - "By minute": "按分钟", - "By hour": "按小时", - "By day": "按天", - "By week": "按周", - "By month": "按月", - "By field": "数据表字段", - "By custom date": "自定义时间", - "Advanced": "高级模式", - "End": "结束", - "Node result": "节点数据", - "Variable key of node": "节点变量标识", - "Scope variables": "局域变量", - - "Operator": "运算符", - "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.": - "基于计算引擎对一个表达式进行计算,并获得一个值作为结果。表达式中可以使用上游节点里的变量。", - "String operation": "字符串", - "System variables": "系统变量", - "System time": "系统时间", - "Date variables": "日期变量", - - "Executed at": "执行于", - "Queueing": "队列中", - "On going": "进行中", - "Resolved": "完成", - "Pending": "待处理", - "Failed": "失败", - "Error": "出错", - "Aborted": "已终止", - "Canceled": "已取消", - "Rejected": "已拒绝", - "Retry needed": "需重试", - - "Triggered but still waiting in queue to execute.": "已触发但仍在队列中等待执行。", - "Started and executing, maybe waiting for an async callback (manual, delay etc.).": - "已开始执行,可能在等待异步回调(人工、延时等)。", - "Successfully finished.": "成功完成。", - "Failed to satisfy node configurations.": "未满足节点配置造成的失败。", - "Some node meets error.": "某个节点出错。", - "Running of some node was aborted by program flow.": "某个节点被程序流程终止。", - "Manually canceled whole execution when waiting.": "等待时被手动取消整个执行。", - "Rejected from a manual node.": "被人工节点拒绝继续。", - "General failed but should do another try.": "执行失败,需重试。", - - "Cancel the execution": "取消执行", - "Are you sure you want to cancel the execution?": "确定要取消该执行吗?", - - "Operations": "操作", - "This node contains branches, deleting will also be preformed to them, are you sure?": - "节点包含分支,将同时删除其所有分支下的子节点,确定继续?", - "Control": "流程控制", - "Collection operations": "数据表操作", - "Manual": "人工处理", - "Extended types": "扩展类型", - "Node type": "节点类型", - "Calculation": "运算", - "Calculation engine": "运算引擎", - "Basic": "基础", - "Calculation expression": "运算表达式", - "Expression syntax error": "表达式语法错误", - "Syntax references: ": "语法参考:", - "Calculation result": "运算结果", - "True": "真", - "False": "假", - "concat": "连接", - "Condition": "条件判断", - "Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": - "基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。", - "Mode": "模式", - "Continue when \"Yes\"": "“是”则继续", - "Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续", - "Condition expression": "条件表达式", - "Create record": "新增数据", - "Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": - "向一个数据表中添加新的数据。可以使用上游节点里的变量为字段赋值。", - "Update record": "更新数据", - "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": - "更新一个数据表中的数据。可以使用上游节点里的变量作为查询条件和数据值。", - "Update mode": "更新模式", - "Update in a batch": "批量更新", - "Update one by one": "逐条更新", - "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": - "一次性更新所有符合条件的数据,在数据量较大时有比较好的性能;但被更新的数据不会触发其他工作流,也不会记录更新日志。", - "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": - "被更新的数据可以再次触发其他工作流,也会记录更新日志;但通常只适用于数条或数十条数据,否则会有性能问题。", - "Query record": "查询数据", - "Query records from a collection. You can use variables from upstream nodes as query conditions.": - "查询一个数据表中的数据。可以使用上游节点里的变量作为查询条件。", - "Allow multiple records as result": "允许结果是多条数据", - "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": - "选中后,当查询结果有多条记录时,会返回数组作为结果,可以使用循环节点对它逐条操作;否则,仅返回一条数据。", - "Exit when query result is null": "查询结果为空时,退出流程", - "Please select collection first": "请先选择数据表", - "Only update records matching conditions": "只更新满足条件的数据", - "Please add at least one condition": "请添加至少一个条件", - "Unassigned fields will be set to default values, and those without default values will be set to null.": - "未被赋值的字段将被设置为默认值,没有默认值的设置为空值。", - - "Delete record": "删除数据", - "Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.": - "删除一个数据表中的数据。可以使用上游节点里的变量作为过滤条件。所有满足条件的数据都将被删除。", - - "Executed workflow cannot be modified": "已经执行过的工作流不能被修改", - "Can not delete": "无法删除", - "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": - "该节点的执行结果已被其他节点({{nodes}})引用,删除前请先移除引用。", - - "End process": "结束流程", - "End the process immediately, with set status.": "以设置的状态立即结束流程。", - "End status": "结束状态", - "Succeeded": "成功" -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts deleted file mode 100644 index 3d38146d5..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { Migration } from '@nocobase/server'; - -const VTypes = { - constant(operand) { - return operand.value; - }, - $jobsMapByNodeId({ options }) { - const paths = [options.nodeId, options.path].filter(Boolean); - return paths ? `{{$jobsMapByNodeId.${paths.join('.')}}}` : null; - }, - $context({ options }) { - return `{{$context.${options.path}}}`; - }, -}; - -function migrateConfig(config) { - if (Array.isArray(config)) { - return config.map((item) => migrateConfig(item)); - } - if (typeof config !== 'object') { - return config; - } - if (!config) { - return config; - } - if (config.type && VTypes[config.type] && (config.options || config.value)) { - return VTypes[config.type](config); - } - return Object.keys(config).reduce((memo, key) => ({ ...memo, [key]: migrateConfig(config[key]) }), {}); -} - -export default class extends Migration { - appVersion = '<=0.8.0-alpha.13'; - async up() { - const match = await this.app.version.satisfies('<=0.8.0-alpha.13'); - if (!match) { - return; - } - const NodeRepo = this.context.db.getRepository('flow_nodes'); - await this.context.db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: { - $or: ['calculation', 'condition'], - }, - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce((promise, node) => { - return node.update( - { - config: migrateConfig(node.config), - }, - { - transaction, - }, - ); - }, Promise.resolve()); - }); - } - - async down() {} -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts deleted file mode 100644 index b76d75f7e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { Migration } from '@nocobase/server'; - -const EJS_RE = /"?<%=\s*(ctx|node)([\w\.\[\]-]+)\s*.*%>"?/; - -function migrateData(input) { - if (typeof input !== 'string') { - return input; - } - if (!input) { - return null; - } - const typeMap = { - ctx: '$context', - node: '$jobsMapByNodeId', - }; - return input.replace(EJS_RE, (_, type, path) => { - if (type === 'ctx') { - return `"{{$context${path}}}"`; - } - if (type === 'node') { - return `"{{$jobsMapByNodeId${path.replace('[', '.').replace(']', '.').replace(/\.$/, '')}}}"`; - } - return _; - }); -} - -export default class extends Migration { - appVersion = '<0.9.0-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.0-alpha.3'); - if (!match) { - return; - } - - const NodeRepo = this.context.db.getRepository('flow_nodes'); - - await this.context.db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'request', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(async () => { - if (typeof node.config.data !== 'string') { - return; - } - let data = migrateData(node.config.data); - try { - data = JSON.parse(node.config.data); - return node.update( - { - config: { - ...node.config, - data, - }, - }, - { - transaction, - }, - ); - } catch (error) { - console.error( - `flow_node #${node.id} config migrating failed! you should migrate its format from ejs to json-templates manually in your db.`, - ); - } - }), - Promise.resolve(), - ); - }); - } - async down() {} -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts deleted file mode 100644 index 299ff9bc7..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { Migration } from '@nocobase/server'; - -function addQuote(v) { - if (typeof v !== 'string') { - return v; - } - - if (v.match(/^{{\s*([^{}]+)\s*}}$/)) { - return v; - } - - return `'${v}'`; -} - -const calculatorsMap = { - equal: '==', - '===': '==', - notEqual: '!=', - '!==': '!=', - gt: '>', - gte: '>=', - lt: '<', - lte: '<=', - add: '+', - minus: '-', - multiple: '*', - divide: '/', - mod: '%', - includes(a, b) { - return `SEARCH(${b}, ${a}) >= 0`; - }, - notIncludes(a, b) { - return `SEARCH(${b}, ${a}) < 0`; - }, - startsWith(a, b) { - return `SEARCH(${b}, ${a}) == 0`; - }, - endsWith(a, b) { - return `RIGHT(${a}, LEN(${b})) == ${b}`; - }, - notStartsWith(a, b) { - return `SEARCH(${b}, ${a}) != 0`; - }, - notEndsWith(a, b) { - return `RIGHT(${a}, LEN(${b})) != ${b}`; - }, - concat(a, b) { - return `CONCATENATE(${a}, ${b})`; - }, -}; - -function migrateConfig({ calculation, ...config }: any = {}) { - if (!calculation?.calculator || !calculation?.operands?.length) { - return config; - } - - const calculator = calculatorsMap[calculation.calculator]; - const operands = (calculator.operands ?? []).map((operand) => addQuote(operand)); - - return { - engine: 'formula.js', - expression: - typeof calculator === 'function' - ? calculator(...operands) - : operands.join(` ${calculator ?? calculation.calculator} `), - }; -} - -export default class extends Migration { - appVersion = '<0.9.0-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.0-alpha.3'); - if (!match) { - return; - } - - const NodeRepo = this.context.db.getRepository('flow_nodes'); - await this.context.db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'calculation', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - return node.update( - { - config: migrateConfig(node.config), - }, - { - transaction, - }, - ); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts deleted file mode 100644 index cf957ddc6..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Migration } from '@nocobase/server'; - -const calculatorsMap = { - equal: '==', - '===': '==', - notEqual: '!=', - '!==': '!=', - gt: '>', - gte: '>=', - lt: '<', - lte: '<=', - includes(a, b) { - return `SEARCH('${b}', '${a}') >= 0`; - }, - notIncludes(a, b) { - return `SEARCH('${b}', '${a}') < 0`; - }, - startsWith(a, b) { - return `SEARCH('${b}', '${a}') == 0`; - }, - endsWith(a, b) { - return `RIGHT('${a}', LEN('${b}')) == '${b}'`; - }, - notStartsWith(a, b) { - return `SEARCH('${b}', '${a}') != 0`; - }, - notEndsWith(a, b) { - return `RIGHT('${a}', LEN('${b}')) != '${b}'`; - }, -}; - -function migrateConfig({ group: { type = 'and', calculations = [] } }) { - return { - group: { - type, - calculations: calculations.map(({ calculator = '===', operands = [] }: any) => { - return `(${operands - .map((operand) => (operand?.group ? migrateConfig(operand) : operand)) - .join(` ${calculatorsMap[calculator]} `)})`; - }), - }, - }; -} - -export default class extends Migration { - appVersion = '<0.9.0-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.0-alpha.3'); - if (!match) { - return; - } - - const NodeRepo = this.context.db.getRepository('flow_nodes'); - await this.context.db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'condition', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - return node.update( - { - config: { - ...node.config, - engine: 'basic', - // calculation: migrateConfig(node.config.calculation) - }, - }, - { - transaction, - }, - ); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts deleted file mode 100644 index f98869810..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { DataTypes } from '@nocobase/database'; - -import { Migration } from '@nocobase/server'; - -export default class extends Migration { - appVersion = '<0.9.0-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.0-alpha.3'); - if (!match) { - return; - } - - const sequelize = this.sequelize; - const queryInterface = this.queryInterface; - - const { db } = this.app; - await sequelize.transaction(async (transaction) => { - await queryInterface.changeColumn( - db.getCollection('workflows').model.getTableName(), - 'config', - { - type: DataTypes.JSON, - }, - { transaction }, - ); - await queryInterface.changeColumn( - db.getCollection('flow_nodes').model.getTableName(), - 'config', - { - type: DataTypes.JSON, - }, - { transaction }, - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts deleted file mode 100644 index ad5d59f43..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { Migration } from '@nocobase/server'; -import { uid } from '@nocobase/utils'; -import lodash from 'lodash'; - -function findSchema(root, filter, onlyLeaf = false) { - const result = []; - - if (!root) { - return result; - } - - if (filter(root) && (!onlyLeaf || !root.properties)) { - result.push(root); - return result; - } - - if (root.properties) { - Object.keys(root.properties).forEach((key) => { - result.push(...findSchema(root.properties[key], filter)); - }); - } - return result; -} - -function findParent(root, node) { - return findSchema(root, (item) => item.properties && Object.values(item.properties).includes(node))[0]; -} - -// 1. all form blocks combine into one, at first form block position -// 2. add fields move to the form -// 3. remove all other form blocks except first (should remove ancestors till grid) -// 4. add 'x-interface-options' property to all fields as collection field -// 5. make collection fields decorator as `FormCollectionProvider` for form block -// 6. add form component wrapper for form grid -// 7. move action footer to form block -function migrateConfig({ schema = {}, actions = [] }: { schema: any; actions: number[] }): object { - const { blocks, collection } = schema; - if (!blocks) { - return { - forms: {}, - }; - } - const root = { properties: blocks }; - const formBlocks = findSchema(root, (item) => { - return ( - item['x-component'] === 'CardItem' && - item['x-designer'] === 'SimpleDesigner' && - item.properties.grid['x-initializer'] === 'AddFormField' - ); - }); - if (!formBlocks.length) { - return { - schema: blocks, - forms: {}, - }; - } - - // 1. - formBlocks.forEach((formBlock, i) => { - const formItems = findSchema( - formBlock, - (item) => { - return item['x-component'] === 'CollectionField' && item['x-decorator'] === 'FormItem'; - }, - true, - ); - // 4. - formItems.forEach((item) => { - Object.assign(item, { - 'x-interface-options': collection.fields.find((field) => field.name === item.name), - }); - }); - // skip first form block - if (!i) { - return; - } - // 2. - Object.assign(formBlocks[0].properties.grid.properties, formBlock.properties.grid.properties); - - // 3. - const col = findParent(root, formBlock); - const row = findParent(root, col); - delete row.properties[col.name]; - if (!Object.keys(row.properties).length) { - const grid = findParent(root, row); - delete grid.properties[row.name]; - } - }); - - // 5. - const [formBlock] = formBlocks; - Object.assign(formBlock, { - 'x-decorator': 'FormCollectionProvider', - 'x-decorator-props': { - collection, - }, - 'x-component-props': { - title: '{{t("Form")}}', - }, - 'x-designer-props': { - type: 'customForm', - }, - }); - - const formId = uid(); - // 6. - const newFormBlock = { - [formId]: { - type: 'void', - 'x-component': 'FormV2', - 'x-use-component-props': 'useFormBlockProps', - properties: { - grid: Object.assign(formBlock.properties.grid, { - 'x-initializer': 'workflowManual:customForm:configureFields', - }), - // 7. - actions: { - type: 'void', - 'x-decorator': 'ActionBarProvider', - 'x-component': 'ActionBar', - 'x-component-props': { - layout: 'one-column', - style: { - marginTop: '1.5em', - }, - }, - 'x-initializer': 'workflowManual:form:configureActions', - properties: schema.actions, - }, - }, - }, - }; - delete formBlock.properties.grid; - Object.assign(formBlock.properties, newFormBlock); - - return { - schema: blocks, - forms: { - [formId]: { - type: 'custom', - title: '{{t("Form")}}', - actions, - collection, - }, - }, - }; -} - -function migrateUsedConfig(config, manualForms) { - Object.keys(config).forEach((key) => { - const valueType = typeof config[key]; - if (valueType === 'string') { - config[key] = config[key].replace(/{{\s*\$jobsMapByNodeId\.(\d+)(\.[^}]+)?\s*}}/g, (matched, id, path) => { - if (!manualForms[id]) { - return matched; - } - return `{{$jobsMapByNodeId.${id}.${manualForms[id]}${path || ''}}}`; - }); - } else if (valueType === 'object' && config[key]) { - migrateUsedConfig(config[key], manualForms); - } - }); - return config; -} - -export default class extends Migration { - appVersion = '<0.9.1-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.1-alpha.3'); - if (!match) { - return; - } - const { db } = this.context; - const NodeRepo = db.getRepository('flow_nodes'); - const UserJobRepo = db.getRepository('users_jobs'); - await db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'manual', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - const { forms, schema, actions, ...config } = node.config; - if (forms) { - return; - } - return node.update( - { - config: { - ...config, - ...migrateConfig({ schema, actions }), - }, - }, - { - silent: true, - transaction, - }, - ); - }), - Promise.resolve(), - ); - - const usersJobs = await UserJobRepo.find({ - filter: { - nodeId: nodes.map((item) => item.id), - }, - appends: ['job', 'node'], - transaction, - }); - // update all results - await usersJobs.reduce( - (promise, userJob) => - promise.then(async () => { - const { result, job, node } = userJob; - const { forms } = node.config; - const [formId] = Object.keys(forms); - if (result) { - await userJob.update( - { - result: { [formId]: result }, - }, - { - silent: true, - transaction, - }, - ); - } - if (job.result) { - await job.update( - { - result: { [formId]: result }, - }, - { - silent: true, - transaction, - }, - ); - } - }), - Promise.resolve(), - ); - - const usedNodes = await NodeRepo.find({ - filter: { - type: { - $notIn: ['delay', 'parallel'], - }, - }, - transaction, - }); - - const nodeForms = {}; - nodes.forEach((node) => { - const [form] = Object.keys(node.config.forms); - if (form) { - nodeForms[node.id] = form; - } - }); - - await usedNodes.reduce( - (promise, node) => - promise.then(async () => { - await node.update( - { - config: migrateUsedConfig(lodash.cloneDeep(node.config ?? {}), nodeForms), - }, - { - silent: true, - transaction, - }, - ); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts deleted file mode 100644 index e1e97cddc..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { Migration } from '@nocobase/server'; -import { uid } from '@nocobase/utils'; - -function findSchema(root, filter, onlyLeaf = false) { - const result = []; - - if (!root) { - return result; - } - - if (filter(root) && (!onlyLeaf || !root.properties)) { - result.push(root); - return result; - } - - if (root.properties) { - Object.keys(root.properties).forEach((key) => { - result.push(...findSchema(root.properties[key], filter)); - }); - } - return result; -} - -function migrateSchema(schema = {}): object { - const root = { properties: schema }; - const collectionBlocks = findSchema(root, (item) => { - return ( - item['x-component'] === 'CardItem' && - item['x-designer'] === 'SimpleDesigner' && - item['x-decorator'] === 'CollectionProvider_deprecated' - ); - }); - - collectionBlocks.forEach((block) => { - const id = uid(); - const { grid } = block.properties; - delete block.properties.grid; - const fields = findSchema(grid, (item) => { - return item['x-decorator'] === 'FormItem'; - }); - fields.forEach((field) => { - Object.assign(field, { - 'x-component': 'CollectionField', - 'x-collection-field': `${block['x-decorator-props'].collection}.${field['x-collection-field']}`, - }); - }); - - Object.assign(block, { - 'x-decorator': 'DetailsBlockProvider', - 'x-decorator-props': { - ...block['x-decorator-props'], - dataSource: grid['x-context-datasource'], - }, - properties: { - [id]: { - type: 'void', - name: id, - 'x-component': 'FormV2', - 'x-use-component-props': 'useDetailsBlockProps', - properties: { - grid: { - type: 'void', - name: 'grid', - 'x-component': 'Grid', - 'x-initializer': 'details:configureFields', - properties: grid.properties, - }, - }, - }, - }, - }); - }); - - const customForms = findSchema(root, (item) => { - return item['x-decorator'] === 'FormCollectionProvider'; - }); - customForms.forEach((item) => { - Object.assign(item, { - 'x-decorator': 'CustomFormBlockProvider', - }); - }); - - const customFormFields = findSchema(root, (item) => { - return item['x-interface-options']; - }); - customFormFields.forEach((field) => { - const options = field['x-interface-options']; - delete field['x-interface-options']; - Object.assign(field, { - 'x-component-props': { - field: options, - }, - }); - }); - - return schema; -} - -export default class extends Migration { - appVersion = '<0.9.4-alpha.3'; - async up() { - const match = await this.app.version.satisfies('<0.9.4-alpha.3'); - if (!match) { - return; - } - const { db } = this.context; - const NodeRepo = db.getRepository('flow_nodes'); - await NodeRepo.collection.sync(); - await db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'manual', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - const { schema, ...config } = node.config; - node.set('config', { - ...config, - schema: { - ...migrateSchema(schema), - }, - }); - node.changed('config', true); - return node.save({ - silent: true, - transaction, - }); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts deleted file mode 100644 index 230215beb..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Migration } from '@nocobase/server'; - -function findSchema(root, filter, onlyLeaf = false) { - const result = []; - - if (!root) { - return result; - } - - if (filter(root) && (!onlyLeaf || !root.properties)) { - result.push(root); - return result; - } - - if (root.properties) { - Object.keys(root.properties).forEach((key) => { - result.push(...findSchema(root.properties[key], filter)); - }); - } - return result; -} - -function migrateConfig(config): object { - const { forms = {}, schema = {} } = config; - const root = { properties: schema }; - Object.keys(forms).forEach((key) => { - const form = forms[key]; - const formSchema = findSchema(root, (item) => item.name === key); - const actions = findSchema(formSchema[0], (item) => item['x-component'] === 'Action'); - form.actions = actions.map((action) => { - action['x-designer'] = 'ManualActionDesigner'; - action['x-action-settings'] = {}; - delete action['x-action']; - return { - status: action['x-decorator-props'].value, - values: {}, - key: action.name, - }; - }); - }); - - return config; -} - -export default class extends Migration { - appVersion = '<0.11.0-alpha.2'; - async up() { - const match = await this.app.version.satisfies('<0.11.0-alpha.2'); - if (!match) { - return; - } - const { db } = this.context; - const NodeRepo = db.getRepository('flow_nodes'); - await db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - filter: { - type: 'manual', - }, - transaction, - }); - console.log('%d nodes need to be migrated.', nodes.length); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - node.set('config', { - ...migrateConfig(node.config), - }); - node.changed('config', true); - return node.save({ - silent: true, - transaction, - }); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts deleted file mode 100644 index 5b58d0e59..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Migration } from '@nocobase/server'; - -export default class extends Migration { - appVersion = '<0.14.0-alpha.8'; - async up() { - const match = await this.app.version.satisfies('<0.14.0-alpha.8'); - if (!match) { - return; - } - const { db } = this.context; - const WorkflowRepo = db.getRepository('workflows'); - await db.sequelize.transaction(async (transaction) => { - const workflows = await WorkflowRepo.find({ - transaction, - }); - - await workflows.reduce( - (promise, workflow) => - promise.then(() => { - if (!workflow.useTransaction) { - return; - } - workflow.set('options', { - useTransaction: workflow.get('useTransaction'), - }); - workflow.changed('options', true); - return workflow.save({ - silent: true, - transaction, - }); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts deleted file mode 100644 index 44a6bd94e..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Migration } from '@nocobase/server'; -import { uid } from '@nocobase/utils'; -import { DataTypes } from 'sequelize'; - -function migrateNodeConfig(config = {}, nodesMap) { - Object.keys(config).forEach((key) => { - const valueType = typeof config[key]; - if (valueType === 'string') { - config[key] = config[key] - .replace(/{{\s*\$jobsMapByNodeId\.(\d+)(\.[^}]+)?\s*}}/g, (matched, id, path) => { - return `{{$jobsMapByNodeKey.${nodesMap[id].key}${path || ''}}}`; - }) - .replace(/{{\s*\$scopes\.(\d+)(\.[^}]+)?\s*}}/g, (matched, id, path) => { - return `{{$scopes.${nodesMap[id].key}${path || ''}}}`; - }); - } else if (valueType === 'object' && config[key]) { - migrateNodeConfig(config[key], nodesMap); - } - }); - return config; -} - -export default class extends Migration { - appVersion = '<0.14.0-alpha.8'; - async up() { - const match = await this.app.version.satisfies('<0.14.0-alpha.8'); - if (!match) { - return; - } - const { db } = this.context; - - const NodeCollection = db.getCollection('flow_nodes'); - const NodeRepo = NodeCollection.repository; - const tableName = NodeCollection.getTableNameWithSchema(); - await db.sequelize.transaction(async (transaction) => { - if (!(await NodeCollection.getField('key').existsInDb())) { - await this.queryInterface.addColumn(tableName, 'key', DataTypes.STRING, { - transaction, - }); - } - const nodes = await NodeRepo.find({ - transaction, - }); - - const nodesMap = nodes.reduce((map, node) => { - map[node.id] = node; - if (!node.get('key')) { - node.set('key', uid()); - } - return map; - }, {}); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - node.set('config', migrateNodeConfig(node.config, nodesMap)); - node.changed('config', true); - return node.save({ - silent: true, - transaction, - }); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts deleted file mode 100644 index 298c0f4ff..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Migration } from '@nocobase/server'; - -export default class extends Migration { - appVersion = '<0.17.0-alpha.4'; - async up() { - const match = await this.app.version.satisfies('<0.17.0-alpha.4'); - if (!match) { - return; - } - const { db } = this.context; - - const NodeRepo = db.getRepository('flow_nodes'); - await db.sequelize.transaction(async (transaction) => { - const nodes = await NodeRepo.find({ - transaction, - }); - - await nodes.reduce( - (promise, node) => - promise.then(() => { - if (node.type === 'calculation' && node.config.dynamic) { - node.set({ - type: 'dynamic-calculation', - config: { - expression: node.config.dynamic, - scope: node.config.scope, - }, - }); - node.changed('config', true); - } - - return node.save({ - silent: true, - transaction, - }); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts deleted file mode 100644 index 2287eb21d..000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Migration } from '@nocobase/server'; - -export default class extends Migration { - appVersion = '<0.19.0-alpha.4'; - on = 'afterSync'; - async up() { - const { db } = this.context; - - const JobRepo = db.getRepository('jobs'); - await db.sequelize.transaction(async (transaction) => { - const jobs = await JobRepo.find({ - appends: ['node.key'], - }); - await jobs.reduce( - (promise, job) => - promise.then(() => { - if (job.nodeKey) { - return; - } - return job.update( - { - nodeKey: job.node?.key, - }, - { - silent: true, - transaction, - }, - ); - }), - Promise.resolve(), - ); - }); - } -} diff --git a/packages/plugins/@nocobase/plugin-charts/.npmignore b/packages/plugins/@tachybase/plugin-mobile-client/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/.npmignore rename to packages/plugins/@tachybase/plugin-mobile-client/.npmignore diff --git a/packages/plugins/@nocobase/plugin-charts/client.d.ts b/packages/plugins/@tachybase/plugin-mobile-client/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/client.d.ts rename to packages/plugins/@tachybase/plugin-mobile-client/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-charts/client.js b/packages/plugins/@tachybase/plugin-mobile-client/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/client.js rename to packages/plugins/@tachybase/plugin-mobile-client/client.js diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/index.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/index.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/index.md diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/installation.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/installation.md similarity index 75% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/installation.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/installation.md index 23dc4aa37..ca35773e2 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/installation.md +++ b/packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/installation.md @@ -3,7 +3,7 @@ ## Installation ```bash -yarn add @nocobase/plugin-mobile-client +yarn add @tachybase/plugin-mobile-client ``` ## Activate the plugin diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/tabs.json b/packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/tabs.json rename to packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/tabs.json diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/usage.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/en-US/usage.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/en-US/usage.md diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/index.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/index.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/index.md diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/installation.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/installation.md similarity index 72% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/installation.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/installation.md index 9c3854a6d..b4c246808 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/installation.md +++ b/packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/installation.md @@ -3,7 +3,7 @@ ## 安装 ```bash -yarn add @nocobase/plugin-mobile-client +yarn add @tachybase/plugin-mobile-client ``` ## 激活插件 diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/tabs.json b/packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/tabs.json rename to packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/tabs.json diff --git a/packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/usage.md b/packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/docs/zh-CN/usage.md rename to packages/plugins/@tachybase/plugin-mobile-client/docs/zh-CN/usage.md diff --git a/packages/plugins/@nocobase/plugin-mobile-client/package.json b/packages/plugins/@tachybase/plugin-mobile-client/package.json similarity index 71% rename from packages/plugins/@nocobase/plugin-mobile-client/package.json rename to packages/plugins/@tachybase/plugin-mobile-client/package.json index 23444a6e2..5671bd328 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/package.json +++ b/packages/plugins/@tachybase/plugin-mobile-client/package.json @@ -1,15 +1,14 @@ { - "name": "@nocobase/plugin-mobile-client", + "name": "@tachybase/plugin-mobile-client", "displayName": "Mobile client", "version": "0.21.24", "description": "Provides the ability to configure mobile pages.", - "homepage": "https://docs.nocobase.com/handbook/mobile-client", - "license": "AGPL-3.0", + "license": "Apache-2.0", "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/schema": "workspace:*", "@types/react": "~18.2.73", "@types/react-dom": "~18.2.23", "ahooks": "3.x", @@ -31,7 +30,5 @@ "@nocobase/utils": "workspace:*" }, "description.zh-CN": "提供移动端页面配置的能力。", - "displayName.zh-CN": "移动端", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1", - "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile-client" + "displayName.zh-CN": "移动端" } diff --git a/packages/plugins/@nocobase/plugin-charts/server.d.ts b/packages/plugins/@tachybase/plugin-mobile-client/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/server.d.ts rename to packages/plugins/@tachybase/plugin-mobile-client/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-charts/server.js b/packages/plugins/@tachybase/plugin-mobile-client/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/server.js rename to packages/plugins/@tachybase/plugin-mobile-client/server.js diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/MobileClientProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/MobileClientProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/App.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/App.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/Interface.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/Interface.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/configuration/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/injects.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/injects.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/native-call.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/bridge/native-call.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/common/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/common/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/common/page.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/common/page.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx index 92f76e5e9..80462a073 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx @@ -1,6 +1,6 @@ import { MenuOutlined } from '@ant-design/icons'; -import { useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { SchemaSettingsDropdown, SchemaSettingsSwitchItem, useDesignable } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx index 052507160..4e32eca97 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { cx, SchemaComponent, SortableItem, useDesigner, useToken } from '@nocobase/client'; import React, { useEffect } from 'react'; import { Navigate, useLocation, useNavigate, useParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/container/style.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx index 5e4ec3e05..3524fac75 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx @@ -1,5 +1,5 @@ import { Switch } from '@formily/antd-v5'; -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { GeneralSchemaDesigner, SchemaSettingsModalItem } from '@nocobase/client'; import React from 'react'; import { useTranslation } from '../../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx index ff348575d..30eaa6aa0 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx @@ -1,4 +1,4 @@ -import { useField } from '@nocobase/schema'; +import { useField } from '@tachybase/schema'; import { cx, SortableItem, useCompile, useDesigner, useDocumentTitle, useToken } from '@nocobase/client'; import { NavBar, NavBarProps } from 'antd-mobile'; import React, { useEffect, useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/header/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx index adb21eb30..8be24989a 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx @@ -1,5 +1,5 @@ import { MenuOutlined } from '@ant-design/icons'; -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { SchemaSettingsDropdown, SchemaSettingsRemove, useDesignable } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx index 228c639ac..cec81b366 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, Icon, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx index 1002895a8..0a35cf550 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { cx, DndContext, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx index e86742a08..451549e67 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx @@ -1,6 +1,6 @@ import { MenuOutlined } from '@ant-design/icons'; -import { useField, useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { SchemaSettingsDropdown, SchemaSettingsSwitchItem, useDesignable } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx index 12282111a..e979e5791 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx @@ -1,4 +1,4 @@ -import { RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { ActionBarProvider, FilterBlockProvider, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/page/style.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx index 5900a4fdf..77756db1f 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { css, cx, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx index 3926d52f5..3d874528e 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; import { css, cx, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/helpers/index.ts similarity index 91% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/helpers/index.ts index 6239ca8de..eb759ac49 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/helpers/index.ts @@ -1,5 +1,5 @@ -import { ISchema, Schema } from '@nocobase/schema'; -import { uid } from '@nocobase/schema'; +import { ISchema, Schema } from '@tachybase/schema'; +import { uid } from '@tachybase/schema'; export const gridItemWrap = (schema: ISchema) => { return { type: 'void', diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts similarity index 92% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts index 9d9771927..6f7a408f7 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts @@ -1,4 +1,4 @@ -import { useField, useFieldSchema } from '@nocobase/schema'; +import { useField, useFieldSchema } from '@tachybase/schema'; import { useDesignable } from '@nocobase/client'; import lodash from 'lodash'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/initializers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/initializers/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/scopes/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/scopes/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/devices/iOS6.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/devices/iOS6.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/devices/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/devices/index.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/router/Application.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/router/Application.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/router/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/client/router/index.ts diff --git a/packages/plugins/@nocobase/plugin-charts/src/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/src/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-mobile-client/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-mobile-client/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-mobile-client/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-mobile-client/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-mobile-client/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-mobile-client/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-mobile-client/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-charts/src/server/index.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/server/routes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts rename to packages/plugins/@tachybase/plugin-mobile-client/src/server/routes.ts diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/client.d.ts b/packages/plugins/@tachybase/plugin-workflow-test/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/client.d.ts rename to packages/plugins/@tachybase/plugin-workflow-test/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/client.js b/packages/plugins/@tachybase/plugin-workflow-test/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/client.js rename to packages/plugins/@tachybase/plugin-workflow-test/client.js diff --git a/packages/plugins/@nocobase/plugin-workflow-test/e2e.d.ts b/packages/plugins/@tachybase/plugin-workflow-test/e2e.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/e2e.d.ts rename to packages/plugins/@tachybase/plugin-workflow-test/e2e.d.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/e2e.js b/packages/plugins/@tachybase/plugin-workflow-test/e2e.js similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/e2e.js rename to packages/plugins/@tachybase/plugin-workflow-test/e2e.js diff --git a/packages/plugins/@nocobase/plugin-workflow-test/package.json b/packages/plugins/@tachybase/plugin-workflow-test/package.json similarity index 73% rename from packages/plugins/@nocobase/plugin-workflow-test/package.json rename to packages/plugins/@tachybase/plugin-workflow-test/package.json index 8d57b6e4d..a3f93ff7e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/package.json +++ b/packages/plugins/@tachybase/plugin-workflow-test/package.json @@ -1,8 +1,8 @@ { - "name": "@nocobase/plugin-workflow-test", + "name": "@tachybase/plugin-workflow-test", "displayName": "Workflow: test kit", "version": "0.21.24", - "license": "AGPL-3.0", + "license": "Apache-2.0", "main": "dist/server/index.js", "types": "./dist/server/index.d.ts", "devDependencies": { @@ -17,6 +17,5 @@ "@nocobase/test": "workspace:*", "@nocobase/utils": "workspace:*" }, - "displayName.zh-CN": "工作流:测试工具包", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1" + "displayName.zh-CN": "工作流:测试工具包" } diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/server.d.ts b/packages/plugins/@tachybase/plugin-workflow-test/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/server.d.ts rename to packages/plugins/@tachybase/plugin-workflow-test/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/server.js b/packages/plugins/@tachybase/plugin-workflow-test/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/server.js rename to packages/plugins/@tachybase/plugin-workflow-test/server.js diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2eUtils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/e2e/e2eUtils.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/e2e/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/e2e/index.ts diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/categories.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/categories.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/comments.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/comments.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/posts.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/posts.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/replies.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/replies.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/tags.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/collections/tags.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/functions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/functions.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/instructions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/instructions.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts b/packages/plugins/@tachybase/plugin-workflow-test/src/server/triggers.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts rename to packages/plugins/@tachybase/plugin-workflow-test/src/server/triggers.ts diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/.npmignore b/packages/plugins/@tachybase/plugin-workflow/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-disable-pm-add/.npmignore rename to packages/plugins/@tachybase/plugin-workflow/.npmignore diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/README.md b/packages/plugins/@tachybase/plugin-workflow/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/README.md rename to packages/plugins/@tachybase/plugin-workflow/README.md diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/README.zh-CN.md b/packages/plugins/@tachybase/plugin-workflow/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-workflow/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-mobile-client/client.d.ts b/packages/plugins/@tachybase/plugin-workflow/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/client.d.ts rename to packages/plugins/@tachybase/plugin-workflow/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/client.js b/packages/plugins/@tachybase/plugin-workflow/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/client.js rename to packages/plugins/@tachybase/plugin-workflow/client.js diff --git a/packages/plugins/@nocobase/plugin-workflow/package.json b/packages/plugins/@tachybase/plugin-workflow/package.json similarity index 83% rename from packages/plugins/@nocobase/plugin-workflow/package.json rename to packages/plugins/@tachybase/plugin-workflow/package.json index 13c08b185..675d2dc82 100644 --- a/packages/plugins/@nocobase/plugin-workflow/package.json +++ b/packages/plugins/@tachybase/plugin-workflow/package.json @@ -1,27 +1,27 @@ { - "name": "@nocobase/plugin-workflow", + "name": "@tachybase/plugin-workflow", "displayName": "Workflow", "version": "0.21.24", "description": "A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.", "keywords": [ "Workflow" ], - "homepage": "https://docs.nocobase.com/handbook/workflow", - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "dependencies": { - "@nocobase/plugin-workflow-test": "workspace:*" + "license": "Apache-2.0", + "exports": { + ".": "./dist/server/index.js", + "./client": "./dist/client/index.js" }, + "main": "./dist/server/index.js", "devDependencies": { "@ant-design/icons": "~5.3.6", "@formily/antd-v5": "1.x", - "@nocobase/schema": "workspace:*", + "@tachybase/plugin-workflow-test": "workspace:*", "@types/ejs": "^3.1.1", + "@types/lodash": "^4.17.0", "antd": "5.16.1", "axios": "^1.6.2", "classnames": "^2.3.1", "cron-parser": "4.4.0", - "dayjs": "^1.11.8", "lodash": "4.17.21", "lru-cache": "8.0.5", "react": "~18.2.0", @@ -43,7 +43,8 @@ "@nocobase/resourcer": "workspace:*", "@nocobase/server": "workspace:*", "@nocobase/test": "workspace:*", - "@nocobase/utils": "workspace:*" + "@nocobase/utils": "workspace:*", + "@tachybase/schema": "workspace:*" }, "description.zh-CN": "一个强大的 BPM 工具,为业务自动化提供基础支持,并且可任意扩展更多的触发器和节点。", "displayName.zh-CN": "工作流", diff --git a/packages/plugins/@nocobase/plugin-mobile-client/server.d.ts b/packages/plugins/@tachybase/plugin-workflow/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/server.d.ts rename to packages/plugins/@tachybase/plugin-workflow/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/server.js b/packages/plugins/@tachybase/plugin-workflow/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/server.js rename to packages/plugins/@tachybase/plugin-workflow/server.js diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/AddButton.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/AddButton.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/Branch.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/Branch.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/CanvasContent.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/CanvasContent.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionCanvas.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionCanvas.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionContextProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionContextProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionLink.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionLink.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionPage.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionPage.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionResourceProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/ExecutionResourceProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/FlowContext.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/FlowContext.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowCanvas.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowCanvas.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowLink.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowLink.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowPage.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowPage.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowPane.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowPane.tsx index f188c84d7..7a13aef6d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/WorkflowPane.tsx @@ -8,8 +8,8 @@ import OpenDrawer from './components/OpenDrawer'; import { workflowSchema } from './schemas/workflows'; import { ExecutionStatusSelect, ExecutionStatusColumn } from './components/ExecutionStatus'; import WorkflowPlugin, { RadioWithTooltip } from '.'; -import { onFieldChange } from '@nocobase/schema'; -import { useField, useFormEffects } from '@nocobase/schema'; +import { onFieldChange } from '@tachybase/schema'; +import { useField, useFormEffects } from '@tachybase/schema'; function SyncOptionSelect(props) { const field = useField(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts index 6bd1a5657..ae21c08a0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts @@ -8,7 +8,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts index c7384084b..d624065cd 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts @@ -1,5 +1,10 @@ import { faker } from '@faker-js/faker'; -import { CreateWorkFlow, EditWorkFlow, apiCreateWorkflow, apiDeleteWorkflow } from '@nocobase/plugin-workflow-test/e2e'; +import { + CreateWorkFlow, + EditWorkFlow, + apiCreateWorkflow, + apiDeleteWorkflow, +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; test.describe('Filter', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts index 3aae8f6ae..0afb05ccf 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts @@ -15,7 +15,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts index 710d97b1e..3a7c384f3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts @@ -15,7 +15,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts index c74c1310b..25482c5ce 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts @@ -11,7 +11,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; test.describe('Configuration page to configure the Trigger node', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts index 4b31a33e0..f68e13837 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts @@ -11,7 +11,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; test.describe('Filter', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts index 98d7379e0..cd3062c37 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts @@ -13,7 +13,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts index 74caa9a8e..1980788f4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts @@ -13,7 +13,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts index f456e8b4e..702cc97bc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts @@ -14,7 +14,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts index 8713a3b1b..f92760617 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts @@ -14,7 +14,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts index 3a917faf5..0ca29b858 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts @@ -14,7 +14,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts index d4947b87c..9f79f952e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts @@ -14,7 +14,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts index 21cdb3de6..822459c9f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts @@ -10,7 +10,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts index c43bb7018..0f4a43df9 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts @@ -8,7 +8,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts index 2ef724a9a..bf5f38237 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts @@ -9,7 +9,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts index ebbcd1c2e..4a9556839 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts @@ -10,7 +10,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts index 9fb74ace6..949eaa9b0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts @@ -10,7 +10,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx index 7bfe9e769..835d45783 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { uid } from '@nocobase/schema'; +import { uid } from '@tachybase/schema'; import { CollectionProvider_deprecated, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionFieldset.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionFieldset.tsx index ccbafc23b..29925b803 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/CollectionFieldset.tsx @@ -1,5 +1,5 @@ import { CloseCircleOutlined, PlusOutlined } from '@ant-design/icons'; -import { observer, useField, useForm } from '@nocobase/schema'; +import { observer, useField, useForm } from '@tachybase/schema'; import { CollectionField, CollectionProvider_deprecated, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx index a0115e8a9..ab4dd3718 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx @@ -1,6 +1,6 @@ import React, { useMemo, useRef } from 'react'; -import { createForm } from '@nocobase/schema'; -import { useField } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { useField } from '@tachybase/schema'; import { get } from 'lodash'; import { BlockRequestContext_deprecated, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/DrawerDescription.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/DrawerDescription.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/DrawerForm.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/DrawerForm.tsx index 619e8e871..6215921c8 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/DrawerForm.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useMemo, useState } from 'react'; import { cloneDeep } from 'lodash'; -import { createForm } from '@nocobase/schema'; -import { useForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { useForm } from '@tachybase/schema'; import { ActionContextProvider, FormProvider } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/ExecutionStatus.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/ExecutionStatus.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/FieldsSelect.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/FieldsSelect.tsx index 6844ca7f4..ee62ca82b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/FieldsSelect.tsx @@ -1,4 +1,4 @@ -import { observer, useForm } from '@nocobase/schema'; +import { observer, useForm } from '@tachybase/schema'; import { Select } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/OpenDrawer.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/OpenDrawer.tsx index 8435006af..553b05e5e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/OpenDrawer.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { ActionContextProvider, SchemaComponent } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/RadioWithTooltip.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/RadioWithTooltip.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/SimpleDesigner.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/SimpleDesigner.tsx index 13494fd37..0cf6a417d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/SimpleDesigner.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { GeneralSchemaDesigner, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/StatusButton.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/StatusButton.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/ValueBlock.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/ValueBlock.tsx index ac1bcb076..e18ae86d0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/components/ValueBlock.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import { css, SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; import { parse } from '@nocobase/utils/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/components/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/components/renderEngineReference.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/components/renderEngineReference.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/constants.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/constants.tsx index 3300682bf..957041dc4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/constants.tsx @@ -94,16 +94,16 @@ export const ExecutionStatusOptionsMap = ExecutionStatusOptions.reduce( {}, ); -export const JOB_STATUS = { - PENDING: 0, - RESOLVED: 1, - FAILED: -1, - ERROR: -2, - ABORTED: -3, - CANCELED: -4, - REJECTED: -5, - RETRY_NEEDED: -6, -}; +export const enum JOB_STATUS { + PENDING = 0, + RESOLVED = 1, + FAILED = -1, + ERROR = -2, + ABORTED = -3, + CANCELED = -4, + REJECTED = -5, + RETRY_NEEDED = -6, +} export const JobStatusOptions = [ { diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/ActionTrigger.tsx similarity index 87% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/ActionTrigger.tsx index c8f4a52ed..91f17973e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/ActionTrigger.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { SchemaInitializerItemType, @@ -6,15 +6,13 @@ import { useCollectionManager_deprecated, useCompile, } from '@nocobase/client'; -import { - Trigger, - CollectionBlockInitializer, - getCollectionFieldOptions, - useWorkflowAnyExecuted, -} from '@nocobase/plugin-workflow/client'; -import { NAMESPACE, useLang } from '../locale'; +import { NAMESPACE, lang } from '../../locale'; +import { Trigger } from '../../triggers'; +import { CollectionBlockInitializer } from '../../components'; +import { getCollectionFieldOptions } from '../../variable'; +import { useWorkflowAnyExecuted } from '../../hooks'; -export default class extends Trigger { +export class ActionTrigger extends Trigger { title = `{{t("Action event", { ns: "${NAMESPACE}" })}}`; description = `{{t("Triggers after specific operations on data are submitted, such as create, update, delete, etc., or directly submitting a record to the workflow.", { ns: "${NAMESPACE}" })}}`; fieldset = { @@ -77,11 +75,11 @@ export default class extends Trigger { // eslint-disable-next-line react-hooks/rules-of-hooks const { getCollectionFields } = useCollectionManager_deprecated(); // eslint-disable-next-line react-hooks/rules-of-hooks - const langTriggerData = useLang('Trigger data'); + const langTriggerData = lang('Trigger data'); // eslint-disable-next-line react-hooks/rules-of-hooks - const langUserSubmittedForm = useLang('User submitted action'); + const langUserSubmittedForm = lang('User submitted action'); // eslint-disable-next-line react-hooks/rules-of-hooks - const langRoleSubmittedForm = useLang('Role of user submitted action'); + const langRoleSubmittedForm = lang('Role of user submitted action'); const rootFields = [ { collectionName: config.collection, diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/configuration.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/configuration.test.ts index 8c2024354..90d31521f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/configuration.test.ts @@ -10,7 +10,7 @@ import { appendJsonCollectionName, generalWithNoRelationalFields, apiGetDataSourceCount, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/workflowCRUD.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/workflowCRUD.test.ts index d94d61cd5..4ec5a7442 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/__e2e__/workflowCRUD.test.ts @@ -11,7 +11,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/index.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/index.ts index 2fcc981df..18047b209 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/action-trigger/index.ts @@ -1,10 +1,7 @@ import { Plugin, SchemaInitializerItemType } from '@nocobase/client'; -import WorkflowPlugin, { - useRecordTriggerWorkflowsActionProps, - useTriggerWorkflowsActionProps, -} from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin, { useRecordTriggerWorkflowsActionProps, useTriggerWorkflowsActionProps } from '../..'; -import ActionTrigger from './ActionTrigger'; +import { ActionTrigger } from './ActionTrigger'; const submitToWorkflowActionInitializer: SchemaInitializerItemType = { name: 'submitToWorkflow', @@ -61,7 +58,7 @@ const recordTriggerWorkflowActionLinkInitializer = { }, }; -export default class extends Plugin { +export class PluginActionTrigger extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerTrigger('action', ActionTrigger); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/AggregateInstruction.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/AggregateInstruction.tsx index 71b08e1d4..2ac1a53d9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/AggregateInstruction.tsx @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { Cascader } from 'antd'; import React, { useCallback, useEffect, useState } from 'react'; @@ -23,9 +23,9 @@ import { nodesOptions, triggerOptions, Instruction, -} from '@nocobase/plugin-workflow/client'; +} from '../..'; -import { NAMESPACE, useLang } from '../locale'; +import { NAMESPACE, lang } from '../../locale'; function matchToManyField(field): boolean { // const fieldPrefix = `${field.name}.`; @@ -396,7 +396,7 @@ export default class extends Instruction { } useInitializers(node): SchemaInitializerItemType | null { // eslint-disable-next-line react-hooks/rules-of-hooks - const resultTitle = useLang('Query result'); + const resultTitle = lang('Query result'); if (!node.config.collection) { return null; } diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/__e2e__/DataOfCollection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/__e2e__/DataOfCollection.test.ts index aca22522a..c1d3ee916 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/__e2e__/DataOfCollection.test.ts @@ -9,7 +9,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; test.describe('no filter', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/index.ts similarity index 53% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/index.ts index eae3ba742..86f7aaee0 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/aggregate/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import AggregateInstruction from './AggregateInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginAggregate extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('aggregate', AggregateInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/DelayInstruction.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/DelayInstruction.tsx index e090964cf..32ab00e3f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/DelayInstruction.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { InputNumber, Select } from 'antd'; import { css, useCompile, usePlugin } from '@nocobase/client'; -import WorkflowPlugin, { Instruction, JOB_STATUS } from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin, { Instruction, JOB_STATUS } from '../..'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; const UnitOptions = [ { value: 1_000, label: `{{t('Seconds', { ns: "workflow" })}}` }, diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/index.ts similarity index 51% rename from packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/index.ts index 2a705c474..5453de5c8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/delay/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import DelayInstruction from './DelayInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginDelay extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('delay', DelayInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicCalculation.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicCalculation.tsx index 2e267c46f..f21e744dd 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicCalculation.tsx @@ -8,8 +8,8 @@ import { WorkflowVariableInput, defaultFieldNames, useWorkflowVariableOptions, -} from '@nocobase/plugin-workflow/client'; -import { NAMESPACE, useLang } from '../locale'; +} from '../..'; +import { NAMESPACE, lang } from '../../locale'; function useDynamicExpressionCollectionFieldMatcher(field): boolean { if (!['belongsTo', 'hasOne'].includes(field.type)) { @@ -92,7 +92,7 @@ export default class extends Instruction { Component: ValueBlock.Initializer, node, // eslint-disable-next-line react-hooks/rules-of-hooks - resultTitle: useLang('Calculation result'), + resultTitle: lang('Calculation result'), }; } } diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicExpression.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicExpression.tsx index e0a7e2e0b..8ed375bb0 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/DynamicExpression.tsx @@ -1,13 +1,13 @@ -import { onFieldInputValueChange, onFormInitialValuesChange } from '@nocobase/schema'; -import { connect, mapReadPretty, observer, useField, useForm, useFormEffects } from '@nocobase/schema'; +import { onFieldInputValueChange, onFormInitialValuesChange } from '@tachybase/schema'; +import { connect, mapReadPretty, observer, useField, useForm, useFormEffects } from '@tachybase/schema'; import { Tag } from 'antd'; import React, { useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useCollectionManager_deprecated, useCompile, useRecord, Variable } from '@nocobase/client'; -import { getCollectionFieldOptions } from '@nocobase/plugin-workflow/client'; +import { getCollectionFieldOptions } from '../..'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; const InternalExpression = observer( (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/expression.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/expression.tsx index 25ebf8fcc..841ba5861 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/expression.tsx @@ -1,6 +1,6 @@ import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; const { defaultProps } = interfacesProperties; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/index.ts similarity index 71% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/index.ts index 3441c008a..710fcfc8a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/dynamic-calculation/index.ts @@ -1,18 +1,11 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import DynamicCalculation from './DynamicCalculation'; import { DynamicExpression } from './DynamicExpression'; import { ExpressionFieldInterface } from './expression'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginDaynamicCalculation extends Plugin { async load() { this.app.dataSourceManager.addFieldInterfaces([ExpressionFieldInterface]); this.app.addComponents({ diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/LoopInstruction.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/LoopInstruction.tsx index 505fc3055..ec7e644fc 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/LoopInstruction.tsx @@ -15,8 +15,8 @@ import { scopeOptions, triggerOptions, Instruction, -} from '@nocobase/plugin-workflow/client'; -import { NAMESPACE, useLang } from '../locale'; +} from '../..'; +import { NAMESPACE, lang } from '../../locale'; function findOption(options: VariableOption[], paths: string[]) { let opts = options; @@ -106,11 +106,11 @@ export default class extends Instruction { // eslint-disable-next-line react-hooks/rules-of-hooks const compile = useCompile(); // eslint-disable-next-line react-hooks/rules-of-hooks - const langLoopTarget = useLang('Loop target'); + const langLoopTarget = lang('Loop target'); // eslint-disable-next-line react-hooks/rules-of-hooks - const langLoopIndex = useLang('Loop index'); + const langLoopIndex = lang('Loop index'); // eslint-disable-next-line react-hooks/rules-of-hooks - const langLoopLength = useLang('Loop length'); + const langLoopLength = lang('Loop length'); const { target } = node.config; if (!target) { return null; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/index.ts similarity index 51% rename from packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/index.ts index be1720785..a0d5bc769 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/loop/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import LoopInstruction from './LoopInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginLoop extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('loop', LoopInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/WorkflowTodo.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/WorkflowTodo.tsx index dc2a28c99..d847c3620 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/WorkflowTodo.tsx @@ -1,6 +1,6 @@ -import { observer, useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { observer, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { Space, Spin, Tag } from 'antd'; -import dayjs from 'dayjs'; +import { dayjs } from '@nocobase/utils/client'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { css, useCompile, usePlugin } from '@nocobase/client'; @@ -19,15 +19,14 @@ import { } from '@nocobase/client'; import WorkflowPlugin, { FlowContext, - JobStatusOptions, - JobStatusOptionsMap, linkNodes, useAvailableUpstreams, useFlowContext, DetailsBlockProvider, -} from '@nocobase/plugin-workflow/client'; +} from '../..'; +import { JobStatusOptions, JobStatusOptionsMap } from '../../constants'; -import { NAMESPACE, useLang } from '../locale'; +import { NAMESPACE, lang } from '../../locale'; import { FormBlockProvider } from './instruction/FormBlockProvider'; import { ManualFormType, manualFormTypes } from './instruction/SchemaConfig'; @@ -211,7 +210,7 @@ const UserColumn = observer( function UserJobStatusColumn(props) { const record = useRecord(); - const labelUnprocessed = useLang('Unprocessed'); + const labelUnprocessed = lang('Unprocessed'); if (record.execution.status && !record.status) { return {labelUnprocessed}; } diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/WorkflowTodoBlockInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/WorkflowTodoBlockInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/assignees.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/assignees.test.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/createRecordForm.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/createRecordForm.test.ts index 7b4e2a96f..b01b72917 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/createRecordForm.test.ts @@ -11,7 +11,7 @@ import { appendJsonCollectionName, generalWithNoRelationalFields, apiGetDataSourceCount, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/customFormBlocks.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/customFormBlocks.test.ts index cb4b1a46b..b620f3d7f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/customFormBlocks.test.ts @@ -9,7 +9,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/datablocks.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/datablocks.test.ts index 447c4a3d8..91188962a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/datablocks.test.ts @@ -16,7 +16,7 @@ import { apiUpdateWorkflowTrigger, appendJsonCollectionName, generalWithNoRelationalFields, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/updateRecordForm.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/updateRecordForm.test.ts index d6c32fb6c..887be96fb 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/updateRecordForm.test.ts @@ -11,7 +11,7 @@ import { appendJsonCollectionName, generalWithNoRelationalFields, apiGetDataSourceCount, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/workflowTodo.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/workflowTodo.test.ts index a93881f5c..5ede9a39a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/__e2e__/workflowTodo.test.ts @@ -9,7 +9,7 @@ import { appendJsonCollectionName, generalWithNoRelationalFields, apiGetDataSourceCount, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/index.ts similarity index 83% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/index.ts index 9832405e1..30c89a5c7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/index.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import Manual from './instruction'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; import { WorkflowTodo } from './WorkflowTodo'; import { WorkflowTodoBlockInitializer } from './WorkflowTodoBlockInitializer'; import { @@ -14,16 +14,10 @@ import { } from './instruction/SchemaConfig'; import { addCustomFormField, addCustomFormField_deprecated } from './instruction/forms/custom'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - // You can get and modify the app instance here +export class PluginManual extends Plugin { async load() { this.addComponents(); - // this.app.addProvider(Provider); const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('manual', Manual); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/AssigneesSelect.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/AssigneesSelect.tsx index 8a42b4a4c..4436f06d9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/AssigneesSelect.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { RemoteSelect, Variable } from '@nocobase/client'; -import { useWorkflowVariableOptions } from '@nocobase/plugin-workflow/client'; +import { useWorkflowVariableOptions } from '../../..'; function isUserKeyField(field) { if (field.isForeignKey) { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockInitializer.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockInitializer.tsx index 19bd06e43..cf8466d5e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockInitializer.tsx @@ -10,9 +10,9 @@ import { useSchemaTemplateManager, } from '@nocobase/client'; -import { JOB_STATUS, traverseSchema } from '@nocobase/plugin-workflow/client'; +import { JOB_STATUS, traverseSchema } from '../../..'; -import { NAMESPACE } from '../../locale'; +import { NAMESPACE } from '../../../locale'; import { createManualFormBlockUISchema } from './createManualFormBlockUISchema'; function InternalFormBlockInitializer({ schema, ...others }) { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockProvider.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockProvider.tsx index 98ffd88ba..542c10358 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/FormBlockProvider.tsx @@ -1,5 +1,5 @@ -import { createForm } from '@nocobase/schema'; -import { RecursionField, useField, useFieldSchema } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { RecursionField, useField, useFieldSchema } from '@tachybase/schema'; import { BlockRequestContext_deprecated, CollectionManagerProvider, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/ModeConfig.tsx similarity index 74% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/ModeConfig.tsx index 682755cac..dc0be3745 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/ModeConfig.tsx @@ -4,7 +4,7 @@ import { Form, Radio, Tooltip } from 'antd'; import React from 'react'; import { css, FormItem } from '@nocobase/client'; -import { useLang } from '../../locale'; +import { lang } from '../../../locale'; function parseMode(v) { if (!v) { @@ -28,17 +28,17 @@ export function ModeConfig({ value, onChange }) { const negotiationFieldset = (
- + - - {useLang('All pass')} + + {lang('All pass')} - - {useLang('Any pass')} + + {lang('Any pass')} @@ -66,14 +66,14 @@ export function ModeConfig({ value, onChange }) { }} > - - {useLang('Separately')} + + {lang('Separately')} - - {useLang('Collaboratively')} + + {lang('Collaboratively')} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/SchemaConfig.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/SchemaConfig.tsx index 34b578e6c..45f08bb59 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/SchemaConfig.tsx @@ -1,6 +1,6 @@ import { FormLayout } from '@formily/antd-v5'; -import { createForm } from '@nocobase/schema'; -import { FormProvider, ISchema, Schema, useFieldSchema, useForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { FormProvider, ISchema, Schema, useFieldSchema, useForm } from '@tachybase/schema'; import { Alert, Button, Modal, Space } from 'antd'; import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -10,6 +10,7 @@ import { ActionContextProvider, CompatibleSchemaInitializer, DefaultValueProvider, + DetailsBlockProvider, FormActiveFieldsProvider, GeneralSchemaDesigner, InitializerWithSwitch, @@ -34,18 +35,18 @@ import { useSchemaOptionsContext, } from '@nocobase/client'; import WorkflowPlugin, { - JOB_STATUS, - DetailsBlockProvider, SimpleDesigner, useAvailableUpstreams, useFlowContext, useNodeContext, useTrigger, useWorkflowVariableOptions, -} from '@nocobase/plugin-workflow/client'; +} from '../../..'; + +import { JOB_STATUS } from '../../../constants'; import { Registry, lodash } from '@nocobase/utils/client'; -import { NAMESPACE, useLang } from '../../locale'; +import { NAMESPACE, lang } from '../../../locale'; import { FormBlockProvider } from './FormBlockProvider'; import createRecordForm from './forms/create'; import customRecordForm from './forms/custom'; @@ -321,7 +322,7 @@ function AssignedFieldValues() { @@ -618,7 +619,7 @@ export function SchemaConfigButton(props) { return ( <> {props.children} diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/createManualFormBlockUISchema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/createManualFormBlockUISchema.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/create.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/create.tsx index 113193eeb..ba0c930e8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/create.tsx @@ -13,7 +13,7 @@ import { } from '@nocobase/client'; import _ from 'lodash'; -import { NAMESPACE } from '../../../locale'; +import { NAMESPACE } from '../../../../locale'; import { FormBlockInitializer } from '../FormBlockInitializer'; import { ManualFormType } from '../SchemaConfig'; import { findSchema } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/custom.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/custom.tsx index 0645db631..00cdfcc4a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/custom.tsx @@ -1,8 +1,8 @@ import React, { useContext, useMemo, useState } from 'react'; import { ArrayTable } from '@formily/antd-v5'; -import { Field, createForm } from '@nocobase/schema'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { Field, createForm } from '@tachybase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { cloneDeep, pick, set } from 'lodash'; import { @@ -22,10 +22,10 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@nocobase/client'; -import { JOB_STATUS } from '@nocobase/plugin-workflow/client'; +import { JOB_STATUS } from '../../../..'; import { merge, uid } from '@nocobase/utils/client'; -import { NAMESPACE, useLang } from '../../../locale'; +import { NAMESPACE, lang } from '../../../../locale'; import { ManualFormType } from '../SchemaConfig'; import { findSchema } from '../utils'; @@ -282,7 +282,7 @@ const CustomItemsComponent = (props) => { type: 'primary', useAction() { const { values, query, reset } = useForm(); - const messages = [useLang('Field name existed in form')]; + const messages = [lang('Field name existed in form')]; return { async run() { const { default: options } = interfaceOptions; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/update.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/update.tsx index c48ed31b8..b4eea1b70 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/forms/update.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; import React, { useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import _ from 'lodash'; @@ -15,12 +15,12 @@ import { useDesignable, useMenuSearch, } from '@nocobase/client'; -import { FilterDynamicComponent } from '@nocobase/plugin-workflow/client'; -import { NAMESPACE } from '../../../locale'; +import { NAMESPACE } from '../../../../locale'; import { FormBlockInitializer } from '../FormBlockInitializer'; import { ManualFormType } from '../SchemaConfig'; import { findSchema } from '../utils'; +import { FilterDynamicComponent } from '../../../../components'; function UpdateFormDesigner() { const { name, title } = useCollection_deprecated(); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/index.tsx index 7167e8e17..c7890717d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/index.tsx @@ -5,12 +5,12 @@ import WorkflowPlugin, { getCollectionFieldOptions, CollectionBlockInitializer, Instruction, -} from '@nocobase/plugin-workflow/client'; +} from '../../..'; import { SchemaConfig, SchemaConfigButton } from './SchemaConfig'; import { ModeConfig } from './ModeConfig'; import { AssigneesSelect } from './AssigneesSelect'; -import { NAMESPACE } from '../../locale'; +import { NAMESPACE } from '../../../locale'; const MULTIPLE_ASSIGNED_MODE = { SINGLE: Symbol('single'), diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/manual/instruction/utils.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/ParallelInstruction.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/ParallelInstruction.tsx index ff81623b4..eb2f6250d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/ParallelInstruction.tsx @@ -12,9 +12,9 @@ import { useGetAriaLabelOfAddButton, RadioWithTooltip, Instruction, -} from '@nocobase/plugin-workflow/client'; +} from '../..'; -import { NAMESPACE, useLang } from '../locale'; +import { NAMESPACE, lang } from '../../locale'; export default class extends Instruction { title = `{{t("Parallel branch", { ns: "${NAMESPACE}" })}}`; @@ -73,8 +73,7 @@ export default class extends Instruction { const [branchCount, setBranchCount] = useState(Math.max(2, branches.length)); // eslint-disable-next-line react-hooks/rules-of-hooks const { getAriaLabel } = useGetAriaLabelOfAddButton(data); - // eslint-disable-next-line react-hooks/rules-of-hooks - const langAddBranch = useLang('Add branch'); + const langAddBranch = lang('Add branch'); const tempBranches = Array(Math.max(0, branchCount - branches.length)).fill(null); const lastBranchHead = branches[branches.length - 1]; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/__e2e__/parallelBranch.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/__e2e__/parallelBranch.test.ts index 89421bd75..8de79fbd7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/__e2e__/parallelBranch.test.ts @@ -11,7 +11,7 @@ import { ConditionYesNode, ClculationNode, apiGetWorkflowNodeExecutions, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/index.ts similarity index 51% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/index.ts index 930e0c71f..d719db8eb 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/parallel/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import ParallelInstruction from './ParallelInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginParallel extends Plugin { async load() { const workflow = this.app.pm.get(WorkflowPlugin); workflow.registerInstruction('parallel', ParallelInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/request/RequestInstruction.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/request/RequestInstruction.tsx index 836e40f41..1a603d8a1 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/request/RequestInstruction.tsx @@ -6,9 +6,9 @@ import { WorkflowVariableJSON, WorkflowVariableTextArea, defaultFieldNames, -} from '@nocobase/plugin-workflow/client'; +} from '../..'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; export default class extends Instruction { title = `{{t("HTTP request", { ns: "${NAMESPACE}" })}}`; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/request/index.ts similarity index 52% rename from packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/request/index.ts index 6667a5198..f4da44202 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/request/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import RequestInstruction from './RequestInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginRequest extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('request', RequestInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/SQLInstruction.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/SQLInstruction.tsx index bdb41f516..97b769a04 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/SQLInstruction.tsx @@ -1,10 +1,10 @@ import { css } from '@nocobase/client'; -import { Instruction, WorkflowVariableRawTextArea, defaultFieldNames } from '@nocobase/plugin-workflow/client'; +import { Instruction, WorkflowVariableRawTextArea, defaultFieldNames } from '../..'; import React from 'react'; import { Trans } from 'react-i18next'; -import { NAMESPACE } from '../locale'; +import { NAMESPACE } from '../../locale'; export default class extends Instruction { title = `{{t("SQL action", { ns: "${NAMESPACE}" })}}`; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/__e2e__/dataCURD.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/__e2e__/dataCURD.test.ts index 3f916c33d..879374aa8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/__e2e__/dataCURD.test.ts @@ -15,7 +15,7 @@ import { QueryRecordNode, SQLNode, apiGetRecord, -} from '@nocobase/plugin-workflow-test/e2e'; +} from '@tachybase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/index.ts similarity index 50% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/index.ts index d8b01547c..ddc7a4ab1 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/features/sql/index.ts @@ -1,16 +1,9 @@ import { Plugin } from '@nocobase/client'; -import WorkflowPlugin from '@nocobase/plugin-workflow/client'; +import WorkflowPlugin from '../..'; import SQLInstruction from './SQLInstruction'; -export default class extends Plugin { - async afterAdd() { - // await this.app.pm.add() - } - - async beforeLoad() {} - - // You can get and modify the app instance here +export class PluginSql extends Plugin { async load() { const workflow = this.app.pm.get('workflow') as WorkflowPlugin; workflow.registerInstruction('sql', SQLInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts index 73ecff612..be98fd166 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts @@ -1,6 +1,6 @@ import { useNavigate } from 'react-router-dom'; import { App, message } from 'antd'; -import { useField, useFieldSchema, useForm } from '@nocobase/schema'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { useAPIClient, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/index.tsx similarity index 81% rename from packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/index.tsx index c95778f61..58b63062c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/index.tsx @@ -20,6 +20,15 @@ import DestroyInstruction from './nodes/destroy'; import { getWorkflowDetailPath, getWorkflowExecutionsPath } from './utils'; import { NAMESPACE } from './locale'; import { customizeSubmitToWorkflowActionSettings } from './settings/customizeSubmitToWorkflowActionSettings'; +import { PluginSql } from './features/sql'; +import { PluginRequest } from './features/request'; +import { PluginParallel } from './features/parallel'; +import { PluginLoop } from './features/loop'; +import { PluginDaynamicCalculation } from './features/dynamic-calculation'; +import { PluginDelay } from './features/delay'; +import { PluginAggregate } from './features/aggregate'; +import { PluginActionTrigger } from './features/action-trigger'; +import { PluginManual } from './features/manual'; export default class PluginWorkflowClient extends Plugin { triggers = new Registry(); @@ -57,6 +66,18 @@ export default class PluginWorkflowClient extends Plugin { } } + async afterAdd() { + await this.pm.add(PluginSql); + await this.pm.add(PluginRequest); + await this.pm.add(PluginParallel); + await this.pm.add(PluginManual); + await this.pm.add(PluginLoop); + await this.pm.add(PluginDaynamicCalculation); + await this.pm.add(PluginDelay); + await this.pm.add(PluginAggregate); + await this.pm.add(PluginActionTrigger); + } + async load() { this.addRoutes(); this.addComponents(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/locale/index.ts similarity index 56% rename from packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/locale/index.ts index 4e50acef9..5e513037d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/locale/index.ts @@ -3,12 +3,6 @@ import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow'; -// i18n.addResources('zh-CN', NAMESPACE, zhCN); -// i18n.addResources('en-US', NAMESPACE, enUS); -// i18n.addResources('ja-JP', NAMESPACE, jaJP); -// i18n.addResources('ru-RU', NAMESPACE, ruRU); -// i18n.addResources('tr-TR', NAMESPACE, trTR); - export function lang(key: string, options = {}) { return i18n.t(key, { ...options, ns: NAMESPACE }); } diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/calculation.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/calculation.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/condition.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/condition.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/create.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/create.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/destroy.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/destroy.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/end.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/end.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/index.tsx index 6fde5deca..4ddbdc3d3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/index.tsx @@ -1,6 +1,6 @@ import { CloseOutlined, DeleteOutlined } from '@ant-design/icons'; -import { createForm } from '@nocobase/schema'; -import { ISchema, useForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { App, Button, Dropdown, Input, Tag, Tooltip, message } from 'antd'; import { cloneDeep } from 'lodash'; import React, { useCallback, useContext, useMemo, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/query.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/query.tsx index 1602e4471..6299cfb87 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/query.tsx @@ -8,7 +8,7 @@ import { useCompile, } from '@nocobase/client'; -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { CollectionBlockInitializer } from '../components/CollectionBlockInitializer'; import { FilterDynamicComponent } from '../components/FilterDynamicComponent'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/update.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/nodes/update.tsx index f3be67da9..b00034443 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/nodes/update.tsx @@ -1,4 +1,4 @@ -import { useField, useForm } from '@nocobase/schema'; +import { useField, useForm } from '@tachybase/schema'; import React from 'react'; import { useCollectionDataSource, useCollectionManager_deprecated } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/collection.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/schemas/collection.ts index 16c6e949f..effedfcc2 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/collection.ts @@ -1,4 +1,4 @@ -import { useForm } from '@nocobase/schema'; +import { useForm } from '@tachybase/schema'; import { css, parseCollectionName, useCollectionFilterOptions } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/executions.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/schemas/executions.tsx index 785b9d15a..903848a37 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/executions.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { ISchema } from '@nocobase/schema'; +import { ISchema } from '@tachybase/schema'; import { Link } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/workflows.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/schemas/workflows.ts index 901900f27..7dc414fd3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/schemas/workflows.ts @@ -1,4 +1,4 @@ -import { ISchema, useForm } from '@nocobase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { useActionContext, useRecord, useResourceActionContext, useResourceContext } from '@nocobase/client'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx similarity index 93% rename from packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx index 7d94cf1d9..ad60ef6c3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@nocobase/schema'; -import { isValid } from '@nocobase/schema'; +import { useFieldSchema } from '@tachybase/schema'; +import { isValid } from '@tachybase/schema'; import { AfterSuccess, AssignedFieldValues, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/style.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/collection.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/collection.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/index.tsx index c9872e4f6..10df762e7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/index.tsx @@ -2,8 +2,8 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { Button, Input, Tag, message } from 'antd'; import { cloneDeep } from 'lodash'; import { InfoOutlined } from '@ant-design/icons'; -import { createForm } from '@nocobase/schema'; -import { ISchema, useForm } from '@nocobase/schema'; +import { createForm } from '@tachybase/schema'; +import { ISchema, useForm } from '@tachybase/schema'; import { ActionContextProvider, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx index 6d2fff327..c9d78c289 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx @@ -1,6 +1,6 @@ import { css } from '@nocobase/client'; import { DatePicker, Select } from 'antd'; -import dayjs from 'dayjs'; +import { dayjs } from '@nocobase/utils/client'; import React from 'react'; import { useWorkflowTranslation } from '../../locale'; import { OnField } from './OnField'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/OnField.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/OnField.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx index 8c1d88e76..76e0acd43 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx +++ b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx @@ -1,5 +1,5 @@ -import { onFieldValueChange } from '@nocobase/schema'; -import { useForm, useFormEffects, ISchema } from '@nocobase/schema'; +import { onFieldValueChange } from '@tachybase/schema'; +import { useForm, useFormEffects, ISchema } from '@tachybase/schema'; import { css, SchemaComponent } from '@nocobase/client'; import React, { useState } from 'react'; import { NAMESPACE } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/constants.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/index.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts b/packages/plugins/@tachybase/plugin-workflow/src/client/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts rename to packages/plugins/@tachybase/plugin-workflow/src/client/utils.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx b/packages/plugins/@tachybase/plugin-workflow/src/client/variable.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx rename to packages/plugins/@tachybase/plugin-workflow/src/client/variable.tsx diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/index.ts diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/en-US.json new file mode 100644 index 000000000..ff86ebe8d --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/en-US.json @@ -0,0 +1,194 @@ +{ + "Workflow": "Workflow", + "Execution history": "Execution history", + "Executed": "Executed", + "Trigger type": "Trigger type", + "Status": "Status", + "On": "On", + "Off": "Off", + "Version": "Version", + "Copy to new version": "Copy to new version", + "Duplicate": "Duplicate", + "Loading": "Loading", + "Load failed": "Load failed", + "Trigger": "Trigger", + "Trigger variables": "Trigger variables", + "Trigger data": "Trigger data", + "Trigger time": "Trigger time", + "Triggered at": "Triggered at", + "Collection event": "Collection event", + "Trigger on": "Trigger on", + "After record added": "After record added", + "After record updated": "After record updated", + "After record added or updated": "After record added or updated", + "After record deleted": "After record deleted", + "Changed fields": "Changed fields", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.", + "Only triggers when match conditions": "Only triggers when match conditions", + "Schedule event": "Schedule event", + "Trigger mode": "Trigger mode", + "Based on certain date": "Based on certain date", + "Based on date field of collection": "Based on date field of collection", + "Starts on": "Starts on", + "Ends on": "Ends on", + "No end": "No end", + "Exactly at": "Exactly at", + "Repeat mode": "Repeat mode", + "Repeat limit": "Repeat limit", + "No limit": "No limit", + "Seconds": "Seconds", + "Minutes": "Minutes", + "Hours": "Hours", + "Days": "Days", + "Weeks": "Weeks", + "Months": "Months", + "No repeat": "No repeat", + "Every": "Every", + "By minute": "By minute", + "By hour": "By hour", + "By day": "By day", + "By week": "By week", + "By month": "By month", + "By field": "By field", + "By custom date": "By custom date", + "Advanced": "Advanced", + "End": "End", + "Node result": "Node result", + "Constant": "Constant", + "Null": "Null", + "Boolean": "Boolean", + "String": "String", + "Operator": "Operator", + "Arithmetic calculation": "Arithmetic calculation", + "String operation": "String operation", + "Executed at": "Executed at", + "Queueing": "Queueing", + "On going": "On going", + "Succeeded": "Succeeded", + "Failed": "Failed", + "Pending": "Pending", + "Canceled": "Canceled", + "This node contains branches, deleting will also be preformed to them, are you sure?": "This node contains branches, deleting will also be preformed to them, are you sure?", + "Control": "Control", + "Collection operations": "Collection operations", + "Extended types": "Extended types", + "Node type": "Node type", + "Calculation": "Calculation", + "Configure calculation": "Configure calculation", + "Calculation result": "Calculation result", + "True": "True", + "False": "False", + "concat": "concat", + "Condition": "Condition", + "Mode": "Mode", + "Continue when \"Yes\"": "Continue when \"Yes\"", + "Branch into \"Yes\" and \"No\"": "Branch into \"Yes\" and \"No\"", + "Conditions": "Conditions", + "Create record": "Create record", + "Update record": "Update record", + "Query record": "Query record", + "Multiple records": "Multiple records", + "Please select collection first": "Please select collection first", + "Only update records matching conditions": "Only update records matching conditions", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.", + "Trigger in executed workflow cannot be modified": "Trigger in executed workflow cannot be modified", + "Node in executed workflow cannot be modified": "Node in executed workflow cannot be modified", + "Can not delete": "Can not delete", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.", + "Form event": "Form event", + "Event triggers when submitted a workflow bound form action.": "Event triggers when submitted a workflow bound form action.", + "Form data model": "Form data model", + "Use a collection to match form data.": "Use a collection to match form data.", + "Associations to use": "Associations to use", + "User submitted form": "User submitted form", + "Role of user submitted form": "Role of user submitted form", + "Aggregate": "Aggregate", + "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.", + "Aggregator function": "Aggregator function", + "Target type": "Target type", + "Data of collection": "Data of collection", + "Data of associated collection": "Data of associated collection", + "Field to aggregate": "Field to aggregate", + "Distinct": "Distinct", + "Query result": "Query result", + "Delay": "Delay", + "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.", + "Duration": "Duration", + "End status": "End status", + "Select status": "Select status", + "Succeed and continue": "Succeed and continue", + "Fail and exit": "Fail and exit", + "Dynamic Calculation": "Dynamic Calculation", + "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.", + "Select dynamic expression": "Select dynamic expression", + "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.", + "Variable datasource": "Variable datasource", + "Dynamic expression": "Dynamic expression", + "An expression for calculation in each rows": "An expression for calculation in each rows", + "Unconfigured": "Unconfigured", + "Loop": "Loop", + "Loop target": "Loop target", + "Loop index": "Loop index", + "Loop length": "Loop length", + "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.", + "Scope variables": "Scope variables", + "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.", + "Manual": "Manual", + "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.", + "Values preset in this form will override user submitted ones when continue or reject.": "Values preset in this form will override user submitted ones when continue or reject.", + "Assignee": "Assignee", + "Assignees": "Assignees", + "User interface": "User interface", + "Configure user interface": "Configure user interface", + "View user interface": "View user interface", + "Separately": "Separately", + "Each user has own task": "Each user has own task", + "Collaboratively": "Collaboratively", + "Everyone shares one task": "Everyone shares one task", + "Negotiation": "Negotiation", + "All pass": "All pass", + "Everyone should pass": "Everyone should pass", + "Any pass": "Any pass", + "Anyone pass": "Anyone pass", + "Field name existed in form": "Field name existed in form", + "Continue the process": "Continue the process", + "Terminate the process": "Terminate the process", + "Save temporarily": "Save temporarily", + "Custom form": "Custom form", + "Data record": "Data record", + "Create record form": "Create record form", + "Update record form": "Update record form", + "Filter settings": "Filter settings", + "Workflow todos": "Workflow todos", + "Task": "Task", + "Parallel branch": "Parallel branch", + "Run multiple branch processes in parallel.": "Run multiple branch processes in parallel.", + "Add branch": "Add branch", + "All succeeded": "All succeeded", + "Any succeeded": "Any succeeded", + "Any succeeded or failed": "Any succeeded or failed", + "Continue after all branches succeeded": "Continue after all branches succeeded", + "Continue after any branch succeeded": "Continue after any branch succeeded", + "Continue after any branch succeeded, or exit after any branch failed.": "Continue after any branch succeeded, or exit after any branch failed.", + "HTTP request": "HTTP request", + "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.", + "HTTP method": "HTTP method", + "URL": "URL", + "Headers": "Headers", + "Add request header": "Add request header", + "Parameters": "Parameters", + "Add parameter": "Add parameter", + "Body": "Body", + "Use variable": "Use variable", + "Format": "Format", + "Insert": "Insert", + "Timeout config": "Timeout config", + "ms": "ms", + "Input request data": "Input request data", + "Only support standard JSON data": "Only support standard JSON data", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" only support \"application/json\", and no need to specify", + "Ignore failed request and continue workflow": "Ignore failed request and continue workflow", + "SQL action": "SQL action", + "Execute a SQL statement in database": "Execute a SQL statement in database", + "Usage of SQL query result is not supported yet.": "Usage of SQL query result is not supported yet." +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/es-ES.json new file mode 100644 index 000000000..180a8b652 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/es-ES.json @@ -0,0 +1,129 @@ +{ + "Workflow": "Flujo de trabajo", + "Execution history": "Historial de ejecución", + "Executed": "Ejecutado", + "Trigger type": "Tipo de activador", + "Status": "Estado", + "On": "Activado", + "Off": "Apagado", + "Version": "Versión", + "Copy to new version": "Copiar a nueva versión", + "Duplicate": "Duplicar", + "Loading": "Cargando", + "Load failed": "Carga fallida", + "Trigger": "Disparador", + "Trigger variables": "Variables de activación", + "Trigger data": "Datos de activación", + "Trigger time": "Tiempo de activación", + "Triggered at": "Disparado a las", + "Collection event": "Evento de recogida", + "Trigger on": "Activado en", + "After record added": "Después de añadir el registro", + "After record updated": "Después de actualizar el registro", + "After record added or updated": "Después de añadir o actualizar el registro", + "After record deleted": "Después de eliminar el registro", + "Changed fields": "Campos modificados", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Se activa sólo si cambia uno de los campos seleccionados. Si no se selecciona, significa que se activará cuando cambie cualquier campo. Cuando se añade o elimina un registro, se considera que se ha modificado cualquier campo.", + "Only triggers when match conditions": "Sólo se dispara cuando coinciden las condiciones", + "Schedule event": "Programar evento", + "Trigger mode": "Modo de activación", + "Based on certain date": "Basado en fecha determinada", + "Based on date field of collection": "Basado en el campo de fecha de la colección", + "Starts on": "Comienza el", + "Ends on": "Finaliza el", + "No end": "Sin fin", + "Exactly at": "Exactamente en", + "Repeat mode": "Modo repetición", + "Repeat limit": "Límite de repetición", + "No limit": "Sin límite", + "Seconds": "Segundos", + "Minutes": "Minutos", + "Hours": "Horas", + "Days": "Días", + "Weeks": "Semanas", + "Months": "Meses", + "No repeat": "No repetir", + "Every": "Cada", + "By minute": "Por minuto", + "By hour": "Por hora", + "By day": "Por día", + "By week": "Por semana", + "By month": "Por mes", + "By field": "Por campo", + "By custom date": "Por fecha personalizada", + "Advanced": "Avanzada", + "End": "Fin", + "Node result": "Resultado nodo", + "Constant": "Constante", + "Null": "Null", + "Boolean": "Booleano", + "String": "Cadena", + "Operator": "Calculadora", + "Arithmetic calculation": "Cálculo aritmético", + "String operation": "Operación de Cadena", + "Executed at": "Ejecutado en", + "Queueing": "Puesta en cola", + "On going": "En curso", + "Succeeded": "Logrado", + "Failed": "Fallido", + "Pending": "Pendiente", + "Canceled": "Cancelado", + "This node contains branches, deleting will also be preformed to them, are you sure?": "Este nodo contiene ramas, el borrado también se preformará a ellas, ¿estás seguro?", + "Control": "Control", + "Collection operations": "Operaciones de recogida", + "Extended types": "Tipos ampliados", + "Node type": "Tipo de nodo", + "Calculation": "Cálculo", + "Configure calculation": "Configurar cálculo", + "Calculation result": "Resultado del cálculo", + "True": "Verdadero", + "False": "Falso", + "concat": "concat", + "Condition": "Condición", + "Mode": "Modo", + "Continue when \"Yes\"": "Continuar cuando \"Sí\"", + "Branch into \"Yes\" and \"No\"": "Ramificarse en \"Sí\" y \"No\"", + "Conditions": "Condiciones", + "Create record": "Crear registro", + "Update record": "Actualizar registro", + "Query record": "Consultar registro", + "Multiple records": "Múltiples registros", + "Please select collection first": "Por favor, seleccione primero la colección", + "Only update records matching conditions": "Actualizar sólo los registros que cumplan las condiciones", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Los campos a los que no se les asigne un valor se establecerán en el valor predeterminado, y los que no tengan un valor predeterminado se establecerán en nulo.", + "Trigger in executed workflow cannot be modified": "No se puede modificar el desencadenante en el flujo de trabajo ejecutado", + "Node in executed workflow cannot be modified": "Nodo en flujo de trabajo ejecutado no puede ser modificado", + "Can not delete": "No se puede eliminar", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "El resultado de este nodo ha sido referenciado por otros nodos ({{nodes}}", + "Delay": "Retraso", + "Duration": "Duración", + "End status": "Estado final", + "Select status": "Seleccionar estado", + "Succeed and continue": "Éxito y continuar", + "Fail and exit": "Falla y sale", + "Parallel branch": "Rama paralela", + "Add branch": "Añadir rama", + "All succeeded": "Todo correcto", + "Any succeeded": "Cualquiera con éxito", + "Any succeeded or failed": "Cualquiera tuvo éxito o falló", + "Continue after all branches succeeded": "Continuar después que todas las ramas han tenido éxito", + "Continue after any branch succeeded": "Continuar después que cualquier rama tenga éxito", + "Continue after any branch succeeded, or exit after any branch failed": "Continuar después de que cualquier rama tenga éxito, o salir después de que cualquier rama falle", + "HTTP request": "Petición HTTP", + "HTTP method": "Método HTTP", + "URL": "URL", + "Headers": "Encabezados", + "Add request header": "Añadir encabezado de petición", + "Parameters": "Parámetros", + "Add parameter": "Añadir parámetro", + "Body": "Cuerpo", + "Use variable": "Utilizar variable", + "Format": "Formato", + "Insert": "Insertar", + "Timeout config": "Tiempo de espera config", + "ms": "ms", + "Input request data": "Datos de solicitud de entrada", + "Only support standard JSON data": "Sólo admite datos JSON estándar", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" sólo admite \"application/json\", y no es necesario especificar", + "Ignore fail request and continue workflow": "Ignorar solicitud fallida y continuar flujo de trabajo" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/fr-FR.json new file mode 100644 index 000000000..e86b825b5 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/fr-FR.json @@ -0,0 +1,129 @@ +{ + "Workflow": "Workflow", + "Execution history": "Historique d'exécution", + "Executed": "Exécuté", + "Trigger type": "Type de déclencheur", + "Status": "Statut", + "On": "Activé", + "Off": "Désactivé", + "Version": "Version", + "Copy to new version": "Copier vers une nouvelle version", + "Duplicate": "Dupliquer", + "Loading": "Chargement", + "Load failed": "Échec du chargement", + "Trigger": "Déclencheur", + "Trigger variables": "Variables de déclenchement", + "Trigger data": "Données de déclenchement", + "Trigger time": "Temps de déclenchement", + "Triggered at": "Déclenché à", + "Collection event": "Événement de collection", + "Trigger on": "Déclencher sur", + "After record added": "Après l'ajout d'un enregistrement", + "After record updated": "Après la mise à jour d'un enregistrement", + "After record added or updated": "Après l'ajout ou la mise à jour d'un enregistrement", + "After record deleted": "Après la suppression d'un enregistrement", + "Changed fields": "Champs modifiés", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Déclenché uniquement si l'un des champs sélectionnés change. S'il n'est pas sélectionné, cela signifie qu'il sera déclenché lorsque n'importe quel champ change. Lorsque l'enregistrement est ajouté ou supprimé, n'importe quel champ est considéré comme ayant été modifié.", + "Only triggers when match conditions": "Déclenche uniquement lorsque les conditions correspondent", + "Schedule event": "Événement planifié", + "Trigger mode": "Mode de déclenchement", + "Based on certain date": "Basé sur une date spécifique", + "Based on date field of collection": "Basé sur le champ de date de la collection", + "Starts on": "Commence le", + "Ends on": "Se termine le", + "No end": "Pas de fin", + "Exactly at": "Exactement à", + "Repeat mode": "Mode de répétition", + "Repeat limit": "Limite de répétition", + "No limit": "Pas de limite", + "Seconds": "Secondes", + "Minutes": "Minutes", + "Hours": "Heures", + "Days": "Jours", + "Weeks": "Semaines", + "Months": "Mois", + "No repeat": "Pas de répétition", + "Every": "Chaque", + "By minute": "Par minute", + "By hour": "Par heure", + "By day": "Par jour", + "By week": "Par semaine", + "By month": "Par mois", + "By field": "Par champ", + "By custom date": "Par date personnalisée", + "Advanced": "Avancé", + "End": "Fin", + "Node result": "Résultat du nœud", + "Constant": "Constante", + "Null": "Null", + "Boolean": "Booléen", + "String": "Chaîne de caractères", + "Operator": "Calculatrice", + "Arithmetic calculation": "Calcul arithmétique", + "String operation": "Opération sur les chaînes de caractères", + "Executed at": "Exécuté à", + "Queueing": "En attente", + "On going": "En cours", + "Succeeded": "Réussi", + "Failed": "Échoué", + "Pending": "En attente", + "Canceled": "Annulé", + "This node contains branches, deleting will also be preformed to them, are you sure?": "Ce nœud contient des branches, leur suppression sera également effectuée, êtes-vous sûr(e) ?", + "Control": "Contrôle", + "Collection operations": "Opérations sur la collection", + "Extended types": "Types étendus", + "Node type": "Type de nœud", + "Calculation": "Calcul", + "Configure calculation": "Configurer le calcul", + "Calculation result": "Résultat du calcul", + "True": "Vrai", + "False": "Faux", + "concat": "concat", + "Condition": "Condition", + "Mode": "Mode", + "Continue when \"Yes\"": "Continuer quand \"Oui\"", + "Branch into \"Yes\" and \"No\"": "Brancher sur \"Oui\" et \"Non\"", + "Conditions": "Conditions", + "Create record": "Créer un enregistrement", + "Update record": "Mettre à jour un enregistrement", + "Query record": "Interroger un enregistrement", + "Multiple records": "Multiples enregistrements", + "Please select collection first": "Veuillez d'abord sélectionner une collection", + "Only update records matching conditions": "Mettre à jour uniquement les enregistrements correspondant aux conditions", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Les champs qui ne reçoivent pas de valeur seront définis sur la valeur par défaut, et ceux qui n'ont pas de valeur par défaut seront définis sur null.", + "Trigger in executed workflow cannot be modified": "Le déclencheur dans le workflow exécuté ne peut pas être modifié", + "Node in executed workflow cannot be modified": "Le nœud dans le workflow exécuté ne peut pas être modifié", + "Can not delete": "Impossible de supprimer", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "Le résultat de ce nœud a été référencé par d'autres nœuds ({{nodes}}), veuillez supprimer son utilisation avant de le supprimer.", + "Delay": "Délai", + "Duration": "Durée", + "End status": "Statut de fin", + "Select status": "Sélectionner un statut", + "Succeed and continue": "Réussir et continuer", + "Fail and exit": "Échouer et quitter", + "Parallel branch": "Branche parallèle", + "Add branch": "Ajouter une branche", + "All succeeded": "Tous réussis", + "Any succeeded": "Un réussi", + "Any succeeded or failed": "Un réussi ou un échoué", + "Continue after all branches succeeded": "Continuer après la réussite de toutes les branches", + "Continue after any branch succeeded": "Continuer après la réussite d'une branche", + "Continue after any branch succeeded, or exit after any branch failed": "Continuer après la réussite d'une branche, ou quitter après l'échec d'une branche", + "HTTP request": "Requête HTTP", + "HTTP method": "Méthode HTTP", + "URL": "URL", + "Headers": "En-têtes", + "Add request header": "Ajouter un en-tête de requête", + "Parameters": "Paramètres", + "Add parameter": "Ajouter un paramètre", + "Body": "Corps", + "Use variable": "Utiliser une variable", + "Format": "Format", + "Insert": "Insérer", + "Timeout config": "Configuration du délai d'expiration", + "ms": "ms", + "Input request data": "Entrée des données de requête", + "Only support standard JSON data": "Prend uniquement en charge les données JSON standard", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" prend uniquement en charge \"application/json\" et n'a pas besoin d'être spécifié", + "Ignore fail request and continue workflow": "Ignorer l'échec de la requête et continuer le workflow" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/ja-JP.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/ja-JP.json new file mode 100644 index 000000000..15cad6293 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/ja-JP.json @@ -0,0 +1,87 @@ +{ + "Workflow": "ワークフロー", + "Execution history": "実行履歴", + "Trigger type": "トリガータイプ", + "Status": "状態", + "On": "有効", + "Off": "無効", + "Version": "バージョン", + "Copy to new version": "新しいバージョンにコピー", + "Load failed": "読み込みに失敗しました", + "Trigger": "トリガー", + "Collection event": "コレクションイベント", + "Trigger on": "トリガータイミング", + "After record added": "レコードを追加した後", + "After record updated": "レコードを更新した後", + "After record added or updated": "レコードを追加もしくは更新した後", + "After record deleted": "レコードを削除した後", + "Changed fields": "フィールドが変更された時", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "選択したフィールドの 1 つが変更された場合にのみトリガーされます。 選択されていない場合は、フィールドが変更されたときにトリガーされることを意味します。 レコードが追加または削除されると、すべてのフィールドが変更されたと見なされます。", + "Only triggers when match conditions": "以下の条件を満たすと発動", + "Schedule event": "スケジュールイベント", + "Trigger mode": "トリガーモード", + "Based on certain date": "カスタム時間", + "Based on date field of collection": "コレクションのフィールド時間に基づく", + "Starts on": "開始", + "Ends on": "終了", + "Exactly at": "ちょうど", + "Repeat mode": "繰り返しパターン", + "Repeat limit": "繰り返し回数", + "No limit": "無制限", + "Seconds": "秒", + "Minutes": "分", + "Hours": "時", + "Days": "日", + "Weeks": "週", + "Months": "月", + "No repeat": "繰り返さない", + "Every": "毎", + "By minute": "分ごと", + "By hour": "時間ごと", + "By day": "日ごと", + "By week": "週ごと", + "By month": "月ごと", + "By field": "フィールドごと", + "By custom date": "カスタム時間", + "Advanced": "アドバンスド", + "End": "終了", + "Trigger variables": "トリガーフィールド", + "Node result": "ノードの結果", + "Constant": "定数", + "Boolean": "論理値", + "String": "文字列", + "Arithmetic calculation": "算術演算", + "String operation": "文字列操作", + "On going": "処理中", + "Succeeded": "成功", + "Failed": "失敗", + "Canceled": "取消", + "This node contains branches, deleting will also be preformed to them, are you sure?": "ノードにはブランチが含まれており、そのすべてのブランチの下にあるすべての子ノードが同時に削除されます。続行してもよろしいですか?", + "Control": "プロセス制御", + "Collection operations": "フィールド操作", + "Node type": "ノードタイプ", + "Calculation": "演算", + "Configure calculation": "演算設定", + "Calculation result": "演算結果", + "True": "真", + "False": "偽", + "Condition": "条件", + "Mode": "モデル", + "Continue when \"Yes\"": "「はい」の場合に続行", + "Branch into \"Yes\" and \"No\"": "「はい」と「いいえ」で分岐して続行", + "Conditions": "条件設定", + "Create record": "レコード追加", + "Update record": "レコード更新", + "Query record": "クエリ レコード", + "Multiple records": "複数レコード", + "Please select collection first": "先にコレクションを選択してください", + "Only update records matching conditions": "条件を満たすレコードのみ更新", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "値が割り当てられていないフィールドはデフォルト値に設定され、デフォルト値がないフィールドは null に設定されます", + "Trigger in executed workflow cannot be modified": "すでにワークフローを実行したトリガーは変更できません", + "Node in executed workflow cannot be modified": "すでに実行されたワークフローのノードは変更できません", + "Parallel branch": "分岐", + "All succeeded": "すべて成功", + "Any succeeded": "いずれかが成功", + "Continue after all branches succeeded": "すべての分岐が成功した後に続行", + "Continue after any branch succeeded": "いずれかの分岐が成功した後に続行" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/ko_KR.json new file mode 100644 index 000000000..90d769662 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/ko_KR.json @@ -0,0 +1,247 @@ +{ + "Workflow": "워크플로우", + "Execution history": "실행 기록", + "Clear all executions": "모든 실행 기록 지우기", + "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "지우기 작업은 실행 횟수를 재설정하지 않으며 시작된 실행이 삭제되지 않습니다. 모두 삭제하시겠습니까?", + "Executed": "실행됨", + "Sync enabled status of all workflows from the database": "데이터베이스에서 모든 워크플로우의 활성 상태 동기화", + "Trigger type": "트리거 유형", + "Status": "상태", + "On": "활성", + "Off": "비활성", + "Version": "버전", + "Copy to new version": "새 버전으로 복사", + "Duplicate": "복제", + "Duplicate to new workflow": "새로운 워크플로우로 복제", + "Delete a main version will cause all other revisions to be deleted too.": "주 버전을 삭제하면 모든 다른 수정 사항도 삭제됩니다.", + "Loading": "로딩 중", + "Load failed": "로드 실패", + "Use transaction": "트랜잭션 사용", + "Data operation nodes in the workflow will run in the same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "워크플로우의 데이터 작업 노드는 어떠한 방해가 발생할 때까지 동일한 트랜잭션에서 실행됩니다. 어떠한 실패도 데이터 롤백을 유발하며 실행 이력도 롤백됩니다.", + "Auto delete history when execution is on end status": "실행이 종료 상태일 때 자동으로 이력 삭제", + "Trigger": "트리거", + "Trigger variables": "트리거 변수", + "Trigger data": "트리거 데이터", + "Trigger time": "트리거 시간", + "Triggered at": "트리거 시간", + "Bind workflows": "워크플로우 바인딩", + "Workflow will be triggered after submitting succeeded.": "제출 성공 후 워크플로우가 트리거됩니다.", + "Workflow will be triggered after saving succeeded.": "저장 성공 후 워크플로우가 트리거됩니다.", + "Workflow will be triggered directly once the button is clicked, without data saving.": "버튼을 클릭하면 데이터 저장 없이 워크플로우가 직접 트리거됩니다.", + "Submit to workflow": "워크플로우에 제출", + "Add workflow": "워크플로우 추가", + "Select workflow": "워크플로우 선택", + "Trigger data context": "트리거 데이터 컨텍스트", + "Full form data": "전체 폼 데이터", + "Select context": "컨텍스트 선택", + "Collection event": "데이터 테이블 이벤트", + "Event will be triggered on collection data row created, updated or deleted.": "데이터 테이블의 데이터 행이 생성, 업데이트 또는 삭제될 때 이벤트가 트리거됩니다.", + "Trigger on": "트리거 조건", + "After record added": "레코드 추가 후", + "After record updated": "레코드 업데이트 후", + "After record added or updated": "레코드 추가 또는 업데이트 후", + "After record deleted": "레코드 삭제 후", + "Changed fields": "변경된 필드", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When the record is added or deleted, any field is considered to have been changed.": "선택한 필드 중 하나라도 변경되면 트리거됩니다. 선택하지 않으면 어떤 필드가 변경되더라도 트리거됩니다. 레코드가 추가되거나 삭제될 때는 어떤 필드든지 변경된 것으로 간주됩니다.", + "Only triggers when match conditions": "일치하는 조건이 충족될 때만 트리거됩니다", + "Preload associations": "연결 데이터를 미리 로드합니다", + "Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": "후속 노드에서 액세스해야 하는 연관 필드를 선택하십시오. 두 개 이상의 수많은 연관 레벨은 성능 문제를 발생시킬 수 있으므로 주의해서 사용하십시오.", + "Schedule event": "일정 이벤트", + "Event will be scheduled and triggered based on time conditions.": "이벤트는 시간 조건을 기반으로 예약되고 트리거됩니다.", + "Trigger mode": "트리거 모드", + "Based on certain date": "특정 날짜를 기준으로", + "Based on date field of collection": "컬렉션의 날짜 필드를 기반으로", + "Starts on": "시작 날짜", + "Ends on": "종료 날짜", + "No end": "종료 없음", + "Exactly at": "정확한 시각", + "Repeat mode": "반복 모드", + "Repeat limit": "반복 제한", + "No limit": "제한 없음", + "Seconds": "초", + "Minutes": "분", + "Hours": "시간", + "Days": "일", + "Weeks": "주", + "Months": "월", + "No repeat": "반복 없음", + "Every": "매", + "By minute": "분당", + "By hour": "시간당", + "By day": "매일", + "By week": "매주", + "By month": "매월", + "By field": "필드별", + "By custom date": "사용자 정의 날짜별", + "Advanced": "고급", + "End": "종료", + "Node result": "노드 결과", + "Variable key of node": "노드 변수 키", + "Scope variables": "범위 변수", + "Operator": "연산자", + "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression can be a static or dynamic one from an expression collections.": "계산 엔진을 기반으로 식을 계산하고 결과값을 얻습니다. 상류 노드의 변수를 식에서 사용할 수 있습니다. 식은 표현식 컬렉션에서 정적 또는 동적일 수 있습니다.", + "String operation": "문자열 연산", + "System variables": "시스템 변수", + "System time": "시스템 시간", + "Date variables": "날짜 변수", + "Executed at": "실행된 시각", + "Queueing": "대기 중", + "On going": "진행 중", + "Resolved": "해결됨", + "Pending": "보류 중", + "Failed": "실패", + "Error": "오류", + "Aborted": "중단됨", + "Canceled": "취소됨", + "Rejected": "거부됨", + "Retry needed": "재시도 필요", + "Triggered but still waiting in the queue to execute.": "트리거되었지만 아직 대기열에서 실행 대기 중입니다.", + "Started and executing, maybe waiting for an async callback (manual, delay, etc.).": "시작되어 실행 중이며, 비동기 콜백을 기다리는 중일 수 있습니다(수동, 지연 등).", + "Successfully finished.": "성공적으로 완료됨", + "Failed to satisfy node configurations.": "노드 구성을 충족하지 못했습니다.", + "Some node meets error.": "일부 노드에서 오류가 발생했습니다.", + "Running of some node was aborted by program flow.": "프로그램 플로우에 의해 일부 노드의 실행이 중단되었습니다.", + "Manually canceled the whole execution when waiting.": "대기 중에 수동으로 전체 실행이 취소되었습니다.", + "Rejected from a manual node.": "수동 노드에서 거부되었습니다.", + "General failed but should do another try.": "일반적인 실패이지만 다시 시도해야 합니다.", + "Operations": "작업", + "This node contains branches, deleting will also be performed on them, are you sure?": "이 노드에는 분기가 포함되어 있습니다. 삭제하면 그들에게도 적용됩니다. 계속하시겠습니까?", + "Control": "프로세스 제어", + "Collection operations": "데이터 테이블 조작", + "Manual": "수동", + "Extended types": "확장된 유형", + "Node type": "노드 유형", + "Calculation": "계산", + "Calculation engine": "계산 엔진", + "Basic": "기본", + "Calculation expression": "계산식", + "Expression syntax error": "식 문법 오류", + "Syntax references: ": "문법 참조:", + "Calculation result": "계산 결과", + "True": "참", + "False": "거짓", + "concat": "연결", + "Condition": "조건", + "Based on the boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": "계산 결과의 참/거짓을 기반으로 프로세스를 '계속' 또는 '종료'하거나 '예' 및 '아니오'의 다른 분기에서 계속합니다.", + "Mode": "모드", + "Continue when \"Yes\"": "\"예\"일 때 계속", + "Branch into \"Yes\" and \"No\"": "\"예\" 및 \"아니오\"로 분기", + "Condition expression": "조건식", + "Create record": "레코드 생성", + "Add a new record to a collection. You can use variables from upstream nodes to assign values to fields.": "컬렉션에 새로운 레코드를 추가합니다. 상류 노드의 변수를 사용하여 필드에 값을 할당할 수 있습니다.", + "Update record": "레코드 업데이트", + "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": "데이터 테이블의 레코드를 업데이트합니다. 상류 노드의 변수를 쿼리 조건 및 필드 값으로 사용할 수 있습니다.", + "Update mode": "업데이트 모드", + "Update in a batch": "일괄 업데이트", + "Update one by one": "개별 업데이트", + "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": "일괄로 모든 해당 데이터를 한 번에 업데이트하며, 데이터 양이 많을 때 성능이 더 좋습니다. 그러나 업데이트된 데이터는 다른 워크플로를 트리거하지 않으며 감사 로그를 기록하지 않습니다.", + "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": "업데이트된 데이터는 다른 워크플로를 트리거하고 감사 로그도 기록할 수 있습니다. 그러나 일반적으로 몇 개 또는 몇 십 개의 데이터에만 적용되며, 그렇지 않으면 성능 문제가 발생할 수 있습니다.", + "Query record": "데이터 조회", + "Query records from a collection. You can use variables from upstream nodes as query conditions.": "데이터 테이블에서 레코드를 조회합니다. 상류 노드의 변수를 쿼리 조건으로 사용할 수 있습니다.", + "Allow multiple records as a result": "다중 레코드 결과 허용", + "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": "선택한 경우, 쿼리 결과에 여러 레코드가 있는 경우 결과로 배열이 반환되어 루프 노드를 사용하여 하나씩 조작할 수 있습니다. 그렇지 않으면 하나의 레코드만 반환됩니다.", + "Exit when the query result is null": "쿼리 결과가 null인 경우 종료", + "Please select the collection first": "먼저 데이터 테이블을 선택하세요.", + "Only update records matching conditions": "조건과 일치하는 레코드만 업데이트", + "Please add at least one condition": "최소한 하나의 조건을 추가하세요.", + "Unassigned fields will be set to default values, and those without default values will be set to null.": "미할당된 필드는 기본값으로 설정되며 기본값이 없는 필드는 null로 설정됩니다.", + "Delete record": "데이터 삭제", + "Delete records of a collection. Could use variables in the workflow context as a filter. All records matching the filter will be deleted.": "데이터 테이블의 레코드를 삭제합니다. 워크플로 컨텍스트의 변수를 필터로 사용할 수 있습니다. 필터와 일치하는 모든 레코드가 삭제됩니다.", + "Executed workflow cannot be modified": "이미 실행된 워크플로는 수정할 수 없습니다.", + "Cannot delete": "삭제할 수 없음", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "이 노드의 결과가 다른 노드에서 참조되었습니다({{nodes}}). 삭제 전에 참조를 제거하세요.", + "Form event": "폼 이벤트", + "Event triggers when submitted a workflow bound form action.": "작업 흐름에 바인딩된 폼 작업이 제출될 때 이벤트가 트리거됩니다.", + "Form data model": "폼 데이터 모델", + "Use a collection to match form data.": "폼 데이터를 일치시키기 위해 데이터 테이블을 사용합니다.", + "Associations to use": "사용할 관련 데이터", + "User submitted form": "사용자가 제출한 폼", + "Role of user submitted form": "사용자 제출 폼의 역할", + "Aggregate": "집계 조회", + "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "데이터 테이블의 여러 레코드 또는 레코드의 관련 데이터에 대한 카운트, 합계, 최대값, 최소값, 평균값을 찾습니다.", + "Aggregator function": "집계 함수", + "Target type": "대상 유형", + "Data of collection": "데이터 테이블 데이터", + "Data of associated collection": "관련 데이터 테이블 데이터", + "Field to aggregate": "집계할 필드", + "Distinct": "중복 제거", + "Query result": "쿼리 결과", + "Delay": "지연", + "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "일정 시간 동안 지연한 다음 프로세스를 계속하거나 종료합니다. 병렬 분기에서 대기 또는 타임아웃 시간을 설정하는 데 사용할 수 있습니다.", + "Duration": "기간", + "End Status": "종료 상태", + "Select status": "상태 선택", + "Succeed and continue": "성공하고 계속", + "Fail and exit": "실패하고 종료", + "Dynamic Calculation": "동적 표현식 계산", + "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "계산 엔진을 기반으로 한 식을 계산하고 결과값을 얻습니다. 상류 노드의 변수를 식에 사용할 수 있습니다. 식은 표현식 컬렉션에서 동적으로 가져온 것입니다.", + "Select dynamic expression": "동적 표현식 선택", + "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "상류 노드에서 조회한 동적 표현식을 선택하세요. 표현식 컬렉션에서 조회해야 합니다.", + "Variable datasource": "변수 데이터 소스", + "Dynamic expression": "동적 표현식", + "An expression for calculation in each rows": "각 행의 계산을 위한 식", + "Unconfigured": "구성되지 않음", + "Loop": "루프", + "Loop target": "루프 대상", + "Loop index": "현재 인덱스", + "Loop length": "루프 길이", + "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "루프 노드를 사용하면 여러 데이터 세트에 동일한 작업을 수행할 수 있습니다. 이러한 세트의 소스는 쿼리 노드에서 가져온 여러 레코드이거나 단일 레코드의 여러 관련 레코드일 수 있습니다. 루프 노드는 특정 횟수만큼 반복하거나 문자열의 각 문자를 반복하는 데에도 사용할 수 있습니다. 그러나 과도한 루핑은 성능 문제를 일으킬 수 있으므로 주의해서 사용하십시오.", + "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "단일 숫자는 루프 카운트로 처리되고, 단일 문자열은 문자 배열로 처리되며, 다른 배열이 아닌 값은 배열로 변환됩니다. 루프 노드는 루프 카운트에 도달하거나 배열 루프가 완료되었을 때 종료됩니다. 루프를 종료하려면 루프에 조건 노드를 추가할 수도 있습니다.", + "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "수동으로 데이터를 제출하고 계속 진행할지 종료할지를 결정하는 데 사용될 수 있습니다. 워크플로우가 수동 노드에 도달하면 지정된 사용자에 대해 할 일 항목을 생성하고 사용자가 양식을 제출한 후 처리를 계속합니다.", + "Values preset in this form will override user submitted ones when continue or reject.": "이 양식에 사전 설정된 값은 계속 또는 거부될 때 사용자가 제출한 값이 덮어씁니다.", + "Assignee": "담당자", + "Assignees": "담당자", + "User interface": "사용자 인터페이스", + "Configure user interface": "사용자 인터페이스 구성", + "View user interface": "사용자 인터페이스 보기", + "Separately": "별도로", + "Each user has own task": "각 사용자는 고유한 작업을 갖습니다.", + "Collaboratively": "협력하여", + "Everyone shares one task": "모두가 하나의 작업을 공유합니다.", + "Negotiation": "협상", + "All pass": "모두 통과", + "Everyone should pass": "모든 사람이 통과해야 합니다.", + "Any pass": "어떤 통과", + "Anyone pass": "누구든 통과하면 됩니다.", + "Field name existed in form": "양식에 이미 존재하는 필드 이름", + "Continue the process": "프로세스 계속 진행", + "Terminate the process": "프로세스 종료", + "Save temporarily": "임시로 저장", + "Custom form": "사용자 정의 양식", + "Data record": "데이터 레코드", + "Create record form": "레코드 생성 양식", + "Update record form": "레코드 업데이트 양식", + "Filter settings": "필터 설정", + "Workflow todos": "워크플로우 할 일", + "Task node": "작업 노드", + "Parallel branch": "병렬 분기", + "Run multiple branch processes in parallel.": "여러 분기 프로세스를 병렬로 실행합니다.", + "Add branch": "분기 추가", + "All succeeded": "모두 성공", + "Any succeeded": "어떤 것이든 성공", + "Any succeeded or failed": "어떤 것이든 성공 또는 실패", + "Continue after all branches succeeded": "모든 분기가 성공한 후 계속", + "Continue after any branch succeeded": "어떤 분기가든 성공한 후 계속", + "Continue after any branch succeeded, or exit after any branch failed.": "어떤 분기든 성공하면 계속 진행하거나 어떤 분기든 실패하면 종료합니다.", + "HTTP request": "HTTP 요청", + "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "URL에 HTTP 요청을 보냅니다. 상류 노드의 변수를 요청 헤더, 매개변수 및 요청 본문으로 사용할 수 있습니다.", + "HTTP method": "HTTP 메서드", + "URL": "주소", + "Headers": "헤더", + "Add request header": "요청 헤더 추가", + "Parameters": "매개변수", + "Add parameter": "매개변수 추가", + "Body": "본문", + "Use variable": "변수 사용", + "Format": "형식", + "Insert": "삽입", + "Timeout config": "시간 초과 설정", + "ms": "밀리초", + "Input request data": "요청 데이터 입력", + "Only support standard JSON data": "표준 JSON 데이터만 지원합니다", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" 헤더는 \"application/json\"만 지원하며 지정할 필요가 없습니다", + "Ignore failed request and continue workflow": "실패한 요청을 무시하고 워크플로를 계속합니다", + "SQL action": "SQL 작업", + "Execute a SQL statement in database": "데이터베이스에서 SQL 문을 실행합니다", + "Usage of SQL query result is not supported yet.": "아직 SQL 쿼리 결과의 사용은 지원되지 않습니다." +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/pt-BR.json new file mode 100644 index 000000000..be89e69fd --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/pt-BR.json @@ -0,0 +1,129 @@ +{ + "Workflow": "Fluxo de trabalho", + "Execution history": "Histórico de execução", + "Executed": "Executado", + "Trigger type": "Tipo de acionador", + "Status": "Status", + "On": "Ligado", + "Off": "Desligado", + "Version": "Versão", + "Copy to new version": "Copiar para nova versão", + "Duplicate": "Duplicar", + "Loading": "Carregando", + "Load failed": "Falha ao carregar", + "Trigger": "Acionador", + "Trigger variables": "Variáveis do acionador", + "Trigger data": "Dados do acionador", + "Trigger time": "Tempo do acionador", + "Triggered at": "Acionado em", + "Collection event": "Evento da coleção", + "Trigger on": "Acionar em", + "After record added": "Depois do registro ser adicionado", + "After record updated": "Depois do registro ser atualizado", + "After record added or updated": "Depois do registro ser adicionado ou atualizado", + "After record deleted": "Depois do registro ser excluído", + "Changed fields": "Campos alterados", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Acionado apenas se um dos campos selecionados for alterado. Se não estiver selecionado, será acionado quando qualquer campo for alterado. Quando um registro é adicionado ou excluído, qualquer campo é considerado como tendo sido alterado.", + "Only triggers when match conditions": "Aciona somente quando as condições correspondem", + "Schedule event": "Evento programado", + "Trigger mode": "Modo de acionamento", + "Based on certain date": "Com base em uma data específica", + "Based on date field of collection": "Com base no campo de data da coleção", + "Starts on": "Começa em", + "Ends on": "Termina em", + "No end": "Sem fim", + "Exactly at": "Exatamente às", + "Repeat mode": "Modo de repetição", + "Repeat limit": "Limite de repetição", + "No limit": "Sem limite", + "Seconds": "Segundos", + "Minutes": "Minutos", + "Hours": "Horas", + "Days": "Dias", + "Weeks": "Semanas", + "Months": "Meses", + "No repeat": "Sem repetição", + "Every": "Cada", + "By minute": "Por minuto", + "By hour": "Por hora", + "By day": "Por dia", + "By week": "Por semana", + "By month": "Por mês", + "By field": "Por campo", + "By custom date": "Por data personalizada", + "Advanced": "Avançado", + "End": "Fim", + "Node result": "Resultado do nó", + "Constant": "Constante", + "Null": "Nulo", + "Boolean": "Booleano", + "String": "String", + "Operator": "Calculadora", + "Arithmetic calculation": "Cálculo aritmético", + "String operation": "Operação de string", + "Executed at": "Executado em", + "Queueing": "Em fila", + "On going": "Em andamento", + "Succeeded": "Sucesso", + "Failed": "Falhou", + "Pending": "Pendente", + "Canceled": "Cancelado", + "This node contains branches, deleting will also be preformed to them, are you sure?": "Este nó contém ramos, a exclusão também será realizada neles, você tem certeza?", + "Control": "Controle", + "Collection operations": "Operações de coleção", + "Extended types": "Tipos estendidos", + "Node type": "Tipo de nó", + "Calculation": "Cálculo", + "Configure calculation": "Configurar cálculo", + "Calculation result": "Resultado do cálculo", + "True": "Verdadeiro", + "False": "Falso", + "concat": "concatenar", + "Condition": "Condição", + "Mode": "Modo", + "Continue when \"Yes\"": "Continuar quando \"Sim\"", + "Branch into \"Yes\" and \"No\"": "Ramo em \"Sim\" e \"Não\"", + "Conditions": "Condições", + "Create record": "Criar registro", + "Update record": "Atualizar registro", + "Query record": "Consultar registro", + "Multiple records": "Múltiplos registros", + "Please select collection first": "Por favor, selecione uma coleção primeiro", + "Only update records matching conditions": "Atualizar somente registros que atendem às condições", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Campos que não recebem valor serão definidos como valor padrão e aqueles sem valor padrão serão definidos como nulo.", + "Trigger in executed workflow cannot be modified": "O acionador em fluxo de trabalho executado não pode ser modificado", + "Node in executed workflow cannot be modified": "O nó em fluxo de trabalho executado não pode ser modificado", + "Can not delete": "Não é possível excluir", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "O resultado deste nó foi referenciado por outros nós ({{nodes}}), por favor, remova a referência antes de excluir.", + "Delay": "Atraso", + "Duration": "Duração", + "End status": "Status final", + "Select status": "Selecionar status", + "Succeed and continue": "Ter sucesso e continuar", + "Fail and exit": "Falhar e sair", + "Parallel branch": "Ramo paralelo", + "Add branch": "Adicionar ramo", + "All succeeded": "Todos com sucesso", + "Any succeeded": "Qualquer um com sucesso", + "Any succeeded or failed": "Qualquer um com sucesso ou falha", + "Continue after all branches succeeded": "Continuar após todos os ramos com sucesso", + "Continue after any branch succeeded": "Continuar após qualquer ramo com sucesso", + "Continue after any branch succeeded, or exit after any branch failed": "Continuar após qualquer ramo com sucesso ou sair após qualquer ramo falhar", + "HTTP request": "Requisição HTTP", + "HTTP method": "Método HTTP", + "URL": "URL", + "Headers": "Cabeçalhos", + "Add request header": "Adicionar cabeçalho de requisição", + "Parameters": "Parâmetros", + "Add parameter": "Adicionar parâmetro", + "Body": "Corpo", + "Use variable": "Usar variável", + "Format": "Formato", + "Insert": "Inserir", + "Timeout config": "Configuração de tempo limite", + "ms": "ms", + "Input request data": "Dados de entrada da requisição", + "Only support standard JSON data": "Suporta somente dados JSON padrão", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" somente suporta \"application/json\" e não precisa ser especificado", + "Ignore fail request and continue workflow": "Ignorar falhas na requisição e continuar o fluxo de trabalho" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/ru-RU.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/ru-RU.json new file mode 100644 index 000000000..50de498b8 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/ru-RU.json @@ -0,0 +1,87 @@ +{ + "Workflow": "Рабочий процесс", + "Execution history": "История запусков", + "Trigger type": "Тип триггера", + "Status": "Статус", + "On": "Вкл.", + "Off": "Выкл.", + "Version": "Версия", + "Copy to new version": "Скопировать в новую версию", + "Load failed": "Загрузка не удалась", + "Trigger": "Триггер", + "Collection event": "Событие коллекции", + "Trigger on": "Триггер на", + "After record added": "После добавления записи", + "After record updated": "После обновления записи", + "After record added or updated": "После добавления или обновления записи", + "After record deleted": "После удаления записи", + "Changed fields": "Измененные поля", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Запускается только при изменении одного из выбранных полей. Если флажок не установлен, это означает, что он будет срабатывать при изменении любого поля. При добавлении или удалении записи любое поле считается измененным.", + "Only triggers when match conditions": "Срабатывает только при совпадении условий", + "Schedule event": "Событие по расписанию", + "Trigger mode": "Режим триггера", + "Based on certain date": "На основе определенной даты", + "Based on date field of collection": "На базе поля с датой в коллекции", + "Starts on": "Стартует с", + "Ends on": "Оканчивается в", + "Exactly at": "Ровно в", + "Repeat mode": "Режим повтора", + "Repeat limit": "Ограничение на повторы", + "No limit": "Нет ограничений", + "Seconds": "Секунды", + "Minutes": "Минуты", + "Hours": "Часы", + "Days": "Дни", + "Weeks": "Недели", + "Months": "Месяцы", + "No repeat": "Не повторять", + "Every": "Каждые", + "By minute": "По минутам", + "By hour": "По часам", + "By day": "По дням", + "By week": "По неделям", + "By month": "По месяцам", + "By field": "По полю", + "By custom date": "По пользовательской дате", + "Advanced": "Продвинутый", + "End": "Окончание", + "Trigger variables": "Контекст триггера", + "Node result": "Результат Узла", + "Constant": "Константа", + "Boolean": "Логический", + "String": "Строка", + "Arithmetic calculation": "Арифметическое вычисление", + "String operation": "Операция со строкой", + "On going": "Непрерывный", + "Succeeded": "Успешный", + "Failed": "Неудачный", + "Canceled": "Прерванный", + "This node contains branches, deleting will also be preformed to them, are you sure?": "Этот узел содержит ветки, к ним тоже будет произведено удаление, вы уверены?", + "Control": "Управление", + "Collection operations": "Операции с Коллекцией", + "Node type": "Тип Узла", + "Calculation": "Вычисление", + "Configure calculation": "Настроить вычисление", + "Calculation result": "Результат вычисления", + "True": "Истина", + "False": "Ложь", + "Condition": "Условие", + "Mode": "Режим", + "Continue when \"Yes\"": "Продолжить когда \"Да\"", + "Branch into \"Yes\" and \"No\"": "Разветвление на \"Да\" and \"Нет\"", + "Conditions": "Условия", + "Create record": "Создать запись", + "Update record": "Обновить запись", + "Query record": "Запрос записи", + "Multiple records": "Множество записей", + "Please select collection first": "Выберите сначала Коллекцию, пожалуйста", + "Only update records matching conditions": "Обновлять только записи, соответствующие условиям", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Поля, которым не присвоено значение, будут установлены на значение по умолчанию, а поля, не имеющие значения по умолчанию, будут установлены на null.", + "Trigger in executed workflow cannot be modified": "Триггер в выполняемом рабочем процессе не может быть изменен", + "Node in executed workflow cannot be modified": "Узел в выполняемом рабочем процессе не может быть изменен", + "Parallel branch": "Параллельная ветвь", + "All succeeded": "Всё успешно", + "Any succeeded": "Что-то успешно", + "Continue after all branches succeeded": "Продолжать после успеха на всех ветвях", + "Continue after any branch succeeded": "Продолжать после успеха на любой из ветвей" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/tr-TR.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/tr-TR.json new file mode 100644 index 000000000..5da8dd86c --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/tr-TR.json @@ -0,0 +1,87 @@ +{ + "Workflow": "İş Akışı", + "Execution history": "Yürütme Geçmişi", + "Trigger type": "Tetikleme türü", + "Status": "Durum", + "On": "Aç", + "Off": "Kapa", + "Version": "Sürüm", + "Copy to new version": "Yeni sürüme kopyala", + "Load failed": "Yükleme başarısız", + "Trigger": "Tetikle", + "Collection event": "Koleksiyon etkinliği", + "Trigger on": "Tetikleme açık", + "After record added": "Kayıt eklendikten sonra", + "After record updated": "Kayıt güncellendikten sonra", + "After record added or updated": "Kayıt eklendikten veya güncellendikten sonra", + "After record deleted": "Kayıt silindikten sonra", + "Changed fields": "Değiştirilen alanlar", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "Yalnızca seçilen alanlardan biri değiştiğinde tetiklenir. Seçili değilse, herhangi bir alan değiştiğinde tetikleneceği anlamına gelir. Kayıt eklendiğinde veya silindiğinde, herhangi bir alan değiştirilmiş olarak kabul edilir.", + "Only triggers when match conditions": "Yalnızca eşleşme koşulları olduğunda tetiklenir", + "Schedule event": "Etkinlik planla", + "Trigger mode": "Tetikleme modu", + "Based on certain date": "Belirli bir tarihe göre", + "Based on date field of collection": "Koleksiyonun tarih alanına göre", + "Starts on": "Başlangıç", + "Ends on": "Bitiş", + "Exactly at": "Tam zamanı", + "Repeat mode": "Tekrarlama modu", + "Repeat limit": "Tekrarlama limiti", + "No limit": "Limit yok", + "Seconds": "Saniye", + "Minutes": "Dakika", + "Hours": "Saat", + "Days": "Gün", + "Weeks": "Hafta", + "Months": "Ay", + "No repeat": "Tekrar yok", + "Every": "Her", + "By minute": "Dakikada", + "By hour": "Saatte", + "By day": "Günde", + "By week": "Haftada", + "By month": "Ayda", + "By field": "Alanda", + "By custom date": "Özel tarihe göre", + "Advanced": "Gelişmiş", + "End": "Son", + "Trigger variables": "Tetikleyici bağlamı", + "Node result": "Düğüm sonucu", + "Constant": "Devamlı", + "Boolean": "Boolean", + "String": "String", + "Arithmetic calculation": "Aritmetik hesaplama", + "String operation": "String operation", + "On going": "Devam eden", + "Succeeded": "Başarılı", + "Failed": "Başarısız", + "Canceled": "İptal edilen", + "This node contains branches, deleting will also be preformed to them, are you sure?": "Bu düğüm başka içeriklerle bağlantı içeriyor, silme işlemini onaylarsanız o bağlantılarda silinecek, emin misiniz?", + "Control": "Kontrol", + "Collection operations": "Koleksiyon operasyonları", + "Node type": "Düğüm türü", + "Calculation": "Hesaplama", + "Configure calculation": "Hesaplamayı yapılandır", + "Calculation result": "Hesaplama sonucu", + "True": "Doğru", + "False": "Yanlış", + "Condition": "Koşul", + "Mode": "Tür", + "Continue when \"Yes\"": "\"Evet\" durumunda devam", + "Branch into \"Yes\" and \"No\"": "\"Evet\" ve \"Hayır\" olarak dallandırın", + "Conditions": "Koşullar", + "Create record": "Kayıt oluştur", + "Update record": "Kayıt güncelle", + "Query record": "Sorgu kaydı", + "Multiple records": "Birden çok kayıt", + "Please select collection first": "Lütfen önce koleksiyonu seçin", + "Only update records matching conditions": "Yalnızca koşullarla eşleşen kayıtları güncelleyin", + "Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.": "Değer atanmamış alanlar varsayılan değere, varsayılan değeri olmayan alanlar ise null olarak ayarlanır.", + "Trigger in executed workflow cannot be modified": "Yürütülen iş akışındaki tetikleyici değiştirilemez", + "Node in executed workflow cannot be modified": "Yürütülen iş akışındaki düğüm değiştirilemez", + "Parallel branch": "Paralel dal", + "All succeeded": "Hepsi başarılı", + "Any succeeded": "Herhangi biri başarılı", + "Continue after all branches succeeded": "Tüm dallar başarılı olduktan sonra devam et", + "Continue after any branch succeeded": "Herhangi bir dal başarılı olduktan sonra devam et" +} \ No newline at end of file diff --git a/packages/plugins/@tachybase/plugin-workflow/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-workflow/src/locale/zh-CN.json new file mode 100644 index 000000000..a07773644 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-workflow/src/locale/zh-CN.json @@ -0,0 +1,261 @@ +{ + "Workflow": "工作流", + "Execution history": "执行历史", + "Clear all executions": "清除所有执行记录", + "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "清空执行记录不会重置执行次数,且执行中的也不会被删除,确定要删除所有执行记录吗?", + "Executed": "已执行", + "Sync enabled status of all workflows from database": "从数据库同步所有工作流的启用状态", + "Trigger type": "触发方式", + "Status": "状态", + "On": "启用", + "Off": "停用", + "Version": "版本", + "Copy to new version": "复制到新版本", + "Duplicate": "复制", + "Duplicate to new workflow": "复制为新工作流", + "Delete a main version will cause all other revisions to be deleted too.": "删除主版本将导致其他版本一并被删除。", + "Loading": "加载中", + "Load failed": "加载失败", + "Use transaction": "启用事务", + "Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。", + "Auto delete history when execution is on end status": "执行结束后自动删除对应状态的历史记录", + "Trigger": "触发器", + "Trigger variables": "触发器变量", + "Trigger data": "触发器数据", + "Trigger time": "触发时间", + "Triggered at": "触发时间", + "Execute mode": "执行模式", + "Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.": "基于触发类型异步或同步执行工作流,创建后不可更改。", + "Asynchronously": "异步", + "Synchronously": "同步", + "Will be executed in the background as a queued task.": "将作为队列任务在后台执行。", + "For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.": "适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。", + "Bind workflows": "绑定工作流", + "Workflow will be triggered before or after submitting succeeded based on workflow type.": "工作流会基于其类型在提交成功之前或之后触发。", + "Workflow will be triggered directly once the button clicked, without data saving.": "按钮点击后直接触发工作流,但不会保存数据。", + "Workflow will be triggered before deleting succeeded.": "删除成功之前触发工作流。", + "Submit to workflow": "提交至工作流", + "Add workflow": "添加工作流", + "Select workflow": "选择工作流", + "Trigger data context": "触发数据上下文", + "Full form data": "完整表单数据", + "Select context": "选择上下文", + "Collection event": "数据表事件", + "Event will be triggered on collection data row created, updated or deleted.": "当数据表中的数据被新增、更新或删除时触发。", + "Trigger on": "触发时机", + "After record added": "新增数据后", + "After record updated": "更新数据后", + "After record added or updated": "新增或更新数据后", + "After record deleted": "删除数据后", + "Changed fields": "发生变动的字段", + "Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增或删除数据时,任意字段都被认为发生变动。", + "Only triggers when match conditions": "满足以下条件才触发", + "Preload associations": "预加载关联数据", + "Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": "请选中需要在后续节点中被访问的关系字段。超过两层的对多关联可能会导致性能问题,请谨慎使用。", + "Schedule event": "定时任务", + "Event will be scheduled and triggered base on time conditions.": "基于时间条件进行定时触发的事件。", + "Trigger mode": "触发模式", + "Based on certain date": "自定义时间", + "Based on date field of collection": "根据数据表时间字段", + "Starts on": "开始于", + "Ends on": "结束于", + "No end": "不结束", + "Exactly at": "当时", + "Repeat mode": "重复模式", + "Repeat limit": "重复次数", + "No limit": "不限", + "Seconds": "秒", + "Minutes": "分钟", + "Hours": "小时", + "Days": "天", + "Weeks": "周", + "Months": "月", + "No repeat": "不重复", + "Every": "每", + "By minute": "按分钟", + "By hour": "按小时", + "By day": "按天", + "By week": "按周", + "By month": "按月", + "By field": "数据表字段", + "By custom date": "自定义时间", + "Advanced": "高级模式", + "End": "结束", + "Node result": "节点数据", + "Variable key of node": "节点变量标识", + "Scope variables": "局域变量", + "Operator": "运算符", + "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.": "基于计算引擎对一个表达式进行计算,并获得一个值作为结果。表达式中可以使用上游节点里的变量。", + "String operation": "字符串", + "System variables": "系统变量", + "System time": "系统时间", + "Date variables": "日期变量", + "Executed at": "执行于", + "Queueing": "队列中", + "On going": "进行中", + "Resolved": "完成", + "Pending": "待处理", + "Failed": "失败", + "Error": "出错", + "Aborted": "已终止", + "Canceled": "已取消", + "Rejected": "已拒绝", + "Retry needed": "需重试", + "Triggered but still waiting in queue to execute.": "已触发但仍在队列中等待执行。", + "Started and executing, maybe waiting for an async callback (manual, delay etc.).": "已开始执行,可能在等待异步回调(人工、延时等)。", + "Successfully finished.": "成功完成。", + "Failed to satisfy node configurations.": "未满足节点配置造成的失败。", + "Some node meets error.": "某个节点出错。", + "Running of some node was aborted by program flow.": "某个节点被程序流程终止。", + "Manually canceled whole execution when waiting.": "等待时被手动取消整个执行。", + "Rejected from a manual node.": "被人工节点拒绝继续。", + "General failed but should do another try.": "执行失败,需重试。", + "Cancel the execution": "取消执行", + "Are you sure you want to cancel the execution?": "确定要取消该执行吗?", + "Operations": "操作", + "This node contains branches, deleting will also be preformed to them, are you sure?": "节点包含分支,将同时删除其所有分支下的子节点,确定继续?", + "Control": "流程控制", + "Collection operations": "数据表操作", + "Manual": "人工处理", + "Extended types": "扩展类型", + "Node type": "节点类型", + "Calculation": "运算", + "Calculation engine": "运算引擎", + "Basic": "基础", + "Calculation expression": "运算表达式", + "Expression syntax error": "表达式语法错误", + "Syntax references: ": "语法参考:", + "Calculation result": "运算结果", + "True": "真", + "False": "假", + "concat": "连接", + "Condition": "条件判断", + "Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": "基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。", + "Mode": "模式", + "Continue when \"Yes\"": "“是”则继续", + "Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续", + "Condition expression": "条件表达式", + "Create record": "新增数据", + "Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": "向一个数据表中添加新的数据。可以使用上游节点里的变量为字段赋值。", + "Update record": "更新数据", + "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": "更新一个数据表中的数据。可以使用上游节点里的变量作为查询条件和数据值。", + "Update mode": "更新模式", + "Update in a batch": "批量更新", + "Update one by one": "逐条更新", + "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": "一次性更新所有符合条件的数据,在数据量较大时有比较好的性能;但被更新的数据不会触发其他工作流,也不会记录更新日志。", + "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": "被更新的数据可以再次触发其他工作流,也会记录更新日志;但通常只适用于数条或数十条数据,否则会有性能问题。", + "Query record": "查询数据", + "Query records from a collection. You can use variables from upstream nodes as query conditions.": "查询一个数据表中的数据。可以使用上游节点里的变量作为查询条件。", + "Allow multiple records as result": "允许结果是多条数据", + "If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": "选中后,当查询结果有多条记录时,会返回数组作为结果,可以使用循环节点对它逐条操作;否则,仅返回一条数据。", + "Exit when query result is null": "查询结果为空时,退出流程", + "Please select collection first": "请先选择数据表", + "Only update records matching conditions": "只更新满足条件的数据", + "Please add at least one condition": "请添加至少一个条件", + "Unassigned fields will be set to default values, and those without default values will be set to null.": "未被赋值的字段将被设置为默认值,没有默认值的设置为空值。", + "Delete record": "删除数据", + "Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.": "删除一个数据表中的数据。可以使用上游节点里的变量作为过滤条件。所有满足条件的数据都将被删除。", + "Executed workflow cannot be modified": "已经执行过的工作流不能被修改", + "Can not delete": "无法删除", + "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "该节点的执行结果已被其他节点({{nodes}})引用,删除前请先移除引用。", + "End process": "结束流程", + "End the process immediately, with set status.": "以设置的状态立即结束流程。", + "End status": "到时状态", + "Succeeded": "成功", + "Action event": "操作事件", + "Triggers after specific operations on data are submitted, such as create, update, delete, etc., or directly submitting a record to the workflow.": "在对数据的特定操作提交后触发,如创建、更新、删除等,或直接提交一条数据至工作流。", + "Collection": "数据表", + "Which collection record belongs to.": "数据所属的数据表。", + "Associations to use": "待使用的关系数据", + "User submitted action": "提交操作的用户", + "Role of user submitted action": "提交操作用户的角色", + "Aggregate": "聚合查询", + "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "对一个数据表里的多条数据或者一条数据里的关系数据进行统计、求和、求最大值、最小值、平均值。", + "Aggregator function": "聚合函数", + "Target type": "目标类型", + "Data of collection": "数据表数据", + "Data of associated collection": "关联数据表数据", + "Field to aggregate": "聚合字段", + "Distinct": "去重", + "Query result": "查询结果", + "Delay": "延时", + "Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "延时一段时间,然后继续或退出流程。可以用于并行分支中等待其他分支或设置超时时间。", + "Duration": "时长", + "Select status": "选择状态", + "Succeed and continue": "通过并继续", + "Fail and exit": "失败并退出", + "Expression": "表达式", + "Dynamic Calculation": "动态表达式计算", + "Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。", + "Select dynamic expression": "选择动态表达式", + "Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。", + "Variable datasource": "变量数据源", + "Dynamic expression": "动态表达式", + "Used to store expressions for use in workflows so that different expressions can be called for different data.": "用于存储表达式,在工作流中使用,以便针对不同的数据调用不同的表达式。", + "Unconfigured": "未配置", + "Loop": "循环", + "Loop target": "循环对象", + "Loop index": "当前索引", + "Loop length": "循环长度", + "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "使用循环节点可以对多条数据进行同样的操作,多条数据的来源可以是查询节点的多条结果,或者一条数据的多条关系数据。也可以用于一定次数的循环,或者对字符串中每一个字符的循环处理。循环次数过高可能引起性能问题,请谨慎使用。", + "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "单一数字值将被视为循环次数,单一字符串值将被视为字符数组,其他非数组值将被转换为数组。达到循环次数,或者将数组循环完成后,循环节点结束。你也可以在循环中添加条件节点,以终止循环。", + "Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "可用于人工提交数据,并决定是否继续或退出流程。工作流在执行到人工节点时会为被指派的用户生成待办事项,直到用户提交对应表单后继续处理该流程。", + "Values preset in this form will override user submitted ones when continue or reject.": "表单中预设的字段值会在用户提交继续或拒绝时覆盖相应字段的值。", + "Assignee": "负责人", + "Assignees": "负责人", + "User interface": "操作界面", + "Configure user interface": "配置界面", + "View user interface": "查看界面", + "Separately": "分别处理", + "Each user has own task": "每个人处理各自的任务", + "Collaboratively": "协作处理", + "Everyone shares one task": "所有人共享同一个任务", + "Negotiation": "协商机制", + "All pass": "全部通过", + "Everyone should pass": "每个人通过才通过", + "Any pass": "任意通过", + "Anyone pass": "任何一人通过即通过", + "Field name existed in form": "表单中已有对应标识的字段", + "Continue the process": "继续流程", + "Terminate the process": "终止流程", + "Save temporarily": "暂存", + "Custom form": "自定义表单", + "Data record": "数据记录", + "Create record form": "新增数据表单", + "Update record form": "更新数据表单", + "Filter settings": "筛选设置", + "Workflow todos": "工作流待办", + "Task node": "任务节点", + "Unprocessed": "未处理", + "Parallel branch": "分支", + "Run multiple branch processes in parallel.": "并行运行多个分支流程。", + "Add branch": "增加分支", + "All succeeded": "全部成功", + "Any succeeded": "任意成功", + "Any succeeded or failed": "任意成功或失败", + "Continue after all branches succeeded": "全部分支都成功后才能继续", + "Continue after any branch succeeded": "任意分支成功后就继续", + "Continue after any branch succeeded, or exit after any branch failed.": "任意分支成功就继续流程,或者任意分支失败就退出流程。", + "HTTP request": "HTTP 请求", + "Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "向指定 URL 发送 HTTP 请求。可以使用上游节点里的变量作为请求头、参数和请求体。", + "HTTP method": "HTTP 方法", + "URL": "地址", + "Headers": "请求头", + "Add request header": "添加请求头", + "Parameters": "参数", + "Add parameter": "添加参数", + "Body": "请求体", + "Use variable": "使用变量", + "Format": "格式化", + "Insert": "插入", + "Timeout config": "超时设置", + "ms": "毫秒", + "Input request data": "输入请求数据", + "Only support standard JSON data": "仅支持标准 JSON 数据", + "\"Content-Type\" only support \"application/json\", and no need to specify": "\"Content-Type\" 请求头仅支持 \"application/json\",无需填写", + "Ignore failed request and continue workflow": "忽略失败的请求并继续工作流", + "SQL action": "SQL 操作", + "Execute a SQL statement in database.": "在数据库中执行一个 SQL 语句", + "Select a data source to execute SQL.": "选择一个数据源来执行 SQL", + "SQL query result could be used through <1>JSON query node (Commercial plugin).": "SQL 执行的结果可在 <1>JSON 解析节点 中使用(商业插件)。" +} \ No newline at end of file diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/Plugin.ts similarity index 89% rename from packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/Plugin.ts index 3e19f6cba..2b48d5c54 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/Plugin.ts @@ -3,7 +3,7 @@ import path from 'path'; import LRUCache from 'lru-cache'; import { Op, Transactionable } from '@nocobase/database'; -import { Plugin } from '@nocobase/server'; +import Application, { Plugin, PluginOptions } from '@nocobase/server'; import { Registry } from '@nocobase/utils'; import { Logger, LoggerOptions } from '@nocobase/logger'; @@ -24,6 +24,15 @@ import QueryInstruction from './instructions/QueryInstruction'; import UpdateInstruction from './instructions/UpdateInstruction'; import type { ExecutionModel, JobModel, WorkflowModel } from './types'; +import { PluginSql } from './features/sql/Plugin'; +import { PluginRequest } from './features/request/Plugin'; +import { PluginParallel } from './features/parallel/Plugin'; +import { PluginManual } from './features/manual/Plugin'; +import { PluginLoop } from './features/loop/Plugin'; +import { PluginDynamicCalculation } from './features/dynamic-calculation/Plugin'; +import { PluginDelay } from './features/delay/Plugin'; +import { PluginAggregate } from './features/aggregate/Plugin'; +import { PluginActionTrigger } from './features/action-trigger/Plugin'; type ID = number | string; @@ -46,6 +55,29 @@ export default class PluginWorkflowServer extends Plugin { private loggerCache: LRUCache; private meter = null; + pluginSql: PluginSql; + pluginRequest: PluginRequest; + pluginParallel: PluginParallel; + pluginManual: PluginManual; + pluginLoop: PluginLoop; + pluginDynamicCalculation: PluginDynamicCalculation; + pluginDelay: PluginDelay; + pluginAggregate: PluginAggregate; + pluginActionTrigger: PluginActionTrigger; + + constructor(app: Application, options?: PluginOptions) { + super(app, options); + this.pluginSql = new PluginSql(app, options); + this.pluginRequest = new PluginRequest(app, options); + this.pluginParallel = new PluginParallel(app, options); + this.pluginManual = new PluginManual(app, options); + this.pluginLoop = new PluginLoop(app, options); + this.pluginDynamicCalculation = new PluginDynamicCalculation(app, options); + this.pluginDelay = new PluginDelay(app, options); + this.pluginAggregate = new PluginAggregate(app, options); + this.pluginActionTrigger = new PluginActionTrigger(app, options); + } + getLogger(workflowId: ID): Logger { const now = new Date(); const date = `${now.getFullYear()}-${`0${now.getMonth() + 1}`.slice(-2)}-${`0${now.getDate()}`.slice(-2)}`; @@ -258,6 +290,15 @@ export default class PluginWorkflowServer extends Plugin { await this.executing; } }); + await this.pluginSql.load(); + await this.pluginActionTrigger.load(); + await this.pluginAggregate.load(); + await this.pluginDelay.load(); + await this.pluginDynamicCalculation.load(); + await this.pluginLoop.load(); + await this.pluginManual.load(); + await this.pluginParallel.load(); + await this.pluginRequest.load(); } toggle(workflow: WorkflowModel, enable?: boolean) { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/Processor.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/Processor.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Plugin.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Plugin.test.ts index 648342980..f1f7f214e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Plugin.test.ts @@ -1,6 +1,6 @@ import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import Plugin from '..'; import { EXECUTION_STATUS } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Processor.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Processor.test.ts index 53a209a31..e0b109ab0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/Processor.test.ts @@ -1,6 +1,6 @@ import { MockDatabase } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { EXECUTION_STATUS, JOB_STATUS } from '../constants'; describe('workflow > Processor', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/executions.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/executions.test.ts index 408e7a70a..a8733a488 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/executions.test.ts @@ -1,6 +1,6 @@ import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { EXECUTION_STATUS } from '../../constants'; describe('workflow > actions > executions', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts index b8b834393..397b95b83 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts @@ -1,6 +1,6 @@ import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; describe('workflow > actions > workflows', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts index 50bc92abc..5511959fe 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts @@ -1,6 +1,6 @@ import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; describe('workflow > actions > workflows', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts index e9ed0c5f9..dc9e67a0f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts @@ -1,6 +1,6 @@ import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { JOB_STATUS } from '../../constants'; describe('workflow > instructions > calculation', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts index f42ea7695..1865e697d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { EXECUTION_STATUS, JOB_STATUS } from '../../constants'; import { BRANCH_INDEX } from '../../instructions/ConditionInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/create.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/create.test.ts index 16b77cd15..46e0c94ec 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/create.test.ts @@ -1,6 +1,6 @@ import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; describe('workflow > instructions > create', () => { let app: Application; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts index b3fbae436..a21e672af 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts @@ -1,6 +1,6 @@ import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; describe('workflow > instructions > destroy', () => { let app: Application; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/end.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/end.test.ts index 2474d32c7..89d66e45d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/end.test.ts @@ -1,6 +1,6 @@ import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import WorkflowPlugin from '../..'; import { EXECUTION_STATUS, JOB_STATUS } from '../../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/query.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/query.test.ts index 5366e1fcb..be35c0e04 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/query.test.ts @@ -1,6 +1,6 @@ import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { EXECUTION_STATUS, JOB_STATUS } from '../../constants'; describe('workflow > instructions > query', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/update.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/update.test.ts index db5ac4953..07a6bea06 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/instructions/update.test.ts @@ -1,5 +1,5 @@ import { MockDatabase } from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; import type { WorkflowModel as WorkflowModelType } from '../../types'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts index 98d2f65ad..0a54f95b0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts @@ -1,6 +1,6 @@ import { MockDatabase } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { EXECUTION_STATUS } from '../../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts index 41c38df1e..e79e8240c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts @@ -1,6 +1,6 @@ import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; async function sleepToEvenSecond() { const now = new Date(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts index 7f74f8cbd..a57028ad2 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts @@ -1,7 +1,7 @@ import { scryptSync } from 'crypto'; import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; async function sleepToEvenSecond() { const now = new Date(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/actions/executions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/actions/executions.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/actions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/actions/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/actions/nodes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/actions/nodes.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/actions/workflows.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/actions/workflows.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/1-users_jobs.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/1-users_jobs.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/2-jobs.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/2-jobs.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/3-users.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/3-users.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/executions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/executions.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/flow_nodes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/flow_nodes.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/jobs.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/jobs.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/collections/workflows.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/collections/workflows.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/constants.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/ActionTrigger.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/ActionTrigger.ts index 0fc614183..271f1c258 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/ActionTrigger.ts @@ -4,7 +4,7 @@ import { Model, modelAssociationByKey } from '@nocobase/database'; import Application, { DefaultContext } from '@nocobase/server'; import { Context as ActionContext, Next } from '@nocobase/actions'; -import WorkflowPlugin, { Trigger, WorkflowModel, toJSON } from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { Trigger, WorkflowModel, toJSON } from '../..'; import { parseCollectionName } from '@nocobase/data-source-manager'; interface Context extends ActionContext, DefaultContext {} diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/Plugin.ts similarity index 51% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/Plugin.ts index 1c03fb7bc..50196c20d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/Plugin.ts @@ -1,11 +1,11 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import ActionTrigger from './ActionTrigger'; -export default class extends Plugin { +export class PluginActionTrigger extends Plugin { async load() { const workflowPlugin = this.app.pm.get(WorkflowPlugin) as WorkflowPlugin; - workflowPlugin.triggers.register('action', new ActionTrigger(workflowPlugin)); + workflowPlugin.registerTrigger('action', new ActionTrigger(workflowPlugin)); } } diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/__tests__/trigger.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/__tests__/trigger.test.ts index ae16cfda0..1b99a3742 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/action-trigger/__tests__/trigger.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; -import { EXECUTION_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/AggregateInstruction.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/AggregateInstruction.ts index f5d5fc79d..294433959 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/AggregateInstruction.ts @@ -1,6 +1,6 @@ import { parseCollectionName } from '@nocobase/data-source-manager'; import { DataTypes } from '@nocobase/database'; -import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; +import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '../..'; const aggregators = { count: 'count', diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/Plugin.ts similarity index 74% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/Plugin.ts index e518083a4..99f381445 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/Plugin.ts @@ -1,9 +1,9 @@ -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import { Plugin } from '@nocobase/server'; import AggregateInstruction from './AggregateInstruction'; -export default class extends Plugin { +export class PluginAggregate extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('aggregate', AggregateInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/__tests__/instruction.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/__tests__/instruction.test.ts index 712822afa..ae876e669 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/aggregate/__tests__/instruction.test.ts @@ -1,9 +1,9 @@ import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import Plugin from '..'; -import { EXECUTION_STATUS } from '@nocobase/plugin-workflow'; +import { EXECUTION_STATUS } from '@tachybase/plugin-workflow'; describe('workflow > instructions > aggregate', () => { let app: Application; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/DelayInstruction.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/DelayInstruction.ts index 9d761bd5a..f4fd60afd 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/DelayInstruction.ts @@ -1,10 +1,4 @@ -import WorkflowPlugin, { - Processor, - Instruction, - JOB_STATUS, - JobModel, - EXECUTION_STATUS, -} from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { Processor, Instruction, JOB_STATUS, JobModel, EXECUTION_STATUS } from '../..'; type ValueOf = T[keyof T]; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/Plugin.ts similarity index 73% rename from packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/Plugin.ts index e4685b6c1..d9b3c49f5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/Plugin.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import DelayInstruction from './DelayInstruction'; -export default class extends Plugin { +export class PluginDelay extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('delay', DelayInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/__tests__/instruction.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/__tests__/instruction.test.ts index 119718374..896e38381 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/delay/__tests__/instruction.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { Application } from '@nocobase/server'; describe('workflow > instructions > delay', () => { diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/DynamicCalculation.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/DynamicCalculation.ts index 5b9d92ac7..5597f0327 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/DynamicCalculation.ts @@ -1,5 +1,5 @@ import { parse } from '@nocobase/utils'; -import { FlowNodeModel, Instruction, JOB_STATUS, Processor } from '@nocobase/plugin-workflow'; +import { FlowNodeModel, Instruction, JOB_STATUS, Processor } from '../..'; import evaluators, { Evaluator } from '@nocobase/evaluators'; export class DynamicCalculation extends Instruction { diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/Plugin.ts similarity index 81% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/Plugin.ts index 3fd33dcf1..6424921e8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/Plugin.ts @@ -1,10 +1,10 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import { ExpressionField } from './expression-field'; import { DynamicCalculation } from './DynamicCalculation'; -export default class extends Plugin { +export class PluginDynamicCalculation extends Plugin { async load() { this.db.registerFieldTypes({ expression: ExpressionField, diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/__tests__/collections/categories.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/__tests__/collections/categories.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/__tests__/instruction.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/__tests__/instruction.test.ts index e18caf16f..7e9a3f09b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/__tests__/instruction.test.ts @@ -1,7 +1,7 @@ import path from 'path'; import { MockDatabase } from '@nocobase/database'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/expression-field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/dynamic-calculation/expression-field.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/LoopInstruction.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/LoopInstruction.ts index cf3999308..bfe779a9e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/LoopInstruction.ts @@ -1,4 +1,4 @@ -import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '@nocobase/plugin-workflow'; +import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '../..'; function getTargetLength(target) { let length = 0; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/Plugin.ts similarity index 70% rename from packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/Plugin.ts index 98dfb4a2b..416dc8b6c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/Plugin.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/server'; -import { default as WorkflowPlugin } from '@nocobase/plugin-workflow'; +import { default as WorkflowPlugin } from '../..'; import LoopInstruction from './LoopInstruction'; -export default class extends Plugin { +export class PluginLoop extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('loop', LoopInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/__tests__/instruction.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/__tests__/instruction.test.ts index 1c4f1002a..90ac55457 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/loop/__tests__/instruction.test.ts @@ -1,7 +1,7 @@ import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/ManualInstruction.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/ManualInstruction.ts index c3263e743..f23775852 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/ManualInstruction.ts @@ -1,5 +1,5 @@ import { Registry } from '@nocobase/utils'; -import WorkflowPlugin, { Processor, JOB_STATUS, Instruction } from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { Processor, JOB_STATUS, Instruction } from '../..'; import initFormTypes, { FormHandler } from './forms'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/Plugin.ts similarity index 79% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/Plugin.ts index 96bf044b8..bda0a0e83 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/Plugin.ts @@ -1,18 +1,15 @@ import { Plugin } from '@nocobase/server'; import actions from '@nocobase/actions'; import { HandlerType } from '@nocobase/resourcer'; -import WorkflowPlugin, { JOB_STATUS } from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { JOB_STATUS } from '../..'; -import path from 'path'; import { submit } from './actions'; import ManualInstruction from './ManualInstruction'; -export default class extends Plugin { +export class PluginManual extends Plugin { async load() { - await this.importCollections(path.resolve(__dirname, 'collections')); - - this.app.resource({ + this.app.resourcer.define({ name: 'users_jobs', actions: { list: { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/categories.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/categories.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/comments.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/comments.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/posts.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/posts.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/replies.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/replies.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/tags.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/collections/tags.ts diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/data-source.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/data-source.test.ts index e92dc9cdb..20235a644 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/data-source.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; // NOTE: skipped because time is not stable on github ci, but should work in local diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/form.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/form.test.ts index 1aa2fee67..97fd63401 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/form.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; // NOTE: skipped because time is not stable on github ci, but should work in local diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/mode.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/mode.test.ts index 8ea37def4..44d0069c9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/__tests__/mode.test.ts @@ -1,6 +1,6 @@ import Database from '@nocobase/database'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; // NOTE: skipped because time is not stable on github ci, but should work in local diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/actions.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/actions.ts index 1323bb09e..0f863d1b3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/actions.ts @@ -1,5 +1,5 @@ import { Context, utils } from '@nocobase/actions'; -import WorkflowPlugin, { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; +import WorkflowPlugin, { EXECUTION_STATUS, JOB_STATUS } from '../..'; import ManualInstruction from './ManualInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/create.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/create.ts index 9afc9b760..baed3285d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/create.ts @@ -1,4 +1,4 @@ -import { Processor } from '@nocobase/plugin-workflow'; +import { Processor } from '../../..'; import ManualInstruction from '../ManualInstruction'; export default async function ( diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/index.ts similarity index 86% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/index.ts index 2648db454..f474074f3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/index.ts @@ -1,4 +1,4 @@ -import { Processor } from '@nocobase/plugin-workflow'; +import { Processor } from '../../..'; import ManualInstruction from '../ManualInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/update.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/update.ts index 83adfe3b8..a1eaef8c9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/manual/forms/update.ts @@ -1,4 +1,4 @@ -import { Processor } from '@nocobase/plugin-workflow'; +import { Processor } from '../../..'; import ManualInstruction from '../ManualInstruction'; export default async function ( diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/ParallelInstruction.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/ParallelInstruction.ts index 938be32b1..ee1aea7c2 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/ParallelInstruction.ts @@ -1,4 +1,4 @@ -import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '@nocobase/plugin-workflow'; +import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '../..'; export const PARALLEL_MODE = { ALL: 'all', diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/Plugin.ts similarity index 74% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/Plugin.ts index 327020117..b4610cd18 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/Plugin.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import ParallelInstruction from './ParallelInstruction'; -export default class extends Plugin { +export class PluginParallel extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('parallel', ParallelInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/__tests__/instruction.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/__tests__/instruction.test.ts index 01de43a8b..8c84457f4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/parallel/__tests__/instruction.test.ts @@ -1,7 +1,7 @@ import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/Plugin.ts similarity index 74% rename from packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/request/Plugin.ts index 2c79ad4e5..d1d545855 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/Plugin.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import RequestInstruction from './RequestInstruction'; -export default class extends Plugin { +export class PluginRequest extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('request', RequestInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts index d337fb977..e3f207220 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts @@ -1,6 +1,6 @@ import axios, { AxiosRequestConfig } from 'axios'; -import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; +import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '../..'; export interface Header { name: string; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/__tests__/instruction.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/request/__tests__/instruction.test.ts index 61f589280..03f07aeb6 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/__tests__/instruction.test.ts @@ -6,8 +6,8 @@ import bodyParser from 'koa-bodyparser'; import Database from '@nocobase/database'; import { MockServer } from '@nocobase/test'; -import PluginWorkflow, { Processor, EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import PluginWorkflow, { Processor, EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import { RequestConfig } from '../RequestInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/Plugin.ts similarity index 73% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/Plugin.ts index 6cafd98bb..2cb700c27 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/Plugin.ts @@ -1,9 +1,9 @@ import { Plugin } from '@nocobase/server'; -import WorkflowPlugin from '@nocobase/plugin-workflow'; +import WorkflowPlugin from '../..'; import SQLInstruction from './SQLInstruction'; -export default class extends Plugin { +export class PluginSql extends Plugin { async load() { const workflowPlugin = this.app.getPlugin(WorkflowPlugin); workflowPlugin.registerInstruction('sql', SQLInstruction); diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/SQLInstruction.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/SQLInstruction.ts index d47a0bfbb..546dba0d6 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/SQLInstruction.ts @@ -1,4 +1,4 @@ -import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; +import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '../..'; export default class extends Instruction { async run(node: FlowNodeModel, input, processor: Processor) { diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/__tests__/instruction.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/__tests__/instruction.test.ts index 39bb2acb4..057b8b53d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/sql/__tests__/instruction.test.ts @@ -1,7 +1,7 @@ import Database, { fn } from '@nocobase/database'; import { Application } from '@nocobase/server'; -import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; -import { getApp, sleep } from '@nocobase/plugin-workflow-test'; +import { EXECUTION_STATUS, JOB_STATUS } from '@tachybase/plugin-workflow'; +import { getApp, sleep } from '@tachybase/plugin-workflow-test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/functions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/functions/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/CalculationInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/CalculationInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/ConditionInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/ConditionInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/CreateInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/CreateInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/DestroyInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/DestroyInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/EndInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/QueryInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/QueryInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/UpdateInstruction.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/UpdateInstruction.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/instructions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/instructions/index.ts diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-workflow/src/server/migrations/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-mobile-client/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-workflow/src/server/migrations/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/CollectionTrigger.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/CollectionTrigger.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/triggers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/triggers/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/types/Execution.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/types/Execution.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/types/FlowNode.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/types/FlowNode.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/types/Job.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/types/Job.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/types/Workflow.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/types/Workflow.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/types/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/types/index.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts rename to packages/plugins/@tachybase/plugin-workflow/src/server/utils.ts diff --git a/packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-workflow/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-workflow/src/swagger/index.ts diff --git a/packages/presets/tachybase/package.json b/packages/presets/tachybase/package.json index 6686b0de5..c17a7d6cc 100644 --- a/packages/presets/tachybase/package.json +++ b/packages/presets/tachybase/package.json @@ -18,7 +18,6 @@ "@nocobase/plugin-backup-restore": "workspace:*", "@nocobase/plugin-calendar": "workspace:*", "@nocobase/plugin-cas": "workspace:*", - "@nocobase/plugin-charts": "workspace:*", "@nocobase/plugin-china-region": "workspace:*", "@nocobase/plugin-client": "workspace:*", "@nocobase/plugin-collection-manager": "workspace:*", @@ -37,7 +36,6 @@ "@nocobase/plugin-localization-management": "workspace:*", "@nocobase/plugin-logger": "workspace:*", "@nocobase/plugin-map": "workspace:*", - "@nocobase/plugin-mobile-client": "workspace:*", "@nocobase/plugin-mock-collections": "workspace:*", "@nocobase/plugin-multi-app-manager": "workspace:*", "@nocobase/plugin-multi-app-share-collection": "workspace:*", @@ -51,18 +49,10 @@ "@nocobase/plugin-ui-schema-storage": "workspace:*", "@nocobase/plugin-users": "workspace:*", "@nocobase/plugin-verification": "workspace:*", - "@nocobase/plugin-workflow": "workspace:*", - "@nocobase/plugin-workflow-action-trigger": "workspace:*", - "@nocobase/plugin-workflow-aggregate": "workspace:*", - "@nocobase/plugin-workflow-delay": "workspace:*", - "@nocobase/plugin-workflow-dynamic-calculation": "workspace:*", - "@nocobase/plugin-workflow-loop": "workspace:*", - "@nocobase/plugin-workflow-manual": "workspace:*", - "@nocobase/plugin-workflow-parallel": "workspace:*", - "@nocobase/plugin-workflow-request": "workspace:*", - "@nocobase/plugin-workflow-sql": "workspace:*", - "@nocobase/schema": "workspace:*", "@nocobase/server": "workspace:*", + "@tachybase/plugin-mobile-client": "workspace:*", + "@tachybase/plugin-workflow": "workspace:*", + "@tachybase/schema": "workspace:*", "cronstrue": "^2.11.0", "lodash": "4.17.21" }, diff --git a/packages/presets/tachybase/src/server/index.ts b/packages/presets/tachybase/src/server/index.ts index bc0d3250b..cc08120de 100644 --- a/packages/presets/tachybase/src/server/index.ts +++ b/packages/presets/tachybase/src/server/index.ts @@ -33,16 +33,8 @@ export class PresetTachyBase extends Plugin { 'kanban', 'logger', 'sequence-field', + // @tachybase 'workflow', - 'workflow-action-trigger', - 'workflow-aggregate', - 'workflow-delay', - 'workflow-dynamic-calculation', - 'workflow-loop', - 'workflow-manual', - 'workflow-parallel', - 'workflow-request', - 'workflow-sql', // hera 'audit-logs', 'approval', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 782cdb325..c2fafde14 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,7 @@ overrides: '@formily/shared': 2.2.27 '@formily/validator': 2.2.27 '@types/node': ^20.12.2 + dayjs: 1.11.10 importers: @@ -451,15 +452,15 @@ importers: '@nocobase/evaluators': specifier: workspace:* version: link:../evaluators - '@nocobase/schema': - specifier: workspace:* - version: link:../schema '@nocobase/sdk': specifier: workspace:* version: link:../sdk '@nocobase/utils': specifier: workspace:* version: link:../utils + '@tachybase/schema': + specifier: workspace:* + version: link:../schema ahooks: specifier: ^3.7.2 version: 3.7.8(react@18.2.0) @@ -482,7 +483,7 @@ importers: specifier: ^3.1.0 version: 3.1.0 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 deepmerge: specifier: ^4.2.2 @@ -672,7 +673,7 @@ importers: specifier: 4.4.0 version: 4.4.0 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 deepmerge: specifier: ^4.2.2 @@ -920,13 +921,13 @@ importers: version: 2.2.27 '@formily/react': specifier: 2.2.27 - version: 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@formily/reactive': specifier: 2.2.27 version: 2.2.27 '@formily/reactive-react': specifier: 2.2.27 - version: 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + version: 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) '@formily/shared': specifier: 2.2.27 version: 2.2.27 @@ -991,9 +992,6 @@ importers: '@nocobase/resourcer': specifier: workspace:* version: link:../resourcer - '@nocobase/schema': - specifier: workspace:* - version: link:../schema '@nocobase/sdk': specifier: workspace:* version: link:../sdk @@ -1003,6 +1001,9 @@ importers: '@nocobase/utils': specifier: workspace:* version: link:../utils + '@tachybase/schema': + specifier: workspace:* + version: link:../schema '@types/decompress': specifier: 4.2.4 version: 4.2.4 @@ -1034,7 +1035,7 @@ importers: specifier: ^2.11.0 version: 2.47.0 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 decompress: specifier: 4.2.1 @@ -1257,7 +1258,7 @@ importers: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) dayjs: - specifier: ^1.11.9 + specifier: 1.11.10 version: 1.11.10 dedupe: specifier: ^3.0.2 @@ -1293,22 +1294,22 @@ importers: '@nocobase/client': specifier: workspace:* version: link:../../../core/client - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../../@nocobase/plugin-workflow '@nocobase/server': specifier: workspace:* version: link:../../../core/server '@nocobase/test': specifier: workspace:* version: link:../../../core/test + '@tachybase/plugin-workflow': + specifier: workspace:* + version: link:../../@tachybase/plugin-workflow devDependencies: '@ant-design/icons': specifier: 5.x version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@nocobase/actions': specifier: workspace:* version: link:../../../core/actions @@ -1321,12 +1322,12 @@ importers: '@nocobase/plugin-ui-schema-storage': specifier: workspace:* version: link:../../@nocobase/plugin-ui-schema-storage - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema '@nocobase/utils': specifier: workspace:* version: link:../../../core/utils + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema '@types/lodash': specifier: 4.17.0 version: 4.17.0 @@ -1364,7 +1365,7 @@ importers: '@ant-design/icons': specifier: 5.x version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/lodash': @@ -1397,9 +1398,6 @@ importers: '@nocobase/database': specifier: workspace:* version: link:../../../core/database - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema '@nocobase/server': specifier: workspace:* version: link:../../../core/server @@ -1409,13 +1407,16 @@ importers: '@nocobase/utils': specifier: workspace:* version: link:../../../core/utils + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema devDependencies: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) antd: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) @@ -1467,13 +1468,13 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@react-pdf/renderer': specifier: ^3.3.2 version: 3.3.8(react@18.2.0) + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema ahooks: specifier: ^3.7.2 version: 3.7.8(react@18.2.0) @@ -1490,7 +1491,7 @@ importers: specifier: ^3.3.3 version: 3.3.3 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 exceljs: specifier: ^4.4.0 @@ -1602,7 +1603,7 @@ importers: '@ant-design/icons': specifier: 5.x version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/lodash': @@ -1663,7 +1664,7 @@ importers: '@ant-design/icons': specifier: ^5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -1673,7 +1674,7 @@ importers: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 exceljs: specifier: ^4.4.0 @@ -1738,8 +1739,8 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/jsonwebtoken': @@ -1796,8 +1797,8 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -1828,7 +1829,7 @@ importers: specifier: workspace:* version: link:../../../core/utils devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -1856,7 +1857,7 @@ importers: '@emotion/css': specifier: ^11.7.1 version: 11.11.2 - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -1946,7 +1947,7 @@ importers: specifier: workspace:* version: link:../../../core/utils devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -1956,7 +1957,7 @@ importers: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 i18next: specifier: ^22.4.9 @@ -2004,7 +2005,7 @@ importers: '@emotion/css': specifier: ^11.7.1 version: 11.11.2 - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/cron': @@ -2052,7 +2053,7 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@hapi/topo': specifier: ^6.0.0 version: 6.0.2 @@ -2075,7 +2076,7 @@ importers: specifier: ^0.5.4 version: 0.5.4 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 decompress: specifier: ^4.2.1 @@ -2131,8 +2132,8 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -2145,7 +2146,7 @@ importers: specifier: 4.4.0 version: 4.4.0 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 lodash: specifier: ^4.17.21 @@ -2206,52 +2207,6 @@ importers: specifier: 6.x version: 6.22.3(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-charts: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - '@nocobase/utils': - specifier: workspace:* - version: link:../../../core/utils - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@formily/antd-v5': - specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - json5: - specifier: ^2.2.3 - version: 2.2.3 - lodash: - specifier: 4.17.21 - version: 4.17.21 - react: - specifier: ^18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - react-router-dom: - specifier: ^6.11.2 - version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-china-region: dependencies: '@nocobase/client': @@ -2267,7 +2222,7 @@ importers: specifier: workspace:* version: link:../../../core/test devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/cross-spawn': @@ -2386,8 +2341,8 @@ importers: devDependencies: '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -2435,8 +2390,8 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -2499,8 +2454,8 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -2513,7 +2468,7 @@ importers: specifier: ^2.3.1 version: 2.5.1 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 deepmerge: specifier: ^4.2.2 @@ -2537,18 +2492,6 @@ importers: specifier: ^6.26.0 version: 6.35.2 - packages/plugins/@nocobase/plugin-disable-pm-add: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - packages/plugins/@nocobase/plugin-error-handler: dependencies: '@nocobase/client': @@ -2600,8 +2543,8 @@ importers: devDependencies: '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/node-xlsx': @@ -2652,11 +2595,11 @@ importers: version: 3.474.0 '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@koa/multer': specifier: ^3.0.0 version: 3.0.2(multer@1.4.4) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/koa-multer': @@ -2728,8 +2671,8 @@ importers: devDependencies: '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema react: @@ -2752,13 +2695,10 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@nocobase/client': specifier: workspace:* version: link:../../../core/client - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema '@nocobase/server': specifier: workspace:* version: link:../../../core/server @@ -2768,6 +2708,9 @@ importers: '@nocobase/utils': specifier: workspace:* version: link:../../../core/utils + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema antd: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) @@ -2829,7 +2772,7 @@ importers: '@emotion/css': specifier: ^11.7.1 version: 11.11.2 - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -2875,7 +2818,7 @@ importers: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -2917,11 +2860,11 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@koa/multer': specifier: ^3.0.2 version: 3.0.2(multer@1.4.4) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/node-xlsx': @@ -2975,8 +2918,8 @@ importers: version: 11.11.2 '@formily/antd-v5': specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3028,7 +2971,7 @@ importers: '@ant-design/icons': specifier: ^5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -3113,11 +3056,11 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.24)(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + version: 1.1.9(@types/react-dom@18.2.24)(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@googlemaps/js-api-loader': specifier: ^1.16.1 version: 1.16.2 - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/google.maps': @@ -3151,70 +3094,6 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-mobile-client: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - '@nocobase/utils': - specifier: workspace:* - version: link:../../../core/utils - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@formily/antd-v5': - specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.24)(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - '@types/react': - specifier: ~18.2.73 - version: 18.2.75 - '@types/react-dom': - specifier: ~18.2.23 - version: 18.2.24 - ahooks: - specifier: 3.x - version: 3.7.8(react@18.2.0) - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - antd-mobile: - specifier: ^5.35.0 - version: 5.35.0(react-dom@18.2.0)(react@18.2.0) - antd-style: - specifier: 3.x - version: 3.6.1(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0) - classnames: - specifier: 2.x - version: 2.5.1 - lodash: - specifier: 4.17.21 - version: 4.17.21 - react: - specifier: ~18.2.0 - version: 18.2.0 - react-dom: - specifier: ~18.2.0 - version: 18.2.0(react@18.2.0) - react-i18next: - specifier: 11.x - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - react-router-dom: - specifier: 6.x - version: 6.22.3(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-mock-collections: dependencies: '@nocobase/client': @@ -3264,7 +3143,7 @@ importers: specifier: workspace:* version: link:../../../core/utils devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3325,7 +3204,7 @@ importers: specifier: workspace:* version: link:../../../core/utils devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3401,8 +3280,8 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema ahooks: @@ -3457,12 +3336,12 @@ importers: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema '@node-saml/node-saml': specifier: ^4.0.2 version: 4.0.5 + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema antd: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) @@ -3491,7 +3370,7 @@ importers: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3530,8 +3409,8 @@ importers: devDependencies: '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3544,7 +3423,7 @@ importers: specifier: 4.4.0 version: 4.4.0 dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 lodash: specifier: 4.17.21 @@ -3586,7 +3465,7 @@ importers: specifier: workspace:* version: link:../../../core/test devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3620,7 +3499,7 @@ importers: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: @@ -3683,7 +3562,7 @@ importers: version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@arvinxu/layout-kit': specifier: ^1 - version: 1.4.0(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + version: 1.4.0(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) '@ctrl/tinycolor': specifier: ^3.6.0 version: 3.6.1 @@ -3797,7 +3676,7 @@ importers: specifier: workspace:* version: link:../../../core/utils devDependencies: - '@nocobase/schema': + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema '@types/jsonwebtoken': @@ -3848,15 +3727,15 @@ importers: version: 1.4.4 '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': specifier: workspace:* version: link:../../../core/schema antd: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) dayjs: - specifier: ^1.11.8 + specifier: 1.11.10 version: 1.11.10 react: specifier: ~18.2.0 @@ -3868,7 +3747,71 @@ importers: specifier: ^4.0.525 version: 4.0.759 - packages/plugins/@nocobase/plugin-workflow: + packages/plugins/@tachybase/plugin-mobile-client: + dependencies: + '@nocobase/client': + specifier: workspace:* + version: link:../../../core/client + '@nocobase/database': + specifier: workspace:* + version: link:../../../core/database + '@nocobase/server': + specifier: workspace:* + version: link:../../../core/server + '@nocobase/test': + specifier: workspace:* + version: link:../../../core/test + '@nocobase/utils': + specifier: workspace:* + version: link:../../../core/utils + devDependencies: + '@ant-design/icons': + specifier: ~5.3.6 + version: 5.3.6(react-dom@18.2.0)(react@18.2.0) + '@formily/antd-v5': + specifier: 1.x + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema + '@types/react': + specifier: ~18.2.73 + version: 18.2.79 + '@types/react-dom': + specifier: ~18.2.23 + version: 18.2.25 + ahooks: + specifier: 3.x + version: 3.7.11(react@18.2.0) + antd: + specifier: 5.16.1 + version: 5.16.1(react-dom@18.2.0)(react@18.2.0) + antd-mobile: + specifier: ^5.35.0 + version: 5.35.0(react-dom@18.2.0)(react@18.2.0) + antd-style: + specifier: 3.x + version: 3.4.5(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0) + classnames: + specifier: 2.x + version: 2.5.1 + lodash: + specifier: 4.17.21 + version: 4.17.21 + react: + specifier: ~18.2.0 + version: 18.2.0 + react-dom: + specifier: ~18.2.0 + version: 18.2.0(react@18.2.0) + react-i18next: + specifier: 11.x + version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) + react-router-dom: + specifier: 6.x + version: 6.22.3(react-dom@18.2.0)(react@18.2.0) + + packages/plugins/@tachybase/plugin-workflow: dependencies: '@nocobase/actions': specifier: workspace:* @@ -3890,16 +3833,13 @@ importers: version: link:../../../core/logger '@nocobase/plugin-collection-manager': specifier: workspace:* - version: link:../plugin-collection-manager + version: link:../../@nocobase/plugin-collection-manager '@nocobase/plugin-error-handler': specifier: workspace:* - version: link:../plugin-error-handler + version: link:../../@nocobase/plugin-error-handler '@nocobase/plugin-users': specifier: workspace:* - version: link:../plugin-users - '@nocobase/plugin-workflow-test': - specifier: workspace:* - version: link:../plugin-workflow-test + version: link:../../@nocobase/plugin-users '@nocobase/resourcer': specifier: workspace:* version: link:../../../core/resourcer @@ -3912,34 +3852,37 @@ importers: '@nocobase/utils': specifier: workspace:* version: link:../../../core/utils + '@tachybase/schema': + specifier: workspace:* + version: link:../../../core/schema devDependencies: '@ant-design/icons': specifier: ~5.3.6 version: 5.3.6(react-dom@18.2.0)(react@18.2.0) '@formily/antd-v5': specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': + version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@tachybase/plugin-workflow-test': specifier: workspace:* - version: link:../../../core/schema + version: link:../plugin-workflow-test '@types/ejs': specifier: ^3.1.1 version: 3.1.5 + '@types/lodash': + specifier: ^4.17.0 + version: 4.17.0 antd: specifier: 5.16.1 version: 5.16.1(react-dom@18.2.0)(react@18.2.0) axios: specifier: ^1.6.2 - version: 1.6.7 + version: 1.6.8 classnames: specifier: ^2.3.1 version: 2.5.1 cron-parser: specifier: 4.4.0 version: 4.4.0 - dayjs: - specifier: ^1.11.8 - version: 1.11.10 lodash: specifier: 4.17.21 version: 4.17.21 @@ -3957,348 +3900,12 @@ importers: version: 3.2.0(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0) react-router-dom: specifier: ^6.11.2 - version: 6.21.0(react-dom@18.2.0)(react@18.2.0) + version: 6.22.3(react-dom@18.2.0)(react@18.2.0) sequelize: specifier: ^6.26.0 version: 6.35.2 - packages/plugins/@nocobase/plugin-workflow-action-trigger: - dependencies: - '@nocobase/actions': - specifier: workspace:* - version: link:../../../core/actions - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/data-source-manager': - specifier: workspace:* - version: link:../../../core/data-source-manager - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - lodash: - specifier: 4.17.21 - version: 4.17.21 - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - sequelize: - specifier: ^6.26.0 - version: 6.35.2 - - packages/plugins/@nocobase/plugin-workflow-aggregate: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/data-source-manager': - specifier: workspace:* - version: link:../../../core/data-source-manager - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-delay: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-dynamic-calculation: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/evaluators': - specifier: workspace:* - version: link:../../../core/evaluators - '@nocobase/plugin-collection-manager': - specifier: workspace:* - version: link:../plugin-collection-manager - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - '@nocobase/utils': - specifier: workspace:* - version: link:../../../core/utils - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@formily/antd-v5': - specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - lodash: - specifier: 4.17.21 - version: 4.17.21 - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - react-router-dom: - specifier: ^6.11.2 - version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-loop: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-manual: - dependencies: - '@nocobase/actions': - specifier: workspace:* - version: link:../../../core/actions - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-collection-manager': - specifier: workspace:* - version: link:../plugin-collection-manager - '@nocobase/plugin-users': - specifier: workspace:* - version: link:../plugin-users - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/resourcer': - specifier: workspace:* - version: link:../../../core/resourcer - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - '@nocobase/utils': - specifier: workspace:* - version: link:../../../core/utils - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@formily/antd-v5': - specifier: 1.x - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@nocobase/schema': - specifier: workspace:* - version: link:../../../core/schema - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - dayjs: - specifier: ^1.11.8 - version: 1.11.10 - lodash: - specifier: 4.17.21 - version: 4.17.21 - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - react-router-dom: - specifier: ^6.11.2 - version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-parallel: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - '@ant-design/icons': - specifier: ~5.3.6 - version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-request: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - '@formily/antd-v5': - specifier: ^1.1.9 - version: 1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-sql: - dependencies: - '@nocobase/client': - specifier: workspace:* - version: link:../../../core/client - '@nocobase/database': - specifier: workspace:* - version: link:../../../core/database - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../plugin-workflow - '@nocobase/server': - specifier: workspace:* - version: link:../../../core/server - '@nocobase/test': - specifier: workspace:* - version: link:../../../core/test - devDependencies: - antd: - specifier: 5.16.1 - version: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ~18.2.0 - version: 18.2.0 - react-i18next: - specifier: ^11.15.1 - version: 11.18.6(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) - - packages/plugins/@nocobase/plugin-workflow-test: + packages/plugins/@tachybase/plugin-workflow-test: dependencies: '@nocobase/client': specifier: workspace:* @@ -4370,9 +3977,6 @@ importers: '@nocobase/plugin-cas': specifier: workspace:* version: link:../../plugins/@nocobase/plugin-cas - '@nocobase/plugin-charts': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-charts '@nocobase/plugin-china-region': specifier: workspace:* version: link:../../plugins/@nocobase/plugin-china-region @@ -4427,9 +4031,6 @@ importers: '@nocobase/plugin-map': specifier: workspace:* version: link:../../plugins/@nocobase/plugin-map - '@nocobase/plugin-mobile-client': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-mobile-client '@nocobase/plugin-mock-collections': specifier: workspace:* version: link:../../plugins/@nocobase/plugin-mock-collections @@ -4469,42 +4070,18 @@ importers: '@nocobase/plugin-verification': specifier: workspace:* version: link:../../plugins/@nocobase/plugin-verification - '@nocobase/plugin-workflow': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow - '@nocobase/plugin-workflow-action-trigger': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-action-trigger - '@nocobase/plugin-workflow-aggregate': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-aggregate - '@nocobase/plugin-workflow-delay': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-delay - '@nocobase/plugin-workflow-dynamic-calculation': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-dynamic-calculation - '@nocobase/plugin-workflow-loop': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-loop - '@nocobase/plugin-workflow-manual': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-manual - '@nocobase/plugin-workflow-parallel': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-parallel - '@nocobase/plugin-workflow-request': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-request - '@nocobase/plugin-workflow-sql': - specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-workflow-sql - '@nocobase/schema': - specifier: workspace:* - version: link:../../core/schema '@nocobase/server': specifier: workspace:* version: link:../../core/server + '@tachybase/plugin-mobile-client': + specifier: workspace:* + version: link:../../plugins/@tachybase/plugin-mobile-client + '@tachybase/plugin-workflow': + specifier: workspace:* + version: link:../../plugins/@tachybase/plugin-workflow + '@tachybase/schema': + specifier: workspace:* + version: link:../../core/schema cronstrue: specifier: ^2.11.0 version: 2.47.0 @@ -4521,6 +4098,7 @@ packages: /@aashutoshrathi/word-wrap@1.2.6: resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} + dev: false /@adobe/css-tools@4.3.3: resolution: {integrity: sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==} @@ -4717,22 +4295,6 @@ packages: react-dom: 18.2.0(react@18.2.0) stylis: 4.3.0 - /@ant-design/cssinjs@1.19.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-AL3qPvvt8nNTGZ0fpSdVwsQ+LfaoZ795xiapByAhVRggJBhBiNTROCG82Gwv5TI0mnmGZOc358o2d44LNxergQ==} - peerDependencies: - react: '>=16.0.0' - react-dom: '>=16.0.0' - dependencies: - '@babel/runtime': 7.24.4 - '@emotion/hash': 0.8.0 - '@emotion/unitless': 0.7.5 - classnames: 2.5.1 - csstype: 3.1.3 - rc-util: 5.39.1(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - stylis: 4.3.1 - /@ant-design/cssinjs@1.19.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-hgQ3wiys3X0sqDKWkqCJ6EYdF79i9JCvtavmIGwuuPUKmoJXV8Ff0sY+yQQSxk2dRmMyam/bYKo/Bwor45hnZw==} peerDependencies: @@ -4763,7 +4325,7 @@ packages: '@ant-design/icons-svg': 4.4.2 '@babel/runtime': 7.24.4 classnames: 2.5.1 - rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) + rc-util: 5.39.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -4816,7 +4378,7 @@ packages: react: '>=17.0.0' react-dom: '>=17.0.0' dependencies: - '@ant-design/cssinjs': 1.19.0(react-dom@18.2.0)(react@18.2.0) + '@ant-design/cssinjs': 1.19.1(react-dom@18.2.0)(react@18.2.0) '@babel/runtime': 7.24.4 '@ctrl/tinycolor': 3.6.1 antd: 5.16.1(react-dom@18.2.0)(react@18.2.0) @@ -5330,10 +4892,10 @@ packages: utility-types: 3.10.0 dev: true - /@arvinxu/layout-kit@1.4.0(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): + /@arvinxu/layout-kit@1.4.0(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0): resolution: {integrity: sha512-dEsmFwZa/NJ2XvDBL4sCPbgFPvCvpxP+G+90Ay9zqN92vc4YbgVo4NjpjsDihiNqwDQjWhasGCC3+v4w7bdYqg==} dependencies: - styled-components: 5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + styled-components: 5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) transitivePeerDependencies: - '@babel/core' - react @@ -7245,7 +6807,7 @@ packages: resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} engines: {node: '>=6.9.0'} dependencies: - regenerator-runtime: 0.14.0 + regenerator-runtime: 0.14.1 /@babel/runtime@7.24.1: resolution: {integrity: sha512-+BIznRzyqBf+2wCTxcKE3wDjfGeCoVE61KSHGpkzqrLi8qxqFwBeUFyId2cxkTmm55fzDGnm0+yCxaxygrLUnQ==} @@ -7954,27 +7516,6 @@ packages: /@emotion/memoize@0.8.1: resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} - /@emotion/react@11.11.1(@types/react@18.2.75)(react@18.2.0): - resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} - peerDependencies: - '@types/react': '*' - react: '>=16.8.0' - peerDependenciesMeta: - '@types/react': - optional: true - dependencies: - '@babel/runtime': 7.24.4 - '@emotion/babel-plugin': 11.11.0 - '@emotion/cache': 11.11.0 - '@emotion/serialize': 1.1.2 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0) - '@emotion/utils': 1.2.1 - '@emotion/weak-memoize': 0.3.1 - '@types/react': 18.2.75 - hoist-non-react-statics: 3.3.2 - react: 18.2.0 - dev: true - /@emotion/react@11.11.1(@types/react@18.2.79)(react@18.2.0): resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: @@ -9138,7 +8679,7 @@ packages: resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==} dev: true - /@formily/antd-v5@1.1.9(@types/react-dom@18.2.24)(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5): + /@formily/antd-v5@1.1.9(@types/react-dom@18.2.24)(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5): resolution: {integrity: sha512-Gw0wx6zERLJS8GvmTizV6UPNyxNrg2svbV1Dr38jwsw+dkEef7ZANNERfEpsl2TvCEDl4W3QVFNPws5woLGl8g==} engines: {npm: '>=3.0.0'} peerDependencies: @@ -9149,16 +8690,16 @@ packages: react-dom: '>=16.8.0' react-is: '>=16.8.0 || >=17.0.0' dependencies: - '@ant-design/cssinjs': 1.19.0(react-dom@18.2.0)(react@18.2.0) + '@ant-design/cssinjs': 1.19.1(react-dom@18.2.0)(react@18.2.0) '@ant-design/icons': 5.3.6(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/core': 6.1.0(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) '@formily/core': 2.2.27 '@formily/grid': 2.2.27(typescript@4.9.5) '@formily/json-schema': 2.2.27(typescript@4.9.5) - '@formily/react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5) + '@formily/react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) '@formily/reactive': 2.2.27 - '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) '@formily/shared': 2.2.27 '@types/react': 18.2.75 '@types/react-dom': 18.2.24 @@ -9166,7 +8707,7 @@ packages: classnames: 2.5.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 react-sticky-box: 1.0.2(react@18.2.0) transitivePeerDependencies: - typescript @@ -9183,7 +8724,7 @@ packages: react-dom: '>=16.8.0' react-is: '>=16.8.0 || >=17.0.0' dependencies: - '@ant-design/cssinjs': 1.19.0(react-dom@18.2.0)(react@18.2.0) + '@ant-design/cssinjs': 1.19.1(react-dom@18.2.0)(react@18.2.0) '@ant-design/icons': 5.3.6(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/core': 6.1.0(react-dom@18.2.0)(react@18.2.0) '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) @@ -9204,6 +8745,40 @@ packages: react-sticky-box: 1.0.2(react@18.2.0) transitivePeerDependencies: - typescript + dev: false + + /@formily/antd-v5@1.1.9(@types/react-dom@18.2.25)(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5): + resolution: {integrity: sha512-Gw0wx6zERLJS8GvmTizV6UPNyxNrg2svbV1Dr38jwsw+dkEef7ZANNERfEpsl2TvCEDl4W3QVFNPws5woLGl8g==} + engines: {npm: '>=3.0.0'} + peerDependencies: + '@types/react': '>=16.8.0 || >=17.0.0' + '@types/react-dom': '>=16.8.0 || >=17.0.0' + antd: ^5.1.0 + react: '>=16.8.0 || >=17.0.0' + react-dom: '>=16.8.0' + react-is: '>=16.8.0 || >=17.0.0' + dependencies: + '@ant-design/cssinjs': 1.19.1(react-dom@18.2.0)(react@18.2.0) + '@ant-design/icons': 5.3.6(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/core': 6.1.0(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) + '@formily/core': 2.2.27 + '@formily/grid': 2.2.27(typescript@4.9.5) + '@formily/json-schema': 2.2.27(typescript@4.9.5) + '@formily/react': 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5) + '@formily/reactive': 2.2.27 + '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) + '@formily/shared': 2.2.27 + '@types/react': 18.2.79 + '@types/react-dom': 18.2.25 + antd: 5.16.1(react-dom@18.2.0)(react@18.2.0) + classnames: 2.5.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-is: 18.3.1 + react-sticky-box: 1.0.2(react@18.2.0) + transitivePeerDependencies: + - typescript /@formily/core@2.2.27: resolution: {integrity: sha512-f8e4f/WlimOA7zN1ARmiRKMlIpsIH00XxT7NWAE7EV3DO2B6sq6gSq9GDc5JLwHqhiyJBAIPzUdfmIpRLwPxyQ==} @@ -9250,7 +8825,7 @@ packages: resolution: {integrity: sha512-svpYARx1N72Rzg4l9D10SpDljUjCqkFD3ogbnsLNUxO8Rh2oSmn0dw63VDYOw43RX61qHmD3VYAnGxdCv5HJ8w==} engines: {npm: '>=3.0.0'} - /@formily/react@2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(typescript@4.9.5): + /@formily/react@2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5): resolution: {integrity: sha512-IVTZ0ILM4TmsydUcj8ZyXKJol1iAlqkWf1TZ+5BeZvmv1ToeluVpkv8/7RoRnr1sNi1K5THwT4AfcQCea0yV2g==} engines: {npm: '>=3.0.0'} peerDependencies: @@ -9268,7 +8843,7 @@ packages: '@formily/core': 2.2.27 '@formily/json-schema': 2.2.27(typescript@4.9.5) '@formily/reactive': 2.2.27 - '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) '@formily/shared': 2.2.27 '@formily/validator': 2.2.27 '@types/react': 18.2.75 @@ -9276,7 +8851,7 @@ packages: hoist-non-react-statics: 3.3.2 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 transitivePeerDependencies: - typescript dev: true @@ -9310,8 +8885,39 @@ packages: react-is: 18.2.0 transitivePeerDependencies: - typescript + dev: false - /@formily/reactive-react@2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): + /@formily/react@2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0)(typescript@4.9.5): + resolution: {integrity: sha512-IVTZ0ILM4TmsydUcj8ZyXKJol1iAlqkWf1TZ+5BeZvmv1ToeluVpkv8/7RoRnr1sNi1K5THwT4AfcQCea0yV2g==} + engines: {npm: '>=3.0.0'} + peerDependencies: + '@types/react': '>=16.8.0' + '@types/react-dom': '>=16.8.0' + react: '>=16.8.0' + react-dom: '>=16.8.0' + react-is: '>=16.8.0' + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + dependencies: + '@formily/core': 2.2.27 + '@formily/json-schema': 2.2.27(typescript@4.9.5) + '@formily/reactive': 2.2.27 + '@formily/reactive-react': 2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) + '@formily/shared': 2.2.27 + '@formily/validator': 2.2.27 + '@types/react': 18.2.79 + '@types/react-dom': 18.2.25 + hoist-non-react-statics: 3.3.2 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-is: 18.3.1 + transitivePeerDependencies: + - typescript + + /@formily/reactive-react@2.2.27(@types/react-dom@18.2.24)(@types/react@18.2.75)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0): resolution: {integrity: sha512-LJefK/9g8MorhGexMiVF+FVWyMR/Vc4C63Djrj08XeXtTF0NUNUUKVBT1eZqmtdRHJSyDE7SSgUmpxcXP7QmQQ==} engines: {npm: '>=3.0.0'} peerDependencies: @@ -9332,7 +8938,7 @@ packages: hoist-non-react-statics: 3.3.2 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 dev: true /@formily/reactive-react@2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): @@ -9357,6 +8963,30 @@ packages: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-is: 18.2.0 + dev: false + + /@formily/reactive-react@2.2.27(@types/react-dom@18.2.25)(@types/react@18.2.79)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0): + resolution: {integrity: sha512-LJefK/9g8MorhGexMiVF+FVWyMR/Vc4C63Djrj08XeXtTF0NUNUUKVBT1eZqmtdRHJSyDE7SSgUmpxcXP7QmQQ==} + engines: {npm: '>=3.0.0'} + peerDependencies: + '@types/react': '>=16.8.0' + '@types/react-dom': '>=16.8.0' + react: '>=16.8.0' + react-dom: '>=16.8.0' + react-is: '>=16.8.0' + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + dependencies: + '@formily/reactive': 2.2.27 + '@types/react': 18.2.79 + '@types/react-dom': 18.2.25 + hoist-non-react-statics: 3.3.2 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-is: 18.3.1 /@formily/reactive@2.2.27: resolution: {integrity: sha512-ksdA4uIw3WMo0FmHcGsyqZgPwhujVgtXqxiWPSV+Tc2eEoJrInZhr15Q0IeTQ6glMh8izNsb19YK+PphBHwXGg==} @@ -9954,7 +9584,7 @@ packages: dependencies: async: 3.2.5 chalk: 3.0.0 - dayjs: 1.8.36 + dayjs: 1.11.10 debug: 4.3.4(supports-color@5.5.0) eventemitter2: 5.0.1 fast-json-patch: 3.1.1 @@ -10215,7 +9845,7 @@ packages: resolution: {integrity: sha512-YfcB2QrX+Wx1o6LD1G2Y2fhDhOix/bAY/oAnMpHoNLsKkWIRbt1oKLkIFvxBMzLwAEPqnYWguJrYC+J6i4ywbw==} engines: {node: '>=12.17'} dependencies: - bole: 5.0.11 + bole: 5.0.12 ndjson: 2.0.0 dev: false @@ -14153,7 +13783,7 @@ packages: rc-util: 5.39.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-fast-compare: 3.2.2 - react-is: 18.2.0 + react-is: 18.3.1 runes2: 1.1.4 staged-components: 1.1.3(react@18.2.0) tslib: 2.6.2 @@ -14183,28 +13813,6 @@ packages: - '@types/react' - react-dom - /antd-style@3.6.1(@types/react@18.2.75)(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-KpKXiAIV3CAe6TfSh/m6ET2vGuhAof7qfqeaouh5WZ0JDl5jDXXSFPeEfqvZuHAckTl+A0NzArvIHKgKt/NZ9g==} - peerDependencies: - antd: '>=5.8.1' - react: '>=18' - dependencies: - '@ant-design/cssinjs': 1.18.2(react-dom@18.2.0)(react@18.2.0) - '@babel/runtime': 7.24.0 - '@emotion/cache': 11.11.0 - '@emotion/css': 11.11.2 - '@emotion/react': 11.11.1(@types/react@18.2.75)(react@18.2.0) - '@emotion/serialize': 1.1.2 - '@emotion/server': 11.11.0(@emotion/css@11.11.2) - '@emotion/utils': 1.2.1 - antd: 5.16.1(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - use-merge-value: 1.2.0(react@18.2.0) - transitivePeerDependencies: - - '@types/react' - - react-dom - dev: true - /antd-style@3.6.1(@types/react@18.2.79)(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-KpKXiAIV3CAe6TfSh/m6ET2vGuhAof7qfqeaouh5WZ0JDl5jDXXSFPeEfqvZuHAckTl+A0NzArvIHKgKt/NZ9g==} peerDependencies: @@ -14913,7 +14521,7 @@ packages: '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.22.10) lodash: 4.17.21 picomatch: 2.3.1 - styled-components: 5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + styled-components: 5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0) transitivePeerDependencies: - '@babel/core' dev: true @@ -15108,8 +14716,8 @@ packages: resolution: {integrity: sha512-Ylo+MAo5BDUq1KA3f3R/MFhh+g8cnHmo8bz3YPGhI1znrMaf77ol1sfvYJzsw3nTE+Y2GryfDxBaR+AqpAkEHQ==} dev: false - /bole@5.0.11: - resolution: {integrity: sha512-KB0Ye0iMAW5BnNbnLfMSQcnI186hKUzE2fpkZWqcxsoTR7eqzlTidSOMYPHJOn/yR7VGH7uSZp37qH9q2Et0zQ==} + /bole@5.0.12: + resolution: {integrity: sha512-G5H5siOlUrcyvYr7kVlQyYMWip0dZ8qa+Uiy+d9QxOvBY2eaP/g8YsJVwvf3VIMbXmYxZIAOmmsuN3rL5r6gwQ==} dependencies: fast-safe-stringify: 2.1.1 individual: 3.0.0 @@ -15482,7 +15090,7 @@ packages: resolution: {integrity: sha512-9HP6nc1ZqyZgcVEpy5XS2ns9MYE6cPEM6InA1wQhR6M7GviJzLH2NTFYnf3NEfRmLE351NCSkDo2VISX8dlG+w==} dependencies: lodash.clonedeep: 4.5.0 - lru-cache: 10.1.0 + lru-cache: 10.2.0 promise-coalesce: 1.1.1 dev: false @@ -16606,8 +16214,8 @@ packages: engines: {node: '>=4'} dev: true - /css-functions-list@3.2.1: - resolution: {integrity: sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==} + /css-functions-list@3.2.2: + resolution: {integrity: sha512-c+N0v6wbKVxTu5gOBBFkr9BEdBWaqqjQeiJ8QvSRIJOf+UxlJh930m8e6/WNeODIK0mYLFkoONrnj16i2EcvfQ==} engines: {node: '>=12 || >=16'} /css-has-pseudo@3.0.4(postcss@8.4.38): @@ -17119,10 +16727,6 @@ packages: /dayjs@1.11.10: resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==} - /dayjs@1.8.36: - resolution: {integrity: sha512-3VmRXEtw7RZKAf+4Tv1Ym9AGeo8r8+CjDi26x+7SYQil1UqtqdaokhzoEJohqlzt0m5kacJSDhJQkG/LWhpRBw==} - dev: false - /debounce-fn@4.0.0: resolution: {integrity: sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==} engines: {node: '>=10'} @@ -18025,6 +17629,10 @@ packages: /es-module-lexer@1.5.0: resolution: {integrity: sha512-pqrTKmwEIgafsYZAGw9kszYzmagcE/n4dbgwGWLEXg7J4QFJVQRBld8j3Q3GNez79jzxZshq0bcT962QHOghjw==} + dev: true + + /es-module-lexer@1.5.2: + resolution: {integrity: sha512-l60ETUTmLqbVbVHv1J4/qj+M8nq7AwMzEcg3kmJDt9dCNrTk+yHcYFf/Kw75pMDwd9mPcIGCG5LcS20SxYRzFA==} /es-object-atoms@1.0.0: resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} @@ -18702,7 +18310,7 @@ packages: lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 - optionator: 0.9.3 + optionator: 0.9.4 strip-ansi: 6.0.1 text-table: 0.2.0 transitivePeerDependencies: @@ -22404,15 +22012,9 @@ packages: engines: {node: '>=8'} dev: false - /lru-cache@10.1.0: - resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==} - engines: {node: 14 || >=16.14} - dev: false - /lru-cache@10.2.0: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} - dev: true /lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -23831,6 +23433,19 @@ packages: levn: 0.4.1 prelude-ls: 1.2.1 type-check: 0.4.0 + dev: false + + /optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + dev: true /ora@5.4.1: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} @@ -25719,7 +25334,7 @@ packages: '@rc-component/mini-decimal': 1.1.0 classnames: 2.5.1 rc-input: 1.4.5(react-dom@18.2.0)(react@18.2.0) - rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) + rc-util: 5.39.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -25822,7 +25437,7 @@ packages: engines: {node: '>=8.x'} peerDependencies: date-fns: '>= 2.x' - dayjs: '>= 1.x' + dayjs: 1.11.10 luxon: '>= 3.x' moment: '>= 2.x' react: '>=16.9.0' @@ -26187,7 +25802,7 @@ packages: '@babel/runtime': 7.24.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 /rc-virtual-list@3.11.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-tu5UtrMk/AXonHwHxUogdXAWynaXsrx1i6dsgg+lOo/KJSF8oBAcprh1z5J3xgnPJD5hXxTL58F8s8onokdt0Q==} @@ -26395,7 +26010,7 @@ packages: react-native: optional: true dependencies: - '@babel/runtime': 7.24.0 + '@babel/runtime': 7.24.4 html-parse-stringify: 3.0.1 i18next: 22.5.1 react: 18.2.0 @@ -26431,6 +26046,9 @@ packages: /react-is@18.2.0: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} + /react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + /react-js-cron@3.2.0(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-DAluNX6ZpfsSDAIAfJKNyWIckTWTcQ/7IK91J4jaS4o4iihRJo/8gd7kf6ACDTE2RKt0PiSpOf1MBrrSdmdyUQ==} peerDependencies: @@ -26891,9 +26509,6 @@ packages: /regenerator-runtime@0.13.11: resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} - /regenerator-runtime@0.14.0: - resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==} - /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} @@ -28594,7 +28209,7 @@ packages: /style-search@0.1.0: resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==} - /styled-components@5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): + /styled-components@5.3.11(@babel/core@7.22.10)(react-dom@18.2.0)(react-is@18.3.1)(react@18.2.0): resolution: {integrity: sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==} engines: {node: '>=10'} peerDependencies: @@ -28612,7 +28227,7 @@ packages: hoist-non-react-statics: 3.3.2 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 shallowequal: 1.1.0 supports-color: 5.5.0 transitivePeerDependencies: @@ -28643,7 +28258,7 @@ packages: balanced-match: 2.0.0 colord: 2.9.3 cosmiconfig: 7.1.0 - css-functions-list: 3.2.1 + css-functions-list: 3.2.2 debug: 4.3.4(supports-color@5.5.0) fast-glob: 3.3.2 fastest-levenshtein: 1.0.16 @@ -29004,7 +28619,7 @@ packages: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.30.3 + terser: 5.30.4 webpack: 5.91.0 /terser@5.30.3: @@ -29017,6 +28632,16 @@ packages: commander: 2.20.3 source-map-support: 0.5.21 + /terser@5.30.4: + resolution: {integrity: sha512-xRdd0v64a8mFK9bnsKVdoNP9GQIKUAaJPTaqEQDL4w/J8WaW4sWXXoMZ+6SimPkfT5bElreXf8m9HnmPc3E1BQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.6 + acorn: 8.11.3 + commander: 2.20.3 + source-map-support: 0.5.21 + /test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} @@ -30725,7 +30350,7 @@ packages: browserslist: 4.23.0 chrome-trace-event: 1.0.3 enhanced-resolve: 5.16.0 - es-module-lexer: 1.5.0 + es-module-lexer: 1.5.2 eslint-scope: 5.1.1 events: 3.3.0 glob-to-regexp: 0.4.1 @@ -30965,6 +30590,11 @@ packages: engines: {node: '>=0.8'} dev: true + /word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + dev: true + /word@0.3.0: resolution: {integrity: sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==} engines: {node: '>=0.8'}