From ede7ead8b16243db5e244030f8405e16f4426825 Mon Sep 17 00:00:00 2001 From: sealday Date: Fri, 24 May 2024 01:06:06 +0800 Subject: [PATCH] chore(version): release v0.21.34 (#1045) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1045 --- .changeset/clean-grapes-serve.md | 4 +- .changeset/fuzzy-snails-arrive.md | 2 +- .env.e2e.example | 2 +- .env.test.example | 2 +- .prettierrc.js | 2 +- package.json | 2 +- packages/core/acl/package.json | 2 +- packages/core/actions/package.json | 2 +- packages/core/app/package.json | 2 +- packages/core/auth/package.json | 2 +- packages/core/build/package.json | 2 +- packages/core/build/src/buildPlugin.ts | 4 +- packages/core/cache/package.json | 2 +- packages/core/cli/package.json | 2 +- packages/core/cli/src/util.ts | 2 +- packages/core/client/package.json | 2 +- .../src/application/__tests__/Plugin.test.ts | 9 +- .../__tests__/utils/remotePlugins.test.ts | 78 +- .../src/data-source/collection/Collection.ts | 3 +- .../__e2e__/pluginManager.test.ts | 4 +- .../core/client/src/schema-settings/index.md | 10 +- packages/core/components/package.json | 2 +- .../core/create-tachybase-app/package.json | 2 +- .../templates/app/.env.e2e.tpl | 2 +- .../templates/app/.env.test.tpl | 2 +- .../templates/app/.env.tpl | 2 +- .../core/data-source-manager/package.json | 2 +- packages/core/database/package.json | 2 +- .../src/__tests__/sync/unique-index.test.ts | 9 +- packages/core/devtools/package.json | 2 +- packages/core/devtools/umiConfig.js | 2 +- packages/core/evaluators/package.json | 2 +- packages/core/logger/package.json | 2 +- packages/core/resourcer/package.json | 2 +- packages/core/schema/package.json | 2 +- packages/core/sdk/package.json | 2 +- packages/core/server/package.json | 2 +- packages/core/server/src/commands/index.ts | 5 +- packages/core/server/src/gateway/index.ts | 22 +- packages/core/server/src/locale/locale.ts | 4 +- packages/core/server/src/locale/resource.ts | 2 +- .../src/plugin-manager/clientStaticUtils.ts | 2 +- .../server/src/plugin-manager/constants.ts | 2 +- .../core/server/src/plugin-manager/deps.ts | 2 +- .../src/plugin-manager/plugin-manager.ts | 14 +- .../core/server/src/plugin-manager/utils.ts | 12 +- packages/core/telemetry/package.json | 2 +- packages/core/test/package.json | 2 +- .../core/test/playwright/tests/auth.setup.ts | 2 +- packages/core/utils/package.json | 2 +- .../@hera/plugin-approval-mobile/package.json | 2 +- .../@hera/plugin-approval/package.json | 4 +- .../src/server/ApprovalInstruction.ts | 2 +- .../src/server/ApprovalTrigger.ts | 2 +- .../@hera/plugin-audit-logs/package.json | 2 +- .../plugins/@hera/plugin-core/package.json | 4 +- .../src/client/features/departments/index.tsx | 2 +- .../features/RequestInterceptionTrigger.ts | 7 +- .../src/server/features/departments.ts | 5 +- .../@hera/plugin-homepage/package.json | 2 +- .../plugins/@hera/plugin-rental/package.json | 6 +- .../hooks/useAddToChecklistActionProps.tsx | 5 +- .../src/server/actions/records-controller.ts | 21 +- .../@hera/plugin-rental/src/server/plugin.ts | 19 +- .../@hera/plugin-sancongtou/package.json | 2 +- .../plugin-action-bulk-edit/README.md | 1 - .../plugin-action-bulk-update/README.md | 1 - .../plugin-action-duplicate/README.md | 1 - .../@nocobase/plugin-action-print/README.md | 1 - .../plugin-api-keys/src/constants.ts | 1 - .../plugin-data-source-manager/README.md | 1 - .../plugins/@nocobase/plugin-gantt/README.md | 1 - .../plugins/@nocobase/plugin-kanban/README.md | 1 - .../plugins/@nocobase/plugin-logger/README.md | 1 - .../src/server/external.sql | 175 ---- .../antd-token-previewer/icons/Brush.js | 60 -- .../client/antd-token-previewer/icons/Dark.js | 74 -- .../antd-token-previewer/icons/Light.js | 88 -- .../antd-token-previewer/icons/Margin.js | 60 -- .../antd-token-previewer/icons/Motion.js | 60 -- .../client/antd-token-previewer/icons/Pick.js | 88 -- .../antd-token-previewer/icons/ShapeLine.js | 60 -- .../plugin-acl/.npmignore | 0 .../plugin-acl/README.md | 0 .../plugin-acl/README.zh-CN.md | 0 .../plugin-acl/client.d.ts | 0 .../plugin-acl/client.js | 0 .../plugin-acl/package.json | 4 +- .../plugin-acl/server.d.ts | 0 .../plugin-acl/server.js | 0 .../plugin-acl/src/client/NewRole.tsx | 5 +- .../plugin-acl/src/client/RolesManagement.tsx | 12 +- .../src/client/RolesManagerProvider.tsx | 0 .../plugin-acl/src/client/RolesMenu.tsx | 12 +- .../src/client/__e2e__/association.test.ts | 1 + .../src/client/__e2e__/collection.test.ts | 3 +- .../src/client/__e2e__/configure.test.ts | 1 + .../src/client/__e2e__/menu.test.ts | 0 .../plugin-acl/src/client/__e2e__/utils.ts | 1 + .../src/client/hooks/load-more-observer.ts | 0 .../plugin-acl/src/client/index.ts | 3 +- .../plugin-acl/src/client/locale.ts | 2 +- .../client/permissions/ActionPermissions.tsx | 7 +- .../client/permissions/AvailableActions.tsx | 5 +- .../client/permissions/GeneralPermissions.tsx | 14 +- .../client/permissions/MenuItemsProvider.tsx | 5 +- .../client/permissions/MenuPermissions.tsx | 17 +- .../src/client/permissions/Permissions.tsx | 8 +- .../client/permissions/PluginPermissions.tsx | 11 +- .../permissions/RolesResourcesActions.tsx | 11 +- .../src/client/permissions/ScopeSelect.tsx | 3 +- .../client/permissions/StrategyActions.tsx | 9 +- .../src/client/permissions/style.ts | 0 .../plugin-acl/src/client/roles-manager.ts | 0 .../plugin-acl/src/client/schemas/roles.ts | 6 +- .../plugin-acl/src/client/schemas/scopes.ts | 5 +- .../plugin-acl/src/index.ts | 0 .../plugin-acl/src/locale/en-US.json | 0 .../plugin-acl/src/locale/ko_KR.json | 0 .../plugin-acl/src/locale/zh-CN.json | 0 .../src/server/__tests__/acl.test.ts | 5 +- .../src/server/__tests__/actions.test.ts | 1 + .../__tests__/association-field.test.ts | 3 +- .../server/__tests__/configuration.test.ts | 3 +- .../src/server/__tests__/list-action.test.ts | 1 + .../src/server/__tests__/middleware.test.ts | 3 +- .../src/server/__tests__/own.test.ts | 3 +- .../src/server/__tests__/prepare.ts | 0 .../src/server/__tests__/role-check.test.ts | 3 +- .../server/__tests__/role-resource.test.ts | 5 +- .../src/server/__tests__/role-user.test.ts | 3 +- .../src/server/__tests__/role.test.ts | 3 +- .../src/server/__tests__/scope.test.ts | 3 +- .../server/__tests__/setCurrentRole.test.ts | 6 +- .../src/server/__tests__/snippets.test.ts | 1 + .../src/server/__tests__/users.test.ts | 11 +- .../__tests__/write-role-to-acl.test.ts | 3 +- .../src/server/actions/available-actions.ts | 0 .../src/server/actions/role-check.ts | 0 .../src/server/actions/role-collections.ts | 0 .../src/server/actions/user-setDefaultRole.ts | 0 .../src/server/collections/roles-users.ts | 0 .../src/server/collections/roles.ts | 2 +- .../src/server/collections/rolesResources.ts | 0 .../collections/rolesResourcesActions.ts | 0 .../collections/rolesResourcesScopes.ts | 0 .../src/server/collections/users.ts | 0 .../plugin-acl/src/server/index.ts | 0 .../src/server/middlewares/setCurrentRole.ts | 0 .../src/server/middlewares/with-acl-meta.ts | 3 +- .../20221214072638-set-role-snippets.ts | 0 .../plugin-acl/src/server/model/RoleModel.ts | 2 +- .../server/model/RoleResourceActionModel.ts | 1 + .../src/server/model/RoleResourceModel.ts | 1 + .../plugin-acl/src/server/server.ts | 6 +- .../plugin-acl/src/swagger/index.ts | 0 .../plugin-action-bulk-edit/.npmignore | 0 .../plugin-action-bulk-edit/README.md | 1 + .../plugin-action-bulk-edit/client.d.ts | 0 .../plugin-action-bulk-edit/client.js | 0 .../plugin-action-bulk-edit/package.json | 4 +- .../plugin-action-bulk-edit/server.d.ts | 0 .../plugin-action-bulk-edit/server.js | 0 .../src/client/BulkEditAction.Settings.tsx | 5 +- .../src/client/BulkEditActionInitializer.tsx | 2 +- .../src/client/BulkEditBlockInitializers.tsx | 3 +- .../client/BulkEditFormActionInitializers.tsx | 1 + .../client/BulkEditFormItemInitializers.tsx | 1 + .../BulkEditSubmitActionInitializer.tsx | 0 .../CreateFormBulkEditBlockInitializer.tsx | 8 +- .../client/__e2e__/schemaInitailizer.test.ts | 1 + .../src/client/__e2e__/schemaSettings.test.ts | 1 + .../src/client/__e2e__/utils.ts | 0 .../src/client/bulkEditFormItemSettings.ts | 8 +- .../src/client/component/BulkEditField.tsx | 0 .../src/client/createBulkEditBlockUISchema.ts | 3 +- .../src/client/index.tsx | 8 +- .../src/client/locale/index.ts | 2 +- .../src/client/utils.tsx | 21 +- .../plugin-action-bulk-edit/src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/collections/.gitkeep | 0 .../src/server/index.ts | 0 .../src/server/plugin.ts | 0 .../plugin-action-bulk-update/.npmignore | 0 .../plugin-action-bulk-update/README.md | 1 + .../plugin-action-bulk-update/client.d.ts | 0 .../plugin-action-bulk-update/client.js | 0 .../plugin-action-bulk-update/package.json | 4 +- .../plugin-action-bulk-update/server.d.ts | 0 .../plugin-action-bulk-update/server.js | 0 .../src/client/BulkUpdateAction.Settings.tsx | 8 +- .../client/BulkUpdateActionInitializer.tsx | 2 +- .../src/client/CustomizeActionInitializer.tsx | 2 +- .../client/__e2e__/schemaInitailizer.test.ts | 1 + .../src/client/__e2e__/schemaSettings.test.ts | 1 + .../src/client/__e2e__/utils.ts | 2 +- .../src/client/index.tsx | 2 + .../src/client/locale/index.ts | 0 .../src/client/utils.tsx | 0 .../plugin-action-bulk-update/src/index.ts | 0 .../src/locale/en-US.ts | 0 .../src/locale/es-ES.ts | 0 .../src/locale/ko_KR.ts | 0 .../src/locale/pt-BR.ts | 0 .../src/locale/zh-CN.ts | 0 .../src/server/collections/.gitkeep | 0 .../src/server/index.ts | 0 .../src/server/plugin.ts | 0 .../plugin-action-duplicate/.npmignore | 0 .../plugin-action-duplicate/README.md | 1 + .../plugin-action-duplicate/client.d.ts | 0 .../plugin-action-duplicate/client.js | 0 .../plugin-action-duplicate/package.json | 4 +- .../plugin-action-duplicate/server.d.ts | 0 .../plugin-action-duplicate/server.js | 0 .../src/client/DuplicateAction.Settings.tsx | 22 +- .../src/client/DuplicateAction.tsx | 0 .../src/client/DuplicateActionInitializer.tsx | 2 +- .../src/client/DuplicatePluginProvider.tsx | 5 +- .../client/__e2e__/schemaInitailizer.test.ts | 0 .../src/client/__e2e__/schemaSettings.test.ts | 1 + .../src/client/__e2e__/utils.ts | 2 +- .../src/client/index.ts | 1 + .../plugin-action-duplicate/src/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../src/server/index.ts | 0 .../src/server/plugin.ts | 0 .../plugin-action-print/.npmignore | 0 .../@tachybase/plugin-action-print/README.md | 1 + .../plugin-action-print/client.d.ts | 0 .../plugin-action-print/client.js | 0 .../plugin-action-print/package.json | 4 +- .../plugin-action-print/server.d.ts | 0 .../plugin-action-print/server.js | 0 .../src/client/PrintAction.Settings.tsx | 0 .../src/client/PrintActionInitializer.tsx | 1 - .../src/client/PrintActionPluginProvider.tsx | 3 +- .../client/__e2e__/schemaInitailizer.test.ts | 1 + .../src/client/__e2e__/utils.ts | 0 .../plugin-action-print/src/client/index.tsx | 2 + .../plugin-action-print/src/client/utils.ts | 1 + .../plugin-action-print/src/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../plugin-action-print/src/server/index.ts | 0 .../plugin-action-print/src/server/plugin.ts | 0 .../plugin-api-doc/.npmignore | 0 .../plugin-api-doc/README.md | 0 .../plugin-api-doc/README.zh-CN.md | 0 .../plugin-api-doc/client.d.ts | 0 .../plugin-api-doc/client.js | 0 .../plugin-api-doc/package.json | 4 +- .../plugin-api-doc/server.d.ts | 0 .../plugin-api-doc/server.js | 0 .../plugin-api-doc/src/client/Document.tsx | 5 +- .../plugin-api-doc/src/client/index.tsx | 0 .../plugin-api-doc/src/index.ts | 0 .../plugin-api-doc/src/locale/en-US.json | 0 .../plugin-api-doc/src/locale/index.ts | 0 .../plugin-api-doc/src/locale/ko_KR.json | 0 .../plugin-api-doc/src/locale/zh-CN.json | 0 .../plugin-api-doc/src/server/index.ts | 0 .../plugin-api-doc/src/server/server.ts | 1 + .../src/server/swagger/base-swagger.ts | 0 .../collections/components/field-type-map.ts | 0 .../swagger/collections/components/index.ts | 3 +- .../collections/components/parameters.ts | 1 + .../swagger/collections/components/schemas.ts | 3 +- .../src/server/swagger/collections/index.ts | 3 +- .../collections/paths/associations/index.ts | 3 +- .../associations/multiple-association.ts | 1 + .../paths/associations/single-association.ts | 3 +- .../swagger/collections/paths/collection.ts | 1 + .../server/swagger/collections/paths/index.ts | 3 +- .../server/swagger/collections/tags/index.ts | 1 + .../src/server/swagger/constants.ts | 0 .../src/server/swagger/helpers.ts | 0 .../src/server/swagger/index.ts | 0 .../src/server/swagger/loader.ts | 1 + .../src/server/swagger/merge.ts | 0 .../plugin-api-doc/src/swagger.ts | 0 .../plugin-api-keys/.npmignore | 0 .../plugin-api-keys/README.md | 0 .../plugin-api-keys/README.zh-CN.md | 0 .../plugin-api-keys/client.d.ts | 0 .../plugin-api-keys/client.js | 0 .../plugin-api-keys/docs/en-US/changelog.md | 0 .../plugin-api-keys/docs/en-US/index.md | 0 .../plugin-api-keys/docs/en-US/tabs.json | 0 .../plugin-api-keys/docs/en-US/usage.md | 0 .../plugin-api-keys/docs/zh-CN/changelog.md | 0 .../plugin-api-keys/docs/zh-CN/index.md | 0 .../plugin-api-keys/docs/zh-CN/tabs.json | 0 .../plugin-api-keys/docs/zh-CN/usage.md | 0 .../plugin-api-keys/package.json | 4 +- .../plugin-api-keys/server.d.ts | 0 .../plugin-api-keys/server.js | 0 .../client/Configuration/ExpiresSelect.tsx | 6 +- .../src/client/Configuration/index.tsx | 5 +- .../src/client/Configuration/roles.ts | 0 .../src/client/Configuration/schema.tsx | 12 +- .../plugin-api-keys/src/client/index.tsx | 1 + .../src/client/locale/index.ts | 0 .../src/collections/apiKeys.ts | 1 + .../plugin-api-keys/src/constants.ts | 1 + .../plugin-api-keys/src/index.ts | 0 .../plugin-api-keys/src/locale.ts | 0 .../plugin-api-keys/src/locale/en-US.json | 0 .../plugin-api-keys/src/locale/ko_KR.json | 0 .../plugin-api-keys/src/locale/zh-CN.json | 0 .../src/server/__tests__/actions.test.ts | 0 .../src/server/actions/api-keys.ts | 0 .../src/server/collections/apiKeys.ts | 1 + .../plugin-api-keys/src/server/index.ts | 0 .../src/server/locale/en-US.ts | 0 .../src/server/locale/fr-FR.ts | 0 .../src/server/locale/index.ts | 0 .../src/server/locale/zh-CN.ts | 0 .../plugin-api-keys/src/server/plugin.ts | 1 + .../plugin-api-keys/src/swagger/index.ts | 0 .../plugin-auth/.npmignore | 0 .../plugin-auth/README.md | 2 +- .../plugin-auth/client.d.ts | 0 .../plugin-auth/client.js | 0 .../plugin-auth/package.json | 4 +- .../plugin-auth/server.d.ts | 0 .../plugin-auth/server.js | 0 .../plugin-auth/src/client/AuthProvider.tsx | 3 +- .../src/client/__e2e__/auth.test.ts | 0 .../plugin-auth/src/client/authenticator.ts | 0 .../plugin-auth/src/client/basic/Options.tsx | 6 +- .../src/client/basic/SignInForm.tsx | 11 +- .../src/client/basic/SignUpForm.tsx | 13 +- .../plugin-auth/src/client/basic/index.ts | 0 .../plugin-auth/src/client/index.tsx | 5 +- .../plugin-auth/src/client/locale/index.ts | 0 .../src/client/pages/AuthLayout.tsx | 0 .../src/client/pages/SignInPage.tsx | 0 .../src/client/pages/SignUpPage.tsx | 4 +- .../plugin-auth/src/client/pages/index.ts | 0 .../src/client/settings/Authenticator.tsx | 17 +- .../src/client/settings/Options.tsx | 6 +- .../src/client/settings/authType.ts | 0 .../client/settings/schemas/authenticators.ts | 9 +- .../plugin-auth/src/index.ts | 0 .../plugin-auth/src/locale/en-US.json | 0 .../plugin-auth/src/locale/ko_KR.json | 0 .../plugin-auth/src/locale/zh-CN.json | 0 .../plugin-auth/src/preset.ts | 1 + .../src/server/__tests__/actions.test.ts | 6 +- .../src/server/__tests__/auth.test.ts | 2 +- .../src/server/__tests__/storer.test.ts | 1 + .../server/__tests__/token-blacklist.test.ts | 2 +- .../plugin-auth/src/server/actions/auth.ts | 0 .../src/server/actions/authenticators.ts | 5 +- .../plugin-auth/src/server/basic-auth.ts | 3 +- .../src/server/collections/.gitkeep | 0 .../src/server/collections/authenticators.ts | 0 .../src/server/collections/token-blacklist.ts | 0 .../collections/users-authenticators.ts | 0 .../plugin-auth/src/server/index.ts | 0 .../plugin-auth/src/server/locale/en-US.ts | 0 .../plugin-auth/src/server/locale/fr-FR.ts | 0 .../plugin-auth/src/server/locale/index.ts | 0 .../plugin-auth/src/server/locale/ja-JP.ts | 0 .../plugin-auth/src/server/locale/pt-BR.ts | 0 .../plugin-auth/src/server/locale/zh-CN.ts | 0 .../20230506152253-basic-authenticator.ts | 3 +- .../migrations/20230607174500-update-basic.ts | 1 + .../20231218132032-fix-allow-signup.ts | 1 + .../src/server/model/authenticator.ts | 0 .../plugin-auth/src/server/plugin.ts | 5 +- .../plugin-auth/src/server/storer.ts | 1 + .../plugin-auth/src/server/token-blacklist.ts | 8 +- .../plugin-auth/src/swagger/index.ts | 0 .../plugin-backup-restore/.npmignore | 0 .../plugin-backup-restore/README.md | 0 .../plugin-backup-restore/README.zh-CN.md | 0 .../plugin-backup-restore/client.d.ts | 0 .../plugin-backup-restore/client.js | 0 .../plugin-backup-restore/package.json | 4 +- .../plugin-backup-restore/server.d.ts | 0 .../plugin-backup-restore/server.js | 0 .../src/client/Configuration.tsx | 12 +- .../src/client/DuplicatorProvider.tsx | 2 +- .../src/client/index.tsx | 1 + .../src/client/locale/index.ts | 0 .../plugin-backup-restore/src/index.ts | 0 .../src/locale/en-US.json | 0 .../plugin-backup-restore/src/locale/ja-JP.ts | 0 .../src/locale/ko_KR.json | 0 .../plugin-backup-restore/src/locale/pt-BR.ts | 0 .../src/locale/zh-CN.json | 0 .../src/server/__tests__/api.test.ts | 3 +- .../src/server/__tests__/dump-action.test.ts | 5 +- .../src/server/__tests__/dumper.test.ts | 5 +- .../backup_20231111_112233.nbdump.lock | 0 .../__tests__/fixtures/dump.nbdump.fixture | Bin .../fixtures/files/backup1.nbdump.lock | 0 .../src/server/__tests__/index.ts | 0 .../src/server/__tests__/on-dump.test.ts | 9 +- .../src/server/app-migrator.ts | 4 +- .../src/server/collection-group-manager.ts | 0 .../src/server/commands/restore-command.ts | 5 +- .../src/server/dumper.ts | 14 +- .../src/server/errors/restore-check-error.ts | 0 .../src/server/field-value-writer.ts | 1 + .../plugin-backup-restore/src/server/index.ts | 0 .../src/server/locale/zh-CN.ts | 0 .../src/server/resourcers/backup-files.ts | 11 +- .../src/server/restorer.ts | 16 +- .../src/server/server.ts | 1 + .../plugin-backup-restore/src/server/utils.ts | 5 +- .../src/swagger/index.ts | 0 .../plugin-calendar/.npmignore | 0 .../plugin-calendar/README.md | 0 .../plugin-calendar/README.zh-CN.md | 0 .../plugin-calendar/client.d.ts | 0 .../plugin-calendar/client.js | 0 .../plugin-calendar/package.json | 4 +- .../plugin-calendar/server.d.ts | 0 .../plugin-calendar/server.js | 0 .../client/__e2e__/schemaInitializer.test.ts | 3 +- .../src/client/__e2e__/templates.ts | 0 .../src/client/__tests__/calendar.test.tsx | 6 +- .../createCalendarBlockSchema.test.ts | 0 .../src/client/calendar/Calendar.Designer.tsx | 3 +- .../src/client/calendar/Calendar.tsx | 13 +- .../src/client/calendar/Calender.Settings.tsx | 19 +- .../src/client/calendar/DeleteEvent.tsx | 9 +- .../src/client/calendar}/Event.tsx | 2 +- .../src/client/calendar/Nav.tsx | 12 +- .../src/client/calendar/Title.tsx | 8 +- .../src/client/calendar/Today.tsx | 10 +- .../src/client/calendar/ViewSelect.tsx | 8 +- .../src/client/calendar/components/Header.tsx | 1 + .../src/client/calendar/context.ts | 1 + .../src/client/calendar/demos/collections.ts | 0 .../src/client/calendar/demos/data.ts | 0 .../client/calendar/demos/defaultValues.ts | 0 .../src/client/calendar/demos/demo1.tsx | 5 +- .../src/client/calendar/demos/demo2.tsx | 8 +- .../src/client/calendar/global.style.ts | 0 .../src/client/calendar/index.md | 0 .../src/client/calendar/index.ts | 1 + .../src/client/calendar/style.ts | 0 .../src/client/calendar/types.d.ts | 0 .../src/client/calendar/utils.ts | 1 + .../client/collection-templates/calendar.tsx | 3 +- .../hooks/useCalendarBlockDecoratorProps.ts | 1 + .../client/hooks/useCalendarBlockParams.ts | 0 .../plugin-calendar/src/client/index.tsx | 3 +- .../CalendarBlockProvider.tsx | 7 +- .../createCalendarBlockUISchema.ts | 4 +- .../CalendarActionInitializers.tsx | 1 + .../CalendarFormActionInitializers.tsx | 1 + .../schema-initializer/initializers/index.ts | 0 .../items/CalendarBlockInitializer.tsx | 12 +- ...ordAssociationCalendarBlockInitializer.tsx | 24 +- .../client/schema-initializer/items/index.ts | 0 .../plugin-calendar/src/index.ts | 0 .../plugin-calendar/src/locale/en_US.ts | 0 .../plugin-calendar/src/locale/es_ES.ts | 0 .../plugin-calendar/src/locale/fr_FR.ts | 0 .../plugin-calendar/src/locale/index.ts | 0 .../plugin-calendar/src/locale/ja_JP.ts | 0 .../plugin-calendar/src/locale/ko_KR.ts | 0 .../plugin-calendar/src/locale/pt_BR.ts | 0 .../plugin-calendar/src/locale/ru_RU.ts | 0 .../plugin-calendar/src/locale/tr_TR.ts | 0 .../plugin-calendar/src/locale/uk_UA.ts | 0 .../plugin-calendar/src/locale/zh-CN.ts | 0 .../plugin-calendar/src/server/index.ts | 0 .../plugin-calendar/src/server/server.ts | 0 .../plugin-cas/README.md | 2 +- .../plugin-cas/README.zh-CN.md | 2 +- .../plugin-cas/client.d.ts | 0 .../plugin-cas/client.js | 0 .../plugin-cas/package.json | 6 +- .../plugin-cas/server.d.ts | 0 .../plugin-cas/server.js | 0 .../plugin-cas/src/client/Options.tsx | 6 +- .../plugin-cas/src/client/SigninPage.tsx | 11 +- .../plugin-cas/src/client/index.tsx | 7 +- .../plugin-cas/src/client/locale/index.ts | 0 .../plugin-cas/src/constants.ts | 0 .../plugin-cas/src/index.ts | 0 .../plugin-cas/src/locale/en-US.json | 0 .../plugin-cas/src/locale/ko_KR.json | 0 .../plugin-cas/src/locale/zh-CN.json | 0 .../plugin-cas/src/server/actions/login.ts | 1 + .../plugin-cas/src/server/actions/service.ts | 1 + .../plugin-cas/src/server/auth.ts | 3 +- .../src/server/collections/.gitkeep | 0 .../plugin-cas/src/server/index.ts | 0 .../plugin-cas/src/server/plugin.ts | 5 +- .../plugin-china-region/.npmignore | 0 .../plugin-china-region/README.md | 0 .../plugin-china-region/README.zh-CN.md | 0 .../plugin-china-region/build.config.ts | 5 +- .../plugin-china-region/client.d.ts | 0 .../plugin-china-region/client.js | 0 .../plugin-china-region/package.json | 4 +- .../plugin-china-region/server.d.ts | 0 .../plugin-china-region/server.js | 0 .../src/client/ChinaRegionProvider.tsx | 3 +- .../plugin-china-region/src/client/index.tsx | 1 + .../plugin-china-region/src/index.ts | 0 .../src/server/__tests__/action.test.ts | 2 +- .../src/server/collections/chinaRegions.ts | 0 .../plugin-china-region/src/server/index.ts | 2 +- .../src/swagger/index.json | 0 .../plugin-client/.npmignore | 0 .../plugin-client/README.md | 0 .../plugin-client/README.zh-CN.md | 0 .../plugin-client/build.config.ts | 0 .../plugin-client/client.d.ts | 0 .../plugin-client/client.js | 0 .../plugin-client/package.json | 4 +- .../plugin-client/server.d.ts | 0 .../plugin-client/server.js | 0 .../plugin-client/src/client/index.ts | 0 .../plugin-client/src/index.ts | 0 .../20231215215245-admin-menu-uid.test.ts | 3 +- .../plugin-client/src/server/antd.ts | 2 +- .../plugin-client/src/server/cron.ts | 2 +- .../plugin-client/src/server/cronstrue.ts | 0 .../plugin-client/src/server/index.ts | 0 .../20230620203216-admin-ui-schema-uid.ts | 0 .../20231215215247-admin-menu-uid.ts | 0 .../plugin-client/src/server/server.ts | 3 +- .../plugin-client/src/swagger/index.json | 0 .../plugin-collection-manager/.npmignore | 0 .../plugin-collection-manager/README.md | 0 .../plugin-collection-manager/README.zh-CN.md | 0 .../plugin-collection-manager/client.d.ts | 0 .../plugin-collection-manager/client.js | 0 .../plugin-collection-manager/package.json | 6 +- .../plugin-collection-manager/server.d.ts | 0 .../plugin-collection-manager/server.js | 0 .../collection-template/calendar.test.ts | 1 + .../connectToDatabaseView.test.ts | 0 .../collection-template/expression.test.ts | 1 + .../__e2e__/collection-template/file.test.ts | 1 + .../collection-template/general.test.ts | 1 + .../__e2e__/collection-template/sql.test.ts | 1 + .../__e2e__/collection-template/tree.test.ts | 1 + .../attachment/schemaInitializer.test.ts | 0 .../fields/attachment/schemaSettings.test.ts | 3 +- .../belongsTo/schemaInitializer.test.ts | 0 .../fields/belongsTo/schemaSettings.test.ts | 3 +- .../fields/checkbox/schemaInitializer.test.ts | 0 .../fields/checkbox/schemaSettings.test.ts | 3 +- .../checkboxGroup/schemaInitializer.test.ts | 0 .../checkboxGroup/schemaSettings.test.ts | 3 +- .../chinaRegion/schemaInitializer.test.ts | 0 .../fields/chinaRegion/schemaSettings.test.ts | 3 +- .../collection/schemaInitializer.test.ts | 0 .../fields/collection/schemaSettings.test.ts | 1 + .../fields/color/schemaInitializer.test.ts | 0 .../fields/color/schemaSettings.test.ts | 3 +- .../createdAt/schemaInitializer.test.ts | 0 .../fields/createdAt/schemaSettings.test.ts | 3 +- .../createdBy/schemaInitializer.test.ts | 0 .../fields/createdBy/schemaSettings.test.ts | 3 +- .../fields/datetime/schemaInitializer.test.ts | 0 .../fields/datetime/schemaSettings.test.ts | 4 +- .../fields/email/schemaInitializer.test.ts | 0 .../fields/email/schemaSettings.test.ts | 13 +- .../fields/formula/schemaInitializer.test.ts | 0 .../fields/formula/schemaSettings.test.ts | 1 + .../fields/hasOne/schemaInitializer.test.ts | 0 .../fields/hasOne/schemaSettings.test.ts | 3 +- .../fields/icon/schemaInitializer.test.ts | 0 .../fields/icon/schemaSettings.test.ts | 3 +- .../fields/id/schemaInitializer.test.ts | 0 .../__e2e__/fields/id/schemaSettings.test.ts | 3 +- .../fields/integer/schemaInitializer.test.ts | 0 .../fields/integer/schemaSettings.test.ts | 3 +- .../fields/json/schemaInitializer.test.ts | 0 .../fields/json/schemaSettings.test.ts | 1 + .../lastUpdatedAt/schemaInitializer.test.ts | 0 .../lastUpdatedAt/schemaSettings.test.ts | 1 + .../lastUpdatedBy/schemaInitializer.test.ts | 0 .../lastUpdatedBy/schemaSettings.test.ts | 3 +- .../fields/longText/schemaInitializer.test.ts | 0 .../fields/longText/schemaSettings.test.ts | 7 +- .../manyToMany/schemaInitializer.test.ts | 0 .../fields/manyToMany/schemaSettings.test.ts | 3 +- .../manyToOne/schemaInitializer.test.ts | 0 .../fields/manyToOne/schemaSettings.test.ts | 3 +- .../fields/manyToOne/templatesOfBug.ts | 2 +- .../fields/markdown/schemaInitializer.test.ts | 0 .../fields/markdown/schemaSettings.test.ts | 1 + .../mutipleSelect/schemaInitializer.test.ts | 0 .../mutipleSelect/schemaSettings.test.ts | 3 +- .../fields/number/schemaInitializer.test.ts | 0 .../fields/number/schemaSettings.test.ts | 3 +- .../oneToMany/schemaInitializer.test.ts | 0 .../fields/oneToMany/schemaSettings.test.ts | 3 +- .../fields/password/schemaInitializer.test.ts | 0 .../fields/password/schemaSettings.test.ts | 7 +- .../fields/percent/schemaInitializer.test.ts | 0 .../fields/percent/schemaSettings.test.ts | 3 +- .../fields/phone/schemaInitializer.test.ts | 0 .../fields/phone/schemaSettings.test.ts | 3 +- .../radioGroup/schemaInitializer.test.ts | 0 .../fields/radioGroup/schemaSettings.test.ts | 3 +- .../fields/richText/schemaInitializer.test.ts | 0 .../fields/richText/schemaSettings.test.ts | 1 + .../fields/sequence/schemaInitializer.test.ts | 0 .../fields/sequence/schemaSettings.test.ts | 1 + .../singleLineText/schemaInitializer.test.ts | 0 .../singleLineText/schemaSettings.test.ts | 7 +- .../singleSelect/schemaInitializer.test.ts | 0 .../singleSelect/schemaSettings.test.ts | 3 +- .../fields/tableOID/schemaInitializer.test.ts | 0 .../fields/tableOID/schemaSettings.test.ts | 3 +- .../fields/time/schemaInitializer.test.ts | 0 .../fields/time/schemaSettings.test.ts | 4 +- .../fields/url/schemaInitializer.test.ts | 0 .../__e2e__/fields/url/schemaSettings.test.ts | 7 +- .../src/client/__e2e__/utils.ts | 2 +- .../src/client/index.ts | 0 .../plugin-collection-manager/src/index.ts | 0 .../src/server/__tests__/action.test.ts | 1 + .../reference-integerity-check.test.ts | 2 +- .../__tests__/beforeInitOptions.test.ts | 1 + .../__tests__/collection-categories.test.ts | 1 + ...ollection-without-id-primary-field.test.ts | 1 + .../__tests__/collections.repository.test.ts | 3 +- .../field-options/default-value.test.ts | 5 +- .../__tests__/field-options/indexes.test.ts | 1 + .../__tests__/fields.repository.test.ts | 1 + .../__tests__/fields/belongs-to-many.test.ts | 1 + .../server/__tests__/fields/belongsTo.test.ts | 1 + .../server/__tests__/fields/destroy.test.ts | 1 + .../server/__tests__/fields/hasMany.test.ts | 1 + .../server/__tests__/fields/hasOne.test.ts | 1 + .../__tests__/fields/reverseField.test.ts | 1 + .../src/server/__tests__/fields/uuid.test.ts | 1 + .../http-api/belongs-to-many.test.ts | 1 + .../__tests__/http-api/collections.test.ts | 1 + .../server/__tests__/http-api/find.test.ts | 1 + .../__tests__/http-api/has-many.test.ts | 1 + .../http-api/inherited-collection.test.ts | 1 + .../__tests__/http-api/recreate.test.ts | 1 + .../server/__tests__/http-api/tree.test.ts | 3 +- .../http-api/view-collection.test.ts | 1 + .../src/server/__tests__/index.ts | 0 .../inherits/inherited-collection.test.ts | 1 + .../inhertied-collection-with-schema.test.ts | 3 +- ...04151410-update-collections-hidden.test.ts | 4 +- .../drop-ui-schema-relation.test.ts | 1 + .../migrations/set-collection-schema.test.ts | 1 + .../migrations/update-id-to-bigint.test.ts | 6 +- .../src/server/__tests__/primary-key.test.ts | 1 + .../__tests__/reference-integerity.test.ts | 1 + .../__tests__/remove-collection.test.ts | 1 + .../resources/collections.fields.test.ts | 1 + .../__tests__/resources/collections.test.ts | 1 + .../src/server/__tests__/sync.test.ts | 1 + .../src/server/__tests__/through.test.ts | 0 .../__tests__/view/view-collection.test.ts | 1 + .../collections/collectionCategories.ts | 0 .../src/server/collections/collections.ts | 0 .../src/server/collections/fields.ts | 0 .../hooks/afterCreateForForeignKeyField.ts | 0 .../hooks/afterCreateForReverseField.ts | 0 .../hooks/afterDestroyForForeignKeyField.ts | 0 .../beforeCreateForChildrenCollection.ts | 0 .../hooks/beforeCreateForReverseField.ts | 0 .../hooks/beforeCreateForValidateField.ts | 0 .../hooks/beforeCreateForViewCollection.ts | 0 .../server/hooks/beforeDestroyForeignKey.ts | 0 .../src/server/hooks/beforeInitOptions.ts | 1 + .../src/server/hooks/index.ts | 0 .../src/server/index.ts | 0 .../20220613103214-alert-sub-table.ts | 0 .../20220704225714-drop-foreign-keys.ts | 0 .../20221101111110-update-foreign-fields.ts | 1 + ...0221104151410-update-collections-hidden.ts | 0 .../20221121111110-update-fk-type.ts | 0 .../20221121111113-update-id-to-bigint.ts | 0 .../migrations/20221221103220-timestamps.ts | 0 .../20230225111112-drop-ui-schema-relation.ts | 1 + .../20230509111114-alert-ui-schema.ts | 1 + .../migrations/20230623145414-number-step.ts | 4 +- .../migrations/20230704222935-tableoid.ts | 1 + .../20230918024546-set-collection-schema.ts | 0 .../20240220153103-install-main-datasource.ts | 0 .../src/server/models/collection.ts | 4 +- .../src/server/models/field.ts | 0 .../src/server/models/index.ts | 0 .../repositories/collection-repository.ts | 2 + .../src/server/repositories/index.ts | 0 .../src/server/resourcers/collections.ts | 0 .../src/server/resourcers/sql.ts | 3 +- .../src/server/resourcers/views.ts | 0 .../src/server/server.ts | 12 +- .../src/swagger/index.ts | 0 .../@tachybase/plugin-comments/package.json | 2 +- .../plugin-custom-request/.npmignore | 0 .../plugin-custom-request/client.d.ts | 0 .../plugin-custom-request/client.js | 0 .../plugin-custom-request/package.json | 4 +- .../plugin-custom-request/server.d.ts | 0 .../plugin-custom-request/server.js | 0 .../src/client/__e2e__/schemaSettings.test.ts | 2 +- .../client/components/CustomRequestAction.tsx | 3 +- .../CustomRequestActionDesigner.tsx | 10 +- .../src/client/components/index.ts | 0 .../src/client/constants.ts | 0 .../src/client/hooks/index.ts | 0 .../hooks/useCustomRequestVariableOptions.ts | 3 +- .../client/hooks/useCustomRequestsResource.ts | 1 + .../hooks/useCustomizeRequestActionProps.ts | 7 +- .../src/client/hooks/useGetCustomRequest.ts | 2 +- .../src/client/index.tsx | 5 +- .../initializer/CustomRequestInitializer.tsx | 5 +- .../src/client/initializer/index.ts | 0 .../src/client/locale.ts | 1 + .../src/client/schemaSettings.ts | 1 + .../src/client/schemas/CustomRequestACL.ts | 0 .../CustomRequestConfigurationFields.ts | 0 .../src/client/schemas/index.ts | 0 .../plugin-custom-request/src/index.ts | 0 .../src/locale/ko_KR.json | 0 .../src/locale/zh-CN.json | 0 .../__snapshots__/actions.test.ts.snap | 0 .../src/server/__tests__/actions.test.ts | 0 .../src/server/actions/listByCurrentRole.ts | 0 .../src/server/actions/send.ts | 3 +- .../src/server/collections/.gitkeep | 0 .../src/server/collections/customRequest.ts | 0 .../server/collections/customRequestsRoles.ts | 0 .../plugin-custom-request/src/server/index.ts | 0 .../src/server/plugin.ts | 3 +- .../plugin-data-source-manager/.npmignore | 0 .../plugin-data-source-manager/README.md | 1 + .../plugin-data-source-manager/client.d.ts | 0 .../plugin-data-source-manager/client.js | 0 .../plugin-data-source-manager/package.json | 4 +- .../plugin-data-source-manager/server.d.ts | 0 .../plugin-data-source-manager/server.js | 0 .../src/client/DatabaseConnectionProvider.tsx | 3 +- .../src/client/ThridDataSource.ts | 2 +- .../src/client/component/BreadcumbTitle.tsx | 10 +- .../CollectionsManager/AddFieldAction.tsx | 33 +- .../CollectionsManager/CollectionFields.tsx | 39 +- .../CollectionsManager/ConfigurationTable.tsx | 34 +- .../CollectionsManager/ConfigurationTabs.tsx | 16 +- .../EditCollectionAction.tsx | 15 +- .../CollectionsManager/EditFieldAction.tsx | 41 +- .../CollectionFieldInterfaceSelect.tsx | 7 +- .../components/CollectionName.tsx | 9 +- .../components/FieldTitleInput.tsx | 5 +- .../components/FieldType.tsx | 7 +- .../components/TitleField.tsx | 12 +- .../components/UnSupportFields.tsx | 6 +- .../CollectionsManager/components/index.tsx | 6 +- .../component/CollectionsManager/hooks.ts | 3 +- .../component/CollectionsManager/index.tsx | 14 +- .../schema/collectionFields.ts | 4 +- .../CollectionsManager/schema/collections.ts | 6 +- .../component/CreateDatabaseConnectAction.tsx | 10 +- .../component/DatabaseConnectionManager.tsx | 12 +- .../EditDatabaseConnectionAction.tsx | 11 +- .../Configuration/AddCategoryAction.tsx | 18 +- .../Configuration/CollectionFields.tsx | 0 .../Configuration/CollectionFieldsTable.tsx | 19 +- .../CollectionFieldsTableArray.tsx | 0 .../Configuration/ConfigurationTable.tsx | 30 +- .../Configuration/ConfigurationTabs.tsx | 23 +- .../Configuration/EditCategoryAction.tsx | 20 +- .../Configuration/index.tsx | 1 + .../Configuration/interfaces.tsx | 2 +- .../Configuration/schemas/collectionFields.ts | 2 +- .../Configuration/schemas/collections.ts | 14 +- .../component/MainDataSourceManager/index.tsx | 14 +- .../PermissionManager/DataSourceTable.tsx | 8 +- .../PermissionManager/PermisionProvider.tsx | 6 +- .../PermissionManager/RoleConfigure.tsx | 8 +- .../RolesResourcesActions.tsx | 13 +- .../PermissionManager/ScopeSelect.tsx | 3 +- .../PermissionManager/StrategyActions.tsx | 9 +- .../component/PermissionManager/index.tsx | 19 +- .../schemas/dataSourceTable.ts | 1 + .../schemas/roleCollections.ts | 4 +- .../PermissionManager/schemas/scopes.ts | 5 +- .../schemas/useRoleResourceValues.ts | 3 +- .../schemas/useSaveRoleResourceAction.ts | 3 +- .../component/PermissionManager/style.ts | 0 .../ViewDatabaseConnectionAction.tsx | 0 .../src/client/constant.ts | 0 .../src/client/hooks/index.ts | 6 +- .../src/client/index.tsx | 7 +- .../src/client/locale/index.ts | 0 .../src/client/schema/index.ts | 5 +- .../plugin-data-source-manager/src/index.ts | 0 .../src/locale/zh-CN.json | 0 .../__tests__/data-source-with-acl.test.ts | 5 +- .../src/server/__tests__/data-sources.test.ts | 2 +- .../src/server/collections/.gitkeep | 0 .../collections/data-sources-collections.ts | 0 .../server/collections/data-sources-fields.ts | 0 .../data-sources-roles-resources-actions.ts | 0 .../data-sources-roles-resources-scopes.ts | 0 .../data-sources-roles-resources.ts | 0 .../server/collections/data-sources-roles.ts | 0 .../src/server/collections/data-sources.ts | 0 .../src/server/errors/type-infer-error.ts | 0 .../src/server/index.ts | 0 .../20240301164024-migrate-acl-resources.ts | 0 .../connections-roles-resources-action.ts | 2 +- .../models/connections-roles-resources.ts | 2 +- .../src/server/models/data-source.ts | 11 +- .../models/data-sources-collection-model.ts | 0 .../server/models/data-sources-field-model.ts | 1 + .../server/models/data-sources-roles-model.ts | 4 +- .../src/server/plugin.ts | 15 +- .../data-sources-collections-fields.ts | 0 .../resourcers/data-sources-collections.ts | 0 .../resourcers/data-sources-resources.ts | 0 .../server/resourcers/data-sources-roles.ts | 0 .../roles-data-sources-collections.ts | 3 +- .../src/server/services/collection-manager.ts | 0 .../server/services/database-introspector.ts | 4 +- .../server/services/full-data-repository.ts | 0 .../src/server/services/type-interface-map.ts | 0 .../src/server/utils.ts | 0 .../plugin-data-visualization/.npmignore | 0 .../plugin-data-visualization/README.md | 2 +- .../plugin-data-visualization/client.d.ts | 0 .../plugin-data-visualization/client.js | 0 .../plugin-data-visualization/package.json | 4 +- .../plugin-data-visualization/server.d.ts | 0 .../plugin-data-visualization/server.js | 0 .../src/client/__tests__/chart-api.test.ts | 0 .../client/__tests__/chart-configure.test.tsx | 0 .../client/__tests__/chart-renderer.test.tsx | 0 .../src/client/__tests__/hooks.test.ts | 2 + .../src/client/block/ChartBlock.tsx | 9 +- .../src/client/block/ChartBlockDesigner.tsx | 3 +- .../client/block/ChartBlockInitializer.tsx | 10 +- .../src/client/block/ChartDataProvider.tsx | 3 +- .../src/client/block/formatters.ts | 0 .../src/client/block/index.ts | 0 .../src/client/block/transformers.tsx | 1 + .../src/client/chart/antd/GroupedTable.ts | 4 +- .../src/client/chart/antd/antd.ts | 0 .../src/client/chart/antd/index.ts | 2 +- .../src/client/chart/antd/statistic.ts | 3 +- .../src/client/chart/antd/table.ts | 3 +- .../src/client/chart/chart.ts | 5 +- .../src/client/chart/configs.ts | 1 + .../src/client/chart/g2plot/AntChart.tsx | 1 + .../src/client/chart/g2plot/bar.ts | 3 +- .../src/client/chart/g2plot/configs.ts | 1 + .../src/client/chart/g2plot/dualAxes.ts | 6 +- .../src/client/chart/g2plot/g2plot.ts | 2 +- .../src/client/chart/g2plot/index.ts | 5 +- .../src/client/chart/g2plot/pie.ts | 3 +- .../src/client/chart/group.ts | 3 +- .../client/configure/ChartConfigProvider.tsx | 0 .../src/client/configure/ChartConfigure.tsx | 31 +- .../configure/FilterDynamicComponent.tsx | 3 +- .../src/client/configure/index.ts | 0 .../src/client/configure/schemas/configure.ts | 4 +- .../filter/CollectionFieldInitializer.tsx | 0 .../filter/FilterActionInitializers.tsx | 8 +- .../src/client/filter/FilterBlockDesigner.tsx | 3 +- .../client/filter/FilterBlockInitializer.tsx | 0 .../src/client/filter/FilterBlockProvider.tsx | 0 .../src/client/filter/FilterCheckbox.tsx | 4 +- .../src/client/filter/FilterForm.tsx | 7 +- .../src/client/filter/FilterItemDesigner.tsx | 32 +- .../client/filter/FilterItemInitializers.tsx | 0 .../src/client/filter/FilterProvider.tsx | 3 +- .../src/client/filter/FilterVariableInput.tsx | 9 +- .../src/client/filter/index.ts | 0 .../src/client/filter/utils.ts | 5 +- .../src/client/hooks/filter.ts | 20 +- .../src/client/hooks/index.ts | 0 .../src/client/hooks/query.ts | 9 +- .../src/client/hooks/transformer.ts | 0 .../src/client/hooks/useDateVariable.ts | 3 +- .../src/client/hooks/useUserVariable.ts | 5 +- .../src/client/hooks/useVariableOptions.ts | 5 +- .../src/client/index.tsx | 5 +- .../src/client/locale/index.ts | 0 .../src/client/renderer/ChartRenderer.tsx | 15 +- .../client/renderer/ChartRendererProvider.tsx | 12 +- .../src/client/renderer/index.ts | 0 .../src/client/utils.ts | 5 +- .../plugin-data-visualization/src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/__tests__/api.test.ts | 4 +- .../src/server/__tests__/formatter.test.ts | 1 + .../src/server/__tests__/query.test.ts | 5 +- .../src/server/actions/formatter.ts | 0 .../src/server/actions/query.ts | 10 +- .../src/server/collections/.gitkeep | 0 .../src/server/index.ts | 0 .../20230926211750-rename-charttype.ts | 0 .../src/server/plugin.ts | 3 +- .../src/swagger/index.ts | 0 .../plugin-error-handler/.npmignore | 0 .../plugin-error-handler/README.md | 0 .../plugin-error-handler/README.zh-CN.md | 0 .../plugin-error-handler/client.d.ts | 0 .../plugin-error-handler/client.js | 0 .../plugin-error-handler/package.json | 4 +- .../plugin-error-handler/server.d.ts | 0 .../plugin-error-handler/server.js | 0 .../plugin-error-handler/src/client/index.ts | 0 .../plugin-error-handler/src/index.ts | 0 .../src/locale/en_US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/fr_FR.json | 0 .../src/locale/ja_JP.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh_CN.json | 0 .../src/server/__tests__/render-error.test.ts | 3 +- .../src/server/error-handler.ts | 0 .../plugin-error-handler/src/server/index.ts | 0 .../src/server/locale/en_US.ts | 0 .../src/server/locale/es-ES.ts | 0 .../src/server/locale/fr_FR.ts | 0 .../src/server/locale/ja_JP.ts | 0 .../src/server/locale/pt-BR.ts | 0 .../src/server/locale/zh_CN.ts | 0 .../plugin-error-handler/src/server/server.ts | 4 +- .../plugin-export/.npmignore | 0 .../plugin-export/README.md | 0 .../plugin-export/README.zh-CN.md | 0 .../plugin-export/client.d.ts | 0 .../plugin-export/client.js | 0 .../plugin-export/package.json | 4 +- .../plugin-export/server.d.ts | 0 .../plugin-export/server.js | 0 .../src/client/ExportActionInitializer.tsx | 6 +- .../src/client/ExportDesigner.tsx | 9 +- .../src/client/ExportPluginProvider.tsx | 3 +- .../plugin-export/src/client/index.ts | 8 +- .../src/client/schemaSettings.ts | 6 +- .../src/client/useExportAction.ts | 5 +- .../plugin-export/src/client/useFields.ts | 2 +- .../plugin-export/src/client/useShared.ts | 1 + .../plugin-export/src/index.ts | 0 .../src/server/__tests__/utils/utils.test.ts | 0 .../plugin-export/src/server/actions/.gitkeep | 0 .../src/server/actions/export-xlsx.ts | 2 + .../plugin-export/src/server/actions/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../plugin-export/src/server/index.ts | 1 + .../plugin-export/src/server/models/.gitkeep | 0 .../plugin-export/src/server/renders/index.ts | 0 .../src/server/renders/renders.ts | 0 .../src/server/repositories/.gitkeep | 0 .../src/server/utils/columns2Appends.ts | 0 .../plugin-export/src/server/utils/index.ts | 0 .../plugin-export/src/swagger/index.json | 0 .../plugin-external-data-source/package.json | 2 +- .../src/client/index.tsx | 7 +- .../src/server/mysql/database-introspector.ts | 5 +- .../src/server/pg/database-introspector.ts | 7 +- .../plugin-field-markdown-vditor/README.md | 2 +- .../plugin-field-markdown-vditor/package.json | 2 +- .../plugin-file-manager/.npmignore | 0 .../plugin-file-manager/README.md | 0 .../plugin-file-manager/README.zh-CN.md | 0 .../plugin-file-manager/client.d.ts | 0 .../plugin-file-manager/client.js | 0 .../plugin-file-manager/package.json | 4 +- .../plugin-file-manager/server.d.ts | 0 .../plugin-file-manager/server.js | 0 .../src/client/FileManagerProvider.tsx | 3 +- .../src/client/FileStorage.tsx | 10 +- .../src/client/StorageOptions.tsx | 6 +- .../client/__e2e__/createLocalStorage.test.ts | 1 + .../client/__e2e__/editLocalStorage.test.ts | 1 + .../client/__e2e__/pageobject/localStorage.ts | 0 .../src/client/hooks/index.ts | 0 .../src/client/hooks/useUploadFiles.ts | 4 +- .../plugin-file-manager/src/client/index.tsx | 3 +- .../initializers/UploadActionInitializer.tsx | 2 +- .../src/client/initializers/index.ts | 0 .../src/client/interfaces/attachment.ts | 4 +- .../src/client/locale/index.ts | 0 .../src/client/schemas/storage.ts | 4 +- .../client/schemas/storageTypes/ali-oss.ts | 0 .../src/client/schemas/storageTypes/index.ts | 0 .../src/client/schemas/storageTypes/local.ts | 0 .../src/client/schemas/storageTypes/s3.ts | 0 .../src/client/schemas/storageTypes/tx-cos.ts | 0 .../src/client/templates/file.ts | 1 + .../src/client/templates/index.ts | 0 .../plugin-file-manager/src/index.ts | 0 .../plugin-file-manager/src/locale/en-US.json | 0 .../plugin-file-manager/src/locale/fr-FR.json | 0 .../plugin-file-manager/src/locale/ja-JP.json | 0 .../plugin-file-manager/src/locale/ko_KR.json | 0 .../plugin-file-manager/src/locale/ru-RU.json | 0 .../plugin-file-manager/src/locale/tr-TR.json | 0 .../plugin-file-manager/src/locale/zh-CN.json | 0 .../src/server/FileModel.ts | 0 .../src/server/__tests__/action.test.ts | 1 + .../src/server/__tests__/attachment.test.ts | 0 .../src/server/__tests__/files/image.jpg | Bin .../src/server/__tests__/files/image.png | Bin .../src/server/__tests__/files/text.txt | 0 .../src/server/__tests__/index.ts | 5 +- .../server/__tests__/storages/ali-oss.test.ts | 9 +- .../src/server/__tests__/storages/s3.test.ts | 9 +- .../server/__tests__/storages/tx-cos.test.ts | 9 +- .../src/server/__tests__/tables/users.ts | 0 .../src/server/actions/attachments.ts | 2 +- .../src/server/actions/index.ts | 1 + .../src/server/collections/attachments.ts | 0 .../src/server/collections/storages.ts | 0 .../src/server/constants.ts | 0 .../plugin-file-manager/src/server/index.ts | 0 .../20230831160742-fix-attachment-field.ts | 0 .../migrations/20231120142523-fix-storage.ts | 0 .../20240306223006-update-target.ts | 0 .../src/server/rules/index.ts | 0 .../src/server/rules/mimetype.ts | 0 .../plugin-file-manager/src/server/server.ts | 5 +- .../src/server/storages/ali-oss.ts | 0 .../src/server/storages/index.ts | 8 +- .../src/server/storages/local.ts | 4 +- .../src/server/storages/s3.ts | 0 .../src/server/storages/tx-cos.ts | 0 .../plugin-file-manager/src/server/utils.ts | 0 .../src/swagger/index.json | 0 .../plugin-formula-field/.npmignore | 0 .../plugin-formula-field/README.md | 0 .../plugin-formula-field/README.zh-CN.md | 0 .../plugin-formula-field/client.d.ts | 0 .../plugin-formula-field/client.js | 0 .../plugin-formula-field/package.json | 4 +- .../plugin-formula-field/server.d.ts | 0 .../plugin-formula-field/server.js | 0 .../client/components/Formula/Expression.tsx | 0 .../src/client/components/Formula/Result.tsx | 8 +- .../client/components/Formula/demos/demo2.tsx | 4 +- .../src/client/components/Formula/index.md | 0 .../src/client/components/Formula/index.tsx | 0 .../src/client/components/index.ts | 0 .../plugin-formula-field/src/client/index.tsx | 3 +- .../src/client/interfaces/formula.tsx | 1 + .../src/client/locale/index.ts | 0 .../src/client/scopes.tsx | 3 +- .../plugin-formula-field/src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/zh-CN.json | 0 .../server/__tests__/formula-field.test.ts | 1 + .../src/server/formula-field.ts | 1 + .../plugin-formula-field/src/server/index.ts | 0 .../migrations/20230213161904-alter-field.ts | 0 .../plugin-formula-field/src/server/plugin.ts | 3 +- .../plugin-formula-field/src/utils/index.ts | 0 .../plugin-gantt/.npmignore | 0 .../plugins/@tachybase/plugin-gantt/README.md | 1 + .../plugin-gantt/client.d.ts | 0 .../plugin-gantt/client.js | 0 .../plugin-gantt/package.json | 4 +- .../plugin-gantt/server.d.ts | 0 .../plugin-gantt/server.js | 0 .../src/client/Gantt.Designer.tsx | 3 +- .../src/client/Gantt.Settings.tsx | 5 +- .../src/client/GanttActionInitializers.tsx | 2 +- .../src/client/GanttBlockInitializer.tsx | 21 +- .../src/client/GanttBlockProvider.tsx | 8 +- .../src/client/__e2e__/drag.test.ts | 1 + .../client/__e2e__/schemaInitailizer.test.ts | 1 + .../src/client/__e2e__/schemaSettings.test.ts | 2 + .../plugin-gantt/src/client/__e2e__/utils.ts | 0 .../__tests__/createGanttBlockSchema.test.ts | 0 .../src/client/__tests__/date-helper.test.tsx | 2 +- .../client/components/calendar/calendar.tsx | 0 .../src/client/components/calendar/style.tsx | 0 .../calendar/top-part-of-calendar.tsx | 0 .../src/client/components/gantt}/Event.tsx | 2 +- .../src/client/components/gantt/gantt.tsx | 0 .../src/client/components/gantt/style.tsx | 0 .../components/gantt/task-gantt-content.tsx | 9 +- .../client/components/gantt/task-gantt.tsx | 3 +- .../src/client/components/grid/grid-body.tsx | 0 .../src/client/components/grid/grid.tsx | 1 + .../src/client/components/grid/style.tsx | 0 .../src/client/components/other/arrow.tsx | 1 + .../components/other/horizontal-scroll.tsx | 0 .../src/client/components/other/style.tsx | 0 .../src/client/components/other/tooltip.tsx | 0 .../components/other/vertical-scroll.tsx | 0 .../task-item/bar/bar-date-handle.tsx | 0 .../components/task-item/bar/bar-display.tsx | 0 .../task-item/bar/bar-progress-handle.tsx | 0 .../components/task-item/bar/bar-small.tsx | 0 .../client/components/task-item/bar/bar.tsx | 0 .../client/components/task-item/bar/style.tsx | 0 .../task-item/milestone/milestone.tsx | 0 .../components/task-item/milestone/style.tsx | 0 .../components/task-item/project/project.tsx | 0 .../components/task-item/project/style.tsx | 0 .../src/client/components/task-item/style.tsx | 0 .../client/components/task-item/task-item.tsx | 0 .../plugin-gantt/src/client/context.ts | 0 .../src/client/createGanttBlockUISchema.tsx | 3 +- .../plugin-gantt/src/client/demos/demo1.tsx | 2 +- .../src/client/helpers/bar-helper.ts | 0 .../src/client/helpers/date-helper.ts | 0 .../src/client/helpers/other-helper.ts | 0 .../plugin-gantt/src/client/index.md | 0 .../plugin-gantt/src/client/index.tsx | 13 +- .../plugin-gantt/src/client/types/bar-task.ts | 0 .../src/client/types/date-setup.ts | 0 .../src/client/types/gantt-task-actions.ts | 0 .../src/client/types/public-types.ts | 0 .../plugin-gantt/src/client/utils.tsx | 1 + .../plugin-gantt/src/index.ts | 0 .../plugin-gantt/src/locale/en-US.json | 0 .../plugin-gantt/src/locale/es-ES.json | 0 .../plugin-gantt/src/locale/ko_KR.json | 0 .../plugin-gantt/src/locale/pt-BR.json | 0 .../plugin-gantt/src/locale/zh-CN.json | 0 .../src/server/collections/.gitkeep | 0 .../plugin-gantt/src/server/index.ts | 0 .../plugin-gantt/src/server/plugin.ts | 0 .../.npmignore | 0 .../plugin-graph-collection-manager/README.md | 0 .../README.zh-CN.md | 0 .../client.d.ts | 0 .../plugin-graph-collection-manager/client.js | 0 .../package.json | 4 +- .../server.d.ts | 0 .../plugin-graph-collection-manager/server.js | 0 .../src/client/GraphCollectionShortcut.tsx | 8 +- .../src/client/GraphDrawPage.tsx | 0 .../src/client/action-hooks.tsx | 11 +- .../client/components/AddCollectionAction.tsx | 8 +- .../src/client/components/AddFieldAction.tsx | 6 +- .../components/CollectionNodeProvder.tsx | 0 .../components/ConnectAssociationAction.tsx | 3 +- .../client/components/ConnectChildAction.tsx | 6 +- .../client/components/ConnectParentAction.tsx | 6 +- .../src/client/components/ConnectorAction.tsx | 0 .../components/DeleteCollectionAction.tsx | 6 +- .../src/client/components/DirectionAction.tsx | 0 .../components/EditCollectionAction.tsx | 6 +- .../src/client/components/EditFieldAction.tsx | 6 +- .../src/client/components/Entity.tsx | 0 .../src/client/components/FieldSummary.tsx | 7 +- .../client/components/FullScreenAction.tsx | 6 +- .../components/LocateCollectionAction.tsx | 0 .../client/components/OverrideFieldAction.tsx | 6 +- .../components/SelectCollectionsAction.tsx | 4 +- .../src/client/components/ViewFieldAction.tsx | 6 +- .../src/client/components/ViewNode.tsx | 0 .../src/client/index.tsx | 2 + .../src/client/locale/index.ts | 0 .../src/client/style.tsx | 0 .../src/client/utils.tsx | 3 +- .../src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/fr-FR.json | 0 .../src/locale/ja-JP.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/actions/.gitkeep | 0 .../src/server/collections/.gitkeep | 0 .../src/server/collections/graphPositions.ts | 0 .../src/server/index.ts | 2 +- .../src/server/models/.gitkeep | 0 .../src/server/repositories/.gitkeep | 0 .../plugin-iframe-block/.npmignore | 0 .../plugin-iframe-block/README.md | 0 .../plugin-iframe-block/README.zh-CN.md | 0 .../plugin-iframe-block/client.d.ts | 0 .../plugin-iframe-block/client.js | 0 .../plugin-iframe-block/package.json | 4 +- .../plugin-iframe-block/server.d.ts | 0 .../plugin-iframe-block/server.js | 0 .../src/client/Iframe.Designer.tsx | 6 +- .../plugin-iframe-block/src/client/Iframe.tsx | 8 +- .../src/client/IframeBlockInitializer.tsx | 5 +- .../src/client/IframeBlockProvider.tsx | 3 +- .../plugin-iframe-block/src/client/index.ts | 1 + .../src/client/schemaSettings.ts | 4 +- .../plugin-iframe-block/src/index.ts | 0 .../src/server/actions/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../src/server/collections/iframe-html.ts | 0 .../plugin-iframe-block/src/server/index.ts | 0 .../plugin-iframe-block/src/server/plugin.ts | 3 +- .../plugin-iframe-block/src/swagger/index.ts | 0 .../plugin-import/.npmignore | 0 .../plugin-import/README.md | 0 .../plugin-import/README.zh-CN.md | 0 .../plugin-import/client.d.ts | 0 .../plugin-import/client.js | 0 .../plugin-import/package.json | 4 +- .../plugin-import/server.d.ts | 0 .../plugin-import/server.js | 0 .../src/client/ImportActionInitializer.tsx | 9 +- .../src/client/ImportDesigner.tsx | 9 +- .../plugin-import/src/client/ImportModal.tsx | 6 +- .../src/client/ImportPluginProvider.tsx | 4 +- .../plugin-import/src/client/constants.ts | 0 .../plugin-import/src/client/context.ts | 0 .../plugin-import/src/client/index.ts | 9 +- .../plugin-import/src/client/locale/index.ts | 0 .../src/client/schemaSettings.ts | 6 +- .../plugin-import/src/client/useFields.ts | 0 .../src/client/useImportAction.ts | 6 +- .../plugin-import/src/client/useShared.ts | 4 +- .../plugin-import/src/index.ts | 1 + .../plugin-import/src/locale/en-US.json | 0 .../plugin-import/src/locale/es-ES.json | 0 .../plugin-import/src/locale/ko_KR.json | 0 .../plugin-import/src/locale/pt-BR.json | 0 .../plugin-import/src/locale/zh-CN.json | 0 .../plugin-import/src/server/actions/.gitkeep | 0 .../server/actions/downloadXlsxTemplate.ts | 1 + .../src/server/actions/importXlsx.ts | 2 + .../plugin-import/src/server/actions/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../plugin-import/src/server/index.ts | 1 + .../plugin-import/src/server/locale/en-US.ts | 0 .../plugin-import/src/server/locale/fr-FR.ts | 0 .../plugin-import/src/server/locale/index.ts | 0 .../plugin-import/src/server/locale/zh-CN.ts | 0 .../src/server/middleware/index.ts | 0 .../plugin-import/src/server/models/.gitkeep | 0 .../src/server/repositories/.gitkeep | 0 .../plugin-import/src/server/utils/index.ts | 1 + .../src/server/utils/transform.ts | 2 + .../plugin-import/src/swagger/index.json | 0 .../plugin-kanban/.npmignore | 0 .../@tachybase/plugin-kanban/README.md | 1 + .../plugin-kanban/client.d.ts | 0 .../plugin-kanban/client.js | 0 .../plugin-kanban/package.json | 4 +- .../plugin-kanban/server.d.ts | 0 .../plugin-kanban/server.js | 0 .../src/client/CreateAndSelectSort/index.tsx | 8 +- .../src/client/Kanban.Card.Designer.tsx | 10 +- .../plugin-kanban/src/client/Kanban.Card.tsx | 0 .../src/client/Kanban.CardViewer.tsx | 0 .../src/client/Kanban.Designer.tsx | 2 +- .../src/client/Kanban.Settings.tsx | 16 +- .../plugin-kanban/src/client/Kanban.tsx | 7 +- .../src/client/KanbanActionInitializers.tsx | 0 .../src/client/KanbanBlockInitializer.tsx | 21 +- .../src/client/KanbanBlockProvider.tsx | 15 +- .../client/__e2e__/schemaInitailizer.test.ts | 1 + .../src/client/__e2e__/schemaSettings.test.ts | 1 + .../plugin-kanban/src/client/__e2e__/utils.ts | 0 .../__tests__/createKanbanBlockSchema.test.ts | 0 .../plugin-kanban/src/client/board/Board.tsx | 2 + .../plugin-kanban/src/client/board/Card.tsx | 1 + .../src/client/board/CardAdder.tsx | 1 + .../src/client/board/CardForm.tsx | 1 + .../plugin-kanban/src/client/board/Column.tsx | 2 + .../src/client/board/ColumnAdder.tsx | 1 + .../src/client/board/ColumnForm.tsx | 1 + .../src/client/board/DefaultCard.tsx | 0 .../src/client/board/DefaultColumnHeader.tsx | 0 .../plugin-kanban/src/client/board/Kanban.tsx | 5 +- .../src/client/board/demos/demo2.tsx | 5 +- .../plugin-kanban/src/client/board/helpers.ts | 0 .../plugin-kanban/src/client/board/index.md | 0 .../plugin-kanban/src/client/board/index.ts | 0 .../src/client/board/services.ts | 0 .../plugin-kanban/src/client/board/style.ts | 0 .../plugin-kanban/src/client/board/utils.ts | 0 .../src/client/board/withDroppable.tsx | 1 + .../plugin-kanban/src/client/context.ts | 0 .../src/client/createKanbanBlockUISchema.ts | 3 +- .../plugin-kanban/src/client/index.md | 0 .../plugin-kanban/src/client/index.tsx | 3 +- .../plugin-kanban/src/client/locale/index.ts | 0 .../plugin-kanban/src/client/style.tsx | 0 .../plugin-kanban/src/index.ts | 0 .../plugin-kanban/src/locale/zh-CN.json | 0 .../src/server/collections/.gitkeep | 0 .../plugin-kanban/src/server/index.ts | 0 .../plugin-kanban/src/server/plugin.ts | 0 .../plugin-localization-management/.npmignore | 0 .../plugin-localization-management/README.md | 0 .../client.d.ts | 0 .../plugin-localization-management/client.js | 0 .../package.json | 8 +- .../server.d.ts | 0 .../plugin-localization-management/server.js | 0 .../src/client/Localization.tsx | 16 +- .../src/client/index.tsx | 3 +- .../src/client/locale/index.ts | 0 .../src/client/schemas/localization.tsx | 0 .../src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/__tests__/actions.test.ts | 0 .../src/server/__tests__/resources.test.ts | 1 + .../src/server/actions/localization.ts | 3 +- .../src/server/actions/localizationTexts.ts | 3 +- .../src/server/collections/.gitkeep | 0 .../server/collections/localization-texts.ts | 0 .../collections/localization-translations.ts | 0 .../src/server/constans.ts | 0 .../src/server/index.ts | 0 .../20230706200900-roles-add-translation.ts | 0 .../migrations/20231206161851-fix-module.ts | 1 + .../src/server/plugin.ts | 12 +- .../src/server/resources.ts | 0 .../src/server/utils.ts | 0 .../src/swagger/index.json | 0 .../plugin-logger/.npmignore | 0 .../@tachybase/plugin-logger/README.md | 1 + .../plugin-logger/client.d.ts | 0 .../plugin-logger/client.js | 0 .../plugin-logger/package.json | 4 +- .../plugin-logger/server.d.ts | 0 .../plugin-logger/server.js | 0 .../src/client/LogsDownloader.tsx | 13 +- .../plugin-logger/src/client/index.tsx | 1 + .../plugin-logger/src/client/locale/index.ts | 0 .../plugin-logger/src/index.ts | 0 .../plugin-logger/src/locale/en-US.ts | 0 .../plugin-logger/src/locale/ko_KR.ts | 0 .../plugin-logger/src/locale/zh-CN.ts | 0 .../src/server/collections/.gitkeep | 0 .../plugin-logger/src/server/index.ts | 0 .../plugin-logger/src/server/plugin.ts | 1 + .../src/server/resourcer/logger.ts | 7 +- .../plugin-map/.npmignore | 0 .../plugin-map/README.md | 0 .../plugin-map/README.zh-CN.md | 0 .../plugin-map/client.d.ts | 0 .../plugin-map/client.js | 0 .../plugin-map/docs/en-US/changelog.md | 0 .../plugin-map/docs/en-US/index.md | 0 .../plugin-map/docs/en-US/installation.md | 0 .../plugin-map/docs/en-US/tabs.json | 0 .../plugin-map/docs/en-US/usage.md | 0 .../plugin-map/docs/zh-CN/changelog.md | 0 .../plugin-map/docs/zh-CN/index.md | 0 .../plugin-map/docs/zh-CN/installation.md | 0 .../plugin-map/docs/zh-CN/tabs.json | 0 .../plugin-map/docs/zh-CN/usage.md | 0 .../plugin-map/package.json | 4 +- .../plugin-map/server.d.ts | 0 .../plugin-map/server.js | 0 .../block/createMapBlockSchema.test.ts | 0 .../client/block/MapActionInitializers.tsx | 0 .../src/client/block/MapBlock.Settings.tsx | 14 +- .../plugin-map/src/client/block/MapBlock.tsx | 3 +- .../src/client/block/MapBlockDesigner.tsx | 3 +- .../src/client/block/MapBlockInitializer.tsx | 12 +- .../src/client/block/MapBlockProvider.tsx | 4 +- .../client/block/createMapBlockUISchema.ts | 3 +- .../plugin-map/src/client/block/index.tsx | 3 +- .../plugin-map/src/client/block/utils.ts | 0 .../src/client/components/AMap/Block.tsx | 14 +- .../src/client/components/AMap/Map.tsx | 10 +- .../src/client/components/AMap/Search.tsx | 4 +- .../src/client/components/AMap/index.ts | 0 .../src/client/components/Configuration.tsx | 10 +- .../src/client/components/Designer.tsx | 9 +- .../client/components/GoogleMaps/Block.tsx | 14 +- .../src/client/components/GoogleMaps/Map.tsx | 10 +- .../client/components/GoogleMaps/Search.tsx | 4 +- .../src/client/components/GoogleMaps/index.ts | 0 .../src/client/components/GoogleMaps/utils.ts | 0 .../plugin-map/src/client/components/Map.tsx | 5 +- .../src/client/components/MapBlock.tsx | 1 + .../src/client/components/MapComponent.tsx | 1 + .../src/client/components/ReadPretty.tsx | 5 +- .../plugin-map/src/client/components/index.ts | 0 .../plugin-map/src/client/constants.ts | 0 .../plugin-map/src/client/fields/circle.ts | 0 .../plugin-map/src/client/fields/index.ts | 0 .../src/client/fields/lineString.ts | 0 .../plugin-map/src/client/fields/point.ts | 0 .../plugin-map/src/client/fields/polygon.ts | 0 .../plugin-map/src/client/fields/schema.ts | 3 +- .../plugin-map/src/client/hooks/index.ts | 0 .../src/client/hooks/useMapConfiguration.ts | 2 +- .../plugin-map/src/client/index.tsx | 8 +- .../plugin-map/src/client/locale/index.ts | 0 .../plugin-map/src/client/types.ts | 0 .../plugin-map/src/client/utils.ts | 0 .../plugin-map/src/index.ts | 0 .../plugin-map/src/locale/en-US.json | 0 .../plugin-map/src/locale/ko_KR.json | 0 .../plugin-map/src/locale/pt-BR.json | 0 .../plugin-map/src/locale/zh-CN.json | 0 .../src/server/__tests__/fields.test.ts | 1 + .../plugin-map/src/server/actions/index.ts | 1 + .../server/collections/mapConfiguration.ts | 1 + .../plugin-map/src/server/constants.ts | 0 .../plugin-map/src/server/fields/.gitkeep | 0 .../plugin-map/src/server/fields/circle.ts | 1 + .../plugin-map/src/server/fields/index.ts | 0 .../src/server/fields/lineString.ts | 1 + .../plugin-map/src/server/fields/point.ts | 1 + .../plugin-map/src/server/fields/polygon.ts | 1 + .../plugin-map/src/server/helpers/index.ts | 0 .../plugin-map/src/server/index.ts | 0 .../plugin-map/src/server/plugin.ts | 3 +- .../src/server/value-parsers/index.ts | 0 .../plugin-map/src/swagger/index.ts | 0 .../plugin-mobile-client/package.json | 2 +- .../plugin-mock-collections/.npmignore | 0 .../plugin-mock-collections/README.md | 0 .../plugin-mock-collections/README.zh-CN.md | 0 .../plugin-mock-collections/client.d.ts | 0 .../plugin-mock-collections/client.js | 0 .../plugin-mock-collections/package.json | 6 +- .../plugin-mock-collections/server.d.ts | 0 .../plugin-mock-collections/server.js | 0 .../src/client/index.ts | 0 .../plugin-mock-collections/src/index.ts | 0 .../src/server/collection-templates/index.ts | 0 .../src/server/external.sql | 367 ++++++++ .../server/field-interfaces/association.ts | 3 +- .../src/server/field-interfaces/attachment.ts | 3 +- .../src/server/field-interfaces/checkbox.ts | 0 .../server/field-interfaces/checkboxGroup.ts | 0 .../server/field-interfaces/chinaRegion.ts | 0 .../src/server/field-interfaces/circle.ts | 0 .../src/server/field-interfaces/collection.ts | 0 .../src/server/field-interfaces/color.ts | 0 .../src/server/field-interfaces/createdAt.ts | 0 .../src/server/field-interfaces/createdBy.ts | 0 .../src/server/field-interfaces/datetime.ts | 0 .../src/server/field-interfaces/email.ts | 3 +- .../src/server/field-interfaces/formula.ts | 0 .../src/server/field-interfaces/icon.ts | 0 .../src/server/field-interfaces/id.ts | 0 .../src/server/field-interfaces/index.ts | 0 .../src/server/field-interfaces/input.ts | 0 .../src/server/field-interfaces/integer.ts | 0 .../src/server/field-interfaces/json.tsx | 0 .../src/server/field-interfaces/lineString.ts | 0 .../src/server/field-interfaces/markdown.ts | 0 .../server/field-interfaces/multipleSelect.ts | 0 .../src/server/field-interfaces/number.ts | 0 .../src/server/field-interfaces/password.ts | 0 .../src/server/field-interfaces/percent.ts | 0 .../src/server/field-interfaces/phone.ts | 0 .../src/server/field-interfaces/point.ts | 0 .../src/server/field-interfaces/polygon.ts | 0 .../src/server/field-interfaces/radioGroup.ts | 0 .../src/server/field-interfaces/richText.ts | 0 .../src/server/field-interfaces/select.ts | 0 .../src/server/field-interfaces/sequence.ts | 0 .../src/server/field-interfaces/snapshot.ts | 0 .../src/server/field-interfaces/sort.ts | 0 .../src/server/field-interfaces/tableoid.ts | 0 .../src/server/field-interfaces/textarea.ts | 0 .../src/server/field-interfaces/time.ts | 3 +- .../src/server/field-interfaces/updatedAt.ts | 0 .../src/server/field-interfaces/updatedBy.ts | 0 .../src/server/field-interfaces/url.ts | 0 .../src/server/index.ts | 10 +- .../plugin-multi-app-manager/package.json | 2 +- .../.npmignore | 0 .../client.d.ts | 0 .../client.js | 0 .../package.json | 10 +- .../server.d.ts | 0 .../server.js | 0 .../MultiAppShareCollectionProvider.tsx | 6 +- .../src/client/TableTransfer.tsx | 9 +- .../src/client/index.tsx | 1 + .../src/client/utils.tsx | 0 .../src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh-CN.json | 0 .../server/__tests__/collection-sync.test.ts | 4 +- .../src/server/__tests__/index.ts | 0 .../src/server/collections/.gitkeep | 0 .../src/server/collections/applications.ts | 0 .../src/server/collections/collections.ts | 0 .../src/server/index.ts | 0 .../20230319111111-update-apps-collections.ts | 0 .../src/server/plugin.ts | 3 +- .../plugin-notifications/.npmignore | 0 .../plugin-notifications/README.md | 0 .../plugin-notifications/README.zh-CN.md | 0 .../plugin-notifications/client.d.ts | 0 .../plugin-notifications/client.js | 0 .../plugin-notifications/package.json | 4 +- .../plugin-notifications/server.d.ts | 0 .../plugin-notifications/server.js | 0 .../plugin-notifications/src/client/index.ts | 0 .../plugin-notifications/src/index.ts | 0 .../server/__tests__/notifications.test.ts | 8 +- .../server/collections/notification_logs.ts | 1 + .../collections/notification_services.ts | 1 + .../src/server/collections/notifications.ts | 1 + .../plugin-notifications/src/server/index.ts | 0 .../src/server/models/Notification.ts | 2 + .../src/server/models/NotificationLog.ts | 0 .../src/server/models/NotificationService.ts | 1 + .../src/server/models/index.ts | 0 .../plugin-notifications/src/server/server.ts | 2 +- .../plugin-oidc/.npmignore | 0 .../plugin-oidc/README.md | 0 .../plugin-oidc/README.zh-CN.md | 2 +- .../plugin-oidc/client.d.ts | 0 .../plugin-oidc/client.js | 0 .../plugin-oidc/package.json | 6 +- .../plugin-oidc/server.d.ts | 0 .../plugin-oidc/server.js | 0 .../plugin-oidc/src/client/OIDCButton.tsx | 12 +- .../plugin-oidc/src/client/Options.tsx | 10 +- .../plugin-oidc/src/client/index.tsx | 3 +- .../plugin-oidc/src/client/locale/index.ts | 0 .../plugin-oidc/src/constants.ts | 0 .../plugin-oidc/src/index.ts | 0 .../plugin-oidc/src/locale/en-US.json | 0 .../plugin-oidc/src/locale/es-ES.json | 0 .../plugin-oidc/src/locale/fr-FR.json | 0 .../plugin-oidc/src/locale/ko_KR.json | 0 .../plugin-oidc/src/locale/pt-BR.json | 0 .../plugin-oidc/src/locale/zh-CN.json | 0 .../src/server/__tests__/oidc.test.ts | 8 +- .../src/server/actions/getAuthUrl.ts | 4 +- .../src/server/actions/redirect.ts | 1 + .../plugin-oidc/src/server/index.ts | 0 .../20231007124508-update-autosignup.ts | 1 + .../plugin-oidc/src/server/oidc-auth.ts | 5 +- .../plugin-oidc/src/server/plugin.ts | 5 +- .../plugin-oidc/src/swagger/index.ts | 0 .../plugin-saml/.npmignore | 0 .../plugin-saml/README.md | 0 .../plugin-saml/README.zh-CN.md | 0 .../plugin-saml/client.d.ts | 0 .../plugin-saml/client.js | 0 .../plugin-saml/package.json | 6 +- .../plugin-saml/server.d.ts | 0 .../plugin-saml/server.js | 0 .../plugin-saml/src/client/Options.tsx | 12 +- .../plugin-saml/src/client/SAMLButton.tsx | 12 +- .../plugin-saml/src/client/index.tsx | 5 +- .../plugin-saml/src/client/locale/index.ts | 0 .../plugin-saml/src/client/schemas/saml.ts | 2 +- .../plugin-saml/src/constants.ts | 0 .../plugin-saml/src/index.ts | 0 .../plugin-saml/src/locale/en-US.json | 0 .../plugin-saml/src/locale/es-ES.json | 0 .../plugin-saml/src/locale/fr-FR.json | 0 .../plugin-saml/src/locale/ko_KR.json | 0 .../plugin-saml/src/locale/pt-BR.json | 0 .../plugin-saml/src/locale/zh-CN.json | 0 .../src/server/__tests__/saml.test.ts | 22 +- .../src/server/actions/getAuthUrl.ts | 2 + .../src/server/actions/metadata.ts | 4 +- .../src/server/actions/redirect.ts | 1 + .../plugin-saml/src/server/index.ts | 0 .../20231008112900-update-autosignup.ts | 1 + .../plugin-saml/src/server/plugin.ts | 5 +- .../plugin-saml/src/server/saml-auth.ts | 4 +- .../plugin-saml/src/swagger/index.ts | 0 .../plugin-sample-hello/.npmignore | 0 .../plugin-sample-hello/README.md | 0 .../plugin-sample-hello/client.d.ts | 0 .../plugin-sample-hello/client.js | 0 .../plugin-sample-hello/package.json | 4 +- .../plugin-sample-hello/server.d.ts | 0 .../plugin-sample-hello/server.js | 0 .../plugin-sample-hello/src/client/index.tsx | 7 +- .../plugin-sample-hello/src/index.ts | 0 .../src/server/actions/.gitkeep | 0 .../src/server/collections/.gitkeep | 0 .../plugin-sample-hello/src/server/index.ts | 0 .../src/server/models/.gitkeep | 0 .../src/server/repositories/.gitkeep | 0 .../plugin-sequence-field/.npmignore | 0 .../plugin-sequence-field/README.md | 0 .../plugin-sequence-field/README.zh-CN.md | 0 .../plugin-sequence-field/client.d.ts | 0 .../plugin-sequence-field/client.js | 0 .../plugin-sequence-field/package.json | 6 +- .../plugin-sequence-field/server.d.ts | 0 .../plugin-sequence-field/server.js | 0 .../src/client/SequenceFieldProvider.tsx | 1 - .../src/client/index.tsx | 3 +- .../src/client/locale/index.ts | 0 .../src/client/sequence.tsx | 15 +- .../plugin-sequence-field/src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/fr-FR.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/Plugin.ts | 2 +- .../server/__tests__/sequence-field.test.ts | 4 +- .../src/server/collections/sequences.ts | 0 .../src/server/fields/sequence-field.ts | 1 + .../plugin-sequence-field/src/server/index.ts | 0 .../20221207022250-sequence-field-key.ts | 0 .../plugin-sms-auth/.npmignore | 0 .../plugin-sms-auth/README.md | 2 +- .../plugin-sms-auth/client.d.ts | 0 .../plugin-sms-auth/client.js | 0 .../plugin-sms-auth/package.json | 8 +- .../plugin-sms-auth/server.d.ts | 0 .../plugin-sms-auth/server.js | 0 .../plugin-sms-auth/src/client/Options.tsx | 3 +- .../plugin-sms-auth/src/client/SigninPage.tsx | 7 +- .../src/client/VerificationCode.tsx | 7 +- .../plugin-sms-auth/src/client/index.tsx | 7 +- .../src/client/locale/index.ts | 0 .../plugin-sms-auth/src/constants.ts | 0 .../plugin-sms-auth/src/index.ts | 0 .../plugin-sms-auth/src/locale/en-US.json | 0 .../plugin-sms-auth/src/locale/ko_KR.json | 0 .../plugin-sms-auth/src/locale/zh-CN.json | 0 .../src/server/__tests__/signin.test.ts | 3 +- .../src/server/collections/.gitkeep | 0 .../plugin-sms-auth/src/server/index.ts | 0 .../src/server/locale/en-US.ts | 0 .../src/server/locale/fr-FR.ts | 0 .../src/server/locale/index.ts | 0 .../src/server/locale/ja-JP.ts | 0 .../src/server/locale/pt-BR.ts | 0 .../src/server/locale/zh-CN.ts | 0 .../20230607180000-sms-authenticator.ts | 1 + .../plugin-sms-auth/src/server/plugin.ts | 7 +- .../plugin-sms-auth/src/server/sms-auth.ts | 7 +- .../plugin-snapshot-field/.npmignore | 0 .../plugin-snapshot-field/README.md | 0 .../plugin-snapshot-field/README.zh-CN.md | 0 .../plugin-snapshot-field/client.d.ts | 0 .../plugin-snapshot-field/client.js | 0 .../plugin-snapshot-field/package.json | 4 +- .../plugin-snapshot-field/server.d.ts | 0 .../plugin-snapshot-field/server.js | 0 .../src/__tests__/data/field_linkto.ts | 0 .../src/__tests__/data/field_m2m.ts | 0 .../src/__tests__/data/field_o2m.ts | 0 .../src/__tests__/data/field_o2o.ts | 0 .../src/__tests__/data/snap_linkto.ts | 0 .../src/__tests__/data/snap_m2m.ts | 0 .../src/__tests__/data/snap_o2m.ts | 0 .../src/__tests__/data/snap_o2o.ts | 0 .../src/__tests__/data/table_a.ts | 0 .../src/__tests__/data/table_b.ts | 0 .../src/__tests__/data/table_m2m.ts | 0 .../src/__tests__/fieldsHistory.test.ts | 0 .../src/__tests__/snapshots.test.ts | 1 + .../SnapshotBlockInitializers.tsx | 1 + .../SnapshotBlockInitializersDetailItem.tsx | 18 +- .../SnapshotBlock/SnapshotBlockProvider.tsx | 6 +- .../src/client/SnapshotFieldProvider.tsx | 3 +- .../SnapshotHistoryCollectionProvider.tsx | 2 +- .../src/client/SnapshotRecordPicker.tsx | 5 +- .../SnapshotOwnerCollectionFieldsSelect.tsx | 6 +- .../src/client/index.tsx | 5 +- .../src/client/interface.ts | 5 +- .../src/client/locale/index.ts | 0 .../plugin-snapshot-field/src/index.ts | 0 .../src/locale/en-US.json | 0 .../src/locale/es-ES.json | 0 .../src/locale/fr-FR.json | 0 .../src/locale/ko_KR.json | 0 .../src/locale/pt-BR.json | 0 .../src/locale/zh-CN.json | 0 .../src/server/collections/.gitkeep | 0 .../server/collections/collectionsHistory.ts | 0 .../src/server/collections/fieldsHistory.ts | 0 .../src/server/fields/snapshot-field.ts | 0 .../plugin-snapshot-field/src/server/index.ts | 0 .../src/server/plugin.ts | 3 +- .../src/swagger/index.ts | 0 .../plugin-system-settings/package.json | 2 +- .../plugin-theme-editor/.npmignore | 0 .../plugin-theme-editor/README.md | 0 .../plugin-theme-editor/README.zh-CN.md | 0 .../plugin-theme-editor/client.d.ts | 0 .../plugin-theme-editor/client.js | 0 .../plugin-theme-editor/package.json | 4 +- .../plugin-theme-editor/server.d.ts | 0 .../plugin-theme-editor/server.js | 0 .../antd-token-previewer/ColorPanel.tsx | 8 +- .../antd-token-previewer/ColorPreview.tsx | 5 +- .../antd-token-previewer/FilterPanel.tsx | 5 +- .../antd-token-previewer/IconSwitch.tsx | 4 +- .../antd-token-previewer/PreviewDemo.tsx | 4 +- .../antd-token-previewer/ThemeEditor.tsx | 10 +- .../antd-token-previewer/ThemeSelect.tsx | 5 +- .../antd-token-previewer/TokenInput.tsx | 5 +- .../component-demos/alert/alert.tsx | 4 +- .../component-demos/alert/error.tsx | 4 +- .../component-demos/alert/index.ts | 3 +- .../component-demos/alert/info.tsx | 4 +- .../component-demos/alert/success.tsx | 4 +- .../component-demos/alert/warning.tsx | 4 +- .../component-demos/anchor/anchor.tsx | 4 +- .../component-demos/anchor/anchorInLayout.tsx | 4 +- .../component-demos/anchor/index.ts | 3 +- .../autoComplete/auto-complete.tsx | 4 +- .../component-demos/autoComplete/index.ts | 3 +- .../component-demos/avatar/avatar.tsx | 3 +- .../component-demos/avatar/index.tsx | 2 +- .../component-demos/badge/badge.tsx | 4 +- .../component-demos/badge/index.ts | 3 +- .../component-demos/badge/progress.tsx | 4 +- .../component-demos/badge/success.tsx | 4 +- .../component-demos/badge/warning.tsx | 4 +- .../component-demos/breadcrumb/breadcrumb.tsx | 4 +- .../component-demos/breadcrumb/index.ts | 3 +- .../component-demos/button/button-icon.tsx | 3 +- .../component-demos/button/button.tsx | 4 +- .../component-demos/button/dangerButton.tsx | 4 +- .../component-demos/button/defaultButton.tsx | 3 +- .../component-demos/button/disabled.tsx | 4 +- .../component-demos/button/index.ts | 3 +- .../component-demos/calendar/calendar.tsx | 4 +- .../component-demos/calendar/disabled.tsx | 4 +- .../component-demos/calendar/index.ts | 3 +- .../component-demos/card/card.tsx | 4 +- .../component-demos/card/cardGrid.tsx | 5 +- .../component-demos/card/index.ts | 3 +- .../component-demos/card/inner.tsx | 4 +- .../component-demos/carousel/carousel.tsx | 4 +- .../component-demos/carousel/index.ts | 3 +- .../component-demos/cascader/cascader.tsx | 4 +- .../component-demos/cascader/data.ts | 0 .../component-demos/cascader/disable.tsx | 3 +- .../component-demos/cascader/highlight.tsx | 5 +- .../component-demos/cascader/index.ts | 3 +- .../component-demos/checkbox/checkbox.tsx | 4 +- .../component-demos/checkbox/disabled.tsx | 4 +- .../component-demos/checkbox/index.ts | 3 +- .../component-demos/collapse/collapse.tsx | 4 +- .../component-demos/collapse/index.ts | 3 +- .../component-demos/datePicker/danger.tsx | 4 +- .../datePicker/date-picker.tsx | 4 +- .../component-demos/datePicker/disabled.tsx | 4 +- .../component-demos/datePicker/icon.tsx | 4 +- .../component-demos/datePicker/index.ts | 3 +- .../component-demos/datePicker/warning.tsx | 4 +- .../descriptions/descriptions.tsx | 4 +- .../component-demos/descriptions/index.ts | 3 +- .../component-demos/divider/divider.tsx | 3 +- .../component-demos/divider/index.ts | 3 +- .../component-demos/drawer/drawer.tsx | 4 +- .../component-demos/drawer/index.ts | 3 +- .../component-demos/dropdown/dropdown.tsx | 6 +- .../dropdown/dropdownError.tsx | 3 +- .../component-demos/dropdown/index.ts | 3 +- .../component-demos/dropdown/menu.tsx | 3 +- .../component-demos/empty/empty.tsx | 4 +- .../component-demos/empty/index.ts | 3 +- .../component-demos/form/danger.tsx | 4 +- .../component-demos/form/form.tsx | 4 +- .../component-demos/form/index.tsx | 8 +- .../component-demos/form/warning.tsx | 4 +- .../component-demos/grid/grid.tsx | 4 +- .../component-demos/grid/index.ts | 3 +- .../component-demos/icon/icon.tsx | 4 +- .../component-demos/icon/index.ts | 3 +- .../component-demos/image/disabled.tsx | 3 +- .../component-demos/image/image.tsx | 3 +- .../component-demos/image/index.ts | 3 +- .../component-demos/index.ts | 5 +- .../component-demos/input/clearIcon.tsx | 3 +- .../component-demos/input/danger.tsx | 4 +- .../component-demos/input/disabled.tsx | 4 +- .../component-demos/input/index.ts | 3 +- .../component-demos/input/input.tsx | 4 +- .../component-demos/input/success.tsx | 4 +- .../component-demos/input/warning.tsx | 4 +- .../component-demos/input/withAddon.tsx | 4 +- .../component-demos/inputNumber/danger.tsx | 4 +- .../component-demos/inputNumber/disabled.tsx | 3 +- .../component-demos/inputNumber/index.ts | 3 +- .../inputNumber/inputNumber.tsx | 4 +- .../component-demos/inputNumber/warning.tsx | 4 +- .../component-demos/list/index.ts | 3 +- .../component-demos/list/list.tsx | 4 +- .../component-demos/mentions/danger.tsx | 4 +- .../component-demos/mentions/disabled.tsx | 4 +- .../component-demos/mentions/index.ts | 3 +- .../component-demos/mentions/mentions.tsx | 4 +- .../component-demos/mentions/warning.tsx | 4 +- .../component-demos/menu/data.tsx | 3 +- .../component-demos/menu/index.ts | 3 +- .../component-demos/menu/menu.tsx | 5 +- .../component-demos/menu/menuDanger.tsx | 4 +- .../component-demos/menu/menuInLayout.tsx | 4 +- .../component-demos/message/error.tsx | 4 +- .../component-demos/message/index.ts | 3 +- .../component-demos/message/info.tsx | 4 +- .../component-demos/message/message.tsx | 3 +- .../component-demos/message/success.tsx | 4 +- .../component-demos/message/warning.tsx | 4 +- .../component-demos/modal/index.ts | 3 +- .../component-demos/modal/info.tsx | 4 +- .../component-demos/modal/modal.tsx | 3 +- .../component-demos/modal/modalWithButton.tsx | 4 +- .../component-demos/modal/success.tsx | 3 +- .../component-demos/modal/warning.tsx | 3 +- .../component-demos/notification/error.tsx | 4 +- .../component-demos/notification/index.ts | 3 +- .../component-demos/notification/info.tsx | 4 +- .../notification/notification.tsx | 4 +- .../component-demos/notification/success.tsx | 4 +- .../component-demos/notification/warning.tsx | 4 +- .../component-demos/pagination/disabled.tsx | 4 +- .../component-demos/pagination/index.tsx | 3 +- .../component-demos/pagination/outline.tsx | 4 +- .../component-demos/pagination/pagination.tsx | 4 +- .../component-demos/popconfirm/index.ts | 3 +- .../component-demos/popconfirm/popconfirm.tsx | 4 +- .../component-demos/popover/index.ts | 3 +- .../component-demos/popover/popover.tsx | 4 +- .../component-demos/progress/danger.tsx | 4 +- .../component-demos/progress/index.ts | 3 +- .../component-demos/progress/info.tsx | 4 +- .../component-demos/progress/progress.tsx | 4 +- .../component-demos/progress/progressInBg.tsx | 4 +- .../component-demos/progress/success.tsx | 4 +- .../component-demos/radio/button.tsx | 4 +- .../component-demos/radio/disabled.tsx | 4 +- .../component-demos/radio/index.ts | 3 +- .../component-demos/radio/radio.tsx | 4 +- .../component-demos/rate/index.ts | 3 +- .../component-demos/rate/rate.tsx | 3 +- .../component-demos/result/danger.tsx | 4 +- .../component-demos/result/index.ts | 3 +- .../component-demos/result/info.tsx | 4 +- .../component-demos/result/result.tsx | 4 +- .../component-demos/result/resultWithDesc.tsx | 4 +- .../component-demos/result/success.tsx | 4 +- .../component-demos/result/warning.tsx | 4 +- .../component-demos/segmented/index.ts | 3 +- .../component-demos/segmented/segmented.tsx | 4 +- .../component-demos/select/_internal.ts | 0 .../component-demos/select/danger.tsx | 5 +- .../component-demos/select/data.ts | 0 .../component-demos/select/disabled.tsx | 5 +- .../component-demos/select/icon.tsx | 5 +- .../component-demos/select/index.ts | 3 +- .../component-demos/select/select.tsx | 4 +- .../component-demos/select/selectTag.tsx | 5 +- .../component-demos/select/warning.tsx | 5 +- .../component-demos/skeleton/index.ts | 3 +- .../component-demos/skeleton/skeleton.tsx | 3 +- .../component-demos/slider/index.ts | 3 +- .../component-demos/slider/slider.tsx | 4 +- .../component-demos/slider/sliderInBg.tsx | 4 +- .../component-demos/space/index.ts | 3 +- .../component-demos/space/space.tsx | 4 +- .../component-demos/spin/index.ts | 3 +- .../component-demos/spin/spin.tsx | 4 +- .../component-demos/statistic/index.ts | 3 +- .../component-demos/statistic/statistic.tsx | 4 +- .../component-demos/steps/danger.tsx | 4 +- .../component-demos/steps/index.ts | 3 +- .../component-demos/steps/steps.tsx | 4 +- .../component-demos/switch/index.ts | 3 +- .../component-demos/switch/switch.tsx | 4 +- .../component-demos/table/filterTable.tsx | 5 +- .../component-demos/table/index.ts | 3 +- .../component-demos/table/table.tsx | 4 +- .../component-demos/tabs/cardTabs.tsx | 4 +- .../component-demos/tabs/index.ts | 3 +- .../component-demos/tabs/tabs.tsx | 4 +- .../component-demos/tag/closable.tsx | 4 +- .../component-demos/tag/error.tsx | 4 +- .../component-demos/tag/index.ts | 3 +- .../component-demos/tag/info.tsx | 4 +- .../component-demos/tag/multiTags.tsx | 4 +- .../component-demos/tag/success.tsx | 4 +- .../component-demos/tag/tag.tsx | 3 +- .../component-demos/tag/warning.tsx | 4 +- .../component-demos/timePicker/index.ts | 3 +- .../timePicker/time-picker.tsx | 4 +- .../component-demos/timeline/danger.tsx | 4 +- .../component-demos/timeline/index.ts | 3 +- .../component-demos/timeline/success.tsx | 4 +- .../component-demos/timeline/timeline.tsx | 4 +- .../component-demos/tooltip/index.ts | 3 +- .../component-demos/tooltip/tooltip.tsx | 4 +- .../component-demos/transfer/danger.tsx | 4 +- .../component-demos/transfer/data.ts | 0 .../component-demos/transfer/disabled.tsx | 3 +- .../component-demos/transfer/index.ts | 3 +- .../component-demos/transfer/transfer.tsx | 3 +- .../component-demos/transfer/warning.tsx | 3 +- .../component-demos/tree/disabled.tsx | 4 +- .../component-demos/tree/index.ts | 3 +- .../component-demos/tree/tree.tsx | 4 +- .../component-demos/treeSelect/disabled.tsx | 4 +- .../component-demos/treeSelect/index.ts | 3 +- .../treeSelect/tree-select.tsx | 4 +- .../component-demos/typography/Heading4.tsx | 4 +- .../component-demos/typography/error.tsx | 4 +- .../component-demos/typography/index.tsx | 5 +- .../component-demos/typography/success.tsx | 4 +- .../component-demos/typography/typography.tsx | 4 +- .../typography/typographyFull.tsx | 3 +- .../component-demos/typography/warning.tsx | 4 +- .../typography/warningText.tsx | 4 +- .../typography/warningTitle.tsx | 4 +- .../component-demos/upload/avatar.tsx | 3 +- .../component-demos/upload/danger.tsx | 3 +- .../component-demos/upload/index.ts | 3 +- .../component-demos/upload/upload.tsx | 6 +- .../component-panel/ComponentCard.tsx | 8 +- .../component-panel/ComponentDemoGroup.tsx | 5 +- .../component-panel/ComponentTokenDrawer.tsx | 7 +- .../component-panel/ComponentTree.tsx | 5 +- .../component-panel/index.tsx | 5 +- .../hooks/useControlledTheme.tsx | 4 +- .../antd-token-previewer/icons/Arrow.d.ts | 0 .../antd-token-previewer/icons/Arrow.js | 3 +- .../antd-token-previewer/icons/Brush.d.ts | 0 .../antd-token-previewer/icons/Brush.js | 59 ++ .../antd-token-previewer/icons/Compact.d.ts | 0 .../antd-token-previewer/icons/Compact.js | 3 +- .../antd-token-previewer/icons/Control.d.ts | 0 .../antd-token-previewer/icons/Control.js | 24 +- .../antd-token-previewer/icons/Dark.d.ts | 0 .../client/antd-token-previewer/icons/Dark.js | 73 ++ .../antd-token-previewer/icons/Light.d.ts | 0 .../antd-token-previewer/icons/Light.js | 87 ++ .../antd-token-previewer/icons/Margin.d.ts | 0 .../antd-token-previewer/icons/Margin.js | 59 ++ .../antd-token-previewer/icons/Motion.d.ts | 0 .../antd-token-previewer/icons/Motion.js | 59 ++ .../antd-token-previewer/icons/Pick.d.ts | 0 .../client/antd-token-previewer/icons/Pick.js | 87 ++ .../icons/SearchDropdown.d.ts | 0 .../icons/SearchDropdown.js | 6 +- .../antd-token-previewer/icons/ShapeLine.d.ts | 0 .../antd-token-previewer/icons/ShapeLine.js | 59 ++ .../icons/TokenPanel.d.ts | 0 .../antd-token-previewer/icons/TokenPanel.js | 3 +- .../antd-token-previewer/icons/index.d.ts | 0 .../antd-token-previewer/icons/index.js | 0 .../src/client/antd-token-previewer/index.tsx | 0 .../client/antd-token-previewer/interface.ts | 2 +- .../antd-token-previewer/locale/context.tsx | 0 .../antd-token-previewer/locale/en-US.ts | 0 .../antd-token-previewer/locale/fr-FR.ts | 0 .../antd-token-previewer/locale/index.ts | 0 .../antd-token-previewer/locale/interface.tsx | 0 .../antd-token-previewer/locale/zh-CN.ts | 0 .../meta/TokenRelation.ts | 0 .../antd-token-previewer/meta/category.ts | 0 .../client/antd-token-previewer/meta/index.ts | 0 .../antd-token-previewer/meta/interface.ts | 0 .../antd-token-previewer/overviews/Error.tsx | 3 +- .../overviews/Primary.tsx | 3 +- .../overviews/Success.tsx | 6 +- .../overviews/Warning.tsx | 6 +- .../antd-token-previewer/overviews/index.ts | 0 .../client/antd-token-previewer/previewer.tsx | 15 +- .../token-panel-pro/AliasPanel.tsx | 5 +- .../token-panel-pro/ComponentDemoPro.tsx | 7 +- .../token-panel-pro/InputNumberPlus.tsx | 4 +- .../token-panel-pro/TokenContent.tsx | 17 +- .../token-panel-pro/TokenDetail.tsx | 7 +- .../token-panel-pro/TokenPreview.tsx | 5 +- .../token-panel-pro/calcCustomToken.ts | 0 .../token-panel-pro/index.tsx | 5 +- .../token-panel-pro/token-meta.json | 0 .../token-panel/index.tsx | 9 +- .../token-panel/token-card/index.tsx | 5 +- .../token-panel/token-item/index.tsx | 7 +- .../utils/classifyToken.ts | 1 + .../utils/deepUpdateObj.ts | 0 .../utils/getColorBgImg.ts | 0 .../utils/getDesignToken.ts | 0 .../utils/getValueByPath.ts | 0 .../antd-token-previewer/utils/isColor.ts | 0 .../antd-token-previewer/utils/makeStyle.tsx | 8 +- .../antd-token-previewer/utils/statistic.ts | 0 .../src/client/components/InitializeTheme.tsx | 4 +- .../src/client/components/ThemeCard.tsx | 8 +- .../client/components/ThemeEditorProvider.tsx | 0 .../src/client/components/ThemeList.tsx | 4 +- .../client/components/ThemeListProvider.tsx | 3 +- .../src/client/components/ToEditTheme.tsx | 8 +- .../client/components/theme-editor/index.tsx | 0 .../src/client/hooks/useThemeSettings.tsx | 4 +- .../client/hooks/useUpdateThemeSettings.tsx | 2 +- .../plugin-theme-editor/src/client/index.tsx | 8 +- .../src/client/locale/index.ts | 0 .../changeAlgorithmFromFunctionToString.tsx | 1 + .../changeAlgorithmFromStringToFunction.tsx | 1 + .../plugin-theme-editor/src/index.ts | 0 .../plugin-theme-editor/src/locale/en-US.json | 0 .../plugin-theme-editor/src/locale/fr-FR.json | 0 .../plugin-theme-editor/src/locale/ko_KR.json | 0 .../plugin-theme-editor/src/locale/zh-CN.json | 0 .../src/server/builtinThemes.ts | 0 .../src/server/collections/.gitkeep | 0 .../src/server/collections/theme-config.ts | 0 .../plugin-theme-editor/src/server/index.ts | 0 .../migrations/202307250853-theme-editor.ts | 1 + .../20231210132610-add-default-field.ts | 0 .../plugin-theme-editor/src/server/plugin.ts | 3 +- .../plugin-theme-editor/src/swagger/index.ts | 0 .../plugin-theme-editor/src/types.ts | 3 +- .../plugin-ui-schema-storage/.npmignore | 0 .../plugin-ui-schema-storage/README.md | 0 .../plugin-ui-schema-storage/README.zh-CN.md | 0 .../plugin-ui-schema-storage/client.d.ts | 0 .../plugin-ui-schema-storage/client.js | 0 .../plugin-ui-schema-storage/package.json | 8 +- .../plugin-ui-schema-storage/server.d.ts | 0 .../plugin-ui-schema-storage/server.js | 0 .../src/client/index.ts | 0 .../plugin-ui-schema-storage/src/index.ts | 3 +- .../src/server/__tests__/action.test.ts | 2 +- .../src/server/__tests__/fixtures/data.ts | 0 .../__tests__/fixtures/simple-schema.ts | 0 .../20230330214649-filter-form-block.test.ts | 4 +- .../server/__tests__/server-hook-impl.test.ts | 2 +- .../src/server/__tests__/server-hook.test.ts | 3 +- .../server/__tests__/ui-schema-model.test.ts | 3 +- .../ui-schema-repository-with-cache.test.ts | 1 + .../__tests__/ui-schema-repository.test.ts | 1 + .../src/server/__tests__/ui-schema.test.ts | 4 +- .../src/server/actions/ui-schema-action.ts | 2 + .../server/collections/uiSchemaServerHooks.ts | 0 .../server/collections/uiSchemaTemplates.ts | 0 .../server/collections/uiSchemaTreePath.ts | 0 .../src/server/collections/uiSchemas.ts | 0 .../src/server/dao/ui_schema_dao.ts | 0 .../src/server/dao/ui_schema_node_dao.ts | 0 .../src/server/helper.ts | 0 .../src/server/index.ts | 1 + .../20230330214649-filter-form-block.ts | 0 .../20230509221649-association-select.ts | 0 .../20230509235247-record-picker.ts | 0 .../migrations/20230510235247-form-field.ts | 6 +- .../20230522231231-association-field.ts | 1 + ...t-filter-blocks-in-select-record-drawer.ts | 0 .../src/server/model.ts | 1 + .../src/server/repository.ts | 2 + .../server-hooks/hooks/bind-menu-to-role.ts | 0 .../src/server/server-hooks/hooks/factory.ts | 0 .../src/server/server-hooks/hooks/index.ts | 0 .../hooks/remove-parents-if-no-children.ts | 0 .../server-hooks/hooks/remove-schema.ts | 0 .../src/server/server-hooks/index.ts | 1 + .../src/server/server-hooks/model.ts | 0 .../src/server/server.ts | 3 +- .../src/swagger/index.ts | 0 .../plugin-users/.npmignore | 0 .../plugin-users/README.md | 0 .../plugin-users/README.zh-CN.md | 0 .../plugin-users/client.d.ts | 0 .../plugin-users/client.js | 0 .../plugin-users/package.json | 8 +- .../plugin-users/server.d.ts | 0 .../plugin-users/server.js | 0 .../plugin-users/src/client/PasswordField.tsx | 7 +- .../src/client/RoleUsersManager.tsx | 10 +- .../src/client/UserRolesField.tsx | 7 +- .../src/client/UsersManagement.tsx | 10 +- .../plugin-users/src/client/hooks.ts | 2 +- .../plugin-users/src/client/index.ts | 5 +- .../plugin-users/src/client/locale.ts | 0 .../plugin-users/src/client/schemas/users.ts | 5 +- .../plugin-users/src/client/utils.ts | 0 .../plugin-users/src/index.ts | 0 .../plugin-users/src/locale/en-US.json | 0 .../plugin-users/src/locale/zh-CN.json | 0 .../src/server/__tests__/actions.test.ts | 2 +- .../src/server/__tests__/fields.test.ts | 0 .../src/server/__tests__/model.test.ts | 1 + .../src/server/__tests__/role-users.test.ts | 2 +- .../src/server/__tests__/utils.ts | 0 .../plugin-users/src/server/actions/users.ts | 0 .../src/server/collections/users.ts | 2 +- .../plugin-users/src/server/index.ts | 1 + .../plugin-users/src/server/locale/en-US.ts | 0 .../plugin-users/src/server/locale/es-ES.ts | 0 .../plugin-users/src/server/locale/fr-FR.ts | 0 .../plugin-users/src/server/locale/index.ts | 0 .../plugin-users/src/server/locale/ja-JP.ts | 0 .../plugin-users/src/server/locale/pt-BR.ts | 0 .../plugin-users/src/server/locale/zh-CN.ts | 0 ...220818072639-add-users-phone-constraint.ts | 0 .../20220818072639-add-users-phone.ts | 0 .../20230802170800-add-username-constraint.ts | 0 .../migrations/20230802170800-add-username.ts | 0 .../20230802183100-update-username.ts | 2 +- ...0230908164036-update-username-interface.ts | 0 .../src/server/models/UserModel.ts | 0 .../plugin-users/src/server/server.ts | 6 +- .../plugin-users/src/swagger/index.json | 0 .../plugin-verification/.npmignore | 0 .../plugin-verification/README.md | 0 .../plugin-verification/README.zh-CN.md | 0 .../plugin-verification/client.d.ts | 0 .../plugin-verification/client.js | 0 .../plugin-verification/package.json | 4 +- .../plugin-verification/server.d.ts | 0 .../plugin-verification/server.js | 0 .../src/client/ProviderOptions.tsx | 5 +- .../src/client/VerificationProviders.tsx | 5 +- .../plugin-verification/src/client/index.tsx | 3 +- .../src/client/locale/index.ts | 0 .../src/client/providerTypes/index.ts | 1 + .../src/client/providerTypes/sms-aliyun.ts | 0 .../src/client/providerTypes/sms-tencent.ts | 0 .../src/client/schemas/providers.ts | 3 +- .../plugin-verification/src/index.ts | 0 .../plugin-verification/src/locale/en-US.json | 0 .../plugin-verification/src/locale/ko_KR.json | 0 .../plugin-verification/src/locale/pt-BR.json | 0 .../plugin-verification/src/locale/zh-CN.json | 0 .../plugin-verification/src/server/Plugin.ts | 3 +- .../src/server/__tests__/Plugin.test.ts | 3 +- .../server/__tests__/collections/authors.ts | 0 .../src/server/__tests__/index.ts | 3 +- .../src/server/actions/index.ts | 0 .../src/server/actions/verifications.ts | 8 +- .../src/server/collections/verifications.ts | 0 .../collections/verifications_providers.ts | 0 .../src/server/constants.ts | 0 .../plugin-verification/src/server/index.ts | 1 + .../src/server/locale/index.ts | 0 .../src/server/locale/zh-CN.ts | 0 .../src/server/providers/Provider.ts | 0 .../src/server/providers/index.ts | 2 +- .../src/server/providers/sms-aliyun.ts | 0 .../src/server/providers/sms-tencent.ts | 1 + .../src/swagger/index.json | 0 .../plugin-workflow-test/package.json | 2 +- .../@tachybase/plugin-workflow/package.json | 8 +- packages/presets/base/package.json | 82 +- .../20240414160015-remove-audit-local.ts | 2 +- packages/presets/mini/package.json | 82 +- packages/presets/rental/package.json | 82 +- packages/presets/sancongtou/package.json | 82 +- playwright.config.ts | 2 +- pnpm-lock.yaml | 786 +++++++++--------- vitest.config.mts | 2 +- 2166 files changed, 4314 insertions(+), 3190 deletions(-) delete mode 100644 packages/plugins/@nocobase/plugin-action-bulk-edit/README.md delete mode 100644 packages/plugins/@nocobase/plugin-action-bulk-update/README.md delete mode 100644 packages/plugins/@nocobase/plugin-action-duplicate/README.md delete mode 100644 packages/plugins/@nocobase/plugin-action-print/README.md delete mode 100644 packages/plugins/@nocobase/plugin-api-keys/src/constants.ts delete mode 100644 packages/plugins/@nocobase/plugin-data-source-manager/README.md delete mode 100644 packages/plugins/@nocobase/plugin-gantt/README.md delete mode 100644 packages/plugins/@nocobase/plugin-kanban/README.md delete mode 100644 packages/plugins/@nocobase/plugin-logger/README.md delete mode 100644 packages/plugins/@nocobase/plugin-mock-collections/src/server/external.sql delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js delete mode 100644 packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/package.json (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/NewRole.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/RolesManagement.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/RolesManagerProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/RolesMenu.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/__e2e__/association.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/__e2e__/collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/__e2e__/configure.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/__e2e__/menu.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/__e2e__/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/hooks/load-more-observer.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/locale.ts (50%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/ActionPermissions.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/AvailableActions.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/GeneralPermissions.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/MenuItemsProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/MenuPermissions.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/Permissions.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/PluginPermissions.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/RolesResourcesActions.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/ScopeSelect.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/StrategyActions.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/permissions/style.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/roles-manager.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/schemas/roles.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/client/schemas/scopes.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/acl.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/actions.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/association-field.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/configuration.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/list-action.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/middleware.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/own.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/prepare.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/role-check.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/role-resource.test.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/role-user.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/role.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/scope.test.ts (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/setCurrentRole.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/snippets.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/users.test.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/actions/available-actions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/actions/role-check.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/actions/role-collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/actions/user-setDefaultRole.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/roles-users.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/roles.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/rolesResources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/rolesResourcesActions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/rolesResourcesScopes.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/collections/users.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/middlewares/setCurrentRole.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/middlewares/with-acl-meta.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/model/RoleModel.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/model/RoleResourceActionModel.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/model/RoleResourceModel.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-acl/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-action-bulk-edit/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/__e2e__/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/index.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/locale/index.ts (87%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/client/utils.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-edit/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-action-bulk-update/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/package.json (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/__e2e__/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/client/utils.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/locale/es-ES.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/locale/ko_KR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-bulk-update/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-action-duplicate/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/DuplicateAction.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/__e2e__/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/client/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-duplicate/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-action-print/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/PrintAction.Settings.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/PrintActionInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/PrintActionPluginProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/__e2e__/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/client/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-action-print/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/client/Document.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/client/index.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/base-swagger.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/components/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/components/parameters.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/components/schemas.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/paths/collection.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/paths/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/collections/tags/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/helpers.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/loader.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/server/swagger/merge.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-doc/src/swagger.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/en-US/changelog.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/en-US/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/en-US/tabs.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/en-US/usage.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/zh-CN/changelog.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/zh-CN/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/zh-CN/tabs.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/docs/zh-CN/usage.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/Configuration/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/Configuration/roles.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/Configuration/schema.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/collections/apiKeys.ts (99%) create mode 100644 packages/plugins/@tachybase/plugin-api-keys/src/constants.ts rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/locale.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/__tests__/actions.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/actions/api-keys.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/collections/apiKeys.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-api-keys/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/README.md (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/AuthProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/__e2e__/auth.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/authenticator.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/basic/Options.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/basic/SignInForm.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/basic/SignUpForm.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/basic/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/pages/AuthLayout.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/pages/SignInPage.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/pages/SignUpPage.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/pages/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/settings/Authenticator.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/settings/Options.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/settings/authType.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/client/settings/schemas/authenticators.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/preset.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/__tests__/actions.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/__tests__/auth.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/__tests__/storer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/__tests__/token-blacklist.test.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/actions/auth.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/actions/authenticators.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/basic-auth.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/collections/authenticators.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/collections/token-blacklist.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/collections/users-authenticators.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/ja-JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/migrations/20230607174500-update-basic.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/model/authenticator.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/plugin.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/storer.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/server/token-blacklist.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-auth/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/package.json (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/client/Configuration.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/client/DuplicatorProvider.tsx (83%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/locale/ja-JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/api.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/dump-action.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/dumper.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/fixtures/backup_20231111_112233.nbdump.lock (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/fixtures/dump.nbdump.fixture (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/fixtures/files/backup1.nbdump.lock (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/__tests__/on-dump.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/app-migrator.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/collection-group-manager.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/commands/restore-command.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/dumper.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/errors/restore-check-error.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/field-value-writer.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/resourcers/backup-files.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/restorer.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/server/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-backup-restore/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/package.json (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/__e2e__/templates.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/__tests__/calendar.test.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Calendar.Designer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Calendar.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Calender.Settings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/DeleteEvent.tsx (95%) rename packages/plugins/{@nocobase/plugin-gantt/src/client/components/gantt => @tachybase/plugin-calendar/src/client/calendar}/Event.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Nav.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Title.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/Today.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/ViewSelect.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/components/Header.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/context.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/demos/collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/demos/data.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/demos/defaultValues.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/demos/demo1.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/demos/demo2.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/global.style.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/style.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/types.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/calendar/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/collection-templates/calendar.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/initializers/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/client/schema-initializer/items/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/en_US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/es_ES.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/fr_FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/ja_JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/ko_KR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/pt_BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/ru_RU.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/tr_TR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/uk_UA.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-calendar/src/server/server.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/README.md (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/README.zh-CN.md (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/package.json (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/client/Options.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/client/SigninPage.tsx (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/client/index.tsx (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/actions/login.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/actions/service.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/auth.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-cas/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/build.config.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/package.json (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/client/ChinaRegionProvider.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/server/__tests__/action.test.ts (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/server/collections/chinaRegions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-china-region/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/build.config.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/antd.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/cron.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/cronstrue.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-client/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/package.json (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/color/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/email/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/id/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/json/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/number/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/password/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/time/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/url/schemaInitializer.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/__e2e__/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/action.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/primary-key.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/sync.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/through.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/collections/collectionCategories.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/collections/collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/collections/fields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/afterCreateForForeignKeyField.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/afterCreateForReverseField.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/afterDestroyForForeignKeyField.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeCreateForChildrenCollection.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeCreateForReverseField.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeCreateForValidateField.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeCreateForViewCollection.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeDestroyForeignKey.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20220613103214-alert-sub-table.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20220704225714-drop-foreign-keys.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20221104151410-update-collections-hidden.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20221121111110-update-fk-type.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20221121111113-update-id-to-bigint.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20221221103220-timestamps.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20230918024546-set-collection-schema.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/migrations/20240220153103-install-main-datasource.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/models/collection.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/models/field.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/models/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/repositories/collection-repository.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/repositories/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/resourcers/collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/resourcers/sql.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/resourcers/views.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-collection-manager/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/components/CustomRequestAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/components/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/initializer/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/locale.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/schemaSettings.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/schemas/CustomRequestACL.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/client/schemas/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/__tests__/__snapshots__/actions.test.ts.snap (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/__tests__/actions.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/actions/listByCurrentRole.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/actions/send.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/collections/customRequest.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/collections/customRequestsRoles.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-custom-request/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-data-source-manager/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/package.json (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/ThridDataSource.ts (83%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/PermissionManager/style.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/constant.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/hooks/index.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/client/schema/index.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-fields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources-roles.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/collections/data-sources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/errors/type-infer-error.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts (56%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/connections-roles-resources.ts (55%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/data-source.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/data-sources-field-model.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/services/collection-manager.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/services/database-introspector.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/services/full-data-repository.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/services/type-interface-map.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-source-manager/src/server/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/README.md (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/__tests__/chart-api.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/__tests__/chart-renderer.test.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/__tests__/hooks.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/ChartBlock.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/ChartDataProvider.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/formatters.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/block/transformers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/antd/antd.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/antd/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/antd/statistic.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/antd/table.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/chart.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/configs.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/bar.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/configs.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/index.ts (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/g2plot/pie.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/chart/group.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/configure/ChartConfigure.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/configure/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/configure/schemas/configure.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx (78%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterForm.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterProvider.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/filter/utils.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/filter.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/query.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/transformer.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/useDateVariable.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/useUserVariable.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/hooks/useVariableOptions.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/renderer/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/client/utils.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/__tests__/api.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/__tests__/formatter.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/__tests__/query.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/actions/formatter.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/actions/query.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-data-visualization/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/package.json (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/en_US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/fr_FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/ja_JP.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/locale/zh_CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/__tests__/render-error.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/error-handler.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/en_US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/es-ES.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/fr_FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/ja_JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/locale/zh_CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-error-handler/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/ExportActionInitializer.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/ExportDesigner.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/ExportPluginProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/schemaSettings.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/useExportAction.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/useFields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/client/useShared.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/__tests__/utils/utils.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/actions/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/actions/export-xlsx.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/actions/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/models/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/renders/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/renders/renders.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/repositories/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/utils/columns2Appends.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/server/utils/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-export/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/package.json (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/FileManagerProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/FileStorage.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/StorageOptions.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/hooks/useUploadFiles.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/initializers/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/interfaces/attachment.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storage.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storageTypes/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storageTypes/local.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storageTypes/s3.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/templates/file.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/client/templates/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/ja-JP.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/ru-RU.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/tr-TR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/FileModel.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/action.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/attachment.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/files/image.jpg (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/files/image.png (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/files/text.txt (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/index.ts (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/storages/s3.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/__tests__/tables/users.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/actions/attachments.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/actions/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/collections/attachments.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/collections/storages.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/rules/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/rules/mimetype.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/storages/ali-oss.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/storages/index.ts (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/storages/local.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/storages/s3.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/storages/tx-cos.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/server/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-file-manager/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/Formula/Expression.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/Formula/Result.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/Formula/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/Formula/index.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/components/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/interfaces/formula.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/client/scopes.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/server/__tests__/formula-field.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/server/formula-field.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/server/migrations/20230213161904-alter-field.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-formula-field/src/utils/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-gantt/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/package.json (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/Gantt.Designer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/Gantt.Settings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/GanttActionInitializers.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/GanttBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/GanttBlockProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__e2e__/drag.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__e2e__/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/__tests__/date-helper.test.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/calendar/calendar.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/calendar/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx (100%) rename packages/plugins/{@nocobase/plugin-calendar/src/client/calendar => @tachybase/plugin-gantt/src/client/components/gantt}/Event.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/gantt/gantt.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/gantt/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/gantt/task-gantt.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/grid/grid-body.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/grid/grid.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/grid/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/other/arrow.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/other/horizontal-scroll.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/other/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/other/tooltip.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/other/vertical-scroll.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/bar.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/bar/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/milestone/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/project/project.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/project/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/components/task-item/task-item.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/context.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/createGanttBlockUISchema.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/demos/demo1.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/helpers/bar-helper.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/helpers/date-helper.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/helpers/other-helper.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/index.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/types/bar-task.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/types/date-setup.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/types/gantt-task-actions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/types/public-types.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/client/utils.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-gantt/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/package.json (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/action-hooks.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/Entity.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/components/ViewNode.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/client/utils.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/ja-JP.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/actions/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/collections/graphPositions.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/models/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-graph-collection-manager/src/server/repositories/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/package.json (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/Iframe.Designer.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/Iframe.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/IframeBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/IframeBlockProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/client/schemaSettings.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/server/actions/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/server/collections/iframe-html.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-iframe-block/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/package.json (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/ImportActionInitializer.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/ImportDesigner.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/ImportModal.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/ImportPluginProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/context.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/schemaSettings.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/useFields.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/useImportAction.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/client/useShared.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/actions/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/actions/downloadXlsxTemplate.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/actions/importXlsx.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/actions/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/middleware/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/models/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/repositories/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/utils/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/server/utils/transform.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-import/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-kanban/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/CreateAndSelectSort/index.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.Card.Designer.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.Card.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.CardViewer.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.Designer.tsx (85%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.Settings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/Kanban.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/KanbanActionInitializers.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/KanbanBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/KanbanBlockProvider.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/__e2e__/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/Board.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/Card.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/CardAdder.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/CardForm.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/Column.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/ColumnAdder.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/ColumnForm.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/DefaultCard.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/DefaultColumnHeader.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/Kanban.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/demos/demo2.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/helpers.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/services.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/style.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/board/withDroppable.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/context.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/createKanbanBlockUISchema.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/client/style.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-kanban/src/server/plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/package.json (84%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/client/Localization.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/client/schemas/localization.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/__tests__/actions.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/__tests__/resources.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/actions/localization.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/actions/localizationTexts.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/collections/localization-texts.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/collections/localization-translations.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/constans.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/migrations/20230706200900-roles-add-translation.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/plugin.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/resources.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/server/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-localization-management/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/.npmignore (100%) create mode 100644 packages/plugins/@tachybase/plugin-logger/README.md rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/client/LogsDownloader.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/locale/ko_KR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-logger/src/server/resourcer/logger.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/en-US/changelog.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/en-US/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/en-US/installation.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/en-US/tabs.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/en-US/usage.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/zh-CN/changelog.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/zh-CN/index.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/zh-CN/installation.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/zh-CN/tabs.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/docs/zh-CN/usage.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/package.json (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapActionInitializers.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapBlock.Settings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapBlock.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapBlockDesigner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapBlockInitializer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/MapBlockProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/createMapBlockUISchema.ts (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/block/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/AMap/Block.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/AMap/Map.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/AMap/Search.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/AMap/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/Configuration.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/Designer.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/GoogleMaps/Block.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/GoogleMaps/Map.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/GoogleMaps/Search.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/GoogleMaps/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/GoogleMaps/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/Map.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/MapBlock.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/MapComponent.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/ReadPretty.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/components/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/circle.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/lineString.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/point.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/polygon.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/fields/schema.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/hooks/useMapConfiguration.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/index.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/types.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/client/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/__tests__/fields.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/actions/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/collections/mapConfiguration.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/circle.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/lineString.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/point.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/fields/polygon.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/helpers/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/server/value-parsers/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-map/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/package.json (80%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/collection-templates/index.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-mock-collections/src/server/external.sql rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/association.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/attachment.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/checkbox.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/circle.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/collection.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/color.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/createdAt.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/createdBy.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/datetime.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/email.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/formula.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/icon.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/id.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/input.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/integer.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/json.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/lineString.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/markdown.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/number.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/password.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/percent.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/phone.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/point.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/polygon.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/richText.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/select.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/sequence.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/snapshot.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/sort.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/tableoid.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/textarea.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/time.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/field-interfaces/url.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-mock-collections/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/package.json (75%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/client/TableTransfer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/client/utils.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/__tests__/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/collections/applications.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/collections/collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-multi-app-share-collection/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/package.json (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/__tests__/notifications.test.ts (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/collections/notification_logs.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/collections/notification_services.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/collections/notifications.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/models/Notification.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/models/NotificationLog.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/models/NotificationService.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/models/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-notifications/src/server/server.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/README.zh-CN.md (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/package.json (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/client/OIDCButton.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/client/Options.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/client/index.tsx (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/__tests__/oidc.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/actions/getAuthUrl.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/actions/redirect.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/oidc-auth.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-oidc/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/package.json (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/client/Options.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/client/SAMLButton.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/client/index.tsx (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/client/schemas/saml.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/__tests__/saml.test.ts (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/actions/getAuthUrl.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/actions/metadata.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/actions/redirect.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/server/saml-auth.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-saml/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/package.json (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/server/actions/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/server/models/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sample-hello/src/server/repositories/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/package.json (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/client/SequenceFieldProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/client/sequence.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/Plugin.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/collections/sequences.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/fields/sequence-field.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sequence-field/src/server/migrations/20221207022250-sequence-field-key.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/README.md (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/package.json (84%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/client/Options.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/client/SigninPage.tsx (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/client/VerificationCode.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/client/index.tsx (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/__tests__/signin.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/ja-JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/plugin.ts (88%) rename packages/plugins/{@nocobase => @tachybase}/plugin-sms-auth/src/server/sms-auth.ts (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/field_linkto.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/field_m2m.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/field_o2m.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/field_o2o.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/snap_linkto.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/snap_m2m.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/snap_o2m.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/snap_o2o.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/table_a.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/table_b.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/data/table_m2m.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/fieldsHistory.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/__tests__/snapshots.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/interface.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/es-ES.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/collections/collectionsHistory.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/collections/fieldsHistory.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/fields/snapshot-field.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-snapshot-field/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx (91%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx (92%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js (77%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js (56%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js (50%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js (66%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts (100%) create mode 100644 packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js (84%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/index.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/interface.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx (96%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx (81%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/InitializeTheme.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/ThemeCard.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/ThemeList.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/ThemeListProvider.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/ToEditTheme.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/components/theme-editor/index.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/index.tsx (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/locale/fr-FR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/builtinThemes.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/collections/.gitkeep (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/collections/theme-config.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/server/plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-theme-editor/src/types.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/package.json (85%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/client/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/action.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts (97%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/dao/ui_schema_dao.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/helper.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/model.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/repository.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server-hooks/model.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/server/server.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-ui-schema-storage/src/swagger/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/package.json (87%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/PasswordField.tsx (89%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/RoleUsersManager.tsx (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/UserRolesField.tsx (79%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/UsersManagement.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/hooks.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/index.ts (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/locale.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/schemas/users.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/client/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/__tests__/actions.test.ts (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/__tests__/fields.test.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/__tests__/model.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/__tests__/role-users.test.ts (95%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/__tests__/utils.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/actions/users.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/collections/users.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/en-US.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/es-ES.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/fr-FR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/ja-JP.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/pt-BR.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20230802170800-add-username.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20230802183100-update-username.ts (93%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/models/UserModel.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/server/server.ts (98%) rename packages/plugins/{@nocobase => @tachybase}/plugin-users/src/swagger/index.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/.npmignore (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/README.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/README.zh-CN.md (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/client.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/client.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/package.json (94%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/server.d.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/server.js (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/ProviderOptions.tsx (85%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/VerificationProviders.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/index.tsx (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/providerTypes/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/providerTypes/sms-aliyun.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/providerTypes/sms-tencent.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/client/schemas/providers.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/locale/en-US.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/locale/ko_KR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/locale/pt-BR.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/locale/zh-CN.json (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/Plugin.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/__tests__/Plugin.test.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/__tests__/collections/authors.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/__tests__/index.ts (90%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/actions/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/actions/verifications.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/collections/verifications.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/collections/verifications_providers.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/constants.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/index.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/locale/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/locale/zh-CN.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/providers/Provider.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/providers/index.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/providers/sms-aliyun.ts (100%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/server/providers/sms-tencent.ts (99%) rename packages/plugins/{@nocobase => @tachybase}/plugin-verification/src/swagger/index.json (100%) diff --git a/.changeset/clean-grapes-serve.md b/.changeset/clean-grapes-serve.md index 33a610cf5..78ec18849 100644 --- a/.changeset/clean-grapes-serve.md +++ b/.changeset/clean-grapes-serve.md @@ -1,7 +1,7 @@ --- "@hera/plugin-rental": patch -"@nocobase/client": patch -"@nocobase/utils": patch +"@tachybase/client": patch +"@tachybase/utils": patch --- support fuzzy search in cascader diff --git a/.changeset/fuzzy-snails-arrive.md b/.changeset/fuzzy-snails-arrive.md index 5eca1997e..02846c7fe 100644 --- a/.changeset/fuzzy-snails-arrive.md +++ b/.changeset/fuzzy-snails-arrive.md @@ -1,6 +1,6 @@ --- "@hera/plugin-core": patch -"@nocobase/client": patch +"@tachybase/client": patch --- 修复自定义组件没有格式化名称 diff --git a/.env.e2e.example b/.env.e2e.example index d2626dcc2..17bc58b16 100644 --- a/.env.e2e.example +++ b/.env.e2e.example @@ -53,7 +53,7 @@ DB_PASSWORD=nocobase ################# STORAGE (Initialization only) ################# -INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_EMAIL=admin@tachybase.com INIT_ROOT_PASSWORD=admin123 INIT_ROOT_NICKNAME=Super Admin INIT_ROOT_USERNAME=nocobase diff --git a/.env.test.example b/.env.test.example index f34afedcd..21ee3d961 100644 --- a/.env.test.example +++ b/.env.test.example @@ -26,7 +26,7 @@ DB_STORAGE=storage/db/nocobase-test.sqlite ################# STORAGE (Initialization only) ################# -INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_EMAIL=admin@tachybase.com INIT_ROOT_PASSWORD=admin123 INIT_ROOT_NICKNAME=Super Admin INIT_ROOT_USERNAME=nocobase diff --git a/.prettierrc.js b/.prettierrc.js index a4d6e996f..29687401a 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -7,13 +7,13 @@ module.exports = { '^react$', '', // Node.js built-in modules '^@tachybase/(.*)$', - '^@nocobase/(.*)$', '', '', // Imports not matched by other special words or groups. '', '^[.]', // relative imports ], importOrderTypeScriptVersion: '5.4.5', + importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'], overrides: [ { files: '.prettierrc', diff --git a/package.json b/package.json index 00a1f6b48..5f6b4f865 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tachybase", - "version": "0.21.33", + "version": "0.21.34", "private": true, "license": "Apache-2.0", "scripts": { diff --git a/packages/core/acl/package.json b/packages/core/acl/package.json index e770a65a6..e4eb3b469 100644 --- a/packages/core/acl/package.json +++ b/packages/core/acl/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/acl", - "version": "0.21.33", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "main": "./lib/index.js", diff --git a/packages/core/actions/package.json b/packages/core/actions/package.json index 8552185e4..73a1eee1e 100644 --- a/packages/core/actions/package.json +++ b/packages/core/actions/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/actions", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/app/package.json b/packages/core/app/package.json index 3668c7f2a..a153b6069 100644 --- a/packages/core/app/package.json +++ b/packages/core/app/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/app", - "version": "0.21.33", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "main": "./lib/index.js", diff --git a/packages/core/auth/package.json b/packages/core/auth/package.json index 8edfdc9ae..bbecc4d8e 100644 --- a/packages/core/auth/package.json +++ b/packages/core/auth/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/auth", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/build/package.json b/packages/core/build/package.json index bdd12517f..2fa354933 100755 --- a/packages/core/build/package.json +++ b/packages/core/build/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/build", - "version": "0.21.33", + "version": "0.21.34", "description": "Library build tool based on rollup.", "license": "Apache-2.0", "main": "lib/index.js", diff --git a/packages/core/build/src/buildPlugin.ts b/packages/core/build/src/buildPlugin.ts index 6d8db8457..87c7ef721 100644 --- a/packages/core/build/src/buildPlugin.ts +++ b/packages/core/build/src/buildPlugin.ts @@ -124,7 +124,7 @@ const external = [ 'china-division', ]; const pluginPrefix = ( - process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-' + process.env.PLUGIN_PACKAGE_PREFIX || '@tachybase/plugin-,@tachybase/preset-,@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') || curr.startsWith('@tachybase')) { + if (curr.startsWith('@tachybase') || curr.startsWith('@hera') || curr.startsWith('@tachybase')) { prev[`${curr}/client`] = curr; } prev[curr] = curr; diff --git a/packages/core/cache/package.json b/packages/core/cache/package.json index bfc40e4a2..4d3398853 100644 --- a/packages/core/cache/package.json +++ b/packages/core/cache/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/cache", - "version": "0.21.33", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "main": "./lib/index.js", diff --git a/packages/core/cli/package.json b/packages/core/cli/package.json index cd9af651c..214b93feb 100644 --- a/packages/core/cli/package.json +++ b/packages/core/cli/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/cli", - "version": "0.21.33", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "type": "module", diff --git a/packages/core/cli/src/util.ts b/packages/core/cli/src/util.ts index 04c1d1543..7f4788048 100644 --- a/packages/core/cli/src/util.ts +++ b/packages/core/cli/src/util.ts @@ -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-,@tachybase/plugin-,@tachybase/preset-,@hera/plugin-', + PLUGIN_PACKAGE_PREFIX: '@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 8538d84fd..a7f027435 100644 --- a/packages/core/client/package.json +++ b/packages/core/client/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/client", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.mjs", diff --git a/packages/core/client/src/application/__tests__/Plugin.test.ts b/packages/core/client/src/application/__tests__/Plugin.test.ts index 836a4ff78..c830e8e4b 100644 --- a/packages/core/client/src/application/__tests__/Plugin.test.ts +++ b/packages/core/client/src/application/__tests__/Plugin.test.ts @@ -1,5 +1,6 @@ import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; + import { Application } from '../Application'; import { Plugin } from '../Plugin'; @@ -64,13 +65,13 @@ describe('PluginManager', () => { mock.onGet('pm:listEnabled').reply(200, { data: [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo1.com', }, { - name: '@nocobase/demo2', - packageName: '@nocobase/demo2', + name: '@tachybase/demo2', + packageName: '@tachybase/demo2', url: 'https://demo2.com', }, ], diff --git a/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts b/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts index 18ca15cb3..c0bca3d71 100644 --- a/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts +++ b/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts @@ -18,7 +18,7 @@ describe('remotePlugins', () => { class DemoPlugin extends Plugin {} const plugins = { - '@nocobase/demo': DemoPlugin, + '@tachybase/demo': DemoPlugin, }; const mockDefine: any = vi.fn(); @@ -27,16 +27,16 @@ describe('remotePlugins', () => { defineDevPlugins(plugins); expect(mockDefine).toBeCalledTimes(1); - expect(mockDefine).toBeCalledWith('@nocobase/demo/client', expect.any(Function)); + expect(mockDefine).toBeCalledWith('@tachybase/demo/client', expect.any(Function)); }); it('should return Plugin', () => { class DemoPlugin extends Plugin {} const plugins = { - '@nocobase/demo': DemoPlugin, + '@tachybase/demo': DemoPlugin, }; const define: any = function (packageName: string, load: any) { - expect(packageName).toEqual('@nocobase/demo/client'); + expect(packageName).toEqual('@tachybase/demo/client'); expect(load()).toEqual(DemoPlugin); }; window.define = define; @@ -50,17 +50,17 @@ describe('remotePlugins', () => { const mockDefine: any = vi.fn(); window.define = mockDefine; - definePluginClient('@nocobase/demo'); + definePluginClient('@tachybase/demo'); expect(mockDefine).toBeCalledTimes(1); - expect(mockDefine).toBeCalledWith('@nocobase/demo/client', ['exports', '@nocobase/demo'], expect.any(Function)); + expect(mockDefine).toBeCalledWith('@tachybase/demo/client', ['exports', '@tachybase/demo'], expect.any(Function)); }); it('should proxy', () => { const mockDefine: any = vi.fn(); window.define = mockDefine; - definePluginClient('@nocobase/demo'); + definePluginClient('@tachybase/demo'); const exports: any = { a: 'a', @@ -86,7 +86,7 @@ describe('remotePlugins', () => { }; const pluginData: any = [ { - packageName: '@nocobase/demo', + packageName: '@tachybase/demo', url: 'https://demo.com', }, ]; @@ -96,7 +96,7 @@ describe('remotePlugins', () => { expect(requirejs.requirejs.config).toBeCalledWith({ waitSeconds: 120, paths: { - '@nocobase/demo': 'https://demo.com', + '@tachybase/demo': 'https://demo.com', }, }); }); @@ -105,8 +105,8 @@ describe('remotePlugins', () => { it('should resolve', () => { const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo.com', }, ]; @@ -121,14 +121,14 @@ describe('remotePlugins', () => { process(...pluginModules); expect(resolve).toBeCalledTimes(1); - expect(resolve).toBeCalledWith([['@nocobase/demo', 'default']]); + expect(resolve).toBeCalledWith([['@tachybase/demo', 'default']]); }); it('should filter', () => { const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo.com', }, ]; @@ -157,15 +157,15 @@ describe('remotePlugins', () => { requirejs.requirejs.requirejs = vi.fn(); const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo.com', }, ]; const mockDefine: any = vi.fn(); window.define = mockDefine; const plugins = await getRemotePlugins(requirejs, pluginData); - expect(plugins).toEqual([['@nocobase/demo', 'default']]); + expect(plugins).toEqual([['@tachybase/demo', 'default']]); }); }); @@ -185,13 +185,13 @@ describe('remotePlugins', () => { requirejs.requirejs.requirejs = vi.fn(); const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo1.com', }, { - name: '@nocobase/demo2', - packageName: '@nocobase/demo2', + name: '@tachybase/demo2', + packageName: '@tachybase/demo2', url: 'https://demo2.com', }, ]; @@ -200,16 +200,16 @@ describe('remotePlugins', () => { const plugins = await getPlugins({ requirejs, pluginData }); expect(plugins).toEqual([ - ['@nocobase/demo', 'default'], - ['@nocobase/demo2', 'default'], + ['@tachybase/demo', 'default'], + ['@tachybase/demo2', 'default'], ]); expect(remoteFn).toBeCalledTimes(1); expect(mockDefine).toBeCalledTimes(2); expect(requirejs.requirejs.config).toBeCalledWith({ waitSeconds: 120, paths: { - '@nocobase/demo': 'https://demo1.com', - '@nocobase/demo2': 'https://demo2.com', + '@tachybase/demo': 'https://demo1.com', + '@tachybase/demo2': 'https://demo2.com', }, }); }); @@ -229,13 +229,13 @@ describe('remotePlugins', () => { requirejs.requirejs.requirejs = vi.fn(); const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo1.com', }, { - name: '@nocobase/demo2', - packageName: '@nocobase/demo2', + name: '@tachybase/demo2', + packageName: '@tachybase/demo2', url: 'https://demo2.com', }, ]; @@ -250,8 +250,8 @@ describe('remotePlugins', () => { }) as any, }); expect(plugins).toEqual([ - ['@nocobase/demo', 'default'], - ['@nocobase/demo2', 'default'], + ['@tachybase/demo', 'default'], + ['@tachybase/demo2', 'default'], ]); expect(remoteFn).toBeCalledTimes(0); expect(mockDefine).toBeCalledTimes(2); @@ -273,13 +273,13 @@ describe('remotePlugins', () => { requirejs.requirejs.requirejs = vi.fn(); const pluginData: any = [ { - name: '@nocobase/demo', - packageName: '@nocobase/demo', + name: '@tachybase/demo', + packageName: '@tachybase/demo', url: 'https://demo1.com', }, { - name: '@nocobase/demo2', - packageName: '@nocobase/demo2', + name: '@tachybase/demo2', + packageName: '@tachybase/demo2', url: 'https://demo2.com', }, ]; @@ -290,22 +290,22 @@ describe('remotePlugins', () => { requirejs, pluginData, devDynamicImport: ((packageName) => { - if (packageName === '@nocobase/demo') { + if (packageName === '@tachybase/demo') { return Promise.resolve({ default: 'default' }); } return Promise.resolve(null); }) as any, }); expect(plugins).toEqual([ - ['@nocobase/demo', 'default'], - ['@nocobase/demo2', 'default'], + ['@tachybase/demo', 'default'], + ['@tachybase/demo2', 'default'], ]); expect(remoteFn).toBeCalled(); expect(mockDefine).toBeCalledTimes(2); expect(requirejs.requirejs.config).toBeCalledWith({ waitSeconds: 120, paths: { - '@nocobase/demo2': 'https://demo2.com', + '@tachybase/demo2': 'https://demo2.com', }, }); }); diff --git a/packages/core/client/src/data-source/collection/Collection.ts b/packages/core/client/src/data-source/collection/Collection.ts index 66e7ea820..e17bcc9a4 100644 --- a/packages/core/client/src/data-source/collection/Collection.ts +++ b/packages/core/client/src/data-source/collection/Collection.ts @@ -1,4 +1,5 @@ import { SchemaKey } from '@tachybase/schema'; + import { filter } from 'lodash'; import type { CollectionManager } from './CollectionManager'; @@ -21,7 +22,7 @@ export interface CollectionOptions { title?: string; dataSource?: string; /** - * Used for @nocobase/plugin-duplicator + * Used for @tachybase/plugin-duplicator * @see packages/core/database/src/collection-group-manager.tss * * @prop {'required' | 'optional' | 'skip'} dumpable - Determine whether the collection is dumped diff --git a/packages/core/client/src/modules/plugin-manager/__e2e__/pluginManager.test.ts b/packages/core/client/src/modules/plugin-manager/__e2e__/pluginManager.test.ts index 30728a832..30eb83357 100644 --- a/packages/core/client/src/modules/plugin-manager/__e2e__/pluginManager.test.ts +++ b/packages/core/client/src/modules/plugin-manager/__e2e__/pluginManager.test.ts @@ -21,7 +21,7 @@ test.describe.skip('add plugin in front', () => { await page .getByLabel('block-item-Input-Npm package name') .getByRole('textbox') - .fill('@nocobase/plugin-sample-custom-collection-template'); + .fill('@tachybase/plugin-sample-custom-collection-template'); await page.getByLabel('Submit').click(); // wait for the page to finish refreshing await page.waitForFunction(() => { @@ -72,7 +72,7 @@ test.describe.skip('remove plugin', () => { await page .getByLabel('block-item-Input-Npm package name') .getByRole('textbox') - .fill('@nocobase/plugin-sample-hello'); + .fill('@tachybase/plugin-sample-hello'); await page.getByLabel('Submit').click(); // wait for the modal to disappear and the page to finish refreshing await page.waitForFunction(() => { diff --git a/packages/core/client/src/schema-settings/index.md b/packages/core/client/src/schema-settings/index.md index 534612df2..63e71a7b9 100644 --- a/packages/core/client/src/schema-settings/index.md +++ b/packages/core/client/src/schema-settings/index.md @@ -275,7 +275,7 @@ interface SchemaSettingsManager { - 示例 ```ts | pure -import { Plugin } from '@nocobase/plugin' +import { Plugin } from '@tachybase/plugin' class MyPlugin extends Plugin { load() { const allSchemaSettings = this.app.schemaSettingsManager.getAll(); @@ -302,7 +302,7 @@ name 为 `new SchemaSettings(options)` 中的 name。 - 示例 ```ts | pure -import { Plugin } from '@nocobase/plugin' +import { Plugin } from '@tachybase/plugin' class MyPlugin extends Plugin { load() { const mySchemaSettings = this.app.schemaSettingsManager.get('MySchemaSettings'); @@ -329,7 +329,7 @@ name 为 `new SchemaSettings(options)` 中的 name。 - 示例 ```ts | pure -import { Plugin } from '@nocobase/plugin' +import { Plugin } from '@tachybase/plugin' class MyPlugin extends Plugin { load() { this.app.schemaSettingsManager.remove('MySchemaSettings'); @@ -352,7 +352,7 @@ interface SchemaSettingsManager { - 示例 ```ts | pure -import { Plugin } from '@nocobase/plugin' +import { Plugin } from '@tachybase/plugin' const mySchemaSettings = new SchemaSettings({ name: 'MySchemaSettings', @@ -381,7 +381,7 @@ interface SchemaSettingsManager { - 示例 ```ts | pure -import { Plugin } from '@nocobase/plugin' +import { Plugin } from '@tachybase/plugin' class MyPlugin extends Plugin { load() { diff --git a/packages/core/components/package.json b/packages/core/components/package.json index caaabef95..326a01ee0 100644 --- a/packages/core/components/package.json +++ b/packages/core/components/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/components", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/core/create-tachybase-app/package.json b/packages/core/create-tachybase-app/package.json index 06d0997e8..6a66d2a28 100755 --- a/packages/core/create-tachybase-app/package.json +++ b/packages/core/create-tachybase-app/package.json @@ -1,6 +1,6 @@ { "name": "create-tachybase-app", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "src/index.js", "bin": { diff --git a/packages/core/create-tachybase-app/templates/app/.env.e2e.tpl b/packages/core/create-tachybase-app/templates/app/.env.e2e.tpl index c5cf815aa..c4d53a85c 100644 --- a/packages/core/create-tachybase-app/templates/app/.env.e2e.tpl +++ b/packages/core/create-tachybase-app/templates/app/.env.e2e.tpl @@ -34,7 +34,7 @@ DB_TABLE_PREFIX= ################# STORAGE (Initialization only) ################# -INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_EMAIL=admin@tachybase.com INIT_ROOT_PASSWORD=admin123 INIT_ROOT_NICKNAME=Super Admin INIT_ROOT_USERNAME=nocobase diff --git a/packages/core/create-tachybase-app/templates/app/.env.test.tpl b/packages/core/create-tachybase-app/templates/app/.env.test.tpl index 309089dfd..11c383a2f 100644 --- a/packages/core/create-tachybase-app/templates/app/.env.test.tpl +++ b/packages/core/create-tachybase-app/templates/app/.env.test.tpl @@ -16,7 +16,7 @@ DB_STORAGE=storage/db/nocobase-test.sqlite # DB_PASSWORD=nocobase # DB_LOGGING=on -INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_EMAIL=admin@tachybase.com INIT_ROOT_PASSWORD=admin123 INIT_ROOT_NICKNAME=Super Admin INIT_ROOT_USERNAME=nocobase diff --git a/packages/core/create-tachybase-app/templates/app/.env.tpl b/packages/core/create-tachybase-app/templates/app/.env.tpl index 0dc14dc6a..52570e42c 100644 --- a/packages/core/create-tachybase-app/templates/app/.env.tpl +++ b/packages/core/create-tachybase-app/templates/app/.env.tpl @@ -11,7 +11,7 @@ DB_LOGGING=off DB_DIALECT={{{env.DB_DIALECT}}} {{{envs}}} -INIT_ROOT_EMAIL=admin@nocobase.com +INIT_ROOT_EMAIL=admin@tachybase.com INIT_ROOT_PASSWORD=admin123 INIT_ROOT_NICKNAME=Super Admin INIT_ROOT_USERNAME=nocobase diff --git a/packages/core/data-source-manager/package.json b/packages/core/data-source-manager/package.json index 4b061920b..887769ddb 100644 --- a/packages/core/data-source-manager/package.json +++ b/packages/core/data-source-manager/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/data-source-manager", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/database/package.json b/packages/core/database/package.json index b8490e22a..2ac67ec56 100644 --- a/packages/core/database/package.json +++ b/packages/core/database/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/database", - "version": "0.21.33", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "main": "./lib/index.js", diff --git a/packages/core/database/src/__tests__/sync/unique-index.test.ts b/packages/core/database/src/__tests__/sync/unique-index.test.ts index 318b027e2..28fb9a347 100644 --- a/packages/core/database/src/__tests__/sync/unique-index.test.ts +++ b/packages/core/database/src/__tests__/sync/unique-index.test.ts @@ -1,6 +1,7 @@ -import { Database, mockDatabase } from '../../index'; import { waitSecond } from '@tachybase/test'; +import { Database, mockDatabase } from '../../index'; + describe('unique index', () => { let db: Database; @@ -35,7 +36,7 @@ describe('unique index', () => { await User.repository.create({ values: { userName: 'test', - userEmail: 'test@nocobase.com', + userEmail: 'test@tachybase.com', }, }); }).not.toThrow(); @@ -45,7 +46,7 @@ describe('unique index', () => { await User.repository.create({ values: { userName: 'test', - userEmail: 'test123@nocobase.com', + userEmail: 'test123@tachybase.com', }, }); }).not.toThrow(); @@ -56,7 +57,7 @@ describe('unique index', () => { User.repository.create({ values: { userName: 'test', - userEmail: 'test@nocobase.com', + userEmail: 'test@tachybase.com', }, }), ).rejects.toThrow(); diff --git a/packages/core/devtools/package.json b/packages/core/devtools/package.json index e31d07d8b..511a68be8 100644 --- a/packages/core/devtools/package.json +++ b/packages/core/devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/devtools", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/devtools/umiConfig.js b/packages/core/devtools/umiConfig.js index 06eee2281..94c504351 100644 --- a/packages/core/devtools/umiConfig.js +++ b/packages/core/devtools/umiConfig.js @@ -114,7 +114,7 @@ function getNodeModulesPath(packageDir) { return path.join(node_modules_dir, packageDir); } class IndexGenerator { - nocobaseDir = getNodeModulesPath('@nocobase'); + nocobaseDir = getNodeModulesPath('@tachybase'); constructor(outputPath, pluginsPath) { this.outputPath = outputPath; diff --git a/packages/core/evaluators/package.json b/packages/core/evaluators/package.json index ed5a91756..fa5829ec4 100644 --- a/packages/core/evaluators/package.json +++ b/packages/core/evaluators/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/evaluators", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/logger/package.json b/packages/core/logger/package.json index 2733e2770..8b7d05424 100644 --- a/packages/core/logger/package.json +++ b/packages/core/logger/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/logger", - "version": "0.21.33", + "version": "0.21.34", "description": "nocobase logging library", "repository": { "type": "git", diff --git a/packages/core/resourcer/package.json b/packages/core/resourcer/package.json index d7eeb50d6..5f6f51071 100644 --- a/packages/core/resourcer/package.json +++ b/packages/core/resourcer/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/resourcer", - "version": "0.21.33", + "version": "0.21.34", "description": "", "repository": { "type": "git", diff --git a/packages/core/schema/package.json b/packages/core/schema/package.json index cae401b7d..305b71c21 100644 --- a/packages/core/schema/package.json +++ b/packages/core/schema/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/schema", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/core/sdk/package.json b/packages/core/sdk/package.json index 361976780..088f84a88 100644 --- a/packages/core/sdk/package.json +++ b/packages/core/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/sdk", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/core/server/package.json b/packages/core/server/package.json index 91d3413e2..1d8ed4bdb 100644 --- a/packages/core/server/package.json +++ b/packages/core/server/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/server", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "types": "./lib/index.d.ts", diff --git a/packages/core/server/src/commands/index.ts b/packages/core/server/src/commands/index.ts index c518ecb8d..f1ca7dbcc 100644 --- a/packages/core/server/src/commands/index.ts +++ b/packages/core/server/src/commands/index.ts @@ -1,4 +1,5 @@ import Application from '../application'; +import consoleCommand from './console'; import createMigration from './create-migration'; import dbAuth from './db-auth'; import dbClean from './db-clean'; @@ -11,7 +12,7 @@ import restart from './restart'; import start from './start'; import stop from './stop'; import upgrade from './upgrade'; -import consoleCommand from './console'; + export function registerCli(app: Application) { consoleCommand(app); dbAuth(app); @@ -28,7 +29,7 @@ export function registerCli(app: Application) { start(app); refresh(app); - // development only with @nocobase/cli + // development only with @tachybase/cli app.command('build').argument('[packages...]'); app.command('clean'); app.command('dev').usage('[options]').option('-p, --port [port]').option('--client').option('--server'); diff --git a/packages/core/server/src/gateway/index.ts b/packages/core/server/src/gateway/index.ts index 714920d17..6e2ec1958 100644 --- a/packages/core/server/src/gateway/index.ts +++ b/packages/core/server/src/gateway/index.ts @@ -1,18 +1,20 @@ -import { SystemLogger, createSystemLogger, getLoggerFilePath } from '@tachybase/logger'; -import { Registry, Toposort, ToposortOptions, uid } from '@tachybase/utils'; -import { createStoragePluginsSymlink } from '@tachybase/utils/plugin-symlink'; -import { Command } from 'commander'; -import compression from 'compression'; import { randomUUID } from 'crypto'; import { EventEmitter } from 'events'; import fs from 'fs'; import http, { IncomingMessage, ServerResponse } from 'http'; -import compose from 'koa-compose'; import { promisify } from 'node:util'; import { resolve } from 'path'; +import { parse } from 'url'; +import { createSystemLogger, getLoggerFilePath, SystemLogger } from '@tachybase/logger'; +import { Registry, Toposort, ToposortOptions, uid } from '@tachybase/utils'; +import { createStoragePluginsSymlink } from '@tachybase/utils/plugin-symlink'; + +import { Command } from 'commander'; +import compression from 'compression'; +import compose from 'koa-compose'; import qs from 'qs'; import handler from 'serve-handler'; -import { parse } from 'url'; + import { AppSupervisor } from '../app-supervisor'; import { ApplicationOptions } from '../application'; import { getPackageDirByExposeUrl, getPackageNameByExposeUrl } from '../plugin-manager'; @@ -185,14 +187,14 @@ export class Gateway extends EventEmitter { }); } - // pathname example: /static/plugins/@nocobase/plugins-acl/README.md + // pathname example: /static/plugins/@tachybase/plugins-acl/README.md // protect server files if (pathname.startsWith(PLUGIN_STATICS_PATH) && !pathname.includes('/server/')) { await compress(req, res); const packageName = getPackageNameByExposeUrl(pathname); - // /static/plugins/@nocobase/plugins-acl/README.md => /User/projects/nocobase/plugins/acl + // /static/plugins/@tachybase/plugins-acl/README.md => /User/projects/nocobase/plugins/acl const publicDir = getPackageDirByExposeUrl(pathname); - // /static/plugins/@nocobase/plugins-acl/README.md => README.md + // /static/plugins/@tachybase/plugins-acl/README.md => README.md const destination = pathname.replace(PLUGIN_STATICS_PATH, '').replace(packageName, ''); return handler(req, res, { public: publicDir, diff --git a/packages/core/server/src/locale/locale.ts b/packages/core/server/src/locale/locale.ts index 5ee846610..c2a1ed540 100644 --- a/packages/core/server/src/locale/locale.ts +++ b/packages/core/server/src/locale/locale.ts @@ -91,8 +91,8 @@ export class Locale { const res = getResource(packageName, lang); if (res) { resources[packageName] = { ...res }; - if (packageName.includes('@nocobase/plugin-')) { - resources[packageName.substring('@nocobase/plugin-'.length)] = { ...res }; + if (packageName.includes('@tachybase/plugin-')) { + resources[packageName.substring('@tachybase/plugin-'.length)] = { ...res }; } } } catch (err) { diff --git a/packages/core/server/src/locale/resource.ts b/packages/core/server/src/locale/resource.ts index d8a1e3310..9cbd0fc7e 100644 --- a/packages/core/server/src/locale/resource.ts +++ b/packages/core/server/src/locale/resource.ts @@ -14,7 +14,7 @@ export const getResource = (packageName: string, lang: string, isPlugin = true) if (process.env.APP_ENV !== 'production') { try { require.resolve('@tachybase/client/src'); - if (packageName === '@nocobase/plugin-client') { + if (packageName === '@tachybase/plugin-client') { packageName = '@tachybase/client'; } } catch (error) { diff --git a/packages/core/server/src/plugin-manager/clientStaticUtils.ts b/packages/core/server/src/plugin-manager/clientStaticUtils.ts index 2b7a50091..fdf9f9fbf 100644 --- a/packages/core/server/src/plugin-manager/clientStaticUtils.ts +++ b/packages/core/server/src/plugin-manager/clientStaticUtils.ts @@ -79,7 +79,7 @@ export function getExposeChangelogUrl(packageName: string) { * * @example * getPluginNameByClientStaticUrl('/static/plugins/dayjs/index.js') => 'dayjs' - * getPluginNameByClientStaticUrl('/static/plugins/@nocobase/foo/README.md') => '@nocobase/foo' + * getPluginNameByClientStaticUrl('/static/plugins/@tachybase/foo/README.md') => '@tachybase/foo' */ export function getPackageNameByExposeUrl(pathname: string) { pathname = pathname.replace(process.env.PLUGIN_STATICS_PATH, ''); diff --git a/packages/core/server/src/plugin-manager/constants.ts b/packages/core/server/src/plugin-manager/constants.ts index 51a7764a7..80ee17a2b 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-,@tachybase/plugin-,@hera/plugin-' + process.env.PLUGIN_PACKAGE_PREFIX || '@tachybase/plugin-,@tachybase/preset-,@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/deps.ts b/packages/core/server/src/plugin-manager/deps.ts index a44ba13d6..e4aff5b9a 100644 --- a/packages/core/server/src/plugin-manager/deps.ts +++ b/packages/core/server/src/plugin-manager/deps.ts @@ -2,7 +2,7 @@ import { version } from '../../package.json'; const deps: Record = { - '@nocobase': `${version.split('.').slice(0, 2).join('.')}.x`, // 0.12.x + '@tachybase': `${version.split('.').slice(0, 2).join('.')}.x`, // 0.12.x '@formily': '2.x', jsonwebtoken: '8.x', diff --git a/packages/core/server/src/plugin-manager/plugin-manager.ts b/packages/core/server/src/plugin-manager/plugin-manager.ts index 9e58020f3..eccc89fbb 100644 --- a/packages/core/server/src/plugin-manager/plugin-manager.ts +++ b/packages/core/server/src/plugin-manager/plugin-manager.ts @@ -1,12 +1,14 @@ +import fs from 'fs'; +import net from 'net'; +import { basename, dirname, join, resolve, sep } from 'path'; import { CleanOptions, Collection, SyncOptions } from '@tachybase/database'; import { Container, importModule, isURL } from '@tachybase/utils'; import { fsExists } from '@tachybase/utils/plugin-symlink'; + import execa from 'execa'; import fg from 'fast-glob'; -import fs from 'fs'; import _ from 'lodash'; -import net from 'net'; -import { basename, dirname, join, resolve, sep } from 'path'; + import Application from '../application'; import { createAppProxy, tsxRerunning } from '../helper'; import { Plugin } from '../plugin'; @@ -135,9 +137,7 @@ export class PluginManager { * @internal */ static getPluginPkgPrefix() { - return ( - process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-' - ).split(','); + return (process.env.PLUGIN_PACKAGE_PREFIX || '@tachybase/plugin-,@tachybase/preset-,@hera/plugin-').split(','); } /** @@ -712,7 +712,7 @@ export class PluginManager { options['name'] = model?.name; } if (!options.name) { - options['name'] = urlOrName.replace('@nocobase/plugin-', ''); + options['name'] = urlOrName.replace('@tachybase/plugin-', ''); } } await this.addByNpm({ diff --git a/packages/core/server/src/plugin-manager/utils.ts b/packages/core/server/src/plugin-manager/utils.ts index d0511ef49..fa222d8f4 100644 --- a/packages/core/server/src/plugin-manager/utils.ts +++ b/packages/core/server/src/plugin-manager/utils.ts @@ -1,14 +1,16 @@ +import { builtinModules } from 'module'; +import os from 'os'; +import path from 'path'; import { importModule, isURL } from '@tachybase/utils'; import { createStoragePluginSymLink } from '@tachybase/utils/plugin-symlink'; + import axios, { AxiosRequestConfig } from 'axios'; import decompress from 'decompress'; import fg from 'fast-glob'; import fs from 'fs-extra'; import ini from 'ini'; -import { builtinModules } from 'module'; -import os from 'os'; -import path from 'path'; import semver from 'semver'; + import { getDepPkgPath, getPackageDir, getPackageFilePathWithExistCheck } from './clientStaticUtils'; import { APP_NAME, @@ -265,7 +267,7 @@ export async function getPluginInfoByNpm(options: GetPluginInfoOptions) { * scan `src/server` directory to get server packages * * @example - * getServerPackages('src/server') => ['dayjs', '@nocobase/plugin-bbb'] + * getServerPackages('src/server') => ['dayjs', '@tachybase/plugin-bbb'] */ export function getServerPackages(packageDir: string) { function isBuiltinModule(packageName: string) { @@ -520,7 +522,7 @@ export async function getCompatible(packageName: string) { const packageVersion = externalVersion[packageName]; const globalPackageName = deps[packageName] ? packageName - : deps[packageName.split('/')[0]] // @nocobase and @formily + : deps[packageName.split('/')[0]] // @tachybase and @formily ? packageName.split('/')[0] : undefined; diff --git a/packages/core/telemetry/package.json b/packages/core/telemetry/package.json index 4c2dc5b43..ad85fd28e 100644 --- a/packages/core/telemetry/package.json +++ b/packages/core/telemetry/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/telemetry", - "version": "0.21.33", + "version": "0.21.34", "description": "nocobase telemetry library", "repository": { "type": "git", diff --git a/packages/core/test/package.json b/packages/core/test/package.json index cb300791f..85a89bac5 100644 --- a/packages/core/test/package.json +++ b/packages/core/test/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/test", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "exports": { ".": { diff --git a/packages/core/test/playwright/tests/auth.setup.ts b/packages/core/test/playwright/tests/auth.setup.ts index 8198ed127..6d5081b7f 100644 --- a/packages/core/test/playwright/tests/auth.setup.ts +++ b/packages/core/test/playwright/tests/auth.setup.ts @@ -4,7 +4,7 @@ import { expect, test as setup } from '@playwright/test'; setup('admin', async ({ page }) => { await page.goto('/'); await page.getByPlaceholder('Username/Email').click(); - await page.getByPlaceholder('Username/Email').fill('admin@nocobase.com'); + await page.getByPlaceholder('Username/Email').fill('admin@tachybase.com'); await page.getByPlaceholder('Password').click(); await page.getByPlaceholder('Password').fill('admin123'); await page.getByRole('button', { name: 'Sign in' }).click(); diff --git a/packages/core/utils/package.json b/packages/core/utils/package.json index 7bc39512b..52eb0af89 100644 --- a/packages/core/utils/package.json +++ b/packages/core/utils/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/utils", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "lib/index.js", "types": "./lib/index.d.ts", diff --git a/packages/plugins/@hera/plugin-approval-mobile/package.json b/packages/plugins/@hera/plugin-approval-mobile/package.json index f52cabf08..3490376db 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/package.json +++ b/packages/plugins/@hera/plugin-approval-mobile/package.json @@ -1,6 +1,6 @@ { "name": "@hera/plugin-approval-mobile", - "version": "0.0.18", + "version": "0.0.19", "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "5.x", diff --git a/packages/plugins/@hera/plugin-approval/package.json b/packages/plugins/@hera/plugin-approval/package.json index 4a8b79a50..9196f4ee4 100644 --- a/packages/plugins/@hera/plugin-approval/package.json +++ b/packages/plugins/@hera/plugin-approval/package.json @@ -1,7 +1,7 @@ { "name": "@hera/plugin-approval", "displayName": "Workflow: Approval Center", - "version": "0.1.27", + "version": "0.1.28", "description": "Can configure a universal approval process to complete the complete approval process in the approval center.", "keywords": [ "Workflow" @@ -9,11 +9,11 @@ "main": "dist/server/index.js", "devDependencies": { "@ant-design/icons": "5.x", - "@nocobase/plugin-ui-schema-storage": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/components": "workspace:*", "@tachybase/data-source-manager": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", "@tachybase/schema": "workspace:*", "@tachybase/utils": "workspace:*", "@types/lodash": "4.17.0", diff --git a/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts b/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts index 03ddbb8e0..4043382ac 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts +++ b/packages/plugins/@hera/plugin-approval/src/server/ApprovalInstruction.ts @@ -1,6 +1,6 @@ +import { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; import { Instruction, JOB_STATUS } from '@tachybase/plugin-workflow'; import { uid } from '@tachybase/utils'; -import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; import { APPROVAL_ACTION_STATUS, APPROVAL_STATUS } from './constants'; diff --git a/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts b/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts index 52a6c8434..a2a2d0619 100644 --- a/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts +++ b/packages/plugins/@hera/plugin-approval/src/server/ApprovalTrigger.ts @@ -1,7 +1,7 @@ import { parseCollectionName } from '@tachybase/data-source-manager'; import { modelAssociationByKey } from '@tachybase/database'; +import { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; import { EXECUTION_STATUS, JOB_STATUS, toJSON, Trigger } from '@tachybase/plugin-workflow'; -import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; import { get } from 'lodash'; import { BelongsTo, HasOne, Op } from 'sequelize'; diff --git a/packages/plugins/@hera/plugin-audit-logs/package.json b/packages/plugins/@hera/plugin-audit-logs/package.json index f4cabf483..88f7cf9c2 100644 --- a/packages/plugins/@hera/plugin-audit-logs/package.json +++ b/packages/plugins/@hera/plugin-audit-logs/package.json @@ -1,7 +1,7 @@ { "name": "@hera/plugin-audit-logs", "displayName": "Audit logs", - "version": "1.0.36", + "version": "1.0.37", "description": "Audit logs.", "keywords": [ "System management" diff --git a/packages/plugins/@hera/plugin-core/package.json b/packages/plugins/@hera/plugin-core/package.json index 01f51e749..c51dd68e8 100644 --- a/packages/plugins/@hera/plugin-core/package.json +++ b/packages/plugins/@hera/plugin-core/package.json @@ -1,7 +1,7 @@ { "name": "@hera/plugin-core", "displayName": "Hera platform", - "version": "1.7.37", + "version": "1.7.38", "description": "Hera platform", "keywords": [ "System management" @@ -44,12 +44,12 @@ "ws": "^8.13.0" }, "peerDependencies": { - "@nocobase/plugin-acl": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/data-source-manager": "workspace:*", "@tachybase/database": "workspace:*", "@tachybase/evaluators": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", "@tachybase/plugin-workflow": "workspace:*", "@tachybase/schema": "workspace:*", "@tachybase/server": "workspace:*", 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 9e47c4abc..f82d65577 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 @@ -34,7 +34,7 @@ import { useRequest, useResourceActionContext, } from '@tachybase/client'; -import PluginACLClient, { RolesManagerContext } from '@nocobase/plugin-acl/client'; +import PluginACLClient, { RolesManagerContext } from '@tachybase/plugin-acl/client'; import { connect, mapReadPretty, uid, useField, useFieldSchema, useForm } from '@tachybase/schema'; import { App, diff --git a/packages/plugins/@hera/plugin-core/src/server/features/RequestInterceptionTrigger.ts b/packages/plugins/@hera/plugin-core/src/server/features/RequestInterceptionTrigger.ts index bbd310976..a9189592e 100644 --- a/packages/plugins/@hera/plugin-core/src/server/features/RequestInterceptionTrigger.ts +++ b/packages/plugins/@hera/plugin-core/src/server/features/RequestInterceptionTrigger.ts @@ -1,8 +1,7 @@ -import PluginErrorHandler from '@nocobase/plugin-error-handler'; -import { Trigger, EXECUTION_STATUS } from '@tachybase/plugin-workflow'; -import { joinCollectionName } from '@tachybase/data-source-manager'; import type { Context, Next } from '@tachybase/actions'; -import PluginWorkflow from '@tachybase/plugin-workflow'; +import { joinCollectionName } from '@tachybase/data-source-manager'; +import PluginErrorHandler from '@tachybase/plugin-error-handler'; +import PluginWorkflow, { EXECUTION_STATUS, Trigger } from '@tachybase/plugin-workflow'; class RequestInterceptionError extends Error { status = 400; diff --git a/packages/plugins/@hera/plugin-core/src/server/features/departments.ts b/packages/plugins/@hera/plugin-core/src/server/features/departments.ts index 89a689e3b..1afea7348 100644 --- a/packages/plugins/@hera/plugin-core/src/server/features/departments.ts +++ b/packages/plugins/@hera/plugin-core/src/server/features/departments.ts @@ -1,6 +1,7 @@ -import type { CollectionRepository } from '@nocobase/plugin-collection-manager'; -import { Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import type { CollectionRepository } from '@tachybase/plugin-collection-manager'; +import { Plugin } from '@tachybase/server'; + import { aggregateSearch, listExcludeDept, diff --git a/packages/plugins/@hera/plugin-homepage/package.json b/packages/plugins/@hera/plugin-homepage/package.json index 2c096219c..73b9fa012 100644 --- a/packages/plugins/@hera/plugin-homepage/package.json +++ b/packages/plugins/@hera/plugin-homepage/package.json @@ -1,6 +1,6 @@ { "name": "@hera/plugin-homepage", - "version": "0.0.6", + "version": "0.0.7", "main": "dist/server/index.js", "dependencies": {}, "devDependencies": { diff --git a/packages/plugins/@hera/plugin-rental/package.json b/packages/plugins/@hera/plugin-rental/package.json index 76b70bbcf..3393122c7 100644 --- a/packages/plugins/@hera/plugin-rental/package.json +++ b/packages/plugins/@hera/plugin-rental/package.json @@ -1,7 +1,7 @@ { "name": "@hera/plugin-rental", "displayName": "professional construction materials rental system - customized based on hera", - "version": "1.7.49", + "version": "1.7.50", "description": "Offering a standardized leasing management system, encompassing comprehensive administration from materials to contracts to labor personnel, while providing a robust financial management mechanism, and real-time monitoring of the operational capacity of the leasing system.", "keywords": [ "System management" @@ -26,12 +26,12 @@ }, "peerDependencies": { "@hera/plugin-core": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-data-visualization": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/cache": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-data-visualization": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", "@tachybase/utils": "workspace:*" 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 d77d1e084..52f064175 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/hooks/useAddToChecklistActionProps.tsx @@ -1,6 +1,7 @@ -import { useForm } from '@tachybase/schema'; import { useAPIClient, useBlockRequestContext, useRequest } from '@tachybase/client'; -import { useChartFilter } from '@nocobase/plugin-data-visualization/client'; +import { useChartFilter } from '@tachybase/plugin-data-visualization/client'; +import { useForm } from '@tachybase/schema'; + import { message } from 'antd'; import { useNavigate } from 'react-router-dom'; diff --git a/packages/plugins/@hera/plugin-rental/src/server/actions/records-controller.ts b/packages/plugins/@hera/plugin-rental/src/server/actions/records-controller.ts index bb418ba19..bcfb912d2 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/actions/records-controller.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/actions/records-controller.ts @@ -1,15 +1,17 @@ import { Context } from '@tachybase/actions'; -import { QueryTypes } from 'sequelize'; -import { RecordPdfService } from '../services/record-pdf-service'; -import { SystemSettingService, SqlLoader } from '@hera/plugin-core'; -import { Action, Controller, Inject } from '@tachybase/utils'; -import { Movement } from '../../utils/constants'; -import _ from 'lodash'; -import { FilterParser, Repository } from '@tachybase/database'; -import { CollectionRepository } from '@nocobase/plugin-collection-manager'; import { Cache } from '@tachybase/cache'; -import getStream from 'get-stream'; +import { FilterParser, Repository } from '@tachybase/database'; +import { CollectionRepository } from '@tachybase/plugin-collection-manager'; +import { Action, Controller, Inject } from '@tachybase/utils'; + +import { SqlLoader, SystemSettingService } from '@hera/plugin-core'; import { stringify } from 'flatted'; +import getStream from 'get-stream'; +import _ from 'lodash'; +import { QueryTypes } from 'sequelize'; + +import { Movement } from '../../utils/constants'; +import { RecordPdfService } from '../services/record-pdf-service'; @Controller('records') export class RecordPreviewController { @@ -239,6 +241,7 @@ export class RecordPreviewController { if (Buffer.isBuffer(result)) { ctx.body = result; } else { + // @ts-ignore ctx.body = Buffer.from(result.data); } } else { diff --git a/packages/plugins/@hera/plugin-rental/src/server/plugin.ts b/packages/plugins/@hera/plugin-rental/src/server/plugin.ts index 7a261b306..541f9737e 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/plugin.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/plugin.ts @@ -1,17 +1,22 @@ import path from 'path'; import { Plugin } from '@tachybase/server'; -import { RecordService } from './services/record-service'; +import { Container } from '@tachybase/utils'; + import { ContractRuleService } from './services/contract-rule-service'; import { ContractService } from './services/contract-service'; import { ProjectService } from './services/project-service'; -import { Container } from '@tachybase/utils'; +import { RecordService } from './services/record-service'; + import './actions'; -import { SqlLoader } from '@hera/plugin-core'; -import { DetailCheckService } from './services/detail-check-service'; -import { CollectionRepository } from '@nocobase/plugin-collection-manager'; -import { Repository } from '@tachybase/database'; -import { VehiclesService } from './services/vehicles-service'; + import { Cache } from '@tachybase/cache'; +import { Repository } from '@tachybase/database'; +import { CollectionRepository } from '@tachybase/plugin-collection-manager'; + +import { SqlLoader } from '@hera/plugin-core'; + +import { DetailCheckService } from './services/detail-check-service'; +import { VehiclesService } from './services/vehicles-service'; export class PluginRentalServer extends Plugin { cache: Cache; diff --git a/packages/plugins/@hera/plugin-sancongtou/package.json b/packages/plugins/@hera/plugin-sancongtou/package.json index c5cd583f1..e3b656956 100644 --- a/packages/plugins/@hera/plugin-sancongtou/package.json +++ b/packages/plugins/@hera/plugin-sancongtou/package.json @@ -1,7 +1,7 @@ { "name": "@hera/plugin-sancongtou", "displayName": "Mobile client: Sancongtou Customization", - "version": "0.0.11", + "version": "0.0.12", "description": "Provide mobile client customization for the sancongtou project.", "main": "dist/server/index.js", "dependencies": { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/README.md b/packages/plugins/@nocobase/plugin-action-bulk-edit/README.md deleted file mode 100644 index 51e4a94b7..000000000 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-action-bulk-edit diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/README.md b/packages/plugins/@nocobase/plugin-action-bulk-update/README.md deleted file mode 100644 index 74a21eb41..000000000 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-action-bulk-update diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/README.md b/packages/plugins/@nocobase/plugin-action-duplicate/README.md deleted file mode 100644 index 9ef1e61ef..000000000 --- a/packages/plugins/@nocobase/plugin-action-duplicate/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-action-duplicate diff --git a/packages/plugins/@nocobase/plugin-action-print/README.md b/packages/plugins/@nocobase/plugin-action-print/README.md deleted file mode 100644 index f41b59882..000000000 --- a/packages/plugins/@nocobase/plugin-action-print/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-action-print diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts b/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts deleted file mode 100644 index c99c64ea4..000000000 --- a/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const NAMESPACE = '@nocobase/plugin-api-keys'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/README.md b/packages/plugins/@nocobase/plugin-data-source-manager/README.md deleted file mode 100644 index b8dc7945c..000000000 --- a/packages/plugins/@nocobase/plugin-data-source-manager/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-data-source-manager diff --git a/packages/plugins/@nocobase/plugin-gantt/README.md b/packages/plugins/@nocobase/plugin-gantt/README.md deleted file mode 100644 index 849ea6026..000000000 --- a/packages/plugins/@nocobase/plugin-gantt/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-gantt diff --git a/packages/plugins/@nocobase/plugin-kanban/README.md b/packages/plugins/@nocobase/plugin-kanban/README.md deleted file mode 100644 index 8cfc6ddef..000000000 --- a/packages/plugins/@nocobase/plugin-kanban/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-kanban diff --git a/packages/plugins/@nocobase/plugin-logger/README.md b/packages/plugins/@nocobase/plugin-logger/README.md deleted file mode 100644 index f0953db11..000000000 --- a/packages/plugins/@nocobase/plugin-logger/README.md +++ /dev/null @@ -1 +0,0 @@ -# @nocobase/plugin-logger diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/external.sql b/packages/plugins/@nocobase/plugin-mock-collections/src/server/external.sql deleted file mode 100644 index e02cbf62e..000000000 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/external.sql +++ /dev/null @@ -1,175 +0,0 @@ -CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; - --- 创建 users 表 -CREATE TABLE users ( - user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - username VARCHAR(100) NOT NULL -); - --- 创建 profiles 表 -CREATE TABLE profiles ( - profile_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - address VARCHAR(255), - user_uuid UUID REFERENCES users(user_uuid) -); - --- 创建 roles 表 -CREATE TABLE roles ( - role_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - role_name VARCHAR(100) NOT NULL -); - --- 创建 user_roles 关联表 -CREATE TABLE user_roles ( - user_uuid UUID REFERENCES users(user_uuid), - role_uuid UUID REFERENCES roles(role_uuid), - PRIMARY KEY (user_uuid, role_uuid) -); - - --- 创建 orders 表 -CREATE TABLE orders ( - order_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - user_uuid UUID REFERENCES users(user_uuid), - order_name VARCHAR(255) NOT NULL - -- ... 其他字段 -); - --- 向 users 表插入测试数据 -INSERT INTO users (username) VALUES - ('Alice'), - ('Bob'); - -INSERT INTO orders (user_uuid, order_name) VALUES - ((SELECT user_uuid FROM users WHERE username = 'Alice'), 'Order1'), - ((SELECT user_uuid FROM users WHERE username = 'Bob'), 'Order2'); - - --- 向 profiles 表插入测试数据 -INSERT INTO profiles (address, user_uuid) VALUES - ('123 Main St', (SELECT user_uuid FROM users WHERE username = 'Alice')), - ('456 High St', (SELECT user_uuid FROM users WHERE username = 'Bob')); - --- 向 roles 表插入测试数据 -INSERT INTO roles (role_name) VALUES - ('Admin'), - ('User'); - --- 建立 users 和 roles 之间的关系 -INSERT INTO user_roles (user_uuid, role_uuid) VALUES - ((SELECT user_uuid FROM users WHERE username = 'Alice'), (SELECT role_uuid FROM roles WHERE role_name = 'Admin')), - ((SELECT user_uuid FROM users WHERE username = 'Bob'), (SELECT role_uuid FROM roles WHERE role_name = 'User')); - - -CREATE TABLE "test_table" ( - "id2" SERIAL PRIMARY KEY, - "smallint" int2, - "integer" int4, - "bigint" int8, - "boolean" bool, - "numeric" numeric, - "real" float4, - "double" float8, - "money" money, - "date" date, - "time" time, - "timestamp" timestamp, - "timestamptz" timestamptz, - "interval" interval, - "char" bpchar, - "varchar" varchar, - "text" text, - "tsquery" tsquery, - "tsvector" tsvector, - "uuid" uuid, - "xml" xml, - "json" json, - "jsonb" jsonb, - "bit" bit, - "bitvarying" varbit, - "bytea" bytea, - "cidr" cidr, - "inet" inet, - "macaddr" macaddr, - "txidsnapshot" txid_snapshot, - "box" box, - "circle" circle, - "line" line, - "lseg" lseg, - "path" path, - "point" point, - "polygon" polygon -); - - --- 创建 authors 表 -CREATE TABLE authors ( - author_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - author_name VARCHAR(100) NOT NULL -); - --- 创建 posts 表 -CREATE TABLE posts ( - post_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - post_title VARCHAR(100) NOT NULL, - post_content TEXT NOT NULL, - author_id UUID REFERENCES authors(author_id) -); - --- 创建 comments 表 -CREATE TABLE comments ( - comment_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - comment_content TEXT NOT NULL, - post_id UUID REFERENCES posts(post_id), - author_id UUID REFERENCES authors(author_id) -); - --- 创建 tags 表 -CREATE TABLE tags ( - tag_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), - tag_name VARCHAR(100) NOT NULL -); - --- 创建 post_tags 关联表 -CREATE TABLE post_tags ( - post_id UUID REFERENCES posts(post_id), - tag_id UUID REFERENCES tags(tag_id), - PRIMARY KEY (post_id, tag_id) -); - --- 向 authors 表插入测试数据 -INSERT INTO authors (author_name) VALUES - ('Author1'), - ('Author2'); - --- 向 posts 表插入测试数据 -INSERT INTO posts (post_title, post_content, author_id) VALUES - ('Post1', 'This is the content of Post1', (SELECT author_id FROM authors WHERE author_name = 'Author1')), - ('Post2', 'This is the content of Post2', (SELECT author_id FROM authors WHERE author_name = 'Author2')); - --- 向 comments 表插入测试数据 -INSERT INTO comments (comment_content, post_id, author_id) VALUES - ('This is a comment on Post1', (SELECT post_id FROM posts WHERE post_title = 'Post1'), (SELECT author_id FROM authors WHERE author_name = 'Author1')), - ('This is a comment on Post2', (SELECT post_id FROM posts WHERE post_title = 'Post2'), (SELECT author_id FROM authors WHERE author_name = 'Author2')); - --- 向 tags 表插入测试数据 -INSERT INTO tags (tag_name) VALUES - ('Tag1'), - ('Tag2'); - --- 建立 posts 和 tags 之间的关系 -INSERT INTO post_tags (post_id, tag_id) VALUES - ((SELECT post_id FROM posts WHERE post_title = 'Post1'), (SELECT tag_id FROM tags WHERE tag_name = 'Tag1')), - ((SELECT post_id FROM posts WHERE post_title = 'Post2'), (SELECT tag_id FROM tags WHERE tag_name = 'Tag2')); - - --- 创建无主键的表 test_table_no_pk -CREATE TABLE test_table_no_pk ( - column1 VARCHAR(100), - column2 INT -); - --- 向 test_table_no_pk 表插入测试数据 -INSERT INTO test_table_no_pk (column1, column2) VALUES - ('TestData1', 1), - ('TestData2', 2); diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js deleted file mode 100644 index cfa57b2f2..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as React from 'react'; - -function Brush(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 14 18', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Brush-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - fillOpacity: 0.649999976, - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Brush-\u4E3B\u9898\u7F16\u8F91\u5668---\u591A\u4E3B\u9898', - transform: 'translate(-17.000000, -121.000000)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Brush-brush', - transform: 'translate(14.000000, 120.000000)', - }, - /*#__PURE__*/ React.createElement('path', { - d: - 'M8.20652175,3.2826087 L8.20652175,4.10326086 C8.20652175,4.55649455 7.83910325,4.92391304 7.38586957,4.92391304 C6.93263588,4.92391304 6.56521738,4.55649455 6.56521738,4.10326086 L6.56521738,3.2826087 L4.92391304,3.2826087 L4.92391304,8.20652175 L14.7717391,8.20652175 L14.7717391,3.2826087 L13.1304348,3.2826087 L13.1304348,5.74456522 C13.1304348,6.19779891 12.7630163,6.5652174 12.3097826,6.5652174 C11.8565489,6.5652174 11.4891304,6.19779891 11.4891304,5.74456522 L11.4891304,3.2826087 L8.20652175,3.2826087 Z M4.92391304,9.84782609 L4.92391304,11.4891304 L7.72233695,11.4891304 C8.08431263,11.4890155 8.42799204,11.6482243 8.66197039,11.9244136 C8.89594874,12.2006029 8.99650752,12.5657753 8.93690217,12.9228098 L8.60043479,14.9399728 C8.51784643,15.435105 8.73592476,15.9322123 9.15616576,16.2067558 C9.57640676,16.4812994 10.1192454,16.4812994 10.5394864,16.2067558 C10.9597274,15.9322123 11.1778057,15.435105 11.0952174,14.9399728 L10.75875,12.9228098 C10.6991446,12.5657753 10.7997034,12.2006029 11.0336818,11.9244136 C11.2676601,11.6482243 11.6113395,11.4890155 11.9733152,11.4891304 L14.7717391,11.4891304 L14.7717391,9.84782609 L4.92391304,9.84782609 Z M12.7143641,14.6699783 C12.9035912,15.807501 12.4022968,16.9492894 11.4368082,17.5798421 C10.4713197,18.2103948 9.2243325,18.2103948 8.25884395,17.5798421 C7.2933554,16.9492894 6.79206095,15.807501 6.98128804,14.6699783 L7.23815217,13.1304348 L4.92391304,13.1304348 C4.48861206,13.1304348 4.07113988,12.9575121 3.76333561,12.6497079 C3.45553133,12.3419036 3.2826087,11.9244314 3.2826087,11.4891304 L3.2826087,3.2826087 C3.2826087,2.84730772 3.45553133,2.42983554 3.76333561,2.12203126 C4.07113988,1.81422698 4.48861206,1.64130434 4.92391304,1.64130434 L14.7717391,1.64130434 C15.2070401,1.64130434 15.6245123,1.81422698 15.9323166,2.12203126 C16.2401208,2.42983554 16.4130435,2.84730772 16.4130435,3.2826087 L16.4130435,11.4891304 C16.4130435,11.9244314 16.2401208,12.3419036 15.9323166,12.6497079 C15.6245123,12.9575121 15.2070401,13.1304348 14.7717391,13.1304348 L12.4575,13.1304348 L12.7143641,14.6699783 L12.7143641,14.6699783 Z', - id: 'Brush-\u5F62\u72B6', - }), - ), - ), - ), - ); -} - -export default Brush; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js deleted file mode 100644 index 35819cc4c..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js +++ /dev/null @@ -1,74 +0,0 @@ -import * as React from 'react'; - -function Dark(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 17 17', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Dark-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Dark-\u9ED8\u8BA4', - transform: 'translate(-9.000000, -49.500000)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Dark-\u7F16\u7EC4-17', - transform: 'translate(0.000000, 42.500000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Dark-moon', - transform: 'translate(9.268811, 7.500000)', - }, - /*#__PURE__*/ React.createElement('rect', { - id: 'Dark-\u77E9\u5F62', - opacity: 0, - x: 0, - y: 0, - width: 16, - height: 16, - }), - /*#__PURE__*/ React.createElement('path', { - d: - 'M8,1.33333333 C8.14933333,1.33333333 8.29688889,1.33844444 8.44266667,1.34866666 C8.14755556,1.98422221 8,2.64577777 8,3.33333333 C8,3.96533333 8.12333333,4.56955555 8.37,5.146 C8.61666667,5.72244445 8.94822222,6.21888889 9.36466667,6.63533333 C9.78111112,7.05177777 10.2775556,7.38333332 10.854,7.63 C11.4304444,7.87666668 12.0346667,8.00000001 12.6666667,8 C13.3542222,8 14.0157778,7.85244444 14.6513333,7.55733333 C14.6615556,7.70311111 14.6666667,7.85066667 14.6666667,8 C14.6666667,8.604 14.5868889,9.19422222 14.4273333,9.77066667 C14.2677778,10.3471111 14.0446667,10.8793333 13.758,11.3673333 C13.4713333,11.8553333 13.1233333,12.3042222 12.714,12.714 C12.3046667,13.1237778 11.8557778,13.4717778 11.3673333,13.758 C10.8788889,14.0442222 10.3466667,14.2673333 9.77066667,14.4273333 C9.19466667,14.5873333 8.60444445,14.6671111 8,14.6666685 C7.39555555,14.6662222 6.80533333,14.5864444 6.22933333,14.4273333 C5.65333333,14.2682222 5.1211111,14.0451111 4.63266666,13.758 C4.14422221,13.4708889 3.69533332,13.1228889 3.28599998,12.714 C2.87666665,12.3051111 2.52866665,11.8562222 2.24199998,11.3673333 C1.95533332,10.8784444 1.73222221,10.3462222 1.57266666,9.77066667 C1.4131111,9.19511112 1.33333333,8.6048889 1.33333333,8 C1.33333333,7.3951111 1.4131111,6.80488888 1.57266666,6.22933333 C1.73222221,5.65377778 1.95533332,5.12155555 2.24199998,4.63266666 C2.52866665,4.14377776 2.87666665,3.69488887 3.28599998,3.28599998 C3.69533332,2.8771111 4.14422221,2.5291111 4.63266666,2.24199998 C5.1211111,1.95488887 5.65333333,1.73177776 6.22933333,1.57266666 C6.80533333,1.41355555 7.39555555,1.33377778 8,1.33333333 Z M6.68733333,2.828 C6.11444444,2.97377778 5.58066667,3.20977778 5.086,3.536 C4.59133333,3.86222222 4.166,4.24933333 3.81,4.69733333 C3.454,5.14533333 3.17444444,5.65488889 2.97133333,6.226 C2.76822221,6.79711111 2.66666666,7.38822222 2.66666666,7.99933333 C2.66666666,8.72155555 2.80733332,9.41155555 3.08866666,10.0693333 C3.36999999,10.7271111 3.74933332,11.2948889 4.22666666,11.7726667 C4.70399999,12.2504444 5.27177777,12.6297778 5.92999998,12.9106667 C6.5882222,13.1915556 7.2782222,13.3322222 7.99999998,13.3326667 C8.6111111,13.3326667 9.20222221,13.2311111 9.77333331,13.028 C10.3444444,12.8248889 10.854,12.5453333 11.302,12.1893333 C11.75,11.8333333 12.1371111,11.408 12.4633333,10.9133333 C12.7895555,10.4186666 13.0255555,9.88488887 13.1713333,9.31199998 C13.022,9.32577777 12.8535555,9.33266666 12.666,9.33266666 C11.8535555,9.33266666 11.0775555,9.17377777 10.338,8.85599998 C9.59844443,8.5382222 8.96044443,8.11111109 8.42399998,7.57466666 C7.88755554,7.03822222 7.46044443,6.40022222 7.14266666,5.66066666 C6.82488889,4.92111109 6.66599999,4.14511109 6.66599998,3.33266666 C6.66599998,3.1451111 6.67288888,2.97666666 6.68666666,2.82733333 L6.68733333,2.828 Z', - id: 'Dark-\u5F62\u72B6', - }), - ), - ), - ), - ), - ); -} - -export default Dark; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js deleted file mode 100644 index a6b205a5a..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js +++ /dev/null @@ -1,88 +0,0 @@ -import * as React from 'react'; - -function Light(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 13 13', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-\u4E3B\u9898\u5305', - transform: 'translate(-2943.000000, -292.000000)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-\u7F16\u7EC4-12', - transform: 'translate(2415.000000, 222.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-\u89C6\u56FE\u5207\u6362-\u7F16\u8F91\u6001', - transform: 'translate(518.000000, 60.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-eye', - transform: 'translate(8.000000, 8.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Light-sun', - transform: 'translate(2.000000, 2.000000)', - }, - /*#__PURE__*/ React.createElement('rect', { - id: 'Light-\u77E9\u5F62', - opacity: 0, - x: 0, - y: 0, - width: 13, - height: 13, - }), - /*#__PURE__*/ React.createElement('path', { - d: - 'M6.5,9.75 C4.7051875,9.75 3.25,8.2948125 3.25,6.5 C3.25,4.7051875 4.7051875,3.25 6.5,3.25 C8.2948125,3.25 9.75,4.7051875 9.75,6.5 C9.75,8.2948125 8.2948125,9.75 6.5,9.75 Z M6.5,8.66666667 C7.69661696,8.66666667 8.66666667,7.69661696 8.66666667,6.5 C8.66666667,5.30338304 7.69661696,4.33333333 6.5,4.33333333 C5.30338305,4.33333333 4.33333336,5.30338305 4.33333336,6.5 C4.33333336,7.69661695 5.30338305,8.66666667 6.5,8.66666667 Z M5.95833333,1.08333333 C5.95833333,0.784179087 6.20084576,0.541666658 6.5,0.541666658 C6.79915424,0.541666658 7.04166667,0.784179087 7.04166667,1.08333333 L7.04166667,2.16666667 C7.04166667,2.46582091 6.79915424,2.70833334 6.5,2.70833334 C6.20084576,2.70833334 5.95833333,2.46582091 5.95833333,2.16666667 L5.95833333,1.08333333 L5.95833333,1.08333333 Z M5.95833333,10.8333333 C5.95833333,10.5341791 6.20084576,10.2916667 6.5,10.2916667 C6.79915424,10.2916667 7.04166667,10.5341791 7.04166667,10.8333333 L7.04166667,11.9166667 C7.04166667,12.2158209 6.79915424,12.4583333 6.5,12.4583333 C6.20084576,12.4583333 5.95833333,12.2158209 5.95833333,11.9166667 L5.95833333,10.8333333 L5.95833333,10.8333333 Z M1.08333333,7.04166667 C0.784179087,7.04166667 0.541666658,6.79915424 0.541666658,6.5 C0.541666658,6.20084576 0.784179087,5.95833333 1.08333333,5.95833333 L2.16666667,5.95833333 C2.46582091,5.95833333 2.70833334,6.20084576 2.70833334,6.5 C2.70833334,6.79915424 2.46582091,7.04166667 2.16666667,7.04166667 L1.08333333,7.04166667 L1.08333333,7.04166667 Z M10.8333333,7.04166667 C10.5341791,7.04166667 10.2916667,6.79915424 10.2916667,6.5 C10.2916667,6.20084576 10.5341791,5.95833333 10.8333333,5.95833333 L11.9166667,5.95833333 C12.2158209,5.95833333 12.4583333,6.20084576 12.4583333,6.5 C12.4583333,6.79915424 12.2158209,7.04166667 11.9166667,7.04166667 L10.8333333,7.04166667 L10.8333333,7.04166667 Z M2.05454167,2.82045833 C1.84926545,2.60791971 1.85220137,2.27007933 2.06114035,2.06114035 C2.27007933,1.85220137 2.60791971,1.84926545 2.82045833,2.05454167 L3.63295833,2.86704167 C3.83823455,3.07958029 3.83529863,3.41742067 3.62635965,3.62635965 C3.41742067,3.83529863 3.07958029,3.83823455 2.86704167,3.63295833 L2.05454167,2.82045833 L2.05454167,2.82045833 Z M9.36704167,10.1329583 C9.16176545,9.92041971 9.16470137,9.58257933 9.37364035,9.37364035 C9.58257933,9.16470137 9.92041971,9.16176545 10.1329583,9.36704167 L10.9454583,10.1795417 C11.1507346,10.3920803 11.1477986,10.7299207 10.9388596,10.9388596 C10.7299207,11.1477986 10.3920803,11.1507346 10.1795417,10.9454583 L9.36704167,10.1329583 L9.36704167,10.1329583 Z M2.82045833,10.9454583 C2.60791971,11.1507346 2.27007933,11.1477986 2.06114035,10.9388596 C1.85220137,10.7299207 1.84926545,10.3920803 2.05454167,10.1795417 L2.86704167,9.36704167 C3.07958029,9.16176545 3.41742067,9.16470137 3.62635965,9.37364035 C3.83529863,9.58257933 3.83823455,9.92041971 3.63295833,10.1329583 L2.82045833,10.9454583 L2.82045833,10.9454583 Z M10.1329583,3.63295833 C9.92041971,3.83823455 9.58257933,3.83529863 9.37364035,3.62635965 C9.16470137,3.41742067 9.16176545,3.07958029 9.36704167,2.86704167 L10.1795417,2.05454167 C10.3920803,1.84926545 10.7299207,1.85220137 10.9388596,2.06114035 C11.1477986,2.27007933 11.1507346,2.60791971 10.9454583,2.82045833 L10.1329583,3.63295833 L10.1329583,3.63295833 Z', - id: 'Light-\u5F62\u72B6', - }), - ), - ), - ), - ), - ), - ), - ); -} - -export default Light; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js deleted file mode 100644 index 67af93335..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as React from 'react'; - -function Margin(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 16 17', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Margin-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Margin-margin', - transform: 'translate(0.000000, 0.942377)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement('rect', { - id: 'Margin-\u77E9\u5F62', - opacity: 0, - x: 0, - y: 0, - width: 16, - height: 15.9807923, - }), - /*#__PURE__*/ React.createElement('path', { - d: - 'M11.6666667,2.75858915 L4.33333333,2.75858915 C4.01904762,2.75858915 3.80952382,2.54931688 3.80952382,2.23540845 C3.80952382,1.92150003 4.01904763,1.71222775 4.33333334,1.71222775 L11.6666667,1.71222775 C11.9809524,1.71222775 12.1904762,1.92150003 12.1904762,2.23540845 C12.1904762,2.54931688 11.9809524,2.75858915 11.6666667,2.75858915 Z M11.6666667,14.2685646 L4.33333333,14.2685646 C4.01904762,14.2685646 3.8095238,14.0592923 3.8095238,13.7453839 C3.8095238,13.4314755 4.01904762,13.2222032 4.33333333,13.2222032 L11.6666667,13.2222032 C11.9809524,13.2222032 12.1904762,13.4314755 12.1904762,13.7453839 C12.1904762,14.0592923 11.9809524,14.2685646 11.6666667,14.2685646 Z M13.7619048,12.1758418 C13.447619,12.1758418 13.2380952,11.9665695 13.2380952,11.6526611 L13.2380952,4.32813125 C13.2380952,4.01422283 13.4476191,3.80495055 13.7619048,3.80495055 C14.0761905,3.80495055 14.2857143,4.01422283 14.2857143,4.32813125 L14.2857143,11.6526611 C14.2857143,11.9665695 14.0761905,12.1758418 13.7619048,12.1758418 Z M2.23809524,12.1758418 C1.92380953,12.1758418 1.71428572,11.9665695 1.71428572,11.6526611 L1.71428572,4.32813125 C1.71428572,4.01422283 1.92380953,3.80495055 2.23809524,3.80495055 C2.55238096,3.80495055 2.76190477,4.01422283 2.76190477,4.32813125 L2.76190477,11.6526611 C2.76190477,11.9665695 2.55238096,12.1758418 2.23809524,12.1758418 Z M11.6666667,12.1758418 L4.33333333,12.1758418 C4.01904762,12.1758418 3.8095238,11.9665695 3.8095238,11.6526611 L3.8095238,4.32813125 C3.8095238,4.01422283 4.01904763,3.80495055 4.33333334,3.80495055 L11.6666667,3.80495055 C11.9809524,3.80495055 12.1904762,4.01422283 12.1904762,4.32813125 L12.1904762,11.6526611 C12.1904762,11.9665695 11.9809524,12.1758418 11.6666667,12.1758418 Z M4.85714286,11.1294804 L11.1428571,11.1294804 L11.1428571,4.85131196 L4.85714286,4.85131196 L4.85714286,11.1294804 Z', - id: 'Margin-\u5F62\u72B6', - }), - ), - ), - ); -} - -export default Margin; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js deleted file mode 100644 index ca902fa83..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as React from 'react'; - -function Motion(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 16 17', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Motion-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Motion-\u5BCC\u6587\u672C\u7F16\u8F91\u5668_\u52A8\u6548', - transform: 'translate(0.000000, 0.903962)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement('rect', { - id: 'Motion-\u77E9\u5F62', - opacity: 0, - x: 0, - y: 0, - width: 16, - height: 15.9807923, - }), - /*#__PURE__*/ React.createElement('path', { - d: - 'M6.55644444,12.5262777 L7.99555556,13.9627734 C8.13290682,14.0984321 8.18701716,14.2971622 8.13737053,14.4836147 C8.0877239,14.6700672 7.94192169,14.8156943 7.75524511,14.8652814 C7.56856853,14.9148684 7.36959959,14.860823 7.23377778,14.7236366 L5.79555556,13.2862532 C5.60250935,13.0737079 5.61045949,12.7472435 5.8136232,12.5443237 C6.01678692,12.3414038 6.3436437,12.3334632 6.55644444,12.5262777 L6.55644444,12.5262777 Z M12.2435556,12.6630023 L13.3857778,13.8038533 C13.5231286,13.9395121 13.5772386,14.138242 13.527592,14.3246942 C13.4779453,14.5111464 13.3321433,14.6567734 13.145467,14.7063605 C12.9587906,14.7559476 12.7598219,14.7019025 12.624,14.5647165 L11.4817778,13.4238655 C11.3444269,13.2882067 11.2903169,13.0894768 11.3399636,12.9030246 C11.3896103,12.7165724 11.5354123,12.5709454 11.7220886,12.5213583 C11.9087649,12.4717712 12.1077337,12.5258163 12.2435556,12.6630023 L12.2435556,12.6630023 Z M7.29511111,0.990809123 C7.37066667,1.03342457 7.43377778,1.09645992 7.47644444,1.17192476 L9.23911111,4.29439403 L12.7564444,5.00376364 C12.9258902,5.03768098 13.0638332,5.16026877 13.1172645,5.32441904 C13.1706959,5.4885693 13.1313024,5.66874209 13.0142222,5.79570068 L10.5866667,8.43430705 L10.9982222,11.9953603 C11.018176,12.1667991 10.94398,12.3356549 10.8041422,12.4370491 C10.6643043,12.5384432 10.4805781,12.5566027 10.3235556,12.4845501 L7.06133333,10.9930095 L3.79733333,12.4845501 C3.64031082,12.5566027 3.45658456,12.5384432 3.3167467,12.4370491 C3.17690884,12.3356549 3.10271286,12.1667991 3.12266667,11.9953603 L3.53511111,8.43519487 L1.10577778,5.79570068 C0.988697555,5.66874209 0.949304077,5.4885693 1.00273546,5.32441904 C1.05616684,5.16026877 1.19410976,5.03768098 1.36355556,5.00376364 L4.88177778,4.29439403 L6.64266667,1.17192476 C6.70502264,1.06136833 6.80886024,0.980137913 6.93126543,0.94615878 C7.05367063,0.912179648 7.18458201,0.928244805 7.29511111,0.990809123 Z M7.05955556,2.62440123 L5.57688889,5.25235374 L2.61688889,5.84808216 L4.65955556,8.07030012 L4.31288889,11.0666987 L7.05955556,9.81131866 L9.80533333,11.0666987 L9.45866667,8.07030012 L11.5031111,5.84896999 L8.54222222,5.25235374 L7.05866667,2.62440123 L7.05955556,2.62440123 Z M13.1528889,7.76045031 L14.5911111,9.19694597 C14.7892424,9.40878705 14.7837079,9.73933037 14.5785954,9.9444359 C14.373483,10.1495414 14.0425491,10.1554552 13.8302222,9.95780926 L12.3911111,8.5213136 C12.2537603,8.38565475 12.1996502,8.18692487 12.2492969,8.00047265 C12.2989436,7.81402043 12.4447456,7.66839345 12.6314219,7.61880637 C12.8180983,7.56921929 13.017067,7.62326436 13.1528889,7.76045031 L13.1528889,7.76045031 Z', - id: 'Motion-\u5F62\u72B6', - }), - ), - ), - ); -} - -export default Motion; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js deleted file mode 100644 index 6f1523376..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js +++ /dev/null @@ -1,88 +0,0 @@ -import * as React from 'react'; - -function Pick(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 14 14', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - fillOpacity: 0.65, - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-\u4E3B\u9898\u7F16\u8F91\u5668---\u591A\u4E3B\u9898', - transform: 'translate(-541.000000, -387.000000)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-\u7F16\u7EC4-11', - transform: 'translate(76.000000, 340.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-Map-Token-\u9762\u677F', - transform: 'translate(0.000000, 27.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-token-\u663E\u793A', - transform: 'translate(-1.002041, -1.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-\u7F16\u7EC4-2', - transform: 'translate(12.024490, 20.000000)', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'Pick-shangyeguanxi', - transform: 'translate(453.924490, 1.000000)', - }, - /*#__PURE__*/ React.createElement('path', { - d: - 'M12.6274816,8.17204883 C12.6358384,8.04673242 12.6401539,7.92030859 12.6401539,7.79288672 C12.6401539,5.50309375 11.2701899,3.53286719 9.30406641,2.65472266 C9.31862927,2.54983203 9.32632854,2.44274023 9.32632854,2.33384375 C9.32632854,1.05430664 8.28750187,0.0169394531 7.00623025,0.0169394531 C5.72484902,0.0169394531 4.68607715,1.05430664 4.68607715,2.33384375 C4.68607715,2.44267188 4.69376272,2.54968164 4.70829819,2.65451758 C2.74188703,3.53256641 1.37158055,5.50290234 1.37158055,7.79288672 C1.37158055,7.92044531 1.37592338,8.04699219 1.38428025,8.17243164 C0.593775725,8.54169531 0.0460860491,9.34289453 0.0460860491,10.2719531 C0.0460860491,11.5515449 1.08474833,12.5888574 2.36612955,12.5888574 C2.80723496,12.5888574 3.21958454,12.4658926 3.57069612,12.2524336 C4.52158393,12.9838105 5.71288912,13.4188223 7.00595625,13.4188223 C8.30016046,13.4188223 9.49238354,12.9830449 10.4436412,12.2505195 C10.7943281,12.4630762 11.2059516,12.5854668 11.6462213,12.5854668 C12.9274382,12.5854668 13.9661004,11.5489746 13.9661004,10.2703672 C13.9661004,9.34171875 13.4181916,8.54095703 12.6274816,8.17204883 Z M7.00623025,1.00913477 C7.73549676,1.00913477 8.32698463,1.59684766 8.33166995,2.32357617 C8.33168365,2.32647461 8.33177955,2.32935938 8.33177955,2.33225781 C8.33177955,2.69178711 8.18805519,3.01775195 7.95488499,3.25620313 C7.71417991,3.50236523 7.37813809,3.65527148 7.00623025,3.65527148 C6.6343361,3.65527148 6.29829428,3.50236523 6.0575618,3.25620313 C5.8243779,3.01775195 5.68062614,2.69178711 5.68062614,2.33225781 C5.68062614,2.32931836 5.68072204,2.32639258 5.68073574,2.32345313 C5.68547586,1.59679297 6.27704593,1.00913477 7.00623025,1.00913477 Z M2.36612955,11.5993965 C1.63399978,11.5993965 1.04047065,11.0058047 1.04047065,10.2734297 C1.04047065,9.84645703 1.24229576,9.46667969 1.55566445,9.22416797 C1.7797654,9.05074023 2.06088482,8.94746289 2.36614325,8.94746289 C2.41639403,8.94746289 2.46597352,8.95036133 2.51477213,8.95580273 C3.17696454,9.02969922 3.69181585,9.59136719 3.69181585,10.273416 C3.69181585,10.4903613 3.6397293,10.6951113 3.5473928,10.8758809 C3.39166744,11.1807637 3.12143934,11.4173555 2.79339819,11.5289863 C2.65931847,11.574623 2.51562151,11.5993965 2.36612955,11.5993965 Z M7.00127093,12.4178633 C5.99141928,12.4178633 5.0570808,12.0957402 4.29537321,11.549084 C4.53905114,11.1824316 4.68111783,10.7425937 4.68111783,10.2695605 C4.68111783,8.99117188 3.64429132,7.95466602 2.36460887,7.95280664 C2.3626772,7.89787305 2.36134833,7.84278906 2.36134833,7.78737695 C2.36134833,5.92565039 3.46242679,4.32079102 5.05001172,3.58529883 C5.46299149,4.22481445 6.18258597,4.64830078 7.00128463,4.64830078 C7.81990109,4.64830078 8.53950926,4.22481445 8.95248903,3.58529883 C10.5400329,4.32079102 11.6411113,5.92565039 11.6411113,7.78737695 C11.6411113,7.84277539 11.6397824,7.89787305 11.6378508,7.95280664 C10.3582094,7.95465234 9.32139662,8.99040625 9.32139662,10.2679746 C9.32139662,10.7413906 9.4639017,11.1815293 9.70827832,11.5482363 C8.94635153,12.0953848 8.01158836,12.4178633 7.00127093,12.4178633 Z M11.6459473,8.94746289 C11.9510962,8.94746289 12.2321197,9.0506582 12.4561658,9.22397656 C12.7696578,9.46647461 12.9715652,9.84632031 12.9715652,10.273375 C12.9715652,11.0056953 12.3780634,11.5993418 11.6459473,11.5993418 C11.4964143,11.5993418 11.3526762,11.574541 11.2185828,11.528877 C10.8907472,11.4172324 10.6206287,11.1807227 10.464917,10.8759902 C10.3725257,10.6951797 10.320398,10.490375 10.320398,10.273375 C10.320398,9.59128516 10.8354138,9.0295625 11.4976062,8.95577539 C11.5463226,8.95034766 11.5957925,8.94746289 11.6459473,8.94746289 Z M7.00557266,6.21029883 C7.91351399,6.21029883 8.64954587,6.94483166 8.64954587,7.85092383 C8.64954587,8.757016 7.91351399,9.49154883 7.00557266,9.49154883 C6.09763132,9.49154883 5.36159944,8.757016 5.36159944,7.85092383 C5.36159944,6.94483166 6.09763132,6.21029883 7.00557266,6.21029883 Z', - id: 'Pick-\u5F62\u72B6', - }), - ), - ), - ), - ), - ), - ), - ), - ); -} - -export default Pick; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js deleted file mode 100644 index 6ccd5f7ee..000000000 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as React from 'react'; - -function ShapeLine(props) { - return /*#__PURE__*/ React.createElement( - 'svg', - Object.assign( - { - width: '1em', - height: '1em', - viewBox: '0 0 16 17', - xmlns: 'http://www.w3.org/2000/svg', - xmlnsXlink: 'http://www.w3.org/1999/xlink', - }, - props, - { - style: Object.assign( - { - verticalAlign: '-0.125em', - }, - props.style, - ), - className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), - }, - ), - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'ShapeLine-\u9875\u9762-1', - stroke: 'none', - strokeWidth: 1, - fill: 'none', - fillRule: 'evenodd', - }, - /*#__PURE__*/ React.createElement( - 'g', - { - id: 'ShapeLine-shape-line', - transform: 'translate(0.000000, 0.923169)', - fill: 'currentColor', - fillRule: 'nonzero', - }, - /*#__PURE__*/ React.createElement('rect', { - id: 'ShapeLine-\u77E9\u5F62', - opacity: 0, - x: 0, - y: 0, - width: 16, - height: 15.9807923, - }), - /*#__PURE__*/ React.createElement('path', { - d: - 'M5.22,13.3173269 C4.90928357,14.1946577 4.03334945,14.7416208 3.10760502,14.6363783 C2.18186059,14.5311359 1.45139881,13.801551 1.34602985,12.8769179 C1.24066088,11.9522848 1.78828141,11.0774022 2.66666667,10.7670588 L2.66666667,5.21373349 C1.78828141,4.90339007 1.24066088,4.02850749 1.34602985,3.1038744 C1.45139881,2.1792413 2.18186059,1.44965643 3.10760502,1.34441396 C4.03334945,1.23917149 4.90928357,1.78613461 5.22,2.66346539 L10.78,2.66346539 C11.0907164,1.78613461 11.9666505,1.23917149 12.892395,1.34441396 C13.8181394,1.44965643 14.5486012,2.1792413 14.6539702,3.1038744 C14.7593391,4.02850749 14.2117186,4.90339007 13.3333333,5.21373349 L13.3333333,10.7670588 C14.2117186,11.0774022 14.7593391,11.9522848 14.6539702,12.8769179 C14.5486012,13.801551 13.8181394,14.5311359 12.892395,14.6363783 C11.9666505,14.7416208 11.0907164,14.1946577 10.78,13.3173269 L5.22,13.3173269 Z M5.22,11.9855942 L10.78,11.9855942 C10.9819939,11.4165133 11.430235,10.9688103 12,10.7670588 L12,5.21373349 C11.430235,5.01198206 10.9819939,4.56427905 10.78,3.99519808 L5.22,3.99519808 C5.01800608,4.56427905 4.56976496,5.01198206 4,5.21373349 L4,10.7670588 C4.56976496,10.9688103 5.01800608,11.4165133 5.22,11.9855942 Z M3.33333333,3.99519809 C3.5715347,3.9952345 3.79165744,3.86832906 3.91076865,3.66229434 C4.02987987,3.45625961 4.02987987,3.20240385 3.91076865,2.99636913 C3.79165744,2.79033441 3.5715347,2.66342897 3.33333333,2.66346538 C2.96518335,2.66352168 2.66676872,2.96162371 2.66676872,3.32933173 C2.66676872,3.69703976 2.96518335,3.99514178 3.33333333,3.99519809 L3.33333333,3.99519809 Z M12.6666667,3.99519809 C12.904868,3.9952345 13.1249908,3.86832906 13.244102,3.66229434 C13.3632132,3.45625961 13.3632132,3.20240385 13.244102,2.99636913 C13.1249908,2.79033441 12.904868,2.66342897 12.6666667,2.66346538 C12.2985167,2.66352168 12.0001021,2.96162371 12.0001021,3.32933173 C12.0001021,3.69703976 12.2985167,3.99514178 12.6666667,3.99519809 L12.6666667,3.99519809 Z M12.6666667,13.3173269 C12.904868,13.3173633 13.1249908,13.1904579 13.244102,12.9844232 C13.3632132,12.7783885 13.3632132,12.5245327 13.244102,12.318498 C13.1249908,12.1124633 12.904868,11.9855578 12.6666667,11.9855942 C12.2985167,11.9856505 12.0001021,12.2837526 12.0001021,12.6514606 C12.0001021,13.0191686 12.2985167,13.3172706 12.6666667,13.3173269 L12.6666667,13.3173269 Z M3.33333333,13.3173269 C3.5715347,13.3173633 3.79165744,13.1904579 3.91076865,12.9844232 C4.02987987,12.7783885 4.02987987,12.5245327 3.91076865,12.318498 C3.79165744,12.1124633 3.5715347,11.9855578 3.33333333,11.9855942 C2.96518335,11.9856505 2.66676872,12.2837526 2.66676872,12.6514606 C2.66676872,13.0191686 2.96518335,13.3172706 3.33333333,13.3173269 L3.33333333,13.3173269 Z', - id: 'ShapeLine-\u5F62\u72B6', - }), - ), - ), - ); -} - -export default ShapeLine; diff --git a/packages/plugins/@nocobase/plugin-acl/.npmignore b/packages/plugins/@tachybase/plugin-acl/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/.npmignore rename to packages/plugins/@tachybase/plugin-acl/.npmignore diff --git a/packages/plugins/@nocobase/plugin-acl/README.md b/packages/plugins/@tachybase/plugin-acl/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/README.md rename to packages/plugins/@tachybase/plugin-acl/README.md diff --git a/packages/plugins/@nocobase/plugin-acl/README.zh-CN.md b/packages/plugins/@tachybase/plugin-acl/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-acl/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-acl/client.d.ts b/packages/plugins/@tachybase/plugin-acl/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/client.d.ts rename to packages/plugins/@tachybase/plugin-acl/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-acl/client.js b/packages/plugins/@tachybase/plugin-acl/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/client.js rename to packages/plugins/@tachybase/plugin-acl/client.js diff --git a/packages/plugins/@nocobase/plugin-acl/package.json b/packages/plugins/@tachybase/plugin-acl/package.json similarity index 96% rename from packages/plugins/@nocobase/plugin-acl/package.json rename to packages/plugins/@tachybase/plugin-acl/package.json index e71e52fdc..70943a5a4 100644 --- a/packages/plugins/@nocobase/plugin-acl/package.json +++ b/packages/plugins/@tachybase/plugin-acl/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-acl", + "name": "@tachybase/plugin-acl", "displayName": "Access control", - "version": "0.21.33", + "version": "0.21.34", "description": "Based on roles, resources, and actions, access control can precisely manage interface configuration permissions, data operation permissions, menu access permissions, and plugin permissions.", "keywords": [ "Users & permissions" diff --git a/packages/plugins/@nocobase/plugin-acl/server.d.ts b/packages/plugins/@tachybase/plugin-acl/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/server.d.ts rename to packages/plugins/@tachybase/plugin-acl/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-acl/server.js b/packages/plugins/@tachybase/plugin-acl/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/server.js rename to packages/plugins/@tachybase/plugin-acl/server.js diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/NewRole.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/NewRole.tsx index 4d07a2454..f6856d68b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/NewRole.tsx @@ -1,8 +1,9 @@ -import { SchemaComponent, useActionContext, useRequest } from '@tachybase/client'; import React from 'react'; -import { useACLTranslation } from './locale'; +import { SchemaComponent, useActionContext, useRequest } from '@tachybase/client'; import { uid } from '@tachybase/schema'; +import { useACLTranslation } from './locale'; + export const NewRole: React.FC = () => { const { t } = useACLTranslation(); return ( diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/RolesManagement.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/RolesManagement.tsx index a133ff8cf..9e7757310 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/RolesManagement.tsx @@ -1,5 +1,4 @@ import React, { useState } from 'react'; -import { Card, Row, Col, Tabs, Divider } from 'antd'; import { CollectionProvider, CollectionProvider_deprecated, @@ -9,12 +8,15 @@ import { useSchemaComponentContext, } from '@tachybase/client'; import { ISchema, Schema } from '@tachybase/schema'; -import { RolesMenu } from './RolesMenu'; -import { useACLTranslation } from './locale'; + +import { Card, Col, Divider, Row, Tabs } from 'antd'; + import ACLPlugin from '.'; -import { RolesManagerContext } from './RolesManagerProvider'; -import { Permissions } from './permissions/Permissions'; +import { useACLTranslation } from './locale'; import { NewRole } from './NewRole'; +import { Permissions } from './permissions/Permissions'; +import { RolesManagerContext } from './RolesManagerProvider'; +import { RolesMenu } from './RolesMenu'; const collection = { name: 'roles', diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/RolesManagerProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/RolesManagerProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/RolesMenu.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/RolesMenu.tsx index a46e2ba4e..3fd49ca5f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/RolesMenu.tsx @@ -1,3 +1,4 @@ +import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; import { ActionContextProvider, RecordProvider, @@ -5,14 +6,15 @@ import { useAPIClient, useResourceActionContext, } from '@tachybase/client'; -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 '@tachybase/schema'; + +import { MoreOutlined, TagOutlined } from '@ant-design/icons'; +import { App, Col, Dropdown, Empty, Menu, Row, Spin, Tag } from 'antd'; + +import { useLoadMoreObserver } from './hooks/load-more-observer'; +import { useACLTranslation } from './locale'; import { RolesManagerContext } from './RolesManagerProvider'; import { roleEditSchema } from './schemas/roles'; -import { useLoadMoreObserver } from './hooks/load-more-observer'; export const RolesMenu: React.FC & { Item: React.FC<{ item: any; onEdit: () => void }>; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/association.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/association.test.ts index 28841b811..040935f80 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/association.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneTableBlock } from './utils'; test.describe('view', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/collection.test.ts index 11fc1afac..b1a549863 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/collection.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; -import { oneTableBlock, newTableBlock } from './utils'; + +import { newTableBlock, oneTableBlock } from './utils'; test.describe('view', () => { test('general permission', async ({ page, mockPage, mockRole, updateRole }) => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/configure.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/configure.test.ts index d89b47074..fbfd750da 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/configure.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneTableBlock } from './utils'; test('allows to configure interface', async ({ page, mockPage, mockRole, updateRole }) => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/menu.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/menu.test.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/utils.ts index 6b180f821..7ca7a4c2b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/__e2e__/utils.ts @@ -1,4 +1,5 @@ import { general, PageConfig } from '@tachybase/test/e2e'; + /** * 页面中有一个空的 Table 区块,并且配有字段:普通字段和关系字段 */ diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts b/packages/plugins/@tachybase/plugin-acl/src/client/hooks/load-more-observer.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/hooks/load-more-observer.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/index.ts b/packages/plugins/@tachybase/plugin-acl/src/client/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/index.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/index.ts index 07765ce52..c5f4c92b2 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/index.ts @@ -1,6 +1,7 @@ import { Plugin } from '@tachybase/client'; -import { RolesManagement } from './RolesManagement'; + import { RolesManager } from './roles-manager'; +import { RolesManagement } from './RolesManagement'; export class PluginACLClient extends Plugin { rolesManager = new RolesManager(); diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts b/packages/plugins/@tachybase/plugin-acl/src/client/locale.ts similarity index 50% rename from packages/plugins/@nocobase/plugin-acl/src/client/locale.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/locale.ts index d80c57e43..dfd4aae11 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/locale.ts @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next'; export function useACLTranslation() { - return useTranslation(['@nocobase/plugin-acl', 'client'], { nsMode: 'fallback' }); + return useTranslation(['@tachybase/plugin-acl', 'client'], { nsMode: 'fallback' }); } diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/ActionPermissions.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/ActionPermissions.tsx index b3f58b6b2..a08cabf0b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/ActionPermissions.tsx @@ -1,18 +1,19 @@ -import { ISchema, useForm } from '@tachybase/schema'; +import React, { useContext, useEffect } from 'react'; import { CollectionContext, CollectionProvider_deprecated, ResourceActionContext, SchemaComponent, - useAPIClient, useActionContext, + useAPIClient, useFilterFieldOptions, useFilterFieldProps, useRecord, useRequest, useResourceActionContext, } from '@tachybase/client'; -import React, { useContext, useEffect } from 'react'; +import { ISchema, useForm } from '@tachybase/schema'; + import { RolesManagerContext } from '../RolesManagerProvider'; import { roleCollectionsSchema } from '../schemas/roles'; import { RolesResourcesActions } from './RolesResourcesActions'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/AvailableActions.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/AvailableActions.tsx index 7b44291b4..e2e6ff988 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/AvailableActions.tsx @@ -1,6 +1,7 @@ -import { useRequest } from '@tachybase/client'; -import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; +import { useRequest } from '@tachybase/client'; + +import { Spin } from 'antd'; const AvailableActionsContext = createContext([]); AvailableActionsContext.displayName = 'AvailableActionsContext'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/GeneralPermissions.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/GeneralPermissions.tsx index c1b569900..e43a73284 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/GeneralPermissions.tsx @@ -1,16 +1,16 @@ -import { onFormValuesChange, createForm, Form } from '@tachybase/schema'; -import { connect } from '@tachybase/schema'; +import React, { useContext, useMemo } from 'react'; import { SchemaComponent, useAPIClient, useRequest } from '@tachybase/client'; +import { connect, createForm, Form, onFormValuesChange, uid } from '@tachybase/schema'; + +import { useMemoizedFn } from 'ahooks'; import { Checkbox, message } from 'antd'; import uniq from 'lodash/uniq'; -import React, { useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { uid } from '@tachybase/schema'; -import { useMemoizedFn } from 'ahooks'; -import { RolesManagerContext } from '../RolesManagerProvider'; -import { StrategyActions } from './StrategyActions'; + import { useACLTranslation } from '../locale'; +import { RolesManagerContext } from '../RolesManagerProvider'; import { PluginPermissions } from './PluginPermissions'; +import { StrategyActions } from './StrategyActions'; const SnippetCheckboxGroup = connect((props) => { const { t } = useTranslation(); diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx index dab6b8590..2f7aab1ba 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx @@ -1,6 +1,7 @@ -import { useAdminSchemaUid, useRequest } from '@tachybase/client'; -import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; +import { useAdminSchemaUid, useRequest } from '@tachybase/client'; + +import { Spin } from 'antd'; const MenuItemsContext = createContext(null); MenuItemsContext.displayName = 'MenuItemsContext'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuPermissions.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuPermissions.tsx index 4ee0c4ad9..ba820f548 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/MenuPermissions.tsx @@ -1,14 +1,15 @@ -import { Checkbox, message, Table } from 'antd'; -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 '@tachybase/schema'; -import { useAPIClient, SchemaComponent, useRequest } from '@tachybase/client'; -import { useStyles } from './style'; +import React, { useContext, useMemo, useState } from 'react'; +import { SchemaComponent, useAPIClient, useRequest } from '@tachybase/client'; +import { createForm, Form, onFormValuesChange, uid } from '@tachybase/schema'; + import { useMemoizedFn } from 'ahooks'; +import { Checkbox, message, Table } from 'antd'; +import { uniq } from 'lodash'; +import { useTranslation } from 'react-i18next'; + import { RolesManagerContext } from '../RolesManagerProvider'; import { useMenuItems } from './MenuItemsProvider'; +import { useStyles } from './style'; const findUids = (items) => { if (!Array.isArray(items)) { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/Permissions.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/Permissions.tsx index e39eee239..c94da8dde 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/Permissions.tsx @@ -1,8 +1,10 @@ -import { useApp, useRequest, useAPIClient } from '@tachybase/client'; -import { Tabs } from 'antd'; import React, { useContext, useEffect, useMemo } from 'react'; -import { RolesManagerContext } from '../RolesManagerProvider'; +import { useAPIClient, useApp, useRequest } from '@tachybase/client'; + +import { Tabs } from 'antd'; + import { useACLTranslation } from '../locale'; +import { RolesManagerContext } from '../RolesManagerProvider'; import { AvailableActionsProvider } from './AvailableActions'; import { GeneralPermissions } from './GeneralPermissions'; import { MenuItemsProvider } from './MenuItemsProvider'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/PluginPermissions.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/PluginPermissions.tsx index 8bc6cb71e..7320e9c82 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/PluginPermissions.tsx @@ -1,11 +1,12 @@ -import { useAPIClient, useApp, useCompile, useCollectionRecord, useRequest } from '@tachybase/client'; -import { Checkbox, message, Table } from 'antd'; import React, { useContext, useMemo, useState } from 'react'; +import { useAPIClient, useApp, useCollectionRecord, useCompile, useRequest } from '@tachybase/client'; + +import { Checkbox, message, Table } from 'antd'; +import lodash, { flatMap } from 'lodash'; import { useTranslation } from 'react-i18next'; -import { flatMap } from 'lodash'; -import { useStyles } from './style'; + import { RolesManagerContext } from '../RolesManagerProvider'; -import lodash from 'lodash'; +import { useStyles } from './style'; const getParentKeys = (tree, func, path = []) => { if (!tree) return []; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx index 004cb5d25..38a153c23 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx @@ -1,17 +1,18 @@ -import { FormItem, FormLayout } from '@tachybase/components'; -import { ArrayField } from '@tachybase/schema'; -import { connect, useField, useForm } from '@tachybase/schema'; +import React, { createContext } from 'react'; import { useCollectionManager, useCollectionManager_deprecated, - useCompile, useCollectionRecord, + useCompile, useRecord, } from '@tachybase/client'; +import { FormItem, FormLayout } from '@tachybase/components'; +import { ArrayField, connect, useField, useForm } from '@tachybase/schema'; + import { Checkbox, Table, Tag } from 'antd'; import { isEmpty } from 'lodash'; -import React, { createContext } from 'react'; import { useTranslation } from 'react-i18next'; + import { useAvailableActions } from './AvailableActions'; import { ScopeSelect } from './ScopeSelect'; import { useStyles } from './style'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/ScopeSelect.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/ScopeSelect.tsx index 909e6d12d..356e7a0fe 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/ScopeSelect.tsx @@ -1,6 +1,7 @@ -import { createForm } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent } from '@tachybase/client'; +import { createForm } from '@tachybase/schema'; + import { scopesSchema } from '../schemas/scopes'; const RolesResourcesScopesSelectedRowKeysContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/StrategyActions.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/StrategyActions.tsx index e49971866..2efb720f0 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx +++ b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/StrategyActions.tsx @@ -1,9 +1,10 @@ -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'; import { useCompile } from '@tachybase/client'; +import { ArrayField, connect, useField } from '@tachybase/schema'; + +import { Checkbox, Select, Table, Tag } from 'antd'; +import { useTranslation } from 'react-i18next'; + import { useAvailableActions } from './AvailableActions'; const toScopes = (value) => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts b/packages/plugins/@tachybase/plugin-acl/src/client/permissions/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/permissions/style.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts b/packages/plugins/@tachybase/plugin-acl/src/client/roles-manager.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/roles-manager.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts b/packages/plugins/@tachybase/plugin-acl/src/client/schemas/roles.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/schemas/roles.ts index 3bf80ac76..def0d0b65 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/schemas/roles.ts @@ -1,8 +1,8 @@ -import { uid } from '@tachybase/schema'; -import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@tachybase/client'; import { useEffect } from 'react'; +import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + import pick from 'lodash/pick'; -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/@tachybase/plugin-acl/src/client/schemas/scopes.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts rename to packages/plugins/@tachybase/plugin-acl/src/client/schemas/scopes.ts index 35cf190c1..77e90fe28 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/client/schemas/scopes.ts @@ -1,6 +1,7 @@ -import { ISchema } from '@tachybase/schema'; -import { VariableInput, useFilterOptions, useFormBlockContext } from '@tachybase/client'; import { useContext, useEffect } from 'react'; +import { useFilterOptions, useFormBlockContext, VariableInput } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; + import { RoleResourceCollectionContext } from '../permissions/RolesResourcesActions'; export const rolesResourcesScopesCollection = { diff --git a/packages/plugins/@nocobase/plugin-acl/src/index.ts b/packages/plugins/@tachybase/plugin-acl/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/index.ts rename to packages/plugins/@tachybase/plugin-acl/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-acl/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-acl/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-acl/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-acl/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-acl/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-acl/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-acl/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-acl/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/acl.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/acl.test.ts index f4dd02087..9c490c5f8 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/acl.test.ts @@ -1,8 +1,9 @@ import { ACL } from '@tachybase/acl'; import { Database } from '@tachybase/database'; -import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; -import UsersPlugin from '@nocobase/plugin-users'; +import { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('acl', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/actions.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/actions.test.ts index ab81fe9a7..6b573d587 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/actions.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('destroy action with acl', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/association-field.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/association-field.test.ts index 95d1a91a8..c7fe0de45 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/association-field.test.ts @@ -1,7 +1,8 @@ import { ACL } from '@tachybase/acl'; import { Database, HasManyRepository } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('association test', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/configuration.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/configuration.test.ts index d32012bcd..d29e4ce6e 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/configuration.test.ts @@ -1,6 +1,7 @@ import { Database } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('configuration', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/list-action.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/list-action.test.ts index 6da933328..c71c52c17 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/list-action.test.ts @@ -1,5 +1,6 @@ import { Database } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('list action with acl', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/middleware.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/middleware.test.ts index 6f73280c9..dd899dba9 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/middleware.test.ts @@ -1,7 +1,8 @@ import { ACL } from '@tachybase/acl'; import { Database, Model } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('middleware', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/own.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/own.test.ts index 587e37ea7..de54f6c44 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/own.test.ts @@ -1,7 +1,8 @@ import { ACL } from '@tachybase/acl'; import { Database } from '@tachybase/database'; -import PluginUser from '@nocobase/plugin-users'; +import PluginUser from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('own test', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/prepare.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/prepare.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-check.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-check.test.ts index 6bd6be9b0..6ca1f2936 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-check.test.ts @@ -1,7 +1,8 @@ import { Database } from '@tachybase/database'; +import { CollectionRepository } from '@tachybase/plugin-collection-manager'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; -import { CollectionRepository } from '@nocobase/plugin-collection-manager'; describe('role check action', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-resource.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-resource.test.ts index 251c4f7ea..21534b0bd 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-resource.test.ts @@ -1,7 +1,8 @@ import { Database, Model } from '@tachybase/database'; -import { CollectionRepository } from '@nocobase/plugin-collection-manager'; -import UsersPlugin from '@nocobase/plugin-users'; +import { CollectionRepository } from '@tachybase/plugin-collection-manager'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('role resource api', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-user.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-user.test.ts index 89f85b8a3..534acd5b9 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role-user.test.ts @@ -1,6 +1,7 @@ import Database, { BelongsToManyRepository } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { createMockServer, MockServer } from '@tachybase/test'; + import jwt from 'jsonwebtoken'; describe('role', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role.test.ts index a956de3fa..3a1a7e574 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/role.test.ts @@ -1,6 +1,7 @@ import { ArrayFieldRepository, Database, Model } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('role api', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/scope.test.ts similarity index 95% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/scope.test.ts index 2f57e6bb9..d7f6f49fb 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/scope.test.ts @@ -1,6 +1,7 @@ import { Database } from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('scope api', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts index 902119150..be96acfb4 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts @@ -1,7 +1,9 @@ -import { vi } from 'vitest'; import Database from '@tachybase/database'; -import UsersPlugin from '@nocobase/plugin-users'; +import UsersPlugin from '@tachybase/plugin-users'; import { MockServer } from '@tachybase/test'; + +import { vi } from 'vitest'; + import { setCurrentRole } from '../middlewares/setCurrentRole'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/snippets.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/snippets.test.ts index d67ef1bae..7c81361a4 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/snippets.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('snippet', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/users.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/users.test.ts index 6c7021800..cdc667537 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/users.test.ts @@ -1,5 +1,6 @@ import Database from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('actions', () => { @@ -11,7 +12,7 @@ describe('actions', () => { let pluginUser; beforeEach(async () => { - process.env.INIT_ROOT_EMAIL = 'test@nocobase.com'; + process.env.INIT_ROOT_EMAIL = 'test@tachybase.com'; process.env.INIT_ROOT_PASSWORD = '123456'; process.env.INIT_ROOT_NICKNAME = 'Test'; @@ -185,7 +186,7 @@ describe('actions', () => { const users2 = await db.getRepository('users').create({ values: { - email: 'test2@nocobase.com', + email: 'test2@tachybase.com', name: 'test2', password: '123456', roles: [ @@ -197,7 +198,7 @@ describe('actions', () => { }); let response = await agent.post('/auth:signIn').send({ - email: 'test2@nocobase.com', + email: 'test2@tachybase.com', password: '123456', }); @@ -217,7 +218,7 @@ describe('actions', () => { await app.cache.reset(); response = await agent.post('/auth:signIn').send({ - email: 'test2@nocobase.com', + email: 'test2@tachybase.com', password: '123456', }); @@ -238,7 +239,7 @@ describe('actions', () => { const users2 = await db.getRepository('users').create({ values: { - email: 'test2@nocobase.com', + email: 'test2@tachybase.com', name: 'test2', password: '123456', roles: [ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts index bbe5095d7..d718a8734 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts @@ -1,5 +1,6 @@ -import { MockServer } from '@tachybase/test'; import { Database } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + import { prepareApp } from './prepare'; describe('write role to acl', () => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts b/packages/plugins/@tachybase/plugin-acl/src/server/actions/available-actions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/actions/available-actions.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts b/packages/plugins/@tachybase/plugin-acl/src/server/actions/role-check.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/actions/role-check.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts b/packages/plugins/@tachybase/plugin-acl/src/server/actions/role-collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/actions/role-collections.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts b/packages/plugins/@tachybase/plugin-acl/src/server/actions/user-setDefaultRole.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/actions/user-setDefaultRole.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/roles-users.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/roles-users.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/roles.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/roles.ts index d0d54d884..fdce735d8 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/collections/roles.ts @@ -1,7 +1,7 @@ import { defineCollection } from '@tachybase/database'; export default defineCollection({ - origin: '@nocobase/plugin-acl', + origin: '@tachybase/plugin-acl', dumpRules: 'required', name: 'roles', title: '{{t("Roles")}}', diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResources.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResourcesActions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResourcesActions.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResourcesScopes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/rolesResourcesScopes.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts b/packages/plugins/@tachybase/plugin-acl/src/server/collections/users.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/collections/users.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/index.ts b/packages/plugins/@tachybase/plugin-acl/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/index.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts b/packages/plugins/@tachybase/plugin-acl/src/server/middlewares/setCurrentRole.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/middlewares/setCurrentRole.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts b/packages/plugins/@tachybase/plugin-acl/src/server/middlewares/with-acl-meta.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/middlewares/with-acl-meta.ts index 6664734ad..fa2b564d2 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/middlewares/with-acl-meta.ts @@ -1,7 +1,8 @@ -import lodash from 'lodash'; import { NoPermissionError } from '@tachybase/acl'; import { snakeCase } from '@tachybase/database'; +import lodash from 'lodash'; + function createWithACLMetaMiddleware() { return async (ctx: any, next) => { await next(); diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts b/packages/plugins/@tachybase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleModel.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/model/RoleModel.ts index f69d086f9..5701ed047 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleModel.ts @@ -1,5 +1,5 @@ -import { Model } from '@tachybase/database'; import { ACL } from '@tachybase/acl'; +import { Model } from '@tachybase/database'; export class RoleModel extends Model { writeToAcl(options: { acl: ACL; withOutStrategy?: boolean }) { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceActionModel.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceActionModel.ts index bd87fd769..fd96adf09 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceActionModel.ts @@ -1,5 +1,6 @@ import { ACL, ACLRole } from '@tachybase/acl'; import { Database, Model } from '@tachybase/database'; + import { AssociationFieldAction, AssociationFieldsActions, GrantHelper } from '../server'; export class RoleResourceActionModel extends Model { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceModel.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceModel.ts index a93d0725c..5ab4df78b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/model/RoleResourceModel.ts @@ -1,5 +1,6 @@ import { ACL, ACLResource, ACLRole } from '@tachybase/acl'; import { Model } from '@tachybase/database'; + import { AssociationFieldsActions, GrantHelper } from '../server'; import { RoleResourceActionModel } from './RoleResourceActionModel'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts b/packages/plugins/@tachybase/plugin-acl/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-acl/src/server/server.ts rename to packages/plugins/@tachybase/plugin-acl/src/server/server.ts index bec9222ce..387208c11 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-acl/src/server/server.ts @@ -1,10 +1,12 @@ -import { Context, utils as actionUtils } from '@tachybase/actions'; +import { resolve } from 'path'; +import { utils as actionUtils, Context } from '@tachybase/actions'; import { Cache } from '@tachybase/cache'; import { Collection, RelationField } from '@tachybase/database'; import { Plugin } from '@tachybase/server'; + import { Mutex } from 'async-mutex'; import lodash from 'lodash'; -import { resolve } from 'path'; + import { availableActionResource } from './actions/available-actions'; import { checkAction } from './actions/role-check'; import { roleCollectionsResource } from './actions/role-collections'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-acl/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-acl/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/.npmignore b/packages/plugins/@tachybase/plugin-action-bulk-edit/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/.npmignore rename to packages/plugins/@tachybase/plugin-action-bulk-edit/.npmignore diff --git a/packages/plugins/@tachybase/plugin-action-bulk-edit/README.md b/packages/plugins/@tachybase/plugin-action-bulk-edit/README.md new file mode 100644 index 000000000..b2a5e0d7e --- /dev/null +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-action-bulk-edit diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/client.d.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/client.d.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/client.js b/packages/plugins/@tachybase/plugin-action-bulk-edit/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/client.js rename to packages/plugins/@tachybase/plugin-action-bulk-edit/client.js diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/package.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/package.json index 2e70dcf8e..a3360cc8e 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/package.json +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-action-bulk-edit", + "name": "@tachybase/plugin-action-bulk-edit", "displayName": "Action: Batch edit", - "version": "0.21.33", + "version": "0.21.34", "description": "Batch edit all records or selected records.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/server.d.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/server.d.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/server.js b/packages/plugins/@tachybase/plugin-action-bulk-edit/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/server.js rename to packages/plugins/@tachybase/plugin-action-bulk-edit/server.js diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx index f734177e2..49a654094 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@tachybase/schema'; +import React from 'react'; import { ActionDesigner, SchemaInitializerOpenModeSchemaItems, @@ -11,8 +11,9 @@ import { useDesignable, useSchemaToolbar, } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; + import { ModalProps } from 'antd'; -import React from 'react'; import { useTranslation } from 'react-i18next'; function UpdateMode() { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx index 145f815a6..0717e7ef7 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx @@ -1,5 +1,5 @@ -import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; import React from 'react'; +import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; export const BulkEditActionInitializer = () => { const schema = { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx index 22bcfed8c..cc6cb2200 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx @@ -1,4 +1,5 @@ -import { CompatibleSchemaInitializer, SchemaInitializer, gridRowColWrap } from '@tachybase/client'; +import { CompatibleSchemaInitializer, gridRowColWrap, SchemaInitializer } from '@tachybase/client'; + import { CreateFormBulkEditBlockInitializer } from './CreateFormBulkEditBlockInitializer'; /** diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx index a5f14d234..0eeac65c9 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx @@ -1,4 +1,5 @@ import { CompatibleSchemaInitializer, SchemaInitializer } from '@tachybase/client'; + import { BulkEditSubmitActionInitializer } from './BulkEditSubmitActionInitializer'; /** diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx index b492b37a4..dcca76e27 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx @@ -1,4 +1,5 @@ import { CompatibleSchemaInitializer, gridRowColWrap } from '@tachybase/client'; + import { useCustomBulkEditFormItemInitializerFields } from './utils'; /** diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx index d819ddebf..c8a77d772 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx @@ -1,7 +1,7 @@ -import { FormOutlined } from '@ant-design/icons'; +import React from 'react'; import { - SchemaInitializerItem, createCreateFormBlockUISchema, + SchemaInitializerItem, useBlockAssociationContext, useCollection_deprecated, useRecordCollectionDataSourceItems, @@ -9,7 +9,9 @@ import { useSchemaInitializerItem, useSchemaTemplateManager, } from '@tachybase/client'; -import React from 'react'; + +import { FormOutlined } from '@ant-design/icons'; + import { createBulkEditBlockUISchema } from './createBulkEditBlockUISchema'; export const CreateFormBulkEditBlockInitializer = () => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts index 9e30ad809..270bf2d66 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,4 +1,5 @@ import { expect, oneEmptyTableBlockWithActions, test } from '@tachybase/test/e2e'; + import { oneEmptyGantt } from './utils'; test.describe('TableActionInitializers & GanttActionInitializers & MapActionInitializers should add bulk edit action', () => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts index 4d1767c50..c7ab2320b 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneEmptyTableBlockWithCustomizeActions } from './utils'; test.describe('bulk edit action setting', () => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts index 19655a9b0..4f4c2bf7c 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts @@ -1,17 +1,17 @@ -import { ArrayCollapse, FormLayout } from '@tachybase/components'; -import { Field } from '@tachybase/schema'; -import { useField, useFieldSchema } from '@tachybase/schema'; import { SchemaSettings, useApp, - useCollectionManager_deprecated, useCollection_deprecated, + useCollectionManager_deprecated, useDesignable, useFieldComponentName, useFormBlockContext, useIsFormReadPretty, useValidateSchema, } from '@tachybase/client'; +import { ArrayCollapse, FormLayout } from '@tachybase/components'; +import { Field, useField, useFieldSchema } from '@tachybase/schema'; + import _ from 'lodash'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts index 6d480f5b7..8350f9070 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts @@ -1,5 +1,4 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; /** * 创建批量编辑表单的 UI Schema diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/index.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/index.tsx index dd0ad0463..1aedef463 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/index.tsx @@ -1,19 +1,21 @@ import { Plugin, useCollection_deprecated } from '@tachybase/client'; + import { bulkEditActionSettings, deprecatedBulkEditActionSettings } from './BulkEditAction.Settings'; import { BulkEditActionInitializer } from './BulkEditActionInitializer'; import { + bulkEditBlockInitializers, BulkEditBlockInitializers_deprecated, CreateFormBulkEditBlockInitializers, - bulkEditBlockInitializers, } from './BulkEditBlockInitializers'; import { - BulkEditFormActionInitializers_deprecated, bulkEditFormActionInitializers, + BulkEditFormActionInitializers_deprecated, } from './BulkEditFormActionInitializers'; -import { BulkEditFormItemInitializers_deprecated, bulkEditFormItemInitializers } from './BulkEditFormItemInitializers'; +import { bulkEditFormItemInitializers, BulkEditFormItemInitializers_deprecated } from './BulkEditFormItemInitializers'; import { bulkEditFormItemSettings } from './bulkEditFormItemSettings'; import { BulkEditField } from './component/BulkEditField'; import { useCustomizeBulkEditActionProps } from './utils'; + export class PluginActionBulkEditClient extends Plugin { async load() { this.app.addComponents({ BulkEditField }); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/locale/index.ts similarity index 87% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/locale/index.ts index 3fc5e83ab..4444ee6cd 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/locale/index.ts @@ -1,7 +1,7 @@ import { i18n } from '@tachybase/client'; import { useTranslation } from 'react-i18next'; -export const NAMESPACE = '@nocobase/plugin-bulk-edit'; +export const NAMESPACE = '@tachybase/plugin-bulk-edit'; export function lang(key: string) { return i18n.t(key, { ns: NAMESPACE }); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/utils.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/utils.tsx index d7f6b596b..2b3d1c2cb 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/client/utils.tsx @@ -1,22 +1,23 @@ +import React, { useContext, useMemo } from 'react'; import { + SchemaInitializerItemType, + TableFieldResource, + useActionContext, + useBlockRequestContext, useCollection_deprecated, useCollectionManager_deprecated, - useRemoveGridFormItem, - SchemaInitializerItemType, - useBlockRequestContext, - useActionContext, useCompile, + useRemoveGridFormItem, useTableBlockContext, - TableFieldResource, } from '@tachybase/client'; -import React, { useContext } from 'react'; -import { App, message } from 'antd'; -import { useNavigate } from 'react-router-dom'; import { SchemaExpressionScopeContext, useField, useForm } from '@tachybase/schema'; -import { cloneDeep } from 'lodash'; import { isURL } from '@tachybase/utils/client'; -import { useMemo } from 'react'; + +import { App, message } from 'antd'; +import { cloneDeep } from 'lodash'; import { useTranslation } from 'react-i18next'; +import { useNavigate } from 'react-router-dom'; + import { BulkEditFormItemValueType } from './component/BulkEditField'; export const useCustomBulkEditFormItemInitializerFields = (options?: any) => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-action-bulk-edit/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/.npmignore b/packages/plugins/@tachybase/plugin-action-bulk-update/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/.npmignore rename to packages/plugins/@tachybase/plugin-action-bulk-update/.npmignore diff --git a/packages/plugins/@tachybase/plugin-action-bulk-update/README.md b/packages/plugins/@tachybase/plugin-action-bulk-update/README.md new file mode 100644 index 000000000..6a4cec4bd --- /dev/null +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-action-bulk-update diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/client.d.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/client.d.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/client.js b/packages/plugins/@tachybase/plugin-action-bulk-update/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/client.js rename to packages/plugins/@tachybase/plugin-action-bulk-update/client.js diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/package.json b/packages/plugins/@tachybase/plugin-action-bulk-update/package.json similarity index 92% rename from packages/plugins/@nocobase/plugin-action-bulk-update/package.json rename to packages/plugins/@tachybase/plugin-action-bulk-update/package.json index 06dbb80b8..8a60c35f4 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/package.json +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-action-bulk-update", + "name": "@tachybase/plugin-action-bulk-update", "displayName": "Action: Batch update", - "version": "0.21.33", + "version": "0.21.34", "description": "Batch update all records or selected records.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/server.d.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/server.d.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/server.js b/packages/plugins/@tachybase/plugin-action-bulk-update/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/server.js rename to packages/plugins/@tachybase/plugin-action-bulk-update/server.js diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx index f454b0623..cd2147154 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx @@ -1,17 +1,17 @@ -import { ISchema, useFieldSchema } from '@tachybase/schema'; -import { isValid } from '@tachybase/schema'; +import React from 'react'; import { ActionDesigner, + AssignedFieldValues, SchemaSettings, SchemaSettingsItemType, SchemaSettingsModalItem, SchemaSettingsSelectItem, - AssignedFieldValues, useDesignable, useSchemaToolbar, } from '@tachybase/client'; +import { ISchema, isValid, useFieldSchema } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; -import React from 'react'; function UpdateMode() { const { dn } = useDesignable(); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx index ee2d33d6c..56aed0540 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx @@ -1,5 +1,5 @@ -import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; import React from 'react'; +import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; export const BulkUpdateActionInitializer = () => { const itemConfig = useSchemaInitializerItem(); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx index 6196fdff6..5eb930d7c 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx @@ -1,5 +1,5 @@ -import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; import React from 'react'; +import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; export const CustomizeActionInitializer = () => { const itemConfig = useSchemaInitializerItem(); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts index d9289c06a..8f5672e0d 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,4 +1,5 @@ import { expect, oneEmptyTableBlockWithCustomizeActions, test } from '@tachybase/test/e2e'; + import { oneEmptyGantt } from './utils'; test.describe('TableActionInitializers & GanttActionInitializers & MapActionInitializers ', () => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts index 7b0ec3c9e..6fbe0e00f 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneEmptyTableBlockWithCustomizeUpdate } from './utils'; test.describe('data will be updated && Assign field values && after successful submission', () => { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/utils.ts index c27fed361..de5d9ddd0 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/__e2e__/utils.ts @@ -1,4 +1,4 @@ -import { CollectionSetting, PageConfig, generalWithM2oSingleSelect } from '@tachybase/test/e2e'; +import { CollectionSetting, generalWithM2oSingleSelect, PageConfig } from '@tachybase/test/e2e'; /** * 1. 创建一个名为 general 的 collection,其包含 时间、Percent 类型的字段 diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/index.tsx index dbdbd84dc..017179bae 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/index.tsx @@ -1,8 +1,10 @@ import { Plugin, useCollection_deprecated } from '@tachybase/client'; + import { bulkUpdateActionSettings, deprecatedBulkUpdateActionSettings } from './BulkUpdateAction.Settings'; import { BulkUpdateActionInitializer } from './BulkUpdateActionInitializer'; import { CustomizeActionInitializer } from './CustomizeActionInitializer'; import { useCustomizeBulkUpdateActionProps } from './utils'; + export class PluginActionBulkUpdateClient extends Plugin { async load() { this.app.addComponents({ CustomizeActionInitializer }); diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx b/packages/plugins/@tachybase/plugin-action-bulk-update/src/client/utils.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/client/utils.tsx diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/es-ES.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/es-ES.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/ko_KR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/ko_KR.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-action-bulk-update/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-action-bulk-update/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-action-bulk-update/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/.npmignore b/packages/plugins/@tachybase/plugin-action-duplicate/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/.npmignore rename to packages/plugins/@tachybase/plugin-action-duplicate/.npmignore diff --git a/packages/plugins/@tachybase/plugin-action-duplicate/README.md b/packages/plugins/@tachybase/plugin-action-duplicate/README.md new file mode 100644 index 000000000..07180fd9e --- /dev/null +++ b/packages/plugins/@tachybase/plugin-action-duplicate/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-action-duplicate diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/client.d.ts b/packages/plugins/@tachybase/plugin-action-duplicate/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/client.d.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/client.js b/packages/plugins/@tachybase/plugin-action-duplicate/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/client.js rename to packages/plugins/@tachybase/plugin-action-duplicate/client.js diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/package.json b/packages/plugins/@tachybase/plugin-action-duplicate/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-action-duplicate/package.json rename to packages/plugins/@tachybase/plugin-action-duplicate/package.json index 493b7d18f..59bb2205c 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/package.json +++ b/packages/plugins/@tachybase/plugin-action-duplicate/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-action-duplicate", + "name": "@tachybase/plugin-action-duplicate", "displayName": "Action: Duplicate record", - "version": "0.21.33", + "version": "0.21.34", "description": "Duplicate a record, you can either duplicate it into a form and edit it before saving it, or you can duplicate it directly to generate a new record.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/server.d.ts b/packages/plugins/@tachybase/plugin-action-duplicate/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/server.d.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/server.js b/packages/plugins/@tachybase/plugin-action-duplicate/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/server.js rename to packages/plugins/@tachybase/plugin-action-duplicate/server.js diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx index f29212bbf..2036407d0 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx @@ -1,22 +1,30 @@ -import { onFieldInputValueChange } from '@tachybase/schema'; -import { ISchema, connect, mapProps, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { ActionDesigner, SchemaSettingOpenModeSchemaItems, - useCollection_deprecated, - useRecord, - SchemaSettingsModalItem, + SchemaSettings, SchemaSettingsItemType, SchemaSettingsLinkageRules, + SchemaSettingsModalItem, + useCollection_deprecated, useCollectionState, useDesignable, + useRecord, useSchemaToolbar, useSyncFromForm, - SchemaSettings, } from '@tachybase/client'; +import { + connect, + ISchema, + mapProps, + onFieldInputValueChange, + useField, + useFieldSchema, + useForm, +} from '@tachybase/schema'; + import { Tree as AntdTree } from 'antd'; import { cloneDeep } from 'lodash'; -import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; const Tree = connect( diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateAction.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateAction.tsx diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx index 83a7934bf..91d872ea1 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx @@ -1,5 +1,5 @@ -import { ActionInitializer } from '@tachybase/client'; import React from 'react'; +import { ActionInitializer } from '@tachybase/client'; export const DuplicateActionInitializer = (props) => { const schema = { diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx index 7d646975a..fa59834ad 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx @@ -1,7 +1,8 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; -import { DuplicateActionInitializer } from './DuplicateActionInitializer'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { DuplicateAction } from './DuplicateAction'; +import { DuplicateActionInitializer } from './DuplicateActionInitializer'; export const DuplicatePluginProvider = (props: any) => { return ( diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts index 7d973a8fe..b39ad71f3 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneEmptyTableBlockWithDuplicateActions } from './utils'; test.describe('direct duplicate & copy into the form and continue to fill in', () => { diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/utils.ts index 4af2a05a9..e3bf3d460 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/__e2e__/utils.ts @@ -1,4 +1,4 @@ -import { CollectionSetting, PageConfig, general } from '@tachybase/test/e2e'; +import { CollectionSetting, general, PageConfig } from '@tachybase/test/e2e'; /** * 1. 创建一个名为 general 的 collection,其包含 时间、Percent 类型的字段 diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/client/index.ts index 492d4541c..2bc4e1459 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-action-duplicate/src/client/index.ts @@ -1,4 +1,5 @@ import { Plugin, useCollection_deprecated } from '@tachybase/client'; + import { DuplicateAction } from './DuplicateAction'; import { deprecatedDuplicateActionSettings, duplicateActionSettings } from './DuplicateAction.Settings'; import { DuplicateActionInitializer } from './DuplicateActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-action-duplicate/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-action-duplicate/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-action-duplicate/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-action-duplicate/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/.npmignore b/packages/plugins/@tachybase/plugin-action-print/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/.npmignore rename to packages/plugins/@tachybase/plugin-action-print/.npmignore diff --git a/packages/plugins/@tachybase/plugin-action-print/README.md b/packages/plugins/@tachybase/plugin-action-print/README.md new file mode 100644 index 000000000..f40c2b981 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-action-print/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-action-print diff --git a/packages/plugins/@nocobase/plugin-action-print/client.d.ts b/packages/plugins/@tachybase/plugin-action-print/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/client.d.ts rename to packages/plugins/@tachybase/plugin-action-print/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/client.js b/packages/plugins/@tachybase/plugin-action-print/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/client.js rename to packages/plugins/@tachybase/plugin-action-print/client.js diff --git a/packages/plugins/@nocobase/plugin-action-print/package.json b/packages/plugins/@tachybase/plugin-action-print/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-action-print/package.json rename to packages/plugins/@tachybase/plugin-action-print/package.json index a6a2b5399..4e9d759b5 100644 --- a/packages/plugins/@nocobase/plugin-action-print/package.json +++ b/packages/plugins/@tachybase/plugin-action-print/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-action-print", + "name": "@tachybase/plugin-action-print", "displayName": "Action: Print", - "version": "0.21.33", + "version": "0.21.34", "description": "Calls the browser's print function to print a record.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-action-print/server.d.ts b/packages/plugins/@tachybase/plugin-action-print/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/server.d.ts rename to packages/plugins/@tachybase/plugin-action-print/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/server.js b/packages/plugins/@tachybase/plugin-action-print/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/server.js rename to packages/plugins/@tachybase/plugin-action-print/server.js diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx b/packages/plugins/@tachybase/plugin-action-print/src/client/PrintAction.Settings.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx rename to packages/plugins/@tachybase/plugin-action-print/src/client/PrintAction.Settings.tsx diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx b/packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionInitializer.tsx index 4ae290a36..9f52a2704 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionInitializer.tsx @@ -1,5 +1,4 @@ import React from 'react'; - import { ActionInitializer } from '@tachybase/client'; export const PrintActionInitializer = (props) => { diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx b/packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionPluginProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx rename to packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionPluginProvider.tsx index c42d45a17..7bd30a08d 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx +++ b/packages/plugins/@tachybase/plugin-action-print/src/client/PrintActionPluginProvider.tsx @@ -1,5 +1,6 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { PrintActionInitializer } from './PrintActionInitializer'; import { useDetailPrintActionProps } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts index 193585685..a19b0b85d 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@tachybase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneCalenderWithViewAction, oneTableWithViewAction } from './utils'; test.describe('ReadPrettyFormActionInitializers & CalendarFormActionInitializers should add print action', () => { diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-action-print/src/client/__e2e__/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-action-print/src/client/__e2e__/utils.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx b/packages/plugins/@tachybase/plugin-action-print/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-action-print/src/client/index.tsx index 98e92f167..587db049d 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-action-print/src/client/index.tsx @@ -1,6 +1,8 @@ import { Plugin } from '@tachybase/client'; + import { deprecatedPrintActionSettings, printActionSettings } from './PrintAction.Settings'; import { PrintActionPluginProvider } from './PrintActionPluginProvider'; + export class PluginActionPrintClient extends Plugin { async load() { this.app.use(PrintActionPluginProvider); diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts b/packages/plugins/@tachybase/plugin-action-print/src/client/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts rename to packages/plugins/@tachybase/plugin-action-print/src/client/utils.ts index 9f15aeb3e..c031f0bfe 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts +++ b/packages/plugins/@tachybase/plugin-action-print/src/client/utils.ts @@ -1,4 +1,5 @@ import { useDetailsBlockContext } from '@tachybase/client'; + import { useReactToPrint } from 'react-to-print'; export const useDetailPrintActionProps = () => { diff --git a/packages/plugins/@nocobase/plugin-action-print/src/index.ts b/packages/plugins/@tachybase/plugin-action-print/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/index.ts rename to packages/plugins/@tachybase/plugin-action-print/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-action-print/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-action-print/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-action-print/src/server/index.ts b/packages/plugins/@tachybase/plugin-action-print/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/server/index.ts rename to packages/plugins/@tachybase/plugin-action-print/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-action-print/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-action-print/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/.npmignore b/packages/plugins/@tachybase/plugin-api-doc/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/.npmignore rename to packages/plugins/@tachybase/plugin-api-doc/.npmignore diff --git a/packages/plugins/@nocobase/plugin-api-doc/README.md b/packages/plugins/@tachybase/plugin-api-doc/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/README.md rename to packages/plugins/@tachybase/plugin-api-doc/README.md diff --git a/packages/plugins/@nocobase/plugin-api-doc/README.zh-CN.md b/packages/plugins/@tachybase/plugin-api-doc/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-api-doc/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-api-doc/client.d.ts b/packages/plugins/@tachybase/plugin-api-doc/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/client.d.ts rename to packages/plugins/@tachybase/plugin-api-doc/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/client.js b/packages/plugins/@tachybase/plugin-api-doc/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/client.js rename to packages/plugins/@tachybase/plugin-api-doc/client.js diff --git a/packages/plugins/@nocobase/plugin-api-doc/package.json b/packages/plugins/@tachybase/plugin-api-doc/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-api-doc/package.json rename to packages/plugins/@tachybase/plugin-api-doc/package.json index c24f05b8f..d254f4b40 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/package.json +++ b/packages/plugins/@tachybase/plugin-api-doc/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-api-doc", + "name": "@tachybase/plugin-api-doc", "displayName": "API documentation", - "version": "0.21.33", + "version": "0.21.34", "description": "An OpenAPI documentation generator for NocoBase HTTP API.", "homepage": "https://docs.nocobase.com/handbook/api-doc", "repository": { diff --git a/packages/plugins/@nocobase/plugin-api-doc/server.d.ts b/packages/plugins/@tachybase/plugin-api-doc/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/server.d.ts rename to packages/plugins/@tachybase/plugin-api-doc/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/server.js b/packages/plugins/@tachybase/plugin-api-doc/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/server.js rename to packages/plugins/@tachybase/plugin-api-doc/server.js diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx b/packages/plugins/@tachybase/plugin-api-doc/src/client/Document.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx rename to packages/plugins/@tachybase/plugin-api-doc/src/client/Document.tsx index d5e36a457..755bf72bb 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx +++ b/packages/plugins/@tachybase/plugin-api-doc/src/client/Document.tsx @@ -1,9 +1,12 @@ +import React, { useEffect, useRef, useState } from 'react'; import { css, useAPIClient, useApp, useRequest } from '@tachybase/client'; import { getSubAppName } from '@tachybase/sdk'; + import { Select, Space, Spin, Typography } from 'antd'; -import React, { useEffect, useRef, useState } from 'react'; import SwaggerUIBundle from 'swagger-ui-dist/swagger-ui-bundle'; + import 'swagger-ui-dist/swagger-ui.css'; + import { useTranslation } from '../locale'; const DESTINATION_URL_KEY = 'API_DOC:DESTINATION_URL_KEY'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx b/packages/plugins/@tachybase/plugin-api-doc/src/client/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-api-doc/src/client/index.tsx diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-api-doc/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-api-doc/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-api-doc/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-api-doc/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-api-doc/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-api-doc/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/server.ts index 388ac40c5..255ad4098 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/server.ts @@ -1,5 +1,6 @@ import { Context } from '@tachybase/actions'; import { Plugin } from '@tachybase/server'; + import { SwaggerManager } from './swagger'; export class PluginAPIDocServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/base-swagger.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/base-swagger.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/index.ts index c3ffe1ac5..70eafd4cf 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/index.ts @@ -1,6 +1,7 @@ import { Collection } from '@tachybase/database'; -import schemas from './schemas'; + import parameters from './parameters'; +import schemas from './schemas'; export default (collection: Collection, options) => { return { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts index 769ef32fd..540edeebc 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts @@ -1,4 +1,5 @@ import { Collection } from '@tachybase/database'; + import { getTypeByField } from './field-type-map'; export default (collection: Collection) => { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts index cf823be2b..fd40b9b51 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts @@ -1,6 +1,7 @@ import { Collection, Field, RelationField } from '@tachybase/database'; -import { getTypeByField } from './field-type-map'; + import { associationFields } from '../paths/associations'; +import { getTypeByField } from './field-type-map'; function getCollectionReadOnlyFields(collection: Collection) { const readOnlyFields = []; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/index.ts index df2946553..922703b6a 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/index.ts @@ -1,6 +1,7 @@ import { Collection } from '@tachybase/database'; -import paths from './paths'; + import components from './components'; +import paths from './paths'; import tags from './tags'; function collectionToSwaggerObject(collection: Collection, options) { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts index 8cf082e43..3387ce69f 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts @@ -6,9 +6,10 @@ import { HasOneField, RelationField, } from '@tachybase/database'; + +import { isViewCollection } from '..'; import multipleAssociation from './multiple-association'; import singleAssociation from './single-association'; -import { isViewCollection } from '..'; export default (collection: Collection) => { return associationFields(collection) diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts index 08e01bb16..ccee494d2 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts @@ -1,4 +1,5 @@ import { BelongsToManyField, Collection, HasManyField } from '@tachybase/database'; + import { CreateActionTemplate, DestroyActionTemplate, diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts index 6c8702985..a6fefbbf4 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts @@ -1,6 +1,7 @@ import { BelongsToField, Collection, HasOneField } from '@tachybase/database'; -import { appendCollectionIndexParams } from './multiple-association'; + import { CreateActionTemplate, DestroyActionTemplate, GetActionTemplate, UpdateActionTemplate } from '../collection'; +import { appendCollectionIndexParams } from './multiple-association'; function removeFilterByTkParams(apiDoc: object) { for (const action of Object.values(apiDoc)) { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts index 13557f66a..046aba752 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts @@ -1,4 +1,5 @@ import { Collection, RelationField } from '@tachybase/database'; + import { hasSortField, readOnlyCollection } from './index'; type TemplateOptions = { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/index.ts index 43dfd4f2e..faeab18ce 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/paths/index.ts @@ -1,6 +1,7 @@ import { Collection } from '@tachybase/database'; -import list from './collection'; + import associations from './associations'; +import list from './collection'; export default (collection: Collection, options) => { const paths = list(collection); diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/tags/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/tags/index.ts index ca3cd2303..0efbadf02 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/collections/tags/index.ts @@ -1,4 +1,5 @@ import { Collection } from '@tachybase/database'; + import { associationFields } from '../paths/associations'; import { relationTypeToString } from '../paths/collection'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/constants.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/constants.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/constants.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/helpers.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/helpers.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/loader.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/loader.ts index 8a17c5676..0caa06b97 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts +++ b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/loader.ts @@ -1,4 +1,5 @@ import { requireModule } from '@tachybase/utils'; + import { merge } from './merge'; export const loadSwagger = (packageName: string) => { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts b/packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/merge.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/server/swagger/merge.ts diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts b/packages/plugins/@tachybase/plugin-api-doc/src/swagger.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts rename to packages/plugins/@tachybase/plugin-api-doc/src/swagger.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/.npmignore b/packages/plugins/@tachybase/plugin-api-keys/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/.npmignore rename to packages/plugins/@tachybase/plugin-api-keys/.npmignore diff --git a/packages/plugins/@nocobase/plugin-api-keys/README.md b/packages/plugins/@tachybase/plugin-api-keys/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/README.md rename to packages/plugins/@tachybase/plugin-api-keys/README.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/README.zh-CN.md b/packages/plugins/@tachybase/plugin-api-keys/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-api-keys/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/client.d.ts b/packages/plugins/@tachybase/plugin-api-keys/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/client.d.ts rename to packages/plugins/@tachybase/plugin-api-keys/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/client.js b/packages/plugins/@tachybase/plugin-api-keys/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/client.js rename to packages/plugins/@tachybase/plugin-api-keys/client.js diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/en-US/changelog.md b/packages/plugins/@tachybase/plugin-api-keys/docs/en-US/changelog.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/en-US/changelog.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/en-US/changelog.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/en-US/index.md b/packages/plugins/@tachybase/plugin-api-keys/docs/en-US/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/en-US/index.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/en-US/index.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/en-US/tabs.json b/packages/plugins/@tachybase/plugin-api-keys/docs/en-US/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/en-US/tabs.json rename to packages/plugins/@tachybase/plugin-api-keys/docs/en-US/tabs.json diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/en-US/usage.md b/packages/plugins/@tachybase/plugin-api-keys/docs/en-US/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/en-US/usage.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/en-US/usage.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/changelog.md b/packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/changelog.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/changelog.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/changelog.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/index.md b/packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/index.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/index.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/tabs.json b/packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/tabs.json rename to packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/tabs.json diff --git a/packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/usage.md b/packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/docs/zh-CN/usage.md rename to packages/plugins/@tachybase/plugin-api-keys/docs/zh-CN/usage.md diff --git a/packages/plugins/@nocobase/plugin-api-keys/package.json b/packages/plugins/@tachybase/plugin-api-keys/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-api-keys/package.json rename to packages/plugins/@tachybase/plugin-api-keys/package.json index 297a41379..d52dd2fe4 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/package.json +++ b/packages/plugins/@tachybase/plugin-api-keys/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-api-keys", + "name": "@tachybase/plugin-api-keys", "displayName": "Auth: API keys", - "version": "0.21.33", + "version": "0.21.34", "description": "Allows users to use API key to access application's HTTP API", "keywords": [ "Authentication" diff --git a/packages/plugins/@nocobase/plugin-api-keys/server.d.ts b/packages/plugins/@tachybase/plugin-api-keys/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/server.d.ts rename to packages/plugins/@tachybase/plugin-api-keys/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/server.js b/packages/plugins/@tachybase/plugin-api-keys/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/server.js rename to packages/plugins/@tachybase/plugin-api-keys/server.js diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx rename to packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx index 25d358fd5..672806070 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx +++ b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx @@ -1,9 +1,11 @@ -import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; +import React, { useMemo } from 'react'; import { css, useRecord } from '@tachybase/client'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; + import { useBoolean } from 'ahooks'; import { DatePicker, Select, Space, Typography } from 'antd'; import dayjs from 'dayjs'; -import React, { useMemo } from 'react'; + import { useTranslation } from '../locale'; const TOMORROW = dayjs().add(1, 'days'); diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx rename to packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/index.tsx index f3b8a5096..b0694334f 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx +++ b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/index.tsx @@ -1,6 +1,7 @@ -import { RecursionField } from '@tachybase/schema'; -import { SchemaComponentOptions, useCurrentRoles } from '@tachybase/client'; import React from 'react'; +import { SchemaComponentOptions, useCurrentRoles } from '@tachybase/client'; +import { RecursionField } from '@tachybase/schema'; + import { ExpiresSelect } from './ExpiresSelect'; import { configurationSchema } from './schema'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/roles.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/roles.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/schema.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx rename to packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/schema.tsx index ae59731a6..dca3b93ce 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx +++ b/packages/plugins/@tachybase/plugin-api-keys/src/client/Configuration/schema.tsx @@ -1,11 +1,13 @@ -import { ISchema, useForm } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; -import { useActionContext, useBlockRequestContext, useRecord } from '@tachybase/client'; -import { Alert, Modal, Space, Typography } from 'antd'; import React from 'react'; -import { generateNTemplate } from '../../locale'; +import { useActionContext, useBlockRequestContext, useRecord } from '@tachybase/client'; +import { ISchema, uid, useForm } from '@tachybase/schema'; + +import { Alert, Modal, Space, Typography } from 'antd'; + import apiKeysCollection from '../../collections/apiKeys'; +import { generateNTemplate } from '../../locale'; import { useTranslation } from '../locale'; + const { useModal } = Modal; const useCreateAction = () => { diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx b/packages/plugins/@tachybase/plugin-api-keys/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-api-keys/src/client/index.tsx index 15522bc64..37b7c0c10 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-api-keys/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { NAMESPACE } from '../constants'; import { Configuration } from './Configuration'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-api-keys/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts b/packages/plugins/@tachybase/plugin-api-keys/src/collections/apiKeys.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/collections/apiKeys.ts index 7655b84b2..46679a686 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts +++ b/packages/plugins/@tachybase/plugin-api-keys/src/collections/apiKeys.ts @@ -1,4 +1,5 @@ import type { CollectionOptions } from '@tachybase/database'; + import { generateNTemplate } from '../locale'; export default { diff --git a/packages/plugins/@tachybase/plugin-api-keys/src/constants.ts b/packages/plugins/@tachybase/plugin-api-keys/src/constants.ts new file mode 100644 index 000000000..f19b96bcd --- /dev/null +++ b/packages/plugins/@tachybase/plugin-api-keys/src/constants.ts @@ -0,0 +1 @@ +export const NAMESPACE = '@tachybase/plugin-api-keys'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/index.ts b/packages/plugins/@tachybase/plugin-api-keys/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/index.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/locale.ts b/packages/plugins/@tachybase/plugin-api-keys/src/locale.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/locale.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/locale.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-api-keys/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-api-keys/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-api-keys/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-api-keys/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-api-keys/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-api-keys/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/__tests__/actions.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/__tests__/actions.test.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/actions/api-keys.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/actions/api-keys.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/collections/apiKeys.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/collections/apiKeys.ts index 62cd1d811..3318e0a34 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts +++ b/packages/plugins/@tachybase/plugin-api-keys/src/server/collections/apiKeys.ts @@ -1,2 +1,3 @@ import apiKeys from '../../collections/apiKeys'; + export default apiKeys; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-api-keys/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/server/plugin.ts index 9858f3910..87bb0ecee 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-api-keys/src/server/plugin.ts @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/server'; + import { create, destroy } from './actions/api-keys'; export class PluginAPIKeysServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-api-keys/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-api-keys/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/.npmignore b/packages/plugins/@tachybase/plugin-auth/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/.npmignore rename to packages/plugins/@tachybase/plugin-auth/.npmignore diff --git a/packages/plugins/@nocobase/plugin-auth/README.md b/packages/plugins/@tachybase/plugin-auth/README.md similarity index 96% rename from packages/plugins/@nocobase/plugin-auth/README.md rename to packages/plugins/@tachybase/plugin-auth/README.md index 8e4cefdd0..afc416bde 100644 --- a/packages/plugins/@nocobase/plugin-auth/README.md +++ b/packages/plugins/@tachybase/plugin-auth/README.md @@ -65,7 +65,7 @@ class CustomAuth extends BaseAuth { ### 用户数据 -`@nocobase/plugin-auth`插件提供了`usersAuthenticators`表来建立users和authenticators,即用户和认证方式的关联。 +`@tachybase/plugin-auth`插件提供了`usersAuthenticators`表来建立users和authenticators,即用户和认证方式的关联。 通常情况下,扩展登录方式用`users`和`usersAuthenticators`来存储相应的用户数据即可,特殊情况下才需要自己新增Collection. `users`存储的是最基础的用户数据,邮箱、昵称和密码。 `usersAuthenticators`存储扩展登录方式数据 diff --git a/packages/plugins/@nocobase/plugin-auth/client.d.ts b/packages/plugins/@tachybase/plugin-auth/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/client.d.ts rename to packages/plugins/@tachybase/plugin-auth/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-auth/client.js b/packages/plugins/@tachybase/plugin-auth/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/client.js rename to packages/plugins/@tachybase/plugin-auth/client.js diff --git a/packages/plugins/@nocobase/plugin-auth/package.json b/packages/plugins/@tachybase/plugin-auth/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-auth/package.json rename to packages/plugins/@tachybase/plugin-auth/package.json index bda7d955f..bbb472114 100644 --- a/packages/plugins/@nocobase/plugin-auth/package.json +++ b/packages/plugins/@tachybase/plugin-auth/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-auth", + "name": "@tachybase/plugin-auth", "displayName": "Authentication", - "version": "0.21.33", + "version": "0.21.34", "description": "User authentication management, including password, SMS, and support for Single Sign-On (SSO) protocols, with extensibility.", "keywords": [ "Authentication" diff --git a/packages/plugins/@nocobase/plugin-auth/server.d.ts b/packages/plugins/@tachybase/plugin-auth/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/server.d.ts rename to packages/plugins/@tachybase/plugin-auth/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-auth/server.js b/packages/plugins/@tachybase/plugin-auth/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/server.js rename to packages/plugins/@tachybase/plugin-auth/server.js diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/AuthProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/AuthProvider.tsx index e433d0f50..d6ef3af61 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/AuthProvider.tsx @@ -1,5 +1,6 @@ -import { useAPIClient } from '@tachybase/client'; import React, { useEffect } from 'react'; +import { useAPIClient } from '@tachybase/client'; + import { useLocation } from 'react-router-dom'; export const AuthProvider: React.FC = (props) => { diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts b/packages/plugins/@tachybase/plugin-auth/src/client/__e2e__/auth.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/__e2e__/auth.test.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts b/packages/plugins/@tachybase/plugin-auth/src/client/authenticator.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/authenticator.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/basic/Options.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/basic/Options.tsx index fd25aafd0..b9137f569 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/basic/Options.tsx @@ -1,8 +1,10 @@ -import { SchemaComponent } from '@tachybase/client'; import React from 'react'; -import { useAuthTranslation } from '../locale'; +import { SchemaComponent } from '@tachybase/client'; + import { Alert } from 'antd'; +import { useAuthTranslation } from '../locale'; + export const Options = () => { const { t } = useAuthTranslation(); return ( diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/basic/SignInForm.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/basic/SignInForm.tsx index 372a47dfe..8f9c40833 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/basic/SignInForm.tsx @@ -1,11 +1,12 @@ -import { ISchema } from '@tachybase/schema'; -import { SchemaComponent, useAPIClient, useCurrentUserContext } from '@tachybase/client'; import React, { useCallback } from 'react'; -import { useAuthTranslation } from '../locale'; +import { SchemaComponent, useAPIClient, useCurrentUserContext } from '@tachybase/client'; +import { ISchema, useForm } from '@tachybase/schema'; + import { useNavigate, useSearchParams } from 'react-router-dom'; -import { useForm } from '@tachybase/schema'; -import { useSignUpForms } from '../pages'; + import { Authenticator } from '../authenticator'; +import { useAuthTranslation } from '../locale'; +import { useSignUpForms } from '../pages'; export function useRedirect(next = '/admin') { const navigate = useNavigate(); diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/basic/SignUpForm.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/basic/SignUpForm.tsx index 3734cc9ce..44ef8bb9c 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/basic/SignUpForm.tsx @@ -1,14 +1,13 @@ -import { SchemaComponent } from '@tachybase/client'; -import { ISchema } from '@tachybase/schema'; import React from 'react'; -import { uid } from '@tachybase/schema'; -import { useAuthTranslation } from '../locale'; -import { useAPIClient } from '@tachybase/client'; -import { useForm } from '@tachybase/schema'; -import { useNavigate, Navigate } from 'react-router-dom'; +import { SchemaComponent, useAPIClient } from '@tachybase/client'; +import { ISchema, uid, useForm } from '@tachybase/schema'; + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; +import { Navigate, useNavigate } from 'react-router-dom'; + import { useAuthenticator } from '../authenticator'; +import { useAuthTranslation } from '../locale'; export interface UseSignupProps { authenticator?: string; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts b/packages/plugins/@tachybase/plugin-auth/src/client/basic/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/basic/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/index.tsx index c5a706e7f..3c067a173 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/index.tsx @@ -1,9 +1,10 @@ +import { ComponentType } from 'react'; import { Plugin } from '@tachybase/client'; import { Registry } from '@tachybase/utils/client'; -import { ComponentType } from 'react'; + import { presetAuthType } from '../preset'; -import { AuthProvider } from './AuthProvider'; import { Authenticator as AuthenticatorType } from './authenticator'; +import { AuthProvider } from './AuthProvider'; import { Options, SignInForm, SignUpForm } from './basic'; import { NAMESPACE } from './locale'; import { AuthLayout, SignInPage, SignUpPage } from './pages'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-auth/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/pages/AuthLayout.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/pages/AuthLayout.tsx diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/pages/SignInPage.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/pages/SignInPage.tsx diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/pages/SignUpPage.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/pages/SignUpPage.tsx index 96b9d8dd0..78b9800de 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/pages/SignUpPage.tsx @@ -1,6 +1,8 @@ +import React, { createContext, createElement, FunctionComponent, useContext } from 'react'; import { useCurrentDocumentTitle, usePlugin, useViewport } from '@tachybase/client'; -import React, { useContext, createContext, FunctionComponent, createElement } from 'react'; + import { Navigate, useSearchParams } from 'react-router-dom'; + import AuthPlugin, { AuthOptions } from '..'; import { useAuthenticator } from '../authenticator'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts b/packages/plugins/@tachybase/plugin-auth/src/client/pages/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/pages/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/settings/Authenticator.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/settings/Authenticator.tsx index a0c6d50d8..e030f956f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/settings/Authenticator.tsx @@ -1,20 +1,21 @@ +import React, { useState } from 'react'; import { ActionContextProvider, SchemaComponent, - useAPIClient, useActionContext, + useAPIClient, useAsyncData, useRequest, } from '@tachybase/client'; -import { Card } from 'antd'; -import React, { useState } from 'react'; -import { authenticatorsSchema, createFormSchema } from './schemas/authenticators'; -import { Button, Dropdown } from 'antd'; -import { PlusOutlined, DownOutlined } from '@ant-design/icons'; -import { AuthTypeContext, AuthTypesContext, useAuthTypes } from './authType'; -import { useValuesFromOptions, Options } from './Options'; + +import { DownOutlined, PlusOutlined } from '@ant-design/icons'; +import { Button, Card, Dropdown } from 'antd'; import { useTranslation } from 'react-i18next'; + import { useAuthTranslation } from '../locale'; +import { AuthTypeContext, AuthTypesContext, useAuthTypes } from './authType'; +import { Options, useValuesFromOptions } from './Options'; +import { authenticatorsSchema, createFormSchema } from './schemas/authenticators'; const useCloseAction = () => { const { setVisible } = useActionContext(); diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx b/packages/plugins/@tachybase/plugin-auth/src/client/settings/Options.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx rename to packages/plugins/@tachybase/plugin-auth/src/client/settings/Options.tsx index 00fb2687c..e417abbc2 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx +++ b/packages/plugins/@tachybase/plugin-auth/src/client/settings/Options.tsx @@ -1,7 +1,7 @@ -import React from 'react'; -import { observer, useForm } from '@tachybase/schema'; +import React, { useEffect } from 'react'; import { useActionContext, usePlugin, useRecord, useRequest } from '@tachybase/client'; -import { useEffect } from 'react'; +import { observer, useForm } from '@tachybase/schema'; + import AuthPlugin from '..'; export const useValuesFromOptions = (options) => { diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts b/packages/plugins/@tachybase/plugin-auth/src/client/settings/authType.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/settings/authType.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts b/packages/plugins/@tachybase/plugin-auth/src/client/settings/schemas/authenticators.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts rename to packages/plugins/@tachybase/plugin-auth/src/client/settings/schemas/authenticators.ts index 7276c0300..b75b9c51f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/client/settings/schemas/authenticators.ts @@ -1,9 +1,10 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; -import { i18n, useAPIClient, useActionContext, useRequest } from '@tachybase/client'; -import { message } from 'antd'; import { useContext } from 'react'; +import { i18n, useActionContext, useAPIClient, useRequest } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + +import { message } from 'antd'; import { useTranslation } from 'react-i18next'; + import { AuthTypeContext } from '../authType'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-auth/src/index.ts b/packages/plugins/@tachybase/plugin-auth/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-auth/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-auth/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-auth/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-auth/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-auth/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-auth/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-auth/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-auth/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-auth/src/preset.ts b/packages/plugins/@tachybase/plugin-auth/src/preset.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/preset.ts rename to packages/plugins/@tachybase/plugin-auth/src/preset.ts index 0ace31723..f0050b86d 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/preset.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/preset.ts @@ -1,5 +1,6 @@ // @ts-ignore import { name } from '../package.json'; + export const presetAuthType = 'Email/Password'; export const presetAuthenticator = 'basic'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/actions.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/__tests__/actions.test.ts index 2108669a4..fe697e739 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/actions.test.ts @@ -82,7 +82,7 @@ describe('actions', () => { let agent; beforeEach(async () => { - process.env.INIT_ROOT_EMAIL = 'test@nocobase.com'; + process.env.INIT_ROOT_EMAIL = 'test@tachybase.com'; process.env.INT_ROOT_USERNAME = 'test'; process.env.INIT_ROOT_PASSWORD = '123456'; process.env.INIT_ROOT_NICKNAME = 'Test'; @@ -148,7 +148,7 @@ describe('actions', () => { it('should compitible with old api', async () => { // Create a user without username const userRepo = db.getRepository('users'); - const email = 'test2@nocobase.com'; + const email = 'test2@tachybase.com'; const password = '1234567'; await userRepo.create({ values: { @@ -157,7 +157,7 @@ describe('actions', () => { }, }); const res = await agent.post('/auth:signIn').set({ 'X-Authenticator': 'basic' }).send({ - email: 'test@nocobase.com', + email: 'test@tachybase.com', password: '123456', }); expect(res.statusCode).toEqual(200); diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/auth.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/__tests__/auth.test.ts index 9d1daf7f7..34b61736f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/auth.test.ts @@ -1,6 +1,6 @@ import { BaseAuth } from '@tachybase/auth'; import { Database, Model } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('auth', () => { let auth: BaseAuth; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/storer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/__tests__/storer.test.ts index 8cc4eb50f..3d5825046 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/storer.test.ts @@ -1,4 +1,5 @@ import { Cache, CacheManager } from '@tachybase/cache'; + import { Storer } from '../storer'; class MockDB { diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/token-blacklist.test.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/__tests__/token-blacklist.test.ts index fa21fc91a..aca15a027 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/__tests__/token-blacklist.test.ts @@ -1,6 +1,6 @@ import { ITokenBlacklistService } from '@tachybase/auth'; import Database, { Repository } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('token-blacklist', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts b/packages/plugins/@tachybase/plugin-auth/src/server/actions/auth.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/actions/auth.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts b/packages/plugins/@tachybase/plugin-auth/src/server/actions/authenticators.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/actions/authenticators.ts index 2e54001e0..f8170aae8 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/actions/authenticators.ts @@ -1,7 +1,8 @@ import { Context, Next } from '@tachybase/actions'; -import { Model, Repository } from '@tachybase/database'; -import { namespace } from '../../preset'; import { AuthManager } from '@tachybase/auth'; +import { Model, Repository } from '@tachybase/database'; + +import { namespace } from '../../preset'; async function checkCount(repository: Repository, id: number[]) { // TODO(yangqia): This is a temporary solution, may cause concurrency problem. diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts b/packages/plugins/@tachybase/plugin-auth/src/server/basic-auth.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/basic-auth.ts index 633517464..1c7de978b 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/basic-auth.ts @@ -1,6 +1,7 @@ +import crypto from 'crypto'; import { AuthConfig, BaseAuth } from '@tachybase/auth'; import { PasswordField } from '@tachybase/database'; -import crypto from 'crypto'; + import { namespace } from '../preset'; export class BasicAuth extends BaseAuth { diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-auth/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-auth/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts b/packages/plugins/@tachybase/plugin-auth/src/server/collections/authenticators.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/collections/authenticators.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts b/packages/plugins/@tachybase/plugin-auth/src/server/collections/token-blacklist.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/collections/token-blacklist.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts b/packages/plugins/@tachybase/plugin-auth/src/server/collections/users-authenticators.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/collections/users-authenticators.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/index.ts b/packages/plugins/@tachybase/plugin-auth/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/ja-JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/ja-JP.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-auth/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts similarity index 89% rename from packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts index 40fc874d6..dbf6444fe 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts @@ -1,5 +1,6 @@ import { Migration } from '@tachybase/server'; -import { presetAuthType, presetAuthenticator } from '../../preset'; + +import { presetAuthenticator, presetAuthType } from '../../preset'; export default class AddBasicAuthMigration extends Migration { appVersion = '<0.14.0-alpha.1'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts index 00e4eefe1..da52e2702 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { presetAuthenticator } from '../../preset'; export default class UpdateBasicAuthMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts index 198ba88c4..8d973303c 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { presetAuthType } from '../../preset'; export default class FixAllowSignUpMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts b/packages/plugins/@tachybase/plugin-auth/src/server/model/authenticator.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/model/authenticator.ts diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-auth/src/server/plugin.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/plugin.ts index 1d3725ac5..00d12b1ba 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/plugin.ts @@ -1,8 +1,9 @@ +import { resolve } from 'path'; import { Cache } from '@tachybase/cache'; import { Model } from '@tachybase/database'; import { InstallOptions, Plugin } from '@tachybase/server'; -import { resolve } from 'path'; -import { namespace, presetAuthType, presetAuthenticator } from '../preset'; + +import { namespace, presetAuthenticator, presetAuthType } from '../preset'; import authActions from './actions/auth'; import authenticatorsActions from './actions/authenticators'; import { BasicAuth } from './basic-auth'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts b/packages/plugins/@tachybase/plugin-auth/src/server/storer.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/storer.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/storer.ts index 9d273b383..ca0f982b9 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/storer.ts @@ -1,6 +1,7 @@ import { Storer as IStorer } from '@tachybase/auth'; import { Cache } from '@tachybase/cache'; import { Database, Model } from '@tachybase/database'; + import { AuthModel } from './model/authenticator'; export class Storer implements IStorer { diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts b/packages/plugins/@tachybase/plugin-auth/src/server/token-blacklist.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts rename to packages/plugins/@tachybase/plugin-auth/src/server/token-blacklist.ts index 168cf87f3..e20a2863f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts +++ b/packages/plugins/@tachybase/plugin-auth/src/server/token-blacklist.ts @@ -1,8 +1,10 @@ import { ITokenBlacklistService } from '@tachybase/auth'; -import { Repository } from '@tachybase/database'; -import { CronJob } from 'cron'; -import AuthPlugin from './plugin'; import { BloomFilter } from '@tachybase/cache'; +import { Repository } from '@tachybase/database'; + +import { CronJob } from 'cron'; + +import AuthPlugin from './plugin'; export class TokenBlacklistService implements ITokenBlacklistService { repo: Repository; diff --git a/packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-auth/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-auth/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/.npmignore b/packages/plugins/@tachybase/plugin-backup-restore/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/.npmignore rename to packages/plugins/@tachybase/plugin-backup-restore/.npmignore diff --git a/packages/plugins/@nocobase/plugin-backup-restore/README.md b/packages/plugins/@tachybase/plugin-backup-restore/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/README.md rename to packages/plugins/@tachybase/plugin-backup-restore/README.md diff --git a/packages/plugins/@nocobase/plugin-backup-restore/README.zh-CN.md b/packages/plugins/@tachybase/plugin-backup-restore/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-backup-restore/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-backup-restore/client.d.ts b/packages/plugins/@tachybase/plugin-backup-restore/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/client.d.ts rename to packages/plugins/@tachybase/plugin-backup-restore/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/client.js b/packages/plugins/@tachybase/plugin-backup-restore/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/client.js rename to packages/plugins/@tachybase/plugin-backup-restore/client.js diff --git a/packages/plugins/@nocobase/plugin-backup-restore/package.json b/packages/plugins/@tachybase/plugin-backup-restore/package.json similarity index 96% rename from packages/plugins/@nocobase/plugin-backup-restore/package.json rename to packages/plugins/@tachybase/plugin-backup-restore/package.json index bd62200ff..4cba3c497 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/package.json +++ b/packages/plugins/@tachybase/plugin-backup-restore/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-backup-restore", + "name": "@tachybase/plugin-backup-restore", "displayName": "App backup & restore", - "version": "0.21.33", + "version": "0.21.34", "description": "Backup and restore applications for scenarios such as application replication, migration, and upgrades.", "keywords": [ "System management" diff --git a/packages/plugins/@nocobase/plugin-backup-restore/server.d.ts b/packages/plugins/@tachybase/plugin-backup-restore/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/server.d.ts rename to packages/plugins/@tachybase/plugin-backup-restore/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/server.js b/packages/plugins/@tachybase/plugin-backup-restore/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/server.js rename to packages/plugins/@tachybase/plugin-backup-restore/server.js diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx b/packages/plugins/@tachybase/plugin-backup-restore/src/client/Configuration.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx rename to packages/plugins/@tachybase/plugin-backup-restore/src/client/Configuration.tsx index b4e2c5bcf..35edaa77b 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/client/Configuration.tsx @@ -1,9 +1,11 @@ -import { InboxOutlined, PlusOutlined, ReloadOutlined, UploadOutlined } from '@ant-design/icons'; -import { FormItem } from '@tachybase/components'; -import { Checkbox, DatePicker, useAPIClient, useCompile } from '@tachybase/client'; -import { Alert, App, Button, Card, Divider, Modal, Space, Spin, Table, Tabs, Upload, UploadProps, message } from 'antd'; -import { saveAs } from 'file-saver'; import React, { useEffect, useMemo, useState } from 'react'; +import { Checkbox, DatePicker, useAPIClient, useCompile } from '@tachybase/client'; +import { FormItem } from '@tachybase/components'; + +import { InboxOutlined, PlusOutlined, ReloadOutlined, UploadOutlined } from '@ant-design/icons'; +import { Alert, App, Button, Card, Divider, message, Modal, Space, Spin, Table, Tabs, Upload, UploadProps } from 'antd'; +import { saveAs } from 'file-saver'; + import { useDuplicatorTranslation } from './locale'; const { Dragger } = Upload; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx b/packages/plugins/@tachybase/plugin-backup-restore/src/client/DuplicatorProvider.tsx similarity index 83% rename from packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx rename to packages/plugins/@tachybase/plugin-backup-restore/src/client/DuplicatorProvider.tsx index e5f546b35..22ad208cd 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/client/DuplicatorProvider.tsx @@ -1,5 +1,5 @@ -import { SchemaComponentOptions, CurrentAppInfoProvider } from '@tachybase/client'; import React, { FC } from 'react'; +import { CurrentAppInfoProvider, SchemaComponentOptions } from '@tachybase/client'; export const DuplicatorProvider: FC = function (props) { return ( diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx b/packages/plugins/@tachybase/plugin-backup-restore/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-backup-restore/src/client/index.tsx index 2d9c5888f..d92a7d906 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { BackupAndRestoreList } from './Configuration'; import { DuplicatorProvider } from './DuplicatorProvider'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/index.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/index.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-backup-restore/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-backup-restore/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/locale/ja-JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/locale/ja-JP.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-backup-restore/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-backup-restore/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-backup-restore/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-backup-restore/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/api.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/api.test.ts index 903aa8046..af3770539 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/api.test.ts @@ -1,4 +1,5 @@ import { MockServer, waitSecond } from '@tachybase/test'; + import { Dumper } from '../dumper'; import createApp from './index'; @@ -169,7 +170,7 @@ describe('backup files', () => { name: 'test', title: '测试', group: 'custom', - origin: '@nocobase/plugin-collection-manager', + origin: '@tachybase/plugin-collection-manager', }); }); }); diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts index e4ed5d28f..0df76dcb7 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts @@ -1,8 +1,9 @@ -import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; import fsPromises from 'fs/promises'; import * as os from 'os'; import path from 'path'; +import { Database } from '@tachybase/database'; +import { createMockServer, MockServer } from '@tachybase/test'; + import { Dumper } from '../dumper'; import { Restorer } from '../restorer'; import { readLines } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dumper.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dumper.test.ts index e1c3f5c23..a154be7e5 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/dumper.test.ts @@ -1,7 +1,8 @@ -import { Database } from '@tachybase/database'; -import { MockServer } from '@tachybase/test'; import fs from 'fs'; import path from 'path'; +import { Database } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + import { Dumper } from '../dumper'; import { Restorer } from '../restorer'; import createApp from './index'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/backup_20231111_112233.nbdump.lock b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/backup_20231111_112233.nbdump.lock similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/backup_20231111_112233.nbdump.lock rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/backup_20231111_112233.nbdump.lock diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/dump.nbdump.fixture b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/dump.nbdump.fixture similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/dump.nbdump.fixture rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/dump.nbdump.fixture diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/files/backup1.nbdump.lock b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/files/backup1.nbdump.lock similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/fixtures/files/backup1.nbdump.lock rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/fixtures/files/backup1.nbdump.lock diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/index.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts index 52529c571..939bfe7a0 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts @@ -1,10 +1,11 @@ -import { MockServer } from '@tachybase/test'; +import fs from 'fs'; +import path from 'path'; import { Collection, Database } from '@tachybase/database'; -import createApp from './index'; +import { MockServer } from '@tachybase/test'; + import { Dumper } from '../dumper'; import { Restorer } from '../restorer'; -import path from 'path'; -import fs from 'fs'; +import createApp from './index'; describe('on dump', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/app-migrator.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/app-migrator.ts index 291537802..980846fcf 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/app-migrator.ts @@ -1,10 +1,10 @@ -import { Application } from '@tachybase/server'; -import { applyMixins, AsyncEmitter } from '@tachybase/utils'; import crypto from 'crypto'; import EventEmitter from 'events'; import fsPromises from 'fs/promises'; import * as os from 'os'; import path from 'path'; +import { Application } from '@tachybase/server'; +import { applyMixins, AsyncEmitter } from '@tachybase/utils'; export type AppMigratorOptions = { workDir?: string; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/collection-group-manager.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/collection-group-manager.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/collection-group-manager.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/collection-group-manager.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/commands/restore-command.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/commands/restore-command.ts index e1e51bd20..0207697de 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/commands/restore-command.ts @@ -1,6 +1,7 @@ -import { Application, AppSupervisor } from '@tachybase/server'; -import { Restorer } from '../restorer'; import { DumpRulesGroupType } from '@tachybase/database'; +import { Application, AppSupervisor } from '@tachybase/server'; + +import { Restorer } from '../restorer'; export default function addRestoreCommand(app: Application) { app diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/dumper.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/dumper.ts index 2ba5feb75..ce7518167 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/dumper.ts @@ -1,18 +1,20 @@ +import fs from 'fs'; +import fsPromises from 'fs/promises'; +import path from 'path'; +import * as process from 'process'; +import stream from 'stream'; +import util from 'util'; import { Collection, CollectionGroupManager as DBCollectionGroupManager, DumpRulesGroupType, } from '@tachybase/database'; + import archiver from 'archiver'; import dayjs from 'dayjs'; -import fs from 'fs'; -import fsPromises from 'fs/promises'; import { default as _, default as lodash } from 'lodash'; import mkdirp from 'mkdirp'; -import path from 'path'; -import * as process from 'process'; -import stream from 'stream'; -import util from 'util'; + import { AppMigrator } from './app-migrator'; import { FieldValueWriter } from './field-value-writer'; import { DUMPED_EXTENSION, humanFileSize, sqlAdapter } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/errors/restore-check-error.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/errors/restore-check-error.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/field-value-writer.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/field-value-writer.ts index bf5df6f1a..1f65c8bfd 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/field-value-writer.ts @@ -1,4 +1,5 @@ import { DataTypes, Field } from '@tachybase/database'; + import lodash from 'lodash'; type WriterFunc = (val: any) => any; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/resourcers/backup-files.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/resourcers/backup-files.ts index 4edfbeb4f..d088ff316 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/resourcers/backup-files.ts @@ -1,12 +1,13 @@ -import { Dumper } from '../dumper'; -import { DumpRulesGroupType } from '@tachybase/database'; import fs from 'fs'; -import { koaMulter as multer } from '@tachybase/utils'; +import fsPromises from 'fs/promises'; import os from 'os'; import path from 'path'; -import fsPromises from 'fs/promises'; -import { Restorer } from '../restorer'; import { DEFAULT_PAGE, DEFAULT_PER_PAGE } from '@tachybase/actions'; +import { DumpRulesGroupType } from '@tachybase/database'; +import { koaMulter as multer } from '@tachybase/utils'; + +import { Dumper } from '../dumper'; +import { Restorer } from '../restorer'; export default { name: 'backupFiles', diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/restorer.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/restorer.ts index 94ebcf3ac..4f832549e 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/restorer.ts @@ -1,17 +1,19 @@ -import decompress from 'decompress'; import fs from 'fs'; import fsPromises from 'fs/promises'; import path from 'path'; -import { AppMigrator, AppMigratorOptions } from './app-migrator'; -import { readLines } from './utils'; -import { Application } from '@tachybase/server'; import { DataTypes, DumpRulesGroupType } from '@tachybase/database'; -import lodash, { isPlainObject } from 'lodash'; -import { FieldValueWriter } from './field-value-writer'; +import { Application } from '@tachybase/server'; + import * as Topo from '@hapi/topo'; -import { RestoreCheckError } from './errors/restore-check-error'; +import decompress from 'decompress'; +import lodash, { isPlainObject } from 'lodash'; import semver from 'semver'; +import { AppMigrator, AppMigratorOptions } from './app-migrator'; +import { RestoreCheckError } from './errors/restore-check-error'; +import { FieldValueWriter } from './field-value-writer'; +import { readLines } from './utils'; + type RestoreOptions = { groups: Set; }; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/server.ts index 359386707..43d83a3f6 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/server.ts @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/server'; + import backupFilesResourcer from './resourcers/backup-files'; export default class PluginBackupRestoreServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/server/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/server/utils.ts index 70fc59e84..4552ca340 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts +++ b/packages/plugins/@tachybase/plugin-backup-restore/src/server/utils.ts @@ -1,7 +1,8 @@ -import lodash from 'lodash'; -import { Database } from '@tachybase/database'; import fs from 'fs'; import readline from 'readline'; +import { Database } from '@tachybase/database'; + +import lodash from 'lodash'; export const DUMPED_EXTENSION = 'nbdump'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-backup-restore/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-backup-restore/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/.npmignore b/packages/plugins/@tachybase/plugin-calendar/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/.npmignore rename to packages/plugins/@tachybase/plugin-calendar/.npmignore diff --git a/packages/plugins/@nocobase/plugin-calendar/README.md b/packages/plugins/@tachybase/plugin-calendar/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/README.md rename to packages/plugins/@tachybase/plugin-calendar/README.md diff --git a/packages/plugins/@nocobase/plugin-calendar/README.zh-CN.md b/packages/plugins/@tachybase/plugin-calendar/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-calendar/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-calendar/client.d.ts b/packages/plugins/@tachybase/plugin-calendar/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/client.d.ts rename to packages/plugins/@tachybase/plugin-calendar/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/client.js b/packages/plugins/@tachybase/plugin-calendar/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/client.js rename to packages/plugins/@tachybase/plugin-calendar/client.js diff --git a/packages/plugins/@nocobase/plugin-calendar/package.json b/packages/plugins/@tachybase/plugin-calendar/package.json similarity index 95% rename from packages/plugins/@nocobase/plugin-calendar/package.json rename to packages/plugins/@tachybase/plugin-calendar/package.json index c2cdef371..7c8e29ebc 100644 --- a/packages/plugins/@nocobase/plugin-calendar/package.json +++ b/packages/plugins/@tachybase/plugin-calendar/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-calendar", + "name": "@tachybase/plugin-calendar", "displayName": "Calendar", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides callendar collection template and block for managing date data, typically for date/time related information such as events, appointments, tasks, and so on.", "keywords": [ "Collections", diff --git a/packages/plugins/@nocobase/plugin-calendar/server.d.ts b/packages/plugins/@tachybase/plugin-calendar/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/server.d.ts rename to packages/plugins/@tachybase/plugin-calendar/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/server.js b/packages/plugins/@tachybase/plugin-calendar/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/server.js rename to packages/plugins/@tachybase/plugin-calendar/server.js diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts index 8851c62a1..2899405d0 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts @@ -1,4 +1,5 @@ -import { test, expect } from '@tachybase/test/e2e'; +import { expect, test } from '@tachybase/test/e2e'; + import { emptyPageWithCalendarCollection, oneTableWithCalendarCollection } from './templates'; test.describe('where can be added', () => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/__e2e__/templates.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/__e2e__/templates.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/__tests__/calendar.test.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/__tests__/calendar.test.tsx index af0b96d89..2feb099ef 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/__tests__/calendar.test.tsx @@ -1,6 +1,8 @@ -import { render, screen, waitFor } from '@tachybase/test/client'; -import dayjs from 'dayjs'; import React from 'react'; +import { render, screen, waitFor } from '@tachybase/test/client'; + +import dayjs from 'dayjs'; + import App1 from '../calendar/demos/demo1'; import App2 from '../calendar/demos/demo2'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx index a233c8edb..691adb9ef 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx @@ -1,5 +1,6 @@ -import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@tachybase/client'; import React from 'react'; +import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@tachybase/client'; + export const CalendarDesigner = () => { const { name, title } = useCollection(); const template = useSchemaTemplate(); diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.tsx index 411750560..710ace5bf 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calendar.tsx @@ -1,5 +1,4 @@ -import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -import { RecursionField, Schema, observer, useFieldSchema } from '@tachybase/schema'; +import React, { useCallback, useMemo, useState } from 'react'; import { ActionContextProvider, RecordProvider, @@ -7,13 +6,15 @@ import { useProps, withDynamicSchemaProps, } from '@tachybase/client'; +import { observer, RecursionField, Schema, useFieldSchema } from '@tachybase/schema'; + +import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import { parseExpression } from 'cron-parser'; -import type { Dayjs } from 'dayjs'; -import dayjs from 'dayjs'; +import dayjs, { type Dayjs } from 'dayjs'; import get from 'lodash/get'; -import React, { useCallback, useMemo, useState } from 'react'; -import { Calendar as BigCalendar, View, dayjsLocalizer } from 'react-big-calendar'; +import { Calendar as BigCalendar, dayjsLocalizer, View } from 'react-big-calendar'; import * as dates from 'react-big-calendar/lib/utils/dates'; + import { i18nt, useTranslation } from '../../locale'; import Header from './components/Header'; import { CalendarToolbarContext } from './context'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calender.Settings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calender.Settings.tsx index 896c02ed6..77bc01d11 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Calender.Settings.tsx @@ -1,20 +1,21 @@ -import { useField, useFieldSchema } from '@tachybase/schema'; import React from 'react'; import { + FixedBlockDesignerItem, + removeNullCondition, SchemaSettings, SchemaSettingsBlockTitleItem, - SchemaSettingsSelectItem, - useCollection, - SchemaSettingsSwitchItem, - SchemaSettingsDataScope, - useDesignable, - FixedBlockDesignerItem, SchemaSettingsCascaderItem, - useFormBlockContext, - removeNullCondition, + SchemaSettingsDataScope, + SchemaSettingsSelectItem, + SchemaSettingsSwitchItem, SchemaSettingsTemplate, + useCollection, useCollectionManager_deprecated, + useDesignable, + useFormBlockContext, } from '@tachybase/client'; +import { useField, useFieldSchema } from '@tachybase/schema'; + import { useTranslation } from '../../locale'; import { useCalendarBlockContext } from '../schema-initializer/CalendarBlockProvider'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/DeleteEvent.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/DeleteEvent.tsx index 38b3a97a3..30d1a1690 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/DeleteEvent.tsx @@ -1,12 +1,15 @@ +import React, { useContext, useState } from 'react'; +import { useActionContext, useBlockRequestContext, useFilterByTk, useRecord } from '@tachybase/client'; import { observer } from '@tachybase/schema'; + import { Modal, Radio, Space, Typography } from 'antd'; import dayjs from 'dayjs'; -import React, { useContext, useState } from 'react'; import { createPortal } from 'react-dom'; + +import { useTranslation } from '../../locale'; import { DeleteEventContext } from './Calendar'; import { formatDate } from './utils'; -import { useActionContext, useRecord, useFilterByTk, useBlockRequestContext } from '@tachybase/client'; -import { useTranslation } from '../../locale'; + const { Text } = Typography; export const DeleteEvent = observer( diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Event.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Event.tsx index 3147d9866..7aafa0f96 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Event.tsx @@ -1,5 +1,5 @@ -import { observer } from '@tachybase/schema'; import React from 'react'; +import { observer } from '@tachybase/schema'; export const Event = observer( (props) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Nav.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Nav.tsx index cc8706ff0..6e74a01bf 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Nav.tsx @@ -1,10 +1,12 @@ -import { LeftOutlined, RightOutlined } from '@ant-design/icons'; -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'; -import { CalendarToolbarContext } from './context'; import { useDesignable } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { LeftOutlined, RightOutlined } from '@ant-design/icons'; +import { Button } from 'antd'; +import { Navigate } from 'react-big-calendar/dist/react-big-calendar.esm'; + +import { CalendarToolbarContext } from './context'; export const Nav = observer( () => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Title.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Title.tsx index f4c5a8815..b132a1f33 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Title.tsx @@ -1,9 +1,11 @@ -import { observer } from '@tachybase/schema'; -import { Button } from 'antd'; import React, { useContext, useMemo } from 'react'; +import { useDesignable } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { Button } from 'antd'; + import { CalendarToolbarContext } from './context'; import { getLunarDay } from './utils'; -import { useDesignable } from '@tachybase/client'; export const Title = observer( () => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Today.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Today.tsx index 9efa8fc06..86279c5d3 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/Today.tsx @@ -1,10 +1,12 @@ -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'; -import { CalendarToolbarContext } from './context'; import { useDesignable } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { Button } from 'antd'; +import { Navigate } from 'react-big-calendar/dist/react-big-calendar.esm'; + import { useTranslation } from '../../locale'; +import { CalendarToolbarContext } from './context'; export const Today = observer( (props) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/ViewSelect.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/ViewSelect.tsx index ea1e7e78d..c40deec96 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/ViewSelect.tsx @@ -1,8 +1,10 @@ -import { observer } from '@tachybase/schema'; -import { Select } from 'antd'; import React, { useContext } from 'react'; -import { CalendarToolbarContext } from './context'; import { useDesignable } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { Select } from 'antd'; + +import { CalendarToolbarContext } from './context'; export const ViewSelect = observer( (props) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/components/Header.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/components/Header.tsx index ba0fde7d8..af1cb5de8 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/components/Header.tsx @@ -1,4 +1,5 @@ import React, { useMemo } from 'react'; + import { getLunarDay } from '../utils'; const Header = ({ date, label, drilldownView, onDrillDown, showLunar = false, type, localizer }) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/context.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/context.ts index 877cb54d9..1833244c5 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/context.ts @@ -1,4 +1,5 @@ import { createContext, useContext } from 'react'; + import type { ToolbarProps } from './types'; export const CalendarToolbarContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/collections.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/data.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/data.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/defaultValues.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/defaultValues.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo1.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo1.tsx index 3a6e5c32b..eb6827540 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo1.tsx @@ -1,14 +1,15 @@ /** * title: Calendar */ +import React from 'react'; import { + AntdSchemaComponentProvider, Application, Plugin, - AntdSchemaComponentProvider, SchemaComponent, SchemaComponentProvider, } from '@tachybase/client'; -import React from 'react'; + import defaultValues from './defaultValues'; const schema = { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo2.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo2.tsx index 1ddb670ce..7552400c6 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/demos/demo2.tsx @@ -1,16 +1,18 @@ -import { ISchema } from '@tachybase/schema'; +import React from 'react'; import { AntdSchemaComponentProvider, APIClient, APIClientProvider, Application, BlockSchemaComponentProvider, + ExtendCollectionsProvider, SchemaComponent, SchemaComponentProvider, - ExtendCollectionsProvider, } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; + import MockAdapter from 'axios-mock-adapter'; -import React from 'react'; + import collections from './collections'; import data from './data'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/global.style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/global.style.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.md b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.md rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/index.md diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/index.ts index 85b13414c..147f8cd40 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/index.ts @@ -1,4 +1,5 @@ import { ActionBar } from '@tachybase/client'; + import { Calendar } from './Calendar'; import { CalendarDesigner } from './Calendar.Designer'; import DeleteEvent from './DeleteEvent'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/style.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/types.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/types.d.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/calendar/utils.ts index 7f7a8f6e1..08a0668ab 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/calendar/utils.ts @@ -1,6 +1,7 @@ import dayjs from 'dayjs'; import { get } from 'lodash'; import solarLunar from 'solarlunar-es'; + import { i18nt } from '../../locale'; export const toEvents = (data: any[], fieldNames: any) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/collection-templates/calendar.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/collection-templates/calendar.tsx index be58c103e..c3c89ae3b 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/collection-templates/calendar.tsx @@ -1,4 +1,5 @@ -import { CollectionTemplate, ICollectionTemplate, getConfigurableProperties } from '@tachybase/client'; +import { CollectionTemplate, getConfigurableProperties, ICollectionTemplate } from '@tachybase/client'; + import { generateNTemplate } from '../../locale'; export const calendar: ICollectionTemplate = { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts index 9e5de08c9..de3fd2502 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts @@ -1,4 +1,5 @@ import { useParentRecordCommon } from '@tachybase/client'; + import { useCalendarBlockParams } from './useCalendarBlockParams'; export function useCalendarBlockDecoratorProps(props) { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/index.tsx index 8ede82f29..9393affc0 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { generateNTemplate } from '../locale'; import { CalendarV2 } from './calendar'; import { calendarBlockSettings } from './calendar/Calender.Settings'; @@ -6,9 +7,9 @@ import { CalendarCollectionTemplate } from './collection-templates/calendar'; import { useCalendarBlockDecoratorProps } from './hooks/useCalendarBlockDecoratorProps'; import { CalendarBlockProvider, useCalendarBlockProps } from './schema-initializer/CalendarBlockProvider'; import { + calendarActionInitializers, CalendarActionInitializers_deprecated, CalendarFormActionInitializers, - calendarActionInitializers, deleteEventActionInitializer, } from './schema-initializer/initializers'; import { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx index b41906d80..0b563b24b 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx @@ -1,5 +1,4 @@ -import { ArrayField } from '@tachybase/schema'; -import { useField, useFieldSchema } from '@tachybase/schema'; +import React, { createContext, useContext, useEffect, useMemo } from 'react'; import { BlockProvider, FixedBlockWrapper, @@ -7,8 +6,10 @@ import { useParsedFilter, withDynamicSchemaProps, } from '@tachybase/client'; +import { ArrayField, useField, useFieldSchema } from '@tachybase/schema'; + import _ from 'lodash'; -import React, { createContext, useContext, useEffect, useMemo } from 'react'; + import { useCalendarBlockParams } from '../hooks/useCalendarBlockParams'; export const CalendarBlockContext = createContext({}); diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts index f0f1b449a..1987a31e2 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; + import { generateNTemplate } from '../../locale'; export const createCalendarBlockUISchema = (options: { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx index 11b1c46e7..dd28ab817 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx @@ -1,4 +1,5 @@ import { CompatibleSchemaInitializer, useCollection_deprecated } from '@tachybase/client'; + import { generateNTemplate } from '../../../locale'; /** diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx index 5e179c1de..959103e72 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx @@ -1,4 +1,5 @@ import { SchemaInitializer, SchemaInitializerItemType, useCollection_deprecated } from '@tachybase/client'; + import { generateNTemplate } from '../../../locale'; export const deleteEventActionInitializer: SchemaInitializerItemType = { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/initializers/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx index d037aabf0..66d0118e1 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx @@ -1,6 +1,4 @@ -import { FormOutlined } from '@ant-design/icons'; -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext } from '@tachybase/schema'; +import React, { useContext } from 'react'; import { Collection, CollectionFieldOptions, @@ -13,9 +11,13 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@tachybase/client'; -import React, { useContext } from 'react'; -import { createCalendarBlockUISchema } from '../createCalendarBlockUISchema'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext } from '@tachybase/schema'; + +import { FormOutlined } from '@ant-design/icons'; + import { useTranslation } from '../../../locale'; +import { createCalendarBlockUISchema } from '../createCalendarBlockUISchema'; export const CalendarBlockInitializer = ({ filterCollections, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx index a61435e2c..c8098fe8c 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx @@ -1,22 +1,24 @@ -import { TableOutlined } from '@ant-design/icons'; -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useContext } from 'react'; import { - useSchemaTemplateManager, + FormDialog, + SchemaComponent, + SchemaComponentOptions, + SchemaInitializer, + SchemaInitializerItem, useCollectionManager_deprecated, useGlobalTheme, - SchemaInitializer, - FormDialog, - SchemaComponentOptions, - SchemaComponent, useRecordCollectionDataSourceItems, - useSchemaInitializerItem, useSchemaInitializer, - SchemaInitializerItem, + useSchemaInitializerItem, + useSchemaTemplateManager, } from '@tachybase/client'; -import { createCalendarBlockUISchema } from '../createCalendarBlockUISchema'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext } from '@tachybase/schema'; + +import { TableOutlined } from '@ant-design/icons'; + import { useTranslation } from '../../../locale'; +import { createCalendarBlockUISchema } from '../createCalendarBlockUISchema'; export const RecordAssociationCalendarBlockInitializer = () => { const itemConfig = useSchemaInitializerItem(); diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/client/schema-initializer/items/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/en_US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/en_US.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/es_ES.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/es_ES.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/fr_FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/fr_FR.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/ja_JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/ja_JP.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/ko_KR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/ko_KR.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/pt_BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/pt_BR.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/ru_RU.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/ru_RU.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/tr_TR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/tr_TR.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/uk_UA.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/uk_UA.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-calendar/src/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-calendar/src/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/server/index.ts b/packages/plugins/@tachybase/plugin-calendar/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/server/index.ts rename to packages/plugins/@tachybase/plugin-calendar/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-calendar/src/server/server.ts b/packages/plugins/@tachybase/plugin-calendar/src/server/server.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/server/server.ts rename to packages/plugins/@tachybase/plugin-calendar/src/server/server.ts diff --git a/packages/plugins/@nocobase/plugin-cas/README.md b/packages/plugins/@tachybase/plugin-cas/README.md similarity index 93% rename from packages/plugins/@nocobase/plugin-cas/README.md rename to packages/plugins/@tachybase/plugin-cas/README.md index ec1190624..14a603aab 100644 --- a/packages/plugins/@nocobase/plugin-cas/README.md +++ b/packages/plugins/@tachybase/plugin-cas/README.md @@ -1,4 +1,4 @@ -# @nocobase/plugin-cas +# @tachybase/plugin-cas 提供 CAS 统一登入方式 diff --git a/packages/plugins/@nocobase/plugin-cas/README.zh-CN.md b/packages/plugins/@tachybase/plugin-cas/README.zh-CN.md similarity index 93% rename from packages/plugins/@nocobase/plugin-cas/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-cas/README.zh-CN.md index ec1190624..14a603aab 100644 --- a/packages/plugins/@nocobase/plugin-cas/README.zh-CN.md +++ b/packages/plugins/@tachybase/plugin-cas/README.zh-CN.md @@ -1,4 +1,4 @@ -# @nocobase/plugin-cas +# @tachybase/plugin-cas 提供 CAS 统一登入方式 diff --git a/packages/plugins/@nocobase/plugin-cas/client.d.ts b/packages/plugins/@tachybase/plugin-cas/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/client.d.ts rename to packages/plugins/@tachybase/plugin-cas/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-cas/client.js b/packages/plugins/@tachybase/plugin-cas/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/client.js rename to packages/plugins/@tachybase/plugin-cas/client.js diff --git a/packages/plugins/@nocobase/plugin-cas/package.json b/packages/plugins/@tachybase/plugin-cas/package.json similarity index 89% rename from packages/plugins/@nocobase/plugin-cas/package.json rename to packages/plugins/@tachybase/plugin-cas/package.json index 2ac4a7170..8e1eaea3c 100644 --- a/packages/plugins/@nocobase/plugin-cas/package.json +++ b/packages/plugins/@tachybase/plugin-cas/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-cas", + "name": "@tachybase/plugin-cas", "displayName": "Auth: CAS", - "version": "0.21.33", + "version": "0.21.34", "description": "CAS authentication.", "keywords": [ "Authentication" @@ -16,11 +16,11 @@ "react-router-dom": "6.x" }, "peerDependencies": { - "@nocobase/plugin-auth": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/auth": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", "@tachybase/sdk": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-cas/server.d.ts b/packages/plugins/@tachybase/plugin-cas/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/server.d.ts rename to packages/plugins/@tachybase/plugin-cas/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-cas/server.js b/packages/plugins/@tachybase/plugin-cas/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/server.js rename to packages/plugins/@tachybase/plugin-cas/server.js diff --git a/packages/plugins/@nocobase/plugin-cas/src/client/Options.tsx b/packages/plugins/@tachybase/plugin-cas/src/client/Options.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-cas/src/client/Options.tsx rename to packages/plugins/@tachybase/plugin-cas/src/client/Options.tsx index 975b21c80..fd2d57bba 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/client/Options.tsx +++ b/packages/plugins/@tachybase/plugin-cas/src/client/Options.tsx @@ -1,7 +1,9 @@ -import { SchemaComponent } from '@tachybase/client'; import React from 'react'; +import { SchemaComponent } from '@tachybase/client'; + import { Space } from 'antd'; -import { useAuthTranslation, generateNTemplate } from './locale'; + +import { generateNTemplate, useAuthTranslation } from './locale'; export const Options = () => { const { t } = useAuthTranslation(); diff --git a/packages/plugins/@nocobase/plugin-cas/src/client/SigninPage.tsx b/packages/plugins/@tachybase/plugin-cas/src/client/SigninPage.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-cas/src/client/SigninPage.tsx rename to packages/plugins/@tachybase/plugin-cas/src/client/SigninPage.tsx index e8f3b5b9e..237a70b20 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/client/SigninPage.tsx +++ b/packages/plugins/@tachybase/plugin-cas/src/client/SigninPage.tsx @@ -1,9 +1,10 @@ -import { LoginOutlined } from '@ant-design/icons'; -import { useApp } from '@tachybase/client'; -import { Authenticator } from '@nocobase/plugin-auth/client'; -import { getSubAppName } from '@tachybase/sdk'; -import { Button, Space, message } from 'antd'; import React, { useEffect } from 'react'; +import { useApp } from '@tachybase/client'; +import { Authenticator } from '@tachybase/plugin-auth/client'; +import { getSubAppName } from '@tachybase/sdk'; + +import { LoginOutlined } from '@ant-design/icons'; +import { Button, message, Space } from 'antd'; import { useLocation } from 'react-router-dom'; export const SigninPage = (props: { authenticator: Authenticator }) => { diff --git a/packages/plugins/@nocobase/plugin-cas/src/client/index.tsx b/packages/plugins/@tachybase/plugin-cas/src/client/index.tsx similarity index 88% rename from packages/plugins/@nocobase/plugin-cas/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-cas/src/client/index.tsx index 72a242a6f..8f310829c 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-cas/src/client/index.tsx @@ -1,8 +1,9 @@ import { Plugin } from '@tachybase/client'; -import { SigninPage } from './SigninPage'; -import { Options } from './Options'; +import AuthPlugin from '@tachybase/plugin-auth/client'; + import { authType } from '../constants'; -import AuthPlugin from '@nocobase/plugin-auth/client'; +import { Options } from './Options'; +import { SigninPage } from './SigninPage'; export class SamlPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-cas/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-cas/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-cas/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-cas/src/constants.ts b/packages/plugins/@tachybase/plugin-cas/src/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/constants.ts rename to packages/plugins/@tachybase/plugin-cas/src/constants.ts diff --git a/packages/plugins/@nocobase/plugin-cas/src/index.ts b/packages/plugins/@tachybase/plugin-cas/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/index.ts rename to packages/plugins/@tachybase/plugin-cas/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-cas/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-cas/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-cas/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-cas/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-cas/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-cas/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-cas/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-cas/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-cas/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/actions/login.ts b/packages/plugins/@tachybase/plugin-cas/src/server/actions/login.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-cas/src/server/actions/login.ts rename to packages/plugins/@tachybase/plugin-cas/src/server/actions/login.ts index 98fcf924f..b85ebbf9b 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/server/actions/login.ts +++ b/packages/plugins/@tachybase/plugin-cas/src/server/actions/login.ts @@ -1,4 +1,5 @@ import { Context, Next } from '@tachybase/actions'; + import { CASAuth } from '../auth'; export const login = async (ctx: Context, next: Next) => { diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/actions/service.ts b/packages/plugins/@tachybase/plugin-cas/src/server/actions/service.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-cas/src/server/actions/service.ts rename to packages/plugins/@tachybase/plugin-cas/src/server/actions/service.ts index 76e1ad571..6343e4309 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/server/actions/service.ts +++ b/packages/plugins/@tachybase/plugin-cas/src/server/actions/service.ts @@ -1,5 +1,6 @@ import { Context, Next } from '@tachybase/actions'; import { AppSupervisor } from '@tachybase/server'; + import { CASAuth } from '../auth'; export const service = async (ctx: Context, next: Next) => { diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/auth.ts b/packages/plugins/@tachybase/plugin-cas/src/server/auth.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-cas/src/server/auth.ts rename to packages/plugins/@tachybase/plugin-cas/src/server/auth.ts index 7b328d87d..cf32167fb 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/server/auth.ts +++ b/packages/plugins/@tachybase/plugin-cas/src/server/auth.ts @@ -1,6 +1,7 @@ import { AuthConfig, BaseAuth } from '@tachybase/auth'; -import { AuthModel } from '@nocobase/plugin-auth'; import { Model } from '@tachybase/database'; +import { AuthModel } from '@tachybase/plugin-auth'; + import axios from 'axios'; export class CASAuth extends BaseAuth { diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-cas/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-cas/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/index.ts b/packages/plugins/@tachybase/plugin-cas/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-cas/src/server/index.ts rename to packages/plugins/@tachybase/plugin-cas/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-cas/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-cas/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-cas/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-cas/src/server/plugin.ts index d87034d97..a8ac3662d 100644 --- a/packages/plugins/@nocobase/plugin-cas/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-cas/src/server/plugin.ts @@ -1,8 +1,9 @@ import { InstallOptions, Plugin } from '@tachybase/server'; -import { service } from './actions/service'; + import { authType } from '../constants'; -import { CASAuth } from './auth'; import { login } from './actions/login'; +import { service } from './actions/service'; +import { CASAuth } from './auth'; export class CasPlugin extends Plugin { afterAdd() {} diff --git a/packages/plugins/@nocobase/plugin-china-region/.npmignore b/packages/plugins/@tachybase/plugin-china-region/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/.npmignore rename to packages/plugins/@tachybase/plugin-china-region/.npmignore diff --git a/packages/plugins/@nocobase/plugin-china-region/README.md b/packages/plugins/@tachybase/plugin-china-region/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/README.md rename to packages/plugins/@tachybase/plugin-china-region/README.md diff --git a/packages/plugins/@nocobase/plugin-china-region/README.zh-CN.md b/packages/plugins/@tachybase/plugin-china-region/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-china-region/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-china-region/build.config.ts b/packages/plugins/@tachybase/plugin-china-region/build.config.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-china-region/build.config.ts rename to packages/plugins/@tachybase/plugin-china-region/build.config.ts index 83f8f6f41..358bc29ab 100644 --- a/packages/plugins/@nocobase/plugin-china-region/build.config.ts +++ b/packages/plugins/@tachybase/plugin-china-region/build.config.ts @@ -1,8 +1,7 @@ -import { defineConfig } from '@tachybase/build'; - +import { existsSync } from 'fs'; import fs from 'fs/promises'; import path from 'path'; -import { existsSync } from 'fs'; +import { defineConfig } from '@tachybase/build'; export default defineConfig({ afterBuild: async (log) => { diff --git a/packages/plugins/@nocobase/plugin-china-region/client.d.ts b/packages/plugins/@tachybase/plugin-china-region/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/client.d.ts rename to packages/plugins/@tachybase/plugin-china-region/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-china-region/client.js b/packages/plugins/@tachybase/plugin-china-region/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/client.js rename to packages/plugins/@tachybase/plugin-china-region/client.js diff --git a/packages/plugins/@nocobase/plugin-china-region/package.json b/packages/plugins/@tachybase/plugin-china-region/package.json similarity index 93% rename from packages/plugins/@nocobase/plugin-china-region/package.json rename to packages/plugins/@tachybase/plugin-china-region/package.json index d29d6b7de..32ab048bc 100644 --- a/packages/plugins/@nocobase/plugin-china-region/package.json +++ b/packages/plugins/@tachybase/plugin-china-region/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-china-region", + "name": "@tachybase/plugin-china-region", "displayName": "Administrative divisions of China", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides data and field type for administrative divisions of China.", "keywords": [ "Fields" diff --git a/packages/plugins/@nocobase/plugin-china-region/server.d.ts b/packages/plugins/@tachybase/plugin-china-region/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/server.d.ts rename to packages/plugins/@tachybase/plugin-china-region/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-china-region/server.js b/packages/plugins/@tachybase/plugin-china-region/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/server.js rename to packages/plugins/@tachybase/plugin-china-region/server.js diff --git a/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx b/packages/plugins/@tachybase/plugin-china-region/src/client/ChinaRegionProvider.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx rename to packages/plugins/@tachybase/plugin-china-region/src/client/ChinaRegionProvider.tsx index 06e45db49..8fddba88f 100644 --- a/packages/plugins/@nocobase/plugin-china-region/src/client/ChinaRegionProvider.tsx +++ b/packages/plugins/@tachybase/plugin-china-region/src/client/ChinaRegionProvider.tsx @@ -1,6 +1,5 @@ -import { ArrayField } from '@tachybase/schema'; -import { useField } from '@tachybase/schema'; import { useAPIClient, useRequest } from '@tachybase/client'; +import { ArrayField, useField } from '@tachybase/schema'; export const useChinaRegionDataSource = (options) => { const field = useField(); diff --git a/packages/plugins/@nocobase/plugin-china-region/src/client/index.tsx b/packages/plugins/@tachybase/plugin-china-region/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-china-region/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-china-region/src/client/index.tsx index 5f72dde29..68e8c2835 100644 --- a/packages/plugins/@nocobase/plugin-china-region/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-china-region/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { useChinaRegionDataSource, useChinaRegionLoadData } from './ChinaRegionProvider'; export class ChinaRegionPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-china-region/src/index.ts b/packages/plugins/@tachybase/plugin-china-region/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/src/index.ts rename to packages/plugins/@tachybase/plugin-china-region/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-china-region/src/server/__tests__/action.test.ts b/packages/plugins/@tachybase/plugin-china-region/src/server/__tests__/action.test.ts similarity index 91% rename from packages/plugins/@nocobase/plugin-china-region/src/server/__tests__/action.test.ts rename to packages/plugins/@tachybase/plugin-china-region/src/server/__tests__/action.test.ts index 7083e737a..5d67c1eeb 100644 --- a/packages/plugins/@nocobase/plugin-china-region/src/server/__tests__/action.test.ts +++ b/packages/plugins/@tachybase/plugin-china-region/src/server/__tests__/action.test.ts @@ -1,5 +1,5 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('actions test', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-china-region/src/server/collections/chinaRegions.ts b/packages/plugins/@tachybase/plugin-china-region/src/server/collections/chinaRegions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/src/server/collections/chinaRegions.ts rename to packages/plugins/@tachybase/plugin-china-region/src/server/collections/chinaRegions.ts diff --git a/packages/plugins/@nocobase/plugin-china-region/src/server/index.ts b/packages/plugins/@tachybase/plugin-china-region/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/src/server/index.ts rename to packages/plugins/@tachybase/plugin-china-region/src/server/index.ts index c50efddb9..0d893338d 100644 --- a/packages/plugins/@nocobase/plugin-china-region/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-china-region/src/server/index.ts @@ -1,5 +1,5 @@ -import { Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import { Plugin } from '@tachybase/server'; function getChinaDivisionData(key: string) { try { diff --git a/packages/plugins/@nocobase/plugin-china-region/src/swagger/index.json b/packages/plugins/@tachybase/plugin-china-region/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-china-region/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-china-region/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-client/.npmignore b/packages/plugins/@tachybase/plugin-client/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-client/.npmignore rename to packages/plugins/@tachybase/plugin-client/.npmignore diff --git a/packages/plugins/@nocobase/plugin-client/README.md b/packages/plugins/@tachybase/plugin-client/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-client/README.md rename to packages/plugins/@tachybase/plugin-client/README.md diff --git a/packages/plugins/@nocobase/plugin-client/README.zh-CN.md b/packages/plugins/@tachybase/plugin-client/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-client/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-client/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-client/build.config.ts b/packages/plugins/@tachybase/plugin-client/build.config.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/build.config.ts rename to packages/plugins/@tachybase/plugin-client/build.config.ts diff --git a/packages/plugins/@nocobase/plugin-client/client.d.ts b/packages/plugins/@tachybase/plugin-client/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/client.d.ts rename to packages/plugins/@tachybase/plugin-client/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-client/client.js b/packages/plugins/@tachybase/plugin-client/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-client/client.js rename to packages/plugins/@tachybase/plugin-client/client.js diff --git a/packages/plugins/@nocobase/plugin-client/package.json b/packages/plugins/@tachybase/plugin-client/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-client/package.json rename to packages/plugins/@tachybase/plugin-client/package.json index 84a8b8508..b3ba691bc 100644 --- a/packages/plugins/@nocobase/plugin-client/package.json +++ b/packages/plugins/@tachybase/plugin-client/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-client", + "name": "@tachybase/plugin-client", "displayName": "WEB client", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides a client interface for the NocoBase server", "license": "Apache-2.0", "main": "./dist/server/index.js", diff --git a/packages/plugins/@nocobase/plugin-client/server.d.ts b/packages/plugins/@tachybase/plugin-client/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/server.d.ts rename to packages/plugins/@tachybase/plugin-client/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-client/server.js b/packages/plugins/@tachybase/plugin-client/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-client/server.js rename to packages/plugins/@tachybase/plugin-client/server.js diff --git a/packages/plugins/@nocobase/plugin-client/src/client/index.ts b/packages/plugins/@tachybase/plugin-client/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/client/index.ts rename to packages/plugins/@tachybase/plugin-client/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/index.ts b/packages/plugins/@tachybase/plugin-client/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/index.ts rename to packages/plugins/@tachybase/plugin-client/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts b/packages/plugins/@tachybase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts rename to packages/plugins/@tachybase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts index 042967a2c..e512435c7 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts +++ b/packages/plugins/@tachybase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts @@ -1,4 +1,5 @@ -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import Migration from '../migrations/20231215215247-admin-menu-uid'; describe('nocobase-admin-menu', () => { diff --git a/packages/plugins/@nocobase/plugin-client/src/server/antd.ts b/packages/plugins/@tachybase/plugin-client/src/server/antd.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/antd.ts rename to packages/plugins/@tachybase/plugin-client/src/server/antd.ts index 09b74f978..e20a84b1c 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/antd.ts +++ b/packages/plugins/@tachybase/plugin-client/src/server/antd.ts @@ -1,5 +1,5 @@ -import { requireModule } from '@tachybase/utils'; import { resolve } from 'path'; +import { requireModule } from '@tachybase/utils'; export const getAntdLocale = (lang) => { const lng = lang.replace('-', '_'); diff --git a/packages/plugins/@nocobase/plugin-client/src/server/cron.ts b/packages/plugins/@tachybase/plugin-client/src/server/cron.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/cron.ts rename to packages/plugins/@tachybase/plugin-client/src/server/cron.ts index 95ac4a2a5..bbc349e86 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/cron.ts +++ b/packages/plugins/@tachybase/plugin-client/src/server/cron.ts @@ -1,5 +1,5 @@ -import { requireModule } from '@tachybase/utils'; import { resolve } from 'path'; +import { requireModule } from '@tachybase/utils'; export const getCronLocale = (lang: string) => { const lng = lang.replace('-', '_'); diff --git a/packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts b/packages/plugins/@tachybase/plugin-client/src/server/cronstrue.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts rename to packages/plugins/@tachybase/plugin-client/src/server/cronstrue.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/server/index.ts b/packages/plugins/@tachybase/plugin-client/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/index.ts rename to packages/plugins/@tachybase/plugin-client/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts b/packages/plugins/@tachybase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts rename to packages/plugins/@tachybase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts b/packages/plugins/@tachybase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts rename to packages/plugins/@tachybase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts diff --git a/packages/plugins/@nocobase/plugin-client/src/server/server.ts b/packages/plugins/@tachybase/plugin-client/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-client/src/server/server.ts rename to packages/plugins/@tachybase/plugin-client/src/server/server.ts index d118e1d8f..0a8b11053 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-client/src/server/server.ts @@ -1,5 +1,6 @@ -import { Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import { Plugin } from '@tachybase/server'; + import { getAntdLocale } from './antd'; import { getCronLocale } from './cron'; import { getCronstrueLocale } from './cronstrue'; diff --git a/packages/plugins/@nocobase/plugin-client/src/swagger/index.json b/packages/plugins/@tachybase/plugin-client/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-client/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-client/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-collection-manager/.npmignore b/packages/plugins/@tachybase/plugin-collection-manager/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/.npmignore rename to packages/plugins/@tachybase/plugin-collection-manager/.npmignore diff --git a/packages/plugins/@nocobase/plugin-collection-manager/README.md b/packages/plugins/@tachybase/plugin-collection-manager/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/README.md rename to packages/plugins/@tachybase/plugin-collection-manager/README.md diff --git a/packages/plugins/@nocobase/plugin-collection-manager/README.zh-CN.md b/packages/plugins/@tachybase/plugin-collection-manager/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-collection-manager/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-collection-manager/client.d.ts b/packages/plugins/@tachybase/plugin-collection-manager/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/client.d.ts rename to packages/plugins/@tachybase/plugin-collection-manager/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/client.js b/packages/plugins/@tachybase/plugin-collection-manager/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/client.js rename to packages/plugins/@tachybase/plugin-collection-manager/client.js diff --git a/packages/plugins/@nocobase/plugin-collection-manager/package.json b/packages/plugins/@tachybase/plugin-collection-manager/package.json similarity index 89% rename from packages/plugins/@nocobase/plugin-collection-manager/package.json rename to packages/plugins/@tachybase/plugin-collection-manager/package.json index 0c6102fd5..17bc46ad4 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/package.json +++ b/packages/plugins/@tachybase/plugin-collection-manager/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-collection-manager", + "name": "@tachybase/plugin-collection-manager", "displayName": "Data source: Main", - "version": "0.21.33", + "version": "0.21.34", "description": "NocoBase main database, supports relational databases such as MySQL, PostgreSQL, SQLite and so on.", "keywords": [ "Data sources" @@ -18,10 +18,10 @@ "toposort": "^2.0.2" }, "peerDependencies": { - "@nocobase/plugin-error-handler": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", "@tachybase/utils": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-collection-manager/server.d.ts b/packages/plugins/@tachybase/plugin-collection-manager/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/server.d.ts rename to packages/plugins/@tachybase/plugin-collection-manager/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/server.js b/packages/plugins/@tachybase/plugin-collection-manager/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/server.js rename to packages/plugins/@tachybase/plugin-collection-manager/server.js diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts index b6365da20..b012ff10d 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/calendar.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts index 40fbfd891..551224b94 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/expression.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts index 9d19d5263..d19e45b8b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/file.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts index 6f62a69a1..d2c2b22d1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/general.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage, FieldInterface } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts index 60f6af852..7b84fba8e 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/sql.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts index c765175b1..036f4dd55 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/collection-template/tree.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { uid } from '@tachybase/utils'; + import { CollectionManagerPage } from '../utils'; test.describe('create collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts index 73a11c612..990d72a82 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/attachment/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndMediaFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts index 3302c2aec..3314925ea 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts index 195e84b29..fc6f4b0e5 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts index 7289f13bc..a05041134 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts index d328741b2..19f740d19 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts index 147deb5ab..47ab369b4 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/collection/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts index 1ad087aa3..10e0e03d6 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { clickDeleteAndOk, createColumnItem, diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts index 4296362d9..dc32315b3 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts index 9a968577f..07701b060 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts index da729fd1f..2856ca9d4 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/datetime/schemaSettings.test.ts @@ -1,11 +1,13 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields, + Page, test, } from '@tachybase/test/e2e'; + import dayjs from 'dayjs'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts index 21171cd07..8bb9c9287 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/email/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { @@ -54,16 +55,16 @@ test.describe('form item & create form', () => { .hover(); })(page, 'email'), supportVariables: ['Constant', 'Current user', 'Date variables', 'Current form'], - constantValue: 'test@nocobase.com', + constantValue: 'test@tachybase.com', variableValue: ['Current user', 'Email'], expectConstantValue: () => expect( page.getByLabel('block-item-CollectionField-general-form-general.email-email').getByRole('textbox'), - ).toHaveValue('test@nocobase.com'), + ).toHaveValue('test@tachybase.com'), expectVariableValue: () => expect( page.getByLabel('block-item-CollectionField-general-form-general.email-email').getByRole('textbox'), - ).toHaveValue('admin@nocobase.com'), + ).toHaveValue('admin@tachybase.com'), }); }); @@ -95,7 +96,7 @@ test.describe('form item & create form', () => { await page .getByLabel('block-item-CollectionField-general-form-general.email-email') .getByRole('textbox') - .fill('admin@nocobase.com'); + .fill('admin@tachybase.com'); }, expectReadonly: async () => { // 输入框应该被禁用 @@ -109,7 +110,7 @@ test.describe('form item & create form', () => { page.getByLabel('block-item-CollectionField-general-form-general.email-email').getByRole('textbox'), ).not.toBeVisible(); await expect(page.getByLabel('block-item-CollectionField-general-form-general.email-email')).toHaveText( - 'email:admin@nocobase.com', + 'email:admin@tachybase.com', ); }, }); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts index 0809f1416..30cc199a5 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/formula/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts index 0951c0ce0..a4e913a37 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts index 405624da5..9686bd2e8 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/icon/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts index 287aa6732..5d04f3577 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/id/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts index f9851b09f..627e30678 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/integer/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts index e03e591fe..88e0d6176 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/json/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts index 7b679a59a..e8134876b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts @@ -3,6 +3,7 @@ import { oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts index 19b72315d..3ccd11481 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts index 7ab7ae86f..7c2f83b39 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/longText/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { @@ -58,7 +59,7 @@ test.describe('form item & create form', () => { })(page, 'longText'), supportVariables: ['Constant', 'Current user', 'Date variables', 'Current form'], constantValue: 'test long text', - variableValue: ['Current user', 'Email'], // 值为 admin@nocobase.com + variableValue: ['Current user', 'Email'], // 值为 admin@tachybase.com expectConstantValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.longText-longText').getByRole('textbox'), @@ -67,7 +68,7 @@ test.describe('form item & create form', () => { expectVariableValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.longText-longText').getByRole('textbox'), - ).toHaveValue('admin@nocobase.com'); + ).toHaveValue('admin@tachybase.com'); }, }); }); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts index fb96c3312..079c4cd5d 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToMany/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts index c68f9b364..adabc72a1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; import { T3377 } from './templatesOfBug'; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts index bf1db3023..129119d62 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts @@ -1,4 +1,4 @@ -import { PageConfig, generalWithAssociation } from '@tachybase/test/e2e'; +import { generalWithAssociation, PageConfig } from '@tachybase/test/e2e'; export const T3377: PageConfig = { collections: generalWithAssociation, diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts index 4cd9ce436..566a2b669 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/markdown/schemaSettings.test.ts @@ -4,6 +4,7 @@ import { oneTableBlockWithAddNewAndViewAndEditAndMediaFields, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts index b1e676638..01e881462 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts index 8c81f1712..38677f2ff 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/number/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts index 386590b2f..dcff85dab 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts index de92aef22..ef4326138 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/password/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { @@ -56,7 +57,7 @@ test.describe('form item & create form', () => { })(page, 'password'), supportVariables: ['Constant', 'Current user', 'Date variables', 'Current form'], constantValue: 'test112233password', - variableValue: ['Current user', 'Email'], // 值为 admin@nocobase.com + variableValue: ['Current user', 'Email'], // 值为 admin@tachybase.com expectConstantValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.password-password').getByRole('textbox'), @@ -65,7 +66,7 @@ test.describe('form item & create form', () => { expectVariableValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.password-password').getByRole('textbox'), - ).toHaveValue('admin@nocobase.com'); + ).toHaveValue('admin@tachybase.com'); }, }); }); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts index 077e76785..bd1efa127 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/percent/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts index c43d482f0..2e5ed924d 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/phone/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts index db646883b..0219d38c9 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts index 329966842..430b1b087 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/richText/schemaSettings.test.ts @@ -4,6 +4,7 @@ import { oneTableBlockWithAddNewAndViewAndEditAndMediaFields, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts index f66ab6c2b..1ce897037 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/sequence/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts index 869ac9c1a..90160c981 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts @@ -1,11 +1,12 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern, testSetValidationRules } from '../../utils'; test.describe('form item & create form', () => { @@ -54,7 +55,7 @@ test.describe('form item & create form', () => { }, supportVariables: ['Constant', 'Current user', 'Date variables', 'Current form'], constantValue: 'test single line text', - variableValue: ['Current user', 'Email'], // 值为 admin@nocobase.com + variableValue: ['Current user', 'Email'], // 值为 admin@tachybase.com expectConstantValue: async () => { await expect( page @@ -67,7 +68,7 @@ test.describe('form item & create form', () => { page .getByLabel('block-item-CollectionField-general-form-general.singleLineText-singleLineText') .getByRole('textbox'), - ).toHaveValue('admin@nocobase.com'); + ).toHaveValue('admin@tachybase.com'); }, }); }); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts index 1f0f8d067..3ca3cdeb7 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndChoicesFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts index 3a17ec6f9..41f5f54ef 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts index 30514f734..f1a091ab3 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/time/schemaSettings.test.ts @@ -1,11 +1,13 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields, + Page, test, } from '@tachybase/test/e2e'; + import dayjs from 'dayjs'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaInitializer.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaInitializer.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaInitializer.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaInitializer.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts index cbceb323e..773491950 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/fields/url/schemaSettings.test.ts @@ -1,10 +1,11 @@ import { - Page, expect, expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, + Page, test, } from '@tachybase/test/e2e'; + import { createColumnItem, showSettingsMenu, testDefaultValue, testPattern } from '../../utils'; test.describe('form item & create form', () => { @@ -55,7 +56,7 @@ test.describe('form item & create form', () => { })(page, 'url'), supportVariables: ['Constant', 'Current user', 'Date variables', 'Current form'], constantValue: 'https://nocobase.com', - variableValue: ['Current user', 'Email'], // 值为 admin@nocobase.com + variableValue: ['Current user', 'Email'], // 值为 admin@tachybase.com expectConstantValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.url-url').getByRole('textbox'), @@ -64,7 +65,7 @@ test.describe('form item & create form', () => { expectVariableValue: async () => { await expect( page.getByLabel('block-item-CollectionField-general-form-general.url-url').getByRole('textbox'), - ).toHaveValue('admin@nocobase.com'); + ).toHaveValue('admin@tachybase.com'); }, }); }); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/utils.ts index 1c5a42ea8..bcc27aa30 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/utils.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/client/__e2e__/utils.ts @@ -1,4 +1,4 @@ -import { Page, expect } from '@tachybase/test/e2e'; +import { expect, Page } from '@tachybase/test/e2e'; export async function showSettingsMenu(page: Page, fieldName: string) { await page.getByRole('columnheader', { name: fieldName, exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/client/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/action.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/action.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/action.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/action.test.ts index 192fa3cbc..40cb348e1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/action.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/action.test.ts @@ -1,5 +1,6 @@ import { Database } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { createApp } from '.'; describe('action test', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts index 4aa20279c..7d2e5f31a 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/associations/reference-integerity-check.test.ts @@ -1,5 +1,5 @@ import Database from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('reference integrity check', () => { let db: Database; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts index 825d01667..742de72ea 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/beforeInitOptions.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '.'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts index 8d8173adb..561ddcd8b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-categories.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from './index'; describe('Collection categories', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts index 477ddf8c0..83d66722b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collection-without-id-primary-field.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from './index'; describe.skipIf(process.env['DB_DIALECT'] === 'sqlite')('collection without id primary key', function () { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts index ffb79be46..97b196e43 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/collections.repository.test.ts @@ -1,5 +1,6 @@ -import Database, { Collection as DBCollection, CollectionGroupManager, HasManyRepository } from '@tachybase/database'; +import Database, { CollectionGroupManager, Collection as DBCollection, HasManyRepository } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '.'; import CollectionManagerPlugin, { CollectionRepository } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts index a350798d2..ecbe0454b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/default-value.test.ts @@ -1,6 +1,7 @@ -import { MockServer } from '@tachybase/test'; -import { createApp } from '..'; import { Collection } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + +import { createApp } from '..'; describe('field defaultValue', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts index e8d6e50ed..66079aa63 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/field-options/indexes.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('field indexes', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts index f2d2bfa94..1efb7d58c 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields.repository.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection, StringFieldOptions } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '.'; describe('recreate field', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts index d01addc15..dd9e6515d 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongs-to-many.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; describe('belongsToMany', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts index 2a773a4b5..b6d81016e 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/belongsTo.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; import { CollectionRepository } from '../../index'; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts index 0cdf7c643..c5df4f1e1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/destroy.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; describe('destroy', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts index 81ca26977..b9ed4e523 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasMany.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; describe('hasMany field options', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts index c080f47a7..53a4a2401 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/hasOne.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; describe('hasOne field options', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts index 71b5eb3c5..f35cf3f0b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/reverseField.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('reverseField options', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts index 25d64d451..e328f09e4 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/fields/uuid.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '..'; describe('uuid', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts index cd4bc7fe1..a36b34464 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/belongs-to-many.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts index f5686ade1..7bd475469 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/collections.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts index 3935ade2d..bcda1bfc7 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/find.test.ts @@ -1,5 +1,6 @@ import { Database } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { createApp } from '../index'; describe('find with association', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts index 91e41ca44..d2e0ab1d8 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/has-many.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '../index'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts index 5cd25090c..99cdf50d8 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/inherited-collection.test.ts @@ -1,4 +1,5 @@ import { MockServer, pgOnly } from '@tachybase/test'; + import { createApp } from '..'; pgOnly()('Inherited Collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts index b2f4e835c..1859b70b3 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/recreate.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '../index'; describe('recreate field', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts index 654c40b38..db76cedab 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/tree.test.ts @@ -1,5 +1,6 @@ -import { MockServer } from '@tachybase/test'; import { Database } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + import { createApp } from '../index'; describe('tree', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts index c61e2ae8a..f1d2a8894 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/http-api/view-collection.test.ts @@ -1,6 +1,7 @@ import { Database, DataTypes, Field, Repository } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; import { uid } from '@tachybase/utils'; + import { createApp } from '../index'; describe('view collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts index 7af7aa77d..a41d52586 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inherited-collection.test.ts @@ -6,6 +6,7 @@ import Database, { } from '@tachybase/database'; import Application from '@tachybase/server'; import { pgOnly } from '@tachybase/test'; + import { createApp } from '..'; pgOnly()('Inherited Collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts index eff8282a6..793e37663 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts @@ -1,8 +1,9 @@ import Database, { Repository } from '@tachybase/database'; import Application from '@tachybase/server'; -import { createApp } from '..'; import { pgOnly } from '@tachybase/test'; +import { createApp } from '..'; + pgOnly()('Inherited Collection with schema options', () => { let db: Database; let app: Application; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts index 71ea51f1a..d1b352cf7 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts @@ -1,7 +1,7 @@ import { Database, MigrationContext } from '@tachybase/database'; -import UpdateCollectionsHiddenMigration from '../../migrations/20221104151410-update-collections-hidden'; - import { MockServer } from '@tachybase/test'; + +import UpdateCollectionsHiddenMigration from '../../migrations/20221104151410-update-collections-hidden'; import { createApp } from '../index'; describe('migration 20221104151410-update-collections-hidden test', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts index 3521f20f5..0edf4c596 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts @@ -1,6 +1,7 @@ import { Database, MigrationContext } from '@tachybase/database'; import { Plugin } from '@tachybase/server'; import { MockServer } from '@tachybase/test'; + import Migrator from '../../migrations/20230225111112-drop-ui-schema-relation'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts index 35142c21e..bf79cc64a 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/set-collection-schema.test.ts @@ -1,5 +1,6 @@ import { Database, MigrationContext } from '@tachybase/database'; import { MockServer, pgOnly } from '@tachybase/test'; + import Migrator from '../../migrations/20230918024546-set-collection-schema'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts index 9cc2e3e0e..23d614a24 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/migrations/update-id-to-bigint.test.ts @@ -1,7 +1,9 @@ import { Database, MigrationContext } from '@tachybase/database'; -import lodash from 'lodash'; -import Migrator from '../../migrations/20221121111113-update-id-to-bigint'; import { MockServer } from '@tachybase/test'; + +import lodash from 'lodash'; + +import Migrator from '../../migrations/20221121111113-update-id-to-bigint'; import { createApp } from '../index'; const excludeSqlite = () => (process.env.DB_DIALECT != 'sqlite' ? describe.skip : describe.skip); diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts index 79472ef85..c45990cb3 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/primary-key.test.ts @@ -1,5 +1,6 @@ import { Database } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { createApp } from './index'; describe('primary key test', function () { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts index 9a67b82c9..a3a045c78 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/reference-integerity.test.ts @@ -1,5 +1,6 @@ import Database from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from './index'; describe('reference integrity check', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts index e42d64226..517383409 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/remove-collection.test.ts @@ -1,5 +1,6 @@ import Database, { Collection as DBCollection } from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '.'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts index 3ed7a5564..1bc1ba11d 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.fields.test.ts @@ -1,4 +1,5 @@ import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('collections.fields', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts index aa2734134..21b883f71 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/resources/collections.test.ts @@ -1,5 +1,6 @@ import { HasManyRepository } from '@tachybase/database'; import { MockServer } from '@tachybase/test'; + import { createApp } from '..'; describe('collections', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/sync.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/sync.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/sync.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/sync.test.ts index ed7f11334..7534ed5ba 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/sync.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/sync.test.ts @@ -1,5 +1,6 @@ import Database from '@tachybase/database'; import Application from '@tachybase/server'; + import { createApp } from '.'; describe('sync collection', () => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/through.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/through.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/through.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/through.test.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts index 206496853..cdd3cf933 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/__tests__/view/view-collection.test.ts @@ -1,6 +1,7 @@ import Database, { Repository, ViewCollection, ViewFieldInference } from '@tachybase/database'; import Application from '@tachybase/server'; import { uid } from '@tachybase/utils'; + import { createApp } from '../index'; describe('view collection', function () { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/collectionCategories.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/collectionCategories.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/collectionCategories.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/collectionCategories.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/collections.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/collections.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/collections.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/fields.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/fields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/collections/fields.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/collections/fields.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterCreateForForeignKeyField.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterCreateForForeignKeyField.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterCreateForForeignKeyField.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterCreateForForeignKeyField.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterCreateForReverseField.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterCreateForReverseField.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterCreateForReverseField.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterCreateForReverseField.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterDestroyForForeignKeyField.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterDestroyForForeignKeyField.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/afterDestroyForForeignKeyField.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/afterDestroyForForeignKeyField.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForChildrenCollection.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForChildrenCollection.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForChildrenCollection.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForChildrenCollection.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForReverseField.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForReverseField.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForReverseField.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForReverseField.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForValidateField.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForValidateField.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForValidateField.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForValidateField.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForViewCollection.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForViewCollection.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeCreateForViewCollection.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeCreateForViewCollection.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeDestroyForeignKey.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeDestroyForeignKey.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeDestroyForeignKey.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeDestroyForeignKey.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts index fe9cc71c5..9f38908a4 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/beforeInitOptions.ts @@ -1,5 +1,6 @@ import Database, { Model } from '@tachybase/database'; import { uid } from '@tachybase/utils'; + import { Utils } from 'sequelize'; const setTargetKey = (db: Database, model: Model) => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/hooks/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20220613103214-alert-sub-table.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20220613103214-alert-sub-table.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20220613103214-alert-sub-table.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20220613103214-alert-sub-table.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20220704225714-drop-foreign-keys.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20220704225714-drop-foreign-keys.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20220704225714-drop-foreign-keys.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20220704225714-drop-foreign-keys.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts index 56c42bd07..7747db6b2 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221101111110-update-foreign-fields.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { afterCreateForForeignKeyField } from '../hooks/afterCreateForForeignKeyField'; export default class DropForeignKeysMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221104151410-update-collections-hidden.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221104151410-update-collections-hidden.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221104151410-update-collections-hidden.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221104151410-update-collections-hidden.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221121111110-update-fk-type.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221121111110-update-fk-type.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221121111110-update-fk-type.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221121111110-update-fk-type.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221121111113-update-id-to-bigint.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221121111113-update-id-to-bigint.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221121111113-update-id-to-bigint.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221121111113-update-id-to-bigint.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221221103220-timestamps.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221221103220-timestamps.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20221221103220-timestamps.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20221221103220-timestamps.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts index 0d5f540a9..08d72e891 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts @@ -1,5 +1,6 @@ import { Collection } from '@tachybase/database'; import { Migration } from '@tachybase/server'; + import { FieldModel } from '../models'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts index 4f7f2eb2e..a9f02c53c 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230509111114-alert-ui-schema.ts @@ -1,5 +1,6 @@ import { Collection } from '@tachybase/database'; import { Migration } from '@tachybase/server'; + import { FieldModel } from '../models'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts index d121fcf6f..4205a594e 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230623145414-number-step.ts @@ -1,8 +1,10 @@ import { Collection } from '@tachybase/database'; import { Migration } from '@tachybase/server'; -import { FieldModel } from '../models'; + import _ from 'lodash'; +import { FieldModel } from '../models'; + export default class extends Migration { appVersion = '<0.10.0-alpha.3'; async up() { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts index c64380044..660a5f0fe 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230704222935-tableoid.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import _ from 'lodash'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230918024546-set-collection-schema.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230918024546-set-collection-schema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230918024546-set-collection-schema.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20230918024546-set-collection-schema.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20240220153103-install-main-datasource.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20240220153103-install-main-datasource.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20240220153103-install-main-datasource.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/migrations/20240220153103-install-main-datasource.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/models/collection.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/models/collection.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/models/collection.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/models/collection.ts index 228399160..3810a595b 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/models/collection.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/models/collection.ts @@ -1,6 +1,8 @@ import Database, { Collection, MagicAttributeModel, SyncOptions, Transactionable } from '@tachybase/database'; + import lodash from 'lodash'; import { QueryInterfaceDropTableOptions } from 'sequelize'; + import { FieldModel } from './field'; interface LoadOptions extends Transactionable { @@ -31,7 +33,7 @@ export class CollectionModel extends MagicAttributeModel { let collection: Collection; const collectionOptions = { - origin: '@nocobase/plugin-collection-manager', + origin: '@tachybase/plugin-collection-manager', ...this.get(), fields: [], loadedFromCollectionManager: true, diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/models/field.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/models/field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/models/field.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/models/field.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/models/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/models/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/models/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/models/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/repositories/collection-repository.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/repositories/collection-repository.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/repositories/collection-repository.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/repositories/collection-repository.ts index 5a45965fc..b1ed465d1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/repositories/collection-repository.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/repositories/collection-repository.ts @@ -1,7 +1,9 @@ import { Repository } from '@tachybase/database'; import { Application } from '@tachybase/server'; import { CollectionsGraph } from '@tachybase/utils'; + import lodash from 'lodash'; + import { CollectionModel } from '../models/collection'; interface LoadOptions { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/repositories/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/repositories/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/repositories/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/repositories/index.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/collections.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/collections.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/collections.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/sql.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/sql.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/sql.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/sql.ts index 3e84d27a4..626f72f3c 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/sql.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/sql.ts @@ -1,5 +1,6 @@ import { Context, Next } from '@tachybase/actions'; -import { SQLModel, SqlCollection } from '@tachybase/database'; +import { SqlCollection, SQLModel } from '@tachybase/database'; + import { CollectionModel } from '../models'; const updateCollection = async (ctx: Context, transaction: any) => { diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/views.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/views.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/resourcers/views.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/resourcers/views.ts diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/server.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-collection-manager/src/server/server.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/server/server.ts index cd17c1e1e..b33c8f0a1 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-collection-manager/src/server/server.ts @@ -1,10 +1,12 @@ -import { Filter, InheritedCollection, UniqueConstraintError } from '@tachybase/database'; -import PluginErrorHandler from '@nocobase/plugin-error-handler'; -import { Plugin } from '@tachybase/server'; -import { Mutex } from 'async-mutex'; -import lodash from 'lodash'; import path from 'path'; import * as process from 'process'; +import { Filter, InheritedCollection, UniqueConstraintError } from '@tachybase/database'; +import PluginErrorHandler from '@tachybase/plugin-error-handler'; +import { Plugin } from '@tachybase/server'; + +import { Mutex } from 'async-mutex'; +import lodash from 'lodash'; + import { CollectionRepository } from '.'; import { afterCreateForForeignKeyField, diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-collection-manager/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-collection-manager/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-collection-manager/src/swagger/index.ts diff --git a/packages/plugins/@tachybase/plugin-comments/package.json b/packages/plugins/@tachybase/plugin-comments/package.json index 3d4c81cec..066d9601c 100644 --- a/packages/plugins/@tachybase/plugin-comments/package.json +++ b/packages/plugins/@tachybase/plugin-comments/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/plugin-comments", - "version": "0.21.33", + "version": "0.21.34", "main": "dist/server/index.js", "dependencies": {}, "devDependencies": { diff --git a/packages/plugins/@nocobase/plugin-custom-request/.npmignore b/packages/plugins/@tachybase/plugin-custom-request/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/.npmignore rename to packages/plugins/@tachybase/plugin-custom-request/.npmignore diff --git a/packages/plugins/@nocobase/plugin-custom-request/client.d.ts b/packages/plugins/@tachybase/plugin-custom-request/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/client.d.ts rename to packages/plugins/@tachybase/plugin-custom-request/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/client.js b/packages/plugins/@tachybase/plugin-custom-request/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/client.js rename to packages/plugins/@tachybase/plugin-custom-request/client.js diff --git a/packages/plugins/@nocobase/plugin-custom-request/package.json b/packages/plugins/@tachybase/plugin-custom-request/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-custom-request/package.json rename to packages/plugins/@tachybase/plugin-custom-request/package.json index e06600396..f11d3e51e 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/package.json +++ b/packages/plugins/@tachybase/plugin-custom-request/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-custom-request", + "name": "@tachybase/plugin-custom-request", "displayName": "Action: Custom request", - "version": "0.21.33", + "version": "0.21.34", "description": "Sending a request to any HTTP service supports sending context data to the target service.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-custom-request/server.d.ts b/packages/plugins/@tachybase/plugin-custom-request/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/server.d.ts rename to packages/plugins/@tachybase/plugin-custom-request/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/server.js b/packages/plugins/@tachybase/plugin-custom-request/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/server.js rename to packages/plugins/@tachybase/plugin-custom-request/server.js diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts similarity index 94% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts index 2a1c07fa4..2ad02d07d 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/__e2e__/schemaSettings.test.ts @@ -1,4 +1,4 @@ -import { test, expect, oneEmptyTable } from '@tachybase/test/e2e'; +import { expect, oneEmptyTable, test } from '@tachybase/test/e2e'; test('edit button', async ({ page, mockPage, mockRecord }) => { await mockPage(oneEmptyTable).goto(); diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx b/packages/plugins/@tachybase/plugin-custom-request/src/client/components/CustomRequestAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx rename to packages/plugins/@tachybase/plugin-custom-request/src/client/components/CustomRequestAction.tsx index 9b042cb68..682db9c6d 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestAction.tsx +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/components/CustomRequestAction.tsx @@ -1,6 +1,7 @@ -import { Action, useAPIClient, useRequest } from '@tachybase/client'; import React from 'react'; +import { Action, useAPIClient, useRequest } from '@tachybase/client'; 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/@tachybase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx rename to packages/plugins/@tachybase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx index a889069cb..dc29d2d40 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/components/CustomRequestActionDesigner.tsx @@ -1,15 +1,17 @@ -import { ArrayItems } from '@tachybase/components'; -import { useFieldSchema } from '@tachybase/schema'; +import React from 'react'; import { Action, + actionSettingsItems, SchemaSettings, SchemaSettingsActionModalItem, - actionSettingsItems, useCollection_deprecated, useRequest, } from '@tachybase/client'; +import { ArrayItems } from '@tachybase/components'; +import { useFieldSchema } from '@tachybase/schema'; + import { App } from 'antd'; -import React from 'react'; + import { listByCurrentRoleUrl } from '../constants'; import { useCustomRequestVariableOptions, useGetCustomRequest } from '../hooks'; import { useCustomRequestsResource } from '../hooks/useCustomRequestsResource'; diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/components/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/components/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/components/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/components/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/constants.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/constants.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/constants.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts index 01782e973..81d4719fd 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts @@ -1,5 +1,6 @@ -import { useCollection_deprecated, useCollectionFilterOptions, useCompile } from '@tachybase/client'; import { useMemo } from 'react'; +import { useCollection_deprecated, useCollectionFilterOptions, useCompile } from '@tachybase/client'; + import { useTranslation } from '../locale'; export const useCustomRequestVariableOptions = () => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts index 864b95892..3a326f24f 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomRequestsResource.ts @@ -1,4 +1,5 @@ import { useAPIClient } from '@tachybase/client'; + export type { IResource } from '@tachybase/sdk'; export const useCustomRequestsResource = () => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts index 92ef3b9fd..38427ad84 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts @@ -1,15 +1,16 @@ -import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { TableFieldResource, - useAPIClient, useActionContext, + useAPIClient, useBlockRequestContext, useCollection_deprecated, useCompile, useRecord, } from '@tachybase/client'; -import { App } from 'antd'; +import { useField, useFieldSchema, useForm } from '@tachybase/schema'; import { isURL } from '@tachybase/utils/client'; + +import { App } from 'antd'; import { useNavigate } from 'react-router-dom'; export const useCustomizeRequestActionProps = () => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts index 10ae5eb02..d402d62aa 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/hooks/useGetCustomRequest.ts @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@tachybase/schema'; import { useRequest } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; export const useGetCustomRequest = () => { const fieldSchema = useFieldSchema(); diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/index.tsx b/packages/plugins/@tachybase/plugin-custom-request/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-custom-request/src/client/index.tsx index 451d8bfa0..032d60d78 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/index.tsx @@ -1,10 +1,11 @@ -import { Plugin, SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { Plugin, SchemaComponentOptions } from '@tachybase/client'; + import { CustomRequestAction } from './components'; import { customRequestActionSettings } from './components/CustomRequestActionDesigner'; import { CustomRequestInitializer } from './initializer'; -import { customizeCustomRequestActionSettings } from './schemaSettings'; import { CustomRequestConfigurationFieldsSchema } from './schemas'; +import { customizeCustomRequestActionSettings } from './schemaSettings'; const CustomRequestProvider: React.FC = (props) => { return ( diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx b/packages/plugins/@tachybase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx rename to packages/plugins/@tachybase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx index fe3bd5ffe..b33f00494 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/initializer/CustomRequestInitializer.tsx @@ -1,6 +1,7 @@ -import { uid } from '@tachybase/schema'; -import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; import React from 'react'; +import { BlockInitializer, useSchemaInitializerItem } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + import { useCustomRequestsResource } from '../hooks/useCustomRequestsResource'; export const CustomRequestInitializer: React.FC = (props) => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/initializer/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/initializer/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/initializer/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/locale.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/locale.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/locale.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/locale.ts index d49b60517..73ec02bad 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/locale.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/locale.ts @@ -1,4 +1,5 @@ import { i18n } from '@tachybase/client'; + import { useTranslation as useT } from 'react-i18next'; export const NAMESPACE = 'custom-request'; diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/schemaSettings.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/schemaSettings.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/schemaSettings.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/schemaSettings.ts index b47d0d8c6..64b659788 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/client/schemaSettings.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/client/schemaSettings.ts @@ -8,6 +8,7 @@ import { useCollection, useSchemaToolbar, } from '@tachybase/client'; + import { CustomRequestACL, CustomRequestSettingsItem } from './components/CustomRequestActionDesigner'; export const customizeCustomRequestActionSettings = new SchemaSettings({ diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/CustomRequestACL.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/CustomRequestACL.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/CustomRequestACL.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/CustomRequestACL.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/client/schemas/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/client/schemas/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-custom-request/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-custom-request/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-custom-request/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-custom-request/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/__tests__/__snapshots__/actions.test.ts.snap b/packages/plugins/@tachybase/plugin-custom-request/src/server/__tests__/__snapshots__/actions.test.ts.snap similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/__tests__/__snapshots__/actions.test.ts.snap rename to packages/plugins/@tachybase/plugin-custom-request/src/server/__tests__/__snapshots__/actions.test.ts.snap diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/__tests__/actions.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/__tests__/actions.test.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/actions/listByCurrentRole.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/actions/listByCurrentRole.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/actions/listByCurrentRole.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/actions/listByCurrentRole.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/actions/send.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/actions/send.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/actions/send.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/actions/send.ts index 1f9c20cf6..a9317d793 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/server/actions/send.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/server/actions/send.ts @@ -1,8 +1,9 @@ import { Context, Next } from '@tachybase/actions'; +import { appendArrayColumn } from '@tachybase/evaluators'; import { parse } from '@tachybase/utils'; -import { appendArrayColumn } from '@tachybase/evaluators'; import axios from 'axios'; + import CustomRequestPlugin from '../plugin'; const getHeaders = (headers: Record) => { diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-custom-request/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-custom-request/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/collections/customRequest.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/collections/customRequest.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/collections/customRequest.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/collections/customRequest.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/collections/customRequestsRoles.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/collections/customRequestsRoles.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/collections/customRequestsRoles.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/collections/customRequestsRoles.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/index.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/index.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-custom-request/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-custom-request/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-custom-request/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-custom-request/src/server/plugin.ts index 693eaa86f..e27d490e2 100644 --- a/packages/plugins/@nocobase/plugin-custom-request/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-custom-request/src/server/plugin.ts @@ -1,6 +1,7 @@ +import { resolve } from 'path'; import { Logger, LoggerOptions } from '@tachybase/logger'; import { InstallOptions, Plugin } from '@tachybase/server'; -import { resolve } from 'path'; + import { listByCurrentRole } from './actions/listByCurrentRole'; import { send } from './actions/send'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/.npmignore b/packages/plugins/@tachybase/plugin-data-source-manager/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/.npmignore rename to packages/plugins/@tachybase/plugin-data-source-manager/.npmignore diff --git a/packages/plugins/@tachybase/plugin-data-source-manager/README.md b/packages/plugins/@tachybase/plugin-data-source-manager/README.md new file mode 100644 index 000000000..7c550cbdc --- /dev/null +++ b/packages/plugins/@tachybase/plugin-data-source-manager/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-data-source-manager diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/client.d.ts b/packages/plugins/@tachybase/plugin-data-source-manager/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/client.d.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/client.js b/packages/plugins/@tachybase/plugin-data-source-manager/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/client.js rename to packages/plugins/@tachybase/plugin-data-source-manager/client.js diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/package.json b/packages/plugins/@tachybase/plugin-data-source-manager/package.json similarity index 93% rename from packages/plugins/@nocobase/plugin-data-source-manager/package.json rename to packages/plugins/@tachybase/plugin-data-source-manager/package.json index 5924483d9..78e5b1188 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/package.json +++ b/packages/plugins/@tachybase/plugin-data-source-manager/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-data-source-manager", + "name": "@tachybase/plugin-data-source-manager", "displayName": "Data source manager", - "version": "0.21.33", + "version": "0.21.34", "description": "Manage data sources, including the built-in Master database, external databases, APIs, etc.", "keywords": [ "Data model tools" diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/server.d.ts b/packages/plugins/@tachybase/plugin-data-source-manager/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/server.d.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/server.js b/packages/plugins/@tachybase/plugin-data-source-manager/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/server.js rename to packages/plugins/@tachybase/plugin-data-source-manager/server.js diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx similarity index 90% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx index f20259f64..4c23ac7c1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx @@ -1,5 +1,6 @@ +import React, { createContext, FC, useState } from 'react'; import { SchemaComponentOptions } from '@tachybase/client'; -import React, { FC, useState, createContext } from 'react'; + import * as hooks from './hooks'; export const DataSourceContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/ThridDataSource.ts similarity index 83% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/ThridDataSource.ts index 4f8036f89..c164bb5c9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/ThridDataSource.ts @@ -1,4 +1,4 @@ -import { DataSourceOptions, DataSource } from '@tachybase/client'; +import { DataSource, DataSourceOptions } from '@tachybase/client'; export class ThirdDataSource extends DataSource { async getDataSource() { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx index ea73c2350..8ba7e03ce 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx @@ -1,10 +1,12 @@ -import { RightOutlined } from '@ant-design/icons'; -import { useApp, useCompile, useDataSourceManager } from '@tachybase/client'; -import { Breadcrumb, Space, Tag } from 'antd'; import React, { useContext, useMemo } from 'react'; +import { useApp, useCompile, useDataSourceManager } from '@tachybase/client'; + +import { RightOutlined } from '@ant-design/icons'; +import { Breadcrumb, Space, Tag } from 'antd'; import { Link, useParams } from 'react-router-dom'; + import { DataSourceContext } from '../DatabaseConnectionProvider'; -import { NAMESPACE, lang } from '../locale'; +import { lang, NAMESPACE } from '../locale'; import { statusEnum } from '../schema'; export const BreadcumbTitle = () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx index c8e6f92d7..39841a43f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx @@ -1,29 +1,30 @@ -import { PlusOutlined } from '@ant-design/icons'; -import { ArrayTable } from '@tachybase/components'; -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'; -import { useTranslation } from 'react-i18next'; -import { useParams } from 'react-router-dom'; import { - useRequest, - RecordProvider, - IField, - useRecord, ActionContextProvider, + IField, + RecordProvider, SchemaComponent, useActionContext, - useCompile, - useResourceActionContext, + useAPIClient, useCancelAction, useCollectionManager_deprecated, + useCompile, useCurrentAppInfo, - useAPIClient, - useFieldInterfaceOptions, useDataSourceManager, + useFieldInterfaceOptions, + useRecord, + useRequest, + useResourceActionContext, } from '@tachybase/client'; +import { ArrayTable } from '@tachybase/components'; +import { uid, useField, useForm } from '@tachybase/schema'; + +import { PlusOutlined } from '@ant-design/icons'; +import { Button, Dropdown, MenuProps } from 'antd'; +import { cloneDeep } from 'lodash'; +import { useTranslation } from 'react-i18next'; +import { useParams } from 'react-router-dom'; + import { ForeignKey } from './components'; const getSchema = (schema: IField, record: any, compile) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx index 93d4a82dd..06a23e7ce 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx @@ -1,32 +1,33 @@ -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'; -import { useParams } from 'react-router-dom'; +import React, { createContext, useContext, useEffect, useMemo, useState } from 'react'; import { - useAPIClient, - SchemaComponentOptions, - useRecord, - useAttach, + Collection, ResourceActionContext, ResourceActionProvider, - useResourceContext, - useCompile, + SchemaComponentOptions, Select, - Collection, + useAPIClient, + useAttach, + useCompile, useDataSourceManager, + useRecord, + useResourceContext, } from '@tachybase/client'; -import { collection, fieldsTableSchema } from './schema/collectionFields'; -import { TitleField } from './components/TitleField'; -import { CollectionFieldInterfaceSelect } from './components/CollectionFieldInterfaceSelect'; +import { createForm, Field, FieldContext, FormContext, RecursionField, useField } from '@tachybase/schema'; + +import { message } from 'antd'; +import { useTranslation } from 'react-i18next'; +import { useParams } from 'react-router-dom'; + import { AddCollectionField } from './AddFieldAction'; +import { ForeignKey, SourceCollection, SourceKey, TargetKey, ThroughCollection } from './components'; +import { CollectionFieldInterfaceSelect } from './components/CollectionFieldInterfaceSelect'; import { FieldTitleInput } from './components/FieldTitleInput'; -import { useBulkDestroyActionAndRefreshCM, useDestroyActionAndRefreshCM } from './hooks'; -import { EditCollectionField } from './EditFieldAction'; -import { SourceCollection, TargetKey, SourceKey, ForeignKey, ThroughCollection } from './components'; import { FieldType } from './components/FieldType'; +import { TitleField } from './components/TitleField'; import { UnSupportFields } from './components/UnSupportFields'; +import { EditCollectionField } from './EditFieldAction'; +import { useBulkDestroyActionAndRefreshCM, useDestroyActionAndRefreshCM } from './hooks'; +import { collection, fieldsTableSchema } from './schema/collectionFields'; const RemoteCollectionContext = createContext<{ targetCollection: Collection; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx index 3d7a4415d..3176f6cd9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx @@ -1,31 +1,31 @@ -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'; import { - useAPIClient, - useCurrentAppInfo, - useRecord, - SchemaComponent, - SchemaComponentContext, - useCompile, - CollectionCategroriesContext, - useCollectionManager_deprecated, - useCancelAction, AddSubFieldAction, + CollectionCategroriesContext, EditSubFieldAction, FieldSummary, - TemplateSummary, ResourceActionContext, + SchemaComponent, + SchemaComponentContext, + TemplateSummary, + useAPIClient, + useCancelAction, + useCollectionManager_deprecated, + useCompile, + useCurrentAppInfo, useDataSourceManager, + useRecord, } from '@tachybase/client'; +import { action, uid, useField, useForm } from '@tachybase/schema'; + import { message } from 'antd'; -import { getCollectionSchema } from './schema/collections'; +import { useTranslation } from 'react-i18next'; +import { useParams } from 'react-router-dom'; + +import { DataSourceContext } from '../../DatabaseConnectionProvider'; import { CollectionFields } from './CollectionFields'; import { EditCollection } from './EditCollectionAction'; -import { DataSourceContext } from '../../DatabaseConnectionProvider'; +import { getCollectionSchema } from './schema/collections'; /** * @param service diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx index 4e93de840..c07b7e45f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx @@ -1,16 +1,18 @@ -import { DndContext, DragEndEvent, DragOverlay, MouseSensor, useSensor, useSensors } from '@dnd-kit/core'; -import { RecursionField, observer } from '@tachybase/schema'; -import { Badge, Card, Space } from 'antd'; -import _ from 'lodash'; import React, { useContext, useState } from 'react'; -import { useTranslation } from 'react-i18next'; import { - useAPIClient, + CollectionCategroriesContext, SchemaComponentOptions, + useAPIClient, useCompile, useResourceActionContext, - CollectionCategroriesContext, } from '@tachybase/client'; +import { observer, RecursionField } from '@tachybase/schema'; + +import { DndContext, DragEndEvent, DragOverlay, MouseSensor, useSensor, useSensors } from '@dnd-kit/core'; +import { Badge, Card, Space } from 'antd'; +import _ from 'lodash'; +import { useTranslation } from 'react-i18next'; + import { CollectionFields } from './CollectionFields'; import { CollectionName } from './components/CollectionName'; import { collectionTableSchema } from './schema/collections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx index 89d849702..5e93d8d04 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx @@ -1,28 +1,29 @@ -import { ArrayTable } from '@tachybase/components'; -import { ISchema, useForm } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import React, { useEffect, useState } from 'react'; import { ActionContextProvider, IField, RecordProvider, SchemaComponent, tval, - useAPIClient, useActionContext, + useAPIClient, + useCancelAction, useCollectionManager_deprecated, useCompile, + useDataSourceManager, useRecord, useRequest, useResourceActionContext, useResourceContext, - useCancelAction, - useDataSourceManager, } from '@tachybase/client'; +import { ArrayTable } from '@tachybase/components'; +import { ISchema, uid, useForm } from '@tachybase/schema'; + import cloneDeep from 'lodash/cloneDeep'; import omit from 'lodash/omit'; -import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; + import { NAMESPACE } from '../../locale'; const getSchema = (schema: IField, record: any, compile, getContainer): ISchema => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx index fec177121..f6e5c83f4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx @@ -1,29 +1,30 @@ +import React, { useMemo, useState } from 'react'; +import { + ActionContextProvider, + IField, + RecordProvider, + SchemaComponent, + useActionContext, + useAPIClient, + useCancelAction, + useCollectionManager_deprecated, + useCollectionParentRecordData, + useCompile, + useCurrentAppInfo, + useDataSourceManager, + useRecord, + useRequest, + useResourceActionContext, +} from '@tachybase/client'; import { ArrayTable } from '@tachybase/components'; -import { ISchema, useForm } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid, useForm } from '@tachybase/schema'; + import cloneDeep from 'lodash/cloneDeep'; import omit from 'lodash/omit'; import set from 'lodash/set'; -import React, { useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; -import { - useAPIClient, - IField, - useRequest, - RecordProvider, - useRecord, - ActionContextProvider, - SchemaComponent, - useActionContext, - useCompile, - useResourceActionContext, - useCancelAction, - useCollectionManager_deprecated, - useCurrentAppInfo, - useCollectionParentRecordData, - useDataSourceManager, -} from '@tachybase/client'; + import { useRemoteCollectionContext } from './CollectionFields'; const getSchema = ({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx similarity index 93% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx index c2995da23..18a5363fd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx @@ -1,7 +1,8 @@ -import { observer, useForm, useField } from '@tachybase/schema'; -import { Select, Tag } from 'antd'; import React, { useState } from 'react'; -import { useCompile, useCollectionManager_deprecated, useRecord, useFieldInterfaceOptions } from '@tachybase/client'; +import { useCollectionManager_deprecated, useCompile, useFieldInterfaceOptions, useRecord } from '@tachybase/client'; +import { observer, useField, useForm } from '@tachybase/schema'; + +import { Select, Tag } from 'antd'; const getInterfaceOptions = (data, type) => { const interfaceOptions = []; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx index 73f70a626..b7b1e556d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx @@ -1,10 +1,11 @@ import React from 'react'; -import { LoadingOutlined } from '@ant-design/icons'; -import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; -import { Input as AntdInput } from 'antd'; -import cls from 'classnames'; import { useCollectionRecord } from '@tachybase/client'; import { usePrefixCls } from '@tachybase/components'; +import { connect, mapProps, mapReadPretty } from '@tachybase/schema'; + +import { LoadingOutlined } from '@ant-design/icons'; +import { Input as AntdInput } from 'antd'; +import cls from 'classnames'; const ReadPretty = (props) => { const prefixCls = usePrefixCls('description-input', props); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx index cd0933bce..2614d301c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx @@ -1,8 +1,9 @@ +import React, { useEffect, useMemo, useState } from 'react'; +import { useRecord } from '@tachybase/client'; import { observer } from '@tachybase/schema'; + import { Input } from 'antd'; import { debounce } from 'lodash'; -import React, { useState, useMemo, useEffect } from 'react'; -import { useRecord } from '@tachybase/client'; export const FieldTitleInput = observer( (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx index 27fc32b87..64a83d545 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx @@ -1,7 +1,8 @@ -import { observer } from '@tachybase/schema'; -import { useRecord } from '@tachybase/client'; -import { Select, Tag } from 'antd'; import React from 'react'; +import { useRecord } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { Select, Tag } from 'antd'; export const FieldType = observer( (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx index e73be7224..1086beaa2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx @@ -1,13 +1,15 @@ import React from 'react'; -import { Switch, Tooltip, message } from 'antd'; -import { useTranslation } from 'react-i18next'; import { - useCollectionManager_deprecated, - useRecord, useAPIClient, - withDynamicSchemaProps, + useCollectionManager_deprecated, useProps, + useRecord, + withDynamicSchemaProps, } from '@tachybase/client'; + +import { message, Switch, Tooltip } from 'antd'; +import { useTranslation } from 'react-i18next'; + import { useRemoteCollectionContext } from '../CollectionFields'; export const TitleField = withDynamicSchemaProps( diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx index 052e6abfe..e2e53eb02 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx @@ -1,7 +1,9 @@ import React from 'react'; -import { Table, Divider } from 'antd'; -import { useTranslation } from 'react-i18next'; import { useRecord } from '@tachybase/client'; + +import { Divider, Table } from 'antd'; +import { useTranslation } from 'react-i18next'; + import { NAMESPACE } from '../../../locale'; export const UnSupportFields = () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx index 149f15b86..81a08b332 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx @@ -1,8 +1,10 @@ import React, { useEffect, useState } from 'react'; +import { useAPIClient, useCollectionManager_deprecated, useCompile, useRecord } from '@tachybase/client'; +import { observer, useField, useForm } from '@tachybase/schema'; + import { Select } from 'antd'; -import { observer, useForm, useField } from '@tachybase/schema'; import { useParams } from 'react-router-dom'; -import { useRecord, useCompile, useAPIClient, useCollectionManager_deprecated } from '@tachybase/client'; + import { useRemoteCollectionContext } from '../CollectionFields'; const supportTypes = ['string', 'bigInt', 'integer', 'uuid', 'uid']; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts index f2dee2e58..e2ca558ef 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts @@ -1,7 +1,8 @@ +import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '@tachybase/client'; + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; -import { useAPIClient, useRecord, useResourceActionContext, useActionContext } from '@tachybase/client'; export const useDestroyAction = () => { const { refresh } = useResourceActionContext(); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx index 072e0f606..ca24901c7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx @@ -1,27 +1,27 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; import React from 'react'; import { - SchemaComponent, AddCollection, AddCollectionAction, AddCollectionField, AddFieldAction, + CollectionCategroriesProvider, + DeleteCollection, + DeleteCollectionAction, EditCollection, EditCollectionAction, EditCollectionField, EditFieldAction, OverridingCollectionField, OverridingFieldAction, + SchemaComponent, SyncFieldsAction, SyncFieldsActionCom, + SyncSQLFieldsAction, ViewCollectionField, ViewFieldAction, - SyncSQLFieldsAction, - DeleteCollection, - DeleteCollectionAction, - CollectionCategroriesProvider, } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + import { ConfigurationTable } from './ConfigurationTable'; import { ConfigurationTabs } from './ConfigurationTabs'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts index 5413ebd56..546d37571 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts @@ -1,6 +1,6 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; import { CollectionOptions } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + import { NAMESPACE } from '../../../locale'; export const collection: CollectionOptions = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts index a82ee7807..39e339e82 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts @@ -1,8 +1,8 @@ -import { ISchema, Schema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { CollectionOptions, i18n, useAPIClient } from '@tachybase/client'; +import { ISchema, Schema, uid } from '@tachybase/schema'; + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; -import { useAPIClient, i18n, CollectionOptions } from '@tachybase/client'; export const compile = (source) => { return Schema.compile(source, { t: i18n.t }); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx index f56d0d5ed..211d6b0f7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx @@ -1,9 +1,11 @@ -import { DownOutlined, PlusOutlined } from '@ant-design/icons'; -import { uid } from '@tachybase/schema'; -import { ActionContext, SchemaComponent, useAPIClient, useCompile, usePlugin } from '@tachybase/client'; -import { Button, Dropdown, Empty } from 'antd'; import React, { useState } from 'react'; +import { ActionContext, SchemaComponent, useAPIClient, useCompile, usePlugin } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + +import { DownOutlined, PlusOutlined } from '@ant-design/icons'; +import { Button, Dropdown, Empty } from 'antd'; import { useTranslation } from 'react-i18next'; + import PluginDatabaseConnectionsClient from '../'; import { useTestConnectionAction } from '../hooks'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx index 1fa11ef1f..d473e0eb6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx @@ -1,22 +1,24 @@ -import { uid } from '@tachybase/schema'; +import React, { useCallback, useEffect } from 'react'; import { SchemaComponent, + useDataSourceManager, usePlugin, + useRecord, useResourceActionContext, useResourceContext, - useRecord, - useDataSourceManager, } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + import { Card } from 'antd'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; -import React, { useCallback, useEffect } from 'react'; + import PluginDatabaseConnectionsClient from '../'; import { databaseConnectionSchema } from '../schema'; +import { ThirdDataSource } from '../ThridDataSource'; import { CreateDatabaseConnectAction } from './CreateDatabaseConnectAction'; import { EditDatabaseConnectionAction } from './EditDatabaseConnectionAction'; import { ViewDatabaseConnectionAction } from './ViewDatabaseConnectionAction'; -import { ThirdDataSource } from '../ThridDataSource'; export const DatabaseConnectionManagerPane = () => { const { t } = useTranslation(); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx index bf4c55472..9b1bcd510 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx @@ -1,19 +1,20 @@ -import { uid } from '@tachybase/schema'; +import React, { useState } from 'react'; import { ActionContext, SchemaComponent, + useActionContext, useCompile, + useDataSourceManager, usePlugin, useRecord, - useActionContext, useResourceActionContext, useResourceContext, - useDataSourceManager, } from '@tachybase/client'; +import { uid, useField, useForm } from '@tachybase/schema'; + import _ from 'lodash'; -import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; -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/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx index e98096b1e..38c58956d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx @@ -1,18 +1,20 @@ -import { PlusOutlined } from '@ant-design/icons'; -import { useForm } from '@tachybase/schema'; -import { cloneDeep } from 'lodash'; import React, { useContext, useState } from 'react'; -import { useTranslation } from 'react-i18next'; import { - useAPIClient, ActionContextProvider, + CollectionCategory, + CollectionCategroriesContext, + CollectionTemplateTag, SchemaComponent, useActionContext, + useAPIClient, useCancelAction, - CollectionCategroriesContext, - CollectionCategory, - CollectionTemplateTag, } from '@tachybase/client'; +import { useForm } from '@tachybase/schema'; + +import { PlusOutlined } from '@ant-design/icons'; +import { cloneDeep } from 'lodash'; +import { useTranslation } from 'react-i18next'; + import { collectionCategorySchema } from './schemas/collections'; const useCreateCategry = () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx index c01b835b6..42c499528 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTable.tsx @@ -1,10 +1,19 @@ -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'; import { AsyncDataProvider, useAsyncData, useRequest } from '@tachybase/client'; +import { + createForm, + Field, + FieldContext, + FormContext, + observer, + useAttach, + useField, + useFieldSchema, +} from '@tachybase/schema'; + +import { Options, Result } from 'ahooks/es/useRequest/src/types'; +import { TableProps } from 'antd'; + import { CollectionFieldsTableArray } from './CollectionFieldsTableArray'; type TableVoidProps = TableProps & { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFieldsTableArray.tsx diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx index 4010e8d29..d6e1d2f67 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx @@ -1,25 +1,25 @@ -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 '.'; import { - useAPIClient, - useCurrentAppInfo, - useRecord, + AddSubFieldAction, + CollectionCategroriesContext, + DataSourceContext_deprecated, + EditSubFieldAction, + FieldSummary, SchemaComponent, SchemaComponentContext, - useCompile, + TemplateSummary, + useAPIClient, useCancelAction, useCollectionManager_deprecated, - DataSourceContext_deprecated, - AddSubFieldAction, - EditSubFieldAction, - CollectionCategroriesContext, - FieldSummary, - TemplateSummary, + useCompile, + useCurrentAppInfo, + useRecord, } from '@tachybase/client'; +import { action, uid, useForm } from '@tachybase/schema'; + +import { useTranslation } from 'react-i18next'; + +import { CollectionFieldsTable } from '.'; import { CollectionFields } from './CollectionFields'; import { collectionSchema } from './schemas/collections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx index c5d387373..e24fa2cf0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx @@ -1,3 +1,14 @@ +import React, { useContext, useEffect, useMemo, useState } from 'react'; +import { + CollectionCategroriesContext, + SchemaComponent, + SchemaComponentOptions, + useAPIClient, + useCompile, + useResourceActionContext, +} from '@tachybase/client'; +import { observer, RecursionField, uid } from '@tachybase/schema'; + import { MenuOutlined } from '@ant-design/icons'; import { DndContext, @@ -9,20 +20,10 @@ import { useSensor, useSensors, } from '@dnd-kit/core'; -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'; import { useTranslation } from 'react-i18next'; -import { - useAPIClient, - SchemaComponent, - SchemaComponentOptions, - useCompile, - useResourceActionContext, - CollectionCategroriesContext, -} from '@tachybase/client'; + import { CollectionFields } from './CollectionFields'; import { collectionTableSchema } from './schemas/collections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx index 93f8327c8..c2d6e63c0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx @@ -1,19 +1,21 @@ -import { useForm } from '@tachybase/schema'; -import { cloneDeep } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; import { - useAPIClient, - useRequest, - RecordProvider, - useRecord, ActionContextProvider, + CollectionCategroriesContext, + RecordProvider, SchemaComponent, useActionContext, - useCompile, - useResourceActionContext, + useAPIClient, useCancelAction, - CollectionCategroriesContext, + useCompile, + useRecord, + useRequest, + useResourceActionContext, } from '@tachybase/client'; +import { useForm } from '@tachybase/schema'; + +import { cloneDeep } from 'lodash'; + import { collectionCategoryEditSchema } from './schemas/collections'; const useEditCategry = () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx index 32f77802c..db8ce2f94 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx @@ -1,4 +1,5 @@ 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/interfaces.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx index 03ab4d343..76cd26d48 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx @@ -1,5 +1,5 @@ -import { CollectionFieldInterface, useDataSourceManager } from '@tachybase/client'; import { useMemo } from 'react'; +import { CollectionFieldInterface, useDataSourceManager } from '@tachybase/client'; export const getOptions = ( fieldInterfaces: Record, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts index 3f53935c7..ac1846318 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterfaceTag, CollectionOptions } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; export const collection: CollectionOptions = { name: 'fields', diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts index e8e9d4c6c..eff5d8a73 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts @@ -1,10 +1,14 @@ -import { ISchema, Schema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { + CollectionCategory, + CollectionTemplateTag, + i18n, + useAPIClient, + type CollectionOptions, +} from '@tachybase/client'; +import { ISchema, Schema, uid } from '@tachybase/schema'; + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; -import { useAPIClient, i18n } from '@tachybase/client'; -import { CollectionCategory, CollectionTemplateTag } from '@tachybase/client'; -import type { CollectionOptions } from '@tachybase/client'; const compile = (source) => { return Schema.compile(source, { t: i18n.t }); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx index 0e9ab45a4..cbbcd9a97 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx @@ -1,27 +1,27 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; import React from 'react'; import { - SchemaComponent, AddCollection, AddCollectionAction, AddCollectionField, AddFieldAction, + CollectionCategroriesProvider, + DeleteCollection, + DeleteCollectionAction, EditCollection, EditCollectionAction, EditCollectionField, EditFieldAction, OverridingCollectionField, OverridingFieldAction, + SchemaComponent, SyncFieldsAction, SyncFieldsActionCom, + SyncSQLFieldsAction, ViewCollectionField, ViewFieldAction, - SyncSQLFieldsAction, - DeleteCollection, - DeleteCollectionAction, - CollectionCategroriesProvider, } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + import { AddCategory, AddCategoryAction, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx index 9ecc372af..b32f89efe 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx @@ -1,14 +1,16 @@ -import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; import { - useRequest, SchemaComponent, SchemaComponentContext, SettingCenterPermissionProvider, useRecord, + useRequest, } from '@tachybase/client'; -import { dataSourceSchema } from './schemas/dataSourceTable'; + +import { Spin } from 'antd'; + import { PermissionProvider } from './PermisionProvider'; +import { dataSourceSchema } from './schemas/dataSourceTable'; const AvailableActionsContext = createContext([]); AvailableActionsContext.displayName = 'AvailableActionsContext'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx index 39adbfa2b..467791863 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx @@ -1,7 +1,9 @@ -import { message } from 'antd'; import React, { createContext, useContext, useEffect, useState } from 'react'; +import { RecordContext_deprecated, SchemaComponentOptions, useAPIClient, useRecord } from '@tachybase/client'; + +import { message } from 'antd'; import { useTranslation } from 'react-i18next'; -import { useAPIClient, useRecord, RecordContext_deprecated, SchemaComponentOptions } from '@tachybase/client'; + import { CurrentRolesContext } from './'; export const SettingCenterPermissionProvider = (props) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx index e676ac465..568772d38 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx @@ -1,9 +1,11 @@ -import { onFieldChange } from '@tachybase/schema'; import React, { useContext } from 'react'; +import { SchemaComponent, useAPIClient, useRecord, useRequest } from '@tachybase/client'; +import { onFieldChange } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; -import { useAPIClient, useRequest, SchemaComponent, useRecord } from '@tachybase/client'; -import { PermissionContext } from './PermisionProvider'; + import { CurrentRolesContext } from './'; +import { PermissionContext } from './PermisionProvider'; export const RoleConfigure = () => { const { update } = useContext(PermissionContext); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx index 5045ff66e..4791492c1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx @@ -1,15 +1,16 @@ +import React, { createContext, useContext } from 'react'; +import { useCompile, useRecord } from '@tachybase/client'; import { FormItem, FormLayout } from '@tachybase/components'; -import { ArrayField } from '@tachybase/schema'; -import { connect, useField } from '@tachybase/schema'; +import { ArrayField, connect, useField } from '@tachybase/schema'; + import { Checkbox, Table, Tag } from 'antd'; import { isEmpty } from 'lodash'; -import React, { createContext, useContext } from 'react'; import { useTranslation } from 'react-i18next'; -import { useCompile, useRecord } from '@tachybase/client'; -import { useStyles } from './style'; + +import { CurrentRolesContext } from './'; import { useAvailableActions } from './DataSourceTable'; import { ScopeSelect } from './ScopeSelect'; -import { CurrentRolesContext } from './'; +import { useStyles } from './style'; const toActionMap = (arr: any[]) => { const obj = {}; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx index 8cb5dba19..39f69403f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx @@ -1,6 +1,7 @@ -import { createForm } from '@tachybase/schema'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent, useRecord } from '@tachybase/client'; +import { createForm } from '@tachybase/schema'; + import { getScopesSchema } from './schemas/scopes'; const RolesResourcesScopesSelectedRowKeysContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx index 702199198..1bee03587 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx @@ -1,9 +1,10 @@ -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'; import { useCompile } from '@tachybase/client'; +import { ArrayField, connect, useField } from '@tachybase/schema'; + +import { Checkbox, Select, Table, Tag } from 'antd'; +import { useTranslation } from 'react-i18next'; + import { useAvailableActions } from './DataSourceTable'; const toScopes = (value) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx index 07e3c935e..625b85411 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx @@ -1,19 +1,20 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; -import { Card } from 'antd'; import React, { createContext } from 'react'; import { - SchemaComponent, MenuConfigure, - SettingsCenterConfigure, - SettingCenterProvider, ResourceActionProvider, + SchemaComponent, + SettingCenterProvider, + SettingsCenterConfigure, } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + +import { Card } from 'antd'; + import { DataSourceTable } from './DataSourceTable'; -import { RoleConfigure } from './RoleConfigure'; -import { StrategyActions } from './StrategyActions'; -import { RolesResourcesActions } from './RolesResourcesActions'; import { RoleRecordProvider } from './PermisionProvider'; +import { RoleConfigure } from './RoleConfigure'; +import { RolesResourcesActions } from './RolesResourcesActions'; +import { StrategyActions } from './StrategyActions'; const schema2: ISchema = { type: 'object', diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts index 9fec30d71..98bbd3a00 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts @@ -1,4 +1,5 @@ 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/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts index 9f0d17617..a89f1a131 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, 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/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts index d871dd63c..243e905da 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts @@ -1,6 +1,7 @@ -import { ISchema } from '@tachybase/schema'; import { useContext, useEffect } from 'react'; -import { useFormBlockContext, VariableInput, useFilterFieldOptions } from '@tachybase/client'; +import { useFilterFieldOptions, useFormBlockContext, VariableInput } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; + import { RoleResourceCollectionContext } from '../RolesResourcesActions'; export const rolesResourcesScopesCollection = (dataSourceKey = 'main') => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts similarity index 95% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts index 4b39323a8..0e489c0d3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts @@ -1,5 +1,6 @@ -import { useEffect, useContext } from 'react'; +import { useContext, useEffect } from 'react'; import { useActionContext, useRecord, useRequest } from '@tachybase/client'; + import { PermissionContext } from '../PermisionProvider'; export const useRoleResourceValues = (options) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts index 4d91452ae..a4e5f944e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts @@ -1,6 +1,7 @@ -import { useForm } from '@tachybase/schema'; import { useContext } from 'react'; import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '@tachybase/client'; +import { useForm } from '@tachybase/schema'; + import { PermissionContext } from '../PermisionProvider'; export const useSaveRoleResourceAction = () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/constant.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/constant.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/hooks/index.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/hooks/index.ts index bdd3638be..9eb0a9452 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/hooks/index.ts @@ -1,7 +1,9 @@ -import { useForm, useField } from '@tachybase/schema'; +import { useActionContext, useAPIClient } from '@tachybase/client'; +import { useField, useForm } from '@tachybase/schema'; + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; -import { useActionContext, useAPIClient } from '@tachybase/client'; + import { NAMESPACE } from '../locale'; export const useCreateDatabaseServer = (handleDataServerChange) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/index.tsx index e7a6b57d2..43a6da15f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/index.tsx @@ -1,13 +1,14 @@ -import { Plugin } from '@tachybase/client'; import React from 'react'; -import { DatabaseConnectionProvider } from './DatabaseConnectionProvider'; -import { ThirdDataSource } from './ThridDataSource'; +import { Plugin } from '@tachybase/client'; + import { BreadcumbTitle } from './component/BreadcumbTitle'; import { CollectionManagerPage } from './component/CollectionsManager'; import { DatabaseConnectionManagerPane } from './component/DatabaseConnectionManager'; import { MainDataSourceManager } from './component/MainDataSourceManager'; import { DataSourcePermissionManager } from './component/PermissionManager'; +import { DatabaseConnectionProvider } from './DatabaseConnectionProvider'; import { NAMESPACE } from './locale'; +import { ThirdDataSource } from './ThridDataSource'; export class PluginDataSourceManagerClient extends Plugin { types = new Map(); diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/schema/index.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/client/schema/index.ts index 523c9672a..4f058a9a1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/client/schema/index.ts @@ -1,6 +1,7 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; + import { NAMESPACE } from '../locale'; + export const statusEnum = [ { value: 'loading', label: `{{t("Loading",{ns:"${NAMESPACE}"})}}`, color: 'orange' }, { value: 'loading-failed', label: `{{t("Failed",{ns:"${NAMESPACE}"})}}`, color: 'red' }, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-data-source-manager/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-data-source-manager/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts index 2c686bc47..79df68238 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts @@ -1,7 +1,8 @@ -import { createMockServer, MockServer } from '@tachybase/test'; import { CollectionManager, DataSource, IRepository } from '@tachybase/data-source-manager'; -import { SuperAgentTest } from 'supertest'; import { ICollectionManager, IModel } from '@tachybase/data-source-manager/src/types'; +import { createMockServer, MockServer } from '@tachybase/test'; + +import { SuperAgentTest } from 'supertest'; describe('data source with acl', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts index 7566a3c66..8567b056e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts @@ -1,5 +1,5 @@ -import { createMockServer, MockServer, waitSecond } from '@tachybase/test'; import { CollectionManager, DataSource } from '@tachybase/data-source-manager'; +import { createMockServer, MockServer, waitSecond } from '@tachybase/test'; describe('data source', async () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/collections/data-sources.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/errors/type-infer-error.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/errors/type-infer-error.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts similarity index 56% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts index 505d0c35b..e9bdb4221 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts @@ -1,3 +1,3 @@ -import { RoleResourceActionModel } from '@nocobase/plugin-acl'; +import { RoleResourceActionModel } from '@tachybase/plugin-acl'; export class DataSourcesRolesResourcesActionModel extends RoleResourceActionModel {} diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts similarity index 55% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts index 22f4397f7..6b46877b6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts @@ -1,3 +1,3 @@ -import { RoleResourceModel } from '@nocobase/plugin-acl'; +import { RoleResourceModel } from '@tachybase/plugin-acl'; export class DataSourcesRolesResourcesModel extends RoleResourceModel {} diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-source.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-source.ts index 983c9710a..912d8d3ed 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-source.ts @@ -1,10 +1,11 @@ -import { Model, Transaction } from '@tachybase/database'; -import { Application } from '@tachybase/server'; -import { LocalData } from '../services/database-introspector'; -import { setCurrentRole } from '@nocobase/plugin-acl'; import { ACL, AvailableActionOptions } from '@tachybase/acl'; -import { DataSourcesRolesModel } from './data-sources-roles-model'; +import { Model, Transaction } from '@tachybase/database'; +import { setCurrentRole } from '@tachybase/plugin-acl'; +import { Application } from '@tachybase/server'; + import PluginDataSourceManagerServer from '../plugin'; +import { LocalData } from '../services/database-introspector'; +import { DataSourcesRolesModel } from './data-sources-roles-model'; const availableActions: { [key: string]: AvailableActionOptions; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts index 96a6e3a4d..d8f7cb6fa 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts @@ -1,5 +1,6 @@ import { MagicAttributeModel } from '@tachybase/database'; import { Application } from '@tachybase/server'; + import { mergeOptions } from '../utils'; type LoadOptions = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts index 453516b1c..0c75daf18 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts @@ -1,6 +1,8 @@ -import { Model } from '@tachybase/database'; import { ACL } from '@tachybase/acl'; +import { Model } from '@tachybase/database'; + import { Transaction } from 'sequelize'; + import { DataSourcesRolesResourcesModel } from './connections-roles-resources'; export class DataSourcesRolesModel extends Model { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/plugin.ts index 80fb1ac64..73a28c4dd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/plugin.ts @@ -1,19 +1,20 @@ -import { Application, Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import { Application, Plugin } from '@tachybase/server'; + +import lodash from 'lodash'; + +import { DataSourcesRolesResourcesModel } from './models/connections-roles-resources'; +import { DataSourcesRolesResourcesActionModel } from './models/connections-roles-resources-action'; +import { DataSourceModel } from './models/data-source'; import { DataSourcesCollectionModel } from './models/data-sources-collection-model'; import { DataSourcesFieldModel } from './models/data-sources-field-model'; +import { DataSourcesRolesModel } from './models/data-sources-roles-model'; import remoteCollectionsResourcer from './resourcers/data-sources-collections'; import remoteFieldsResourcer from './resourcers/data-sources-collections-fields'; import rolesConnectionResourcesResourcer from './resourcers/data-sources-resources'; import databaseConnectionsRolesResourcer from './resourcers/data-sources-roles'; import { rolesRemoteCollectionsResourcer } from './resourcers/roles-data-sources-collections'; -import lodash from 'lodash'; -import { DataSourcesRolesResourcesModel } from './models/connections-roles-resources'; -import { DataSourcesRolesResourcesActionModel } from './models/connections-roles-resources-action'; -import { DataSourceModel } from './models/data-source'; -import { DataSourcesRolesModel } from './models/data-sources-roles-model'; - type DataSourceState = 'loading' | 'loaded' | 'loading-failed' | 'reloading' | 'reloading-failed'; const canRefreshStatus = ['loaded', 'loading-failed', 'reloading-failed']; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts index 1eda1661f..b573fd2ac 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts @@ -1,6 +1,7 @@ -import { FullDataRepository } from '../services/full-data-repository'; import lodash from 'lodash'; +import { FullDataRepository } from '../services/full-data-repository'; + type UsingConfigType = 'strategy' | 'resourceAction'; function totalPage(total, pageSize): number { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/collection-manager.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/collection-manager.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/collection-manager.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/collection-manager.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/database-introspector.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/database-introspector.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/database-introspector.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/database-introspector.ts index ada6adacd..e1a64ccac 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/database-introspector.ts +++ b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/database-introspector.ts @@ -1,6 +1,8 @@ import { Database, ViewFieldInference } from '@tachybase/database'; -import { ColumnsDescription } from 'sequelize'; + import lodash from 'lodash'; +import { ColumnsDescription } from 'sequelize'; + import typeInterfaceMap from './type-interface-map'; type tableInfo = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/full-data-repository.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/full-data-repository.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/type-interface-map.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/services/type-interface-map.ts diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts b/packages/plugins/@tachybase/plugin-data-source-manager/src/server/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts rename to packages/plugins/@tachybase/plugin-data-source-manager/src/server/utils.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/.npmignore b/packages/plugins/@tachybase/plugin-data-visualization/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/.npmignore rename to packages/plugins/@tachybase/plugin-data-visualization/.npmignore diff --git a/packages/plugins/@nocobase/plugin-data-visualization/README.md b/packages/plugins/@tachybase/plugin-data-visualization/README.md similarity index 98% rename from packages/plugins/@nocobase/plugin-data-visualization/README.md rename to packages/plugins/@tachybase/plugin-data-visualization/README.md index 7cf2ab5f6..611ea30bc 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/README.md +++ b/packages/plugins/@tachybase/plugin-data-visualization/README.md @@ -80,7 +80,7 @@ ## 使用其他图表库 ```TypeScript -import { ChartLibraryProvider } from '@nocobase/plugin-charts-v2/client'; +import { ChartLibraryProvider } from '@tachybase/plugin-charts-v2/client'; ``` 图表插件提供了ChartLibraryProvider组件,组件接收以下属性: diff --git a/packages/plugins/@nocobase/plugin-data-visualization/client.d.ts b/packages/plugins/@tachybase/plugin-data-visualization/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/client.d.ts rename to packages/plugins/@tachybase/plugin-data-visualization/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/client.js b/packages/plugins/@tachybase/plugin-data-visualization/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/client.js rename to packages/plugins/@tachybase/plugin-data-visualization/client.js diff --git a/packages/plugins/@nocobase/plugin-data-visualization/package.json b/packages/plugins/@tachybase/plugin-data-visualization/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-data-visualization/package.json rename to packages/plugins/@tachybase/plugin-data-visualization/package.json index a6e06e87b..0f9f19529 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/package.json +++ b/packages/plugins/@tachybase/plugin-data-visualization/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-data-visualization", + "name": "@tachybase/plugin-data-visualization", "displayName": "Data visualization", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.", "keywords": [ "Blocks" diff --git a/packages/plugins/@nocobase/plugin-data-visualization/server.d.ts b/packages/plugins/@tachybase/plugin-data-visualization/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/server.d.ts rename to packages/plugins/@tachybase/plugin-data-visualization/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/server.js b/packages/plugins/@tachybase/plugin-data-visualization/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/server.js rename to packages/plugins/@tachybase/plugin-data-visualization/server.js diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-renderer.test.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-renderer.test.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-renderer.test.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/chart-renderer.test.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/hooks.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/hooks.test.ts index 69514317d..eefd9c3d0 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/__tests__/hooks.test.ts @@ -1,6 +1,8 @@ import * as client from '@tachybase/client'; + import { renderHook } from '@testing-library/react'; import { vi } from 'vitest'; + import formatters from '../block/formatters'; import transformers from '../block/transformers'; import { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlock.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlock.tsx index 9712277db..67ba998be 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlock.tsx @@ -1,10 +1,11 @@ -import { SchemaComponentOptions, SchemaInitializerContext, useSchemaInitializer } from '@tachybase/client'; import React, { PropsWithChildren, useState } from 'react'; +import { SchemaComponentOptions, SchemaInitializerContext, useSchemaInitializer } from '@tachybase/client'; + import { ChartConfigProvider } from '../configure'; -import { ChartDataProvider } from './ChartDataProvider'; -import { ChartRenderer, ChartRendererProvider } from '../renderer'; -import { ChartFilterBlockProvider, ChartFilterBlockDesigner } from '../filter'; +import { ChartFilterBlockDesigner, ChartFilterBlockProvider } from '../filter'; import { ChartFilterProvider } from '../filter/FilterProvider'; +import { ChartRenderer, ChartRendererProvider } from '../renderer'; +import { ChartDataProvider } from './ChartDataProvider'; export const ChartV2Block: React.FC = (props) => { const [initialVisible, setInitialVisible] = useState(false); diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx index 79cc0c021..97f723f44 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx @@ -1,10 +1,11 @@ +import React from 'react'; import { GeneralSchemaDesigner, SchemaSettingsBlockTitleItem, SchemaSettingsDivider, SchemaSettingsRemove, } from '@tachybase/client'; -import React from 'react'; + import { useChartsTranslation } from '../locale'; export const ChartV2BlockDesigner: React.FC = () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx index 43892761a..850faf467 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx @@ -1,15 +1,17 @@ -import { BarChartOutlined, LineChartOutlined } from '@ant-design/icons'; -import { uid } from '@tachybase/schema'; +import React, { useCallback, useContext } from 'react'; import { CompatibleSchemaInitializer, - DEFAULT_DATA_SOURCE_KEY, DataBlockInitializer, + DEFAULT_DATA_SOURCE_KEY, SchemaInitializerItem, useACLRoleContext, useSchemaInitializer, useSchemaInitializerItem, } from '@tachybase/client'; -import React, { useCallback, useContext } from 'react'; +import { uid } from '@tachybase/schema'; + +import { BarChartOutlined, LineChartOutlined } from '@ant-design/icons'; + import { ChartConfigContext } from '../configure'; import { FilterBlockInitializer } from '../filter'; import { lang } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx index 72e9fc7d0..8c305e750 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx @@ -1,4 +1,5 @@ -import React, { createContext, useState, PropsWithChildren } from 'react'; +import React, { createContext, PropsWithChildren, useState } from 'react'; + import { useMemoizedFn } from 'ahooks'; type ChartData = { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/formatters.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/formatters.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/formatters.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/formatters.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/transformers.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/transformers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/block/transformers.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/block/transformers.tsx index 392472a70..60c3c1e41 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/transformers.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/block/transformers.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { Popover, Space, Tag } from 'antd'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts index 73db186f9..710c31523 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/GroupedTable.ts @@ -1,7 +1,9 @@ import { uid } from '@tachybase/utils/client'; + +import { Table as AntdTable } from 'antd'; + import { RenderProps } from '../chart'; import { AntdChart } from './antd'; -import { Table as AntdTable } from 'antd'; export class GroupedTable extends AntdChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/antd.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/antd.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/index.ts index 93e8d6b94..9c67f43b2 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/index.ts @@ -1,5 +1,5 @@ +import { GroupedTable } from './GroupedTable'; import { Statistic } from './statistic'; import { Table } from './table'; -import { GroupedTable } from './GroupedTable'; export default [new Statistic(), new Table(), new GroupedTable()]; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/statistic.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/statistic.ts index 144409a9a..a828b929a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/statistic.ts @@ -1,7 +1,8 @@ -import { AntdChart } from './antd'; import { Statistic as AntdStatistic } from 'antd'; + import { lang } from '../../locale'; import { ChartType, RenderProps } from '../chart'; +import { AntdChart } from './antd'; export class Statistic extends AntdChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/table.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/table.ts index f0ad9ff03..a9f17a659 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/antd/table.ts @@ -1,6 +1,7 @@ +import { Table as AntdTable } from 'antd'; + import { RenderProps } from '../chart'; import { AntdChart } from './antd'; -import { Table as AntdTable } from 'antd'; export class Table extends AntdChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/chart.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/chart.ts index 793542540..896ea6c8f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/chart.ts @@ -1,10 +1,11 @@ import React, { useContext } from 'react'; +import { ISchema } from '@tachybase/schema'; + +import { Transformer } from '../block/transformers'; import { FieldOption } from '../hooks'; import { ChartRendererContext, QueryProps } from '../renderer'; import { parseField } from '../utils'; -import { ISchema } from '@tachybase/schema'; import configs, { AnySchemaProperties, Config } from './configs'; -import { Transformer } from '../block/transformers'; export type RenderProps = { data: any; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/configs.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/configs.ts index 43839a0ef..cc653b9aa 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/configs.ts @@ -1,4 +1,5 @@ import { SchemaProperties } from '@tachybase/schema'; + import { lang } from '../locale'; export type FieldConfigProps = Partial<{ diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx index 17beee816..1630bcdb8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx @@ -1,4 +1,5 @@ import React, { useContext, useEffect, useRef } from 'react'; + import { ChartRendererContext } from '../../renderer'; export const getAntChart = (Component: React.FC) => (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/bar.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/bar.ts index 20018cedd..deb4b420f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/bar.ts @@ -1,6 +1,7 @@ import { Bar as G2PlotBar } from '@ant-design/plots'; -import { G2PlotChart } from './g2plot'; + import { ChartType } from '../chart'; +import { G2PlotChart } from './g2plot'; export class Bar extends G2PlotChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/configs.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/configs.ts index 45ec93442..c89e9b959 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/configs.ts @@ -1,4 +1,5 @@ import config, { FieldConfigProps } from '../configs'; + const { booleanField } = config; export default { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts index 8cd664656..d8125d094 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts @@ -1,9 +1,11 @@ -import { G2PlotChart } from './g2plot'; -import { ChartType, RenderProps } from '../chart'; import React, { useContext } from 'react'; + import { DualAxes as G2DualAxes } from '@ant-design/plots'; import lodash from 'lodash'; + import { ChartRendererContext } from '../../renderer'; +import { ChartType, RenderProps } from '../chart'; +import { G2PlotChart } from './g2plot'; export class DualAxes extends G2PlotChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts index a804c3c72..0180b26a2 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts @@ -1,6 +1,6 @@ import { Chart, ChartProps, ChartType, RenderProps } from '../chart'; -import configs from './configs'; import { getAntChart } from './AntChart'; +import configs from './configs'; export class G2PlotChart extends Chart { constructor({ name, title, Component, config }: ChartProps) { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/index.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/index.ts index 653ea9148..9e7bdaa3c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/index.ts @@ -1,7 +1,8 @@ -import { Area, Column, Line, Scatter, Bar } from '@ant-design/plots'; -import { Pie } from './pie'; +import { Area, Bar, Column, Line, Scatter } from '@ant-design/plots'; + import { DualAxes } from './dualAxes'; import { G2PlotChart } from './g2plot'; +import { Pie } from './pie'; export default [ new G2PlotChart({ diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/pie.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/pie.ts index 1b1583769..86dc1ab98 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/g2plot/pie.ts @@ -1,6 +1,7 @@ -import { G2PlotChart } from './g2plot'; import { Pie as G2Pie } from '@ant-design/plots'; + import { ChartType, RenderProps } from '../chart'; +import { G2PlotChart } from './g2plot'; export class Pie extends G2PlotChart { constructor() { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/group.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/group.ts index 2a3110675..6f918362b 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/chart/group.ts @@ -1,7 +1,8 @@ import { usePlugin } from '@tachybase/client'; -import { ChartType } from './chart'; + import DataVisualizationPlugin from '..'; import { lang } from '../locale'; +import { ChartType } from './chart'; export class ChartGroup { charts: Map = new Map(); diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx index d482611ae..20bd0fef2 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx @@ -1,19 +1,30 @@ -import { RightSquareOutlined } from '@ant-design/icons'; +import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; +import { AutoComplete, FormProvider, gridRowColWrap, SchemaComponent, useDesignable } from '@tachybase/client'; import { ArrayItems, Editable, FormCollapse, FormItem, FormLayout, Switch } from '@tachybase/components'; -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 '@tachybase/client'; +import { + createForm, + FormConsumer, + Form as FormType, + ISchema, + ObjectField, + onFieldChange, + onFormInit, + Schema, +} from '@tachybase/schema'; + +import { RightSquareOutlined } from '@ant-design/icons'; import { Alert, App, Button, Card, Col, Modal, Row, Space, Table, Tabs, Typography } from 'antd'; import { cloneDeep, isEqual } from 'lodash'; -import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'; + +import { useCharts, useChartTypes, useDefaultChartType } from '../chart/group'; import { useChartFields, - useCollectionOptions, useCollectionFieldsOptions, useCollectionFilterOptions, + useCollectionOptions, useData, - useFieldTypes, useFieldsWithAssociation, + useFieldTypes, useFormatters, useOrderFieldsOptions, useOrderReaction, @@ -23,10 +34,10 @@ import { import { useChartsTranslation } from '../locale'; import { ChartRenderer, ChartRendererContext } from '../renderer'; import { createRendererSchema, getField, getSelectedFields } from '../utils'; -import { getConfigSchema, querySchema, transformSchema } from './schemas/configure'; -import { useChartTypes, useCharts, useDefaultChartType } from '../chart/group'; -import { FilterDynamicComponent } from './FilterDynamicComponent'; import { ChartConfigContext } from './ChartConfigProvider'; +import { FilterDynamicComponent } from './FilterDynamicComponent'; +import { getConfigSchema, querySchema, transformSchema } from './schemas/configure'; + const { Paragraph, Text } = Typography; export type SelectedField = { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx index 86cdd7fea..3c6443bfa 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx @@ -1,5 +1,6 @@ -import { Variable } from '@tachybase/client'; import React from 'react'; +import { Variable } from '@tachybase/client'; + import { useVariableOptions } from '../hooks'; export function FilterDynamicComponent(props) { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/schemas/configure.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/schemas/configure.ts index 76fd93b9c..8c082839f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/configure/schemas/configure.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, 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/@tachybase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx index 48786ad96..1f095680d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx @@ -1,5 +1,4 @@ -import { DownOutlined } from '@ant-design/icons'; -import { useForm } from '@tachybase/schema'; +import React, { useContext } from 'react'; import { Action, ActionInitializer, @@ -8,7 +7,10 @@ import { SchemaSettingsDivider, SchemaSettingsRemove, } from '@tachybase/client'; -import React, { useContext } from 'react'; +import { useForm } from '@tachybase/schema'; + +import { DownOutlined } from '@ant-design/icons'; + import { useChartFilter } from '../hooks/filter'; import { useChartsTranslation } from '../locale'; import { ChartFilterContext } from './FilterProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx index 31f9d1fdb..31915ae0c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx @@ -1,5 +1,6 @@ -import { GeneralSchemaDesigner, SchemaSettingsRemove } from '@tachybase/client'; import React from 'react'; +import { GeneralSchemaDesigner, SchemaSettingsRemove } from '@tachybase/client'; + import { useChartsTranslation } from '../locale'; export const ChartFilterBlockDesigner: React.FC = () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx similarity index 78% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx index 7cf35cb88..ee31792ee 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { connect, useField } from '@tachybase/schema'; +import { connect, Field, useField } from '@tachybase/schema'; + import { Checkbox } from 'antd'; -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/@tachybase/plugin-data-visualization/src/client/filter/FilterForm.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterForm.tsx index 177ea21ef..b3a0ea39d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterForm.tsx @@ -1,9 +1,10 @@ import React, { memo, useContext, useEffect, useMemo, useRef } from 'react'; -import { createForm, onFieldInit, onFieldMount, onFieldUnmount } from '@tachybase/schema'; -import { ChartFilterContext } from './FilterProvider'; import { DEFAULT_DATA_SOURCE_KEY, FormV2, VariablesContext } from '@tachybase/client'; -import { setDefaultValue } from './utils'; +import { createForm, onFieldInit, onFieldMount, onFieldUnmount } from '@tachybase/schema'; + import { useChartFilter } from '../hooks'; +import { ChartFilterContext } from './FilterProvider'; +import { setDefaultValue } from './utils'; export const ChartFilterForm: React.FC = memo((props) => { const { setField, removeField, setForm } = useContext(ChartFilterContext); diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx index 22db4c775..9b6208a22 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx @@ -1,34 +1,36 @@ import React, { useContext } from 'react'; import { + CollectionFieldOptions_deprecated, + DEFAULT_DATA_SOURCE_KEY, EditDescription, GeneralSchemaDesigner, - SchemaSettingsItem, + removeNullCondition, + SchemaSettingsDataScope, SchemaSettingsDivider, + SchemaSettingsItem, SchemaSettingsModalItem, SchemaSettingsRemove, - VariablesContext, + SchemaSettingsSelectItem, useCollection_deprecated, useCollectionManager_deprecated, useCompile, useDesignable, - SchemaSettingsSelectItem, - CollectionFieldOptions_deprecated, - DEFAULT_DATA_SOURCE_KEY, - SchemaSettingsDataScope, useFormBlockContext, - removeNullCondition, useIsAssociationField, + VariablesContext, } from '@tachybase/client'; -import { useChartsTranslation } from '../locale'; -import { Schema, useField, useFieldSchema } from '@tachybase/schema'; -import { Field } from '@tachybase/schema'; -import _ from 'lodash'; -import { ChartFilterContext } from './FilterProvider'; -import { getPropsSchemaByComponent, setDefaultValue } from './utils'; -import { ChartFilterVariableInput } from './FilterVariableInput'; -import { useChartDataSource, useChartFilter, useCollectionJoinFieldTitle } from '../hooks'; +import { Field, Schema, useField, useFieldSchema } from '@tachybase/schema'; + import { Typography } from 'antd'; +import _ from 'lodash'; + +import { useChartDataSource, useChartFilter, useCollectionJoinFieldTitle } from '../hooks'; +import { useChartsTranslation } from '../locale'; import { getFormulaInterface } from '../utils'; +import { ChartFilterContext } from './FilterProvider'; +import { ChartFilterVariableInput } from './FilterVariableInput'; +import { getPropsSchemaByComponent, setDefaultValue } from './utils'; + const { Text } = Typography; const EditTitle = () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterProvider.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterProvider.tsx index fd9e05d7f..84a8510fc 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterProvider.tsx @@ -1,4 +1,5 @@ -import React, { PropsWithChildren, createContext, useEffect, useState } from 'react'; +import React, { createContext, PropsWithChildren, useEffect, useState } from 'react'; + import { useMemoizedFn } from 'ahooks'; type FilterField = { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx index c5189f9c3..267b9ad3d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx @@ -1,17 +1,18 @@ +import React, { useEffect, useMemo } from 'react'; import { CollectionFieldProvider, CollectionManagerProvider, CollectionProvider, DEFAULT_DATA_SOURCE_KEY, - SchemaComponent, - VariableInput, - VariableScopeProvider, getShouldChange, + SchemaComponent, useCurrentUserVariable, useDatetimeVariable, + VariableInput, + VariableScopeProvider, } from '@tachybase/client'; + import { useMemoizedFn } from 'ahooks'; -import React, { useEffect, useMemo } from 'react'; export const ChartFilterVariableInput: React.FC = (props) => { const { value, onChange, fieldSchema } = props; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/utils.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/utils.ts index 42c683272..5fa8c4d4d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/filter/utils.ts @@ -1,7 +1,8 @@ import { DEFAULT_DATA_SOURCE_KEY } from '@tachybase/client'; -import { moment2str } from '@tachybase/utils/client'; -import dayjs from 'dayjs'; import { Schema } from '@tachybase/schema'; +import { moment2str } from '@tachybase/utils/client'; + +import dayjs from 'dayjs'; export const getOptionsSchema = () => { const options = { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/filter.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/filter.ts index 112868124..3bda93542 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/filter.ts @@ -1,27 +1,29 @@ +import { useCallback, useContext, useMemo } from 'react'; import { Collection, CollectionFieldInterfaceManager, CollectionFieldOptions, CollectionManager, - SchemaInitializerItemType, i18n, + SchemaInitializerItemType, useActionContext, useCollectionManager_deprecated, useDataSourceManager, } from '@tachybase/client'; -import { useCallback, useContext, useMemo } from 'react'; -import { ChartDataContext } from '../block/ChartDataProvider'; import { Schema } from '@tachybase/schema'; -import { useChartsTranslation } from '../locale'; -import { ChartFilterContext } from '../filter/FilterProvider'; -import { useMemoizedFn } from 'ahooks'; import { parse } from '@tachybase/utils/client'; -import lodash from 'lodash'; -import { getFormulaComponent, getValuesByPath } from '../utils'; + +import { useMemoizedFn } from 'ahooks'; import deepmerge from 'deepmerge'; -import { findSchema, getFilterFieldPrefix, parseFilterFieldName } from '../filter/utils'; +import lodash from 'lodash'; import _ from 'lodash'; +import { ChartDataContext } from '../block/ChartDataProvider'; +import { ChartFilterContext } from '../filter/FilterProvider'; +import { findSchema, getFilterFieldPrefix, parseFilterFieldName } from '../filter/utils'; +import { useChartsTranslation } from '../locale'; +import { getFormulaComponent, getValuesByPath } from '../utils'; + export const useCustomFieldInterface = () => { const { getInterface } = useCollectionManager_deprecated(); return { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/query.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/query.ts index 73377942a..767d8436e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/query.ts @@ -1,5 +1,4 @@ -import { ArrayField } from '@tachybase/schema'; -import { ISchema, Schema, useForm } from '@tachybase/schema'; +import { useContext, useMemo } from 'react'; import { CollectionFieldOptions, CollectionFieldOptions_deprecated, @@ -9,10 +8,12 @@ import { useCollectionManager_deprecated, useDataSourceManager, } from '@tachybase/client'; -import { useContext, useMemo } from 'react'; +import { ArrayField, ISchema, Schema, useForm } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; -import { ChartConfigContext } from '../configure'; + import formatters from '../block/formatters'; +import { ChartConfigContext } from '../configure'; import { useChartsTranslation } from '../locale'; import { ChartRendererContext } from '../renderer'; import { getField, getSelectedFields, parseField, processData } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/transformer.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/transformer.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useDateVariable.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useDateVariable.ts index a431da155..76aea5708 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useDateVariable.ts @@ -1,6 +1,7 @@ import { useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; + import { useMemoizedFn } from 'ahooks'; +import { useTranslation } from 'react-i18next'; export const useDateVariable = ({ schema }) => { const { t: trans } = useTranslation(); diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useUserVariable.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useUserVariable.ts index 2037bc433..8128609bb 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useUserVariable.ts @@ -1,8 +1,9 @@ import { useCallback, useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; -import { Schema } from '@tachybase/schema'; import { useCollectionFieldsOptions } from '@tachybase/client'; +import { Schema } from '@tachybase/schema'; + import { useMemoizedFn } from 'ahooks'; +import { useTranslation } from 'react-i18next'; export const useUserVariable = ({ schema }: { schema: any }) => { const { t: trans } = useTranslation(); diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts index c67b399d3..008a0aaf2 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts @@ -1,6 +1,7 @@ -import { useField } from '@tachybase/schema'; -import { useCurrentUserVariable, useDatetimeVariable } from '@tachybase/client'; import { useMemo } from 'react'; +import { useCurrentUserVariable, useDatetimeVariable } from '@tachybase/client'; +import { useField } from '@tachybase/schema'; + import { useFilterVariable } from './filter'; export const useVariableOptions = () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/index.tsx index 72be3d666..eac3fee13 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/index.tsx @@ -1,10 +1,11 @@ import { Plugin } from '@tachybase/client'; + import { + chartInitializers, + chartInitializers_deprecated, ChartV2Block, ChartV2BlockDesigner, ChartV2BlockInitializer, - chartInitializers, - chartInitializers_deprecated, } from './block'; import antd from './chart/antd'; import g2plot from './chart/g2plot'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx index 1b8958e30..f621f1536 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx @@ -1,26 +1,29 @@ -import { useField, useFieldSchema } from '@tachybase/schema'; +import React, { useContext, useEffect, useRef } from 'react'; import { GeneralSchemaDesigner, + gridRowColWrap, SchemaSettingsBlockTitleItem, SchemaSettingsDivider, SchemaSettingsItem, SchemaSettingsRemove, - gridRowColWrap, useAPIClient, useCollection_deprecated, useDataSource, useDesignable, } from '@tachybase/client'; +import { useField, useFieldSchema } from '@tachybase/schema'; + import { Empty, Result, Spin, Typography } from 'antd'; -import React, { useContext, useEffect, useRef } from 'react'; import { ErrorBoundary } from 'react-error-boundary'; + +import { ChartDataContext } from '../block/ChartDataProvider'; +import { useChart } from '../chart/group'; import { ChartConfigContext } from '../configure'; -import { useData, useFieldTransformer, useFieldsWithAssociation } from '../hooks'; +import { useData, useFieldsWithAssociation, useFieldTransformer } from '../hooks'; import { useChartsTranslation } from '../locale'; import { createRendererSchema, getField } from '../utils'; import { ChartRendererContext } from './ChartRendererProvider'; -import { useChart } from '../chart/group'; -import { ChartDataContext } from '../block/ChartDataProvider'; + const { Paragraph, Text } = Typography; export const ChartRenderer: React.FC & { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx b/packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx index 7c90abafe..1b5a7fe1f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx @@ -1,4 +1,4 @@ -import { useFieldSchema } from '@tachybase/schema'; +import React, { createContext, useContext } from 'react'; import { CollectionManagerProvider, DEFAULT_DATA_SOURCE_KEY, @@ -7,12 +7,14 @@ import { useDataSourceManager, useRequest, } from '@tachybase/client'; -import React, { createContext, useContext } from 'react'; -import { parseField, removeUnparsableFilter } from '../utils'; -import { ChartDataContext } from '../block/ChartDataProvider'; +import { useFieldSchema } from '@tachybase/schema'; + import { ConfigProvider } from 'antd'; -import { useChartFilter } from '../hooks'; + +import { ChartDataContext } from '../block/ChartDataProvider'; import { ChartFilterContext } from '../filter/FilterProvider'; +import { useChartFilter } from '../hooks'; +import { parseField, removeUnparsableFilter } from '../utils'; export type MeasureProps = { field: string | string[]; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/renderer/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/client/utils.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/client/utils.ts index 367ceb3b6..357f243e8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/client/utils.ts @@ -1,6 +1,7 @@ -import { Schema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { Schema, uid } from '@tachybase/schema'; + import lodash from 'lodash'; + import { SelectedField } from './configure'; import { FieldOption } from './hooks'; import { QueryProps } from './renderer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-data-visualization/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-data-visualization/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-data-visualization/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-data-visualization/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-data-visualization/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-data-visualization/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/api.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/api.test.ts index 4a5ae7493..6aa05cca9 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/api.test.ts @@ -1,6 +1,8 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import compose from 'koa-compose'; + import { parseBuilder, parseFieldAndAssociations, queryData } from '../actions/query'; describe('api', () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/formatter.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/formatter.test.ts index 35bcb7907..1c6c50486 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/formatter.test.ts @@ -1,4 +1,5 @@ import { vi } from 'vitest'; + import { dateFormatFn } from '../actions/formatter'; describe('formatter', () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/query.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/query.test.ts index cb6adcec6..1f1d47c8e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/server/__tests__/query.test.ts @@ -1,7 +1,10 @@ -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import compose from 'koa-compose'; import { vi } from 'vitest'; + import { cacheMiddleware, parseBuilder, parseFieldAndAssociations } from '../actions/query'; + const formatter = await import('../actions/formatter'); describe('query', () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/actions/formatter.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/actions/formatter.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/actions/query.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/actions/query.ts index ded68fe3f..565a59543 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/server/actions/query.ts @@ -1,9 +1,11 @@ import { Context, Next } from '@tachybase/actions'; -import { Field, FilterParser, snakeCase } from '@tachybase/database'; -import { formatter } from './formatter'; -import compose from 'koa-compose'; -import { parseFilter, getDateVars } from '@tachybase/utils'; import { Cache } from '@tachybase/cache'; +import { Field, FilterParser, snakeCase } from '@tachybase/database'; +import { getDateVars, parseFilter } from '@tachybase/utils'; + +import compose from 'koa-compose'; + +import { formatter } from './formatter'; type MeasureProps = { field: string | string[]; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-data-visualization/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/server/plugin.ts index 9a29afc47..7847a8266 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-data-visualization/src/server/plugin.ts @@ -1,7 +1,8 @@ +import { resolve } from 'path'; import { Cache } from '@tachybase/cache'; import { InstallOptions, Plugin } from '@tachybase/server'; + import { query } from './actions/query'; -import { resolve } from 'path'; export class DataVisualizationPlugin extends Plugin { cache: Cache; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-data-visualization/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-data-visualization/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/.npmignore b/packages/plugins/@tachybase/plugin-error-handler/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/.npmignore rename to packages/plugins/@tachybase/plugin-error-handler/.npmignore diff --git a/packages/plugins/@nocobase/plugin-error-handler/README.md b/packages/plugins/@tachybase/plugin-error-handler/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/README.md rename to packages/plugins/@tachybase/plugin-error-handler/README.md diff --git a/packages/plugins/@nocobase/plugin-error-handler/README.zh-CN.md b/packages/plugins/@tachybase/plugin-error-handler/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-error-handler/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-error-handler/client.d.ts b/packages/plugins/@tachybase/plugin-error-handler/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/client.d.ts rename to packages/plugins/@tachybase/plugin-error-handler/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/client.js b/packages/plugins/@tachybase/plugin-error-handler/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/client.js rename to packages/plugins/@tachybase/plugin-error-handler/client.js diff --git a/packages/plugins/@nocobase/plugin-error-handler/package.json b/packages/plugins/@tachybase/plugin-error-handler/package.json similarity index 92% rename from packages/plugins/@nocobase/plugin-error-handler/package.json rename to packages/plugins/@tachybase/plugin-error-handler/package.json index 119b3c283..4f2a5a913 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/package.json +++ b/packages/plugins/@tachybase/plugin-error-handler/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-error-handler", + "name": "@tachybase/plugin-error-handler", "displayName": "Error handler", - "version": "0.21.33", + "version": "0.21.34", "description": "Handling application errors and exceptions.", "repository": { "type": "git", diff --git a/packages/plugins/@nocobase/plugin-error-handler/server.d.ts b/packages/plugins/@tachybase/plugin-error-handler/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/server.d.ts rename to packages/plugins/@tachybase/plugin-error-handler/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/server.js b/packages/plugins/@tachybase/plugin-error-handler/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/server.js rename to packages/plugins/@tachybase/plugin-error-handler/server.js diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts b/packages/plugins/@tachybase/plugin-error-handler/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/index.ts b/packages/plugins/@tachybase/plugin-error-handler/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/index.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/en_US.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/en_US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/en_US.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/en_US.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/fr_FR.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/fr_FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/fr_FR.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/fr_FR.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/ja_JP.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/ja_JP.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/ja_JP.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/ja_JP.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/locale/zh_CN.json b/packages/plugins/@tachybase/plugin-error-handler/src/locale/zh_CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/locale/zh_CN.json rename to packages/plugins/@tachybase/plugin-error-handler/src/locale/zh_CN.json diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/__tests__/render-error.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/__tests__/render-error.test.ts index 6eccb210b..a72de3d16 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts +++ b/packages/plugins/@tachybase/plugin-error-handler/src/server/__tests__/render-error.test.ts @@ -1,5 +1,6 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + describe('create with exception', () => { let app: MockServer; beforeEach(async () => { diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/error-handler.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/error-handler.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/en_US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/en_US.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/es-ES.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/es-ES.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/fr_FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/fr_FR.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/ja_JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/ja_JP.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/locale/zh_CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/locale/zh_CN.ts diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts b/packages/plugins/@tachybase/plugin-error-handler/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts rename to packages/plugins/@tachybase/plugin-error-handler/src/server/server.ts index 4a716ddc2..1033fc95b 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-error-handler/src/server/server.ts @@ -1,7 +1,9 @@ -import { Schema } from '@formily/json-schema'; import { BaseError } from '@tachybase/database'; import { Plugin } from '@tachybase/server'; + +import { Schema } from '@formily/json-schema'; import lodash from 'lodash'; + import { ErrorHandler } from './error-handler'; import enUS from './locale/en_US'; import zhCN from './locale/zh_CN'; diff --git a/packages/plugins/@nocobase/plugin-export/.npmignore b/packages/plugins/@tachybase/plugin-export/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-export/.npmignore rename to packages/plugins/@tachybase/plugin-export/.npmignore diff --git a/packages/plugins/@nocobase/plugin-export/README.md b/packages/plugins/@tachybase/plugin-export/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-export/README.md rename to packages/plugins/@tachybase/plugin-export/README.md diff --git a/packages/plugins/@nocobase/plugin-export/README.zh-CN.md b/packages/plugins/@tachybase/plugin-export/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-export/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-export/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-export/client.d.ts b/packages/plugins/@tachybase/plugin-export/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/client.d.ts rename to packages/plugins/@tachybase/plugin-export/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-export/client.js b/packages/plugins/@tachybase/plugin-export/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-export/client.js rename to packages/plugins/@tachybase/plugin-export/client.js diff --git a/packages/plugins/@nocobase/plugin-export/package.json b/packages/plugins/@tachybase/plugin-export/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-export/package.json rename to packages/plugins/@tachybase/plugin-export/package.json index d6fe70806..373f3b261 100644 --- a/packages/plugins/@nocobase/plugin-export/package.json +++ b/packages/plugins/@tachybase/plugin-export/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-export", + "name": "@tachybase/plugin-export", "displayName": "Action: Export records", - "version": "0.21.33", + "version": "0.21.34", "description": "Export filtered records to excel, you can configure which fields to export.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-export/server.d.ts b/packages/plugins/@tachybase/plugin-export/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/server.d.ts rename to packages/plugins/@tachybase/plugin-export/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-export/server.js b/packages/plugins/@tachybase/plugin-export/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-export/server.js rename to packages/plugins/@tachybase/plugin-export/server.js diff --git a/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx b/packages/plugins/@tachybase/plugin-export/src/client/ExportActionInitializer.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-export/src/client/ExportActionInitializer.tsx index 0c4182a96..a2351531b 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/ExportActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-export/src/client/ExportActionInitializer.tsx @@ -1,5 +1,4 @@ -import { Schema, useFieldSchema } from '@tachybase/schema'; -import { merge } from '@tachybase/schema'; +import React from 'react'; import { SchemaInitializerSwitch, useCollection_deprecated, @@ -7,7 +6,8 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@tachybase/client'; -import React from 'react'; +import { merge, Schema, useFieldSchema } from '@tachybase/schema'; + import { useFields } from './useFields'; const findSchema = (schema: Schema, key: string, action: string) => { diff --git a/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx b/packages/plugins/@tachybase/plugin-export/src/client/ExportDesigner.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx rename to packages/plugins/@tachybase/plugin-export/src/client/ExportDesigner.tsx index e82931dde..8ea0ec873 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/ExportDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-export/src/client/ExportDesigner.tsx @@ -1,6 +1,4 @@ -import { ArrayItems } from '@tachybase/components'; -import type { ISchema } from '@tachybase/schema'; -import { useField, useFieldSchema } from '@tachybase/schema'; +import React, { useEffect, useState } from 'react'; import { GeneralSchemaDesigner, SchemaSettingsActionModalItem, @@ -9,8 +7,11 @@ import { SchemaSettingsRemove, useDesignable, } from '@tachybase/client'; -import React, { useEffect, useState } from 'react'; +import { ArrayItems } from '@tachybase/components'; +import { useField, useFieldSchema, type ISchema } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; + import { useShared } from './useShared'; export const ExportDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-export/src/client/ExportPluginProvider.tsx b/packages/plugins/@tachybase/plugin-export/src/client/ExportPluginProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/client/ExportPluginProvider.tsx rename to packages/plugins/@tachybase/plugin-export/src/client/ExportPluginProvider.tsx index 3ff1877a1..5f5452b73 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/ExportPluginProvider.tsx +++ b/packages/plugins/@tachybase/plugin-export/src/client/ExportPluginProvider.tsx @@ -1,5 +1,6 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { ExportActionInitializer, ExportDesigner, useExportAction } from './'; export const ExportPluginProvider = (props: any) => { diff --git a/packages/plugins/@nocobase/plugin-export/src/client/index.ts b/packages/plugins/@tachybase/plugin-export/src/client/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/client/index.ts rename to packages/plugins/@tachybase/plugin-export/src/client/index.ts index 8caf2c433..0824ebe2d 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-export/src/client/index.ts @@ -1,10 +1,12 @@ +import { Plugin } from '@tachybase/client'; + +import { ExportPluginProvider } from './ExportPluginProvider'; +import { exportActionSchemaSettings } from './schemaSettings'; + export * from './ExportActionInitializer'; export * from './ExportDesigner'; export * from './ExportPluginProvider'; export * from './useExportAction'; -import { Plugin } from '@tachybase/client'; -import { ExportPluginProvider } from './ExportPluginProvider'; -import { exportActionSchemaSettings } from './schemaSettings'; export class ExportPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts b/packages/plugins/@tachybase/plugin-export/src/client/schemaSettings.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts rename to packages/plugins/@tachybase/plugin-export/src/client/schemaSettings.ts index 30fd28c46..bb62fb629 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/schemaSettings.ts +++ b/packages/plugins/@tachybase/plugin-export/src/client/schemaSettings.ts @@ -1,8 +1,10 @@ +import { useEffect, useState } from 'react'; +import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@tachybase/client'; import { ArrayItems } from '@tachybase/components'; import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; -import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@tachybase/client'; -import { useEffect, useState } from 'react'; + import { useTranslation } from 'react-i18next'; + import { useShared } from './useShared'; export const exportActionSchemaSettings = new SchemaSettings({ diff --git a/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts b/packages/plugins/@tachybase/plugin-export/src/client/useExportAction.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts rename to packages/plugins/@tachybase/plugin-export/src/client/useExportAction.ts index 0583049a1..03d5e4db2 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/useExportAction.ts +++ b/packages/plugins/@tachybase/plugin-export/src/client/useExportAction.ts @@ -1,4 +1,3 @@ -import { useFieldSchema } from '@tachybase/schema'; import { useAPIClient, useBlockRequestContext, @@ -6,8 +5,10 @@ import { useCollectionManager_deprecated, useCompile, } from '@tachybase/client'; -import lodash from 'lodash'; +import { useFieldSchema } from '@tachybase/schema'; + import { saveAs } from 'file-saver'; +import lodash from 'lodash'; import { useTranslation } from 'react-i18next'; export const useExportAction = () => { diff --git a/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts b/packages/plugins/@tachybase/plugin-export/src/client/useFields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/client/useFields.ts rename to packages/plugins/@tachybase/plugin-export/src/client/useFields.ts index 5fcca1ec4..ce068d529 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/useFields.ts +++ b/packages/plugins/@tachybase/plugin-export/src/client/useFields.ts @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@tachybase/schema'; import { useCollectionManager_deprecated } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; export const useFields = (collectionName: string) => { const fieldSchema = useFieldSchema(); diff --git a/packages/plugins/@nocobase/plugin-export/src/client/useShared.ts b/packages/plugins/@tachybase/plugin-export/src/client/useShared.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/client/useShared.ts rename to packages/plugins/@tachybase/plugin-export/src/client/useShared.ts index 4baab3533..30c2ecd2f 100644 --- a/packages/plugins/@nocobase/plugin-export/src/client/useShared.ts +++ b/packages/plugins/@tachybase/plugin-export/src/client/useShared.ts @@ -1,4 +1,5 @@ import { Cascader, css, useCollection_deprecated } from '@tachybase/client'; + import { useFields } from './useFields'; export const useShared = () => { diff --git a/packages/plugins/@nocobase/plugin-export/src/index.ts b/packages/plugins/@tachybase/plugin-export/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/index.ts rename to packages/plugins/@tachybase/plugin-export/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/__tests__/utils/utils.test.ts b/packages/plugins/@tachybase/plugin-export/src/server/__tests__/utils/utils.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/__tests__/utils/utils.test.ts rename to packages/plugins/@tachybase/plugin-export/src/server/__tests__/utils/utils.test.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/actions/.gitkeep b/packages/plugins/@tachybase/plugin-export/src/server/actions/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/actions/.gitkeep rename to packages/plugins/@tachybase/plugin-export/src/server/actions/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-export/src/server/actions/export-xlsx.ts b/packages/plugins/@tachybase/plugin-export/src/server/actions/export-xlsx.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/server/actions/export-xlsx.ts rename to packages/plugins/@tachybase/plugin-export/src/server/actions/export-xlsx.ts index 593faa8ec..ac3281c22 100644 --- a/packages/plugins/@nocobase/plugin-export/src/server/actions/export-xlsx.ts +++ b/packages/plugins/@tachybase/plugin-export/src/server/actions/export-xlsx.ts @@ -1,6 +1,8 @@ import { Context, Next } from '@tachybase/actions'; import { Repository } from '@tachybase/database'; + import xlsx from 'node-xlsx'; + import render from '../renders'; import { columns2Appends } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-export/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-export/src/server/actions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-export/src/server/actions/index.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-export/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-export/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-export/src/server/index.ts b/packages/plugins/@tachybase/plugin-export/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-export/src/server/index.ts rename to packages/plugins/@tachybase/plugin-export/src/server/index.ts index b64c42750..a985ca6a2 100644 --- a/packages/plugins/@nocobase/plugin-export/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-export/src/server/index.ts @@ -1,4 +1,5 @@ import { InstallOptions, Plugin } from '@tachybase/server'; + import { exportXlsx } from './actions'; export class ExportPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-export/src/server/models/.gitkeep b/packages/plugins/@tachybase/plugin-export/src/server/models/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/models/.gitkeep rename to packages/plugins/@tachybase/plugin-export/src/server/models/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-export/src/server/renders/index.ts b/packages/plugins/@tachybase/plugin-export/src/server/renders/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/renders/index.ts rename to packages/plugins/@tachybase/plugin-export/src/server/renders/index.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/renders/renders.ts b/packages/plugins/@tachybase/plugin-export/src/server/renders/renders.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/renders/renders.ts rename to packages/plugins/@tachybase/plugin-export/src/server/renders/renders.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/repositories/.gitkeep b/packages/plugins/@tachybase/plugin-export/src/server/repositories/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/repositories/.gitkeep rename to packages/plugins/@tachybase/plugin-export/src/server/repositories/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-export/src/server/utils/columns2Appends.ts b/packages/plugins/@tachybase/plugin-export/src/server/utils/columns2Appends.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/utils/columns2Appends.ts rename to packages/plugins/@tachybase/plugin-export/src/server/utils/columns2Appends.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/server/utils/index.ts b/packages/plugins/@tachybase/plugin-export/src/server/utils/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/server/utils/index.ts rename to packages/plugins/@tachybase/plugin-export/src/server/utils/index.ts diff --git a/packages/plugins/@nocobase/plugin-export/src/swagger/index.json b/packages/plugins/@tachybase/plugin-export/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-export/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-export/src/swagger/index.json diff --git a/packages/plugins/@tachybase/plugin-external-data-source/package.json b/packages/plugins/@tachybase/plugin-external-data-source/package.json index 91a193673..f2efa9eb4 100644 --- a/packages/plugins/@tachybase/plugin-external-data-source/package.json +++ b/packages/plugins/@tachybase/plugin-external-data-source/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/plugin-external-data-source", - "version": "0.0.16", + "version": "0.0.17", "main": "dist/server/index.js", "dependencies": { "antd": "5.16.1", diff --git a/packages/plugins/@tachybase/plugin-external-data-source/src/client/index.tsx b/packages/plugins/@tachybase/plugin-external-data-source/src/client/index.tsx index 4d15e16cc..f93070387 100644 --- a/packages/plugins/@tachybase/plugin-external-data-source/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-external-data-source/src/client/index.tsx @@ -1,8 +1,9 @@ import { Plugin } from '@tachybase/client'; -import { PluginDataSourceManagerClient } from '@nocobase/plugin-data-source-manager/client'; -import { tval } from './locale'; -import { PgDataSourceSettingsForm } from './forms/pg'; +import { PluginDataSourceManagerClient } from '@tachybase/plugin-data-source-manager/client'; + import { MysqlDataSourceSettingsForm } from './forms/msql'; +import { PgDataSourceSettingsForm } from './forms/pg'; +import { tval } from './locale'; export class PluginExternalDataSourceClient extends Plugin { async load() { diff --git a/packages/plugins/@tachybase/plugin-external-data-source/src/server/mysql/database-introspector.ts b/packages/plugins/@tachybase/plugin-external-data-source/src/server/mysql/database-introspector.ts index 8e451f556..0ee18d9bf 100644 --- a/packages/plugins/@tachybase/plugin-external-data-source/src/server/mysql/database-introspector.ts +++ b/packages/plugins/@tachybase/plugin-external-data-source/src/server/mysql/database-introspector.ts @@ -1,6 +1,7 @@ -import { ViewFieldInference } from '@tachybase/database'; -import { mergeOptions } from '@nocobase/plugin-data-source-manager'; import { EventEmitter } from 'events'; +import { ViewFieldInference } from '@tachybase/database'; +import { mergeOptions } from '@tachybase/plugin-data-source-manager'; + import _ from 'lodash'; export class DatabaseIntrospector extends EventEmitter { diff --git a/packages/plugins/@tachybase/plugin-external-data-source/src/server/pg/database-introspector.ts b/packages/plugins/@tachybase/plugin-external-data-source/src/server/pg/database-introspector.ts index 8c44b5bcc..245683f9f 100644 --- a/packages/plugins/@tachybase/plugin-external-data-source/src/server/pg/database-introspector.ts +++ b/packages/plugins/@tachybase/plugin-external-data-source/src/server/pg/database-introspector.ts @@ -1,8 +1,11 @@ -import { ViewFieldInference } from '@tachybase/database'; -import { mergeOptions } from '@nocobase/plugin-data-source-manager'; import { EventEmitter } from 'events'; +import { ViewFieldInference } from '@tachybase/database'; +import { mergeOptions } from '@tachybase/plugin-data-source-manager'; + import _ from 'lodash'; + import { showUniqueIndexes } from './utils'; + export class DatabaseIntrospector extends EventEmitter { db; typeInterfaceMap; diff --git a/packages/plugins/@tachybase/plugin-field-markdown-vditor/README.md b/packages/plugins/@tachybase/plugin-field-markdown-vditor/README.md index c186374ae..70421375f 100644 --- a/packages/plugins/@tachybase/plugin-field-markdown-vditor/README.md +++ b/packages/plugins/@tachybase/plugin-field-markdown-vditor/README.md @@ -1 +1 @@ -# @nocobase/plugin-field-markdown-vditor +# @tachybase/plugin-field-markdown-vditor diff --git a/packages/plugins/@tachybase/plugin-field-markdown-vditor/package.json b/packages/plugins/@tachybase/plugin-field-markdown-vditor/package.json index 2196c0e3b..9e7780799 100644 --- a/packages/plugins/@tachybase/plugin-field-markdown-vditor/package.json +++ b/packages/plugins/@tachybase/plugin-field-markdown-vditor/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-field-markdown-vditor", "displayName": "Collection field: Markdown(Vditor)", - "version": "0.0.10", + "version": "0.0.11", "description": "Used to store Markdown and render it using Vditor editor, supports common Markdown syntax such as list, code, quote, etc., and supports uploading images, recordings, etc.It also allows for instant rendering, where what you see is what you get.", "keywords": [ "Collection fields" diff --git a/packages/plugins/@nocobase/plugin-file-manager/.npmignore b/packages/plugins/@tachybase/plugin-file-manager/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/.npmignore rename to packages/plugins/@tachybase/plugin-file-manager/.npmignore diff --git a/packages/plugins/@nocobase/plugin-file-manager/README.md b/packages/plugins/@tachybase/plugin-file-manager/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/README.md rename to packages/plugins/@tachybase/plugin-file-manager/README.md diff --git a/packages/plugins/@nocobase/plugin-file-manager/README.zh-CN.md b/packages/plugins/@tachybase/plugin-file-manager/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-file-manager/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-file-manager/client.d.ts b/packages/plugins/@tachybase/plugin-file-manager/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/client.d.ts rename to packages/plugins/@tachybase/plugin-file-manager/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/client.js b/packages/plugins/@tachybase/plugin-file-manager/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/client.js rename to packages/plugins/@tachybase/plugin-file-manager/client.js diff --git a/packages/plugins/@nocobase/plugin-file-manager/package.json b/packages/plugins/@tachybase/plugin-file-manager/package.json similarity index 95% rename from packages/plugins/@nocobase/plugin-file-manager/package.json rename to packages/plugins/@tachybase/plugin-file-manager/package.json index d2c38af6d..c8df38aa8 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/package.json +++ b/packages/plugins/@tachybase/plugin-file-manager/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-file-manager", + "name": "@tachybase/plugin-file-manager", "displayName": "File manager", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides files storage services with files collection template and attachment field.", "keywords": [ "Collections", diff --git a/packages/plugins/@nocobase/plugin-file-manager/server.d.ts b/packages/plugins/@tachybase/plugin-file-manager/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/server.d.ts rename to packages/plugins/@tachybase/plugin-file-manager/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/server.js b/packages/plugins/@tachybase/plugin-file-manager/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/server.js rename to packages/plugins/@tachybase/plugin-file-manager/server.js diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx b/packages/plugins/@tachybase/plugin-file-manager/src/client/FileManagerProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx rename to packages/plugins/@tachybase/plugin-file-manager/src/client/FileManagerProvider.tsx index 30bd13f9c..548791413 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/FileManagerProvider.tsx @@ -1,5 +1,6 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React, { FC } from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import * as hooks from './hooks'; import { UploadActionInitializer } from './initializers'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx b/packages/plugins/@tachybase/plugin-file-manager/src/client/FileStorage.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx rename to packages/plugins/@tachybase/plugin-file-manager/src/client/FileStorage.tsx index 01a6f9bbc..a6b12381b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/FileStorage.tsx @@ -1,13 +1,15 @@ -import { PlusOutlined, DownOutlined } from '@ant-design/icons'; -import { uid } from '@tachybase/schema'; +import React, { useState } from 'react'; import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + +import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Card, Dropdown } from 'antd'; import _ from 'lodash'; -import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; + import FileManagerPlugin from '.'; -import { StorageOptions } from './StorageOptions'; import { storageSchema } from './schemas/storage'; +import { StorageOptions } from './StorageOptions'; export const CreateStorage = () => { const [schema, setSchema] = useState({}); diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx b/packages/plugins/@tachybase/plugin-file-manager/src/client/StorageOptions.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx rename to packages/plugins/@tachybase/plugin-file-manager/src/client/StorageOptions.tsx index a76f37064..153a13f13 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/StorageOptions.tsx @@ -1,7 +1,7 @@ -import { FormLayout } from '@tachybase/components'; -import { Field } from '@tachybase/schema'; -import { observer, RecursionField, Schema, useField, useForm } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; +import { FormLayout } from '@tachybase/components'; +import { Field, observer, RecursionField, Schema, useField, useForm } from '@tachybase/schema'; + import { NAMESPACE } from './locale'; const schema = { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts index fc5774ab7..bcb3a1b37 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { dayjs } from '@tachybase/utils'; + import { CreateLocalStorage } from './pageobject/localStorage'; test.describe('file manager', () => { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts index 883f82c3c..a492ce02b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts @@ -1,5 +1,6 @@ import { expect, test } from '@tachybase/test/e2e'; import { dayjs } from '@tachybase/utils'; + import { CreateLocalStorage, EditLocalStorage } from './pageobject/localStorage'; test.describe('File manager', () => { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/hooks/useUploadFiles.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/hooks/useUploadFiles.ts index 1784049ab..0dbd19da7 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/hooks/useUploadFiles.ts @@ -1,3 +1,4 @@ +import { useContext, useMemo } from 'react'; import { RecordPickerContext, useActionContext, @@ -5,8 +6,9 @@ import { useCollection, useSourceIdFromParentRecord, } from '@tachybase/client'; + import { notification } from 'antd'; -import { useContext, useMemo } from 'react'; + import { useFmTranslation } from '../locale'; // 限制上传文件大小为 10M diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx b/packages/plugins/@tachybase/plugin-file-manager/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-file-manager/src/client/index.tsx index 0e5b2f9f1..7ac658cb8 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/index.tsx @@ -1,9 +1,10 @@ import { Plugin, useCollection_deprecated } from '@tachybase/client'; + import { FileManagerProvider } from './FileManagerProvider'; import { FileStoragePane } from './FileStorage'; +import { AttachmentFieldInterface } from './interfaces/attachment'; import { NAMESPACE } from './locale'; import { storageTypes } from './schemas/storageTypes'; -import { AttachmentFieldInterface } from './interfaces/attachment'; import { FileCollectionTemplate } from './templates'; export class FileManagerPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx b/packages/plugins/@tachybase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx index cf5d4f4c2..d402e474a 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx @@ -1,5 +1,5 @@ -import { ActionInitializer, useCollection_deprecated } from '@tachybase/client'; import React from 'react'; +import { ActionInitializer, useCollection_deprecated } from '@tachybase/client'; export const UploadActionInitializer = (props) => { const collection = useCollection_deprecated(); diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/initializers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/initializers/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/interfaces/attachment.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/interfaces/attachment.ts index 14fdff797..27a413e64 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/interfaces/attachment.ts @@ -1,6 +1,6 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; + import { NAMESPACE } from '../locale'; export class AttachmentFieldInterface extends CollectionFieldInterface { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storage.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storage.ts index 817ffcd7e..245ef8e42 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storage.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; + import { NAMESPACE } from '../locale'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/local.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/local.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/templates/file.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/templates/file.ts index ad87255fd..b15b45ff4 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/client/templates/file.ts @@ -1,4 +1,5 @@ import { CollectionTemplate, getConfigurableProperties } from '@tachybase/client'; + import { NAMESPACE } from '../locale'; export class FileCollectionTemplate extends CollectionTemplate { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/client/templates/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/client/templates/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/ja-JP.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/ja-JP.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/ja-JP.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/ja-JP.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/ru-RU.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/ru-RU.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/ru-RU.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/ru-RU.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/tr-TR.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/tr-TR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/tr-TR.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/tr-TR.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-file-manager/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-file-manager/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/FileModel.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/FileModel.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/action.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/action.test.ts index c3506d182..5a56c5a9c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/action.test.ts @@ -1,5 +1,6 @@ import { promises as fs } from 'fs'; import path from 'path'; + import { getApp } from '.'; import { FILE_FIELD_NAME, STORAGE_TYPE_LOCAL } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/attachment.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/attachment.test.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/image.jpg b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/image.jpg similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/image.jpg rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/image.jpg diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/image.png b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/image.png similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/image.png rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/image.png diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/text.txt b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/text.txt similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/files/text.txt rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/files/text.txt diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/index.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/index.ts index ba10d4818..bea2ef637 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/index.ts @@ -1,6 +1,7 @@ -import { MockServer, createMockServer } from '@tachybase/test'; -import send from 'koa-send'; import path from 'path'; +import { createMockServer, MockServer } from '@tachybase/test'; + +import send from 'koa-send'; import supertest from 'supertest'; export async function getApp(options = {}): Promise { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts index b06c57705..4eb7a5304 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts @@ -1,9 +1,10 @@ import path from 'path'; -import { MockServer } from '@tachybase/test'; -import aliossStorage from '../../storages/ali-oss'; -import { FILE_FIELD_NAME } from '../../constants'; -import { getApp, requestFile } from '..'; import { Database } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + +import { getApp, requestFile } from '..'; +import { FILE_FIELD_NAME } from '../../constants'; +import aliossStorage from '../../storages/ali-oss'; const itif = process.env.ALI_OSS_ACCESS_KEY_SECRET ? it : it.skip; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts index 7f6f61f69..2e2a179d2 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts @@ -1,9 +1,10 @@ import path from 'path'; -import { MockServer } from '@tachybase/test'; -import s3Storage from '../../storages/s3'; -import { FILE_FIELD_NAME } from '../../constants'; -import { getApp, requestFile } from '..'; import Database from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + +import { getApp, requestFile } from '..'; +import { FILE_FIELD_NAME } from '../../constants'; +import s3Storage from '../../storages/s3'; const itif = process.env.AWS_SECRET_ACCESS_KEY ? it : it.skip; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts index e216c3891..5b7418b08 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts @@ -1,9 +1,10 @@ import path from 'path'; -import { MockServer } from '@tachybase/test'; -import txStorage from '../../storages/tx-cos'; -import { FILE_FIELD_NAME } from '../../constants'; -import { getApp, requestFile } from '..'; import { Database } from '@tachybase/database'; +import { MockServer } from '@tachybase/test'; + +import { getApp, requestFile } from '..'; +import { FILE_FIELD_NAME } from '../../constants'; +import txStorage from '../../storages/tx-cos'; const itif = process.env.TX_COS_ACCESS_KEY_SECRET ? it : it.skip; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/tables/users.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/__tests__/tables/users.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/actions/attachments.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/actions/attachments.ts index 39e0fb492..c40547543 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/actions/attachments.ts @@ -1,6 +1,6 @@ +import path from 'path'; import { Context, Next } from '@tachybase/actions'; import { koaMulter as multer } from '@tachybase/utils'; -import path from 'path'; import { DEFAULT_MAX_FILE_SIZE, FILE_FIELD_NAME, LIMIT_FILES } from '../constants'; import * as Rules from '../rules'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/actions/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/actions/index.ts index 7c0b308b5..64a017d81 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/actions/index.ts @@ -1,4 +1,5 @@ import actions from '@tachybase/actions'; + import { createMiddleware, destroyMiddleware } from './attachments'; export default function ({ app }) { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/collections/attachments.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/collections/attachments.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/collections/storages.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/collections/storages.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/constants.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/rules/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/rules/index.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/rules/mimetype.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/rules/mimetype.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/server.ts index d2526297c..1bb479a1e 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/server.ts @@ -1,7 +1,8 @@ -import { Plugin } from '@tachybase/server'; import { resolve } from 'path'; -import { FileModel } from './FileModel'; +import { Plugin } from '@tachybase/server'; + import initActions from './actions'; +import { FileModel } from './FileModel'; import { getStorageConfig } from './storages'; export { default as storageTypes } from './storages'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/ali-oss.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/storages/ali-oss.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/index.ts similarity index 95% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/storages/index.ts index b8f7d8a50..f43c9b37a 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/index.ts @@ -1,14 +1,14 @@ -import { StorageEngine } from 'multer'; import Application from '@tachybase/server'; import { Registry } from '@tachybase/utils'; -import local from './local'; +import { StorageEngine } from 'multer'; + +import { STORAGE_TYPE_ALI_OSS, STORAGE_TYPE_LOCAL, STORAGE_TYPE_S3, STORAGE_TYPE_TX_COS } from '../constants'; import oss from './ali-oss'; +import local from './local'; import s3 from './s3'; import cos from './tx-cos'; -import { STORAGE_TYPE_LOCAL, STORAGE_TYPE_ALI_OSS, STORAGE_TYPE_S3, STORAGE_TYPE_TX_COS } from '../constants'; - export interface StorageModel { title: string; type: string; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/local.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/storages/local.ts index 2a4a0e113..3a5e46a17 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts +++ b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/local.ts @@ -1,7 +1,9 @@ import fs from 'fs/promises'; +import path from 'path'; + import mkdirp from 'mkdirp'; import multer from 'multer'; -import path from 'path'; + import { AttachmentModel } from '.'; import { STORAGE_TYPE_LOCAL } from '../constants'; import { getFilename } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/s3.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/storages/s3.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/storages/tx-cos.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/storages/tx-cos.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts b/packages/plugins/@tachybase/plugin-file-manager/src/server/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts rename to packages/plugins/@tachybase/plugin-file-manager/src/server/utils.ts diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/swagger/index.json b/packages/plugins/@tachybase/plugin-file-manager/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-file-manager/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-file-manager/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-formula-field/.npmignore b/packages/plugins/@tachybase/plugin-formula-field/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/.npmignore rename to packages/plugins/@tachybase/plugin-formula-field/.npmignore diff --git a/packages/plugins/@nocobase/plugin-formula-field/README.md b/packages/plugins/@tachybase/plugin-formula-field/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/README.md rename to packages/plugins/@tachybase/plugin-formula-field/README.md diff --git a/packages/plugins/@nocobase/plugin-formula-field/README.zh-CN.md b/packages/plugins/@tachybase/plugin-formula-field/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-formula-field/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-formula-field/client.d.ts b/packages/plugins/@tachybase/plugin-formula-field/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/client.d.ts rename to packages/plugins/@tachybase/plugin-formula-field/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/client.js b/packages/plugins/@tachybase/plugin-formula-field/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/client.js rename to packages/plugins/@tachybase/plugin-formula-field/client.js diff --git a/packages/plugins/@nocobase/plugin-formula-field/package.json b/packages/plugins/@tachybase/plugin-formula-field/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-formula-field/package.json rename to packages/plugins/@tachybase/plugin-formula-field/package.json index daa0ee21c..f251e3c88 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/package.json +++ b/packages/plugins/@tachybase/plugin-formula-field/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-formula-field", + "name": "@tachybase/plugin-formula-field", "displayName": "Collection field: Formula", - "version": "0.21.33", + "version": "0.21.34", "description": "Configure and store the results of calculations between multiple field values in the same record, supporting both Math.js and Excel formula functions.", "keywords": [ "Collection fields" diff --git a/packages/plugins/@nocobase/plugin-formula-field/server.d.ts b/packages/plugins/@tachybase/plugin-formula-field/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/server.d.ts rename to packages/plugins/@tachybase/plugin-formula-field/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/server.js b/packages/plugins/@tachybase/plugin-formula-field/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/server.js rename to packages/plugins/@tachybase/plugin-formula-field/server.js diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Expression.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/Expression.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Expression.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/Expression.tsx diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/Result.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/Result.tsx index 76a561ded..8d47cd4e1 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/Result.tsx +++ b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/Result.tsx @@ -1,7 +1,4 @@ -import { onFormValuesChange } from '@tachybase/schema'; -import { useField, useFieldSchema, useFormEffects } from '@tachybase/schema'; -import { toJS } from '@tachybase/schema'; -import type { CollectionOptions } from '@tachybase/client'; +import React, { useEffect, useState } from 'react'; import { Checkbox, DatePicker, @@ -10,10 +7,11 @@ import { useCollection_deprecated, useCollectionManager_deprecated, useFormBlockContext, + type CollectionOptions, } from '@tachybase/client'; import { Evaluator, evaluators } from '@tachybase/evaluators/client'; +import { onFormValuesChange, toJS, useField, useFieldSchema, useFormEffects } from '@tachybase/schema'; import { Registry, toFixedByStep } from '@tachybase/utils/client'; -import React, { useEffect, useState } from 'react'; import { toDbType } from '../../../utils'; diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx index 3d1525dc1..9393bdb00 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx +++ b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/demos/demo2.tsx @@ -1,9 +1,9 @@ /** * title: Formula */ -import { connect } from '@tachybase/schema'; -import { Formula, SchemaComponent, SchemaComponentProvider } from '@tachybase/client'; import React from 'react'; +import { Formula, SchemaComponent, SchemaComponentProvider } from '@tachybase/client'; +import { connect } from '@tachybase/schema'; const Expression = connect(Formula.Expression); diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.md b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.md rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/index.md diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/Formula/index.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/Formula/index.tsx diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/components/index.ts b/packages/plugins/@tachybase/plugin-formula-field/src/client/components/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/components/index.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/client/components/index.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/index.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/index.tsx index 922169c0b..8d407de7b 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-formula-field/src/client/index.tsx @@ -1,6 +1,7 @@ import { Plugin } from '@tachybase/client'; -import { FormulaFieldInterface } from './interfaces/formula'; + import { Formula } from './components'; +import { FormulaFieldInterface } from './interfaces/formula'; import { renderExpressionDescription } from './scopes'; export class FormulaFieldPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/interfaces/formula.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/interfaces/formula.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/interfaces/formula.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/interfaces/formula.tsx index a336515fc..b8759d232 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/interfaces/formula.tsx +++ b/packages/plugins/@tachybase/plugin-formula-field/src/client/interfaces/formula.tsx @@ -1,6 +1,7 @@ import { CollectionFieldInterface, i18n, interfacesProperties } from '@tachybase/client'; import { Evaluator, evaluators } from '@tachybase/evaluators/client'; import { lodash, Registry } from '@tachybase/utils/client'; + import { NAMESPACE } from '../locale'; // const booleanReactions = [ diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-formula-field/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/client/scopes.tsx b/packages/plugins/@tachybase/plugin-formula-field/src/client/scopes.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/client/scopes.tsx rename to packages/plugins/@tachybase/plugin-formula-field/src/client/scopes.tsx index 89203630b..81557432a 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/client/scopes.tsx +++ b/packages/plugins/@tachybase/plugin-formula-field/src/client/scopes.tsx @@ -1,7 +1,8 @@ +import React from 'react'; import { css, i18n } from '@tachybase/client'; import { Evaluator, evaluators } from '@tachybase/evaluators/client'; import { Registry } from '@tachybase/utils/client'; -import React from 'react'; + import { NAMESPACE } from './locale'; export function renderExpressionDescription(key: string) { diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/index.ts b/packages/plugins/@tachybase/plugin-formula-field/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/index.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-formula-field/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-formula-field/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-formula-field/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-formula-field/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-formula-field/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-formula-field/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/server/__tests__/formula-field.test.ts b/packages/plugins/@tachybase/plugin-formula-field/src/server/__tests__/formula-field.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/server/__tests__/formula-field.test.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/server/__tests__/formula-field.test.ts index c2d5e4f83..1d00eb849 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/server/__tests__/formula-field.test.ts +++ b/packages/plugins/@tachybase/plugin-formula-field/src/server/__tests__/formula-field.test.ts @@ -1,4 +1,5 @@ import { Database, mockDatabase } from '@tachybase/database'; + import { FormulaField } from '../formula-field'; describe('formula field', () => { diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/server/formula-field.ts b/packages/plugins/@tachybase/plugin-formula-field/src/server/formula-field.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/server/formula-field.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/server/formula-field.ts index 38147abfa..d4d264a19 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/server/formula-field.ts +++ b/packages/plugins/@tachybase/plugin-formula-field/src/server/formula-field.ts @@ -1,5 +1,6 @@ import { BaseFieldOptions, DataTypes, Field } from '@tachybase/database'; import { evaluators } from '@tachybase/evaluators'; + import { toDbType } from '../utils'; export interface FormulaFieldOptions extends BaseFieldOptions { diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/server/index.ts b/packages/plugins/@tachybase/plugin-formula-field/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/server/index.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/server/migrations/20230213161904-alter-field.ts b/packages/plugins/@tachybase/plugin-formula-field/src/server/migrations/20230213161904-alter-field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/server/migrations/20230213161904-alter-field.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/server/migrations/20230213161904-alter-field.ts diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-formula-field/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-formula-field/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/server/plugin.ts index b23e210ca..7187cdaf1 100644 --- a/packages/plugins/@nocobase/plugin-formula-field/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-formula-field/src/server/plugin.ts @@ -1,5 +1,6 @@ -import { InstallOptions, Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import { InstallOptions, Plugin } from '@tachybase/server'; + import { FormulaField } from './formula-field'; export class FormulaFieldPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-formula-field/src/utils/index.ts b/packages/plugins/@tachybase/plugin-formula-field/src/utils/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-formula-field/src/utils/index.ts rename to packages/plugins/@tachybase/plugin-formula-field/src/utils/index.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/.npmignore b/packages/plugins/@tachybase/plugin-gantt/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/.npmignore rename to packages/plugins/@tachybase/plugin-gantt/.npmignore diff --git a/packages/plugins/@tachybase/plugin-gantt/README.md b/packages/plugins/@tachybase/plugin-gantt/README.md new file mode 100644 index 000000000..32e007ab9 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-gantt/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-gantt diff --git a/packages/plugins/@nocobase/plugin-gantt/client.d.ts b/packages/plugins/@tachybase/plugin-gantt/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/client.d.ts rename to packages/plugins/@tachybase/plugin-gantt/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/client.js b/packages/plugins/@tachybase/plugin-gantt/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/client.js rename to packages/plugins/@tachybase/plugin-gantt/client.js diff --git a/packages/plugins/@nocobase/plugin-gantt/package.json b/packages/plugins/@tachybase/plugin-gantt/package.json similarity index 92% rename from packages/plugins/@nocobase/plugin-gantt/package.json rename to packages/plugins/@tachybase/plugin-gantt/package.json index 0077a0f2d..cd128577f 100644 --- a/packages/plugins/@nocobase/plugin-gantt/package.json +++ b/packages/plugins/@tachybase/plugin-gantt/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-gantt", + "name": "@tachybase/plugin-gantt", "displayName": "Block: Gantt", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides Gantt block.", "keywords": [ "Blocks" diff --git a/packages/plugins/@nocobase/plugin-gantt/server.d.ts b/packages/plugins/@tachybase/plugin-gantt/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/server.d.ts rename to packages/plugins/@tachybase/plugin-gantt/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/server.js b/packages/plugins/@tachybase/plugin-gantt/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/server.js rename to packages/plugins/@tachybase/plugin-gantt/server.js diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Designer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Designer.tsx index 819da7b58..96ca2071e 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Designer.tsx @@ -1,5 +1,6 @@ -import { GeneralSchemaDesigner, useCollection_deprecated, useSchemaTemplate } from '@tachybase/client'; import React from 'react'; +import { GeneralSchemaDesigner, useCollection_deprecated, useSchemaTemplate } from '@tachybase/client'; + export const GanttDesigner = () => { const { name, title } = useCollection_deprecated(); const template = useSchemaTemplate(); diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Settings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Settings.tsx index 5d3e1a172..446c1a603 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/Gantt.Settings.tsx @@ -1,11 +1,10 @@ -import { useField, useFieldSchema } from '@tachybase/schema'; import { + removeNullCondition, SchemaSettings, SchemaSettingsBlockTitleItem, SchemaSettingsDataScope, SchemaSettingsSelectItem, SchemaSettingsTemplate, - removeNullCondition, setDataLoadingModeSettingsItem, useCollection, useCollection_deprecated, @@ -14,6 +13,8 @@ import { useDesignable, useFormBlockContext, } from '@tachybase/client'; +import { useField, useFieldSchema } from '@tachybase/schema'; + import { useGanttBlockContext } from './GanttBlockProvider'; import { useGanttTranslation, useOptions } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttActionInitializers.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/GanttActionInitializers.tsx index 803841d50..e2c4608b6 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttActionInitializers.tsx @@ -1,5 +1,5 @@ -import { useFieldSchema } from '@tachybase/schema'; import { CompatibleSchemaInitializer, useCollection_deprecated } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; /** * @deprecated diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockInitializer.tsx index 033aae485..880951fe7 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockInitializer.tsx @@ -1,19 +1,20 @@ -import { FormOutlined } from '@ant-design/icons'; -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext } from '@tachybase/schema'; import React, { useContext } from 'react'; -import { useTranslation } from 'react-i18next'; - import { - useSchemaInitializer, - useSchemaInitializerItem, - useCollectionManager_deprecated, - useGlobalTheme, + DataBlockInitializer, FormDialog, SchemaComponent, - DataBlockInitializer, SchemaComponentOptions, + useCollectionManager_deprecated, + useGlobalTheme, + useSchemaInitializer, + useSchemaInitializerItem, } from '@tachybase/client'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext } from '@tachybase/schema'; + +import { FormOutlined } from '@ant-design/icons'; +import { useTranslation } from 'react-i18next'; + import { createGanttBlockUISchema } from './createGanttBlockUISchema'; export const GanttBlockInitializer = () => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockProvider.tsx index 174ac7c5e..0f1a6fccc 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/GanttBlockProvider.tsx @@ -1,12 +1,12 @@ -import { useField } from '@tachybase/schema'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { - useACLRoleContext, - useCollection_deprecated, BlockProvider, - useBlockRequestContext, TableBlockProvider, + useACLRoleContext, + useBlockRequestContext, + useCollection_deprecated, } from '@tachybase/client'; +import { useField } from '@tachybase/schema'; export const GanttBlockContext = createContext({}); GanttBlockContext.displayName = 'GanttBlockContext'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/drag.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/drag.test.ts index 1da70d78b..776073172 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/drag.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneEmptyGantt } from './utils'; test('drag and adjust start time, end time, and progress', async ({ page, mockPage, mockRecord }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts index 8ca0d6ed4..cddf2f8aa 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { generalWithDatetimeFields, oneEmptyGantt } from './utils'; test('BlockInitializers should add gantt block', async ({ page, mockPage, mockCollections }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts index 499c42a19..aa2c4095e 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts @@ -1,6 +1,8 @@ import { expect, test } from '@tachybase/test/e2e'; + import { getYmd } from '../helpers/other-helper'; import { oneEmptyGantt } from './utils'; + const mockData = { singleLineText: 'within apropos leaker whoever how', singleLineText2: 'the inasmuch unwelcome gah hm cleverly muscle worriedly lazily', diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/__e2e__/utils.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/__tests__/date-helper.test.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/__tests__/date-helper.test.tsx index 4742c3680..1d9372e0c 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/__tests__/date-helper.test.tsx @@ -1,4 +1,4 @@ -import { seedDates, addToDate, getWeekNumberISO8601 } from '../helpers/date-helper'; +import { addToDate, getWeekNumberISO8601, seedDates } from '../helpers/date-helper'; import { ViewMode } from '../types/public-types'; describe('seed date', () => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/calendar.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/calendar.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/Event.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/Event.tsx index 3147d9866..7aafa0f96 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/Event.tsx @@ -1,5 +1,5 @@ -import { observer } from '@tachybase/schema'; import React from 'react'; +import { observer } from '@tachybase/schema'; export const Event = observer( (props) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/gantt.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/gantt.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx index 7bc38e0a8..f0d79803e 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx @@ -1,11 +1,12 @@ import React, { useEffect, useState } from 'react'; -import { EventOption } from '../../types/public-types'; -import { BarTask } from '../../types/bar-task'; -import { Arrow } from '../other/arrow'; + import { handleTaskBySVGMouseEvent } from '../../helpers/bar-helper'; import { isKeyboardEvent } from '../../helpers/other-helper'; -import { TaskItem } from '../task-item/task-item'; +import { BarTask } from '../../types/bar-task'; import { BarMoveAction, GanttContentMoveAction, GanttEvent } from '../../types/gantt-task-actions'; +import { EventOption } from '../../types/public-types'; +import { Arrow } from '../other/arrow'; +import { TaskItem } from '../task-item/task-item'; let lastAction = null; let lastStart = null; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt.tsx index 24bafbbbf..debde1f07 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/components/gantt/task-gantt.tsx @@ -1,8 +1,9 @@ import React, { forwardRef, useEffect, useRef } from 'react'; + import { Calendar, CalendarProps } from '../calendar/calendar'; import { Grid, GridProps } from '../grid/grid'; -import { TaskGanttContent, TaskGanttContentProps } from './task-gantt-content'; import useStyles from './style'; +import { TaskGanttContent, TaskGanttContentProps } from './task-gantt-content'; export type TaskGanttProps = { gridProps: GridProps; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/grid-body.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/grid-body.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/grid.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/grid.tsx index 63ab7049c..652dbbc23 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/grid.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { GridBody, GridBodyProps } from './grid-body'; export type GridProps = GridBodyProps; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/grid/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/arrow.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/other/arrow.tsx index e21fb10e3..9943604eb 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/arrow.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { BarTask } from '../../types/bar-task'; type ArrowProps = { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/other/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/tooltip.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/other/tooltip.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/other/vertical-scroll.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/other/vertical-scroll.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/bar.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/bar/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/milestone/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/milestone/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/project/project.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/project/project.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/project/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/project/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/style.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/task-item.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/components/task-item/task-item.tsx diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/context.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/context.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/context.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/context.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/createGanttBlockUISchema.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/createGanttBlockUISchema.tsx index 66004a20c..fe4f69c34 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/createGanttBlockUISchema.tsx @@ -1,5 +1,4 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; export const createGanttBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/demos/demo1.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/demos/demo1.tsx index 751113462..3ba9c2e33 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/demos/demo1.tsx @@ -1,5 +1,5 @@ -import { Gantt, SchemaComponent, SchemaComponentProvider, useGanttBlockProps } from '@tachybase/client'; import React from 'react'; +import { Gantt, SchemaComponent, SchemaComponentProvider, useGanttBlockProps } from '@tachybase/client'; const schema = { type: 'object', diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/helpers/bar-helper.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/helpers/bar-helper.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/helpers/date-helper.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/helpers/date-helper.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/helpers/other-helper.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/helpers/other-helper.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/index.md b/packages/plugins/@tachybase/plugin-gantt/src/client/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/index.md rename to packages/plugins/@tachybase/plugin-gantt/src/client/index.md diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/index.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/index.tsx index 9f4537723..31ab42919 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/index.tsx @@ -1,12 +1,13 @@ -import { ActionBar, CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; -import { GanttDesigner } from './Gantt.Designer'; -import { ganttSettings, oldGanttSettings } from './Gantt.Settings'; -import { GanttActionInitializers_deprecated, ganttActionInitializers } from './GanttActionInitializers'; -import { GanttBlockInitializer } from './GanttBlockInitializer'; -import { GanttBlockProvider, useGanttBlockProps } from './GanttBlockProvider'; +import { ActionBar, CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; + import { Event } from './components/gantt/Event'; import { Gantt } from './components/gantt/gantt'; +import { GanttDesigner } from './Gantt.Designer'; +import { ganttSettings, oldGanttSettings } from './Gantt.Settings'; +import { ganttActionInitializers, GanttActionInitializers_deprecated } from './GanttActionInitializers'; +import { GanttBlockInitializer } from './GanttBlockInitializer'; +import { GanttBlockProvider, useGanttBlockProps } from './GanttBlockProvider'; import { ViewMode } from './types/public-types'; Gantt.ActionBar = ActionBar; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/types/bar-task.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/types/bar-task.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/types/date-setup.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/types/date-setup.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/types/gantt-task-actions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/types/gantt-task-actions.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts b/packages/plugins/@tachybase/plugin-gantt/src/client/types/public-types.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts rename to packages/plugins/@tachybase/plugin-gantt/src/client/types/public-types.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx b/packages/plugins/@tachybase/plugin-gantt/src/client/utils.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx rename to packages/plugins/@tachybase/plugin-gantt/src/client/utils.tsx index 5301204c5..ac63bbb96 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx +++ b/packages/plugins/@tachybase/plugin-gantt/src/client/utils.tsx @@ -1,4 +1,5 @@ import { useCollection_deprecated, useCompile } from '@tachybase/client'; + import { useTranslation } from 'react-i18next'; export const useGanttTranslation = () => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/index.ts b/packages/plugins/@tachybase/plugin-gantt/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/index.ts rename to packages/plugins/@tachybase/plugin-gantt/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-gantt/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-gantt/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-gantt/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-gantt/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-gantt/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-gantt/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-gantt/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-gantt/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-gantt/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-gantt/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-gantt/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-gantt/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-gantt/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-gantt/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-gantt/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-gantt/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-gantt/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-gantt/src/server/index.ts b/packages/plugins/@tachybase/plugin-gantt/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/server/index.ts rename to packages/plugins/@tachybase/plugin-gantt/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-gantt/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-gantt/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/.npmignore b/packages/plugins/@tachybase/plugin-graph-collection-manager/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/.npmignore rename to packages/plugins/@tachybase/plugin-graph-collection-manager/.npmignore diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/README.md b/packages/plugins/@tachybase/plugin-graph-collection-manager/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/README.md rename to packages/plugins/@tachybase/plugin-graph-collection-manager/README.md diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/README.zh-CN.md b/packages/plugins/@tachybase/plugin-graph-collection-manager/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-graph-collection-manager/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/client.d.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/client.d.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/client.js b/packages/plugins/@tachybase/plugin-graph-collection-manager/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/client.js rename to packages/plugins/@tachybase/plugin-graph-collection-manager/client.js diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/package.json similarity index 93% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/package.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/package.json index 6ae4d0c67..4b55bd57b 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/package.json +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-graph-collection-manager", + "name": "@tachybase/plugin-graph-collection-manager", "displayName": "Graph collection manager", - "version": "0.21.33", + "version": "0.21.34", "description": "An ER diagram-like tool. Currently only the Master database is supported.", "keywords": [ "Data model tools" diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/server.d.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/server.d.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/server.js b/packages/plugins/@tachybase/plugin-graph-collection-manager/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/server.js rename to packages/plugins/@tachybase/plugin-graph-collection-manager/server.js diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx index e10b9b775..a7ca1a03a 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx @@ -1,7 +1,9 @@ -import { DeleteOutlined } from '@ant-design/icons'; -import { uid } from '@tachybase/schema'; -import { css, SchemaComponent, useActionContext, useRequest } from '@tachybase/client'; import React, { useEffect } from 'react'; +import { css, SchemaComponent, useActionContext, useRequest } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + +import { DeleteOutlined } from '@ant-design/icons'; + import { useCreateActionAndRefreshCM } from './action-hooks'; import { GraphDrawPage } from './GraphDrawPage'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/action-hooks.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/action-hooks.tsx index 95af6e21b..954ed468b 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/action-hooks.tsx @@ -1,18 +1,19 @@ -import { observer, useForm } from '@tachybase/schema'; -import { action } from '@tachybase/schema'; +import React, { useContext, useEffect } from 'react'; import { - useAPIClient, useActionContext, + useAPIClient, useCollectionFieldFormValues, useCollectionManager_deprecated, useCompile, useRequest, } from '@tachybase/client'; +import { action, observer, useForm } from '@tachybase/schema'; import { error, lodash } from '@tachybase/utils/client'; -import { Select, message } from 'antd'; + +import { message, Select } from 'antd'; import cloneDeep from 'lodash/cloneDeep'; -import React, { useContext, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; + import { GraphCollectionContext } from './components/CollectionNodeProvder'; export const useValuesFromRecord = (options, data) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx index fcf00a2e7..d1ce3ee02 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx @@ -1,7 +1,9 @@ -import { PlusOutlined } from '@ant-design/icons'; -import { AddCollection } from '@tachybase/client'; -import { Button } from 'antd'; import React from 'react'; +import { AddCollection } from '@tachybase/client'; + +import { PlusOutlined } from '@ant-design/icons'; +import { Button } from 'antd'; + import { useCancelAction } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx index b7588ae80..010faf80c 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx @@ -1,6 +1,8 @@ -import { PlusOutlined } from '@ant-design/icons'; -import { AddFieldAction as AddCollectionFieldAction } from '@tachybase/client'; import React from 'react'; +import { AddFieldAction as AddCollectionFieldAction } from '@tachybase/client'; + +import { PlusOutlined } from '@ant-design/icons'; + import { useCancelAction, useCreateAction } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx index 7a23fdca9..4acd038df 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx @@ -1,6 +1,7 @@ import React from 'react'; -import { Button } from 'antd'; + import { BranchesOutlined } from '@ant-design/icons'; +import { Button } from 'antd'; export const ConnectAssociationAction = (props) => { const { targetGraph, item } = props; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx index 96dad3a76..da6b09386 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx @@ -1,7 +1,9 @@ import React from 'react'; -import { Tooltip } from 'antd'; -import { FallOutlined } from '@ant-design/icons'; import { useCollectionManager_deprecated } from '@tachybase/client'; + +import { FallOutlined } from '@ant-design/icons'; +import { Tooltip } from 'antd'; + import { getPopupContainer, useGCMTranslation } from '../utils'; export const ConnectChildAction = (props) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx index ed0ac9676..64a9df1d2 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx @@ -1,7 +1,9 @@ import React from 'react'; -import { Tooltip } from 'antd'; -import { RiseOutlined } from '@ant-design/icons'; import { useCollectionManager_deprecated } from '@tachybase/client'; + +import { RiseOutlined } from '@ant-design/icons'; +import { Tooltip } from 'antd'; + import { getPopupContainer, useGCMTranslation } from '../utils'; export const ConnectParentAction = (props) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx index f06528d23..c9a5e844e 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx @@ -1,6 +1,8 @@ -import { DeleteOutlined } from '@ant-design/icons'; -import { DeleteCollection } from '@tachybase/client'; import React from 'react'; +import { DeleteCollection } from '@tachybase/client'; + +import { DeleteOutlined } from '@ant-design/icons'; + import { useCancelAction, useUpdateCollectionActionAndRefreshCM } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx index 09cc1d2fc..1f3cfbeb8 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx @@ -1,6 +1,8 @@ -import { EditOutlined } from '@ant-design/icons'; -import { EditCollection } from '@tachybase/client'; import React from 'react'; +import { EditCollection } from '@tachybase/client'; + +import { EditOutlined } from '@ant-design/icons'; + import { useCancelAction, useUpdateCollectionActionAndRefreshCM } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx index a646fca65..e60dfa78f 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx @@ -1,6 +1,8 @@ -import { EditOutlined } from '@ant-design/icons'; -import { EditFieldAction as EditCollectionFieldAction } from '@tachybase/client'; import React from 'react'; +import { EditFieldAction as EditCollectionFieldAction } from '@tachybase/client'; + +import { EditOutlined } from '@ant-design/icons'; + import { useCancelAction, useUpdateFieldAction } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/Entity.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/Entity.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx index 2ca827cf6..71e0e0bdd 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx @@ -1,7 +1,8 @@ -import { observer } from '@tachybase/schema'; -import { css, useCollectionManager_deprecated, useCompile } from '@tachybase/client'; -import { Tag } from 'antd'; import React from 'react'; +import { css, useCollectionManager_deprecated, useCompile } from '@tachybase/client'; +import { observer } from '@tachybase/schema'; + +import { Tag } from 'antd'; import { useTranslation } from 'react-i18next'; export const FieldSummary = observer( diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx similarity index 94% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx index 20f3f5e3a..614c073ba 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx @@ -1,8 +1,10 @@ import React, { forwardRef } from 'react'; -import { Tooltip, Button } from 'antd'; + import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons'; -import { getPopupContainer, useGCMTranslation } from '../utils'; import { useFullscreen } from 'ahooks'; +import { Button, Tooltip } from 'antd'; + +import { getPopupContainer, useGCMTranslation } from '../utils'; export const FullscreenAction = forwardRef(() => { const { t } = useGCMTranslation(); diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx index ed96d0f49..eff58f004 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx @@ -1,6 +1,8 @@ -import { CopyOutlined } from '@ant-design/icons'; -import { OverridingFieldAction as OverridingCollectionFieldAction } from '@tachybase/client'; import React from 'react'; +import { OverridingFieldAction as OverridingCollectionFieldAction } from '@tachybase/client'; + +import { CopyOutlined } from '@ant-design/icons'; + import { useCancelAction, useCreateAction } from '../action-hooks'; import { getPopupContainer } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx index fe4a4d5f8..2c834ed4f 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx @@ -1,7 +1,9 @@ import React, { useContext, useMemo } from 'react'; -import { CollapsedContext } from '../GraphDrawPage'; import { Select, useCompile } from '@tachybase/client'; + import { useSearchParams } from 'react-router-dom'; + +import { CollapsedContext } from '../GraphDrawPage'; import { getPopupContainer } from '../utils'; export const SelectCollectionsAction = (props) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx index d01ee7347..13ccd43af 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx @@ -1,6 +1,8 @@ -import { EyeOutlined } from '@ant-design/icons'; -import { ViewFieldAction as ViewCollectionFieldAction } from '@tachybase/client'; import React from 'react'; +import { ViewFieldAction as ViewCollectionFieldAction } from '@tachybase/client'; + +import { EyeOutlined } from '@ant-design/icons'; + import { getPopupContainer } from '../utils'; export const ViewFieldAction = ({ item: record, parentItem: parentRecord }) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/index.tsx index e7a90acaa..80aaffe8e 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/index.tsx @@ -1,6 +1,8 @@ import { Plugin } from '@tachybase/client'; + import { GraphCollectionPane } from './GraphCollectionShortcut'; import { NAMESPACE } from './locale'; + export class GraphCollectionPlugin extends Plugin { async load() { this.app.pluginSettingsManager.add(`data-source-manager/main.graph`, { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/style.tsx diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/utils.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/utils.tsx index d4c274d0c..a59ca441e 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/client/utils.tsx @@ -1,6 +1,7 @@ +import { CollectionOptions } from '@tachybase/client'; + import lodash from 'lodash'; import { useTranslation } from 'react-i18next'; -import { CollectionOptions } from '@tachybase/client'; const { groupBy, reduce, uniq, uniqBy } = lodash; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/ja-JP.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/ja-JP.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/ja-JP.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/ja-JP.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/actions/.gitkeep b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/actions/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/actions/.gitkeep rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/actions/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/index.ts index 5e875606e..7d8c21ae8 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/index.ts @@ -1,5 +1,5 @@ -import { Plugin } from '@tachybase/server'; import path from 'path'; +import { Plugin } from '@tachybase/server'; export class GraphCollectionManagerPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/models/.gitkeep b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/models/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/models/.gitkeep rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/models/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/repositories/.gitkeep b/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/repositories/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/repositories/.gitkeep rename to packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/repositories/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-iframe-block/.npmignore b/packages/plugins/@tachybase/plugin-iframe-block/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/.npmignore rename to packages/plugins/@tachybase/plugin-iframe-block/.npmignore diff --git a/packages/plugins/@nocobase/plugin-iframe-block/README.md b/packages/plugins/@tachybase/plugin-iframe-block/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/README.md rename to packages/plugins/@tachybase/plugin-iframe-block/README.md diff --git a/packages/plugins/@nocobase/plugin-iframe-block/README.zh-CN.md b/packages/plugins/@tachybase/plugin-iframe-block/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-iframe-block/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-iframe-block/client.d.ts b/packages/plugins/@tachybase/plugin-iframe-block/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/client.d.ts rename to packages/plugins/@tachybase/plugin-iframe-block/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/client.js b/packages/plugins/@tachybase/plugin-iframe-block/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/client.js rename to packages/plugins/@tachybase/plugin-iframe-block/client.js diff --git a/packages/plugins/@nocobase/plugin-iframe-block/package.json b/packages/plugins/@tachybase/plugin-iframe-block/package.json similarity index 93% rename from packages/plugins/@nocobase/plugin-iframe-block/package.json rename to packages/plugins/@tachybase/plugin-iframe-block/package.json index 47abc7b84..bec3df2c2 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/package.json +++ b/packages/plugins/@tachybase/plugin-iframe-block/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-iframe-block", + "name": "@tachybase/plugin-iframe-block", "displayName": "Block: iframe", - "version": "0.21.33", + "version": "0.21.34", "description": "Create an iframe block on the page to embed and display external web pages or content.", "keywords": [ "Blocks" diff --git a/packages/plugins/@nocobase/plugin-iframe-block/server.d.ts b/packages/plugins/@tachybase/plugin-iframe-block/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/server.d.ts rename to packages/plugins/@tachybase/plugin-iframe-block/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/server.js b/packages/plugins/@tachybase/plugin-iframe-block/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/server.js rename to packages/plugins/@tachybase/plugin-iframe-block/server.js diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx b/packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.Designer.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.Designer.tsx index 4e5e352f8..fce7e4795 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.Designer.tsx @@ -1,5 +1,4 @@ -import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import React from 'react'; import { GeneralSchemaDesigner, SchemaSettingsDivider, @@ -8,7 +7,8 @@ import { useAPIClient, useDesignable, } from '@tachybase/client'; -import React from 'react'; +import { ISchema, uid, useField, useFieldSchema } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; export const IframeDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx b/packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.tsx index 3b68e98bd..f1d595398 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/Iframe.tsx +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/Iframe.tsx @@ -1,10 +1,12 @@ -import { observer, useField } from '@tachybase/schema'; -import { useAPIClient, useApp } from '@tachybase/client'; -import { Card } from 'antd'; import React from 'react'; +import { useAPIClient, useApp } from '@tachybase/client'; +import { observer, useField } from '@tachybase/schema'; + +import { Card } from 'antd'; import { useTranslation } from 'react-i18next'; import RIframe from 'react-iframe'; import type { IIframe } from 'react-iframe/types'; + import { IframeDesigner } from './Iframe.Designer'; function isNumeric(str: string | undefined) { diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx index 1f6d50cd6..d94f3e319 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockInitializer.tsx @@ -1,6 +1,7 @@ -import { FormOutlined } from '@ant-design/icons'; -import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@tachybase/client'; import React from 'react'; +import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@tachybase/client'; + +import { FormOutlined } from '@ant-design/icons'; export const IframeBlockInitializer = () => { const { insert } = useSchemaInitializer(); diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockProvider.tsx b/packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockProvider.tsx index 8f779f8b8..f921c1708 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/IframeBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/IframeBlockProvider.tsx @@ -1,5 +1,6 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { Iframe } from './Iframe'; import { IframeBlockInitializer } from './IframeBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/index.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/client/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/index.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/index.ts index 3bd700a16..77c99b4bf 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/index.ts @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { IframeBlockProvider } from './IframeBlockProvider'; import { iframeBlockSchemaSettings, iframeBlockSchemaSettings_deprecated } from './schemaSettings'; diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/client/schemaSettings.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/client/schemaSettings.ts index b5e98f16d..ba656fd7d 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/client/schemaSettings.ts +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/client/schemaSettings.ts @@ -1,6 +1,6 @@ -import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; import { SchemaSettings, useAPIClient, useDesignable } from '@tachybase/client'; +import { ISchema, uid, useField, useFieldSchema } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; /** diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/index.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/index.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/server/actions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/server/actions/index.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-iframe-block/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-iframe-block/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/server/collections/iframe-html.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/server/collections/iframe-html.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/server/collections/iframe-html.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/server/collections/iframe-html.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/server/index.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/server/index.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-iframe-block/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/server/plugin.ts index fd034195c..511ed567e 100644 --- a/packages/plugins/@nocobase/plugin-iframe-block/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-iframe-block/src/server/plugin.ts @@ -1,5 +1,6 @@ -import { InstallOptions, Plugin } from '@tachybase/server'; import path from 'path'; +import { InstallOptions, Plugin } from '@tachybase/server'; + import { getHtml } from './actions'; export class IframeBlockPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-iframe-block/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-iframe-block/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-iframe-block/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-iframe-block/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-import/.npmignore b/packages/plugins/@tachybase/plugin-import/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-import/.npmignore rename to packages/plugins/@tachybase/plugin-import/.npmignore diff --git a/packages/plugins/@nocobase/plugin-import/README.md b/packages/plugins/@tachybase/plugin-import/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-import/README.md rename to packages/plugins/@tachybase/plugin-import/README.md diff --git a/packages/plugins/@nocobase/plugin-import/README.zh-CN.md b/packages/plugins/@tachybase/plugin-import/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-import/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-import/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-import/client.d.ts b/packages/plugins/@tachybase/plugin-import/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/client.d.ts rename to packages/plugins/@tachybase/plugin-import/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-import/client.js b/packages/plugins/@tachybase/plugin-import/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-import/client.js rename to packages/plugins/@tachybase/plugin-import/client.js diff --git a/packages/plugins/@nocobase/plugin-import/package.json b/packages/plugins/@tachybase/plugin-import/package.json similarity index 95% rename from packages/plugins/@nocobase/plugin-import/package.json rename to packages/plugins/@tachybase/plugin-import/package.json index cebd71fd6..7bbe2f58c 100644 --- a/packages/plugins/@nocobase/plugin-import/package.json +++ b/packages/plugins/@tachybase/plugin-import/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-import", + "name": "@tachybase/plugin-import", "displayName": "Action: Import records", - "version": "0.21.33", + "version": "0.21.34", "description": "Import records using excel templates. You can configure which fields to import and templates will be generated automatically.", "keywords": [ "Actions" diff --git a/packages/plugins/@nocobase/plugin-import/server.d.ts b/packages/plugins/@tachybase/plugin-import/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/server.d.ts rename to packages/plugins/@tachybase/plugin-import/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-import/server.js b/packages/plugins/@tachybase/plugin-import/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-import/server.js rename to packages/plugins/@tachybase/plugin-import/server.js diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx b/packages/plugins/@tachybase/plugin-import/src/client/ImportActionInitializer.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx rename to packages/plugins/@tachybase/plugin-import/src/client/ImportActionInitializer.tsx index 5e84fc712..e15477bed 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportActionInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-import/src/client/ImportActionInitializer.tsx @@ -1,15 +1,14 @@ -import type { ISchema } from '@tachybase/schema'; -import { Schema, useFieldSchema } from '@tachybase/schema'; -import { merge } from '@tachybase/schema'; +import React from 'react'; import { - SchemaInitializerSwitch, css, + SchemaInitializerSwitch, useCollection_deprecated, useDesignable, useSchemaInitializer, useSchemaInitializerItem, } from '@tachybase/client'; -import React from 'react'; +import { merge, Schema, useFieldSchema, type ISchema } from '@tachybase/schema'; + import { NAMESPACE } from './constants'; import { useFields } from './useFields'; diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx b/packages/plugins/@tachybase/plugin-import/src/client/ImportDesigner.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx rename to packages/plugins/@tachybase/plugin-import/src/client/ImportDesigner.tsx index d59c724af..1731b6b62 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-import/src/client/ImportDesigner.tsx @@ -1,6 +1,4 @@ -import { ArrayItems } from '@tachybase/components'; -import type { ISchema } from '@tachybase/schema'; -import { useField, useFieldSchema } from '@tachybase/schema'; +import React, { useEffect, useState } from 'react'; import { GeneralSchemaDesigner, SchemaSettingsActionModalItem, @@ -9,8 +7,11 @@ import { SchemaSettingsRemove, useDesignable, } from '@tachybase/client'; -import React, { useEffect, useState } from 'react'; +import { ArrayItems } from '@tachybase/components'; +import { useField, useFieldSchema, type ISchema } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; + import { useShared } from './useShared'; export const ImportDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportModal.tsx b/packages/plugins/@tachybase/plugin-import/src/client/ImportModal.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/ImportModal.tsx rename to packages/plugins/@tachybase/plugin-import/src/client/ImportModal.tsx index 76ca1c668..b9cc7a3d1 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportModal.tsx +++ b/packages/plugins/@tachybase/plugin-import/src/client/ImportModal.tsx @@ -1,9 +1,11 @@ -import { ExclamationCircleFilled, LoadingOutlined } from '@ant-design/icons'; +import React from 'react'; import { css } from '@tachybase/client'; + +import { ExclamationCircleFilled, LoadingOutlined } from '@ant-design/icons'; import { Button, Modal, Space, Spin } from 'antd'; import { saveAs } from 'file-saver'; -import React from 'react'; import { useTranslation } from 'react-i18next'; + import { NAMESPACE } from './constants'; import { useImportContext } from './context'; diff --git a/packages/plugins/@nocobase/plugin-import/src/client/ImportPluginProvider.tsx b/packages/plugins/@tachybase/plugin-import/src/client/ImportPluginProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/ImportPluginProvider.tsx rename to packages/plugins/@tachybase/plugin-import/src/client/ImportPluginProvider.tsx index 6b53c2caf..5d7a4f861 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/ImportPluginProvider.tsx +++ b/packages/plugins/@tachybase/plugin-import/src/client/ImportPluginProvider.tsx @@ -1,6 +1,8 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React, { useState } from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { createPortal } from 'react-dom'; + import { ImportActionInitializer, ImportDesigner } from '.'; import { ImportContext } from './context'; import { ImportModal, ImportStatus } from './ImportModal'; diff --git a/packages/plugins/@nocobase/plugin-import/src/client/constants.ts b/packages/plugins/@tachybase/plugin-import/src/client/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/client/constants.ts rename to packages/plugins/@tachybase/plugin-import/src/client/constants.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/client/context.ts b/packages/plugins/@tachybase/plugin-import/src/client/context.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/client/context.ts rename to packages/plugins/@tachybase/plugin-import/src/client/context.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/client/index.ts b/packages/plugins/@tachybase/plugin-import/src/client/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/index.ts rename to packages/plugins/@tachybase/plugin-import/src/client/index.ts index 48438e727..78237ab24 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-import/src/client/index.ts @@ -1,3 +1,8 @@ +import { Plugin, useCollection_deprecated } from '@tachybase/client'; + +import { ImportPluginProvider } from './ImportPluginProvider'; +import { importActionSchemaSettings } from './schemaSettings'; + // i18n.addResources('zh-CN', NAMESPACE, zhCN); // i18n.addResources('en-US', NAMESPACE, enUS); @@ -6,10 +11,6 @@ export * from './ImportDesigner'; export * from './ImportPluginProvider'; export * from './useImportAction'; -import { Plugin, useCollection_deprecated } from '@tachybase/client'; -import { ImportPluginProvider } from './ImportPluginProvider'; -import { importActionSchemaSettings } from './schemaSettings'; - export class ImportPlugin extends Plugin { async load() { this.app.use(ImportPluginProvider); diff --git a/packages/plugins/@nocobase/plugin-import/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-import/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-import/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts b/packages/plugins/@tachybase/plugin-import/src/client/schemaSettings.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts rename to packages/plugins/@tachybase/plugin-import/src/client/schemaSettings.ts index f999f8c9c..c500e6de2 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/schemaSettings.ts +++ b/packages/plugins/@tachybase/plugin-import/src/client/schemaSettings.ts @@ -1,8 +1,10 @@ +import { useEffect, useState } from 'react'; +import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@tachybase/client'; import { ArrayItems } from '@tachybase/components'; import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; -import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@tachybase/client'; -import { useEffect, useState } from 'react'; + import { useTranslation } from 'react-i18next'; + import { useShared } from './useShared'; export const importActionSchemaSettings = new SchemaSettings({ diff --git a/packages/plugins/@nocobase/plugin-import/src/client/useFields.ts b/packages/plugins/@tachybase/plugin-import/src/client/useFields.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/client/useFields.ts rename to packages/plugins/@tachybase/plugin-import/src/client/useFields.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts b/packages/plugins/@tachybase/plugin-import/src/client/useImportAction.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts rename to packages/plugins/@tachybase/plugin-import/src/client/useImportAction.ts index 20f8c7585..49dbeee55 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/useImportAction.ts +++ b/packages/plugins/@tachybase/plugin-import/src/client/useImportAction.ts @@ -1,4 +1,3 @@ -import { Schema, useFieldSchema, useForm } from '@tachybase/schema'; import { useActionContext, useAPIClient, @@ -7,9 +6,12 @@ import { useCollectionManager_deprecated, useCompile, } from '@tachybase/client'; -import lodash from 'lodash'; +import { Schema, useFieldSchema, useForm } from '@tachybase/schema'; + import { saveAs } from 'file-saver'; +import lodash from 'lodash'; import { useTranslation } from 'react-i18next'; + import { NAMESPACE } from './constants'; import { useImportContext } from './context'; import { ImportStatus } from './ImportModal'; diff --git a/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts b/packages/plugins/@tachybase/plugin-import/src/client/useShared.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/client/useShared.ts rename to packages/plugins/@tachybase/plugin-import/src/client/useShared.ts index 018a17cc6..70727f390 100644 --- a/packages/plugins/@nocobase/plugin-import/src/client/useShared.ts +++ b/packages/plugins/@tachybase/plugin-import/src/client/useShared.ts @@ -1,6 +1,8 @@ -import type { VoidField } from '@tachybase/schema'; import { Cascader, css, useCollection_deprecated } from '@tachybase/client'; +import type { VoidField } from '@tachybase/schema'; + import { useTranslation } from 'react-i18next'; + import { NAMESPACE } from './constants'; import { useFields } from './useFields'; diff --git a/packages/plugins/@nocobase/plugin-import/src/index.ts b/packages/plugins/@tachybase/plugin-import/src/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/index.ts rename to packages/plugins/@tachybase/plugin-import/src/index.ts index 350fd47f2..52103ae41 100644 --- a/packages/plugins/@nocobase/plugin-import/src/index.ts +++ b/packages/plugins/@tachybase/plugin-import/src/index.ts @@ -1,5 +1,6 @@ // @ts-ignore import { name } from '../package.json'; + export * from './server'; export { default } from './server'; export const namespace = name; diff --git a/packages/plugins/@nocobase/plugin-import/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-import/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-import/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-import/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-import/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-import/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-import/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-import/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-import/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-import/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-import/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-import/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-import/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-import/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-import/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-import/src/server/actions/.gitkeep b/packages/plugins/@tachybase/plugin-import/src/server/actions/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/actions/.gitkeep rename to packages/plugins/@tachybase/plugin-import/src/server/actions/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-import/src/server/actions/downloadXlsxTemplate.ts b/packages/plugins/@tachybase/plugin-import/src/server/actions/downloadXlsxTemplate.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/server/actions/downloadXlsxTemplate.ts rename to packages/plugins/@tachybase/plugin-import/src/server/actions/downloadXlsxTemplate.ts index c3899a07d..945dcb9cb 100644 --- a/packages/plugins/@nocobase/plugin-import/src/server/actions/downloadXlsxTemplate.ts +++ b/packages/plugins/@tachybase/plugin-import/src/server/actions/downloadXlsxTemplate.ts @@ -1,4 +1,5 @@ import { Context, Next } from '@tachybase/actions'; + import xlsx from 'node-xlsx'; export async function downloadXlsxTemplate(ctx: Context, next: Next) { diff --git a/packages/plugins/@nocobase/plugin-import/src/server/actions/importXlsx.ts b/packages/plugins/@tachybase/plugin-import/src/server/actions/importXlsx.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/server/actions/importXlsx.ts rename to packages/plugins/@tachybase/plugin-import/src/server/actions/importXlsx.ts index 6d0b9ea24..5a13a6007 100644 --- a/packages/plugins/@nocobase/plugin-import/src/server/actions/importXlsx.ts +++ b/packages/plugins/@tachybase/plugin-import/src/server/actions/importXlsx.ts @@ -1,8 +1,10 @@ import { Context, Next } from '@tachybase/actions'; import { Collection, Repository } from '@tachybase/database'; import { uid } from '@tachybase/utils'; + import xlsx from 'node-xlsx'; import XLSX from 'xlsx'; + import { namespace } from '../../'; const IMPORT_LIMIT_COUNT = 10000; diff --git a/packages/plugins/@nocobase/plugin-import/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-import/src/server/actions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-import/src/server/actions/index.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-import/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-import/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-import/src/server/index.ts b/packages/plugins/@tachybase/plugin-import/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/server/index.ts rename to packages/plugins/@tachybase/plugin-import/src/server/index.ts index 19a474d1a..26158c541 100644 --- a/packages/plugins/@nocobase/plugin-import/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-import/src/server/index.ts @@ -1,4 +1,5 @@ import { InstallOptions, Plugin } from '@tachybase/server'; + import { namespace } from '..'; import { downloadXlsxTemplate, importXlsx } from './actions'; import { enUS, zhCN } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-import/src/server/locale/en-US.ts b/packages/plugins/@tachybase/plugin-import/src/server/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-import/src/server/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-import/src/server/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-import/src/server/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-import/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-import/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-import/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-import/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/middleware/index.ts b/packages/plugins/@tachybase/plugin-import/src/server/middleware/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/middleware/index.ts rename to packages/plugins/@tachybase/plugin-import/src/server/middleware/index.ts diff --git a/packages/plugins/@nocobase/plugin-import/src/server/models/.gitkeep b/packages/plugins/@tachybase/plugin-import/src/server/models/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/models/.gitkeep rename to packages/plugins/@tachybase/plugin-import/src/server/models/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-import/src/server/repositories/.gitkeep b/packages/plugins/@tachybase/plugin-import/src/server/repositories/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/server/repositories/.gitkeep rename to packages/plugins/@tachybase/plugin-import/src/server/repositories/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-import/src/server/utils/index.ts b/packages/plugins/@tachybase/plugin-import/src/server/utils/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/server/utils/index.ts rename to packages/plugins/@tachybase/plugin-import/src/server/utils/index.ts index e9b6ee6f7..041c18913 100644 --- a/packages/plugins/@nocobase/plugin-import/src/server/utils/index.ts +++ b/packages/plugins/@tachybase/plugin-import/src/server/utils/index.ts @@ -1,4 +1,5 @@ import lodash from 'lodash'; + import * as transforms from './transform'; function getTransform(name: string): Function { diff --git a/packages/plugins/@nocobase/plugin-import/src/server/utils/transform.ts b/packages/plugins/@tachybase/plugin-import/src/server/utils/transform.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-import/src/server/utils/transform.ts rename to packages/plugins/@tachybase/plugin-import/src/server/utils/transform.ts index 40dbdf8b0..218452a1b 100644 --- a/packages/plugins/@nocobase/plugin-import/src/server/utils/transform.ts +++ b/packages/plugins/@tachybase/plugin-import/src/server/utils/transform.ts @@ -1,5 +1,7 @@ import { dayjs, str2moment } from '@tachybase/utils'; + import * as math from 'mathjs'; + import { namespace } from '../../'; export async function _({ value, field }) { diff --git a/packages/plugins/@nocobase/plugin-import/src/swagger/index.json b/packages/plugins/@tachybase/plugin-import/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-import/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-import/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-kanban/.npmignore b/packages/plugins/@tachybase/plugin-kanban/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/.npmignore rename to packages/plugins/@tachybase/plugin-kanban/.npmignore diff --git a/packages/plugins/@tachybase/plugin-kanban/README.md b/packages/plugins/@tachybase/plugin-kanban/README.md new file mode 100644 index 000000000..068f13b54 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-kanban/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-kanban diff --git a/packages/plugins/@nocobase/plugin-kanban/client.d.ts b/packages/plugins/@tachybase/plugin-kanban/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/client.d.ts rename to packages/plugins/@tachybase/plugin-kanban/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/client.js b/packages/plugins/@tachybase/plugin-kanban/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/client.js rename to packages/plugins/@tachybase/plugin-kanban/client.js diff --git a/packages/plugins/@nocobase/plugin-kanban/package.json b/packages/plugins/@tachybase/plugin-kanban/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-kanban/package.json rename to packages/plugins/@tachybase/plugin-kanban/package.json index 21e409ffe..d4a036456 100644 --- a/packages/plugins/@nocobase/plugin-kanban/package.json +++ b/packages/plugins/@tachybase/plugin-kanban/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-kanban", + "name": "@tachybase/plugin-kanban", "displayName": "Block: Kanban", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides kanban block.", "keywords": [ "Blocks" diff --git a/packages/plugins/@nocobase/plugin-kanban/server.d.ts b/packages/plugins/@tachybase/plugin-kanban/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/server.d.ts rename to packages/plugins/@tachybase/plugin-kanban/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/server.js b/packages/plugins/@tachybase/plugin-kanban/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/server.js rename to packages/plugins/@tachybase/plugin-kanban/server.js diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx index d1aa7b7fa..c430a4ff3 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx @@ -1,5 +1,4 @@ -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext, useField } from '@tachybase/schema'; +import React, { useContext } from 'react'; import { FormDialog, SchemaComponent, @@ -9,11 +8,12 @@ import { useCompile, useGlobalTheme, } from '@tachybase/client'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext, uid, useField } from '@tachybase/schema'; + import { Button, Space } from 'antd'; -import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; -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/@tachybase/plugin-kanban/src/client/Kanban.Card.Designer.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Card.Designer.tsx index 1adaad24d..47117f872 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Card.Designer.tsx @@ -1,10 +1,8 @@ -import { MenuOutlined } from '@ant-design/icons'; -import { ISchema, useFieldSchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import React from 'react'; import { CompatibleSchemaInitializer, - SchemaInitializerOpenModeSchemaItems, createDesignable, + SchemaInitializerOpenModeSchemaItems, useAPIClient, useAssociatedFormItemInitializerFields, useDesignable, @@ -12,8 +10,10 @@ import { useGetAriaLabelOfDesigner, useSchemaInitializerRender, } from '@tachybase/client'; +import { ISchema, uid, useFieldSchema } from '@tachybase/schema'; + +import { MenuOutlined } from '@ant-design/icons'; import { Space } from 'antd'; -import React from 'react'; import { useTranslation } from 'react-i18next'; const gridRowColWrap = (schema: ISchema) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Card.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Card.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.CardViewer.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.CardViewer.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Designer.tsx similarity index 85% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Designer.tsx index 6834e0caf..3fd2a6437 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Designer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { useCollection_deprecated, GeneralSchemaDesigner, useSchemaTemplate } from '@tachybase/client'; +import { GeneralSchemaDesigner, useCollection_deprecated, useSchemaTemplate } from '@tachybase/client'; export const KanbanDesigner = () => { const { name, title } = useCollection_deprecated(); diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Settings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Settings.tsx index f00948ea7..3a8541e3e 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.Settings.tsx @@ -1,16 +1,18 @@ -import { useField, useFieldSchema } from '@tachybase/schema'; import { - useFormBlockContext, + FixedBlockDesignerItem, + removeNullCondition, + SchemaSettings, + SchemaSettingsBlockTitleItem, SchemaSettingsDataScope, + SchemaSettingsTemplate, useCollection_deprecated, useDesignable, - SchemaSettings, - FixedBlockDesignerItem, - SchemaSettingsBlockTitleItem, - removeNullCondition, - SchemaSettingsTemplate, + useFormBlockContext, } from '@tachybase/client'; +import { useField, useFieldSchema } from '@tachybase/schema'; + import { useKanbanBlockContext } from './KanbanBlockProvider'; + export const kanbanSettings = new SchemaSettings({ name: 'blockSettings:kanban', items: [ diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.tsx index 6c02fb80b..2dbe335c1 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/Kanban.tsx @@ -1,5 +1,4 @@ -import { ArrayField } from '@tachybase/schema'; -import { observer, RecursionField, useField, useFieldSchema, useForm } from '@tachybase/schema'; +import React, { useContext, useMemo, useState } from 'react'; import { RecordProvider, SchemaComponentOptions, @@ -8,8 +7,10 @@ import { useProps, withDynamicSchemaProps, } from '@tachybase/client'; +import { ArrayField, observer, RecursionField, useField, useFieldSchema, useForm } from '@tachybase/schema'; + import { Spin, Tag } from 'antd'; -import React, { useContext, useMemo, useState } from 'react'; + import { Board } from './board'; import { KanbanCardContext, KanbanColumnContext } from './context'; import { useStyles } from './style'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/KanbanActionInitializers.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/KanbanActionInitializers.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockInitializer.tsx index 6a03182d7..c68ec66e2 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockInitializer.tsx @@ -1,23 +1,24 @@ -import { FormOutlined } from '@ant-design/icons'; -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext, useForm } from '@tachybase/schema'; import React, { useContext } from 'react'; -import { useTranslation } from 'react-i18next'; - import { APIClientProvider, - useCollectionManager_deprecated, - useGlobalTheme, + DataBlockInitializer, FormDialog, SchemaComponent, SchemaComponentOptions, - DataBlockInitializer, + useAPIClient, + useCollectionManager_deprecated, + useGlobalTheme, useSchemaInitializer, useSchemaInitializerItem, - useAPIClient, } from '@tachybase/client'; -import { createKanbanBlockUISchema } from './createKanbanBlockUISchema'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext, useForm } from '@tachybase/schema'; + +import { FormOutlined } from '@ant-design/icons'; +import { useTranslation } from 'react-i18next'; + import { CreateAndSelectSort } from './CreateAndSelectSort'; +import { createKanbanBlockUISchema } from './createKanbanBlockUISchema'; import { NAMESPACE } from './locale'; const CreateKanbanForm = ({ item, sortFields, collectionFields, fields, options, api }) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockProvider.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockProvider.tsx index 812e911be..2f0181e51 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/KanbanBlockProvider.tsx @@ -1,16 +1,17 @@ -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'; import { + BlockProvider, + FixedBlockWrapper, useACLRoleContext, + useBlockRequestContext, useCollection_deprecated, useCollectionManager_deprecated, - FixedBlockWrapper, - BlockProvider, - useBlockRequestContext, } from '@tachybase/client'; +import { ArrayField, Schema, useField, useFieldSchema } from '@tachybase/schema'; + +import { Spin } from 'antd'; +import uniq from 'lodash/uniq'; + import { toColumns } from './Kanban'; export const KanbanBlockContext = createContext({}); diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts index 1efab3e96..fcbff8aad 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { generalWithSingleSelect, oneEmptyKanbanBlock } from './utils'; //在页面中可以创建看板区块 diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts index 89fde40d5..31c74e161 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts @@ -1,4 +1,5 @@ import { expect, test } from '@tachybase/test/e2e'; + import { oneEmptyKanbanBlock } from './utils'; //看板的区块参数配置 diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/__e2e__/utils.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Board.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/Board.tsx index 03a8c2d06..dfa0b9e8a 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Board.tsx @@ -1,5 +1,7 @@ import React, { forwardRef, useState } from 'react'; + import { DragDropContext } from 'react-beautiful-dnd'; + import Column from './Column'; import ColumnAdder from './ColumnAdder'; import DefaultCard from './DefaultCard'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Card.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/Card.tsx index a06930426..37ff402b3 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Card.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { Draggable } from 'react-beautiful-dnd'; function Card({ children, index, renderCard, disableCardDrag }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/CardAdder.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/CardAdder.tsx index b452d5ae0..c18b724b0 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/CardAdder.tsx @@ -1,4 +1,5 @@ import React, { useState } from 'react'; + import CardForm from './CardForm'; function CardAdder({ column, onConfirm }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/CardForm.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/CardForm.tsx index 348ba5434..a62ddb720 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/CardForm.tsx @@ -1,4 +1,5 @@ import React, { useRef } from 'react'; + import { when } from './utils'; function CardForm({ onConfirm, onCancel }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Column.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/Column.tsx index fd28f6158..58276596d 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Column.tsx @@ -1,5 +1,7 @@ import React, { forwardRef, useState } from 'react'; + import { Draggable } from 'react-beautiful-dnd'; + import { useKanbanBlockContext } from '../KanbanBlockProvider'; import Card from './Card'; import CardAdder from './CardAdder'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnAdder.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnAdder.tsx index 4f0445676..8a20d3fdf 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnAdder.tsx @@ -1,4 +1,5 @@ import React, { useState } from 'react'; + import ColumnForm from './ColumnForm'; function ColumnAdder({ onConfirm }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnForm.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnForm.tsx index c17ba0254..00458a9ce 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/ColumnForm.tsx @@ -1,4 +1,5 @@ import React, { createRef } from 'react'; + import { when } from './utils'; function ColumnForm({ onConfirm, onCancel }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/DefaultCard.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/DefaultCard.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Kanban.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/Kanban.tsx index 257d63a22..dae589deb 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/Kanban.tsx @@ -1,6 +1,9 @@ import '@asseinfo/react-kanban/dist/styles.css'; -import { Button } from 'antd'; + import React, { useState } from 'react'; + +import { Button } from 'antd'; + import Board from './Board'; import { addCard, moveCard, removeCard } from './helpers'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/demos/demo2.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/demos/demo2.tsx index c45fbf160..9825b1626 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/demos/demo2.tsx @@ -1,6 +1,7 @@ -import { Board } from '@tachybase/client'; -import { Button, Card } from 'antd'; import React, { useState } from 'react'; +import { Board } from '@tachybase/client'; + +import { Button, Card } from 'antd'; const board = { columns: [ diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/board/helpers.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/helpers.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.md b/packages/plugins/@tachybase/plugin-kanban/src/client/board/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/index.md rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/index.md diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/board/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/index.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/board/services.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/services.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/board/style.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/style.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/board/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/utils.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/board/withDroppable.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/board/withDroppable.tsx index a79bded74..2b63e5ee7 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/board/withDroppable.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { Droppable } from 'react-beautiful-dnd'; function withDroppable(Component) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/context.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/context.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/context.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/context.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/createKanbanBlockUISchema.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/createKanbanBlockUISchema.ts index 27a79a589..dcf9e724e 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/createKanbanBlockUISchema.ts @@ -1,5 +1,4 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; export const createKanbanBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/index.md b/packages/plugins/@tachybase/plugin-kanban/src/client/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/index.md rename to packages/plugins/@tachybase/plugin-kanban/src/client/index.md diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/index.tsx index 59f3fdbfb..3a4053c72 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-kanban/src/client/index.tsx @@ -1,5 +1,6 @@ -import { Action, CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { Action, CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; + import { Kanban } from './Kanban'; import { KanbanCard } from './Kanban.Card'; import { KanbanCardDesigner, kanbanCardInitializers, kanbanCardInitializers_deprecated } from './Kanban.Card.Designer'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-kanban/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-kanban/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx b/packages/plugins/@tachybase/plugin-kanban/src/client/style.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx rename to packages/plugins/@tachybase/plugin-kanban/src/client/style.tsx diff --git a/packages/plugins/@nocobase/plugin-kanban/src/index.ts b/packages/plugins/@tachybase/plugin-kanban/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/index.ts rename to packages/plugins/@tachybase/plugin-kanban/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-kanban/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-kanban/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-kanban/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-kanban/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-kanban/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-kanban/src/server/index.ts b/packages/plugins/@tachybase/plugin-kanban/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/server/index.ts rename to packages/plugins/@tachybase/plugin-kanban/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-kanban/src/server/plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-kanban/src/server/plugin.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/.npmignore b/packages/plugins/@tachybase/plugin-localization-management/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/.npmignore rename to packages/plugins/@tachybase/plugin-localization-management/.npmignore diff --git a/packages/plugins/@nocobase/plugin-localization-management/README.md b/packages/plugins/@tachybase/plugin-localization-management/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/README.md rename to packages/plugins/@tachybase/plugin-localization-management/README.md diff --git a/packages/plugins/@nocobase/plugin-localization-management/client.d.ts b/packages/plugins/@tachybase/plugin-localization-management/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/client.d.ts rename to packages/plugins/@tachybase/plugin-localization-management/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/client.js b/packages/plugins/@tachybase/plugin-localization-management/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/client.js rename to packages/plugins/@tachybase/plugin-localization-management/client.js diff --git a/packages/plugins/@nocobase/plugin-localization-management/package.json b/packages/plugins/@tachybase/plugin-localization-management/package.json similarity index 84% rename from packages/plugins/@nocobase/plugin-localization-management/package.json rename to packages/plugins/@tachybase/plugin-localization-management/package.json index 7069882e1..baa259cf4 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/package.json +++ b/packages/plugins/@tachybase/plugin-localization-management/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-localization-management", + "name": "@tachybase/plugin-localization-management", "displayName": "Localization", - "version": "0.21.33", + "version": "0.21.34", "description": "Allows to manage localization resources of the application.", "keywords": [ "System management" @@ -18,12 +18,12 @@ "react-i18next": "^11.15.1" }, "peerDependencies": { - "@nocobase/plugin-client": "workspace:*", - "@nocobase/plugin-ui-schema-storage": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/cache": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-client": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*" }, diff --git a/packages/plugins/@nocobase/plugin-localization-management/server.d.ts b/packages/plugins/@tachybase/plugin-localization-management/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/server.d.ts rename to packages/plugins/@tachybase/plugin-localization-management/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/server.js b/packages/plugins/@tachybase/plugin-localization-management/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/server.js rename to packages/plugins/@tachybase/plugin-localization-management/server.js diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx b/packages/plugins/@tachybase/plugin-localization-management/src/client/Localization.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx rename to packages/plugins/@tachybase/plugin-localization-management/src/client/Localization.tsx index 114b293a1..09c4eba7c 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/client/Localization.tsx +++ b/packages/plugins/@tachybase/plugin-localization-management/src/client/Localization.tsx @@ -1,25 +1,27 @@ -import { SyncOutlined } from '@ant-design/icons'; -import { Form, createForm } from '@tachybase/schema'; -import { FieldComponent as Field, useField, useForm } from '@tachybase/schema'; +import React, { useEffect, useMemo, useState } from 'react'; import { FormProvider, Input, + locale, Radio, SchemaComponent, Select, StablePopover, - locale, - useAPIClient, useActionContext, + useAPIClient, useRecord, useResourceActionContext, useResourceContext, } from '@tachybase/client'; +import { createForm, FieldComponent as Field, Form, useField, useForm } from '@tachybase/schema'; + +import { SyncOutlined } from '@ant-design/icons'; import { useMemoizedFn } from 'ahooks'; -import { Input as AntdInput, Button, Card, Checkbox, Col, Divider, Row, Tag, Typography, message } from 'antd'; -import React, { useEffect, useMemo, useState } from 'react'; +import { Input as AntdInput, Button, Card, Checkbox, Col, Divider, message, Row, Tag, Typography } from 'antd'; + import { useLocalTranslation } from './locale'; import { localizationSchema } from './schemas/localization'; + const { Text } = Typography; const useUpdateTranslationAction = () => { diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/index.tsx b/packages/plugins/@tachybase/plugin-localization-management/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-localization-management/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-localization-management/src/client/index.tsx index 619463c43..0be2196c7 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-localization-management/src/client/index.tsx @@ -1,6 +1,7 @@ import { Plugin } from '@tachybase/client'; -import { Localization } from './Localization'; + import { NAMESPACE } from './locale'; +import { Localization } from './Localization'; export class LocalizationManagementPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-localization-management/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx b/packages/plugins/@tachybase/plugin-localization-management/src/client/schemas/localization.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/client/schemas/localization.tsx rename to packages/plugins/@tachybase/plugin-localization-management/src/client/schemas/localization.tsx diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/index.ts b/packages/plugins/@tachybase/plugin-localization-management/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/index.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-localization-management/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-localization-management/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-localization-management/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-localization-management/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-localization-management/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-localization-management/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/__tests__/actions.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/__tests__/actions.test.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/__tests__/resources.test.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/__tests__/resources.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/__tests__/resources.test.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/__tests__/resources.test.ts index c1c6f7000..ab20a9a53 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/server/__tests__/resources.test.ts +++ b/packages/plugins/@tachybase/plugin-localization-management/src/server/__tests__/resources.test.ts @@ -1,4 +1,5 @@ import { CacheManager } from '@tachybase/cache'; + import Resources from '../resources'; describe('resources', () => { diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localization.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localization.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localization.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localization.ts index 7997b9790..8fa6e67cd 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localization.ts +++ b/packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localization.ts @@ -1,6 +1,7 @@ import { Context, Next } from '@tachybase/actions'; import { Database, Model, Op } from '@tachybase/database'; -import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; +import { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; + import { NAMESPACE_COLLECTIONS, NAMESPACE_MENUS } from '../constans'; import LocalizationManagementPlugin from '../plugin'; import { getTextsFromDBRecord, getTextsFromUISchema } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localizationTexts.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localizationTexts.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localizationTexts.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localizationTexts.ts index 1f4773546..4672ea0bb 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/server/actions/localizationTexts.ts +++ b/packages/plugins/@tachybase/plugin-localization-management/src/server/actions/localizationTexts.ts @@ -1,7 +1,8 @@ -import { Context, Next, DEFAULT_PAGE, DEFAULT_PER_PAGE } from '@tachybase/actions'; +import { Context, DEFAULT_PAGE, DEFAULT_PER_PAGE, Next } from '@tachybase/actions'; import { Cache } from '@tachybase/cache'; import { Database, Model, Op } from '@tachybase/database'; import { PluginManager } from '@tachybase/server'; + import { EXTEND_MODULES } from '../constans'; const appendTranslations = async (db: Database, rows: Model[], locale: string): Promise => { diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-localization-management/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-localization-management/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/collections/localization-texts.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/collections/localization-texts.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/collections/localization-texts.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/collections/localization-texts.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/collections/localization-translations.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/collections/localization-translations.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/collections/localization-translations.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/collections/localization-translations.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/constans.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/constans.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/constans.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/constans.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/index.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/index.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/migrations/20230706200900-roles-add-translation.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/migrations/20230706200900-roles-add-translation.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/migrations/20230706200900-roles-add-translation.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/migrations/20230706200900-roles-add-translation.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts index ae9e6c0f8..d3f223207 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts +++ b/packages/plugins/@tachybase/plugin-localization-management/src/server/migrations/20231206161851-fix-module.ts @@ -1,5 +1,6 @@ import { Op } from '@tachybase/database'; import { Migration } from '@tachybase/server'; + import { getTextsFromDB, getTextsFromMenu } from '../actions/localization'; import { NAMESPACE_COLLECTIONS, NAMESPACE_MENUS } from '../constans'; diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/plugin.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/plugin.ts index 37366e31c..ddbb3e6d4 100644 --- a/packages/plugins/@nocobase/plugin-localization-management/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-localization-management/src/server/plugin.ts @@ -1,13 +1,15 @@ -import { Model } from '@tachybase/database'; -import { UiSchemaStoragePlugin } from '@nocobase/plugin-ui-schema-storage'; -import { InstallOptions, Plugin } from '@tachybase/server'; -import deepmerge from 'deepmerge'; import { resolve } from 'path'; +import { Model } from '@tachybase/database'; +import { UiSchemaStoragePlugin } from '@tachybase/plugin-ui-schema-storage'; +import { InstallOptions, Plugin } from '@tachybase/server'; + +import deepmerge from 'deepmerge'; + import localization from './actions/localization'; import localizationTexts from './actions/localizationTexts'; +import { NAMESPACE_COLLECTIONS, NAMESPACE_MENUS } from './constans'; import Resources from './resources'; import { getTextsFromDBRecord } from './utils'; -import { NAMESPACE_COLLECTIONS, NAMESPACE_MENUS } from './constans'; export class LocalizationManagementPlugin extends Plugin { resources: Resources; diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/resources.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/resources.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/resources.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/resources.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/server/utils.ts b/packages/plugins/@tachybase/plugin-localization-management/src/server/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/server/utils.ts rename to packages/plugins/@tachybase/plugin-localization-management/src/server/utils.ts diff --git a/packages/plugins/@nocobase/plugin-localization-management/src/swagger/index.json b/packages/plugins/@tachybase/plugin-localization-management/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-localization-management/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-localization-management/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-logger/.npmignore b/packages/plugins/@tachybase/plugin-logger/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/.npmignore rename to packages/plugins/@tachybase/plugin-logger/.npmignore diff --git a/packages/plugins/@tachybase/plugin-logger/README.md b/packages/plugins/@tachybase/plugin-logger/README.md new file mode 100644 index 000000000..795a5c365 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-logger/README.md @@ -0,0 +1 @@ +# @tachybase/plugin-logger diff --git a/packages/plugins/@nocobase/plugin-logger/client.d.ts b/packages/plugins/@tachybase/plugin-logger/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/client.d.ts rename to packages/plugins/@tachybase/plugin-logger/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-logger/client.js b/packages/plugins/@tachybase/plugin-logger/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/client.js rename to packages/plugins/@tachybase/plugin-logger/client.js diff --git a/packages/plugins/@nocobase/plugin-logger/package.json b/packages/plugins/@tachybase/plugin-logger/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-logger/package.json rename to packages/plugins/@tachybase/plugin-logger/package.json index cd643abcc..540341970 100644 --- a/packages/plugins/@nocobase/plugin-logger/package.json +++ b/packages/plugins/@tachybase/plugin-logger/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-logger", + "name": "@tachybase/plugin-logger", "displayName": "Logger", - "version": "0.21.33", + "version": "0.21.34", "description": "Server-side logs, mainly including API request logs and system runtime logs, and allows to package and download log files.", "keywords": [ "Logging and monitoring" diff --git a/packages/plugins/@nocobase/plugin-logger/server.d.ts b/packages/plugins/@tachybase/plugin-logger/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/server.d.ts rename to packages/plugins/@tachybase/plugin-logger/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-logger/server.js b/packages/plugins/@tachybase/plugin-logger/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/server.js rename to packages/plugins/@tachybase/plugin-logger/server.js diff --git a/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx b/packages/plugins/@tachybase/plugin-logger/src/client/LogsDownloader.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx rename to packages/plugins/@tachybase/plugin-logger/src/client/LogsDownloader.tsx index cd0c08814..d96f56dc0 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx +++ b/packages/plugins/@tachybase/plugin-logger/src/client/LogsDownloader.tsx @@ -1,10 +1,13 @@ -import { useAPIClient, useRequest } from '@tachybase/client'; import React, { useCallback, useMemo } from 'react'; -import { Tree, Card, Alert, Typography, Input, Button, theme, Empty } from 'antd'; -import type { DataNode } from 'antd/lib/tree'; -import { FolderOutlined, FileOutlined } from '@ant-design/icons'; -import { useLoggerTranslation } from './locale'; +import { useAPIClient, useRequest } from '@tachybase/client'; + +import { FileOutlined, FolderOutlined } from '@ant-design/icons'; import { useMemoizedFn } from 'ahooks'; +import { Alert, Button, Card, Empty, Input, theme, Tree, Typography } from 'antd'; +import type { DataNode } from 'antd/lib/tree'; + +import { useLoggerTranslation } from './locale'; + const { Paragraph, Text } = Typography; type Log = string | LogDir; diff --git a/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx b/packages/plugins/@tachybase/plugin-logger/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-logger/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-logger/src/client/index.tsx index 1bf074bd8..b7cee6568 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-logger/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { lang } from './locale'; import { LogsDownloader } from './LogsDownloader'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-logger/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-logger/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/index.ts b/packages/plugins/@tachybase/plugin-logger/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/index.ts rename to packages/plugins/@tachybase/plugin-logger/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts b/packages/plugins/@tachybase/plugin-logger/src/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-logger/src/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts b/packages/plugins/@tachybase/plugin-logger/src/locale/ko_KR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts rename to packages/plugins/@tachybase/plugin-logger/src/locale/ko_KR.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-logger/src/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-logger/src/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-logger/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-logger/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/index.ts b/packages/plugins/@tachybase/plugin-logger/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-logger/src/server/index.ts rename to packages/plugins/@tachybase/plugin-logger/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-logger/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-logger/src/server/plugin.ts index 6d156409c..e77ec1087 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-logger/src/server/plugin.ts @@ -1,4 +1,5 @@ import { InstallOptions, Plugin } from '@tachybase/server'; + import logger from './resourcer/logger'; export class PluginLoggerServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts b/packages/plugins/@tachybase/plugin-logger/src/server/resourcer/logger.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts rename to packages/plugins/@tachybase/plugin-logger/src/server/resourcer/logger.ts index 06d024924..fd8316d87 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts +++ b/packages/plugins/@tachybase/plugin-logger/src/server/resourcer/logger.ts @@ -1,10 +1,11 @@ -import { Context, Next } from '@tachybase/actions'; -import { getLoggerFilePath } from '@tachybase/logger'; import { readdir } from 'fs/promises'; import { join } from 'path'; import stream from 'stream'; -import { pack } from 'tar-fs'; import zlib from 'zlib'; +import { Context, Next } from '@tachybase/actions'; +import { getLoggerFilePath } from '@tachybase/logger'; + +import { pack } from 'tar-fs'; const tarFiles = (files: string[]): Promise => { return new Promise((resolve, reject) => { diff --git a/packages/plugins/@nocobase/plugin-map/.npmignore b/packages/plugins/@tachybase/plugin-map/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-map/.npmignore rename to packages/plugins/@tachybase/plugin-map/.npmignore diff --git a/packages/plugins/@nocobase/plugin-map/README.md b/packages/plugins/@tachybase/plugin-map/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/README.md rename to packages/plugins/@tachybase/plugin-map/README.md diff --git a/packages/plugins/@nocobase/plugin-map/README.zh-CN.md b/packages/plugins/@tachybase/plugin-map/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-map/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-map/client.d.ts b/packages/plugins/@tachybase/plugin-map/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/client.d.ts rename to packages/plugins/@tachybase/plugin-map/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-map/client.js b/packages/plugins/@tachybase/plugin-map/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-map/client.js rename to packages/plugins/@tachybase/plugin-map/client.js diff --git a/packages/plugins/@nocobase/plugin-map/docs/en-US/changelog.md b/packages/plugins/@tachybase/plugin-map/docs/en-US/changelog.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/en-US/changelog.md rename to packages/plugins/@tachybase/plugin-map/docs/en-US/changelog.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/en-US/index.md b/packages/plugins/@tachybase/plugin-map/docs/en-US/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/en-US/index.md rename to packages/plugins/@tachybase/plugin-map/docs/en-US/index.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/en-US/installation.md b/packages/plugins/@tachybase/plugin-map/docs/en-US/installation.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/en-US/installation.md rename to packages/plugins/@tachybase/plugin-map/docs/en-US/installation.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/en-US/tabs.json b/packages/plugins/@tachybase/plugin-map/docs/en-US/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/en-US/tabs.json rename to packages/plugins/@tachybase/plugin-map/docs/en-US/tabs.json diff --git a/packages/plugins/@nocobase/plugin-map/docs/en-US/usage.md b/packages/plugins/@tachybase/plugin-map/docs/en-US/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/en-US/usage.md rename to packages/plugins/@tachybase/plugin-map/docs/en-US/usage.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/zh-CN/changelog.md b/packages/plugins/@tachybase/plugin-map/docs/zh-CN/changelog.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/zh-CN/changelog.md rename to packages/plugins/@tachybase/plugin-map/docs/zh-CN/changelog.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/zh-CN/index.md b/packages/plugins/@tachybase/plugin-map/docs/zh-CN/index.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/zh-CN/index.md rename to packages/plugins/@tachybase/plugin-map/docs/zh-CN/index.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/zh-CN/installation.md b/packages/plugins/@tachybase/plugin-map/docs/zh-CN/installation.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/zh-CN/installation.md rename to packages/plugins/@tachybase/plugin-map/docs/zh-CN/installation.md diff --git a/packages/plugins/@nocobase/plugin-map/docs/zh-CN/tabs.json b/packages/plugins/@tachybase/plugin-map/docs/zh-CN/tabs.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/zh-CN/tabs.json rename to packages/plugins/@tachybase/plugin-map/docs/zh-CN/tabs.json diff --git a/packages/plugins/@nocobase/plugin-map/docs/zh-CN/usage.md b/packages/plugins/@tachybase/plugin-map/docs/zh-CN/usage.md similarity index 100% rename from packages/plugins/@nocobase/plugin-map/docs/zh-CN/usage.md rename to packages/plugins/@tachybase/plugin-map/docs/zh-CN/usage.md diff --git a/packages/plugins/@nocobase/plugin-map/package.json b/packages/plugins/@tachybase/plugin-map/package.json similarity index 95% rename from packages/plugins/@nocobase/plugin-map/package.json rename to packages/plugins/@tachybase/plugin-map/package.json index dae979f38..196810451 100644 --- a/packages/plugins/@nocobase/plugin-map/package.json +++ b/packages/plugins/@tachybase/plugin-map/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-map", + "name": "@tachybase/plugin-map", "displayName": "Block: Map", - "version": "0.21.33", + "version": "0.21.34", "description": "Map block, support Gaode map and Google map, you can also extend more map types.", "keywords": [ "Blocks" diff --git a/packages/plugins/@nocobase/plugin-map/server.d.ts b/packages/plugins/@tachybase/plugin-map/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/server.d.ts rename to packages/plugins/@tachybase/plugin-map/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-map/server.js b/packages/plugins/@tachybase/plugin-map/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-map/server.js rename to packages/plugins/@tachybase/plugin-map/server.js diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts b/packages/plugins/@tachybase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts rename to packages/plugins/@tachybase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapActionInitializers.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapActionInitializers.tsx diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.Settings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.Settings.tsx index 789142c1a..3c4e051e0 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.Settings.tsx @@ -1,7 +1,8 @@ -import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; import { FilterBlockType, FixedBlockDesignerItem, + mergeFilter, + SchemaSettings, SchemaSettingsBlockTitleItem, SchemaSettingsCascaderItem, SchemaSettingsConnectDataBlocks, @@ -10,16 +11,17 @@ import { SchemaSettingsModalItem, SchemaSettingsSelectItem, SchemaSettingsTemplate, - mergeFilter, + setDataLoadingModeSettingsItem, useCollection, + useCollectionManager_deprecated, + useDataLoadingMode, useDesignable, useFormBlockContext, - SchemaSettings, - useCollectionManager_deprecated, - setDataLoadingModeSettingsItem, - useDataLoadingMode, } from '@tachybase/client'; +import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; + import lodash from 'lodash'; + import { useMapTranslation } from '../locale'; import { useMapBlockContext } from './MapBlockProvider'; import { findNestedOption } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.tsx index f2b81fcc5..469bbf55c 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlock.tsx @@ -1,10 +1,11 @@ +import React, { useMemo } from 'react'; import { useCollection_deprecated, useCollectionManager_deprecated, useProps, withDynamicSchemaProps, } from '@tachybase/client'; -import React, { useMemo } from 'react'; + import { MapBlockComponent } from '../components'; export const MapBlock = withDynamicSchemaProps((props) => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockDesigner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockDesigner.tsx index 8b189bbd6..bd26a11da 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockDesigner.tsx @@ -1,5 +1,6 @@ -import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@tachybase/client'; import React from 'react'; +import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@tachybase/client'; + export const MapBlockDesigner = () => { const { name, title } = useCollection(); const template = useSchemaTemplate(); diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockInitializer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockInitializer.tsx index b6b1fbca0..937590d0f 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockInitializer.tsx @@ -1,6 +1,4 @@ -import { TableOutlined } from '@ant-design/icons'; -import { FormLayout } from '@tachybase/components'; -import { SchemaOptionsContext } from '@tachybase/schema'; +import React, { useContext } from 'react'; import { DataBlockInitializer, FormDialog, @@ -11,10 +9,14 @@ import { useSchemaInitializer, useSchemaInitializerItem, } from '@tachybase/client'; -import React, { useContext } from 'react'; +import { FormLayout } from '@tachybase/components'; +import { SchemaOptionsContext } from '@tachybase/schema'; + +import { TableOutlined } from '@ant-design/icons'; + import { useMapTranslation } from '../locale'; -import { findNestedOption } from './utils'; import { createMapBlockUISchema } from './createMapBlockUISchema'; +import { findNestedOption } from './utils'; export const MapBlockInitializer = () => { const itemConfig = useSchemaInitializerItem(); diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockProvider.tsx index 690a0cf7e..c1e1b8c43 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/MapBlockProvider.tsx @@ -1,6 +1,6 @@ -import { useField, useFieldSchema } from '@tachybase/schema'; -import { BlockProvider, FixedBlockWrapper, SchemaComponentOptions, useBlockRequestContext } from '@tachybase/client'; import React, { createContext, useContext, useState } from 'react'; +import { BlockProvider, FixedBlockWrapper, SchemaComponentOptions, useBlockRequestContext } from '@tachybase/client'; +import { useField, useFieldSchema } from '@tachybase/schema'; export const MapBlockContext = createContext({}); MapBlockContext.displayName = 'MapBlockContext'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts b/packages/plugins/@tachybase/plugin-map/src/client/block/createMapBlockUISchema.ts similarity index 96% rename from packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts rename to packages/plugins/@tachybase/plugin-map/src/client/block/createMapBlockUISchema.ts index a45233cb0..0383b9163 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/createMapBlockUISchema.ts @@ -1,5 +1,4 @@ -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; export const createMapBlockUISchema = (options: { collectionName: string; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx b/packages/plugins/@tachybase/plugin-map/src/client/block/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/block/index.tsx index f9819977a..e3638ff00 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/block/index.tsx @@ -1,5 +1,6 @@ -import { SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { SchemaComponentOptions } from '@tachybase/client'; + import { MapBlock } from './MapBlock'; import { MapBlockDesigner } from './MapBlockDesigner'; import { MapBlockInitializer } from './MapBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts b/packages/plugins/@tachybase/plugin-map/src/client/block/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts rename to packages/plugins/@tachybase/plugin-map/src/client/block/utils.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Block.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Block.tsx index b185500b3..2155eb0c0 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Block.tsx @@ -1,19 +1,21 @@ -import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; -import { RecursionField, useFieldSchema } from '@tachybase/schema'; +import React, { useEffect, useMemo, useRef, useState } from 'react'; import { ActionContextProvider, - RecordProvider, css, - useCollectionManager_deprecated, + RecordProvider, useCollection_deprecated, + useCollectionManager_deprecated, + useCollectionParentRecordData, useCompile, useFilterAPI, - useCollectionParentRecordData, useProps, } from '@tachybase/client'; +import { RecursionField, useFieldSchema } from '@tachybase/schema'; + +import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; import { useMemoizedFn } from 'ahooks'; import { Button, Space } from 'antd'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; + import { defaultImage, selectedImage } from '../../constants'; import { useMapTranslation } from '../../locale'; import { getSource } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Map.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Map.tsx index 26c8fc1bd..ec548dbda 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Map.tsx @@ -1,12 +1,16 @@ import AMapLoader from '@amap/amap-jsapi-loader'; + import '@amap/amap-jsapi-types'; -import { SyncOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@tachybase/schema'; + +import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import { css, useApp, useCollection_deprecated } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; + +import { SyncOutlined } from '@ant-design/icons'; import { useMemoizedFn } from 'ahooks'; import { Alert, App, Button, Spin } from 'antd'; -import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import { useNavigate } from 'react-router-dom'; + import { useMapConfiguration } from '../../hooks'; import { useMapTranslation } from '../../locale'; import { MapEditorType } from '../../types'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Search.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Search.tsx index 3f99eb72d..7fcc0d91d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/Search.tsx @@ -1,7 +1,9 @@ +import React, { useEffect, useRef, useState } from 'react'; import { css } from '@tachybase/client'; + import { useDebounceFn } from 'ahooks'; import { message, Select } from 'antd'; -import React, { useEffect, useRef, useState } from 'react'; + import { useMapTranslation } from '../../locale'; interface SearchProps { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/components/AMap/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/components/AMap/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/Configuration.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/Configuration.tsx index 551a52693..782baa5d0 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/Configuration.tsx @@ -1,10 +1,12 @@ -import { useAPIClient, useCompile } from '@tachybase/client'; -import { useBoolean } from 'ahooks'; -import { Button, Card, Form, Input, Tabs, message } from 'antd'; import React, { useEffect, useMemo } from 'react'; +import { useAPIClient, useCompile } from '@tachybase/client'; + +import { useBoolean } from 'ahooks'; +import { Button, Card, Form, Input, message, Tabs } from 'antd'; import { useLocation } from 'react-router-dom'; + import { MapTypes } from '../constants'; -import { MapConfigurationResourceKey, getSSKey, useMapConfiguration } from '../hooks'; +import { getSSKey, MapConfigurationResourceKey, useMapConfiguration } from '../hooks'; import { useMapTranslation } from '../locale'; interface BaseConfigurationProps { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/Designer.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/Designer.tsx index 272be8b03..2bebb114f 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/Designer.tsx @@ -1,19 +1,20 @@ -import { Field } from '@tachybase/schema'; -import { ISchema, useField, useFieldSchema } from '@tachybase/schema'; +import React from 'react'; import { GeneralSchemaDesigner, GeneralSchemaItems, + isPatternDisabled, SchemaSettingsModalItem, SchemaSettingsRemove, SchemaSettingsSelectItem, - isPatternDisabled, useCollection_deprecated, useCollectionManager_deprecated, useDesignable, useFormBlockContext, } from '@tachybase/client'; +import { Field, ISchema, useField, useFieldSchema } from '@tachybase/schema'; + import lodash from 'lodash'; -import React from 'react'; + import { useMapTranslation } from '../locale'; const Designer = () => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Block.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Block.tsx index ac202d058..496b05b6f 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Block.tsx @@ -1,19 +1,21 @@ -import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; -import { RecursionField, Schema, useFieldSchema } from '@tachybase/schema'; +import React, { useEffect, useMemo, useRef, useState } from 'react'; import { ActionContextProvider, - RecordProvider, css, - useCollectionManager_deprecated, + RecordProvider, useCollection_deprecated, + useCollectionManager_deprecated, + useCollectionParentRecordData, useCompile, useFilterAPI, - useCollectionParentRecordData, useProps, } from '@tachybase/client'; +import { RecursionField, Schema, useFieldSchema } from '@tachybase/schema'; + +import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; import { useMemoizedFn } from 'ahooks'; import { Button, Space } from 'antd'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; + import { defaultImage, selectedImage } from '../../constants'; import { useMapTranslation } from '../../locale'; import { getSource } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Map.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Map.tsx index f06e1b4bb..db1e9fba9 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Map.tsx @@ -1,11 +1,13 @@ -import { SyncOutlined } from '@ant-design/icons'; -import { useFieldSchema } from '@tachybase/schema'; -import { Loader } from '@googlemaps/js-api-loader'; +import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import { css, useAPIClient, useApp, useCollection_deprecated } from '@tachybase/client'; +import { useFieldSchema } from '@tachybase/schema'; + +import { SyncOutlined } from '@ant-design/icons'; +import { Loader } from '@googlemaps/js-api-loader'; import { useMemoizedFn } from 'ahooks'; import { Alert, App, Button, Spin } from 'antd'; -import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import { useNavigate } from 'react-router-dom'; + import { defaultImage } from '../../constants'; import { useMapConfiguration } from '../../hooks'; import { useMapTranslation } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Search.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Search.tsx index bb09a7d2c..1eedb12ee 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/Search.tsx @@ -1,7 +1,9 @@ +import React, { useEffect, useRef, useState } from 'react'; import { css } from '@tachybase/client'; + import { useDebounceFn } from 'ahooks'; import { message, Select } from 'antd'; -import React, { useEffect, useRef, useState } from 'react'; + import { useMapTranslation } from '../../locale'; interface SearchProps { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts b/packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts rename to packages/plugins/@tachybase/plugin-map/src/client/components/GoogleMaps/utils.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/Map.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/Map.tsx index 057ade971..b6058d177 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/Map.tsx @@ -1,6 +1,7 @@ -import { connect, mapReadPretty } from '@tachybase/schema'; -import { css } from '@tachybase/client'; import React from 'react'; +import { css } from '@tachybase/client'; +import { connect, mapReadPretty } from '@tachybase/schema'; + import { AMapComponentProps } from './AMap'; import Designer from './Designer'; import { MapComponent } from './MapComponent'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/MapBlock.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/MapBlock.tsx index 278b66ea1..c55b6d206 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/MapBlock.tsx @@ -1,4 +1,5 @@ import React, { useMemo } from 'react'; + import { useMapTranslation } from '../locale'; import { AMapBlock } from './AMap'; import { GoogleMapsBlock } from './GoogleMaps'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/MapComponent.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/MapComponent.tsx index 846f5d901..eeab52659 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/MapComponent.tsx @@ -1,4 +1,5 @@ import React, { useMemo } from 'react'; + import { useMapTranslation } from '../locale'; import { AMapComponent } from './AMap'; import { GoogleMapsComponent } from './GoogleMaps'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx b/packages/plugins/@tachybase/plugin-map/src/client/components/ReadPretty.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/components/ReadPretty.tsx index d739908f3..6d55fdc06 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/components/ReadPretty.tsx @@ -1,6 +1,7 @@ -import { useFieldSchema, useForm } from '@tachybase/schema'; -import { EllipsisWithTooltip, useCollection_deprecated, useFieldTitle } from '@tachybase/client'; import React from 'react'; +import { EllipsisWithTooltip, useCollection_deprecated, useFieldTitle } from '@tachybase/client'; +import { useFieldSchema, useForm } from '@tachybase/schema'; + import { MapComponent } from './MapComponent'; const ReadPretty = (props) => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/components/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/components/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/components/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/constants.ts b/packages/plugins/@tachybase/plugin-map/src/client/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/constants.ts rename to packages/plugins/@tachybase/plugin-map/src/client/constants.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/circle.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/circle.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/lineString.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/lineString.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/point.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/point.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/polygon.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/polygon.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts b/packages/plugins/@tachybase/plugin-map/src/client/fields/schema.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts rename to packages/plugins/@tachybase/plugin-map/src/client/fields/schema.ts index 5e78dacf3..028581732 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts +++ b/packages/plugins/@tachybase/plugin-map/src/client/fields/schema.ts @@ -1,5 +1,6 @@ -import { ISchema } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; + import { MapTypes } from '../constants'; import { generateNTemplate } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts b/packages/plugins/@tachybase/plugin-map/src/client/hooks/useMapConfiguration.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts rename to packages/plugins/@tachybase/plugin-map/src/client/hooks/useMapConfiguration.ts index 0ab688bac..9ef52444e 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts +++ b/packages/plugins/@tachybase/plugin-map/src/client/hooks/useMapConfiguration.ts @@ -1,5 +1,5 @@ -import { useRequest } from '@tachybase/client'; import { useMemo } from 'react'; +import { useRequest } from '@tachybase/client'; export const MapConfigurationResourceKey = 'map-configuration'; export const getSSKey = (type) => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/index.tsx b/packages/plugins/@tachybase/plugin-map/src/client/index.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-map/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-map/src/client/index.tsx index 392f43a06..a5ef34079 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-map/src/client/index.tsx @@ -1,12 +1,14 @@ -import { CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { CurrentAppInfoProvider, Plugin, SchemaComponentOptions } from '@tachybase/client'; + import { MapBlockOptions } from './block'; import { mapActionInitializers, mapActionInitializers_deprecated } from './block/MapActionInitializers'; import { mapBlockSettings } from './block/MapBlock.Settings'; +import { useMapBlockProps } from './block/MapBlockProvider'; import { Configuration, Map } from './components'; import { fields } from './fields'; -import { NAMESPACE, generateNTemplate } from './locale'; -import { useMapBlockProps } from './block/MapBlockProvider'; +import { generateNTemplate, NAMESPACE } from './locale'; + const MapProvider = React.memo((props) => { return ( diff --git a/packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-map/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-map/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/types.ts b/packages/plugins/@tachybase/plugin-map/src/client/types.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/types.ts rename to packages/plugins/@tachybase/plugin-map/src/client/types.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/client/utils.ts b/packages/plugins/@tachybase/plugin-map/src/client/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/client/utils.ts rename to packages/plugins/@tachybase/plugin-map/src/client/utils.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/index.ts b/packages/plugins/@tachybase/plugin-map/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/index.ts rename to packages/plugins/@tachybase/plugin-map/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-map/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-map/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-map/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-map/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-map/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-map/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-map/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-map/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-map/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-map/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-map/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts b/packages/plugins/@tachybase/plugin-map/src/server/__tests__/fields.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts rename to packages/plugins/@tachybase/plugin-map/src/server/__tests__/fields.test.ts index 95bcb0f87..093d11139 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/__tests__/fields.test.ts @@ -1,5 +1,6 @@ import Database from '@tachybase/database'; import { mockDatabase } from '@tachybase/test'; + import { CircleField, LineStringField, PointField, PolygonField } from '../fields'; const data = { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-map/src/server/actions/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-map/src/server/actions/index.ts index adb363f92..b9321ff85 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/actions/index.ts @@ -1,4 +1,5 @@ import { Context } from '@tachybase/actions'; + import { MapConfigurationCollectionName } from '../constants'; export const getConfiguration = async (ctx: Context, next) => { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts b/packages/plugins/@tachybase/plugin-map/src/server/collections/mapConfiguration.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts rename to packages/plugins/@tachybase/plugin-map/src/server/collections/mapConfiguration.ts index d1e3cffcb..ea5e1b898 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/collections/mapConfiguration.ts @@ -1,4 +1,5 @@ import { defineCollection } from '@tachybase/database'; + import { MapConfigurationCollectionName } from '../constants'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-map/src/server/constants.ts b/packages/plugins/@tachybase/plugin-map/src/server/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/constants.ts rename to packages/plugins/@tachybase/plugin-map/src/server/constants.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/.gitkeep b/packages/plugins/@tachybase/plugin-map/src/server/fields/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/.gitkeep rename to packages/plugins/@tachybase/plugin-map/src/server/fields/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts b/packages/plugins/@tachybase/plugin-map/src/server/fields/circle.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts rename to packages/plugins/@tachybase/plugin-map/src/server/fields/circle.ts index 54541d081..4fc728d50 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/fields/circle.ts @@ -1,4 +1,5 @@ import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tachybase/database'; + import { isPg, toValue } from '../helpers'; class Circle extends DataTypes.ABSTRACT { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts b/packages/plugins/@tachybase/plugin-map/src/server/fields/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts rename to packages/plugins/@tachybase/plugin-map/src/server/fields/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts b/packages/plugins/@tachybase/plugin-map/src/server/fields/lineString.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts rename to packages/plugins/@tachybase/plugin-map/src/server/fields/lineString.ts index 63ae3228b..4dab5f9c6 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/fields/lineString.ts @@ -1,4 +1,5 @@ import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tachybase/database'; + import { isMysql, isPg, joinComma, toValue } from '../helpers'; class LineString extends DataTypes.ABSTRACT { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts b/packages/plugins/@tachybase/plugin-map/src/server/fields/point.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts rename to packages/plugins/@tachybase/plugin-map/src/server/fields/point.ts index afa774c9b..cff277c1c 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/fields/point.ts @@ -1,4 +1,5 @@ import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tachybase/database'; + import { isMysql, isPg, joinComma, toValue } from '../helpers'; class Point extends DataTypes.ABSTRACT { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts b/packages/plugins/@tachybase/plugin-map/src/server/fields/polygon.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts rename to packages/plugins/@tachybase/plugin-map/src/server/fields/polygon.ts index 5834ae747..a888246c7 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/fields/polygon.ts @@ -1,4 +1,5 @@ import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tachybase/database'; + import { isMysql, isPg, joinComma, toValue } from '../helpers'; class Polygon extends DataTypes.ABSTRACT { diff --git a/packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts b/packages/plugins/@tachybase/plugin-map/src/server/helpers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts rename to packages/plugins/@tachybase/plugin-map/src/server/helpers/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/server/index.ts b/packages/plugins/@tachybase/plugin-map/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/index.ts rename to packages/plugins/@tachybase/plugin-map/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-map/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-map/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-map/src/server/plugin.ts index 46964ba4e..0fe690471 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-map/src/server/plugin.ts @@ -1,5 +1,6 @@ -import { InstallOptions, Plugin } from '@tachybase/server'; import path from 'path'; +import { InstallOptions, Plugin } from '@tachybase/server'; + import { getConfiguration, setConfiguration } from './actions'; import { CircleField, LineStringField, PointField, PolygonField } from './fields'; import { CircleValueParser, LineStringValueParser, PointValueParser, PolygonValueParser } from './value-parsers'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts b/packages/plugins/@tachybase/plugin-map/src/server/value-parsers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts rename to packages/plugins/@tachybase/plugin-map/src/server/value-parsers/index.ts diff --git a/packages/plugins/@nocobase/plugin-map/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-map/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-map/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-map/src/swagger/index.ts diff --git a/packages/plugins/@tachybase/plugin-mobile-client/package.json b/packages/plugins/@tachybase/plugin-mobile-client/package.json index e9436f6aa..13e95b9b5 100644 --- a/packages/plugins/@tachybase/plugin-mobile-client/package.json +++ b/packages/plugins/@tachybase/plugin-mobile-client/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-mobile-client", "displayName": "Mobile client", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides the ability to configure mobile pages.", "license": "Apache-2.0", "main": "./dist/server/index.js", diff --git a/packages/plugins/@nocobase/plugin-mock-collections/.npmignore b/packages/plugins/@tachybase/plugin-mock-collections/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/.npmignore rename to packages/plugins/@tachybase/plugin-mock-collections/.npmignore diff --git a/packages/plugins/@nocobase/plugin-mock-collections/README.md b/packages/plugins/@tachybase/plugin-mock-collections/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/README.md rename to packages/plugins/@tachybase/plugin-mock-collections/README.md diff --git a/packages/plugins/@nocobase/plugin-mock-collections/README.zh-CN.md b/packages/plugins/@tachybase/plugin-mock-collections/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-mock-collections/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-mock-collections/client.d.ts b/packages/plugins/@tachybase/plugin-mock-collections/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/client.d.ts rename to packages/plugins/@tachybase/plugin-mock-collections/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/client.js b/packages/plugins/@tachybase/plugin-mock-collections/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/client.js rename to packages/plugins/@tachybase/plugin-mock-collections/client.js diff --git a/packages/plugins/@nocobase/plugin-mock-collections/package.json b/packages/plugins/@tachybase/plugin-mock-collections/package.json similarity index 80% rename from packages/plugins/@nocobase/plugin-mock-collections/package.json rename to packages/plugins/@tachybase/plugin-mock-collections/package.json index abc2b4fc0..e648d2c31 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/package.json +++ b/packages/plugins/@tachybase/plugin-mock-collections/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-mock-collections", + "name": "@tachybase/plugin-mock-collections", "displayName": "mock-collections", - "version": "0.21.33", + "version": "0.21.34", "description": "mock-collections", "license": "Apache-2.0", "main": "./dist/server/index.js", @@ -11,9 +11,9 @@ "pg": "^8.11.3" }, "peerDependencies": { - "@nocobase/plugin-error-handler": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", "@tachybase/utils": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-mock-collections/server.d.ts b/packages/plugins/@tachybase/plugin-mock-collections/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/server.d.ts rename to packages/plugins/@tachybase/plugin-mock-collections/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/server.js b/packages/plugins/@tachybase/plugin-mock-collections/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/server.js rename to packages/plugins/@tachybase/plugin-mock-collections/server.js diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/index.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/index.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/collection-templates/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/collection-templates/index.ts diff --git a/packages/plugins/@tachybase/plugin-mock-collections/src/server/external.sql b/packages/plugins/@tachybase/plugin-mock-collections/src/server/external.sql new file mode 100644 index 000000000..e0a910da7 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/external.sql @@ -0,0 +1,367 @@ +CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; + +-- 创建 users 表 +CREATE TABLE + users ( + user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + username VARCHAR(100) NOT NULL + ); + +-- 创建 profiles 表 +CREATE TABLE + profiles ( + profile_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + address VARCHAR(255), + user_uuid UUID REFERENCES users (user_uuid) + ); + +-- 创建 roles 表 +CREATE TABLE + roles ( + role_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + role_name VARCHAR(100) NOT NULL + ); + +-- 创建 user_roles 关联表 +CREATE TABLE + user_roles ( + user_uuid UUID REFERENCES users (user_uuid), + role_uuid UUID REFERENCES roles (role_uuid), + PRIMARY KEY (user_uuid, role_uuid) + ); + +-- 创建 orders 表 +CREATE TABLE + orders ( + order_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + user_uuid UUID REFERENCES users (user_uuid), + order_name VARCHAR(255) NOT NULL + -- ... 其他字段 + ); + +-- 向 users 表插入测试数据 +INSERT INTO + users (username) +VALUES + ('Alice'), + ('Bob'); + +INSERT INTO + orders (user_uuid, order_name) +VALUES + ( + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Alice' + ), + 'Order1' + ), + ( + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Bob' + ), + 'Order2' + ); + +-- 向 profiles 表插入测试数据 +INSERT INTO + profiles (address, user_uuid) +VALUES + ( + '123 Main St', + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Alice' + ) + ), + ( + '456 High St', + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Bob' + ) + ); + +-- 向 roles 表插入测试数据 +INSERT INTO + roles (role_name) +VALUES + ('Admin'), + ('User'); + +-- 建立 users 和 roles 之间的关系 +INSERT INTO + user_roles (user_uuid, role_uuid) +VALUES + ( + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Alice' + ), + ( + SELECT + role_uuid + FROM + roles + WHERE + role_name = 'Admin' + ) + ), + ( + ( + SELECT + user_uuid + FROM + users + WHERE + username = 'Bob' + ), + ( + SELECT + role_uuid + FROM + roles + WHERE + role_name = 'User' + ) + ); + +CREATE TABLE + "test_table" ( + "id2" SERIAL PRIMARY KEY, + "smallint" int2, + "integer" int4, + "bigint" int8, + "boolean" bool, + "numeric" NUMERIC, + "real" float4, + "double" float8, + "money" money, + "date" date, + "time" TIME, + "timestamp" TIMESTAMP, + "timestamptz" timestamptz, + "interval" INTERVAL, + "char" bpchar, + "varchar" VARCHAR, + "text" TEXT, + "tsquery" tsquery, + "tsvector" tsvector, + "uuid" UUID, + "xml" XML, + "json" json, + "jsonb" jsonb, + "bit" BIT, + "bitvarying" varbit, + "bytea" bytea, + "cidr" cidr, + "inet" inet, + "macaddr" macaddr, + "txidsnapshot" txid_snapshot, + "box" BOX, + "circle" CIRCLE, + "line" LINE, + "lseg" LSEG, + "path" PATH, + "point" POINT, + "polygon" POLYGON + ); + +-- 创建 authors 表 +CREATE TABLE + authors ( + author_id UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + author_name VARCHAR(100) NOT NULL + ); + +-- 创建 posts 表 +CREATE TABLE + posts ( + post_id UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + post_title VARCHAR(100) NOT NULL, + post_content TEXT NOT NULL, + author_id UUID REFERENCES authors (author_id) + ); + +-- 创建 comments 表 +CREATE TABLE + COMMENTS ( + comment_id UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + comment_content TEXT NOT NULL, + post_id UUID REFERENCES posts (post_id), + author_id UUID REFERENCES authors (author_id) + ); + +-- 创建 tags 表 +CREATE TABLE + tags ( + tag_id UUID PRIMARY KEY DEFAULT uuid_generate_v4 (), + tag_name VARCHAR(100) NOT NULL + ); + +-- 创建 post_tags 关联表 +CREATE TABLE + post_tags ( + post_id UUID REFERENCES posts (post_id), + tag_id UUID REFERENCES tags (tag_id), + PRIMARY KEY (post_id, tag_id) + ); + +-- 向 authors 表插入测试数据 +INSERT INTO + authors (author_name) +VALUES + ('Author1'), + ('Author2'); + +-- 向 posts 表插入测试数据 +INSERT INTO + posts (post_title, post_content, author_id) +VALUES + ( + 'Post1', + 'This is the content of Post1', + ( + SELECT + author_id + FROM + authors + WHERE + author_name = 'Author1' + ) + ), + ( + 'Post2', + 'This is the content of Post2', + ( + SELECT + author_id + FROM + authors + WHERE + author_name = 'Author2' + ) + ); + +-- 向 comments 表插入测试数据 +INSERT INTO + COMMENTS (comment_content, post_id, author_id) +VALUES + ( + 'This is a comment on Post1', + ( + SELECT + post_id + FROM + posts + WHERE + post_title = 'Post1' + ), + ( + SELECT + author_id + FROM + authors + WHERE + author_name = 'Author1' + ) + ), + ( + 'This is a comment on Post2', + ( + SELECT + post_id + FROM + posts + WHERE + post_title = 'Post2' + ), + ( + SELECT + author_id + FROM + authors + WHERE + author_name = 'Author2' + ) + ); + +-- 向 tags 表插入测试数据 +INSERT INTO + tags (tag_name) +VALUES + ('Tag1'), + ('Tag2'); + +-- 建立 posts 和 tags 之间的关系 +INSERT INTO + post_tags (post_id, tag_id) +VALUES + ( + ( + SELECT + post_id + FROM + posts + WHERE + post_title = 'Post1' + ), + ( + SELECT + tag_id + FROM + tags + WHERE + tag_name = 'Tag1' + ) + ), + ( + ( + SELECT + post_id + FROM + posts + WHERE + post_title = 'Post2' + ), + ( + SELECT + tag_id + FROM + tags + WHERE + tag_name = 'Tag2' + ) + ); + +-- 创建无主键的表 test_table_no_pk +CREATE TABLE + test_table_no_pk (column1 VARCHAR(100), column2 INT); + +-- 向 test_table_no_pk 表插入测试数据 +INSERT INTO + test_table_no_pk (column1, column2) +VALUES + ('TestData1', 1), + ('TestData2', 2); diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/association.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/association.ts index 466cae611..6034d8340 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/association.ts @@ -1,6 +1,7 @@ -import { faker } from '@faker-js/faker'; import { uid } from '@tachybase/utils'; +import { faker } from '@faker-js/faker'; + function reverseFieldHandle(defaults, { target, reverseField }) { if (!reverseField) { delete defaults.reverseField; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/attachment.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/attachment.ts index ef28bd37e..4797b84c9 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/attachment.ts @@ -1,5 +1,6 @@ -import { faker } from '@faker-js/faker'; import { uid } from '@tachybase/utils'; + +import { faker } from '@faker-js/faker'; import _ from 'lodash'; export function mockAttachment() { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/circle.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/circle.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/collection.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/collection.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/color.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/color.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/datetime.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/datetime.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/email.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/email.ts index b68256519..fe194b4f8 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/email.ts @@ -1,6 +1,7 @@ -import { faker } from '@faker-js/faker'; import { uid } from '@tachybase/utils'; +import { faker } from '@faker-js/faker'; + export const email = { options: () => ({ type: 'string', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/formula.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/formula.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/icon.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/icon.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/id.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/id.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/index.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/input.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/input.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/integer.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/integer.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/json.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/json.tsx diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/lineString.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/lineString.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/markdown.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/markdown.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/number.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/number.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/password.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/password.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/percent.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/percent.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/phone.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/phone.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/point.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/point.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/polygon.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/polygon.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/richText.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/richText.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/select.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/select.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/sequence.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/sequence.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/sort.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/sort.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/textarea.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/textarea.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/time.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/time.ts index 3de376ed8..cea50db47 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/time.ts @@ -1,6 +1,7 @@ -import { faker } from '@faker-js/faker'; import { dayjs } from '@tachybase/utils'; +import { faker } from '@faker-js/faker'; + export const time = { options: () => ({ type: 'time', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/url.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/field-interfaces/url.ts diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts b/packages/plugins/@tachybase/plugin-mock-collections/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts rename to packages/plugins/@tachybase/plugin-mock-collections/src/server/index.ts index 4800fe360..083eb7ffa 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-mock-collections/src/server/index.ts @@ -1,14 +1,16 @@ +import { promises as fs } from 'fs'; +import path from 'path'; import Database, { Collection, Repository } from '@tachybase/database'; -import { CollectionRepository } from '@nocobase/plugin-collection-manager'; +import { CollectionRepository } from '@tachybase/plugin-collection-manager'; import { InstallOptions, Plugin } from '@tachybase/server'; import { merge, uid } from '@tachybase/utils'; + import _ from 'lodash'; +import { Client } from 'pg'; + import collectionTemplates from './collection-templates'; import * as fieldInterfaces from './field-interfaces'; import { mockAttachment } from './field-interfaces'; -import { Client } from 'pg'; -import path from 'path'; -import { promises as fs } from 'fs'; export class PluginMockCollectionsServer extends Plugin { async load() { diff --git a/packages/plugins/@tachybase/plugin-multi-app-manager/package.json b/packages/plugins/@tachybase/plugin-multi-app-manager/package.json index acb18f2d5..513935e48 100644 --- a/packages/plugins/@tachybase/plugin-multi-app-manager/package.json +++ b/packages/plugins/@tachybase/plugin-multi-app-manager/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-multi-app-manager", "displayName": "Multi-app manager", - "version": "0.21.33", + "version": "0.21.34", "description": "Dynamically create multiple apps without separate deployments.", "keywords": [ "System management" diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/.npmignore b/packages/plugins/@tachybase/plugin-multi-app-share-collection/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/.npmignore rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/.npmignore diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/client.d.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/client.d.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/client.js b/packages/plugins/@tachybase/plugin-multi-app-share-collection/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/client.js rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/client.js diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/package.json similarity index 75% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/package.json index 96e49e73b..03d7435e3 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/package.json +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-multi-app-share-collection", + "name": "@tachybase/plugin-multi-app-share-collection", "displayName": "Multi-app share collection", - "version": "0.21.33", + "version": "0.21.34", "description": "", "keywords": [ "System management" @@ -15,12 +15,12 @@ "react-i18next": "^11.15.1" }, "peerDependencies": { - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-users": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", "@tachybase/plugin-multi-app-manager": "workspace:*", + "@tachybase/plugin-users": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", "@tachybase/utils": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/server.d.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/server.d.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/server.js b/packages/plugins/@tachybase/plugin-multi-app-share-collection/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/server.js rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/server.js diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx index f889677b4..51bf61dce 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx @@ -1,8 +1,10 @@ -import { useForm } from '@tachybase/schema'; +import React from 'react'; import { useActionContext, useAPIClient, useRecord } from '@tachybase/client'; import { tableActionColumnSchema } from '@tachybase/plugin-multi-app-manager/client'; +import { useForm } from '@tachybase/schema'; + import { message } from 'antd'; -import React from 'react'; + import { TableTransfer } from './TableTransfer'; import { i18nText } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx index 40d79cbf8..dd079f57b 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx @@ -1,8 +1,9 @@ -import { connect } from '@tachybase/schema'; -import { css, useCollectionManager_deprecated, useRecord, useRequest, useToken } from '@tachybase/client'; -import { CollectionsGraph, lodash } from '@tachybase/utils/client'; -import { App, Col, Input, Row, Select, Spin, Table, Tag } from 'antd'; import React, { useCallback, useMemo, useState } from 'react'; +import { css, useCollectionManager_deprecated, useRecord, useRequest, useToken } from '@tachybase/client'; +import { connect } from '@tachybase/schema'; +import { CollectionsGraph, lodash } from '@tachybase/utils/client'; + +import { App, Col, Input, Row, Select, Spin, Table, Tag } from 'antd'; import { useTranslation } from 'react-i18next'; const excludeCollections = ['users', 'roles', 'applications']; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/index.tsx index 38e374b42..b8d44071c 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/index.tsx @@ -1,4 +1,5 @@ import { Plugin } from '@tachybase/client'; + import { MultiAppShareCollectionProvider } from './MultiAppShareCollectionProvider'; export class MultiAppShareCollectionPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/utils.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/client/utils.tsx diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts index d0b36d4f7..547a20739 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts @@ -1,7 +1,7 @@ +import * as process from 'process'; import { BelongsToManyRepository, Database } from '@tachybase/database'; import { AppSupervisor } from '@tachybase/server'; -import { MockServer, createMockServer, isPg } from '@tachybase/test'; -import * as process from 'process'; +import { createMockServer, isPg, MockServer } from '@tachybase/test'; describe.runIf(isPg())('enable plugin', () => { let mainDb: Database; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/__tests__/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/__tests__/index.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/applications.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/applications.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/collections/collections.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/plugin.ts index 6154aa97f..306b467b7 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-multi-app-share-collection/src/server/plugin.ts @@ -1,8 +1,9 @@ +import { resolve } from 'path'; import Database from '@tachybase/database'; import PluginMultiAppManager from '@tachybase/plugin-multi-app-manager'; import { Application, AppSupervisor, Plugin } from '@tachybase/server'; + import lodash from 'lodash'; -import { resolve } from 'path'; const subAppFilteredPlugins = ['multi-app-share-collection', 'multi-app-manager']; const unSyncPlugins = ['localization-management']; diff --git a/packages/plugins/@nocobase/plugin-notifications/.npmignore b/packages/plugins/@tachybase/plugin-notifications/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/.npmignore rename to packages/plugins/@tachybase/plugin-notifications/.npmignore diff --git a/packages/plugins/@nocobase/plugin-notifications/README.md b/packages/plugins/@tachybase/plugin-notifications/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/README.md rename to packages/plugins/@tachybase/plugin-notifications/README.md diff --git a/packages/plugins/@nocobase/plugin-notifications/README.zh-CN.md b/packages/plugins/@tachybase/plugin-notifications/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-notifications/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-notifications/client.d.ts b/packages/plugins/@tachybase/plugin-notifications/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/client.d.ts rename to packages/plugins/@tachybase/plugin-notifications/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/client.js b/packages/plugins/@tachybase/plugin-notifications/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/client.js rename to packages/plugins/@tachybase/plugin-notifications/client.js diff --git a/packages/plugins/@nocobase/plugin-notifications/package.json b/packages/plugins/@tachybase/plugin-notifications/package.json similarity index 88% rename from packages/plugins/@nocobase/plugin-notifications/package.json rename to packages/plugins/@tachybase/plugin-notifications/package.json index 2c5eac1fc..587e44fcc 100644 --- a/packages/plugins/@nocobase/plugin-notifications/package.json +++ b/packages/plugins/@tachybase/plugin-notifications/package.json @@ -1,6 +1,6 @@ { - "name": "@nocobase/plugin-notifications", - "version": "0.21.33", + "name": "@tachybase/plugin-notifications", + "version": "0.21.34", "description": "", "license": "Apache-2.0", "main": "./dist/server/index.js", diff --git a/packages/plugins/@nocobase/plugin-notifications/server.d.ts b/packages/plugins/@tachybase/plugin-notifications/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/server.d.ts rename to packages/plugins/@tachybase/plugin-notifications/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/server.js b/packages/plugins/@tachybase/plugin-notifications/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/server.js rename to packages/plugins/@tachybase/plugin-notifications/server.js diff --git a/packages/plugins/@nocobase/plugin-notifications/src/client/index.ts b/packages/plugins/@tachybase/plugin-notifications/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/client/index.ts rename to packages/plugins/@tachybase/plugin-notifications/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/src/index.ts b/packages/plugins/@tachybase/plugin-notifications/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/index.ts rename to packages/plugins/@tachybase/plugin-notifications/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/__tests__/notifications.test.ts similarity index 90% rename from packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/__tests__/notifications.test.ts index fd430290a..b167d689b 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/__tests__/notifications.test.ts @@ -1,6 +1,8 @@ import Database from '@tachybase/database'; import { createMockServer } from '@tachybase/test'; + import nodemailerMock from 'nodemailer-mock'; + import { Notification, NotificationService } from '../models'; describe('notifications', () => { @@ -24,7 +26,7 @@ describe('notifications', () => { subject: 'Subject', body: 'hell world', receiver_options: { - data: 'to@nocobase.com', + data: 'to@tachybase.com', fromTable: 'users', filter: {}, dataField: 'email', @@ -37,10 +39,10 @@ describe('notifications', () => { port: 465, secure: true, auth: { - user: 'from@nocobase.com', + user: 'from@tachybase.com', pass: 'pass', }, - from: 'NocoBase', + from: 'NocoBase', }, }, }, diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_logs.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_logs.ts index 89c8f66c7..52fd0fa47 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_logs.ts @@ -1,4 +1,5 @@ import { CollectionOptions } from '@tachybase/database'; + import { NotificationLog } from '../models'; export default { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_services.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_services.ts index 678fdaa03..beff60fc6 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notification_services.ts @@ -1,4 +1,5 @@ import { CollectionOptions } from '@tachybase/database'; + import { NotificationService } from '../models'; export default { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notifications.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/collections/notifications.ts index fba847e96..061f12338 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/collections/notifications.ts @@ -1,4 +1,5 @@ import { CollectionOptions } from '@tachybase/database'; + import { Notification } from '../models'; export default { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/index.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/server/index.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/models/Notification.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/models/Notification.ts index d82705ae5..d63516300 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/models/Notification.ts @@ -1,5 +1,7 @@ import Database, { Model } from '@tachybase/database'; + import lodash from 'lodash'; + import { NotificationService } from './NotificationService'; export class Notification extends Model { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/models/NotificationLog.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/models/NotificationLog.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/models/NotificationService.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/models/NotificationService.ts index a2e8fb7ff..2fb871008 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/models/NotificationService.ts @@ -1,4 +1,5 @@ import { Model } from '@tachybase/database'; + import nodemailer from 'nodemailer'; export class NotificationService extends Model { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/models/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/models/index.ts diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts b/packages/plugins/@tachybase/plugin-notifications/src/server/server.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-notifications/src/server/server.ts rename to packages/plugins/@tachybase/plugin-notifications/src/server/server.ts index 2fc47b437..a890661cb 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-notifications/src/server/server.ts @@ -1,5 +1,5 @@ -import { Plugin } from '@tachybase/server'; import path from 'path'; +import { Plugin } from '@tachybase/server'; export default class PluginNotifications extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-oidc/.npmignore b/packages/plugins/@tachybase/plugin-oidc/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/.npmignore rename to packages/plugins/@tachybase/plugin-oidc/.npmignore diff --git a/packages/plugins/@nocobase/plugin-oidc/README.md b/packages/plugins/@tachybase/plugin-oidc/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/README.md rename to packages/plugins/@tachybase/plugin-oidc/README.md diff --git a/packages/plugins/@nocobase/plugin-oidc/README.zh-CN.md b/packages/plugins/@tachybase/plugin-oidc/README.zh-CN.md similarity index 96% rename from packages/plugins/@nocobase/plugin-oidc/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-oidc/README.zh-CN.md index 972dc9c4b..4fd05ae92 100644 --- a/packages/plugins/@nocobase/plugin-oidc/README.zh-CN.md +++ b/packages/plugins/@tachybase/plugin-oidc/README.zh-CN.md @@ -3,7 +3,7 @@ 本插件登录流程使用**授权码模式 (Authorization Code Flow)**. ## 依赖 -- `@nocobase/plugin-auth` 提供表,模型函数复用等 +- `@tachybase/plugin-auth` 提供表,模型函数复用等 ## 使用方法 > 以Sign in with Google为例 diff --git a/packages/plugins/@nocobase/plugin-oidc/client.d.ts b/packages/plugins/@tachybase/plugin-oidc/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/client.d.ts rename to packages/plugins/@tachybase/plugin-oidc/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/client.js b/packages/plugins/@tachybase/plugin-oidc/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/client.js rename to packages/plugins/@tachybase/plugin-oidc/client.js diff --git a/packages/plugins/@nocobase/plugin-oidc/package.json b/packages/plugins/@tachybase/plugin-oidc/package.json similarity index 91% rename from packages/plugins/@nocobase/plugin-oidc/package.json rename to packages/plugins/@tachybase/plugin-oidc/package.json index 00ff15efe..192c45d98 100644 --- a/packages/plugins/@nocobase/plugin-oidc/package.json +++ b/packages/plugins/@tachybase/plugin-oidc/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-oidc", + "name": "@tachybase/plugin-oidc", "displayName": "Auth: OIDC", - "version": "0.21.33", + "version": "0.21.34", "description": "OIDC (OpenID Connect) authentication.", "keywords": [ "Authentication" @@ -22,11 +22,11 @@ "react-router-dom": "^6.11.2" }, "peerDependencies": { - "@nocobase/plugin-auth": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/auth": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*" }, diff --git a/packages/plugins/@nocobase/plugin-oidc/server.d.ts b/packages/plugins/@tachybase/plugin-oidc/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/server.d.ts rename to packages/plugins/@tachybase/plugin-oidc/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/server.js b/packages/plugins/@tachybase/plugin-oidc/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/server.js rename to packages/plugins/@tachybase/plugin-oidc/server.js diff --git a/packages/plugins/@nocobase/plugin-oidc/src/client/OIDCButton.tsx b/packages/plugins/@tachybase/plugin-oidc/src/client/OIDCButton.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-oidc/src/client/OIDCButton.tsx rename to packages/plugins/@tachybase/plugin-oidc/src/client/OIDCButton.tsx index df3223844..da8092d54 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/client/OIDCButton.tsx +++ b/packages/plugins/@tachybase/plugin-oidc/src/client/OIDCButton.tsx @@ -1,10 +1,12 @@ -import { LoginOutlined } from '@ant-design/icons'; -import { css, useAPIClient } from '@tachybase/client'; -import { Button, Space, message } from 'antd'; import React, { useEffect } from 'react'; -import { useOidcTranslation } from './locale'; +import { css, useAPIClient } from '@tachybase/client'; +import { Authenticator } from '@tachybase/plugin-auth/client'; + +import { LoginOutlined } from '@ant-design/icons'; +import { Button, message, Space } from 'antd'; import { useLocation } from 'react-router-dom'; -import { Authenticator } from '@nocobase/plugin-auth/client'; + +import { useOidcTranslation } from './locale'; export interface OIDCProvider { clientId: string; diff --git a/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx b/packages/plugins/@tachybase/plugin-oidc/src/client/Options.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx rename to packages/plugins/@tachybase/plugin-oidc/src/client/Options.tsx index dc8407185..00be9973e 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/client/Options.tsx +++ b/packages/plugins/@tachybase/plugin-oidc/src/client/Options.tsx @@ -1,9 +1,11 @@ -import { CopyOutlined } from '@ant-design/icons'; +import React, { useMemo } from 'react'; +import { FormItem, Input, SchemaComponent, useApp } from '@tachybase/client'; import { ArrayItems, FormTab } from '@tachybase/components'; import { observer } from '@tachybase/schema'; -import { FormItem, Input, SchemaComponent, useApp } from '@tachybase/client'; -import { Card, Space, message } from 'antd'; -import React, { useMemo } from 'react'; + +import { CopyOutlined } from '@ant-design/icons'; +import { Card, message, Space } from 'antd'; + import { lang, useOidcTranslation } from './locale'; const schema = { diff --git a/packages/plugins/@nocobase/plugin-oidc/src/client/index.tsx b/packages/plugins/@tachybase/plugin-oidc/src/client/index.tsx similarity index 88% rename from packages/plugins/@nocobase/plugin-oidc/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-oidc/src/client/index.tsx index 9ce306b3f..b9762b665 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-oidc/src/client/index.tsx @@ -1,5 +1,6 @@ import { Plugin } from '@tachybase/client'; -import AuthPlugin from '@nocobase/plugin-auth/client'; +import AuthPlugin from '@tachybase/plugin-auth/client'; + import { authType } from '../constants'; import { OIDCButton } from './OIDCButton'; import { Options } from './Options'; diff --git a/packages/plugins/@nocobase/plugin-oidc/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-oidc/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-oidc/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/src/constants.ts b/packages/plugins/@tachybase/plugin-oidc/src/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/constants.ts rename to packages/plugins/@tachybase/plugin-oidc/src/constants.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/src/index.ts b/packages/plugins/@tachybase/plugin-oidc/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/index.ts rename to packages/plugins/@tachybase/plugin-oidc/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-oidc/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-oidc/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/__tests__/oidc.test.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/__tests__/oidc.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-oidc/src/server/__tests__/oidc.test.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/__tests__/oidc.test.ts index ee2f0bebd..74616a960 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/__tests__/oidc.test.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/__tests__/oidc.test.ts @@ -1,6 +1,8 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import { vi } from 'vitest'; + import { authType } from '../../constants'; import { OIDCAuth } from '../oidc-auth'; @@ -127,7 +129,7 @@ describe('oidc', () => { const user = await db.getRepository('users').create({ values: { nickname: 'has-email', - email: 'test@nocobase.com', + email: 'test@tachybase.com', }, }); agent = app.agent(); @@ -137,7 +139,7 @@ describe('oidc', () => { }), userinfo: () => ({ sub: 'user1', - email: 'test@nocobase.com', + email: 'test@tachybase.com', }), } as any); diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/actions/getAuthUrl.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/actions/getAuthUrl.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-oidc/src/server/actions/getAuthUrl.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/actions/getAuthUrl.ts index 32037e873..c5c58c316 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/actions/getAuthUrl.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/actions/getAuthUrl.ts @@ -1,7 +1,9 @@ import { Context, Next } from '@tachybase/actions'; -import { OIDCAuth } from '../oidc-auth'; + import { nanoid } from 'nanoid'; + import { cookieName } from '../../constants'; +import { OIDCAuth } from '../oidc-auth'; export const getAuthUrl = async (ctx: Context, next: Next) => { const { redirect = '' } = ctx.action.params.values || {}; diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/actions/redirect.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/actions/redirect.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-oidc/src/server/actions/redirect.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/actions/redirect.ts index 52934c671..0e83a4c04 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/actions/redirect.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/actions/redirect.ts @@ -1,5 +1,6 @@ import { Context, Next } from '@tachybase/actions'; import { AppSupervisor } from '@tachybase/server'; + import { OIDCAuth } from '../oidc-auth'; export const redirect = async (ctx: Context, next: Next) => { diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/index.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/server/index.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts index aafea6fe5..cdc05b642 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/migrations/20231007124508-update-autosignup.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { authType } from '../../constants'; export default class UpdateAutoSignupMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/oidc-auth.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/oidc-auth.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-oidc/src/server/oidc-auth.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/oidc-auth.ts index bb428273e..8d5dcd6c2 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/oidc-auth.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/oidc-auth.ts @@ -1,7 +1,10 @@ import { AuthConfig, BaseAuth } from '@tachybase/auth'; -import { AuthModel } from '@nocobase/plugin-auth'; +import { AuthModel } from '@tachybase/plugin-auth'; + import { Issuer } from 'openid-client'; + import { cookieName } from '../constants'; + export { Model } from '@tachybase/database'; export class OIDCAuth extends BaseAuth { diff --git a/packages/plugins/@nocobase/plugin-oidc/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-oidc/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-oidc/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-oidc/src/server/plugin.ts index fd07caa72..2a328db86 100644 --- a/packages/plugins/@nocobase/plugin-oidc/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-oidc/src/server/plugin.ts @@ -1,9 +1,10 @@ +import { resolve } from 'path'; import { Gateway, InstallOptions, Plugin } from '@tachybase/server'; + +import { authType } from '../constants'; import { getAuthUrl } from './actions/getAuthUrl'; import { redirect } from './actions/redirect'; -import { authType } from '../constants'; import { OIDCAuth } from './oidc-auth'; -import { resolve } from 'path'; export class OidcPlugin extends Plugin { afterAdd() {} diff --git a/packages/plugins/@nocobase/plugin-oidc/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-oidc/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-oidc/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-oidc/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-saml/.npmignore b/packages/plugins/@tachybase/plugin-saml/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/.npmignore rename to packages/plugins/@tachybase/plugin-saml/.npmignore diff --git a/packages/plugins/@nocobase/plugin-saml/README.md b/packages/plugins/@tachybase/plugin-saml/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/README.md rename to packages/plugins/@tachybase/plugin-saml/README.md diff --git a/packages/plugins/@nocobase/plugin-saml/README.zh-CN.md b/packages/plugins/@tachybase/plugin-saml/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-saml/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-saml/client.d.ts b/packages/plugins/@tachybase/plugin-saml/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/client.d.ts rename to packages/plugins/@tachybase/plugin-saml/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-saml/client.js b/packages/plugins/@tachybase/plugin-saml/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/client.js rename to packages/plugins/@tachybase/plugin-saml/client.js diff --git a/packages/plugins/@nocobase/plugin-saml/package.json b/packages/plugins/@tachybase/plugin-saml/package.json similarity index 90% rename from packages/plugins/@nocobase/plugin-saml/package.json rename to packages/plugins/@tachybase/plugin-saml/package.json index 935aa7b9c..ecc8c4ea7 100644 --- a/packages/plugins/@nocobase/plugin-saml/package.json +++ b/packages/plugins/@tachybase/plugin-saml/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-saml", + "name": "@tachybase/plugin-saml", "displayName": "Auth: SAML 2.0", - "version": "0.21.33", + "version": "0.21.34", "description": "SAML 2.0 authentication.", "keywords": [ "Authentication" @@ -19,11 +19,11 @@ "react-router-dom": "^6.11.2" }, "peerDependencies": { - "@nocobase/plugin-auth": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/auth": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", "@tachybase/sdk": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-saml/server.d.ts b/packages/plugins/@tachybase/plugin-saml/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/server.d.ts rename to packages/plugins/@tachybase/plugin-saml/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-saml/server.js b/packages/plugins/@tachybase/plugin-saml/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/server.js rename to packages/plugins/@tachybase/plugin-saml/server.js diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx b/packages/plugins/@tachybase/plugin-saml/src/client/Options.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx rename to packages/plugins/@tachybase/plugin-saml/src/client/Options.tsx index 9bb0ca2ed..af97540f9 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/Options.tsx +++ b/packages/plugins/@tachybase/plugin-saml/src/client/Options.tsx @@ -1,9 +1,11 @@ -import { CopyOutlined } from '@ant-design/icons'; -import { observer, useForm } from '@tachybase/schema'; -import { FormItem, Input, SchemaComponent, useApp, useRecord } from '@tachybase/client'; -import { getSubAppName } from '@tachybase/sdk'; -import { Card, message } from 'antd'; import React, { useMemo } from 'react'; +import { FormItem, Input, SchemaComponent, useApp, useRecord } from '@tachybase/client'; +import { observer, useForm } from '@tachybase/schema'; +import { getSubAppName } from '@tachybase/sdk'; + +import { CopyOutlined } from '@ant-design/icons'; +import { Card, message } from 'antd'; + import { lang, useSamlTranslation } from './locale'; const schema = { diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/SAMLButton.tsx b/packages/plugins/@tachybase/plugin-saml/src/client/SAMLButton.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-saml/src/client/SAMLButton.tsx rename to packages/plugins/@tachybase/plugin-saml/src/client/SAMLButton.tsx index 07738860f..502290793 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/SAMLButton.tsx +++ b/packages/plugins/@tachybase/plugin-saml/src/client/SAMLButton.tsx @@ -1,10 +1,12 @@ -import { LoginOutlined } from '@ant-design/icons'; -import { css, useAPIClient } from '@tachybase/client'; -import { Button, Space, message } from 'antd'; import React, { useEffect } from 'react'; -import { useSamlTranslation } from './locale'; +import { css, useAPIClient } from '@tachybase/client'; +import { Authenticator } from '@tachybase/plugin-auth/client'; + +import { LoginOutlined } from '@ant-design/icons'; +import { Button, message, Space } from 'antd'; import { useLocation } from 'react-router-dom'; -import { Authenticator } from '@nocobase/plugin-auth/client'; + +import { useSamlTranslation } from './locale'; export const SAMLButton = ({ authenticator }: { authenticator: Authenticator }) => { const { t } = useSamlTranslation(); diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/index.tsx b/packages/plugins/@tachybase/plugin-saml/src/client/index.tsx similarity index 88% rename from packages/plugins/@nocobase/plugin-saml/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-saml/src/client/index.tsx index 043fec28d..2f45219d0 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-saml/src/client/index.tsx @@ -1,8 +1,9 @@ import { Plugin } from '@tachybase/client'; -import AuthPlugin from '@nocobase/plugin-auth/client'; +import AuthPlugin from '@tachybase/plugin-auth/client'; + import { authType } from '../constants'; -import { SAMLButton } from './SAMLButton'; import { Options } from './Options'; +import { SAMLButton } from './SAMLButton'; export class SamlPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-saml/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-saml/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts b/packages/plugins/@tachybase/plugin-saml/src/client/schemas/saml.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts rename to packages/plugins/@tachybase/plugin-saml/src/client/schemas/saml.ts index f1ed13506..2401b4c8a 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/client/schemas/saml.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/client/schemas/saml.ts @@ -1,5 +1,5 @@ -import { ISchema } from '@tachybase/schema'; import { useActionContext, useRequest } from '@tachybase/client'; +import { ISchema } from '@tachybase/schema'; const collection = { name: 'samlProviders', diff --git a/packages/plugins/@nocobase/plugin-saml/src/constants.ts b/packages/plugins/@tachybase/plugin-saml/src/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/constants.ts rename to packages/plugins/@tachybase/plugin-saml/src/constants.ts diff --git a/packages/plugins/@nocobase/plugin-saml/src/index.ts b/packages/plugins/@tachybase/plugin-saml/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/index.ts rename to packages/plugins/@tachybase/plugin-saml/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-saml/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-saml/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-saml/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-saml/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-saml/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-saml/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-saml/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/__tests__/saml.test.ts b/packages/plugins/@tachybase/plugin-saml/src/server/__tests__/saml.test.ts similarity index 92% rename from packages/plugins/@nocobase/plugin-saml/src/server/__tests__/saml.test.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/__tests__/saml.test.ts index 817c6ca0d..59dd05e1c 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/__tests__/saml.test.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/__tests__/saml.test.ts @@ -1,7 +1,9 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import { SAML } from '@node-saml/node-saml'; import { vi } from 'vitest'; + import { authType } from '../../constants'; describe('saml', () => { @@ -61,8 +63,8 @@ describe('saml', () => { }); vi.spyOn(SAML.prototype, 'validatePostResponseAsync').mockResolvedValue({ profile: { - nameID: 'test@nocobase.com', - email: 'test@nocobase.com', + nameID: 'test@tachybase.com', + email: 'test@tachybase.com', firstName: 'Test', lastName: 'Nocobase', issuer: 'issuer', @@ -89,8 +91,8 @@ describe('saml', () => { }); vi.spyOn(SAML.prototype, 'validatePostResponseAsync').mockResolvedValue({ profile: { - nameID: 'test@nocobase.com', - email: 'test@nocobase.com', + nameID: 'test@tachybase.com', + email: 'test@tachybase.com', firstName: 'Test', lastName: 'Nocobase', issuer: 'issuer', @@ -123,8 +125,8 @@ describe('saml', () => { vi.spyOn(SAML.prototype, 'validatePostResponseAsync').mockResolvedValue({ profile: { - nameID: 'old@nocobase.com', - email: 'old@nocobase.com', + nameID: 'old@tachybase.com', + email: 'old@tachybase.com', firstName: 'Old', lastName: 'Nocobase', issuer: 'issuer', @@ -133,7 +135,7 @@ describe('saml', () => { loggedOut: false, }); - const email = 'old@nocobase.com'; + const email = 'old@tachybase.com'; const userRepo = db.getRepository('users'); const user = await userRepo.create({ values: { @@ -172,7 +174,7 @@ describe('saml', () => { vi.spyOn(SAML.prototype, 'validatePostResponseAsync').mockResolvedValue({ profile: { nameID: 'username', - email: 'old@nocobase.com', + email: 'old@tachybase.com', firstName: 'Old', lastName: 'Nocobase', issuer: 'issuer', @@ -181,7 +183,7 @@ describe('saml', () => { loggedOut: false, }); - const email = 'old@nocobase.com'; + const email = 'old@tachybase.com'; const userRepo = db.getRepository('users'); const user = await userRepo.create({ values: { diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/actions/getAuthUrl.ts b/packages/plugins/@tachybase/plugin-saml/src/server/actions/getAuthUrl.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/server/actions/getAuthUrl.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/actions/getAuthUrl.ts index 58935de8b..7e2488eb4 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/actions/getAuthUrl.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/actions/getAuthUrl.ts @@ -1,5 +1,7 @@ import { Context, Next } from '@tachybase/actions'; + import { SAML } from '@node-saml/node-saml'; + import { SAMLAuth } from '../saml-auth'; export const getAuthUrl = async (ctx: Context, next: Next) => { diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/actions/metadata.ts b/packages/plugins/@tachybase/plugin-saml/src/server/actions/metadata.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/server/actions/metadata.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/actions/metadata.ts index a53ea3fa8..854d37feb 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/actions/metadata.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/actions/metadata.ts @@ -1,7 +1,9 @@ import { Context, Next } from '@tachybase/actions'; -import { SAMLAuth } from '../saml-auth'; + import { SAML } from '@node-saml/node-saml'; +import { SAMLAuth } from '../saml-auth'; + export const metadata = async (ctx: Context, next: Next) => { const auth = ctx.auth as SAMLAuth; const options = auth.getOptions(); diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/actions/redirect.ts b/packages/plugins/@tachybase/plugin-saml/src/server/actions/redirect.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/server/actions/redirect.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/actions/redirect.ts index c6f377fc6..8a56b0e5a 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/actions/redirect.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/actions/redirect.ts @@ -1,5 +1,6 @@ import { Context, Next } from '@tachybase/actions'; import { AppSupervisor } from '@tachybase/server'; + import { SAMLAuth } from '../saml-auth'; export const redirect = async (ctx: Context, next: Next) => { diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/index.ts b/packages/plugins/@tachybase/plugin-saml/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/server/index.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts b/packages/plugins/@tachybase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts index 9c0526a9f..4639fcde4 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/migrations/20231008112900-update-autosignup.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { authType } from '../../constants'; export default class UpdateAutoSignupMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-saml/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-saml/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/plugin.ts index 45bce4b30..07b685829 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/plugin.ts @@ -1,10 +1,11 @@ +import { resolve } from 'path'; import { InstallOptions, Plugin } from '@tachybase/server'; + +import { authType } from '../constants'; import { getAuthUrl } from './actions/getAuthUrl'; import { metadata } from './actions/metadata'; import { redirect } from './actions/redirect'; import { SAMLAuth } from './saml-auth'; -import { authType } from '../constants'; -import { resolve } from 'path'; export class SAMLPlugin extends Plugin { afterAdd() {} diff --git a/packages/plugins/@nocobase/plugin-saml/src/server/saml-auth.ts b/packages/plugins/@tachybase/plugin-saml/src/server/saml-auth.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-saml/src/server/saml-auth.ts rename to packages/plugins/@tachybase/plugin-saml/src/server/saml-auth.ts index bc7674572..ff38eb0e7 100644 --- a/packages/plugins/@nocobase/plugin-saml/src/server/saml-auth.ts +++ b/packages/plugins/@tachybase/plugin-saml/src/server/saml-auth.ts @@ -1,6 +1,8 @@ import { AuthConfig, BaseAuth } from '@tachybase/auth'; -import { AuthModel } from '@nocobase/plugin-auth'; +import { AuthModel } from '@tachybase/plugin-auth'; + import { SAML, SamlConfig } from '@node-saml/node-saml'; + export { Model } from '@tachybase/database'; interface SAMLOptions { diff --git a/packages/plugins/@nocobase/plugin-saml/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-saml/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-saml/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-saml/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-sample-hello/.npmignore b/packages/plugins/@tachybase/plugin-sample-hello/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/.npmignore rename to packages/plugins/@tachybase/plugin-sample-hello/.npmignore diff --git a/packages/plugins/@nocobase/plugin-sample-hello/README.md b/packages/plugins/@tachybase/plugin-sample-hello/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/README.md rename to packages/plugins/@tachybase/plugin-sample-hello/README.md diff --git a/packages/plugins/@nocobase/plugin-sample-hello/client.d.ts b/packages/plugins/@tachybase/plugin-sample-hello/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/client.d.ts rename to packages/plugins/@tachybase/plugin-sample-hello/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-sample-hello/client.js b/packages/plugins/@tachybase/plugin-sample-hello/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/client.js rename to packages/plugins/@tachybase/plugin-sample-hello/client.js diff --git a/packages/plugins/@nocobase/plugin-sample-hello/package.json b/packages/plugins/@tachybase/plugin-sample-hello/package.json similarity index 89% rename from packages/plugins/@nocobase/plugin-sample-hello/package.json rename to packages/plugins/@tachybase/plugin-sample-hello/package.json index 80f09abff..8a93d05b9 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/package.json +++ b/packages/plugins/@tachybase/plugin-sample-hello/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-sample-hello", + "name": "@tachybase/plugin-sample-hello", "displayName": "Hello", - "version": "0.21.33", + "version": "0.21.34", "description": "A simple NocoBase plugin example", "main": "./dist/server/index.js", "devDependencies": { diff --git a/packages/plugins/@nocobase/plugin-sample-hello/server.d.ts b/packages/plugins/@tachybase/plugin-sample-hello/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/server.d.ts rename to packages/plugins/@tachybase/plugin-sample-hello/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-sample-hello/server.js b/packages/plugins/@tachybase/plugin-sample-hello/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/server.js rename to packages/plugins/@tachybase/plugin-sample-hello/server.js diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx b/packages/plugins/@tachybase/plugin-sample-hello/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-sample-hello/src/client/index.tsx index b01d2dcba..32d404eb7 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-sample-hello/src/client/index.tsx @@ -1,7 +1,8 @@ -import { TableOutlined } from '@ant-design/icons'; -import { Plugin, SchemaInitializerItem, SchemaSettings, useSchemaInitializer } from '@tachybase/client'; -import { Card } from 'antd'; import React from 'react'; +import { Plugin, SchemaInitializerItem, SchemaSettings, useSchemaInitializer } from '@tachybase/client'; + +import { TableOutlined } from '@ant-design/icons'; +import { Card } from 'antd'; import { useTranslation } from 'react-i18next'; export const HelloBlockInitializer = (props) => { diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/index.ts b/packages/plugins/@tachybase/plugin-sample-hello/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/index.ts rename to packages/plugins/@tachybase/plugin-sample-hello/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/actions/.gitkeep b/packages/plugins/@tachybase/plugin-sample-hello/src/server/actions/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/server/actions/.gitkeep rename to packages/plugins/@tachybase/plugin-sample-hello/src/server/actions/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-sample-hello/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-sample-hello/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts b/packages/plugins/@tachybase/plugin-sample-hello/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts rename to packages/plugins/@tachybase/plugin-sample-hello/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/models/.gitkeep b/packages/plugins/@tachybase/plugin-sample-hello/src/server/models/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/server/models/.gitkeep rename to packages/plugins/@tachybase/plugin-sample-hello/src/server/models/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/repositories/.gitkeep b/packages/plugins/@tachybase/plugin-sample-hello/src/server/repositories/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-sample-hello/src/server/repositories/.gitkeep rename to packages/plugins/@tachybase/plugin-sample-hello/src/server/repositories/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-sequence-field/.npmignore b/packages/plugins/@tachybase/plugin-sequence-field/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/.npmignore rename to packages/plugins/@tachybase/plugin-sequence-field/.npmignore diff --git a/packages/plugins/@nocobase/plugin-sequence-field/README.md b/packages/plugins/@tachybase/plugin-sequence-field/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/README.md rename to packages/plugins/@tachybase/plugin-sequence-field/README.md diff --git a/packages/plugins/@nocobase/plugin-sequence-field/README.zh-CN.md b/packages/plugins/@tachybase/plugin-sequence-field/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-sequence-field/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-sequence-field/client.d.ts b/packages/plugins/@tachybase/plugin-sequence-field/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/client.d.ts rename to packages/plugins/@tachybase/plugin-sequence-field/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/client.js b/packages/plugins/@tachybase/plugin-sequence-field/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/client.js rename to packages/plugins/@tachybase/plugin-sequence-field/client.js diff --git a/packages/plugins/@nocobase/plugin-sequence-field/package.json b/packages/plugins/@tachybase/plugin-sequence-field/package.json similarity index 90% rename from packages/plugins/@nocobase/plugin-sequence-field/package.json rename to packages/plugins/@tachybase/plugin-sequence-field/package.json index 6b39f9dbf..b6be36315 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/package.json +++ b/packages/plugins/@tachybase/plugin-sequence-field/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-sequence-field", + "name": "@tachybase/plugin-sequence-field", "displayName": "Collection field: Sequence", - "version": "0.21.33", + "version": "0.21.34", "description": "Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.", "keywords": [ "Collection fields" @@ -22,10 +22,10 @@ "react-js-cron": "^3.1.0" }, "peerDependencies": { - "@nocobase/plugin-collection-manager": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", "@tachybase/utils": "workspace:*" diff --git a/packages/plugins/@nocobase/plugin-sequence-field/server.d.ts b/packages/plugins/@tachybase/plugin-sequence-field/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/server.d.ts rename to packages/plugins/@tachybase/plugin-sequence-field/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/server.js b/packages/plugins/@tachybase/plugin-sequence-field/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/server.js rename to packages/plugins/@tachybase/plugin-sequence-field/server.js diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx b/packages/plugins/@tachybase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx rename to packages/plugins/@tachybase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx index d70568373..24cd26fbf 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/client/SequenceFieldProvider.tsx @@ -1,5 +1,4 @@ import React, { FC } from 'react'; - import { SchemaComponentOptions } from '@tachybase/client'; import { RuleConfigForm } from './sequence'; diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/index.tsx b/packages/plugins/@tachybase/plugin-sequence-field/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-sequence-field/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-sequence-field/src/client/index.tsx index 63f9de1e7..bbbb67c87 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/client/index.tsx @@ -1,6 +1,7 @@ import { Plugin } from '@tachybase/client'; -import { SequenceFieldProvider } from './SequenceFieldProvider'; + import { SequenceFieldInterface } from './sequence'; +import { SequenceFieldProvider } from './SequenceFieldProvider'; export class SequenceFieldPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx b/packages/plugins/@tachybase/plugin-sequence-field/src/client/sequence.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx rename to packages/plugins/@tachybase/plugin-sequence-field/src/client/sequence.tsx index 34b68bd37..b969fdb0f 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/client/sequence.tsx +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/client/sequence.tsx @@ -1,21 +1,22 @@ -import { ArrayTable, FormButtonGroup, FormDrawer, FormLayout, Submit } from '@tachybase/components'; -import { onFieldValueChange } from '@tachybase/schema'; -import { ISchema, SchemaOptionsContext, useForm, useFormEffects } from '@tachybase/schema'; +import React, { useContext } from 'react'; import { CollectionFieldInterface, Cron, - SchemaComponent, - SchemaComponentOptions, css, interfacesProperties, + SchemaComponent, + SchemaComponentOptions, useCompile, useToken, } from '@tachybase/client'; +import { ArrayTable, FormButtonGroup, FormDrawer, FormLayout, Submit } from '@tachybase/components'; +import { ISchema, onFieldValueChange, SchemaOptionsContext, useForm, useFormEffects } from '@tachybase/schema'; import { error } from '@tachybase/utils/client'; + import { Button, Select } from 'antd'; -import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; -import { NAMESPACE, lang } from './locale'; + +import { lang, NAMESPACE } from './locale'; function RuleTypeSelect(props) { const compile = useCompile(); diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/index.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/index.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-sequence-field/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-sequence-field/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/Plugin.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/Plugin.ts index 1333163c5..120fb70bd 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/server/Plugin.ts @@ -1,9 +1,9 @@ import { randomInt } from 'crypto'; import path from 'path'; import { promisify } from 'util'; - import { Plugin } from '@tachybase/server'; import { Registry } from '@tachybase/utils'; + import { Pattern, SequenceField } from './fields/sequence-field'; const asyncRandomInt = promisify(randomInt); diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts index 309ce2f7f..be51beee6 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/server/__tests__/sequence-field.test.ts @@ -1,6 +1,8 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import dayjs from 'dayjs'; + import { SequenceField } from '..'; describe('sequence field', () => { diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/collections/sequences.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/collections/sequences.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/collections/sequences.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/collections/sequences.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/fields/sequence-field.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/fields/sequence-field.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/fields/sequence-field.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/fields/sequence-field.ts index 0dd686a7e..f18de0d47 100644 --- a/packages/plugins/@nocobase/plugin-sequence-field/src/server/fields/sequence-field.ts +++ b/packages/plugins/@tachybase/plugin-sequence-field/src/server/fields/sequence-field.ts @@ -9,6 +9,7 @@ import { ValidationErrorItem, } from '@tachybase/database'; import { Registry } from '@tachybase/utils'; + import parser from 'cron-parser'; import dayjs from 'dayjs'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/index.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/index.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-sequence-field/src/server/migrations/20221207022250-sequence-field-key.ts b/packages/plugins/@tachybase/plugin-sequence-field/src/server/migrations/20221207022250-sequence-field-key.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sequence-field/src/server/migrations/20221207022250-sequence-field-key.ts rename to packages/plugins/@tachybase/plugin-sequence-field/src/server/migrations/20221207022250-sequence-field-key.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/.npmignore b/packages/plugins/@tachybase/plugin-sms-auth/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/.npmignore rename to packages/plugins/@tachybase/plugin-sms-auth/.npmignore diff --git a/packages/plugins/@nocobase/plugin-sms-auth/README.md b/packages/plugins/@tachybase/plugin-sms-auth/README.md similarity index 88% rename from packages/plugins/@nocobase/plugin-sms-auth/README.md rename to packages/plugins/@tachybase/plugin-sms-auth/README.md index b3d39191e..3ac4df12b 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/README.md +++ b/packages/plugins/@tachybase/plugin-sms-auth/README.md @@ -5,7 +5,7 @@ ## 依赖 - `@tachybase/auth` 认证插件,提供认证相关功能,表、模型、函数复用等。 -- `@nocobase/plugin-verification` 验证码插件,提供短信发送功能。 +- `@tachybase/plugin-verification` 验证码插件,提供短信发送功能。 ## 使用方法 diff --git a/packages/plugins/@nocobase/plugin-sms-auth/client.d.ts b/packages/plugins/@tachybase/plugin-sms-auth/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/client.d.ts rename to packages/plugins/@tachybase/plugin-sms-auth/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/client.js b/packages/plugins/@tachybase/plugin-sms-auth/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/client.js rename to packages/plugins/@tachybase/plugin-sms-auth/client.js diff --git a/packages/plugins/@nocobase/plugin-sms-auth/package.json b/packages/plugins/@tachybase/plugin-sms-auth/package.json similarity index 84% rename from packages/plugins/@nocobase/plugin-sms-auth/package.json rename to packages/plugins/@tachybase/plugin-sms-auth/package.json index ac27a022d..efd36bc46 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/package.json +++ b/packages/plugins/@tachybase/plugin-sms-auth/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-sms-auth", + "name": "@tachybase/plugin-sms-auth", "displayName": "Auth: SMS", - "version": "0.21.33", + "version": "0.21.34", "description": "SMS authentication.", "keywords": [ "Authentication" @@ -16,12 +16,12 @@ "react-i18next": "^11.15.1" }, "peerDependencies": { - "@nocobase/plugin-auth": "workspace:*", - "@nocobase/plugin-verification": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/auth": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", + "@tachybase/plugin-verification": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*" }, diff --git a/packages/plugins/@nocobase/plugin-sms-auth/server.d.ts b/packages/plugins/@tachybase/plugin-sms-auth/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/server.d.ts rename to packages/plugins/@tachybase/plugin-sms-auth/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/server.js b/packages/plugins/@tachybase/plugin-sms-auth/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/server.js rename to packages/plugins/@tachybase/plugin-sms-auth/server.js diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/Options.tsx b/packages/plugins/@tachybase/plugin-sms-auth/src/client/Options.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-sms-auth/src/client/Options.tsx rename to packages/plugins/@tachybase/plugin-sms-auth/src/client/Options.tsx index 25659ef9a..22ba47be3 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/Options.tsx +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/client/Options.tsx @@ -1,5 +1,6 @@ -import { SchemaComponent } from '@tachybase/client'; import React from 'react'; +import { SchemaComponent } from '@tachybase/client'; + import { useAuthTranslation } from './locale'; export const Options = () => { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx b/packages/plugins/@tachybase/plugin-sms-auth/src/client/SigninPage.tsx similarity index 95% rename from packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx rename to packages/plugins/@tachybase/plugin-sms-auth/src/client/SigninPage.tsx index c7d1a4509..0eb7efefb 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/SigninPage.tsx +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/client/SigninPage.tsx @@ -1,8 +1,9 @@ -import { SchemaComponent } from '@tachybase/client'; -import { ISchema } from '@tachybase/schema'; import React from 'react'; +import { SchemaComponent } from '@tachybase/client'; +import { Authenticator, useSignIn } from '@tachybase/plugin-auth/client'; +import { ISchema } from '@tachybase/schema'; + import VerificationCode from './VerificationCode'; -import { Authenticator, useSignIn } from '@nocobase/plugin-auth/client'; const phoneForm: ISchema = { type: 'object', diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx b/packages/plugins/@tachybase/plugin-sms-auth/src/client/VerificationCode.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx rename to packages/plugins/@tachybase/plugin-sms-auth/src/client/VerificationCode.tsx index 10e1b38b8..7fdb81a56 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/VerificationCode.tsx +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/client/VerificationCode.tsx @@ -1,7 +1,8 @@ -import { useForm } from '@tachybase/schema'; -import { css, useAPIClient } from '@tachybase/client'; -import { Button, Input, message } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; +import { css, useAPIClient } from '@tachybase/client'; +import { useForm } from '@tachybase/schema'; + +import { Button, Input, message } from 'antd'; import { useTranslation } from 'react-i18next'; export default function VerificationCode({ targetFieldName = 'phone', actionType, value, onChange }) { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/index.tsx b/packages/plugins/@tachybase/plugin-sms-auth/src/client/index.tsx similarity index 88% rename from packages/plugins/@nocobase/plugin-sms-auth/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-sms-auth/src/client/index.tsx index 15093d297..6e97ee632 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/client/index.tsx @@ -1,8 +1,9 @@ import { Plugin } from '@tachybase/client'; -import AuthPlugin from '@nocobase/plugin-auth/client'; -import { SigninPage } from './SigninPage'; -import { Options } from './Options'; +import AuthPlugin from '@tachybase/plugin-auth/client'; + import { authType } from '../constants'; +import { Options } from './Options'; +import { SigninPage } from './SigninPage'; export class SmsAuthPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/constants.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/constants.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/constants.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/index.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/index.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-sms-auth/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-sms-auth/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-sms-auth/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-sms-auth/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-sms-auth/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-sms-auth/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/__tests__/signin.test.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/__tests__/signin.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/__tests__/signin.test.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/__tests__/signin.test.ts index 310b111ff..d3eb4e04a 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/server/__tests__/signin.test.ts +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/server/__tests__/signin.test.ts @@ -1,6 +1,7 @@ import { Database, Model, ModelStatic } from '@tachybase/database'; -import VerificationPlugin from '@nocobase/plugin-verification'; +import VerificationPlugin from '@tachybase/plugin-verification'; import { createMockServer, MockServer } from '@tachybase/test'; + import { authType } from '../../constants'; class Provider { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-sms-auth/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/index.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/index.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/en-US.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/ja-JP.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/ja-JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/ja-JP.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/ja-JP.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts index c0031bd88..7b37f0d91 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/server/migrations/20230607180000-sms-authenticator.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import { authType } from '../../constants'; export default class AddBasicAuthMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/plugin.ts similarity index 88% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/plugin.ts index c05f921e3..9b6805ef9 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/server/plugin.ts @@ -1,6 +1,7 @@ -import VerificationPlugin from '@nocobase/plugin-verification'; -import { InstallOptions, Plugin } from '@tachybase/server'; import { resolve } from 'path'; +import VerificationPlugin from '@tachybase/plugin-verification'; +import { InstallOptions, Plugin } from '@tachybase/server'; + import { authType } from '../constants'; import { SMSAuth } from './sms-auth'; @@ -18,7 +19,7 @@ export class SmsAuthPlugin extends Plugin { const verificationPlugin: VerificationPlugin = this.app.getPlugin('verification'); if (!verificationPlugin) { - this.app.logger.warn('sms-auth: @nocobase/plugin-verification is required'); + this.app.logger.warn('sms-auth: @tachybase/plugin-verification is required'); return; } verificationPlugin.interceptors.register('auth:signIn', { diff --git a/packages/plugins/@nocobase/plugin-sms-auth/src/server/sms-auth.ts b/packages/plugins/@tachybase/plugin-sms-auth/src/server/sms-auth.ts similarity index 89% rename from packages/plugins/@nocobase/plugin-sms-auth/src/server/sms-auth.ts rename to packages/plugins/@tachybase/plugin-sms-auth/src/server/sms-auth.ts index a3b4a3ef2..f48a06a49 100644 --- a/packages/plugins/@nocobase/plugin-sms-auth/src/server/sms-auth.ts +++ b/packages/plugins/@tachybase/plugin-sms-auth/src/server/sms-auth.ts @@ -1,7 +1,8 @@ import { AuthConfig, BaseAuth } from '@tachybase/auth'; import { Model } from '@tachybase/database'; -import { AuthModel } from '@nocobase/plugin-auth'; -import VerificationPlugin from '@nocobase/plugin-verification'; +import { AuthModel } from '@tachybase/plugin-auth'; +import VerificationPlugin from '@tachybase/plugin-verification'; + import { namespace } from '../constants'; export class SMSAuth extends BaseAuth { @@ -17,7 +18,7 @@ export class SMSAuth extends BaseAuth { const ctx = this.ctx; const verificationPlugin: VerificationPlugin = ctx.app.getPlugin('verification'); if (!verificationPlugin) { - throw new Error('sms-auth: @nocobase/plugin-verification is required'); + throw new Error('sms-auth: @tachybase/plugin-verification is required'); } let user: Model; await verificationPlugin.intercept(ctx, async () => { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/.npmignore b/packages/plugins/@tachybase/plugin-snapshot-field/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/.npmignore rename to packages/plugins/@tachybase/plugin-snapshot-field/.npmignore diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/README.md b/packages/plugins/@tachybase/plugin-snapshot-field/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/README.md rename to packages/plugins/@tachybase/plugin-snapshot-field/README.md diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/README.zh-CN.md b/packages/plugins/@tachybase/plugin-snapshot-field/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-snapshot-field/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/client.d.ts b/packages/plugins/@tachybase/plugin-snapshot-field/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/client.d.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/client.js b/packages/plugins/@tachybase/plugin-snapshot-field/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/client.js rename to packages/plugins/@tachybase/plugin-snapshot-field/client.js diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/package.json b/packages/plugins/@tachybase/plugin-snapshot-field/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-snapshot-field/package.json rename to packages/plugins/@tachybase/plugin-snapshot-field/package.json index d4d0af56b..d9b450a12 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/package.json +++ b/packages/plugins/@tachybase/plugin-snapshot-field/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-snapshot-field", + "name": "@tachybase/plugin-snapshot-field", "displayName": "Collection field: Snapshot", - "version": "0.21.33", + "version": "0.21.34", "description": "When adding a new record, create a snapshot for its relational record and save in the new record. The snapshot will not be updated when the relational record is updated.", "keywords": [ "Collection fields" diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/server.d.ts b/packages/plugins/@tachybase/plugin-snapshot-field/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/server.d.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/server.js b/packages/plugins/@tachybase/plugin-snapshot-field/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/server.js rename to packages/plugins/@tachybase/plugin-snapshot-field/server.js diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_linkto.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_linkto.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_linkto.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_linkto.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_m2m.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_m2m.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_m2m.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_m2m.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_o2m.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_o2m.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_o2m.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_o2m.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_o2o.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_o2o.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/field_o2o.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/field_o2o.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_linkto.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_linkto.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_linkto.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_linkto.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_m2m.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_m2m.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_m2m.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_m2m.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_o2m.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_o2m.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_o2m.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_o2m.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_o2o.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_o2o.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/snap_o2o.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/snap_o2o.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_a.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_a.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_a.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_a.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_b.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_b.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_b.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_b.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_m2m.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_m2m.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/data/table_m2m.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/data/table_m2m.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/fieldsHistory.test.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/fieldsHistory.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/fieldsHistory.test.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/fieldsHistory.test.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/snapshots.test.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/snapshots.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/snapshots.test.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/snapshots.test.ts index 6c1e0c87c..096687d3a 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/__tests__/snapshots.test.ts +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/__tests__/snapshots.test.ts @@ -1,4 +1,5 @@ import { createMockServer, MockServer } from '@tachybase/test'; + import { field_linkto } from './data/field_linkto'; import { field_m2m } from './data/field_m2m'; import { field_o2m } from './data/field_o2m'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx index ecc85cf83..5f0a055b5 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx @@ -1,4 +1,5 @@ import { CompatibleSchemaInitializer, gridRowColWrap } from '@tachybase/client'; + import { NAMESPACE } from '../../locale'; /** diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx index f2d5790bf..49bb2b0db 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx @@ -1,17 +1,17 @@ import React from 'react'; -import { FormOutlined } from '@ant-design/icons'; import { - useBlockAssociationContext, - useCollection_deprecated, - useSchemaTemplateManager, - useRecordCollectionDataSourceItems, - useBlockRequestContext, - useSchemaInitializer, SchemaInitializerItem, + useBlockAssociationContext, + useBlockRequestContext, + useCollection_deprecated, + useRecordCollectionDataSourceItems, + useSchemaInitializer, useSchemaInitializerItem, + useSchemaTemplateManager, } from '@tachybase/client'; -import { ISchema } from '@tachybase/schema'; -import { uid } from '@tachybase/schema'; +import { ISchema, uid } from '@tachybase/schema'; + +import { FormOutlined } from '@ant-design/icons'; export const createSnapshotBlockSchema = (options) => { const { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx index 1f19af42b..e3914a314 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx @@ -1,5 +1,4 @@ -import { createForm } from '@tachybase/schema'; -import { useField } from '@tachybase/schema'; +import React, { useMemo, useRef } from 'react'; import { BlockAssociationContext, BlockRequestContext_deprecated, @@ -15,8 +14,9 @@ import { useRecord, useResource, } from '@tachybase/client'; +import { createForm, useField } from '@tachybase/schema'; + import { Spin } from 'antd'; -import React, { useMemo, useRef } from 'react'; const InternalFormBlockProvider = (props) => { const { action, readPretty } = props; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx index c9f9a528d..1ab80a57f 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx @@ -1,5 +1,6 @@ -import { CollectionHistoryProvider, SchemaComponentOptions } from '@tachybase/client'; import React from 'react'; +import { CollectionHistoryProvider, SchemaComponentOptions } from '@tachybase/client'; + import { SnapshotOwnerCollectionFieldsSelect } from './components/SnapshotOwnerCollectionFieldsSelect'; import { SnapshotBlockInitializersDetailItem } from './SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem'; import { SnapshotBlockProvider } from './SnapshotBlock/SnapshotBlockProvider'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx index 633211433..fc8d32c6a 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx @@ -1,10 +1,10 @@ +import React from 'react'; import { CollectionManagerProvider_deprecated, ExtendCollectionsProvider, useCollectionManager_deprecated, useHistoryCollectionsByNames, } from '@tachybase/client'; -import React from 'react'; export const SnapshotHistoryCollectionProvider: React.FC<{ collectionName: string }> = (props) => { const { collectionName } = props; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx index 018c7daba..93ce6423d 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx @@ -1,6 +1,7 @@ -import { connect, mapReadPretty, useFieldSchema } from '@tachybase/schema'; -import { ReadPrettyRecordPicker, useCollection_deprecated } from '@tachybase/client'; import React from 'react'; +import { ReadPrettyRecordPicker, useCollection_deprecated } from '@tachybase/client'; +import { connect, mapReadPretty, useFieldSchema } from '@tachybase/schema'; + import { SnapshotHistoryCollectionProvider } from './SnapshotHistoryCollectionProvider'; const ReadPrettyRecordPickerWrapper = (props) => { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx index 84297c3ef..81cd0eecd 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx @@ -1,6 +1,8 @@ -import { useCollectionManager_deprecated, useCompile } from '@tachybase/client'; -import { Select, SelectProps } from 'antd'; import React from 'react'; +import { useCollectionManager_deprecated, useCompile } from '@tachybase/client'; + +import { Select, SelectProps } from 'antd'; + import { useTopRecord } from '../interface'; export type SnapshotOwnerCollectionFieldsSelectProps = Omit; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/index.tsx index b21f1e322..6a7060bed 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/index.tsx @@ -1,10 +1,11 @@ import { Plugin } from '@tachybase/client'; -import { SnapshotFieldProvider } from './SnapshotFieldProvider'; + +import { SnapshotFieldInterface } from './interface'; import { snapshotBlockInitializers, snapshotBlockInitializers_deprecated, } from './SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers'; -import { SnapshotFieldInterface } from './interface'; +import { SnapshotFieldProvider } from './SnapshotFieldProvider'; export class SnapshotFieldPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/interface.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/interface.ts index 46383ae59..2bce66145 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/interface.ts @@ -1,12 +1,13 @@ -import type { Field } from '@tachybase/schema'; -import { ISchema, useForm } from '@tachybase/schema'; import { CollectionFieldInterface, interfacesProperties, useCollectionManager_deprecated, useRecord, } from '@tachybase/client'; +import { ISchema, useForm, type Field } from '@tachybase/schema'; + import lodash from 'lodash'; + import { NAMESPACE } from './locale'; const { defaultProps } = interfacesProperties; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/es-ES.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/es-ES.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/es-ES.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/es-ES.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-snapshot-field/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-snapshot-field/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/fields/snapshot-field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/fields/snapshot-field.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/server/plugin.ts index 4d81a4396..309b9d7a8 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-snapshot-field/src/server/plugin.ts @@ -1,6 +1,7 @@ +import { resolve } from 'path'; import { Model } from '@tachybase/database'; import { InstallOptions, Plugin } from '@tachybase/server'; -import { resolve } from 'path'; + import { SnapshotField } from './fields/snapshot-field'; export class SnapshotFieldPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-snapshot-field/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-snapshot-field/src/swagger/index.ts diff --git a/packages/plugins/@tachybase/plugin-system-settings/package.json b/packages/plugins/@tachybase/plugin-system-settings/package.json index 6fbb84fb7..c169d4f65 100644 --- a/packages/plugins/@tachybase/plugin-system-settings/package.json +++ b/packages/plugins/@tachybase/plugin-system-settings/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-system-settings", "displayName": "System settings", - "version": "0.21.33", + "version": "0.21.34", "description": "Used to adjust the system title, logo, language, etc.", "keywords": [ "System management" diff --git a/packages/plugins/@nocobase/plugin-theme-editor/.npmignore b/packages/plugins/@tachybase/plugin-theme-editor/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/.npmignore rename to packages/plugins/@tachybase/plugin-theme-editor/.npmignore diff --git a/packages/plugins/@nocobase/plugin-theme-editor/README.md b/packages/plugins/@tachybase/plugin-theme-editor/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/README.md rename to packages/plugins/@tachybase/plugin-theme-editor/README.md diff --git a/packages/plugins/@nocobase/plugin-theme-editor/README.zh-CN.md b/packages/plugins/@tachybase/plugin-theme-editor/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-theme-editor/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-theme-editor/client.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/client.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/client.js b/packages/plugins/@tachybase/plugin-theme-editor/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/client.js rename to packages/plugins/@tachybase/plugin-theme-editor/client.js diff --git a/packages/plugins/@nocobase/plugin-theme-editor/package.json b/packages/plugins/@tachybase/plugin-theme-editor/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-theme-editor/package.json rename to packages/plugins/@tachybase/plugin-theme-editor/package.json index 1c98469d9..0c4fbf32a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/package.json +++ b/packages/plugins/@tachybase/plugin-theme-editor/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-theme-editor", + "name": "@tachybase/plugin-theme-editor", "displayName": "Theme editor", - "version": "0.21.33", + "version": "0.21.34", "description": "Customize UI colors, sizes, etc. and save the result as a theme to switch between multiple themes.", "keywords": [ "System management" diff --git a/packages/plugins/@nocobase/plugin-theme-editor/server.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/server.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/server.js b/packages/plugins/@tachybase/plugin-theme-editor/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/server.js rename to packages/plugins/@tachybase/plugin-theme-editor/server.js diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx index 925908326..2ef6fbc62 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx @@ -1,11 +1,11 @@ -import type { InputProps } from 'antd'; -import { ConfigProvider, Input, InputNumber, Select, theme } from 'antd'; +import React, { useEffect, useMemo, useRef, useState, type CSSProperties, type FC } from 'react'; + +import { ConfigProvider, Input, InputNumber, Select, theme, type InputProps } from 'antd'; import classNames from 'classnames'; import useMergedState from 'rc-util/es/hooks/useMergedState'; -import type { CSSProperties, FC } from 'react'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; import { HexColorPicker, RgbaColorPicker } from 'react-colorful'; import tinycolor from 'tinycolor2'; + import makeStyle from './utils/makeStyle'; const { useToken } = theme; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx index cf32fd68d..2383a7eb7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx @@ -1,6 +1,7 @@ +import React, { type FC } from 'react'; + import classNames from 'classnames'; -import type { FC } from 'react'; -import React from 'react'; + import getColorBgImg from './utils/getColorBgImg'; import makeStyle from './utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx index a94759f27..1b69188d4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx @@ -1,8 +1,9 @@ +import React, { type CSSProperties, type FC } from 'react'; + import { Segmented, Tag } from 'antd'; import classNames from 'classnames'; import useMergedState from 'rc-util/lib/hooks/useMergedState'; -import type { CSSProperties, FC } from 'react'; -import React from 'react'; + import makeStyle from './utils/makeStyle'; const useStyle = makeStyle('FilterPanel', (token) => ({ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx index 89599ffc1..b811bea05 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx @@ -1,5 +1,7 @@ -import classNames from 'classnames'; import React from 'react'; + +import classNames from 'classnames'; + import makeStyle from './utils/makeStyle'; const useStyle = makeStyle('IconSwitch', () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx similarity index 90% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx index 0ae4c777f..d1b47ab60 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx @@ -1,5 +1,5 @@ -import type { FC } from 'react'; -import React from 'react'; +import React, { type FC } from 'react'; + import { antdComponents } from './component-panel'; import type { Theme } from './interface'; import ComponentDemoPro from './token-panel-pro/ComponentDemoPro'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx index 74d763ded..e0252c277 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx @@ -1,14 +1,14 @@ +import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react'; + import type { DerivativeFunc } from '@ant-design/cssinjs'; import classNames from 'classnames'; -import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react'; + import { antdComponents } from './component-panel'; import useControlledTheme from './hooks/useControlledTheme'; import type { SelectedToken, Theme } from './interface'; -import type { Locale } from './locale'; -import { LocaleContext, zhCN } from './locale'; +import { LocaleContext, zhCN, type Locale } from './locale'; import { mapRelatedAlias, seedRelatedAlias, seedRelatedMap } from './meta/TokenRelation'; -import type { TokenPanelProProps } from './token-panel-pro'; -import TokenPanelPro from './token-panel-pro'; +import TokenPanelPro, { type TokenPanelProProps } from './token-panel-pro'; import ComponentDemoPro from './token-panel-pro/ComponentDemoPro'; import makeStyle from './utils/makeStyle'; import { getRelatedComponents } from './utils/statistic'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx index f76aa3684..93a224eee 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx @@ -1,8 +1,9 @@ +import React, { useMemo, type FC, type ReactNode } from 'react'; + import { CloseOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Dropdown, Menu } from 'antd'; import classNames from 'classnames'; -import type { FC, ReactNode } from 'react'; -import React, { useMemo } from 'react'; + import type { Theme } from './interface'; import makeStyle from './utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx index 8492dbb41..77f1365f8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx @@ -1,8 +1,9 @@ +import React, { useEffect, useRef, useState, type FC } from 'react'; + import { Button, Dropdown, Input, InputNumber } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useEffect, useRef, useState } from 'react'; import { useDebouncyFn } from 'use-debouncy'; + import ColorPanel from './ColorPanel'; import ColorPreview from './ColorPreview'; import type { MutableTheme } from './interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx index ea0e60337..d49834198 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx @@ -1,5 +1,7 @@ -import { Alert, Space } from 'antd'; import React from 'react'; + +import { Alert, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx index 76949f489..86e13bdd5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx @@ -1,5 +1,7 @@ -import { Alert, Space } from 'antd'; import React from 'react'; + +import { Alert, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts index 3398808cc..9f45ec0a4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import Default from './alert'; import error from './error'; import info from './info'; import success from './success'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, error, info, success, warning]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx index e1f9f82b8..c7bea5cf3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx @@ -1,5 +1,7 @@ -import { Alert, Space } from 'antd'; import React from 'react'; + +import { Alert, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx index 11a0e39ef..18c07638e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx @@ -1,5 +1,7 @@ -import { Alert, Space } from 'antd'; import React from 'react'; + +import { Alert, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx index 718197d28..139a6fa08 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx @@ -1,5 +1,7 @@ -import { Alert, Space } from 'antd'; import React from 'react'; + +import { Alert, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx index 57912939b..0f36365ec 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx @@ -1,5 +1,7 @@ -import { Anchor } from 'antd'; import React from 'react'; + +import { Anchor } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Link } = Anchor; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx index 3aef016ef..fd775bd1e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx @@ -1,5 +1,7 @@ -import { Anchor, theme } from 'antd'; import React from 'react'; + +import { Anchor, theme } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Link } = Anchor; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts index 19a68f804..d02038a89 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import Demo from './anchor'; import AnchorLayout from './anchorInLayout'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, AnchorLayout]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx index 6e02c83a6..c6c159bd5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx @@ -1,5 +1,7 @@ -import { AutoComplete } from 'antd'; import React, { useState } from 'react'; + +import { AutoComplete } from 'antd'; + import type { ComponentDemo } from '../../interface'; const mockVal = (str: string, repeat = 1) => ({ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts index e0d56f8cc..e4ae88a9d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts @@ -1,6 +1,5 @@ -import Default from './auto-complete'; - import type { ComponentDemo } from '../../interface'; +import Default from './auto-complete'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx index 208a741dc..7fa8cd352 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { UserOutlined } from '@ant-design/icons'; import { Avatar, Space } from 'antd'; -import React from 'react'; export default () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx index 2e05f5804..b825e90e4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import Default from './avatar'; // import Progress from './progress'; import type { ComponentDemo } from '../../interface'; +import Default from './avatar'; const previewerDemo: ComponentDemo[] = [ { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx index 149774a3e..44d0e271b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { ClockCircleFilled } from '@ant-design/icons'; import { Avatar, Badge, Space, theme } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts index 16336d29a..68c66f8d2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts @@ -1,10 +1,9 @@ +import type { ComponentDemo } from '../../interface'; import Default from './badge'; import Progress from './progress'; import success from './success'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, Progress, warning, success]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx index c3d8ce222..bedaa9795 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx @@ -1,5 +1,7 @@ -import { Badge, Space } from 'antd'; import React from 'react'; + +import { Badge, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx index 3d473201b..320d066c5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx @@ -1,5 +1,7 @@ -import { Badge, Space } from 'antd'; import React from 'react'; + +import { Badge, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx index dbd5f0e06..f87d0410a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx @@ -1,5 +1,7 @@ -import { Badge, Space } from 'antd'; import React from 'react'; + +import { Badge, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx index 97d2645d7..fff1f9195 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx @@ -1,5 +1,7 @@ -import { Breadcrumb } from 'antd'; import React from 'react'; + +import { Breadcrumb } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts index d0832e372..6de03eaa7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts @@ -1,6 +1,5 @@ -import Default from './breadcrumb'; - import type { ComponentDemo } from '../../interface'; +import Default from './breadcrumb'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx index 5575cca67..bf3a2f719 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { SearchOutlined } from '@ant-design/icons'; import { Button, Space, Tooltip } from 'antd'; -import React from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx index c241f3f46..467e848e4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx @@ -1,5 +1,7 @@ -import { Button, Space } from 'antd'; import React from 'react'; + +import { Button, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx index e2f7c8a1b..7dff5bcb3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx @@ -1,5 +1,7 @@ -import { Button, Space } from 'antd'; import React from 'react'; + +import { Button, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx index 2bed31901..9003884d0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx @@ -1,6 +1,7 @@ -import { Button } from 'antd'; import React from 'react'; +import { Button } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx index 13b3bbf2b..6a720f9ce 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx @@ -1,5 +1,7 @@ -import { Button, Space } from 'antd'; import React from 'react'; + +import { Button, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts index d9d05ef3a..5cac93aa7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import Default from './button'; import ButtonIconDemo from './button-icon'; import DangerButton from './dangerButton'; import DefaultButton from './defaultButton'; import disabled from './disabled'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, ButtonIconDemo, DangerButton, DefaultButton, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx index 9647ca972..69040a5cf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx @@ -1,5 +1,7 @@ -import { Calendar } from 'antd'; import React from 'react'; + +import { Calendar } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx index 8ebfc87d7..34808d866 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx @@ -1,5 +1,7 @@ -import { Calendar } from 'antd'; import React from 'react'; + +import { Calendar } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => true} />; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts index 29f387a7f..4d47875cf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import Default from './calendar'; import disabled from './disabled'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx index df369259d..e568545b2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx @@ -1,5 +1,7 @@ -import { Card, Space } from 'antd'; import React from 'react'; + +import { Card, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx index bcd529abb..49f2e080e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx @@ -1,6 +1,7 @@ +import React, { type CSSProperties } from 'react'; + import { Card } from 'antd'; -import type { CSSProperties } from 'react'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const gridStyle: CSSProperties = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts index 1e5cb46bf..336290bd5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import Default from './card'; import cardGrid from './cardGrid'; import inner from './inner'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, inner, cardGrid]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx index 0c75c9ab4..70479f86e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx @@ -1,5 +1,7 @@ -import { Card, Space } from 'antd'; import React from 'react'; + +import { Card, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx index 1e2b0d748..7bc256606 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx @@ -1,6 +1,6 @@ +import React, { type CSSProperties } from 'react'; + import { Carousel } from 'antd'; -import type { CSSProperties } from 'react'; -import React from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts index 98fbb6d52..c9c4683cf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts @@ -1,6 +1,5 @@ -import Default from './carousel'; - import type { ComponentDemo } from '../../interface'; +import Default from './carousel'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx index d98dabb27..fac4c14b9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx @@ -1,8 +1,10 @@ -import { Cascader } from 'antd'; import React from 'react'; +import { Cascader } from 'antd'; + import type { ComponentDemo } from '../../interface'; import options from './data'; + const { _InternalPanelDoNotUseOrYouWillBeFired: InternalCascader } = Cascader; const Demo = (props: any) => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx index efe34fb9b..ece813b2e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx @@ -1,6 +1,7 @@ -import { Cascader } from 'antd'; import React from 'react'; +import { Cascader } from 'antd'; + import type { ComponentDemo } from '../../interface'; import options from './data'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx index 4d043d362..0ac77684e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx @@ -1,7 +1,8 @@ -import { Cascader as _Cascader } from 'antd'; import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import { Cascader as _Cascader } from 'antd'; + +import type { ComponentDemo } from '../../interface'; import options from './data'; const { _InternalPanelDoNotUseOrYouWillBeFired: Cascader } = _Cascader; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts index 315f1bbc0..84ece1344 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import Default from './cascader'; import disable from './disable'; import HighLight from './highlight'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, HighLight, disable]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx index b2db30756..6d2b911f5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx @@ -1,5 +1,7 @@ -import { Checkbox, Space } from 'antd'; import React from 'react'; + +import { Checkbox, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = (props: any) => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx index c635b329e..a992f2b26 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx @@ -1,5 +1,7 @@ -import { Checkbox } from 'antd'; import React from 'react'; + +import { Checkbox } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Checkbox; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts index 55573f854..762193b1b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import Default from './checkbox'; import disabled from './disabled'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx index da2648f47..588ee2211 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx @@ -1,5 +1,7 @@ -import { Collapse } from 'antd'; import React from 'react'; + +import { Collapse } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Panel } = Collapse; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts index 9fac5c9c9..8f22c5491 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts @@ -1,6 +1,5 @@ -import Default from './collapse'; - import type { ComponentDemo } from '../../interface'; +import Default from './collapse'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx index f0fabc292..6198f13e8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx @@ -1,5 +1,7 @@ -import { DatePicker } from 'antd'; import React from 'react'; + +import { DatePicker } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx index dc797a8f0..4e745b9c1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx @@ -1,5 +1,7 @@ -import { DatePicker, Space } from 'antd'; import React from 'react'; + +import { DatePicker, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx index 5227e264b..f1658762c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx @@ -1,5 +1,7 @@ -import { DatePicker, Space } from 'antd'; import React from 'react'; + +import { DatePicker, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx index 775be0870..46c647b0b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx @@ -1,5 +1,7 @@ -import { DatePicker } from 'antd'; import React from 'react'; + +import { DatePicker } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts index 54c87de73..a507a5811 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import Default from './date-picker'; import disabled from './disabled'; import icon from './icon'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, warning, icon, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx index 023fd3ef7..edbb62da3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx @@ -1,5 +1,7 @@ -import { DatePicker } from 'antd'; import React from 'react'; + +import { DatePicker } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx index 6b8ffa854..3147ad6bf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx @@ -1,5 +1,7 @@ -import { Descriptions } from 'antd'; import React from 'react'; + +import { Descriptions } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts index 159669a09..f35f3c36f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts @@ -1,6 +1,5 @@ -import Default from './descriptions'; - import type { ComponentDemo } from '../../interface'; +import Default from './descriptions'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx index cebc65bc5..ffb71d8f5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx @@ -1,6 +1,7 @@ -import { Divider } from 'antd'; import React from 'react'; +import { Divider } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts index 78f04999e..8846c651b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts @@ -1,6 +1,5 @@ -import Default from './divider'; - import type { ComponentDemo } from '../../interface'; +import Default from './divider'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx index 0dde0f53e..2c849f6a6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx @@ -1,5 +1,7 @@ -import { Button, Drawer } from 'antd'; import React, { useState } from 'react'; + +import { Button, Drawer } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts index 1bd2be5b6..4213754eb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts @@ -1,6 +1,5 @@ -import Default from './drawer'; - import type { ComponentDemo } from '../../interface'; +import Default from './drawer'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx index 85cc1bd6a..4040fdd53 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx @@ -1,10 +1,10 @@ -import { DownOutlined } from '@ant-design/icons'; -import { Dropdown } from 'antd'; import React from 'react'; -import menu from './menu'; +import { DownOutlined } from '@ant-design/icons'; +import { Dropdown } from 'antd'; import type { ComponentDemo } from '../../interface'; +import menu from './menu'; const Demo = () => (
diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx index 36d555e96..76cae2846 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { DownOutlined } from '@ant-design/icons'; import { Dropdown, Typography } from 'antd'; -import React from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts index e675109d0..218b2bf87 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts @@ -1,6 +1,5 @@ -import Default from './dropdown'; - import type { ComponentDemo } from '../../interface'; +import Default from './dropdown'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx index dd6902c59..ec5e16b54 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { DownOutlined } from '@ant-design/icons'; import { Menu } from 'antd'; -import React from 'react'; const menu = ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx index 6b4347d7e..849f55a90 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx @@ -1,5 +1,7 @@ -import { Empty } from 'antd'; import React from 'react'; + +import { Empty } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts index eb21052ea..e06a262bf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts @@ -1,6 +1,5 @@ -import Default from './empty'; - import type { ComponentDemo } from '../../interface'; +import Default from './empty'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx index 2ffaf20f7..f805d0d13 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx @@ -1,5 +1,7 @@ -import { Form, Input } from 'antd'; import React from 'react'; + +import { Form, Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onFinish() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx index 6cda6b340..98b216dd7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx @@ -1,5 +1,7 @@ -import { Button, Checkbox, Form, Input } from 'antd'; import React from 'react'; + +import { Button, Checkbox, Form, Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx index bd4d66993..cfd7d79d8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx @@ -1,9 +1,7 @@ -import Default from './form'; - -import danger from './danger'; -import warning from './warning'; - import type { ComponentDemo } from '../../interface'; +import danger from './danger'; +import Default from './form'; +import warning from './warning'; const previewerDemo: ComponentDemo[] = [Default, warning, danger]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx index 50dce7da7..b28fb7566 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx @@ -1,5 +1,7 @@ -import { Form, Input } from 'antd'; import React from 'react'; + +import { Form, Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onFinish() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx index 51d0e4b59..8c543adc0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { Col, Row } from 'antd'; import classNames from 'classnames'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; import makeStyle from '../../utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts index c1fa7d4dc..83083841f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts @@ -1,6 +1,5 @@ -import Default from './grid'; - import type { ComponentDemo } from '../../interface'; +import Default from './grid'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx index 7c22221bf..885d0f0d0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { HomeOutlined, LoadingOutlined, SettingFilled, SmileOutlined, SyncOutlined } from '@ant-design/icons'; import { Space } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts index 1cdf4d935..66fc0a554 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts @@ -1,6 +1,5 @@ -import Default from './icon'; - import type { ComponentDemo } from '../../interface'; +import Default from './icon'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx index f7b17d918..375e3e771 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx @@ -1,6 +1,7 @@ -import { Image } from 'antd'; import React from 'react'; +import { Image } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx index 47a20269f..7e056a793 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx @@ -1,6 +1,7 @@ -import { Image } from 'antd'; import React from 'react'; +import { Image } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts index 19f4cd2f6..18bf4d2c5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import disabled from './disabled'; import Default from './image'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts index fcb7995d2..5b845dc79 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts @@ -1,3 +1,4 @@ +import type { ComponentDemo } from '../interface'; import Alert from './alert'; import Anchor from './anchor'; import AutoComplete from './autoComplete'; @@ -48,8 +49,8 @@ import Switch from './switch'; import Table from './table'; import Tabs from './tabs'; import Tag from './tag'; -import TimePicker from './timePicker'; import Timeline from './timeline'; +import TimePicker from './timePicker'; import Tooltip from './tooltip'; import Transfer from './transfer'; import Tree from './tree'; @@ -57,8 +58,6 @@ import TreeSelect from './treeSelect'; import Typography from './typography'; import Upload from './upload'; -import type { ComponentDemo } from '../interface'; - export type PreviewerDemos = Record; const ComponentDemos: PreviewerDemos = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx index 103f7fcf8..16f607796 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx @@ -1,6 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx index 5d984b866..627891d49 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx @@ -1,5 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; + +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx index 0ee97e72f..1c6dcb861 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx @@ -1,5 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; + +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts index 20cbe055e..8b5cb106c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts @@ -1,3 +1,4 @@ +import type { ComponentDemo } from '../../interface'; import clearIcon from './clearIcon'; import danger from './danger'; import disabled from './disabled'; @@ -5,8 +6,6 @@ import Default from './input'; import warning from './warning'; import withAddon from './withAddon'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, clearIcon, danger, warning, withAddon, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx index 97f956a1c..bf3203c74 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx @@ -1,5 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; + +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx index bc1ed290a..4d1f60f7e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { CheckCircleFilled } from '@ant-design/icons'; import { Input, theme } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx index 76a7b2830..a931bed67 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx @@ -1,5 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; + +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx index 87348f1cb..8920b7d7d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx @@ -1,5 +1,7 @@ -import { Input } from 'antd'; import React from 'react'; + +import { Input } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx index c37ea2736..75c63d9d7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx @@ -1,5 +1,7 @@ -import { InputNumber } from 'antd'; import React from 'react'; + +import { InputNumber } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx index 01ef83ace..adccd5e5b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx @@ -1,6 +1,7 @@ -import { InputNumber } from 'antd'; import React from 'react'; +import { InputNumber } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts index 4c1633791..8ad859bbf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts @@ -1,10 +1,9 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import disabled from './disabled'; import Default from './inputNumber'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, warning, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx index f94f58890..64615a461 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx @@ -1,5 +1,7 @@ -import { InputNumber } from 'antd'; import React from 'react'; + +import { InputNumber } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx index d0742be97..305cb5cf0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx @@ -1,5 +1,7 @@ -import { InputNumber } from 'antd'; import React from 'react'; + +import { InputNumber } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts index 091778a66..032fe560c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts @@ -1,6 +1,5 @@ -import Default from './list'; - import type { ComponentDemo } from '../../interface'; +import Default from './list'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx index 14c777c25..ddadc5edf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx @@ -1,5 +1,7 @@ -import { Avatar, List } from 'antd'; import React from 'react'; + +import { Avatar, List } from 'antd'; + import type { ComponentDemo } from '../../interface'; const data = [ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx index e8aef84fd..eb33d4fec 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx @@ -1,5 +1,7 @@ -import { Mentions } from 'antd'; import React from 'react'; + +import { Mentions } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Option } = Mentions; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx index d1e05869f..1bd82fe24 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx @@ -1,5 +1,7 @@ -import { Mentions } from 'antd'; import React from 'react'; + +import { Mentions } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Option } = Mentions; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts index 37b0b450e..37d0a8d0f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts @@ -1,10 +1,9 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import disabled from './disabled'; import Default from './mentions'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, warning, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx index 1d63452c0..83322e03e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx @@ -1,5 +1,7 @@ -import { Mentions } from 'antd'; import React from 'react'; + +import { Mentions } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Option } = Mentions; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx index efe1a437d..120ad07c0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx @@ -1,5 +1,7 @@ -import { Mentions } from 'antd'; import React from 'react'; + +import { Mentions } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Option } = Mentions; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx index 1d6bbd1f5..1374be622 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons'; import type { MenuProps } from 'antd'; -import React from 'react'; type MenuItem = Required['items'][number]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts index 3c6531279..564ea2aa1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import Default from './menu'; import danger from './menuDanger'; import MenuInLayout from './menuInLayout'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, MenuInLayout]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx similarity index 90% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx index 4f4c8fde7..849ac410e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx @@ -1,10 +1,9 @@ -import type { MenuProps } from 'antd'; -import { Menu } from 'antd'; import React from 'react'; -import items from './data'; +import { Menu, type MenuProps } from 'antd'; import type { ComponentDemo } from '../../interface'; +import items from './data'; const Demo: React.FC = () => { const onClick: MenuProps['onClick'] = (e) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx similarity index 91% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx index 501d62e8f..d3a99fec2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx @@ -1,7 +1,7 @@ -import type { MenuProps } from 'antd'; -import { Menu } from 'antd'; import React from 'react'; +import { Menu, type MenuProps } from 'antd'; + import type { ComponentDemo } from '../../interface'; const items: MenuProps['items'] = [ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx index 70848210d..5cd36002c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx @@ -1,9 +1,9 @@ -import { Menu, theme } from 'antd'; import React from 'react'; -import items from './data'; +import { Menu, theme } from 'antd'; import type { ComponentDemo } from '../../interface'; +import items from './data'; const Demo: React.FC = () => { const { token } = theme.useToken(); diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx index 524b19d67..6b1b10c8a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx @@ -1,5 +1,7 @@ -import { message } from 'antd'; import React from 'react'; + +import { message } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = message; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts index ce45f6fa4..bee97ec2a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import error from './error'; import info from './info'; import Default from './message'; import success from './success'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, error, info, success, warning]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx index 33d4aaa71..11f2ce03a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx @@ -1,5 +1,7 @@ -import { message } from 'antd'; import React from 'react'; + +import { message } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = message; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx index 47fc30375..f27910a15 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx @@ -1,6 +1,7 @@ -import { message } from 'antd'; import React from 'react'; +import { message } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = message; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx index d9eb2a031..1c0dad86f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx @@ -1,5 +1,7 @@ -import { message } from 'antd'; import React from 'react'; + +import { message } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = message; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx index 069f2a7ac..3d06b8cae 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx @@ -1,5 +1,7 @@ -import { message } from 'antd'; import React from 'react'; + +import { message } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = message; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts index 006c76b44..e81dfb3d6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import info from './info'; import Default from './modal'; import withButton from './modalWithButton'; import success from './success'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, info, withButton, warning, success]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx index 65231fb45..0f898ae27 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx @@ -1,5 +1,7 @@ -import { Modal } from 'antd'; import React from 'react'; + +import { Modal } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = Modal; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx index ad75c3a73..3d28a36cf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx @@ -1,6 +1,7 @@ -import { Modal } from 'antd'; import React from 'react'; +import { Modal } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx index 0f6c455fd..0a2340bd0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx @@ -1,5 +1,7 @@ -import { Button, Modal } from 'antd'; import React, { useState } from 'react'; + +import { Button, Modal } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx index 96e06e024..768fb9871 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx @@ -1,6 +1,7 @@ -import { Modal } from 'antd'; import React from 'react'; +import { Modal } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx index 31ffa7e8c..c8556769a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx @@ -1,6 +1,7 @@ -import { Modal } from 'antd'; import React from 'react'; +import { Modal } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx index 11a3b5234..25701fd88 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx @@ -1,5 +1,7 @@ -import { notification } from 'antd'; import React from 'react'; + +import { notification } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = notification; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts index 0b4e5a5b8..8dc168657 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import error from './error'; import info from './info'; import Demo from './notification'; import success from './success'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, info, error, success, warning]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx index a759cb880..bcf5b4d2e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx @@ -1,5 +1,7 @@ -import { notification } from 'antd'; import React from 'react'; + +import { notification } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = notification; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx index 983848357..c062e44ac 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx @@ -1,5 +1,7 @@ -import { notification } from 'antd'; import React from 'react'; + +import { notification } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = notification; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx index f99e0e66a..14cffc861 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx @@ -1,5 +1,7 @@ -import { notification } from 'antd'; import React from 'react'; + +import { notification } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = notification; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx index 2d9c54d1b..7531711ca 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx @@ -1,5 +1,7 @@ -import { notification } from 'antd'; import React from 'react'; + +import { notification } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { _InternalPanelDoNotUseOrYouWillBeFired } = notification; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx index a4bcb5909..837f21088 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx @@ -1,5 +1,7 @@ -import { Pagination } from 'antd'; import React from 'react'; + +import { Pagination } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx index 6552d3c47..a1da6fe50 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import disabled from './disabled'; import outline from './outline'; import Demo from './pagination'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, disabled, outline]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx index 327002c86..d10d3b04b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx @@ -1,5 +1,7 @@ -import { Pagination, Space } from 'antd'; import React from 'react'; + +import { Pagination, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx index 5402d2fbe..3412ff835 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx @@ -1,5 +1,7 @@ -import { Pagination, Space } from 'antd'; import React from 'react'; + +import { Pagination, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts index 9fac30374..fd20eff87 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts @@ -1,6 +1,5 @@ -import Demo from './popconfirm'; - import type { ComponentDemo } from '../../interface'; +import Demo from './popconfirm'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx similarity index 93% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx index b60b66c84..d4240e269 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx @@ -1,5 +1,7 @@ -import { Popconfirm, message } from 'antd'; import React from 'react'; + +import { message, Popconfirm } from 'antd'; + import type { ComponentDemo } from '../../interface'; function confirm() { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts index 147db6bb0..830016b20 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts @@ -1,6 +1,5 @@ -import Demo from './popover'; - import type { ComponentDemo } from '../../interface'; +import Demo from './popover'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx index ce350a37a..6d65dbc95 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx @@ -1,5 +1,7 @@ -import { Button, Popover } from 'antd'; import React from 'react'; + +import { Button, Popover } from 'antd'; + import type { ComponentDemo } from '../../interface'; const content = ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx index 2c07318d5..6c6026de6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { Flexbox } from '@arvinxu/layout-kit'; import { Progress } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts index 015fb8a41..a5cb41948 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import info from './info'; import Demo from './progress'; import progressInBg from './progressInBg'; import success from './success'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, info, danger, success, progressInBg]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx index 156a7a769..82a600aad 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx @@ -1,5 +1,7 @@ -import { Progress } from 'antd'; import React from 'react'; + +import { Progress } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx index 8bb0c0e14..5c4782228 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx @@ -1,5 +1,7 @@ -import { Progress } from 'antd'; import React from 'react'; + +import { Progress } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx index dcbf19992..1c140afef 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx @@ -1,5 +1,7 @@ -import { Progress, theme } from 'antd'; import React from 'react'; + +import { Progress, theme } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx index 51e28786a..dd3a1c3fc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { Flexbox } from '@arvinxu/layout-kit'; import { Progress } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx index 2e3cc250c..d56390975 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx @@ -1,5 +1,7 @@ -import { Radio, Space } from 'antd'; import React from 'react'; + +import { Radio, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx index 9e7088078..cf939eda7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx @@ -1,5 +1,7 @@ -import { Radio } from 'antd'; import React from 'react'; + +import { Radio } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Radio; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts index 0c52146ad..7f29b8dc3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import Button from './button'; import disabled from './disabled'; import Default from './radio'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, Button, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx index 4da9ff34b..047c4b65e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx @@ -1,5 +1,7 @@ -import { Radio } from 'antd'; import React from 'react'; + +import { Radio } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Radio; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts index 313c9da2d..e65186244 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts @@ -1,6 +1,5 @@ -import Demo from './rate'; - import type { ComponentDemo } from '../../interface'; +import Demo from './rate'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx index 0943a5d84..4f42da6b0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx @@ -1,6 +1,7 @@ -import { Rate } from 'antd'; import React from 'react'; +import { Rate } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx index 8d9edd295..9d45fbafe 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx @@ -1,5 +1,7 @@ -import { Result } from 'antd'; import React from 'react'; + +import { Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts index edc830b74..cf8647d2e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts @@ -1,11 +1,10 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import info from './info'; import Demo from './result'; import ResultWithDesc from './resultWithDesc'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, info, warning, danger, ResultWithDesc]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx index f9ee9dff6..547d032d9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx @@ -1,5 +1,7 @@ -import { Result } from 'antd'; import React from 'react'; + +import { Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx index f54679c2c..adab90442 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx @@ -1,5 +1,7 @@ -import { Button, Result } from 'antd'; import React from 'react'; + +import { Button, Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx index 015e933fb..813a6c4f6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx @@ -1,5 +1,7 @@ -import { Result } from 'antd'; import React from 'react'; + +import { Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx index 11b32cd54..e6acb3395 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx @@ -1,5 +1,7 @@ -import { Result } from 'antd'; import React from 'react'; + +import { Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx index 7ee44eefc..758caf622 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx @@ -1,5 +1,7 @@ -import { Result } from 'antd'; import React from 'react'; + +import { Result } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts index e9fc8e437..71cb86708 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts @@ -1,6 +1,5 @@ -import Demo from './segmented'; - import type { ComponentDemo } from '../../interface'; +import Demo from './segmented'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx index 14b8cd9e0..4aaf5c78b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx @@ -1,5 +1,7 @@ -import { Segmented } from 'antd'; import React from 'react'; + +import { Segmented } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx index fc8047eed..5b8cf1d41 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx @@ -1,8 +1,7 @@ -import Select from './_internal'; - import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import type { ComponentDemo } from '../../interface'; +import Select from './_internal'; import options from './data'; const handleChange = (value: any) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx index a732243e0..98eb7a51f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx @@ -1,8 +1,7 @@ -import Select from './_internal'; - import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import type { ComponentDemo } from '../../interface'; +import Select from './_internal'; import options from './data'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx index f7f959e7d..dc235a701 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx @@ -1,8 +1,7 @@ -import Select from './_internal'; - import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import type { ComponentDemo } from '../../interface'; +import Select from './_internal'; import options from './data'; const handleChange = (value: any) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts index a6c222f24..1d14dabc2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts @@ -1,3 +1,4 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import disabled from './disabled'; import icon from './icon'; @@ -5,8 +6,6 @@ import Default from './select'; import SelectTag from './selectTag'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, SelectTag, danger, warning, icon, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx index 7e3bc27aa..28b7483f1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx @@ -1,5 +1,7 @@ -import { Select as _Select, Space } from 'antd'; import React from 'react'; + +import { Select as _Select, Space } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Option, _InternalPanelDoNotUseOrYouWillBeFired: Select } = _Select; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx index 028f7e408..71ba6aa8b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx @@ -1,8 +1,7 @@ -import Select from './_internal'; - import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import type { ComponentDemo } from '../../interface'; +import Select from './_internal'; import options from './data'; const handleChange = (value: any) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx index eb868723b..7181b963a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx @@ -1,8 +1,7 @@ -import Select from './_internal'; - import React from 'react'; -import type { ComponentDemo } from '../../interface'; +import type { ComponentDemo } from '../../interface'; +import Select from './_internal'; import options from './data'; const handleChange = (value: any) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts index 16f1d8dd2..d0bba888c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts @@ -1,6 +1,5 @@ -import Demo from './skeleton'; - import type { ComponentDemo } from '../../interface'; +import Demo from './skeleton'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx index 2d75d6b70..277b3eb95 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx @@ -1,6 +1,7 @@ -import { Skeleton } from 'antd'; import React from 'react'; +import { Skeleton } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts index 367112ba3..9b23448a8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import Demo from './slider'; import SliderInBg from './sliderInBg'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, SliderInBg]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx index aea31ac2a..6c585267e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx @@ -1,5 +1,7 @@ -import { Slider } from 'antd'; import React from 'react'; + +import { Slider } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx index b2374404a..80267a531 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx @@ -1,5 +1,7 @@ -import { Slider, theme } from 'antd'; import React from 'react'; + +import { Slider, theme } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts index 78f5baf39..9467d7428 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts @@ -1,6 +1,5 @@ -import Demo from './space'; - import type { ComponentDemo } from '../../interface'; +import Demo from './space'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx index ea1aea997..178332221 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx @@ -1,6 +1,8 @@ +import React from 'react'; + import { UploadOutlined } from '@ant-design/icons'; import { Button, Popconfirm, Space, Upload } from 'antd'; -import React from 'react'; + import type { ComponentDemo } from '../../interface'; const Demo: React.FC = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts index 221ad346d..370d9bfb8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts @@ -1,6 +1,5 @@ -import Default from './spin'; - import type { ComponentDemo } from '../../interface'; +import Default from './spin'; const previewerDemo: ComponentDemo[] = [Default]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx index 9302b3ec1..46368975d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx @@ -1,5 +1,7 @@ -import { Spin } from 'antd'; import React from 'react'; + +import { Spin } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts index 1ce48cd32..9a1ca1f3f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts @@ -1,6 +1,5 @@ -import Demo from './statistic'; - import type { ComponentDemo } from '../../interface'; +import Demo from './statistic'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx index c7b896795..cfb0db484 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx @@ -1,5 +1,7 @@ -import { Button, Col, Row, Statistic } from 'antd'; import React from 'react'; + +import { Button, Col, Row, Statistic } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx index 00a622529..a567ee9e6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx @@ -1,5 +1,7 @@ -import { Steps } from 'antd'; import React from 'react'; + +import { Steps } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Step } = Steps; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts index 56b40fa6b..2c00661bb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import Demo from './steps'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, danger]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx index 06715d304..a1ce82a5e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx @@ -1,5 +1,7 @@ -import { Steps } from 'antd'; import React from 'react'; + +import { Steps } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Step } = Steps; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts index 811e0d669..ef8d21565 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts @@ -1,6 +1,5 @@ -import Demo from './switch'; - import type { ComponentDemo } from '../../interface'; +import Demo from './switch'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx index 498de9a83..1b8f11c2b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx @@ -1,5 +1,7 @@ -import { Switch } from 'antd'; import React from 'react'; + +import { Switch } from 'antd'; + import type { ComponentDemo } from '../../interface'; function onChange() {} diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx index a9fd447b0..2f20b42ea 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx @@ -1,6 +1,7 @@ -import type { TableProps } from 'antd'; -import { Table } from 'antd'; import React from 'react'; + +import { Table, type TableProps } from 'antd'; + import type { ComponentDemo } from '../../interface'; type TableData = { name: string; age: number; address: string }; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts index 847fb2e4a..e6f549114 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import Filter from './filterTable'; import Default from './table'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, Filter]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx index 787df1f24..6c069917f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx @@ -1,5 +1,7 @@ -import { Space, Table, Tag } from 'antd'; import React from 'react'; + +import { Space, Table, Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const columns = [ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx index 927ae84d4..5de1de7dc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx @@ -1,5 +1,7 @@ -import { Tabs } from 'antd'; import React from 'react'; + +import { Tabs } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { TabPane } = Tabs; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts index ca2c356a7..a1c2b2ad0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import card from './cardTabs'; import Default from './tabs'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, card]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx index f25a216f9..461f1c96a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx @@ -1,5 +1,7 @@ -import { Tabs } from 'antd'; import React from 'react'; + +import { Tabs } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { TabPane } = Tabs; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx index deb04617e..ce67340a2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Error; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx index d26a8e363..0d9de64cc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Error; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts index 2d85282b5..0b7c51fa0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts @@ -1,3 +1,4 @@ +import type { ComponentDemo } from '../../interface'; import closable from './closable'; import error from './error'; import info from './info'; @@ -6,8 +7,6 @@ import success from './success'; import Default from './tag'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, error, info, success, warning, multiTags, closable]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx index b3b225972..9b4978a4d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Info; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx index 5a2f471b7..2a5158a0f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { CheckableTag } = Tag; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx index 22849fcde..bad090c71 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Success; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx index c13303390..495935a90 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx @@ -1,6 +1,7 @@ -import { Divider, Space, Tag, theme } from 'antd'; import React from 'react'; +import { Divider, Space, Tag, theme } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx index a2193d9c7..88f0dabf1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx @@ -1,5 +1,7 @@ -import { Tag } from 'antd'; import React from 'react'; + +import { Tag } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => Warning; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts index 37503face..6f5eba2dd 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts @@ -1,6 +1,5 @@ -import Demo from './time-picker'; - import type { ComponentDemo } from '../../interface'; +import Demo from './time-picker'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx index e644f668d..4b38374d4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx @@ -1,5 +1,7 @@ -import { TimePicker } from 'antd'; import React from 'react'; + +import { TimePicker } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx index e808d121d..67d2d2953 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx @@ -1,5 +1,7 @@ -import { Timeline } from 'antd'; import React from 'react'; + +import { Timeline } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts index 4a15010d9..b2e41054e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import success from './success'; import Default from './timeline'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, success]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx index 217397acc..987c99082 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx @@ -1,5 +1,7 @@ -import { Timeline } from 'antd'; import React from 'react'; + +import { Timeline } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx index 3543e3c74..05c70a816 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx @@ -1,5 +1,7 @@ -import { Timeline } from 'antd'; import React from 'react'; + +import { Timeline } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts index 80c4f07c8..2a2e733c4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts @@ -1,6 +1,5 @@ -import Demo from './tooltip'; - import type { ComponentDemo } from '../../interface'; +import Demo from './tooltip'; const previewerDemo: ComponentDemo[] = [Demo]; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx index 7a31a099c..c2b63b197 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx @@ -1,5 +1,7 @@ -import { Tooltip } from 'antd'; import React from 'react'; + +import { Tooltip } from 'antd'; + import type { ComponentDemo } from '../../interface'; const Demo = () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx index 4f2247de2..b5313ef55 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx @@ -1,8 +1,8 @@ -import { Transfer } from 'antd'; import React, { useState } from 'react'; -import type { ComponentDemo } from '../../interface'; +import { Transfer } from 'antd'; +import type { ComponentDemo } from '../../interface'; import mockData from './data'; const initialTargetKeys = mockData.filter((item) => +item.key > 10).map((item) => item.key); diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx index b3fd8d46b..dec7c54c8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx @@ -1,6 +1,7 @@ -import { Transfer } from 'antd'; import React, { useState } from 'react'; +import { Transfer } from 'antd'; + import type { ComponentDemo } from '../../interface'; const mockData: any[] = []; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts index 638849be2..843aee79e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts @@ -1,10 +1,9 @@ +import type { ComponentDemo } from '../../interface'; import danger from './danger'; import disabled from './disabled'; import Default from './transfer'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, warning, danger, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx index 671c645ee..fe9efe48f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx @@ -1,6 +1,7 @@ -import { Transfer } from 'antd'; import React, { useState } from 'react'; +import { Transfer } from 'antd'; + import type { ComponentDemo } from '../../interface'; import mockData from './data'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx index f3c9c3df4..fb580aaf9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx @@ -1,6 +1,7 @@ -import { Transfer } from 'antd'; import React, { useState } from 'react'; +import { Transfer } from 'antd'; + import type { ComponentDemo } from '../../interface'; const mockData: any[] = []; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx index b0f73b99b..605218ba6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx @@ -1,5 +1,7 @@ -import { Tree } from 'antd'; import React from 'react'; + +import { Tree } from 'antd'; + import type { ComponentDemo } from '../../interface'; const treeData = [ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts index 621ea3052..46e1a3c4c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import disabled from './disabled'; import Demo from './tree'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Demo, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx index 6412dfc10..f518ea062 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx @@ -1,5 +1,7 @@ -import { Tree } from 'antd'; import React from 'react'; + +import { Tree } from 'antd'; + import type { ComponentDemo } from '../../interface'; const treeData = [ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx index 5bfb0e16a..d15ccb654 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx @@ -1,5 +1,7 @@ -import { TreeSelect as _TreeSelect } from 'antd'; import React, { useState } from 'react'; + +import { TreeSelect as _TreeSelect } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { TreeNode, _InternalPanelDoNotUseOrYouWillBeFired: TreeSelect } = _TreeSelect; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts index f71eea448..b90fd4a97 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts @@ -1,8 +1,7 @@ +import type { ComponentDemo } from '../../interface'; import disabled from './disabled'; import Default from './tree-select'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, disabled]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx index 739726f6e..d47a8e0b9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx @@ -1,5 +1,7 @@ -import { TreeSelect as _TreeSelect } from 'antd'; import React, { useState } from 'react'; + +import { TreeSelect as _TreeSelect } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { TreeNode, _InternalPanelDoNotUseOrYouWillBeFired: TreeSelect } = _TreeSelect; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx index 26bb1cf7b..56793119c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx index 515450709..c7ff67cfd 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title, Text } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx index d36dfd7a4..0f4885399 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx @@ -1,11 +1,10 @@ -import Heading4 from './Heading4'; +import type { ComponentDemo } from '../../interface'; import error from './error'; +import Heading4 from './Heading4'; import success from './success'; import TypographyDemo from './typography'; import warning from './warning'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [TypographyDemo, Heading4, error, warning, success]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx index 3236d673d..65f0be4ec 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title, Text } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx index 6fce5e3e9..11bddaf8e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title, Paragraph, Text, Link } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx index 91a5df2a6..cd4eb9a97 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx @@ -1,6 +1,7 @@ -import { Divider, Typography } from 'antd'; import React from 'react'; +import { Divider, Typography } from 'antd'; + const { Title, Paragraph, Text, Link } = Typography; const blockContent = `AntV 是蚂蚁金服全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、不限可能的数据可视化最佳实践。得益于丰富的业务场景和用户需求挑战,AntV 经历多年积累与不断打磨,已支撑整个阿里集团内外 20000+ 业务系统,通过了日均千万级 UV 产品的严苛考验。我们正在基础图表,图分析,图编辑,地理空间可视化,智能可视化等各个可视化的领域耕耘,欢迎同路人一起前行。`; export default () => ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx index 8a7eecbf0..1e89fdc32 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title, Text } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx index aa1a2f0de..0e674b530 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Text } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx index 894ddb212..09dff92dc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx @@ -1,5 +1,7 @@ -import { Typography } from 'antd'; import React from 'react'; + +import { Typography } from 'antd'; + import type { ComponentDemo } from '../../interface'; const { Title } = Typography; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx index c57a479f3..0e89a9bfd 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { PlusOutlined } from '@ant-design/icons'; import { Upload } from 'antd'; -import React from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx index df4c62fff..ec1f818a5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { UploadOutlined } from '@ant-design/icons'; import { Button, Upload } from 'antd'; -import React from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts index a685a3327..7f6b1555c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts @@ -1,9 +1,8 @@ +import type { ComponentDemo } from '../../interface'; import avatar from './avatar'; import danger from './danger'; import Default from './upload'; -import type { ComponentDemo } from '../../interface'; - const previewerDemo: ComponentDemo[] = [Default, danger, avatar]; export default previewerDemo; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx similarity index 90% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx index ab3a24ca7..0c771bffc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx @@ -1,8 +1,8 @@ -import { UploadOutlined } from '@ant-design/icons'; -import type { UploadProps } from 'antd'; -import { Button, Upload, message } from 'antd'; import React from 'react'; +import { UploadOutlined } from '@ant-design/icons'; +import { Button, message, Upload, type UploadProps } from 'antd'; + import type { ComponentDemo } from '../../interface'; const props: UploadProps = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx similarity index 92% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx index 70e14f2cf..e1faa4cda 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx @@ -1,8 +1,8 @@ -import type { CardProps } from 'antd'; -import { Card } from 'antd'; +import React, { useState, type FC, type PropsWithChildren } from 'react'; + +import { Card, type CardProps } from 'antd'; import classNames from 'classnames'; -import type { FC, PropsWithChildren } from 'react'; -import React, { useState } from 'react'; + import { Control } from '../icons'; import type { MutableTheme, TokenName } from '../interface'; import makeStyle from '../utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx index 7ecddac62..851250bae 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx @@ -1,7 +1,8 @@ +import React, { type FC } from 'react'; + import { ConfigProvider, Tooltip } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React from 'react'; + import ComponentDemos from '../component-demos'; import type { ComponentDemo, MutableTheme, TokenName } from '../interface'; import { useLocale } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx index 1a50192fc..f02f4433a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx @@ -1,8 +1,9 @@ +import React, { useMemo, type FC } from 'react'; + import { BuildOutlined, CarOutlined } from '@ant-design/icons'; -import { ConfigProvider, Drawer, Empty, Tag, Tooltip, theme as antdTheme } from 'antd'; +import { theme as antdTheme, ConfigProvider, Drawer, Empty, Tag, Tooltip } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useMemo } from 'react'; + import ComponentDemos from '../component-demos'; import type { AliasToken, ComponentDemo, MutableTheme, TokenName, TokenValue } from '../interface'; import { useLocale } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx index 39c6af46e..e34d6907a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx @@ -1,8 +1,9 @@ +import React, { useEffect, useMemo, useRef, useState, type FC } from 'react'; + import { SearchOutlined } from '@ant-design/icons'; import { Badge, Input, Tree } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; + import type { FilterMode } from '../FilterPanel'; import makeStyle from '../utils/makeStyle'; import { getRelatedComponents } from '../utils/statistic'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx index 57682bd3f..bddc66048 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx @@ -1,8 +1,9 @@ +import React, { useEffect, useMemo, useRef, useState, type CSSProperties, type FC } from 'react'; + import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons'; import { Breadcrumb, Segmented, Switch } from 'antd'; import classNames from 'classnames'; -import type { CSSProperties, FC } from 'react'; -import React, { useEffect, useMemo, useRef, useState } from 'react'; + import type { FilterMode } from '../FilterPanel'; import type { Theme, TokenName } from '../interface'; import makeStyle from '../utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx index fd29d5527..dc9e1fb97 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx @@ -1,7 +1,9 @@ +import { useEffect, useRef, useState } from 'react'; + import type { DerivativeFunc } from '@ant-design/cssinjs'; import { theme as antTheme } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; -import { useEffect, useRef, useState } from 'react'; + import type { MutableTheme, Theme } from '../interface'; import deepUpdateObj from '../utils/deepUpdateObj'; import getDesignToken from '../utils/getDesignToken'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js similarity index 77% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js index 1b0bacf39..ee2cf2979 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js @@ -67,8 +67,7 @@ function Arrow(props) { height: 16, }), /*#__PURE__*/ React.createElement('path', { - d: - 'M8.576,10.6224 C8.46400007,10.7357654 8.31136002,10.7997014 8.152,10.8 L7.848,10.8 C7.68897547,10.7980619 7.53693306,10.7343763 7.424,10.6224 L3.3184,6.4672 C3.16044703,6.30862179 3.16044703,6.05217821 3.3184,5.8936 L3.8864,5.3192 C3.95991079,5.24354153 4.06091047,5.20085176 4.1664,5.20085176 C4.27188953,5.20085176 4.37288921,5.24354153 4.4464,5.3192 L8,8.9168 L11.5536,5.3192 C11.6284927,5.24307539 11.7308111,5.20020394 11.8376,5.20020394 C11.9443889,5.20020394 12.0467073,5.24307539 12.1216,5.3192 L12.6816,5.8936 C12.839553,6.05217821 12.839553,6.30862179 12.6816,6.4672 L8.576,10.6224 Z', + d: 'M8.576,10.6224 C8.46400007,10.7357654 8.31136002,10.7997014 8.152,10.8 L7.848,10.8 C7.68897547,10.7980619 7.53693306,10.7343763 7.424,10.6224 L3.3184,6.4672 C3.16044703,6.30862179 3.16044703,6.05217821 3.3184,5.8936 L3.8864,5.3192 C3.95991079,5.24354153 4.06091047,5.20085176 4.1664,5.20085176 C4.27188953,5.20085176 4.37288921,5.24354153 4.4464,5.3192 L8,8.9168 L11.5536,5.3192 C11.6284927,5.24307539 11.7308111,5.20020394 11.8376,5.20020394 C11.9443889,5.20020394 12.0467073,5.24307539 12.1216,5.3192 L12.6816,5.8936 C12.839553,6.05217821 12.839553,6.30862179 12.6816,6.4672 L8.576,10.6224 Z', id: 'Arrow-\u8DEF\u5F84', }), ), diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js new file mode 100644 index 000000000..a28a1561b --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.js @@ -0,0 +1,59 @@ +import * as React from 'react'; + +function Brush(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 14 18', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Brush-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + fillOpacity: 0.649999976, + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Brush-\u4E3B\u9898\u7F16\u8F91\u5668---\u591A\u4E3B\u9898', + transform: 'translate(-17.000000, -121.000000)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Brush-brush', + transform: 'translate(14.000000, 120.000000)', + }, + /*#__PURE__*/ React.createElement('path', { + d: 'M8.20652175,3.2826087 L8.20652175,4.10326086 C8.20652175,4.55649455 7.83910325,4.92391304 7.38586957,4.92391304 C6.93263588,4.92391304 6.56521738,4.55649455 6.56521738,4.10326086 L6.56521738,3.2826087 L4.92391304,3.2826087 L4.92391304,8.20652175 L14.7717391,8.20652175 L14.7717391,3.2826087 L13.1304348,3.2826087 L13.1304348,5.74456522 C13.1304348,6.19779891 12.7630163,6.5652174 12.3097826,6.5652174 C11.8565489,6.5652174 11.4891304,6.19779891 11.4891304,5.74456522 L11.4891304,3.2826087 L8.20652175,3.2826087 Z M4.92391304,9.84782609 L4.92391304,11.4891304 L7.72233695,11.4891304 C8.08431263,11.4890155 8.42799204,11.6482243 8.66197039,11.9244136 C8.89594874,12.2006029 8.99650752,12.5657753 8.93690217,12.9228098 L8.60043479,14.9399728 C8.51784643,15.435105 8.73592476,15.9322123 9.15616576,16.2067558 C9.57640676,16.4812994 10.1192454,16.4812994 10.5394864,16.2067558 C10.9597274,15.9322123 11.1778057,15.435105 11.0952174,14.9399728 L10.75875,12.9228098 C10.6991446,12.5657753 10.7997034,12.2006029 11.0336818,11.9244136 C11.2676601,11.6482243 11.6113395,11.4890155 11.9733152,11.4891304 L14.7717391,11.4891304 L14.7717391,9.84782609 L4.92391304,9.84782609 Z M12.7143641,14.6699783 C12.9035912,15.807501 12.4022968,16.9492894 11.4368082,17.5798421 C10.4713197,18.2103948 9.2243325,18.2103948 8.25884395,17.5798421 C7.2933554,16.9492894 6.79206095,15.807501 6.98128804,14.6699783 L7.23815217,13.1304348 L4.92391304,13.1304348 C4.48861206,13.1304348 4.07113988,12.9575121 3.76333561,12.6497079 C3.45553133,12.3419036 3.2826087,11.9244314 3.2826087,11.4891304 L3.2826087,3.2826087 C3.2826087,2.84730772 3.45553133,2.42983554 3.76333561,2.12203126 C4.07113988,1.81422698 4.48861206,1.64130434 4.92391304,1.64130434 L14.7717391,1.64130434 C15.2070401,1.64130434 15.6245123,1.81422698 15.9323166,2.12203126 C16.2401208,2.42983554 16.4130435,2.84730772 16.4130435,3.2826087 L16.4130435,11.4891304 C16.4130435,11.9244314 16.2401208,12.3419036 15.9323166,12.6497079 C15.6245123,12.9575121 15.2070401,13.1304348 14.7717391,13.1304348 L12.4575,13.1304348 L12.7143641,14.6699783 L12.7143641,14.6699783 Z', + id: 'Brush-\u5F62\u72B6', + }), + ), + ), + ), + ); +} + +export default Brush; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js similarity index 56% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js index e69a5abd3..bc74d7ff0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js @@ -60,8 +60,7 @@ function Compact(props) { height: 16, }), /*#__PURE__*/ React.createElement('path', { - d: - 'M10,14 L10,12 C10,10.8666667 10.8666667,10 12,10 L14,10 C14.4,10 14.6666667,10.2666667 14.6666667,10.6666667 C14.6666667,11.0666667 14.4,11.3333333 14,11.3333333 L12,11.3333333 C11.6,11.3333333 11.3333333,11.6 11.3333333,12 L11.3333333,14 C11.3333333,14.4 11.0666667,14.6666667 10.6666667,14.6666667 C10.2666667,14.6666667 10,14.4 10,14 L10,14 Z M4.66666667,14 L4.66666667,12 C4.66666667,11.6 4.4,11.3333333 4,11.3333333 L2,11.3333333 C1.6,11.3333333 1.33333333,11.0666667 1.33333333,10.6666667 C1.33333333,10.2666667 1.6,10 2,10 L4,10 C5.13333333,10 6,10.8666667 6,12 L6,14 C6,14.4 5.73333333,14.6666667 5.33333333,14.6666667 C4.93333333,14.6666667 4.66666666,14.4 4.66666667,14 L4.66666667,14 Z M12,6 C10.8666667,6 10,5.13333333 10,4 L10,2 C10,1.6 10.2666667,1.33333333 10.6666667,1.33333333 C11.0666667,1.33333333 11.3333333,1.6 11.3333333,2 L11.3333333,4 C11.3333333,4.4 11.6,4.66666667 12,4.66666667 L14,4.66666667 C14.4,4.66666667 14.6666667,4.93333334 14.6666667,5.33333333 C14.6666667,5.73333331 14.4,6 14,6 L12,6 L12,6 Z M2,6 C1.6,6 1.33333333,5.73333333 1.33333333,5.33333333 C1.33333333,4.93333333 1.6,4.66666666 2,4.66666667 L4,4.66666667 C4.4,4.66666667 4.66666667,4.4 4.66666667,4 L4.66666667,2 C4.66666667,1.6 4.93333334,1.33333333 5.33333333,1.33333333 C5.73333331,1.33333333 6,1.6 6,2 L6,4 C6,5.13333333 5.13333333,6 4,6 L2,6 Z', + d: 'M10,14 L10,12 C10,10.8666667 10.8666667,10 12,10 L14,10 C14.4,10 14.6666667,10.2666667 14.6666667,10.6666667 C14.6666667,11.0666667 14.4,11.3333333 14,11.3333333 L12,11.3333333 C11.6,11.3333333 11.3333333,11.6 11.3333333,12 L11.3333333,14 C11.3333333,14.4 11.0666667,14.6666667 10.6666667,14.6666667 C10.2666667,14.6666667 10,14.4 10,14 L10,14 Z M4.66666667,14 L4.66666667,12 C4.66666667,11.6 4.4,11.3333333 4,11.3333333 L2,11.3333333 C1.6,11.3333333 1.33333333,11.0666667 1.33333333,10.6666667 C1.33333333,10.2666667 1.6,10 2,10 L4,10 C5.13333333,10 6,10.8666667 6,12 L6,14 C6,14.4 5.73333333,14.6666667 5.33333333,14.6666667 C4.93333333,14.6666667 4.66666666,14.4 4.66666667,14 L4.66666667,14 Z M12,6 C10.8666667,6 10,5.13333333 10,4 L10,2 C10,1.6 10.2666667,1.33333333 10.6666667,1.33333333 C11.0666667,1.33333333 11.3333333,1.6 11.3333333,2 L11.3333333,4 C11.3333333,4.4 11.6,4.66666667 12,4.66666667 L14,4.66666667 C14.4,4.66666667 14.6666667,4.93333334 14.6666667,5.33333333 C14.6666667,5.73333331 14.4,6 14,6 L12,6 L12,6 Z M2,6 C1.6,6 1.33333333,5.73333333 1.33333333,5.33333333 C1.33333333,4.93333333 1.6,4.66666666 2,4.66666667 L4,4.66666667 C4.4,4.66666667 4.66666667,4.4 4.66666667,4 L4.66666667,2 C4.66666667,1.6 4.93333334,1.33333333 5.33333333,1.33333333 C5.73333331,1.33333333 6,1.6 6,2 L6,4 C6,5.13333333 5.13333333,6 4,6 L2,6 Z', id: 'Compact-\u5F62\u72B6', }), ), diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js similarity index 50% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js index 0a617c108..2d927d12d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js @@ -66,50 +66,42 @@ function Control(props) { height: 16, }), /*#__PURE__*/ React.createElement('path', { - d: - 'M6,3.5625 L13.75,3.5625 L13.75,4.1875 L6,4.1875 L6,3.5625 Z M2.1875,3.5625 L3.8125,3.5625 L3.8125,4.1875 L2.1875,4.1875 L2.1875,3.5625 Z M8.3125,11.8125 L13.75,11.8125 L13.75,12.4375 L8.3125,12.4375 L8.3125,11.8125 Z M2.1875,11.8125 L6.125,11.8125 L6.125,12.4375 L2.1875,12.4375 L2.1875,11.8125 Z M12.625,7.6875 L13.75,7.6875 L13.75,8.3125 L12.625,8.3125 L12.625,7.6875 Z M2.1875,7.6875 L10.4375,7.6875 L10.4375,8.3125 L2.1875,8.3125 L2.1875,7.6875 Z', + d: 'M6,3.5625 L13.75,3.5625 L13.75,4.1875 L6,4.1875 L6,3.5625 Z M2.1875,3.5625 L3.8125,3.5625 L3.8125,4.1875 L2.1875,4.1875 L2.1875,3.5625 Z M8.3125,11.8125 L13.75,11.8125 L13.75,12.4375 L8.3125,12.4375 L8.3125,11.8125 Z M2.1875,11.8125 L6.125,11.8125 L6.125,12.4375 L2.1875,12.4375 L2.1875,11.8125 Z M12.625,7.6875 L13.75,7.6875 L13.75,8.3125 L12.625,8.3125 L12.625,7.6875 Z M2.1875,7.6875 L10.4375,7.6875 L10.4375,8.3125 L2.1875,8.3125 L2.1875,7.6875 Z', id: 'Control-\u5F62\u72B6', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M1.875,3.875 C1.875,4.04758898 2.01491102,4.1875 2.1875,4.1875 C2.36008898,4.1875 2.5,4.04758898 2.5,3.875 C2.5,3.70241102 2.36008898,3.5625 2.1875,3.5625 C2.01491102,3.5625 1.875,3.70241102 1.875,3.875 Z', + d: 'M1.875,3.875 C1.875,4.04758898 2.01491102,4.1875 2.1875,4.1875 C2.36008898,4.1875 2.5,4.04758898 2.5,3.875 C2.5,3.70241102 2.36008898,3.5625 2.1875,3.5625 C2.01491102,3.5625 1.875,3.70241102 1.875,3.875 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M13.4375,3.875 C13.4375,4.04758898 13.577411,4.1875 13.75,4.1875 C13.922589,4.1875 14.0625,4.04758898 14.0625,3.875 C14.0625,3.70241102 13.922589,3.5625 13.75,3.5625 C13.577411,3.5625 13.4375,3.70241102 13.4375,3.875 Z', + d: 'M13.4375,3.875 C13.4375,4.04758898 13.577411,4.1875 13.75,4.1875 C13.922589,4.1875 14.0625,4.04758898 14.0625,3.875 C14.0625,3.70241102 13.922589,3.5625 13.75,3.5625 C13.577411,3.5625 13.4375,3.70241102 13.4375,3.875 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M13.4375,8 C13.4375,8.17258898 13.577411,8.3125 13.75,8.3125 C13.922589,8.3125 14.0625,8.17258898 14.0625,8 C14.0625,7.82741102 13.922589,7.6875 13.75,7.6875 C13.577411,7.6875 13.4375,7.82741102 13.4375,8 Z', + d: 'M13.4375,8 C13.4375,8.17258898 13.577411,8.3125 13.75,8.3125 C13.922589,8.3125 14.0625,8.17258898 14.0625,8 C14.0625,7.82741102 13.922589,7.6875 13.75,7.6875 C13.577411,7.6875 13.4375,7.82741102 13.4375,8 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M13.4375,12.125 C13.4375,12.297589 13.577411,12.4375 13.75,12.4375 C13.922589,12.4375 14.0625,12.297589 14.0625,12.125 C14.0625,11.952411 13.922589,11.8125 13.75,11.8125 C13.577411,11.8125 13.4375,11.952411 13.4375,12.125 L13.4375,12.125 Z', + d: 'M13.4375,12.125 C13.4375,12.297589 13.577411,12.4375 13.75,12.4375 C13.922589,12.4375 14.0625,12.297589 14.0625,12.125 C14.0625,11.952411 13.922589,11.8125 13.75,11.8125 C13.577411,11.8125 13.4375,11.952411 13.4375,12.125 L13.4375,12.125 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M1.875,8 C1.875,8.17258898 2.01491102,8.3125 2.1875,8.3125 C2.36008898,8.3125 2.5,8.17258898 2.5,8 C2.5,7.82741102 2.36008898,7.6875 2.1875,7.6875 C2.01491102,7.6875 1.875,7.82741102 1.875,8 Z', + d: 'M1.875,8 C1.875,8.17258898 2.01491102,8.3125 2.1875,8.3125 C2.36008898,8.3125 2.5,8.17258898 2.5,8 C2.5,7.82741102 2.36008898,7.6875 2.1875,7.6875 C2.01491102,7.6875 1.875,7.82741102 1.875,8 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M1.875,12.125 C1.875,12.297589 2.01491102,12.4375 2.1875,12.4375 C2.36008898,12.4375 2.5,12.297589 2.5,12.125 C2.5,11.952411 2.36008898,11.8125 2.1875,11.8125 C2.01491102,11.8125 1.875,11.952411 1.875,12.125 L1.875,12.125 Z', + d: 'M1.875,12.125 C1.875,12.297589 2.01491102,12.4375 2.1875,12.4375 C2.36008898,12.4375 2.5,12.297589 2.5,12.125 C2.5,11.952411 2.36008898,11.8125 2.1875,11.8125 C2.01491102,11.8125 1.875,11.952411 1.875,12.125 L1.875,12.125 Z', id: 'Control-\u8DEF\u5F84', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M4.90625,5.25 C4.13125,5.25 3.5,4.61875 3.5,3.84375 C3.5,3.06875 4.13125,2.4375 4.90625,2.4375 C5.68125,2.4375 6.3125,3.06875 6.3125,3.84375 C6.3125,4.61875 5.68125,5.25 4.90625,5.25 Z M4.90625,3.0625 C4.475,3.0625 4.125,3.4125 4.125,3.84375 C4.125,4.275 4.475,4.625 4.90625,4.625 C5.3375,4.625 5.6875,4.275 5.6875,3.84375 C5.6875,3.4125 5.3375,3.0625 4.90625,3.0625 Z M11.53125,9.4375 C10.75625,9.4375 10.125,8.80625 10.125,8.03125 C10.125,7.25625 10.75625,6.625 11.53125,6.625 C12.30625,6.625 12.9375,7.25625 12.9375,8.03125 C12.9375,8.80625 12.30625,9.4375 11.53125,9.4375 Z M11.53125,7.25 C11.1,7.25 10.75,7.6 10.75,8.03125 C10.75,8.4625 11.1,8.8125 11.53125,8.8125 C11.9625,8.8125 12.3125,8.4625 12.3125,8.03125 C12.3125,7.6 11.9625,7.25 11.53125,7.25 Z M7.21875,13.5 C6.44375,13.5 5.8125,12.86875 5.8125,12.09375 C5.8125,11.31875 6.44375,10.6875 7.21875,10.6875 C7.99375,10.6875 8.625,11.31875 8.625,12.09375 C8.625,12.86875 7.99375,13.5 7.21875,13.5 Z M7.21875,11.3125 C6.7875,11.3125 6.4375,11.6625 6.4375,12.09375 C6.4375,12.525 6.7875,12.875 7.21875,12.875 C7.65,12.875 8,12.525 8,12.09375 C8,11.6625 7.65,11.3125 7.21875,11.3125 Z', + d: 'M4.90625,5.25 C4.13125,5.25 3.5,4.61875 3.5,3.84375 C3.5,3.06875 4.13125,2.4375 4.90625,2.4375 C5.68125,2.4375 6.3125,3.06875 6.3125,3.84375 C6.3125,4.61875 5.68125,5.25 4.90625,5.25 Z M4.90625,3.0625 C4.475,3.0625 4.125,3.4125 4.125,3.84375 C4.125,4.275 4.475,4.625 4.90625,4.625 C5.3375,4.625 5.6875,4.275 5.6875,3.84375 C5.6875,3.4125 5.3375,3.0625 4.90625,3.0625 Z M11.53125,9.4375 C10.75625,9.4375 10.125,8.80625 10.125,8.03125 C10.125,7.25625 10.75625,6.625 11.53125,6.625 C12.30625,6.625 12.9375,7.25625 12.9375,8.03125 C12.9375,8.80625 12.30625,9.4375 11.53125,9.4375 Z M11.53125,7.25 C11.1,7.25 10.75,7.6 10.75,8.03125 C10.75,8.4625 11.1,8.8125 11.53125,8.8125 C11.9625,8.8125 12.3125,8.4625 12.3125,8.03125 C12.3125,7.6 11.9625,7.25 11.53125,7.25 Z M7.21875,13.5 C6.44375,13.5 5.8125,12.86875 5.8125,12.09375 C5.8125,11.31875 6.44375,10.6875 7.21875,10.6875 C7.99375,10.6875 8.625,11.31875 8.625,12.09375 C8.625,12.86875 7.99375,13.5 7.21875,13.5 Z M7.21875,11.3125 C6.7875,11.3125 6.4375,11.6625 6.4375,12.09375 C6.4375,12.525 6.7875,12.875 7.21875,12.875 C7.65,12.875 8,12.525 8,12.09375 C8,11.6625 7.65,11.3125 7.21875,11.3125 Z', id: 'Control-\u5F62\u72B6', fill: 'currentColor', }), diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js new file mode 100644 index 000000000..77f8ceacd --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.js @@ -0,0 +1,73 @@ +import * as React from 'react'; + +function Dark(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 17 17', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Dark-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Dark-\u9ED8\u8BA4', + transform: 'translate(-9.000000, -49.500000)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Dark-\u7F16\u7EC4-17', + transform: 'translate(0.000000, 42.500000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Dark-moon', + transform: 'translate(9.268811, 7.500000)', + }, + /*#__PURE__*/ React.createElement('rect', { + id: 'Dark-\u77E9\u5F62', + opacity: 0, + x: 0, + y: 0, + width: 16, + height: 16, + }), + /*#__PURE__*/ React.createElement('path', { + d: 'M8,1.33333333 C8.14933333,1.33333333 8.29688889,1.33844444 8.44266667,1.34866666 C8.14755556,1.98422221 8,2.64577777 8,3.33333333 C8,3.96533333 8.12333333,4.56955555 8.37,5.146 C8.61666667,5.72244445 8.94822222,6.21888889 9.36466667,6.63533333 C9.78111112,7.05177777 10.2775556,7.38333332 10.854,7.63 C11.4304444,7.87666668 12.0346667,8.00000001 12.6666667,8 C13.3542222,8 14.0157778,7.85244444 14.6513333,7.55733333 C14.6615556,7.70311111 14.6666667,7.85066667 14.6666667,8 C14.6666667,8.604 14.5868889,9.19422222 14.4273333,9.77066667 C14.2677778,10.3471111 14.0446667,10.8793333 13.758,11.3673333 C13.4713333,11.8553333 13.1233333,12.3042222 12.714,12.714 C12.3046667,13.1237778 11.8557778,13.4717778 11.3673333,13.758 C10.8788889,14.0442222 10.3466667,14.2673333 9.77066667,14.4273333 C9.19466667,14.5873333 8.60444445,14.6671111 8,14.6666685 C7.39555555,14.6662222 6.80533333,14.5864444 6.22933333,14.4273333 C5.65333333,14.2682222 5.1211111,14.0451111 4.63266666,13.758 C4.14422221,13.4708889 3.69533332,13.1228889 3.28599998,12.714 C2.87666665,12.3051111 2.52866665,11.8562222 2.24199998,11.3673333 C1.95533332,10.8784444 1.73222221,10.3462222 1.57266666,9.77066667 C1.4131111,9.19511112 1.33333333,8.6048889 1.33333333,8 C1.33333333,7.3951111 1.4131111,6.80488888 1.57266666,6.22933333 C1.73222221,5.65377778 1.95533332,5.12155555 2.24199998,4.63266666 C2.52866665,4.14377776 2.87666665,3.69488887 3.28599998,3.28599998 C3.69533332,2.8771111 4.14422221,2.5291111 4.63266666,2.24199998 C5.1211111,1.95488887 5.65333333,1.73177776 6.22933333,1.57266666 C6.80533333,1.41355555 7.39555555,1.33377778 8,1.33333333 Z M6.68733333,2.828 C6.11444444,2.97377778 5.58066667,3.20977778 5.086,3.536 C4.59133333,3.86222222 4.166,4.24933333 3.81,4.69733333 C3.454,5.14533333 3.17444444,5.65488889 2.97133333,6.226 C2.76822221,6.79711111 2.66666666,7.38822222 2.66666666,7.99933333 C2.66666666,8.72155555 2.80733332,9.41155555 3.08866666,10.0693333 C3.36999999,10.7271111 3.74933332,11.2948889 4.22666666,11.7726667 C4.70399999,12.2504444 5.27177777,12.6297778 5.92999998,12.9106667 C6.5882222,13.1915556 7.2782222,13.3322222 7.99999998,13.3326667 C8.6111111,13.3326667 9.20222221,13.2311111 9.77333331,13.028 C10.3444444,12.8248889 10.854,12.5453333 11.302,12.1893333 C11.75,11.8333333 12.1371111,11.408 12.4633333,10.9133333 C12.7895555,10.4186666 13.0255555,9.88488887 13.1713333,9.31199998 C13.022,9.32577777 12.8535555,9.33266666 12.666,9.33266666 C11.8535555,9.33266666 11.0775555,9.17377777 10.338,8.85599998 C9.59844443,8.5382222 8.96044443,8.11111109 8.42399998,7.57466666 C7.88755554,7.03822222 7.46044443,6.40022222 7.14266666,5.66066666 C6.82488889,4.92111109 6.66599999,4.14511109 6.66599998,3.33266666 C6.66599998,3.1451111 6.67288888,2.97666666 6.68666666,2.82733333 L6.68733333,2.828 Z', + id: 'Dark-\u5F62\u72B6', + }), + ), + ), + ), + ), + ); +} + +export default Dark; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js new file mode 100644 index 000000000..8ee964120 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.js @@ -0,0 +1,87 @@ +import * as React from 'react'; + +function Light(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 13 13', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-\u4E3B\u9898\u5305', + transform: 'translate(-2943.000000, -292.000000)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-\u7F16\u7EC4-12', + transform: 'translate(2415.000000, 222.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-\u89C6\u56FE\u5207\u6362-\u7F16\u8F91\u6001', + transform: 'translate(518.000000, 60.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-eye', + transform: 'translate(8.000000, 8.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Light-sun', + transform: 'translate(2.000000, 2.000000)', + }, + /*#__PURE__*/ React.createElement('rect', { + id: 'Light-\u77E9\u5F62', + opacity: 0, + x: 0, + y: 0, + width: 13, + height: 13, + }), + /*#__PURE__*/ React.createElement('path', { + d: 'M6.5,9.75 C4.7051875,9.75 3.25,8.2948125 3.25,6.5 C3.25,4.7051875 4.7051875,3.25 6.5,3.25 C8.2948125,3.25 9.75,4.7051875 9.75,6.5 C9.75,8.2948125 8.2948125,9.75 6.5,9.75 Z M6.5,8.66666667 C7.69661696,8.66666667 8.66666667,7.69661696 8.66666667,6.5 C8.66666667,5.30338304 7.69661696,4.33333333 6.5,4.33333333 C5.30338305,4.33333333 4.33333336,5.30338305 4.33333336,6.5 C4.33333336,7.69661695 5.30338305,8.66666667 6.5,8.66666667 Z M5.95833333,1.08333333 C5.95833333,0.784179087 6.20084576,0.541666658 6.5,0.541666658 C6.79915424,0.541666658 7.04166667,0.784179087 7.04166667,1.08333333 L7.04166667,2.16666667 C7.04166667,2.46582091 6.79915424,2.70833334 6.5,2.70833334 C6.20084576,2.70833334 5.95833333,2.46582091 5.95833333,2.16666667 L5.95833333,1.08333333 L5.95833333,1.08333333 Z M5.95833333,10.8333333 C5.95833333,10.5341791 6.20084576,10.2916667 6.5,10.2916667 C6.79915424,10.2916667 7.04166667,10.5341791 7.04166667,10.8333333 L7.04166667,11.9166667 C7.04166667,12.2158209 6.79915424,12.4583333 6.5,12.4583333 C6.20084576,12.4583333 5.95833333,12.2158209 5.95833333,11.9166667 L5.95833333,10.8333333 L5.95833333,10.8333333 Z M1.08333333,7.04166667 C0.784179087,7.04166667 0.541666658,6.79915424 0.541666658,6.5 C0.541666658,6.20084576 0.784179087,5.95833333 1.08333333,5.95833333 L2.16666667,5.95833333 C2.46582091,5.95833333 2.70833334,6.20084576 2.70833334,6.5 C2.70833334,6.79915424 2.46582091,7.04166667 2.16666667,7.04166667 L1.08333333,7.04166667 L1.08333333,7.04166667 Z M10.8333333,7.04166667 C10.5341791,7.04166667 10.2916667,6.79915424 10.2916667,6.5 C10.2916667,6.20084576 10.5341791,5.95833333 10.8333333,5.95833333 L11.9166667,5.95833333 C12.2158209,5.95833333 12.4583333,6.20084576 12.4583333,6.5 C12.4583333,6.79915424 12.2158209,7.04166667 11.9166667,7.04166667 L10.8333333,7.04166667 L10.8333333,7.04166667 Z M2.05454167,2.82045833 C1.84926545,2.60791971 1.85220137,2.27007933 2.06114035,2.06114035 C2.27007933,1.85220137 2.60791971,1.84926545 2.82045833,2.05454167 L3.63295833,2.86704167 C3.83823455,3.07958029 3.83529863,3.41742067 3.62635965,3.62635965 C3.41742067,3.83529863 3.07958029,3.83823455 2.86704167,3.63295833 L2.05454167,2.82045833 L2.05454167,2.82045833 Z M9.36704167,10.1329583 C9.16176545,9.92041971 9.16470137,9.58257933 9.37364035,9.37364035 C9.58257933,9.16470137 9.92041971,9.16176545 10.1329583,9.36704167 L10.9454583,10.1795417 C11.1507346,10.3920803 11.1477986,10.7299207 10.9388596,10.9388596 C10.7299207,11.1477986 10.3920803,11.1507346 10.1795417,10.9454583 L9.36704167,10.1329583 L9.36704167,10.1329583 Z M2.82045833,10.9454583 C2.60791971,11.1507346 2.27007933,11.1477986 2.06114035,10.9388596 C1.85220137,10.7299207 1.84926545,10.3920803 2.05454167,10.1795417 L2.86704167,9.36704167 C3.07958029,9.16176545 3.41742067,9.16470137 3.62635965,9.37364035 C3.83529863,9.58257933 3.83823455,9.92041971 3.63295833,10.1329583 L2.82045833,10.9454583 L2.82045833,10.9454583 Z M10.1329583,3.63295833 C9.92041971,3.83823455 9.58257933,3.83529863 9.37364035,3.62635965 C9.16470137,3.41742067 9.16176545,3.07958029 9.36704167,2.86704167 L10.1795417,2.05454167 C10.3920803,1.84926545 10.7299207,1.85220137 10.9388596,2.06114035 C11.1477986,2.27007933 11.1507346,2.60791971 10.9454583,2.82045833 L10.1329583,3.63295833 L10.1329583,3.63295833 Z', + id: 'Light-\u5F62\u72B6', + }), + ), + ), + ), + ), + ), + ), + ); +} + +export default Light; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js new file mode 100644 index 000000000..bf5c3e889 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.js @@ -0,0 +1,59 @@ +import * as React from 'react'; + +function Margin(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 16 17', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Margin-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Margin-margin', + transform: 'translate(0.000000, 0.942377)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement('rect', { + id: 'Margin-\u77E9\u5F62', + opacity: 0, + x: 0, + y: 0, + width: 16, + height: 15.9807923, + }), + /*#__PURE__*/ React.createElement('path', { + d: 'M11.6666667,2.75858915 L4.33333333,2.75858915 C4.01904762,2.75858915 3.80952382,2.54931688 3.80952382,2.23540845 C3.80952382,1.92150003 4.01904763,1.71222775 4.33333334,1.71222775 L11.6666667,1.71222775 C11.9809524,1.71222775 12.1904762,1.92150003 12.1904762,2.23540845 C12.1904762,2.54931688 11.9809524,2.75858915 11.6666667,2.75858915 Z M11.6666667,14.2685646 L4.33333333,14.2685646 C4.01904762,14.2685646 3.8095238,14.0592923 3.8095238,13.7453839 C3.8095238,13.4314755 4.01904762,13.2222032 4.33333333,13.2222032 L11.6666667,13.2222032 C11.9809524,13.2222032 12.1904762,13.4314755 12.1904762,13.7453839 C12.1904762,14.0592923 11.9809524,14.2685646 11.6666667,14.2685646 Z M13.7619048,12.1758418 C13.447619,12.1758418 13.2380952,11.9665695 13.2380952,11.6526611 L13.2380952,4.32813125 C13.2380952,4.01422283 13.4476191,3.80495055 13.7619048,3.80495055 C14.0761905,3.80495055 14.2857143,4.01422283 14.2857143,4.32813125 L14.2857143,11.6526611 C14.2857143,11.9665695 14.0761905,12.1758418 13.7619048,12.1758418 Z M2.23809524,12.1758418 C1.92380953,12.1758418 1.71428572,11.9665695 1.71428572,11.6526611 L1.71428572,4.32813125 C1.71428572,4.01422283 1.92380953,3.80495055 2.23809524,3.80495055 C2.55238096,3.80495055 2.76190477,4.01422283 2.76190477,4.32813125 L2.76190477,11.6526611 C2.76190477,11.9665695 2.55238096,12.1758418 2.23809524,12.1758418 Z M11.6666667,12.1758418 L4.33333333,12.1758418 C4.01904762,12.1758418 3.8095238,11.9665695 3.8095238,11.6526611 L3.8095238,4.32813125 C3.8095238,4.01422283 4.01904763,3.80495055 4.33333334,3.80495055 L11.6666667,3.80495055 C11.9809524,3.80495055 12.1904762,4.01422283 12.1904762,4.32813125 L12.1904762,11.6526611 C12.1904762,11.9665695 11.9809524,12.1758418 11.6666667,12.1758418 Z M4.85714286,11.1294804 L11.1428571,11.1294804 L11.1428571,4.85131196 L4.85714286,4.85131196 L4.85714286,11.1294804 Z', + id: 'Margin-\u5F62\u72B6', + }), + ), + ), + ); +} + +export default Margin; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js new file mode 100644 index 000000000..2f4dc5fc4 --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.js @@ -0,0 +1,59 @@ +import * as React from 'react'; + +function Motion(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 16 17', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Motion-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Motion-\u5BCC\u6587\u672C\u7F16\u8F91\u5668_\u52A8\u6548', + transform: 'translate(0.000000, 0.903962)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement('rect', { + id: 'Motion-\u77E9\u5F62', + opacity: 0, + x: 0, + y: 0, + width: 16, + height: 15.9807923, + }), + /*#__PURE__*/ React.createElement('path', { + d: 'M6.55644444,12.5262777 L7.99555556,13.9627734 C8.13290682,14.0984321 8.18701716,14.2971622 8.13737053,14.4836147 C8.0877239,14.6700672 7.94192169,14.8156943 7.75524511,14.8652814 C7.56856853,14.9148684 7.36959959,14.860823 7.23377778,14.7236366 L5.79555556,13.2862532 C5.60250935,13.0737079 5.61045949,12.7472435 5.8136232,12.5443237 C6.01678692,12.3414038 6.3436437,12.3334632 6.55644444,12.5262777 L6.55644444,12.5262777 Z M12.2435556,12.6630023 L13.3857778,13.8038533 C13.5231286,13.9395121 13.5772386,14.138242 13.527592,14.3246942 C13.4779453,14.5111464 13.3321433,14.6567734 13.145467,14.7063605 C12.9587906,14.7559476 12.7598219,14.7019025 12.624,14.5647165 L11.4817778,13.4238655 C11.3444269,13.2882067 11.2903169,13.0894768 11.3399636,12.9030246 C11.3896103,12.7165724 11.5354123,12.5709454 11.7220886,12.5213583 C11.9087649,12.4717712 12.1077337,12.5258163 12.2435556,12.6630023 L12.2435556,12.6630023 Z M7.29511111,0.990809123 C7.37066667,1.03342457 7.43377778,1.09645992 7.47644444,1.17192476 L9.23911111,4.29439403 L12.7564444,5.00376364 C12.9258902,5.03768098 13.0638332,5.16026877 13.1172645,5.32441904 C13.1706959,5.4885693 13.1313024,5.66874209 13.0142222,5.79570068 L10.5866667,8.43430705 L10.9982222,11.9953603 C11.018176,12.1667991 10.94398,12.3356549 10.8041422,12.4370491 C10.6643043,12.5384432 10.4805781,12.5566027 10.3235556,12.4845501 L7.06133333,10.9930095 L3.79733333,12.4845501 C3.64031082,12.5566027 3.45658456,12.5384432 3.3167467,12.4370491 C3.17690884,12.3356549 3.10271286,12.1667991 3.12266667,11.9953603 L3.53511111,8.43519487 L1.10577778,5.79570068 C0.988697555,5.66874209 0.949304077,5.4885693 1.00273546,5.32441904 C1.05616684,5.16026877 1.19410976,5.03768098 1.36355556,5.00376364 L4.88177778,4.29439403 L6.64266667,1.17192476 C6.70502264,1.06136833 6.80886024,0.980137913 6.93126543,0.94615878 C7.05367063,0.912179648 7.18458201,0.928244805 7.29511111,0.990809123 Z M7.05955556,2.62440123 L5.57688889,5.25235374 L2.61688889,5.84808216 L4.65955556,8.07030012 L4.31288889,11.0666987 L7.05955556,9.81131866 L9.80533333,11.0666987 L9.45866667,8.07030012 L11.5031111,5.84896999 L8.54222222,5.25235374 L7.05866667,2.62440123 L7.05955556,2.62440123 Z M13.1528889,7.76045031 L14.5911111,9.19694597 C14.7892424,9.40878705 14.7837079,9.73933037 14.5785954,9.9444359 C14.373483,10.1495414 14.0425491,10.1554552 13.8302222,9.95780926 L12.3911111,8.5213136 C12.2537603,8.38565475 12.1996502,8.18692487 12.2492969,8.00047265 C12.2989436,7.81402043 12.4447456,7.66839345 12.6314219,7.61880637 C12.8180983,7.56921929 13.017067,7.62326436 13.1528889,7.76045031 L13.1528889,7.76045031 Z', + id: 'Motion-\u5F62\u72B6', + }), + ), + ), + ); +} + +export default Motion; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js new file mode 100644 index 000000000..edb12f8bc --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.js @@ -0,0 +1,87 @@ +import * as React from 'react'; + +function Pick(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 14 14', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + fillOpacity: 0.65, + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-\u4E3B\u9898\u7F16\u8F91\u5668---\u591A\u4E3B\u9898', + transform: 'translate(-541.000000, -387.000000)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-\u7F16\u7EC4-11', + transform: 'translate(76.000000, 340.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-Map-Token-\u9762\u677F', + transform: 'translate(0.000000, 27.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-token-\u663E\u793A', + transform: 'translate(-1.002041, -1.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-\u7F16\u7EC4-2', + transform: 'translate(12.024490, 20.000000)', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'Pick-shangyeguanxi', + transform: 'translate(453.924490, 1.000000)', + }, + /*#__PURE__*/ React.createElement('path', { + d: 'M12.6274816,8.17204883 C12.6358384,8.04673242 12.6401539,7.92030859 12.6401539,7.79288672 C12.6401539,5.50309375 11.2701899,3.53286719 9.30406641,2.65472266 C9.31862927,2.54983203 9.32632854,2.44274023 9.32632854,2.33384375 C9.32632854,1.05430664 8.28750187,0.0169394531 7.00623025,0.0169394531 C5.72484902,0.0169394531 4.68607715,1.05430664 4.68607715,2.33384375 C4.68607715,2.44267188 4.69376272,2.54968164 4.70829819,2.65451758 C2.74188703,3.53256641 1.37158055,5.50290234 1.37158055,7.79288672 C1.37158055,7.92044531 1.37592338,8.04699219 1.38428025,8.17243164 C0.593775725,8.54169531 0.0460860491,9.34289453 0.0460860491,10.2719531 C0.0460860491,11.5515449 1.08474833,12.5888574 2.36612955,12.5888574 C2.80723496,12.5888574 3.21958454,12.4658926 3.57069612,12.2524336 C4.52158393,12.9838105 5.71288912,13.4188223 7.00595625,13.4188223 C8.30016046,13.4188223 9.49238354,12.9830449 10.4436412,12.2505195 C10.7943281,12.4630762 11.2059516,12.5854668 11.6462213,12.5854668 C12.9274382,12.5854668 13.9661004,11.5489746 13.9661004,10.2703672 C13.9661004,9.34171875 13.4181916,8.54095703 12.6274816,8.17204883 Z M7.00623025,1.00913477 C7.73549676,1.00913477 8.32698463,1.59684766 8.33166995,2.32357617 C8.33168365,2.32647461 8.33177955,2.32935938 8.33177955,2.33225781 C8.33177955,2.69178711 8.18805519,3.01775195 7.95488499,3.25620313 C7.71417991,3.50236523 7.37813809,3.65527148 7.00623025,3.65527148 C6.6343361,3.65527148 6.29829428,3.50236523 6.0575618,3.25620313 C5.8243779,3.01775195 5.68062614,2.69178711 5.68062614,2.33225781 C5.68062614,2.32931836 5.68072204,2.32639258 5.68073574,2.32345313 C5.68547586,1.59679297 6.27704593,1.00913477 7.00623025,1.00913477 Z M2.36612955,11.5993965 C1.63399978,11.5993965 1.04047065,11.0058047 1.04047065,10.2734297 C1.04047065,9.84645703 1.24229576,9.46667969 1.55566445,9.22416797 C1.7797654,9.05074023 2.06088482,8.94746289 2.36614325,8.94746289 C2.41639403,8.94746289 2.46597352,8.95036133 2.51477213,8.95580273 C3.17696454,9.02969922 3.69181585,9.59136719 3.69181585,10.273416 C3.69181585,10.4903613 3.6397293,10.6951113 3.5473928,10.8758809 C3.39166744,11.1807637 3.12143934,11.4173555 2.79339819,11.5289863 C2.65931847,11.574623 2.51562151,11.5993965 2.36612955,11.5993965 Z M7.00127093,12.4178633 C5.99141928,12.4178633 5.0570808,12.0957402 4.29537321,11.549084 C4.53905114,11.1824316 4.68111783,10.7425937 4.68111783,10.2695605 C4.68111783,8.99117188 3.64429132,7.95466602 2.36460887,7.95280664 C2.3626772,7.89787305 2.36134833,7.84278906 2.36134833,7.78737695 C2.36134833,5.92565039 3.46242679,4.32079102 5.05001172,3.58529883 C5.46299149,4.22481445 6.18258597,4.64830078 7.00128463,4.64830078 C7.81990109,4.64830078 8.53950926,4.22481445 8.95248903,3.58529883 C10.5400329,4.32079102 11.6411113,5.92565039 11.6411113,7.78737695 C11.6411113,7.84277539 11.6397824,7.89787305 11.6378508,7.95280664 C10.3582094,7.95465234 9.32139662,8.99040625 9.32139662,10.2679746 C9.32139662,10.7413906 9.4639017,11.1815293 9.70827832,11.5482363 C8.94635153,12.0953848 8.01158836,12.4178633 7.00127093,12.4178633 Z M11.6459473,8.94746289 C11.9510962,8.94746289 12.2321197,9.0506582 12.4561658,9.22397656 C12.7696578,9.46647461 12.9715652,9.84632031 12.9715652,10.273375 C12.9715652,11.0056953 12.3780634,11.5993418 11.6459473,11.5993418 C11.4964143,11.5993418 11.3526762,11.574541 11.2185828,11.528877 C10.8907472,11.4172324 10.6206287,11.1807227 10.464917,10.8759902 C10.3725257,10.6951797 10.320398,10.490375 10.320398,10.273375 C10.320398,9.59128516 10.8354138,9.0295625 11.4976062,8.95577539 C11.5463226,8.95034766 11.5957925,8.94746289 11.6459473,8.94746289 Z M7.00557266,6.21029883 C7.91351399,6.21029883 8.64954587,6.94483166 8.64954587,7.85092383 C8.64954587,8.757016 7.91351399,9.49154883 7.00557266,9.49154883 C6.09763132,9.49154883 5.36159944,8.757016 5.36159944,7.85092383 C5.36159944,6.94483166 6.09763132,6.21029883 7.00557266,6.21029883 Z', + id: 'Pick-\u5F62\u72B6', + }), + ), + ), + ), + ), + ), + ), + ), + ); +} + +export default Pick; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js similarity index 66% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js index 74a5b9f9a..569209e55 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js @@ -66,14 +66,12 @@ function SearchDropdown(props) { height: 18, }), /*#__PURE__*/ React.createElement('path', { - d: - 'M15.958,14.99375 L11.41325,10.449 C12.1185,9.53725 12.5,8.4225 12.5,7.25 C12.5,5.8465 11.95225,4.5305 10.96175,3.53825 C9.97125,2.546 8.65175,2 7.25,2 C5.84825,2 4.52875,2.54775 3.53825,3.53825 C2.546,4.52875 2,5.8465 2,7.25 C2,8.65175 2.54775,9.97125 3.53825,10.96175 C4.52875,11.954 5.8465,12.5 7.25,12.5 C8.4225,12.5 9.5355,12.1185 10.44725,11.415 L14.992,15.958 C15.048,16.014 15.139,16.014 15.195,15.958 L15.958,15.19675 C16.014,15.14075 16.014,15.04975 15.958,14.99375 Z M10.022,10.022 C9.28,10.76225 8.2965,11.17 7.25,11.17 C6.2035,11.17 5.22,10.76225 4.478,10.022 C3.73775,9.28 3.33,8.2965 3.33,7.25 C3.33,6.2035 3.73775,5.21825 4.478,4.478 C5.22,3.73775 6.2035,3.33 7.25,3.33 C8.2965,3.33 9.28175,3.736 10.022,4.478 C10.76225,5.22 11.17,6.2035 11.17,7.25 C11.17,8.2965 10.76225,9.28175 10.022,10.022 Z', + d: 'M15.958,14.99375 L11.41325,10.449 C12.1185,9.53725 12.5,8.4225 12.5,7.25 C12.5,5.8465 11.95225,4.5305 10.96175,3.53825 C9.97125,2.546 8.65175,2 7.25,2 C5.84825,2 4.52875,2.54775 3.53825,3.53825 C2.546,4.52875 2,5.8465 2,7.25 C2,8.65175 2.54775,9.97125 3.53825,10.96175 C4.52875,11.954 5.8465,12.5 7.25,12.5 C8.4225,12.5 9.5355,12.1185 10.44725,11.415 L14.992,15.958 C15.048,16.014 15.139,16.014 15.195,15.958 L15.958,15.19675 C16.014,15.14075 16.014,15.04975 15.958,14.99375 Z M10.022,10.022 C9.28,10.76225 8.2965,11.17 7.25,11.17 C6.2035,11.17 5.22,10.76225 4.478,10.022 C3.73775,9.28 3.33,8.2965 3.33,7.25 C3.33,6.2035 3.73775,5.21825 4.478,4.478 C5.22,3.73775 6.2035,3.33 7.25,3.33 C8.2965,3.33 9.28175,3.736 10.022,4.478 C10.76225,5.22 11.17,6.2035 11.17,7.25 C11.17,8.2965 10.76225,9.28175 10.022,10.022 Z', id: 'SearchDropdown-\u5F62\u72B6', fill: 'currentColor', }), /*#__PURE__*/ React.createElement('path', { - d: - 'M17.8616348,7.7578125 L14.0131973,7.7578125 C13.8977676,7.7578125 13.8333145,7.8796875 13.9047988,7.96289062 L15.8290176,10.1941406 C15.8840957,10.2580078 15.9901504,10.2580078 16.0458145,10.1941406 L17.9700332,7.96289062 C18.0415176,7.8796875 17.9770645,7.7578125 17.8616348,7.7578125 Z', + d: 'M17.8616348,7.7578125 L14.0131973,7.7578125 C13.8977676,7.7578125 13.8333145,7.8796875 13.9047988,7.96289062 L15.8290176,10.1941406 C15.8840957,10.2580078 15.9901504,10.2580078 16.0458145,10.1941406 L17.9700332,7.96289062 C18.0415176,7.8796875 17.9770645,7.7578125 17.8616348,7.7578125 Z', id: 'SearchDropdown-\u8DEF\u5F84', fill: 'currentColor', }), diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts diff --git a/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js new file mode 100644 index 000000000..c31221b0a --- /dev/null +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.js @@ -0,0 +1,59 @@ +import * as React from 'react'; + +function ShapeLine(props) { + return /*#__PURE__*/ React.createElement( + 'svg', + Object.assign( + { + width: '1em', + height: '1em', + viewBox: '0 0 16 17', + xmlns: 'http://www.w3.org/2000/svg', + xmlnsXlink: 'http://www.w3.org/1999/xlink', + }, + props, + { + style: Object.assign( + { + verticalAlign: '-0.125em', + }, + props.style, + ), + className: ['nanqu-token-panel-icon', props.className].filter(Boolean).join(' '), + }, + ), + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'ShapeLine-\u9875\u9762-1', + stroke: 'none', + strokeWidth: 1, + fill: 'none', + fillRule: 'evenodd', + }, + /*#__PURE__*/ React.createElement( + 'g', + { + id: 'ShapeLine-shape-line', + transform: 'translate(0.000000, 0.923169)', + fill: 'currentColor', + fillRule: 'nonzero', + }, + /*#__PURE__*/ React.createElement('rect', { + id: 'ShapeLine-\u77E9\u5F62', + opacity: 0, + x: 0, + y: 0, + width: 16, + height: 15.9807923, + }), + /*#__PURE__*/ React.createElement('path', { + d: 'M5.22,13.3173269 C4.90928357,14.1946577 4.03334945,14.7416208 3.10760502,14.6363783 C2.18186059,14.5311359 1.45139881,13.801551 1.34602985,12.8769179 C1.24066088,11.9522848 1.78828141,11.0774022 2.66666667,10.7670588 L2.66666667,5.21373349 C1.78828141,4.90339007 1.24066088,4.02850749 1.34602985,3.1038744 C1.45139881,2.1792413 2.18186059,1.44965643 3.10760502,1.34441396 C4.03334945,1.23917149 4.90928357,1.78613461 5.22,2.66346539 L10.78,2.66346539 C11.0907164,1.78613461 11.9666505,1.23917149 12.892395,1.34441396 C13.8181394,1.44965643 14.5486012,2.1792413 14.6539702,3.1038744 C14.7593391,4.02850749 14.2117186,4.90339007 13.3333333,5.21373349 L13.3333333,10.7670588 C14.2117186,11.0774022 14.7593391,11.9522848 14.6539702,12.8769179 C14.5486012,13.801551 13.8181394,14.5311359 12.892395,14.6363783 C11.9666505,14.7416208 11.0907164,14.1946577 10.78,13.3173269 L5.22,13.3173269 Z M5.22,11.9855942 L10.78,11.9855942 C10.9819939,11.4165133 11.430235,10.9688103 12,10.7670588 L12,5.21373349 C11.430235,5.01198206 10.9819939,4.56427905 10.78,3.99519808 L5.22,3.99519808 C5.01800608,4.56427905 4.56976496,5.01198206 4,5.21373349 L4,10.7670588 C4.56976496,10.9688103 5.01800608,11.4165133 5.22,11.9855942 Z M3.33333333,3.99519809 C3.5715347,3.9952345 3.79165744,3.86832906 3.91076865,3.66229434 C4.02987987,3.45625961 4.02987987,3.20240385 3.91076865,2.99636913 C3.79165744,2.79033441 3.5715347,2.66342897 3.33333333,2.66346538 C2.96518335,2.66352168 2.66676872,2.96162371 2.66676872,3.32933173 C2.66676872,3.69703976 2.96518335,3.99514178 3.33333333,3.99519809 L3.33333333,3.99519809 Z M12.6666667,3.99519809 C12.904868,3.9952345 13.1249908,3.86832906 13.244102,3.66229434 C13.3632132,3.45625961 13.3632132,3.20240385 13.244102,2.99636913 C13.1249908,2.79033441 12.904868,2.66342897 12.6666667,2.66346538 C12.2985167,2.66352168 12.0001021,2.96162371 12.0001021,3.32933173 C12.0001021,3.69703976 12.2985167,3.99514178 12.6666667,3.99519809 L12.6666667,3.99519809 Z M12.6666667,13.3173269 C12.904868,13.3173633 13.1249908,13.1904579 13.244102,12.9844232 C13.3632132,12.7783885 13.3632132,12.5245327 13.244102,12.318498 C13.1249908,12.1124633 12.904868,11.9855578 12.6666667,11.9855942 C12.2985167,11.9856505 12.0001021,12.2837526 12.0001021,12.6514606 C12.0001021,13.0191686 12.2985167,13.3172706 12.6666667,13.3173269 L12.6666667,13.3173269 Z M3.33333333,13.3173269 C3.5715347,13.3173633 3.79165744,13.1904579 3.91076865,12.9844232 C4.02987987,12.7783885 4.02987987,12.5245327 3.91076865,12.318498 C3.79165744,12.1124633 3.5715347,11.9855578 3.33333333,11.9855942 C2.96518335,11.9856505 2.66676872,12.2837526 2.66676872,12.6514606 C2.66676872,13.0191686 2.96518335,13.3172706 3.33333333,13.3173269 L3.33333333,13.3173269 Z', + id: 'ShapeLine-\u5F62\u72B6', + }), + ), + ), + ); +} + +export default ShapeLine; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js similarity index 84% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js index 996cee0c8..6b353d10c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js @@ -61,8 +61,7 @@ function TokenPanel(props) { rx: 0.434782594, }), /*#__PURE__*/ React.createElement('path', { - d: - 'M12.3540059,0 L19.5652174,0 C19.8053412,8.08981097e-16 20,0.194658804 20,0.434782609 L20,7.6459941 C20,7.88611791 19.8053412,8.08077671 19.5652174,8.08077671 C19.4499059,8.08077671 19.3393172,8.03496939 19.2577797,7.95343183 L12.0465682,0.74222034 C11.876775,0.572427169 11.876775,0.297138048 12.0465682,0.127344878 C12.1281057,0.0458073219 12.2386944,-6.44951433e-16 12.3540059,0 Z', + d: 'M12.3540059,0 L19.5652174,0 C19.8053412,8.08981097e-16 20,0.194658804 20,0.434782609 L20,7.6459941 C20,7.88611791 19.8053412,8.08077671 19.5652174,8.08077671 C19.4499059,8.08077671 19.3393172,8.03496939 19.2577797,7.95343183 L12.0465682,0.74222034 C11.876775,0.572427169 11.876775,0.297138048 12.0465682,0.127344878 C12.1281057,0.0458073219 12.2386944,-6.44951433e-16 12.3540059,0 Z', id: 'TokenPanel-\u77E9\u5F62', opacity: 0.400000006, }), diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts index 4321bbec6..f8666e49e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts @@ -1,5 +1,5 @@ -import type { ThemeConfig } from '@tachybase/client'; import type { ReactElement } from 'react'; +import type { ThemeConfig } from '@tachybase/client'; export type Theme = { name: string; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx index 69955e4f1..f1f5401ac 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx @@ -1,6 +1,7 @@ +import React from 'react'; + import { Flexbox } from '@arvinxu/layout-kit'; import { Card } from 'antd'; -import React from 'react'; import Alert from '../component-demos/alert/error'; import Badge from '../component-demos/badge/badge'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx index d6614f922..1b454c921 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx @@ -1,6 +1,7 @@ -import { Card, Space } from 'antd'; import React from 'react'; +import { Card, Space } from 'antd'; + import Button from '../component-demos/button/button-icon'; import Menu from '../component-demos/menu/menu'; import Pagination from '../component-demos/pagination/outline'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx index a339e547e..db64edcb4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx @@ -1,6 +1,8 @@ -import { Card } from 'antd'; import React from 'react'; +import { Flexbox } from '@arvinxu/layout-kit'; +import { Card } from 'antd'; + import Alert from '../component-demos/alert/success'; import Input from '../component-demos/input/success'; import Message from '../component-demos/message/success'; @@ -10,8 +12,6 @@ import Result from '../component-demos/result/success'; import Tag from '../component-demos/tag/success'; import Timeline from '../component-demos/timeline/success'; -import { Flexbox } from '@arvinxu/layout-kit'; - export const Success = () => { return ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx index e9bd6a9ea..ed2bfbd9f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx @@ -1,6 +1,8 @@ -import { Card } from 'antd'; import React from 'react'; +import { Flexbox } from '@arvinxu/layout-kit'; +import { Card } from 'antd'; + import Alert from '../component-demos/alert/warning'; import Badge from '../component-demos/badge/warning'; import Input from '../component-demos/input/warning'; @@ -13,8 +15,6 @@ import Tag from '../component-demos/tag/warning'; import Text from '../component-demos/typography/warningText'; import Title from '../component-demos/typography/warningTitle'; -import { Flexbox } from '@arvinxu/layout-kit'; - export const Warning = () => { return ( diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx index 6900d4e54..0202e38a9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx @@ -1,15 +1,14 @@ -import { Button, Layout, theme as antdTheme, message } from 'antd'; -import classNames from 'classnames'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import type { FilterMode } from './FilterPanel'; -import FilterPanel from './FilterPanel'; -import type { ThemeSelectProps } from './ThemeSelect'; -import ThemeSelect from './ThemeSelect'; + +import { theme as antdTheme, Button, Layout, message } from 'antd'; +import classNames from 'classnames'; + import ComponentPanel from './component-panel'; +import FilterPanel, { type FilterMode } from './FilterPanel'; import { Arrow, CompactTheme, DarkTheme } from './icons'; import type { MutableTheme, PreviewerProps } from './interface'; -import type { TokenPanelRef } from './token-panel'; -import TokenPanel from './token-panel'; +import ThemeSelect, { type ThemeSelectProps } from './ThemeSelect'; +import TokenPanel, { type TokenPanelRef } from './token-panel'; import type { TokenType } from './utils/classifyToken'; import makeStyle from './utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx index a547969d1..5113a34d5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx @@ -1,9 +1,10 @@ +import React, { useMemo, type FC } from 'react'; + import { CaretRightOutlined, QuestionCircleOutlined, RightOutlined, ShrinkOutlined } from '@ant-design/icons'; import { Button, Collapse, Empty, Tooltip } from 'antd'; import classNames from 'classnames'; import useMergedState from 'rc-util/es/hooks/useMergedState'; -import type { FC } from 'react'; -import React, { useMemo } from 'react'; + import { MutableTheme } from '../../../types'; import { Pick } from '../icons'; import type { AliasToken, SelectedToken } from '../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx similarity index 96% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx index d94da0aa8..c13c5df08 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx @@ -1,6 +1,7 @@ -import { ConfigProvider, Segmented, Space, theme as antdTheme } from 'antd'; -import type { FC } from 'react'; -import React from 'react'; +import React, { type FC } from 'react'; + +import { theme as antdTheme, ConfigProvider, Segmented, Space } from 'antd'; + import { MutableTheme } from '../../../types'; import ComponentDemoGroup from '../component-panel/ComponentDemoGroup'; import { useLocale } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx similarity index 90% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx index 68ab4bf94..42b725837 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx @@ -1,6 +1,6 @@ +import React, { type FC } from 'react'; + import { InputNumber, Slider } from 'antd'; -import type { FC } from 'react'; -import React from 'react'; export type InputNumberPlusProps = { value?: number; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx index 428feb1bf..b4167cc9c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx @@ -1,28 +1,27 @@ +import React, { useEffect, useMemo, useState, type FC } from 'react'; +import { StablePopover, type ThemeConfig } from '@tachybase/client'; + import { CaretRightOutlined, ExpandOutlined, QuestionCircleOutlined } from '@ant-design/icons'; -import type { ThemeConfig } from '@tachybase/client'; -import { StablePopover } from '@tachybase/client'; import { Button, Checkbox, Collapse, ConfigProvider, Switch, Tooltip, Typography } from 'antd'; import seed from 'antd/es/theme/themes/seed'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useEffect, useMemo, useState } from 'react'; import { useDebouncyFn } from 'use-debouncy'; + import { MutableTheme } from '../../../types'; import ColorPanel from '../ColorPanel'; -import IconSwitch from '../IconSwitch'; -import type { ThemeCode } from '../hooks/useControlledTheme'; -import { themeMap } from '../hooks/useControlledTheme'; +import { themeMap, type ThemeCode } from '../hooks/useControlledTheme'; import { CompactTheme, DarkTheme, Light, Pick } from '../icons'; +import IconSwitch from '../IconSwitch'; import type { SelectedToken } from '../interface'; import { useLocale } from '../locale'; import type { TokenCategory, TokenGroup } from '../meta/interface'; import getDesignToken from '../utils/getDesignToken'; import makeStyle from '../utils/makeStyle'; +import calcCustomToken from './calcCustomToken'; import InputNumberPlus from './InputNumberPlus'; +import tokenMeta from './token-meta.json'; import TokenDetail from './TokenDetail'; import TokenPreview from './TokenPreview'; -import calcCustomToken from './calcCustomToken'; -import tokenMeta from './token-meta.json'; const { Panel } = Collapse; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx index 4683910f3..c29396e43 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx @@ -1,12 +1,13 @@ +import React, { useMemo, type FC } from 'react'; + import { Tooltip } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useMemo } from 'react'; + import { MutableTheme } from '../../../types'; -import TokenInput from '../TokenInput'; import type { TokenValue } from '../interface'; import { useLocale } from '../locale'; import { mapRelatedAlias } from '../meta/TokenRelation'; +import TokenInput from '../TokenInput'; import deepUpdateObj from '../utils/deepUpdateObj'; import getDesignToken from '../utils/getDesignToken'; import getValueByPath from '../utils/getValueByPath'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx index 6c813515e..b3e28a8e4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx @@ -1,6 +1,7 @@ +import React, { type FC } from 'react'; + import type { ThemeConfig } from 'antd/es/config-provider/context'; -import type { FC } from 'react'; -import React from 'react'; + import getColorBgImg from '../utils/getColorBgImg'; import getDesignToken from '../utils/getDesignToken'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx index 660e878c1..0c46ad2b7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx @@ -1,7 +1,8 @@ +import React, { useEffect, useMemo, useState, type FC } from 'react'; + import { Tabs } from 'antd'; import classNames from 'classnames'; -import type { FC } from 'react'; -import React, { useEffect, useMemo, useState } from 'react'; + import { Theme } from '../../../types'; import type { SelectedToken } from '../interface'; import { useLocale } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx index 554ff480d..e1c3e8b3c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx @@ -1,12 +1,13 @@ +import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; + import { CheckOutlined } from '@ant-design/icons'; -import { Dropdown, Input, Menu, Switch, theme as antdTheme } from 'antd'; +import { theme as antdTheme, Dropdown, Input, Menu, Switch } from 'antd'; import classNames from 'classnames'; import useMergedState from 'rc-util/lib/hooks/useMergedState'; -import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; + import { SearchDropdown } from '../icons'; import type { AliasToken, MutableTheme, TokenValue } from '../interface'; -import type { TokenType } from '../utils/classifyToken'; -import { TOKEN_SORTS, classifyToken, getTypeOfToken } from '../utils/classifyToken'; +import { classifyToken, getTypeOfToken, TOKEN_SORTS, type TokenType } from '../utils/classifyToken'; import getDesignToken from '../utils/getDesignToken'; import makeStyle from '../utils/makeStyle'; import TokenCard, { IconMap, TextMap } from './token-card'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx index a819884f4..b8bf8fadc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx @@ -1,3 +1,5 @@ +import React, { type ReactNode } from 'react'; + import { AlignLeftOutlined, BgColorsOutlined, @@ -17,8 +19,7 @@ import { Collapse, Space } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; import classNames from 'classnames'; import useMergedState from 'rc-util/es/hooks/useMergedState'; -import type { ReactNode } from 'react'; -import React from 'react'; + import { Motion, ShapeLine } from '../../icons'; import type { MutableTheme, TokenValue } from '../../interface'; import type { TokenType } from '../../utils/classifyToken'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx index 8a3a087eb..33fe56dc4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx @@ -1,13 +1,14 @@ +import React, { useEffect, useMemo, type CSSProperties } from 'react'; + import { CaretRightOutlined } from '@ant-design/icons'; import { Collapse, Space } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; import classNames from 'classnames'; -import type { CSSProperties } from 'react'; -import React, { useEffect, useMemo } from 'react'; + import ColorPreview from '../../ColorPreview'; -import TokenInput from '../../TokenInput'; import { Pick } from '../../icons'; import type { MutableTheme, TokenValue } from '../../interface'; +import TokenInput from '../../TokenInput'; import getValueByPath from '../../utils/getValueByPath'; import isColor from '../../utils/isColor'; import makeStyle from '../../utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts index 9de015ffa..4b773e0f8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts @@ -1,4 +1,5 @@ import type { GlobalToken } from 'antd/es/theme/interface'; + import type { TokenValue } from '../interface'; function defineTokenType(types: T[]) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx similarity index 81% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx index 4bba1e6f0..cd184f272 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx @@ -1,10 +1,10 @@ -import type { CSSInterpolation } from '@ant-design/cssinjs'; -import { useStyleRegister } from '@ant-design/cssinjs'; -import { ConfigProvider, theme as antdTheme } from 'antd'; -import type { GlobalToken } from 'antd/es/theme/interface'; import type React from 'react'; import { useContext } from 'react'; +import { useStyleRegister, type CSSInterpolation } from '@ant-design/cssinjs'; +import { theme as antdTheme, ConfigProvider } from 'antd'; +import type { GlobalToken } from 'antd/es/theme/interface'; + const { ConfigContext } = ConfigProvider; const makeStyle = diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/InitializeTheme.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/InitializeTheme.tsx index 873e2c692..84725bcd2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/InitializeTheme.tsx @@ -1,7 +1,9 @@ +import React, { useEffect, useMemo, useRef } from 'react'; import { defaultTheme as presetTheme, useAPIClient, useCurrentUserContext, useGlobalTheme } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; + import { Spin } from 'antd'; -import React, { useEffect, useMemo, useRef } from 'react'; + import { changeAlgorithmFromFunctionToString } from '../utils/changeAlgorithmFromFunctionToString'; import { changeAlgorithmFromStringToFunction } from '../utils/changeAlgorithmFromStringToFunction'; import { useThemeListContext } from './ThemeListProvider'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeCard.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeCard.tsx index 0e6340658..514a60d39 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeCard.tsx @@ -1,8 +1,10 @@ -import { DeleteOutlined, EditOutlined, EllipsisOutlined } from '@ant-design/icons'; +import React, { useCallback, useMemo } from 'react'; import { compatOldTheme, useAPIClient, useCurrentUserContext, useGlobalTheme, useToken } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; -import { App, Card, ConfigProvider, Dropdown, Space, Switch, Tag, message } from 'antd'; -import React, { useCallback, useMemo } from 'react'; + +import { DeleteOutlined, EditOutlined, EllipsisOutlined } from '@ant-design/icons'; +import { App, Card, ConfigProvider, Dropdown, message, Space, Switch, Tag } from 'antd'; + import { ThemeConfig, ThemeItem } from '../../types'; import { Primary } from '../antd-token-previewer'; import { useUpdateThemeSettings } from '../hooks/useUpdateThemeSettings'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeList.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeList.tsx index d1028881a..4d53cef59 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeList.tsx @@ -1,7 +1,9 @@ +import React, { useCallback, useEffect } from 'react'; import { useToken } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; + import { Space } from 'antd'; -import React, { useCallback, useEffect } from 'react'; + import ThemeCard from './ThemeCard'; import { useThemeListContext } from './ThemeListProvider'; import ToEditTheme from './ToEditTheme'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx index 047d87bc6..951ac6610 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx @@ -1,6 +1,7 @@ +import React, { createContext, useMemo } from 'react'; import { ReturnTypeOfUseRequest, useRequest } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; -import React, { createContext, useMemo } from 'react'; + import { ThemeItem } from '../../types'; import { changeAlgorithmFromStringToFunction } from '../utils/changeAlgorithmFromStringToFunction'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ToEditTheme.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ToEditTheme.tsx index 418b42fc9..270bed306 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/ToEditTheme.tsx @@ -1,7 +1,9 @@ -import { PlusOutlined } from '@ant-design/icons'; -import { compatOldTheme, defaultTheme, useGlobalTheme, useToken } from '@tachybase/client'; -import { App, Button, Space } from 'antd'; import React, { useCallback } from 'react'; +import { compatOldTheme, defaultTheme, useGlobalTheme, useToken } from '@tachybase/client'; + +import { PlusOutlined } from '@ant-design/icons'; +import { App, Button, Space } from 'antd'; + import { useTranslation } from '../locale'; import { useThemeEditorContext } from './ThemeEditorProvider'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/components/theme-editor/index.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/components/theme-editor/index.tsx diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx index bd363acd2..349289ea5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx @@ -1,7 +1,9 @@ +import React, { useEffect, useMemo } from 'react'; import { SelectWithTitle, useAPIClient, useCurrentUserContext, useSystemSettings } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; + import { MenuProps } from 'antd'; -import React, { useEffect, useMemo } from 'react'; + import { useThemeId } from '../components/InitializeTheme'; import { useThemeListContext } from '../components/ThemeListProvider'; import { useTranslation } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx index 2af1070a5..f5610d779 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx @@ -1,6 +1,6 @@ +import { useCallback } from 'react'; import { useAPIClient, useCurrentUserContext, useSystemSettings } from '@tachybase/client'; import { error } from '@tachybase/utils/client'; -import { useCallback } from 'react'; export function useUpdateThemeSettings() { const api = useAPIClient(); diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/index.tsx similarity index 97% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/index.tsx index 47fe44638..53821cf14 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/index.tsx @@ -1,12 +1,14 @@ -import { Plugin, createStyles, defaultTheme, useCurrentUserSettingsMenu, useGlobalTheme } from '@tachybase/client'; +import React, { useEffect, useMemo } from 'react'; +import { createStyles, defaultTheme, Plugin, useCurrentUserSettingsMenu, useGlobalTheme } from '@tachybase/client'; + import { ConfigProvider } from 'antd'; import _ from 'lodash'; -import React, { useEffect, useMemo } from 'react'; + import InitializeTheme from './components/InitializeTheme'; +import CustomTheme from './components/theme-editor'; import { ThemeEditorProvider } from './components/ThemeEditorProvider'; import ThemeList from './components/ThemeList'; import { ThemeListProvider } from './components/ThemeListProvider'; -import CustomTheme from './components/theme-editor'; import { useThemeSettings } from './hooks/useThemeSettings'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx index 57712d585..00c0f8c8b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx @@ -1,5 +1,6 @@ import { theme as antdTheme } from 'antd'; import _ from 'lodash'; + import { ThemeConfig } from '../../types'; export function changeAlgorithmFromFunctionToString(themeConfig: any) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx b/packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx rename to packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx index 26f97be5a..c70da099d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx @@ -1,5 +1,6 @@ import { theme } from 'antd'; import _ from 'lodash'; + import { ThemeItem } from '../../types'; /** diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-theme-editor/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-theme-editor/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/locale/fr-FR.json b/packages/plugins/@tachybase/plugin-theme-editor/src/locale/fr-FR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/locale/fr-FR.json rename to packages/plugins/@tachybase/plugin-theme-editor/src/locale/fr-FR.json diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-theme-editor/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-theme-editor/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-theme-editor/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-theme-editor/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/builtinThemes.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/builtinThemes.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/.gitkeep b/packages/plugins/@tachybase/plugin-theme-editor/src/server/collections/.gitkeep similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/.gitkeep rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/collections/.gitkeep diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/collections/theme-config.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/collections/theme-config.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts index faf5e4f43..899070060 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts @@ -1,6 +1,7 @@ import { Model } from '@tachybase/database'; import { Migration } from '@tachybase/server'; import { uid } from '@tachybase/utils'; + import { compact, compactDark, dark, defaultTheme } from '../builtinThemes'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/server/plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/server/plugin.ts index b820fe21a..30d091709 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/server/plugin.ts @@ -1,5 +1,6 @@ -import { InstallOptions, Plugin } from '@tachybase/server'; import path, { resolve } from 'path'; +import { InstallOptions, Plugin } from '@tachybase/server'; + import { compact, compactDark, dark, defaultTheme } from './builtinThemes'; export class ThemeEditorPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts b/packages/plugins/@tachybase/plugin-theme-editor/src/types.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-theme-editor/src/types.ts rename to packages/plugins/@tachybase/plugin-theme-editor/src/types.ts index ffe1190c0..4a9cacb2d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts +++ b/packages/plugins/@tachybase/plugin-theme-editor/src/types.ts @@ -1,5 +1,6 @@ -import type { ThemeConfig as Config } from '@tachybase/client'; import type { ReactElement } from 'react'; +import type { ThemeConfig as Config } from '@tachybase/client'; + export type ThemeConfig = Config; export interface ThemeItem { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/.npmignore b/packages/plugins/@tachybase/plugin-ui-schema-storage/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/.npmignore rename to packages/plugins/@tachybase/plugin-ui-schema-storage/.npmignore diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/README.md b/packages/plugins/@tachybase/plugin-ui-schema-storage/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/README.md rename to packages/plugins/@tachybase/plugin-ui-schema-storage/README.md diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/README.zh-CN.md b/packages/plugins/@tachybase/plugin-ui-schema-storage/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-ui-schema-storage/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/client.d.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/client.d.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/client.js b/packages/plugins/@tachybase/plugin-ui-schema-storage/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/client.js rename to packages/plugins/@tachybase/plugin-ui-schema-storage/client.js diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/package.json b/packages/plugins/@tachybase/plugin-ui-schema-storage/package.json similarity index 85% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/package.json rename to packages/plugins/@tachybase/plugin-ui-schema-storage/package.json index 7f63c3346..13ff3fe28 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/package.json +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-ui-schema-storage", + "name": "@tachybase/plugin-ui-schema-storage", "displayName": "UI schema storage", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides centralized UI schema storage service.", "keywords": [ "System & security" @@ -14,12 +14,12 @@ "lodash": "4.17.21" }, "peerDependencies": { - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-users": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/cache": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-users": "workspace:*", "@tachybase/resourcer": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/server.d.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/server.d.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/server.js b/packages/plugins/@tachybase/plugin-ui-schema-storage/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/server.js rename to packages/plugins/@tachybase/plugin-ui-schema-storage/server.js diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/client/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/client/index.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/index.ts index ea38e0f2d..bc52be1e3 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/index.ts @@ -1,4 +1,5 @@ -export * from './server'; import { UiSchemaStoragePlugin } from './server'; +export * from './server'; + export default UiSchemaStoragePlugin; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts index 43f417b5b..3cb271184 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts @@ -1,5 +1,5 @@ import { Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('action test', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts index 74d782185..3db8f2bcf 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts @@ -1,8 +1,8 @@ -import Migration from '../../migrations/20230330214649-filter-form-block'; - import { Database } from '@tachybase/database'; import { createMockServer, MockServer } from '@tachybase/test'; + import { UiSchemaRepository } from '../..'; +import Migration from '../../migrations/20230330214649-filter-form-block'; describe.skip('migration-20230330214649-filter-form-block', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts index 888594827..e0acd9d8f 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts @@ -1,5 +1,5 @@ import { BelongsToManyRepository, Database } from '@tachybase/database'; -import UiSchemaStoragePlugin, { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; +import UiSchemaStoragePlugin, { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; import { createMockServer, MockServer } from '@tachybase/test'; describe('server hooks', () => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts index b196e2187..0016f768f 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts @@ -1,6 +1,7 @@ import { Database } from '@tachybase/database'; -import UiSchemaStoragePlugin, { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; +import UiSchemaStoragePlugin, { UiSchemaRepository } from '@tachybase/plugin-ui-schema-storage'; import { createMockServer, MockServer } from '@tachybase/test'; + import { vi } from 'vitest'; describe('server hooks', () => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts similarity index 97% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts index 56396b2c6..ee846b5e7 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts @@ -1,5 +1,6 @@ import { Collection, Database } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; + import { UiSchemaRepository } from '..'; describe('ui schema model', () => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts index 557809cf3..b8d8809e9 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts @@ -1,6 +1,7 @@ import { Cache } from '@tachybase/cache'; import { Database } from '@tachybase/database'; import { createMockServer, MockServer } from '@tachybase/test'; + import UiSchemaRepository, { GetJsonSchemaOptions, GetPropertiesOptions } from '../repository'; describe('ui_schema repository with cache', () => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts index 6ea9749ec..607fcd7ce 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts @@ -1,5 +1,6 @@ import { Collection, Database } from '@tachybase/database'; import { createMockServer, MockServer } from '@tachybase/test'; + import { SchemaNode } from '../dao/ui_schema_node_dao'; import UiSchemaRepository from '../repository'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts index 9f5ff5812..9c8705e99 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts @@ -1,6 +1,8 @@ -import { ISchema } from '@formily/json-schema'; import { Database } from '@tachybase/database'; import { createMockServer, MockServer } from '@tachybase/test'; + +import { ISchema } from '@formily/json-schema'; + import { UiSchemaRepository } from '..'; describe('ui-schema', () => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts index 4e4d82ab5..2f05fbbc1 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts @@ -1,6 +1,8 @@ import { Context } from '@tachybase/actions'; import { ActionParams } from '@tachybase/resourcer'; + import lodash from 'lodash'; + import UiSchemaRepository, { GetJsonSchemaOptions, GetPropertiesOptions } from '../repository'; const getRepositoryFromCtx = (ctx: Context) => { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_dao.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/dao/ui_schema_dao.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_dao.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/dao/ui_schema_dao.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/helper.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/helper.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/index.ts index 248e3b132..8dcc81f71 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/index.ts @@ -1,4 +1,5 @@ import { UiSchemaStoragePlugin } from './server'; + export * from './repository'; export * from './server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts index aa2919649..0c3cb4b02 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts @@ -1,9 +1,11 @@ -import { Schema } from '@formily/json-schema'; import { Migration } from '@tachybase/server'; import { uid } from '@tachybase/utils'; -import UiSchemaRepository from '../repository'; + +import { Schema } from '@formily/json-schema'; import _ from 'lodash'; +import UiSchemaRepository from '../repository'; + export default class extends Migration { appVersion = '<0.9.3-alpha.1'; async up() { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts index 7ebf90cd4..a659a7199 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts @@ -1,4 +1,5 @@ import { Migration } from '@tachybase/server'; + import UiSchemaRepository from '../repository'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/model.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/model.ts index 160117acb..ffa310ab4 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/model.ts @@ -1,4 +1,5 @@ import { MagicAttributeModel } from '@tachybase/database'; + import { HookType } from './server-hooks'; class UiSchemaModel extends MagicAttributeModel { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/repository.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/repository.ts index 3783a2afa..a692b0970 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/repository.ts @@ -1,7 +1,9 @@ import { Cache } from '@tachybase/cache'; import { Repository, Transaction, Transactionable } from '@tachybase/database'; import { uid } from '@tachybase/utils'; + import lodash from 'lodash'; + import { ChildOptions, SchemaNode, TargetPosition } from './dao/ui_schema_node_dao'; export interface GetJsonSchemaOptions { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/index.ts index 64c8590ae..927a13ff6 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/index.ts @@ -1,4 +1,5 @@ import { Database } from '@tachybase/database'; + import { hooks } from './hooks'; import { ServerHookModel } from './model'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/model.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/model.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/model.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server-hooks/model.ts diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server.ts index 0b6ed2131..6a03a0316 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/server/server.ts @@ -1,7 +1,8 @@ +import path, { resolve } from 'path'; import { MagicAttributeModel } from '@tachybase/database'; import { Plugin } from '@tachybase/server'; import { uid } from '@tachybase/utils'; -import path, { resolve } from 'path'; + import { uiSchemaActions } from './actions/ui-schema-action'; import { UiSchemaModel } from './model'; import UiSchemaRepository from './repository'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts b/packages/plugins/@tachybase/plugin-ui-schema-storage/src/swagger/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts rename to packages/plugins/@tachybase/plugin-ui-schema-storage/src/swagger/index.ts diff --git a/packages/plugins/@nocobase/plugin-users/.npmignore b/packages/plugins/@tachybase/plugin-users/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-users/.npmignore rename to packages/plugins/@tachybase/plugin-users/.npmignore diff --git a/packages/plugins/@nocobase/plugin-users/README.md b/packages/plugins/@tachybase/plugin-users/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-users/README.md rename to packages/plugins/@tachybase/plugin-users/README.md diff --git a/packages/plugins/@nocobase/plugin-users/README.zh-CN.md b/packages/plugins/@tachybase/plugin-users/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-users/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-users/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-users/client.d.ts b/packages/plugins/@tachybase/plugin-users/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/client.d.ts rename to packages/plugins/@tachybase/plugin-users/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-users/client.js b/packages/plugins/@tachybase/plugin-users/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-users/client.js rename to packages/plugins/@tachybase/plugin-users/client.js diff --git a/packages/plugins/@nocobase/plugin-users/package.json b/packages/plugins/@tachybase/plugin-users/package.json similarity index 87% rename from packages/plugins/@nocobase/plugin-users/package.json rename to packages/plugins/@tachybase/plugin-users/package.json index 50f707ea2..92db5203c 100644 --- a/packages/plugins/@nocobase/plugin-users/package.json +++ b/packages/plugins/@tachybase/plugin-users/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-users", + "name": "@tachybase/plugin-users", "displayName": "Users", - "version": "0.21.33", + "version": "0.21.34", "description": "Provides basic user model, as well as created by and updated by fields.", "keywords": [ "Users & permissions" @@ -17,12 +17,12 @@ "react-i18next": "^11.15.1" }, "peerDependencies": { - "@nocobase/plugin-acl": "workspace:*", - "@nocobase/plugin-auth": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/cache": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/database": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", "@tachybase/resourcer": "workspace:*", "@tachybase/server": "workspace:*", "@tachybase/test": "workspace:*", diff --git a/packages/plugins/@nocobase/plugin-users/server.d.ts b/packages/plugins/@tachybase/plugin-users/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/server.d.ts rename to packages/plugins/@tachybase/plugin-users/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-users/server.js b/packages/plugins/@tachybase/plugin-users/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-users/server.js rename to packages/plugins/@tachybase/plugin-users/server.js diff --git a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx b/packages/plugins/@tachybase/plugin-users/src/client/PasswordField.tsx similarity index 89% rename from packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx rename to packages/plugins/@tachybase/plugin-users/src/client/PasswordField.tsx index 11992ca5d..dd8d5f5ea 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx +++ b/packages/plugins/@tachybase/plugin-users/src/client/PasswordField.tsx @@ -1,8 +1,9 @@ import React, { useEffect } from 'react'; -import { Input, Row, Col, Button } from 'antd'; import { Password, useActionContext } from '@tachybase/client'; -import { useField } from '@tachybase/schema'; -import { Field } from '@tachybase/schema'; +import { Field, useField } from '@tachybase/schema'; + +import { Button, Col, Input, Row } from 'antd'; + import { useUsersTranslation } from './locale'; import { generatePassword } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx b/packages/plugins/@tachybase/plugin-users/src/client/RoleUsersManager.tsx similarity index 98% rename from packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx rename to packages/plugins/@tachybase/plugin-users/src/client/RoleUsersManager.tsx index ef39039e4..05382e1fd 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx +++ b/packages/plugins/@tachybase/plugin-users/src/client/RoleUsersManager.tsx @@ -1,20 +1,22 @@ import React, { useContext, useEffect, useMemo, useRef } from 'react'; -import { App } from 'antd'; import { CollectionProvider_deprecated, ResourceActionContext, ResourceActionProvider, SchemaComponent, - useAPIClient, useActionContext, + useAPIClient, useRecord, useRequest, useResourceActionContext, } from '@tachybase/client'; -import { RolesManagerContext } from '@nocobase/plugin-acl/client'; +import { RolesManagerContext } from '@tachybase/plugin-acl/client'; + +import { App } from 'antd'; + +import { useFilterActionProps } from './hooks'; import { useUsersTranslation } from './locale'; import { getRoleUsersSchema, userCollection } from './schemas/users'; -import { useFilterActionProps } from './hooks'; const useRemoveUser = () => { const api = useAPIClient(); diff --git a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx b/packages/plugins/@tachybase/plugin-users/src/client/UserRolesField.tsx similarity index 79% rename from packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx rename to packages/plugins/@tachybase/plugin-users/src/client/UserRolesField.tsx index 332e3561e..38c283a96 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx +++ b/packages/plugins/@tachybase/plugin-users/src/client/UserRolesField.tsx @@ -1,9 +1,10 @@ import React from 'react'; -import { useField, Schema } from '@tachybase/schema'; -import { Field } from '@tachybase/schema'; -import { useUsersTranslation } from './locale'; +import { Field, Schema, useField } from '@tachybase/schema'; + import { Tag } from 'antd'; +import { useUsersTranslation } from './locale'; + export const UserRolesField: React.FC = () => { const { t } = useUsersTranslation(); const field = useField(); diff --git a/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx b/packages/plugins/@tachybase/plugin-users/src/client/UsersManagement.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx rename to packages/plugins/@tachybase/plugin-users/src/client/UsersManagement.tsx index 0d19a7fd3..79896e8f1 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx +++ b/packages/plugins/@tachybase/plugin-users/src/client/UsersManagement.tsx @@ -1,11 +1,13 @@ -import { SchemaComponent, SchemaComponentContext, useSchemaComponentContext } from '@tachybase/client'; import React from 'react'; -import { usersSchema } from './schemas/users'; +import { SchemaComponent, SchemaComponentContext, useSchemaComponentContext } from '@tachybase/client'; + import { Card } from 'antd'; -import { UserRolesField } from './UserRolesField'; -import { useUsersTranslation } from './locale'; + import { useFilterActionProps } from './hooks'; +import { useUsersTranslation } from './locale'; import { PasswordField } from './PasswordField'; +import { usersSchema } from './schemas/users'; +import { UserRolesField } from './UserRolesField'; export const UsersManagement: React.FC = () => { const { t } = useUsersTranslation(); diff --git a/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts b/packages/plugins/@tachybase/plugin-users/src/client/hooks.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/client/hooks.ts rename to packages/plugins/@tachybase/plugin-users/src/client/hooks.ts index 4f87f4ada..8a49d008c 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts +++ b/packages/plugins/@tachybase/plugin-users/src/client/hooks.ts @@ -1,10 +1,10 @@ +import { useContext } from 'react'; import { CollectionContext, useFilterFieldOptions, useFilterFieldProps, useResourceActionContext, } from '@tachybase/client'; -import { useContext } from 'react'; export const useFilterActionProps = () => { const collection = useContext(CollectionContext); diff --git a/packages/plugins/@nocobase/plugin-users/src/client/index.ts b/packages/plugins/@tachybase/plugin-users/src/client/index.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-users/src/client/index.ts rename to packages/plugins/@tachybase/plugin-users/src/client/index.ts index a5db48bd2..9ae1caea4 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/index.ts +++ b/packages/plugins/@tachybase/plugin-users/src/client/index.ts @@ -1,7 +1,8 @@ import { Plugin, tval } from '@tachybase/client'; -import { UsersManagement } from './UsersManagement'; -import ACLPlugin from '@nocobase/plugin-acl/client'; +import ACLPlugin from '@tachybase/plugin-acl/client'; + import { RoleUsersManager } from './RoleUsersManager'; +import { UsersManagement } from './UsersManagement'; class PluginUsersClient extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-users/src/client/locale.ts b/packages/plugins/@tachybase/plugin-users/src/client/locale.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/client/locale.ts rename to packages/plugins/@tachybase/plugin-users/src/client/locale.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts b/packages/plugins/@tachybase/plugin-users/src/client/schemas/users.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts rename to packages/plugins/@tachybase/plugin-users/src/client/schemas/users.ts index ea7bfc913..2f434ded6 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts +++ b/packages/plugins/@tachybase/plugin-users/src/client/schemas/users.ts @@ -1,7 +1,6 @@ -import { ISchema } from '@tachybase/schema'; -import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@tachybase/client'; import { useEffect } from 'react'; -import { uid } from '@tachybase/schema'; +import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@tachybase/client'; +import { ISchema, uid } from '@tachybase/schema'; export const userCollection = { name: 'users', diff --git a/packages/plugins/@nocobase/plugin-users/src/client/utils.ts b/packages/plugins/@tachybase/plugin-users/src/client/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/client/utils.ts rename to packages/plugins/@tachybase/plugin-users/src/client/utils.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/index.ts b/packages/plugins/@tachybase/plugin-users/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/index.ts rename to packages/plugins/@tachybase/plugin-users/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-users/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-users/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-users/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-users/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-users/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/actions.test.ts similarity index 95% rename from packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts rename to packages/plugins/@tachybase/plugin-users/src/server/__tests__/actions.test.ts index 8f8335e0e..2a2f89370 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/actions.test.ts @@ -10,7 +10,7 @@ describe('actions', () => { let pluginUser; beforeEach(async () => { - process.env.INIT_ROOT_EMAIL = 'test@nocobase.com'; + process.env.INIT_ROOT_EMAIL = 'test@tachybase.com'; process.env.INIT_ROOT_PASSWORD = '123456'; process.env.INIT_ROOT_NICKNAME = 'Test'; app = await createMockServer({ diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/fields.test.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts rename to packages/plugins/@tachybase/plugin-users/src/server/__tests__/fields.test.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/model.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts rename to packages/plugins/@tachybase/plugin-users/src/server/__tests__/model.test.ts index 6d5d5d6b2..149f2fe92 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/model.test.ts @@ -1,5 +1,6 @@ import Database from '@tachybase/database'; import { createMockServer, MockServer } from '@tachybase/test'; + import { UserModel } from '../models/UserModel'; describe('models', () => { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/role-users.test.ts similarity index 95% rename from packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts rename to packages/plugins/@tachybase/plugin-users/src/server/__tests__/role-users.test.ts index 6691e47bb..0c8bcb701 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/role-users.test.ts @@ -1,5 +1,5 @@ import { Database, Repository } from '@tachybase/database'; -import { MockServer, createMockServer } from '@tachybase/test'; +import { createMockServer, MockServer } from '@tachybase/test'; describe('actions', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts b/packages/plugins/@tachybase/plugin-users/src/server/__tests__/utils.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts rename to packages/plugins/@tachybase/plugin-users/src/server/__tests__/utils.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts b/packages/plugins/@tachybase/plugin-users/src/server/actions/users.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts rename to packages/plugins/@tachybase/plugin-users/src/server/actions/users.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts b/packages/plugins/@tachybase/plugin-users/src/server/collections/users.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts rename to packages/plugins/@tachybase/plugin-users/src/server/collections/users.ts index 38a5c0aab..7e33d2d03 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/collections/users.ts @@ -1,7 +1,7 @@ import { defineCollection } from '@tachybase/database'; export default defineCollection({ - origin: '@nocobase/plugin-users', + origin: '@tachybase/plugin-users', dumpRules: { group: 'user', }, diff --git a/packages/plugins/@nocobase/plugin-users/src/server/index.ts b/packages/plugins/@tachybase/plugin-users/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-users/src/server/index.ts rename to packages/plugins/@tachybase/plugin-users/src/server/index.ts index 7125a3124..0f89217a1 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/index.ts @@ -1,5 +1,6 @@ // @ts-ignore import { name } from '../../package.json'; + export { default } from './server'; export const namespace = name; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/en-US.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/en-US.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/es-ES.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/es-ES.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/fr-FR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/fr-FR.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/ja-JP.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/ja-JP.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/pt-BR.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/pt-BR.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-users/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-users/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802170800-add-username.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802170800-add-username.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802183100-update-username.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802183100-update-username.ts index c60769ddf..fcf80b82a 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20230802183100-update-username.ts @@ -6,7 +6,7 @@ export default class UpdateUserNameMigration extends Migration { const repo = this.context.db.getRepository('users'); const user = await repo.findOne({ filter: { - email: 'admin@nocobase.com', + email: 'admin@tachybase.com', username: null, }, }); diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts b/packages/plugins/@tachybase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts rename to packages/plugins/@tachybase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts b/packages/plugins/@tachybase/plugin-users/src/server/models/UserModel.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts rename to packages/plugins/@tachybase/plugin-users/src/server/models/UserModel.ts diff --git a/packages/plugins/@nocobase/plugin-users/src/server/server.ts b/packages/plugins/@tachybase/plugin-users/src/server/server.ts similarity index 98% rename from packages/plugins/@nocobase/plugin-users/src/server/server.ts rename to packages/plugins/@tachybase/plugin-users/src/server/server.ts index 5c3e06ba6..5bcef303a 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/server.ts +++ b/packages/plugins/@tachybase/plugin-users/src/server/server.ts @@ -1,10 +1,10 @@ +import { resolve } from 'path'; +import { Cache } from '@tachybase/cache'; import { Collection, Op } from '@tachybase/database'; import { Plugin } from '@tachybase/server'; import { parse } from '@tachybase/utils'; -import { resolve } from 'path'; import * as actions from './actions/users'; -import { Cache } from '@tachybase/cache'; import { UserModel } from './models/UserModel'; export default class PluginUsersServer extends Plugin { @@ -149,7 +149,7 @@ export default class PluginUsersServer extends Plugin { getInstallingData(options: any = {}) { const { INIT_ROOT_NICKNAME, INIT_ROOT_PASSWORD, INIT_ROOT_EMAIL, INIT_ROOT_USERNAME } = process.env; const { - rootEmail = INIT_ROOT_EMAIL || 'admin@nocobase.com', + rootEmail = INIT_ROOT_EMAIL || 'admin@tachybase.com', rootPassword = INIT_ROOT_PASSWORD || 'admin123', rootNickname = INIT_ROOT_NICKNAME || 'Super Admin', rootUsername = INIT_ROOT_USERNAME || 'nocobase', diff --git a/packages/plugins/@nocobase/plugin-users/src/swagger/index.json b/packages/plugins/@tachybase/plugin-users/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-users/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-users/src/swagger/index.json diff --git a/packages/plugins/@nocobase/plugin-verification/.npmignore b/packages/plugins/@tachybase/plugin-verification/.npmignore similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/.npmignore rename to packages/plugins/@tachybase/plugin-verification/.npmignore diff --git a/packages/plugins/@nocobase/plugin-verification/README.md b/packages/plugins/@tachybase/plugin-verification/README.md similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/README.md rename to packages/plugins/@tachybase/plugin-verification/README.md diff --git a/packages/plugins/@nocobase/plugin-verification/README.zh-CN.md b/packages/plugins/@tachybase/plugin-verification/README.zh-CN.md similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/README.zh-CN.md rename to packages/plugins/@tachybase/plugin-verification/README.zh-CN.md diff --git a/packages/plugins/@nocobase/plugin-verification/client.d.ts b/packages/plugins/@tachybase/plugin-verification/client.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/client.d.ts rename to packages/plugins/@tachybase/plugin-verification/client.d.ts diff --git a/packages/plugins/@nocobase/plugin-verification/client.js b/packages/plugins/@tachybase/plugin-verification/client.js similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/client.js rename to packages/plugins/@tachybase/plugin-verification/client.js diff --git a/packages/plugins/@nocobase/plugin-verification/package.json b/packages/plugins/@tachybase/plugin-verification/package.json similarity index 94% rename from packages/plugins/@nocobase/plugin-verification/package.json rename to packages/plugins/@tachybase/plugin-verification/package.json index 0224b9862..705046764 100644 --- a/packages/plugins/@nocobase/plugin-verification/package.json +++ b/packages/plugins/@tachybase/plugin-verification/package.json @@ -1,7 +1,7 @@ { - "name": "@nocobase/plugin-verification", + "name": "@tachybase/plugin-verification", "displayName": "Verification", - "version": "0.21.33", + "version": "0.21.34", "description": "verification setting.", "keywords": [ "Authentication" diff --git a/packages/plugins/@nocobase/plugin-verification/server.d.ts b/packages/plugins/@tachybase/plugin-verification/server.d.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/server.d.ts rename to packages/plugins/@tachybase/plugin-verification/server.d.ts diff --git a/packages/plugins/@nocobase/plugin-verification/server.js b/packages/plugins/@tachybase/plugin-verification/server.js similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/server.js rename to packages/plugins/@tachybase/plugin-verification/server.js diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx b/packages/plugins/@tachybase/plugin-verification/src/client/ProviderOptions.tsx similarity index 85% rename from packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx rename to packages/plugins/@tachybase/plugin-verification/src/client/ProviderOptions.tsx index 8311a21ca..2eb234dac 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx +++ b/packages/plugins/@tachybase/plugin-verification/src/client/ProviderOptions.tsx @@ -1,7 +1,6 @@ -import { FormLayout } from '@tachybase/components'; -import { Field } from '@tachybase/schema'; -import { RecursionField, Schema, observer, useField, useForm } from '@tachybase/schema'; import React, { useEffect, useState } from 'react'; +import { FormLayout } from '@tachybase/components'; +import { Field, observer, RecursionField, Schema, useField, useForm } from '@tachybase/schema'; import providerTypes from './providerTypes'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx b/packages/plugins/@tachybase/plugin-verification/src/client/VerificationProviders.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx rename to packages/plugins/@tachybase/plugin-verification/src/client/VerificationProviders.tsx index c119111d7..83e1be18e 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx +++ b/packages/plugins/@tachybase/plugin-verification/src/client/VerificationProviders.tsx @@ -1,9 +1,10 @@ -import { SchemaComponent } from '@tachybase/client'; import React from 'react'; +import { SchemaComponent } from '@tachybase/client'; + import { Card } from 'antd'; -import providers from './schemas/providers'; import ProviderOptions from './ProviderOptions'; +import providers from './schemas/providers'; export function VerificationProviders() { return ( diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx b/packages/plugins/@tachybase/plugin-verification/src/client/index.tsx similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/client/index.tsx rename to packages/plugins/@tachybase/plugin-verification/src/client/index.tsx index c0b4738ef..2864859d2 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-verification/src/client/index.tsx @@ -1,6 +1,7 @@ import { Plugin } from '@tachybase/client'; -import { VerificationProviders } from './VerificationProviders'; + import { NAMESPACE } from './locale'; +import { VerificationProviders } from './VerificationProviders'; export class VerificationPlugin extends Plugin { async load() { diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-verification/src/client/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/client/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts b/packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/index.ts index 694362238..62aee38e4 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/index.ts @@ -1,5 +1,6 @@ import { ISchema } from '@tachybase/schema'; import { Registry } from '@tachybase/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/@tachybase/plugin-verification/src/client/providerTypes/sms-aliyun.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts rename to packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/sms-aliyun.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts b/packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/sms-tencent.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts rename to packages/plugins/@tachybase/plugin-verification/src/client/providerTypes/sms-tencent.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts b/packages/plugins/@tachybase/plugin-verification/src/client/schemas/providers.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts rename to packages/plugins/@tachybase/plugin-verification/src/client/schemas/providers.ts index e2b9c0d3d..56ceeab5d 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/client/schemas/providers.ts @@ -1,5 +1,6 @@ -import { uid } from '@tachybase/schema'; import { useActionContext, useRequest } from '@tachybase/client'; +import { uid } from '@tachybase/schema'; + import { NAMESPACE } from '../locale'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-verification/src/index.ts b/packages/plugins/@tachybase/plugin-verification/src/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/index.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/locale/en-US.json b/packages/plugins/@tachybase/plugin-verification/src/locale/en-US.json similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/locale/en-US.json rename to packages/plugins/@tachybase/plugin-verification/src/locale/en-US.json diff --git a/packages/plugins/@nocobase/plugin-verification/src/locale/ko_KR.json b/packages/plugins/@tachybase/plugin-verification/src/locale/ko_KR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/locale/ko_KR.json rename to packages/plugins/@tachybase/plugin-verification/src/locale/ko_KR.json diff --git a/packages/plugins/@nocobase/plugin-verification/src/locale/pt-BR.json b/packages/plugins/@tachybase/plugin-verification/src/locale/pt-BR.json similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/locale/pt-BR.json rename to packages/plugins/@tachybase/plugin-verification/src/locale/pt-BR.json diff --git a/packages/plugins/@nocobase/plugin-verification/src/locale/zh-CN.json b/packages/plugins/@tachybase/plugin-verification/src/locale/zh-CN.json similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/locale/zh-CN.json rename to packages/plugins/@tachybase/plugin-verification/src/locale/zh-CN.json diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts b/packages/plugins/@tachybase/plugin-verification/src/server/Plugin.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/Plugin.ts index 69adfaaa2..1363f86b9 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/Plugin.ts @@ -1,12 +1,11 @@ import path from 'path'; - import { Context } from '@tachybase/actions'; import { Op } from '@tachybase/database'; import { HandlerType } from '@tachybase/resourcer'; import { Plugin } from '@tachybase/server'; import { Registry } from '@tachybase/utils'; -import { Provider, namespace } from '.'; +import { namespace, Provider } from '.'; import initActions from './actions'; import { CODE_STATUS_UNUSED, CODE_STATUS_USED, PROVIDER_TYPE_SMS_ALIYUN } from './constants'; import { zhCN } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts b/packages/plugins/@tachybase/plugin-verification/src/server/__tests__/Plugin.test.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/__tests__/Plugin.test.ts index b6a30ac8b..a65e5464a 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/__tests__/Plugin.test.ts @@ -1,9 +1,8 @@ import Database from '@tachybase/database'; import { MockServer } from '@tachybase/test'; -import Plugin, { Provider } from '..'; - import { getApp, sleep } from '.'; +import Plugin, { Provider } from '..'; describe('verification > Plugin', () => { let app: MockServer; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts b/packages/plugins/@tachybase/plugin-verification/src/server/__tests__/collections/authors.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/__tests__/collections/authors.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts b/packages/plugins/@tachybase/plugin-verification/src/server/__tests__/index.ts similarity index 90% rename from packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/__tests__/index.ts index f6c92923f..8a517e248 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/__tests__/index.ts @@ -1,7 +1,6 @@ -import { MockServer, createMockServer } from '@tachybase/test'; import path from 'path'; - import { ApplicationOptions } from '@tachybase/server'; +import { createMockServer, MockServer } from '@tachybase/test'; export function sleep(ms: number) { return new Promise((resolve) => { diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts b/packages/plugins/@tachybase/plugin-verification/src/server/actions/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/actions/index.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts b/packages/plugins/@tachybase/plugin-verification/src/server/actions/verifications.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/actions/verifications.ts index 5d4196429..b104ef9c3 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/actions/verifications.ts @@ -1,8 +1,10 @@ -import actions, { Context, Next } from '@tachybase/actions'; -import { Op } from '@tachybase/database'; -import dayjs from 'dayjs'; import { randomInt, randomUUID } from 'crypto'; import { promisify } from 'util'; +import actions, { Context, Next } from '@tachybase/actions'; +import { Op } from '@tachybase/database'; + +import dayjs from 'dayjs'; + import Plugin, { namespace } from '..'; import { CODE_STATUS_UNUSED } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts b/packages/plugins/@tachybase/plugin-verification/src/server/collections/verifications.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/collections/verifications.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts b/packages/plugins/@tachybase/plugin-verification/src/server/collections/verifications_providers.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/collections/verifications_providers.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/constants.ts b/packages/plugins/@tachybase/plugin-verification/src/server/constants.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/constants.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/constants.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/index.ts b/packages/plugins/@tachybase/plugin-verification/src/server/index.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/server/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/index.ts index a15c2101f..35f82faa9 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/index.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/index.ts @@ -1,5 +1,6 @@ // @ts-ignore import { name } from '../../package.json'; + export { Interceptor, default } from './Plugin'; export * from './constants'; export { Provider } from './providers/Provider'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts b/packages/plugins/@tachybase/plugin-verification/src/server/locale/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/locale/index.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts b/packages/plugins/@tachybase/plugin-verification/src/server/locale/zh-CN.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/locale/zh-CN.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts b/packages/plugins/@tachybase/plugin-verification/src/server/providers/Provider.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/providers/Provider.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts b/packages/plugins/@tachybase/plugin-verification/src/server/providers/index.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/providers/index.ts index bf07e5a7e..b305e9b8b 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/providers/index.ts @@ -1,5 +1,5 @@ -import Plugin from '../Plugin'; import { PROVIDER_TYPE_SMS_ALIYUN, PROVIDER_TYPE_SMS_TENCENT } from '../constants'; +import Plugin from '../Plugin'; import { Provider } from './Provider'; import smsAliyun from './sms-aliyun'; import smsTencent from './sms-tencent'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts b/packages/plugins/@tachybase/plugin-verification/src/server/providers/sms-aliyun.ts similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/providers/sms-aliyun.ts diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts b/packages/plugins/@tachybase/plugin-verification/src/server/providers/sms-tencent.ts similarity index 99% rename from packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts rename to packages/plugins/@tachybase/plugin-verification/src/server/providers/sms-tencent.ts index 8649e7218..d9ffee7fc 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts +++ b/packages/plugins/@tachybase/plugin-verification/src/server/providers/sms-tencent.ts @@ -1,4 +1,5 @@ import * as tencentcloud from 'tencentcloud-sdk-nodejs'; + import { Provider } from './Provider'; // 导入对应产品模块的client models。 diff --git a/packages/plugins/@nocobase/plugin-verification/src/swagger/index.json b/packages/plugins/@tachybase/plugin-verification/src/swagger/index.json similarity index 100% rename from packages/plugins/@nocobase/plugin-verification/src/swagger/index.json rename to packages/plugins/@tachybase/plugin-verification/src/swagger/index.json diff --git a/packages/plugins/@tachybase/plugin-workflow-test/package.json b/packages/plugins/@tachybase/plugin-workflow-test/package.json index af4495202..244820128 100644 --- a/packages/plugins/@tachybase/plugin-workflow-test/package.json +++ b/packages/plugins/@tachybase/plugin-workflow-test/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-workflow-test", "displayName": "Workflow: test kit", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "dist/server/index.js", "types": "./dist/server/index.d.ts", diff --git a/packages/plugins/@tachybase/plugin-workflow/package.json b/packages/plugins/@tachybase/plugin-workflow/package.json index ce430a3fd..3c659fd9a 100644 --- a/packages/plugins/@tachybase/plugin-workflow/package.json +++ b/packages/plugins/@tachybase/plugin-workflow/package.json @@ -1,7 +1,7 @@ { "name": "@tachybase/plugin-workflow", "displayName": "Workflow", - "version": "0.21.33", + "version": "0.21.34", "description": "A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.", "keywords": [ "Workflow" @@ -31,15 +31,15 @@ "sequelize": "^6.26.0" }, "peerDependencies": { - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-users": "workspace:*", "@tachybase/actions": "workspace:*", "@tachybase/client": "workspace:*", "@tachybase/data-source-manager": "workspace:*", "@tachybase/database": "workspace:*", "@tachybase/evaluators": "workspace:*", "@tachybase/logger": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-users": "workspace:*", "@tachybase/resourcer": "workspace:*", "@tachybase/schema": "workspace:*", "@tachybase/server": "workspace:*", diff --git a/packages/presets/base/package.json b/packages/presets/base/package.json index 5ee2fabd8..e40067865 100644 --- a/packages/presets/base/package.json +++ b/packages/presets/base/package.json @@ -1,55 +1,55 @@ { "name": "@tachybase/preset-tachybase", - "version": "0.21.33", + "version": "0.21.34", "license": "Apache-2.0", "main": "./lib/server/index.js", "dependencies": { "@hera/plugin-approval": "workspace:*", "@hera/plugin-audit-logs": "workspace:*", - "@nocobase/plugin-acl": "workspace:*", - "@nocobase/plugin-action-bulk-edit": "workspace:*", - "@nocobase/plugin-action-bulk-update": "workspace:*", - "@nocobase/plugin-action-duplicate": "workspace:*", - "@nocobase/plugin-action-print": "workspace:*", - "@nocobase/plugin-api-doc": "workspace:*", - "@nocobase/plugin-api-keys": "workspace:*", - "@nocobase/plugin-auth": "workspace:*", - "@nocobase/plugin-backup-restore": "workspace:*", - "@nocobase/plugin-calendar": "workspace:*", - "@nocobase/plugin-cas": "workspace:*", - "@nocobase/plugin-china-region": "workspace:*", - "@nocobase/plugin-client": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-custom-request": "workspace:*", - "@nocobase/plugin-data-source-manager": "workspace:*", - "@nocobase/plugin-data-visualization": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-export": "workspace:*", - "@nocobase/plugin-file-manager": "workspace:*", - "@nocobase/plugin-formula-field": "workspace:*", - "@nocobase/plugin-gantt": "workspace:*", - "@nocobase/plugin-graph-collection-manager": "workspace:*", - "@nocobase/plugin-iframe-block": "workspace:*", - "@nocobase/plugin-import": "workspace:*", - "@nocobase/plugin-kanban": "workspace:*", - "@nocobase/plugin-localization-management": "workspace:*", - "@nocobase/plugin-logger": "workspace:*", - "@nocobase/plugin-map": "workspace:*", - "@nocobase/plugin-mock-collections": "workspace:*", - "@nocobase/plugin-multi-app-share-collection": "workspace:*", - "@nocobase/plugin-oidc": "workspace:*", - "@nocobase/plugin-saml": "workspace:*", - "@nocobase/plugin-sequence-field": "workspace:*", - "@nocobase/plugin-sms-auth": "workspace:*", - "@nocobase/plugin-snapshot-field": "workspace:*", - "@nocobase/plugin-theme-editor": "workspace:*", - "@nocobase/plugin-ui-schema-storage": "workspace:*", - "@nocobase/plugin-users": "workspace:*", - "@nocobase/plugin-verification": "workspace:*", "@tachybase/client": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", + "@tachybase/plugin-action-bulk-edit": "workspace:*", + "@tachybase/plugin-action-bulk-update": "workspace:*", + "@tachybase/plugin-action-duplicate": "workspace:*", + "@tachybase/plugin-action-print": "workspace:*", + "@tachybase/plugin-api-doc": "workspace:*", + "@tachybase/plugin-api-keys": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", + "@tachybase/plugin-backup-restore": "workspace:*", + "@tachybase/plugin-calendar": "workspace:*", + "@tachybase/plugin-cas": "workspace:*", + "@tachybase/plugin-china-region": "workspace:*", + "@tachybase/plugin-client": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-custom-request": "workspace:*", + "@tachybase/plugin-data-source-manager": "workspace:*", + "@tachybase/plugin-data-visualization": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-export": "workspace:*", + "@tachybase/plugin-file-manager": "workspace:*", + "@tachybase/plugin-formula-field": "workspace:*", + "@tachybase/plugin-gantt": "workspace:*", + "@tachybase/plugin-graph-collection-manager": "workspace:*", + "@tachybase/plugin-iframe-block": "workspace:*", + "@tachybase/plugin-import": "workspace:*", + "@tachybase/plugin-kanban": "workspace:*", + "@tachybase/plugin-localization-management": "workspace:*", + "@tachybase/plugin-logger": "workspace:*", + "@tachybase/plugin-map": "workspace:*", "@tachybase/plugin-mobile-client": "workspace:*", + "@tachybase/plugin-mock-collections": "workspace:*", "@tachybase/plugin-multi-app-manager": "workspace:*", + "@tachybase/plugin-multi-app-share-collection": "workspace:*", + "@tachybase/plugin-oidc": "workspace:*", + "@tachybase/plugin-saml": "workspace:*", + "@tachybase/plugin-sequence-field": "workspace:*", + "@tachybase/plugin-sms-auth": "workspace:*", + "@tachybase/plugin-snapshot-field": "workspace:*", "@tachybase/plugin-system-settings": "workspace:*", + "@tachybase/plugin-theme-editor": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", + "@tachybase/plugin-users": "workspace:*", + "@tachybase/plugin-verification": "workspace:*", "@tachybase/plugin-workflow": "workspace:*", "@tachybase/schema": "workspace:*", "@tachybase/server": "workspace:*", diff --git a/packages/presets/base/src/server/migrations/20240414160015-remove-audit-local.ts b/packages/presets/base/src/server/migrations/20240414160015-remove-audit-local.ts index 8ef6d2b33..f82e138f8 100644 --- a/packages/presets/base/src/server/migrations/20240414160015-remove-audit-local.ts +++ b/packages/presets/base/src/server/migrations/20240414160015-remove-audit-local.ts @@ -6,7 +6,7 @@ export default class RemoveBuitInAuditLogsMigration extends Migration { async up() { await this.pm.repository.destroy({ filter: { - packageName: '@nocobase/plugin-audit-logs', + packageName: '@tachybase/plugin-audit-logs', }, }); } diff --git a/packages/presets/mini/package.json b/packages/presets/mini/package.json index 124169675..db5d8c436 100644 --- a/packages/presets/mini/package.json +++ b/packages/presets/mini/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/preset-mini", - "version": "0.21.27", + "version": "0.21.28", "license": "Apache-2.0", "main": "./lib/server/index.js", "dependencies": { @@ -9,51 +9,51 @@ "@hera/plugin-core": "workspace:*", "@hera/plugin-homepage": "workspace:*", "@hera/plugin-rental": "workspace:*", - "@nocobase/plugin-acl": "workspace:*", - "@nocobase/plugin-action-bulk-edit": "workspace:*", - "@nocobase/plugin-action-bulk-update": "workspace:*", - "@nocobase/plugin-action-duplicate": "workspace:*", - "@nocobase/plugin-action-print": "workspace:*", - "@nocobase/plugin-api-doc": "workspace:*", - "@nocobase/plugin-api-keys": "workspace:*", - "@nocobase/plugin-auth": "workspace:*", - "@nocobase/plugin-backup-restore": "workspace:*", - "@nocobase/plugin-calendar": "workspace:*", - "@nocobase/plugin-cas": "workspace:*", - "@nocobase/plugin-china-region": "workspace:*", - "@nocobase/plugin-client": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-custom-request": "workspace:*", - "@nocobase/plugin-data-source-manager": "workspace:*", - "@nocobase/plugin-data-visualization": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-export": "workspace:*", - "@nocobase/plugin-file-manager": "workspace:*", - "@nocobase/plugin-formula-field": "workspace:*", - "@nocobase/plugin-gantt": "workspace:*", - "@nocobase/plugin-graph-collection-manager": "workspace:*", - "@nocobase/plugin-iframe-block": "workspace:*", - "@nocobase/plugin-import": "workspace:*", - "@nocobase/plugin-kanban": "workspace:*", - "@nocobase/plugin-localization-management": "workspace:*", - "@nocobase/plugin-logger": "workspace:*", - "@nocobase/plugin-map": "workspace:*", - "@nocobase/plugin-mock-collections": "workspace:*", - "@nocobase/plugin-multi-app-share-collection": "workspace:*", - "@nocobase/plugin-oidc": "workspace:*", - "@nocobase/plugin-saml": "workspace:*", - "@nocobase/plugin-sequence-field": "workspace:*", - "@nocobase/plugin-sms-auth": "workspace:*", - "@nocobase/plugin-snapshot-field": "workspace:*", - "@nocobase/plugin-theme-editor": "workspace:*", - "@nocobase/plugin-ui-schema-storage": "workspace:*", - "@nocobase/plugin-users": "workspace:*", - "@nocobase/plugin-verification": "workspace:*", "@tachybase/client": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", + "@tachybase/plugin-action-bulk-edit": "workspace:*", + "@tachybase/plugin-action-bulk-update": "workspace:*", + "@tachybase/plugin-action-duplicate": "workspace:*", + "@tachybase/plugin-action-print": "workspace:*", + "@tachybase/plugin-api-doc": "workspace:*", + "@tachybase/plugin-api-keys": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", + "@tachybase/plugin-backup-restore": "workspace:*", + "@tachybase/plugin-calendar": "workspace:*", + "@tachybase/plugin-cas": "workspace:*", + "@tachybase/plugin-china-region": "workspace:*", + "@tachybase/plugin-client": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-custom-request": "workspace:*", + "@tachybase/plugin-data-source-manager": "workspace:*", + "@tachybase/plugin-data-visualization": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-export": "workspace:*", "@tachybase/plugin-external-data-source": "workspace:*", + "@tachybase/plugin-file-manager": "workspace:*", + "@tachybase/plugin-formula-field": "workspace:*", + "@tachybase/plugin-gantt": "workspace:*", + "@tachybase/plugin-graph-collection-manager": "workspace:*", + "@tachybase/plugin-iframe-block": "workspace:*", + "@tachybase/plugin-import": "workspace:*", + "@tachybase/plugin-kanban": "workspace:*", + "@tachybase/plugin-localization-management": "workspace:*", + "@tachybase/plugin-logger": "workspace:*", + "@tachybase/plugin-map": "workspace:*", "@tachybase/plugin-mobile-client": "workspace:*", + "@tachybase/plugin-mock-collections": "workspace:*", "@tachybase/plugin-multi-app-manager": "workspace:*", + "@tachybase/plugin-multi-app-share-collection": "workspace:*", + "@tachybase/plugin-oidc": "workspace:*", + "@tachybase/plugin-saml": "workspace:*", + "@tachybase/plugin-sequence-field": "workspace:*", + "@tachybase/plugin-sms-auth": "workspace:*", + "@tachybase/plugin-snapshot-field": "workspace:*", "@tachybase/plugin-system-settings": "workspace:*", + "@tachybase/plugin-theme-editor": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", + "@tachybase/plugin-users": "workspace:*", + "@tachybase/plugin-verification": "workspace:*", "@tachybase/plugin-workflow": "workspace:*", "@tachybase/preset-tachybase": "workspace:*", "@tachybase/schema": "workspace:*", diff --git a/packages/presets/rental/package.json b/packages/presets/rental/package.json index 3823633e9..2fb144a24 100644 --- a/packages/presets/rental/package.json +++ b/packages/presets/rental/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/preset-hera-rental", - "version": "0.21.27", + "version": "0.21.28", "license": "Apache-2.0", "main": "./lib/server/index.js", "dependencies": { @@ -9,51 +9,51 @@ "@hera/plugin-core": "workspace:*", "@hera/plugin-homepage": "workspace:*", "@hera/plugin-rental": "workspace:*", - "@nocobase/plugin-acl": "workspace:*", - "@nocobase/plugin-action-bulk-edit": "workspace:*", - "@nocobase/plugin-action-bulk-update": "workspace:*", - "@nocobase/plugin-action-duplicate": "workspace:*", - "@nocobase/plugin-action-print": "workspace:*", - "@nocobase/plugin-api-doc": "workspace:*", - "@nocobase/plugin-api-keys": "workspace:*", - "@nocobase/plugin-auth": "workspace:*", - "@nocobase/plugin-backup-restore": "workspace:*", - "@nocobase/plugin-calendar": "workspace:*", - "@nocobase/plugin-cas": "workspace:*", - "@nocobase/plugin-china-region": "workspace:*", - "@nocobase/plugin-client": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-custom-request": "workspace:*", - "@nocobase/plugin-data-source-manager": "workspace:*", - "@nocobase/plugin-data-visualization": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-export": "workspace:*", - "@nocobase/plugin-file-manager": "workspace:*", - "@nocobase/plugin-formula-field": "workspace:*", - "@nocobase/plugin-gantt": "workspace:*", - "@nocobase/plugin-graph-collection-manager": "workspace:*", - "@nocobase/plugin-iframe-block": "workspace:*", - "@nocobase/plugin-import": "workspace:*", - "@nocobase/plugin-kanban": "workspace:*", - "@nocobase/plugin-localization-management": "workspace:*", - "@nocobase/plugin-logger": "workspace:*", - "@nocobase/plugin-map": "workspace:*", - "@nocobase/plugin-mock-collections": "workspace:*", - "@nocobase/plugin-multi-app-share-collection": "workspace:*", - "@nocobase/plugin-oidc": "workspace:*", - "@nocobase/plugin-saml": "workspace:*", - "@nocobase/plugin-sequence-field": "workspace:*", - "@nocobase/plugin-sms-auth": "workspace:*", - "@nocobase/plugin-snapshot-field": "workspace:*", - "@nocobase/plugin-theme-editor": "workspace:*", - "@nocobase/plugin-ui-schema-storage": "workspace:*", - "@nocobase/plugin-users": "workspace:*", - "@nocobase/plugin-verification": "workspace:*", "@tachybase/client": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", + "@tachybase/plugin-action-bulk-edit": "workspace:*", + "@tachybase/plugin-action-bulk-update": "workspace:*", + "@tachybase/plugin-action-duplicate": "workspace:*", + "@tachybase/plugin-action-print": "workspace:*", + "@tachybase/plugin-api-doc": "workspace:*", + "@tachybase/plugin-api-keys": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", + "@tachybase/plugin-backup-restore": "workspace:*", + "@tachybase/plugin-calendar": "workspace:*", + "@tachybase/plugin-cas": "workspace:*", + "@tachybase/plugin-china-region": "workspace:*", + "@tachybase/plugin-client": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-custom-request": "workspace:*", + "@tachybase/plugin-data-source-manager": "workspace:*", + "@tachybase/plugin-data-visualization": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-export": "workspace:*", "@tachybase/plugin-external-data-source": "workspace:*", + "@tachybase/plugin-file-manager": "workspace:*", + "@tachybase/plugin-formula-field": "workspace:*", + "@tachybase/plugin-gantt": "workspace:*", + "@tachybase/plugin-graph-collection-manager": "workspace:*", + "@tachybase/plugin-iframe-block": "workspace:*", + "@tachybase/plugin-import": "workspace:*", + "@tachybase/plugin-kanban": "workspace:*", + "@tachybase/plugin-localization-management": "workspace:*", + "@tachybase/plugin-logger": "workspace:*", + "@tachybase/plugin-map": "workspace:*", "@tachybase/plugin-mobile-client": "workspace:*", + "@tachybase/plugin-mock-collections": "workspace:*", "@tachybase/plugin-multi-app-manager": "workspace:*", + "@tachybase/plugin-multi-app-share-collection": "workspace:*", + "@tachybase/plugin-oidc": "workspace:*", + "@tachybase/plugin-saml": "workspace:*", + "@tachybase/plugin-sequence-field": "workspace:*", + "@tachybase/plugin-sms-auth": "workspace:*", + "@tachybase/plugin-snapshot-field": "workspace:*", "@tachybase/plugin-system-settings": "workspace:*", + "@tachybase/plugin-theme-editor": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", + "@tachybase/plugin-users": "workspace:*", + "@tachybase/plugin-verification": "workspace:*", "@tachybase/plugin-workflow": "workspace:*", "@tachybase/preset-tachybase": "workspace:*", "@tachybase/schema": "workspace:*", diff --git a/packages/presets/sancongtou/package.json b/packages/presets/sancongtou/package.json index 1be2c4a5c..3ba8a1f08 100644 --- a/packages/presets/sancongtou/package.json +++ b/packages/presets/sancongtou/package.json @@ -1,6 +1,6 @@ { "name": "@tachybase/preset-hera-sancongtou", - "version": "0.21.27", + "version": "0.21.28", "license": "Apache-2.0", "main": "./lib/server/index.js", "dependencies": { @@ -10,50 +10,50 @@ "@hera/plugin-core": "workspace:*", "@hera/plugin-rental": "workspace:*", "@hera/plugin-sancongtou": "workspace:*", - "@nocobase/plugin-acl": "workspace:*", - "@nocobase/plugin-action-bulk-edit": "workspace:*", - "@nocobase/plugin-action-bulk-update": "workspace:*", - "@nocobase/plugin-action-duplicate": "workspace:*", - "@nocobase/plugin-action-print": "workspace:*", - "@nocobase/plugin-api-doc": "workspace:*", - "@nocobase/plugin-api-keys": "workspace:*", - "@nocobase/plugin-auth": "workspace:*", - "@nocobase/plugin-backup-restore": "workspace:*", - "@nocobase/plugin-calendar": "workspace:*", - "@nocobase/plugin-cas": "workspace:*", - "@nocobase/plugin-china-region": "workspace:*", - "@nocobase/plugin-client": "workspace:*", - "@nocobase/plugin-collection-manager": "workspace:*", - "@nocobase/plugin-custom-request": "workspace:*", - "@nocobase/plugin-data-source-manager": "workspace:*", - "@nocobase/plugin-data-visualization": "workspace:*", - "@nocobase/plugin-error-handler": "workspace:*", - "@nocobase/plugin-export": "workspace:*", - "@nocobase/plugin-file-manager": "workspace:*", - "@nocobase/plugin-formula-field": "workspace:*", - "@nocobase/plugin-gantt": "workspace:*", - "@nocobase/plugin-graph-collection-manager": "workspace:*", - "@nocobase/plugin-iframe-block": "workspace:*", - "@nocobase/plugin-import": "workspace:*", - "@nocobase/plugin-kanban": "workspace:*", - "@nocobase/plugin-localization-management": "workspace:*", - "@nocobase/plugin-logger": "workspace:*", - "@nocobase/plugin-map": "workspace:*", - "@nocobase/plugin-mock-collections": "workspace:*", - "@nocobase/plugin-multi-app-share-collection": "workspace:*", - "@nocobase/plugin-oidc": "workspace:*", - "@nocobase/plugin-saml": "workspace:*", - "@nocobase/plugin-sequence-field": "workspace:*", - "@nocobase/plugin-sms-auth": "workspace:*", - "@nocobase/plugin-snapshot-field": "workspace:*", - "@nocobase/plugin-theme-editor": "workspace:*", - "@nocobase/plugin-ui-schema-storage": "workspace:*", - "@nocobase/plugin-users": "workspace:*", - "@nocobase/plugin-verification": "workspace:*", "@tachybase/client": "workspace:*", + "@tachybase/plugin-acl": "workspace:*", + "@tachybase/plugin-action-bulk-edit": "workspace:*", + "@tachybase/plugin-action-bulk-update": "workspace:*", + "@tachybase/plugin-action-duplicate": "workspace:*", + "@tachybase/plugin-action-print": "workspace:*", + "@tachybase/plugin-api-doc": "workspace:*", + "@tachybase/plugin-api-keys": "workspace:*", + "@tachybase/plugin-auth": "workspace:*", + "@tachybase/plugin-backup-restore": "workspace:*", + "@tachybase/plugin-calendar": "workspace:*", + "@tachybase/plugin-cas": "workspace:*", + "@tachybase/plugin-china-region": "workspace:*", + "@tachybase/plugin-client": "workspace:*", + "@tachybase/plugin-collection-manager": "workspace:*", + "@tachybase/plugin-custom-request": "workspace:*", + "@tachybase/plugin-data-source-manager": "workspace:*", + "@tachybase/plugin-data-visualization": "workspace:*", + "@tachybase/plugin-error-handler": "workspace:*", + "@tachybase/plugin-export": "workspace:*", + "@tachybase/plugin-file-manager": "workspace:*", + "@tachybase/plugin-formula-field": "workspace:*", + "@tachybase/plugin-gantt": "workspace:*", + "@tachybase/plugin-graph-collection-manager": "workspace:*", + "@tachybase/plugin-iframe-block": "workspace:*", + "@tachybase/plugin-import": "workspace:*", + "@tachybase/plugin-kanban": "workspace:*", + "@tachybase/plugin-localization-management": "workspace:*", + "@tachybase/plugin-logger": "workspace:*", + "@tachybase/plugin-map": "workspace:*", "@tachybase/plugin-mobile-client": "workspace:*", + "@tachybase/plugin-mock-collections": "workspace:*", "@tachybase/plugin-multi-app-manager": "workspace:*", + "@tachybase/plugin-multi-app-share-collection": "workspace:*", + "@tachybase/plugin-oidc": "workspace:*", + "@tachybase/plugin-saml": "workspace:*", + "@tachybase/plugin-sequence-field": "workspace:*", + "@tachybase/plugin-sms-auth": "workspace:*", + "@tachybase/plugin-snapshot-field": "workspace:*", "@tachybase/plugin-system-settings": "workspace:*", + "@tachybase/plugin-theme-editor": "workspace:*", + "@tachybase/plugin-ui-schema-storage": "workspace:*", + "@tachybase/plugin-users": "workspace:*", + "@tachybase/plugin-verification": "workspace:*", "@tachybase/plugin-workflow": "workspace:*", "@tachybase/preset-tachybase": "workspace:*", "@tachybase/schema": "workspace:*", diff --git a/playwright.config.ts b/playwright.config.ts index a70bc9242..11ef6854d 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,3 +1,3 @@ -import { defineConfig } from '@nocobase/test/e2e'; +import { defineConfig } from '@tachybase/test/e2e'; export default defineConfig(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1481398e..8d57db1d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1382,9 +1382,9 @@ importers: '@ant-design/icons': specifier: 5.x version: 5.3.6(react-dom@18.2.0)(react@18.2.0) - '@nocobase/plugin-ui-schema-storage': + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* - version: link:../../@nocobase/plugin-ui-schema-storage + version: link:../../@tachybase/plugin-ui-schema-storage '@tachybase/actions': specifier: workspace:* version: link:../../../core/actions @@ -1513,9 +1513,9 @@ importers: packages/plugins/@hera/plugin-core: dependencies: - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* - version: link:../../@nocobase/plugin-acl + version: link:../../@tachybase/plugin-acl '@tachybase/actions': specifier: workspace:* version: link:../../../core/actions @@ -1671,12 +1671,12 @@ importers: '@hera/plugin-core': specifier: workspace:* version: link:../plugin-core - '@nocobase/plugin-collection-manager': + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../@nocobase/plugin-collection-manager - '@nocobase/plugin-data-visualization': + version: link:../../@tachybase/plugin-collection-manager + '@tachybase/plugin-data-visualization': specifier: workspace:* - version: link:../../@nocobase/plugin-data-visualization + version: link:../../@tachybase/plugin-data-visualization '@tachybase/actions': specifier: workspace:* version: link:../../../core/actions @@ -1769,7 +1769,7 @@ importers: specifier: ^6.23.1 version: 6.23.1(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-acl: + packages/plugins/@tachybase/plugin-acl: dependencies: '@tachybase/acl': specifier: workspace:* @@ -1833,7 +1833,7 @@ importers: 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-action-bulk-edit: + packages/plugins/@tachybase/plugin-action-bulk-edit: dependencies: '@tachybase/client': specifier: workspace:* @@ -1870,7 +1870,7 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-action-bulk-update: + packages/plugins/@tachybase/plugin-action-bulk-update: dependencies: '@tachybase/client': specifier: workspace:* @@ -1898,7 +1898,7 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-action-duplicate: + packages/plugins/@tachybase/plugin-action-duplicate: dependencies: '@tachybase/client': specifier: workspace:* @@ -1923,7 +1923,7 @@ importers: 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-action-print: + packages/plugins/@tachybase/plugin-action-print: dependencies: '@tachybase/client': specifier: workspace:* @@ -1939,7 +1939,7 @@ importers: specifier: ^2.14.7 version: 2.14.15(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-api-doc: + packages/plugins/@tachybase/plugin-api-doc: dependencies: '@tachybase/actions': specifier: workspace:* @@ -1973,7 +1973,7 @@ importers: specifier: ^5.3.1 version: 5.10.5 - packages/plugins/@nocobase/plugin-api-keys: + packages/plugins/@tachybase/plugin-api-keys: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2022,7 +2022,7 @@ importers: 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-auth: + packages/plugins/@tachybase/plugin-auth: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2074,7 +2074,7 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-backup-restore: + packages/plugins/@tachybase/plugin-backup-restore: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2159,7 +2159,7 @@ importers: specifier: ^6.1.13 version: 6.2.0 - packages/plugins/@nocobase/plugin-calendar: + packages/plugins/@tachybase/plugin-calendar: dependencies: '@tachybase/client': specifier: workspace:* @@ -2211,9 +2211,9 @@ importers: specifier: ^1.0.9 version: 1.0.9 - packages/plugins/@nocobase/plugin-cas: + packages/plugins/@tachybase/plugin-cas: dependencies: - '@nocobase/plugin-auth': + '@tachybase/plugin-auth': specifier: workspace:* version: link:../plugin-auth '@tachybase/actions': @@ -2251,7 +2251,7 @@ importers: specifier: 6.x version: 6.22.3(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-china-region: + packages/plugins/@tachybase/plugin-china-region: dependencies: '@tachybase/client': specifier: workspace:* @@ -2279,7 +2279,7 @@ importers: specifier: ^7.0.3 version: 7.0.3 - packages/plugins/@nocobase/plugin-client: + packages/plugins/@tachybase/plugin-client: dependencies: '@tachybase/client': specifier: workspace:* @@ -2310,9 +2310,9 @@ importers: specifier: ^5.0.0 version: 5.0.0 - packages/plugins/@nocobase/plugin-collection-manager: + packages/plugins/@tachybase/plugin-collection-manager: dependencies: - '@nocobase/plugin-error-handler': + '@tachybase/plugin-error-handler': specifier: workspace:* version: link:../plugin-error-handler '@tachybase/actions': @@ -2353,7 +2353,7 @@ importers: specifier: ^2.0.2 version: 2.0.2 - packages/plugins/@nocobase/plugin-custom-request: + packages/plugins/@tachybase/plugin-custom-request: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2402,7 +2402,7 @@ importers: specifier: 6.x version: 6.22.3(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-data-source-manager: + packages/plugins/@tachybase/plugin-data-source-manager: dependencies: '@tachybase/acl': specifier: workspace:* @@ -2457,7 +2457,7 @@ importers: specifier: ^6.26.0 version: 6.35.2 - packages/plugins/@nocobase/plugin-data-visualization: + packages/plugins/@tachybase/plugin-data-visualization: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2527,7 +2527,7 @@ importers: specifier: ^6.26.0 version: 6.35.2 - packages/plugins/@nocobase/plugin-error-handler: + packages/plugins/@tachybase/plugin-error-handler: dependencies: '@tachybase/client': specifier: workspace:* @@ -2555,7 +2555,7 @@ importers: specifier: ^6.1.6 version: 6.3.3 - packages/plugins/@nocobase/plugin-export: + packages/plugins/@tachybase/plugin-export: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2601,7 +2601,7 @@ importers: 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-file-manager: + packages/plugins/@tachybase/plugin-file-manager: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2683,7 +2683,7 @@ importers: specifier: ^6.1.6 version: 6.3.3 - packages/plugins/@nocobase/plugin-formula-field: + packages/plugins/@tachybase/plugin-formula-field: dependencies: '@tachybase/client': specifier: workspace:* @@ -2717,7 +2717,7 @@ importers: 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-gantt: + packages/plugins/@tachybase/plugin-gantt: dependencies: '@ant-design/icons': specifier: ^5.3.6 @@ -2753,7 +2753,7 @@ importers: 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-graph-collection-manager: + packages/plugins/@tachybase/plugin-graph-collection-manager: dependencies: '@tachybase/client': specifier: workspace:* @@ -2823,7 +2823,7 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-iframe-block: + packages/plugins/@tachybase/plugin-iframe-block: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2860,7 +2860,7 @@ importers: specifier: ~1.8.5 version: 1.8.5(react@18.2.0) - packages/plugins/@nocobase/plugin-import: + packages/plugins/@tachybase/plugin-import: dependencies: '@tachybase/actions': specifier: workspace:* @@ -2924,7 +2924,7 @@ importers: specifier: ^0.17.0 version: 0.17.5 - packages/plugins/@nocobase/plugin-kanban: + packages/plugins/@tachybase/plugin-kanban: dependencies: '@tachybase/client': specifier: workspace:* @@ -2961,12 +2961,12 @@ importers: 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-localization-management: + packages/plugins/@tachybase/plugin-localization-management: dependencies: - '@nocobase/plugin-client': + '@tachybase/plugin-client': specifier: workspace:* version: link:../plugin-client - '@nocobase/plugin-ui-schema-storage': + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* version: link:../plugin-ui-schema-storage '@tachybase/actions': @@ -3007,7 +3007,7 @@ importers: 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-logger: + packages/plugins/@tachybase/plugin-logger: dependencies: '@tachybase/actions': specifier: workspace:* @@ -3044,7 +3044,7 @@ importers: specifier: ^3.0.4 version: 3.0.4 - packages/plugins/@nocobase/plugin-map: + packages/plugins/@tachybase/plugin-map: dependencies: '@tachybase/actions': specifier: workspace:* @@ -3114,9 +3114,9 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-mock-collections: + packages/plugins/@tachybase/plugin-mock-collections: dependencies: - '@nocobase/plugin-error-handler': + '@tachybase/plugin-error-handler': specifier: workspace:* version: link:../plugin-error-handler '@tachybase/client': @@ -3145,15 +3145,15 @@ importers: specifier: ^8.11.3 version: 8.11.3 - packages/plugins/@nocobase/plugin-multi-app-share-collection: + packages/plugins/@tachybase/plugin-multi-app-share-collection: dependencies: - '@nocobase/plugin-collection-manager': + '@tachybase/plugin-collection-manager': specifier: workspace:* version: link:../plugin-collection-manager - '@nocobase/plugin-error-handler': + '@tachybase/plugin-error-handler': specifier: workspace:* version: link:../plugin-error-handler - '@nocobase/plugin-users': + '@tachybase/plugin-users': specifier: workspace:* version: link:../plugin-users '@tachybase/client': @@ -3191,7 +3191,7 @@ importers: 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-notifications: + packages/plugins/@tachybase/plugin-notifications: dependencies: '@tachybase/client': specifier: workspace:* @@ -3222,9 +3222,9 @@ importers: specifier: ^1.5.11 version: 1.5.12 - packages/plugins/@nocobase/plugin-oidc: + packages/plugins/@tachybase/plugin-oidc: dependencies: - '@nocobase/plugin-auth': + '@tachybase/plugin-auth': specifier: workspace:* version: link:../plugin-auth '@tachybase/actions': @@ -3277,9 +3277,9 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-saml: + packages/plugins/@tachybase/plugin-saml: dependencies: - '@nocobase/plugin-auth': + '@tachybase/plugin-auth': specifier: workspace:* version: link:../plugin-auth '@tachybase/actions': @@ -3326,7 +3326,7 @@ importers: specifier: ^6.11.2 version: 6.21.0(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-sample-hello: + packages/plugins/@tachybase/plugin-sample-hello: dependencies: '@tachybase/client': specifier: workspace:* @@ -3354,9 +3354,9 @@ importers: 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-sequence-field: + packages/plugins/@tachybase/plugin-sequence-field: dependencies: - '@nocobase/plugin-collection-manager': + '@tachybase/plugin-collection-manager': specifier: workspace:* version: link:../plugin-collection-manager '@tachybase/actions': @@ -3409,12 +3409,12 @@ importers: specifier: ^3.1.0 version: 3.2.0(antd@5.16.1)(react-dom@18.2.0)(react@18.2.0) - packages/plugins/@nocobase/plugin-sms-auth: + packages/plugins/@tachybase/plugin-sms-auth: dependencies: - '@nocobase/plugin-auth': + '@tachybase/plugin-auth': specifier: workspace:* version: link:../plugin-auth - '@nocobase/plugin-verification': + '@tachybase/plugin-verification': specifier: workspace:* version: link:../plugin-verification '@tachybase/actions': @@ -3449,7 +3449,7 @@ importers: 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-snapshot-field: + packages/plugins/@tachybase/plugin-snapshot-field: dependencies: '@tachybase/client': specifier: workspace:* @@ -3489,7 +3489,7 @@ importers: 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-theme-editor: + packages/plugins/@tachybase/plugin-theme-editor: dependencies: '@tachybase/actions': specifier: workspace:* @@ -3556,12 +3556,12 @@ importers: specifier: ^0.17.8 version: 0.17.10 - packages/plugins/@nocobase/plugin-ui-schema-storage: + packages/plugins/@tachybase/plugin-ui-schema-storage: dependencies: - '@nocobase/plugin-error-handler': + '@tachybase/plugin-error-handler': specifier: workspace:* version: link:../plugin-error-handler - '@nocobase/plugin-users': + '@tachybase/plugin-users': specifier: workspace:* version: link:../plugin-users '@tachybase/actions': @@ -3596,12 +3596,12 @@ importers: specifier: 4.17.21 version: 4.17.21 - packages/plugins/@nocobase/plugin-users: + packages/plugins/@tachybase/plugin-users: dependencies: - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* version: link:../plugin-acl - '@nocobase/plugin-auth': + '@tachybase/plugin-auth': specifier: workspace:* version: link:../plugin-auth '@tachybase/actions': @@ -3645,7 +3645,7 @@ importers: 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-verification: + packages/plugins/@tachybase/plugin-verification: dependencies: '@tachybase/actions': specifier: workspace:* @@ -3929,15 +3929,15 @@ importers: packages/plugins/@tachybase/plugin-workflow: dependencies: - '@nocobase/plugin-collection-manager': + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../@nocobase/plugin-collection-manager - '@nocobase/plugin-error-handler': + version: link:../../@tachybase/plugin-collection-manager + '@tachybase/plugin-error-handler': specifier: workspace:* - version: link:../../@nocobase/plugin-error-handler - '@nocobase/plugin-users': + version: link:../../@tachybase/plugin-error-handler + '@tachybase/plugin-users': specifier: workspace:* - version: link:../../@nocobase/plugin-users + version: link:../../@tachybase/plugin-users '@tachybase/actions': specifier: workspace:* version: link:../../../core/actions @@ -4057,126 +4057,126 @@ importers: '@hera/plugin-audit-logs': specifier: workspace:* version: link:../../plugins/@hera/plugin-audit-logs - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-acl - '@nocobase/plugin-action-bulk-edit': + version: link:../../plugins/@tachybase/plugin-acl + '@tachybase/plugin-action-bulk-edit': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-edit - '@nocobase/plugin-action-bulk-update': + version: link:../../plugins/@tachybase/plugin-action-bulk-edit + '@tachybase/plugin-action-bulk-update': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-update - '@nocobase/plugin-action-duplicate': + version: link:../../plugins/@tachybase/plugin-action-bulk-update + '@tachybase/plugin-action-duplicate': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-duplicate - '@nocobase/plugin-action-print': + version: link:../../plugins/@tachybase/plugin-action-duplicate + '@tachybase/plugin-action-print': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-print - '@nocobase/plugin-api-doc': + version: link:../../plugins/@tachybase/plugin-action-print + '@tachybase/plugin-api-doc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-doc - '@nocobase/plugin-api-keys': + version: link:../../plugins/@tachybase/plugin-api-doc + '@tachybase/plugin-api-keys': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-keys - '@nocobase/plugin-auth': + version: link:../../plugins/@tachybase/plugin-api-keys + '@tachybase/plugin-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-auth - '@nocobase/plugin-backup-restore': + version: link:../../plugins/@tachybase/plugin-auth + '@tachybase/plugin-backup-restore': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-backup-restore - '@nocobase/plugin-calendar': + version: link:../../plugins/@tachybase/plugin-backup-restore + '@tachybase/plugin-calendar': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-calendar - '@nocobase/plugin-cas': + version: link:../../plugins/@tachybase/plugin-calendar + '@tachybase/plugin-cas': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-cas - '@nocobase/plugin-china-region': + version: link:../../plugins/@tachybase/plugin-cas + '@tachybase/plugin-china-region': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-china-region - '@nocobase/plugin-client': + version: link:../../plugins/@tachybase/plugin-china-region + '@tachybase/plugin-client': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-client - '@nocobase/plugin-collection-manager': + version: link:../../plugins/@tachybase/plugin-client + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-collection-manager - '@nocobase/plugin-custom-request': + version: link:../../plugins/@tachybase/plugin-collection-manager + '@tachybase/plugin-custom-request': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-custom-request - '@nocobase/plugin-data-source-manager': + version: link:../../plugins/@tachybase/plugin-custom-request + '@tachybase/plugin-data-source-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-source-manager - '@nocobase/plugin-data-visualization': + version: link:../../plugins/@tachybase/plugin-data-source-manager + '@tachybase/plugin-data-visualization': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-visualization - '@nocobase/plugin-error-handler': + version: link:../../plugins/@tachybase/plugin-data-visualization + '@tachybase/plugin-error-handler': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-error-handler - '@nocobase/plugin-export': + version: link:../../plugins/@tachybase/plugin-error-handler + '@tachybase/plugin-export': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-export - '@nocobase/plugin-file-manager': + version: link:../../plugins/@tachybase/plugin-export + '@tachybase/plugin-file-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-file-manager - '@nocobase/plugin-formula-field': + version: link:../../plugins/@tachybase/plugin-file-manager + '@tachybase/plugin-formula-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-formula-field - '@nocobase/plugin-gantt': + version: link:../../plugins/@tachybase/plugin-formula-field + '@tachybase/plugin-gantt': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-gantt - '@nocobase/plugin-graph-collection-manager': + version: link:../../plugins/@tachybase/plugin-gantt + '@tachybase/plugin-graph-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-graph-collection-manager - '@nocobase/plugin-iframe-block': + version: link:../../plugins/@tachybase/plugin-graph-collection-manager + '@tachybase/plugin-iframe-block': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-iframe-block - '@nocobase/plugin-import': + version: link:../../plugins/@tachybase/plugin-iframe-block + '@tachybase/plugin-import': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-import - '@nocobase/plugin-kanban': + version: link:../../plugins/@tachybase/plugin-import + '@tachybase/plugin-kanban': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-kanban - '@nocobase/plugin-localization-management': + version: link:../../plugins/@tachybase/plugin-kanban + '@tachybase/plugin-localization-management': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-localization-management - '@nocobase/plugin-logger': + version: link:../../plugins/@tachybase/plugin-localization-management + '@tachybase/plugin-logger': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-logger - '@nocobase/plugin-map': + version: link:../../plugins/@tachybase/plugin-logger + '@tachybase/plugin-map': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-map - '@nocobase/plugin-mock-collections': + version: link:../../plugins/@tachybase/plugin-map + '@tachybase/plugin-mock-collections': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-mock-collections - '@nocobase/plugin-multi-app-share-collection': + version: link:../../plugins/@tachybase/plugin-mock-collections + '@tachybase/plugin-multi-app-share-collection': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-multi-app-share-collection - '@nocobase/plugin-oidc': + version: link:../../plugins/@tachybase/plugin-multi-app-share-collection + '@tachybase/plugin-oidc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-oidc - '@nocobase/plugin-saml': + version: link:../../plugins/@tachybase/plugin-oidc + '@tachybase/plugin-saml': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-saml - '@nocobase/plugin-sequence-field': + version: link:../../plugins/@tachybase/plugin-saml + '@tachybase/plugin-sequence-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sequence-field - '@nocobase/plugin-sms-auth': + version: link:../../plugins/@tachybase/plugin-sequence-field + '@tachybase/plugin-sms-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sms-auth - '@nocobase/plugin-snapshot-field': + version: link:../../plugins/@tachybase/plugin-sms-auth + '@tachybase/plugin-snapshot-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-snapshot-field - '@nocobase/plugin-theme-editor': + version: link:../../plugins/@tachybase/plugin-snapshot-field + '@tachybase/plugin-theme-editor': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-theme-editor - '@nocobase/plugin-ui-schema-storage': + version: link:../../plugins/@tachybase/plugin-theme-editor + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-ui-schema-storage - '@nocobase/plugin-users': + version: link:../../plugins/@tachybase/plugin-ui-schema-storage + '@tachybase/plugin-users': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-users - '@nocobase/plugin-verification': + version: link:../../plugins/@tachybase/plugin-users + '@tachybase/plugin-verification': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-verification + version: link:../../plugins/@tachybase/plugin-verification '@tachybase/client': specifier: workspace:* version: link:../../core/client @@ -4226,126 +4226,126 @@ importers: '@hera/plugin-rental': specifier: workspace:* version: link:../../plugins/@hera/plugin-rental - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-acl - '@nocobase/plugin-action-bulk-edit': + version: link:../../plugins/@tachybase/plugin-acl + '@tachybase/plugin-action-bulk-edit': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-edit - '@nocobase/plugin-action-bulk-update': + version: link:../../plugins/@tachybase/plugin-action-bulk-edit + '@tachybase/plugin-action-bulk-update': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-update - '@nocobase/plugin-action-duplicate': + version: link:../../plugins/@tachybase/plugin-action-bulk-update + '@tachybase/plugin-action-duplicate': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-duplicate - '@nocobase/plugin-action-print': + version: link:../../plugins/@tachybase/plugin-action-duplicate + '@tachybase/plugin-action-print': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-print - '@nocobase/plugin-api-doc': + version: link:../../plugins/@tachybase/plugin-action-print + '@tachybase/plugin-api-doc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-doc - '@nocobase/plugin-api-keys': + version: link:../../plugins/@tachybase/plugin-api-doc + '@tachybase/plugin-api-keys': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-keys - '@nocobase/plugin-auth': + version: link:../../plugins/@tachybase/plugin-api-keys + '@tachybase/plugin-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-auth - '@nocobase/plugin-backup-restore': + version: link:../../plugins/@tachybase/plugin-auth + '@tachybase/plugin-backup-restore': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-backup-restore - '@nocobase/plugin-calendar': + version: link:../../plugins/@tachybase/plugin-backup-restore + '@tachybase/plugin-calendar': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-calendar - '@nocobase/plugin-cas': + version: link:../../plugins/@tachybase/plugin-calendar + '@tachybase/plugin-cas': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-cas - '@nocobase/plugin-china-region': + version: link:../../plugins/@tachybase/plugin-cas + '@tachybase/plugin-china-region': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-china-region - '@nocobase/plugin-client': + version: link:../../plugins/@tachybase/plugin-china-region + '@tachybase/plugin-client': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-client - '@nocobase/plugin-collection-manager': + version: link:../../plugins/@tachybase/plugin-client + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-collection-manager - '@nocobase/plugin-custom-request': + version: link:../../plugins/@tachybase/plugin-collection-manager + '@tachybase/plugin-custom-request': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-custom-request - '@nocobase/plugin-data-source-manager': + version: link:../../plugins/@tachybase/plugin-custom-request + '@tachybase/plugin-data-source-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-source-manager - '@nocobase/plugin-data-visualization': + version: link:../../plugins/@tachybase/plugin-data-source-manager + '@tachybase/plugin-data-visualization': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-visualization - '@nocobase/plugin-error-handler': + version: link:../../plugins/@tachybase/plugin-data-visualization + '@tachybase/plugin-error-handler': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-error-handler - '@nocobase/plugin-export': + version: link:../../plugins/@tachybase/plugin-error-handler + '@tachybase/plugin-export': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-export - '@nocobase/plugin-file-manager': + version: link:../../plugins/@tachybase/plugin-export + '@tachybase/plugin-file-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-file-manager - '@nocobase/plugin-formula-field': + version: link:../../plugins/@tachybase/plugin-file-manager + '@tachybase/plugin-formula-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-formula-field - '@nocobase/plugin-gantt': + version: link:../../plugins/@tachybase/plugin-formula-field + '@tachybase/plugin-gantt': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-gantt - '@nocobase/plugin-graph-collection-manager': + version: link:../../plugins/@tachybase/plugin-gantt + '@tachybase/plugin-graph-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-graph-collection-manager - '@nocobase/plugin-iframe-block': + version: link:../../plugins/@tachybase/plugin-graph-collection-manager + '@tachybase/plugin-iframe-block': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-iframe-block - '@nocobase/plugin-import': + version: link:../../plugins/@tachybase/plugin-iframe-block + '@tachybase/plugin-import': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-import - '@nocobase/plugin-kanban': + version: link:../../plugins/@tachybase/plugin-import + '@tachybase/plugin-kanban': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-kanban - '@nocobase/plugin-localization-management': + version: link:../../plugins/@tachybase/plugin-kanban + '@tachybase/plugin-localization-management': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-localization-management - '@nocobase/plugin-logger': + version: link:../../plugins/@tachybase/plugin-localization-management + '@tachybase/plugin-logger': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-logger - '@nocobase/plugin-map': + version: link:../../plugins/@tachybase/plugin-logger + '@tachybase/plugin-map': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-map - '@nocobase/plugin-mock-collections': + version: link:../../plugins/@tachybase/plugin-map + '@tachybase/plugin-mock-collections': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-mock-collections - '@nocobase/plugin-multi-app-share-collection': + version: link:../../plugins/@tachybase/plugin-mock-collections + '@tachybase/plugin-multi-app-share-collection': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-multi-app-share-collection - '@nocobase/plugin-oidc': + version: link:../../plugins/@tachybase/plugin-multi-app-share-collection + '@tachybase/plugin-oidc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-oidc - '@nocobase/plugin-saml': + version: link:../../plugins/@tachybase/plugin-oidc + '@tachybase/plugin-saml': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-saml - '@nocobase/plugin-sequence-field': + version: link:../../plugins/@tachybase/plugin-saml + '@tachybase/plugin-sequence-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sequence-field - '@nocobase/plugin-sms-auth': + version: link:../../plugins/@tachybase/plugin-sequence-field + '@tachybase/plugin-sms-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sms-auth - '@nocobase/plugin-snapshot-field': + version: link:../../plugins/@tachybase/plugin-sms-auth + '@tachybase/plugin-snapshot-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-snapshot-field - '@nocobase/plugin-theme-editor': + version: link:../../plugins/@tachybase/plugin-snapshot-field + '@tachybase/plugin-theme-editor': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-theme-editor - '@nocobase/plugin-ui-schema-storage': + version: link:../../plugins/@tachybase/plugin-theme-editor + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-ui-schema-storage - '@nocobase/plugin-users': + version: link:../../plugins/@tachybase/plugin-ui-schema-storage + '@tachybase/plugin-users': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-users - '@nocobase/plugin-verification': + version: link:../../plugins/@tachybase/plugin-users + '@tachybase/plugin-verification': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-verification + version: link:../../plugins/@tachybase/plugin-verification '@tachybase/client': specifier: workspace:* version: link:../../core/client @@ -4401,126 +4401,126 @@ importers: '@hera/plugin-rental': specifier: workspace:* version: link:../../plugins/@hera/plugin-rental - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-acl - '@nocobase/plugin-action-bulk-edit': + version: link:../../plugins/@tachybase/plugin-acl + '@tachybase/plugin-action-bulk-edit': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-edit - '@nocobase/plugin-action-bulk-update': + version: link:../../plugins/@tachybase/plugin-action-bulk-edit + '@tachybase/plugin-action-bulk-update': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-update - '@nocobase/plugin-action-duplicate': + version: link:../../plugins/@tachybase/plugin-action-bulk-update + '@tachybase/plugin-action-duplicate': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-duplicate - '@nocobase/plugin-action-print': + version: link:../../plugins/@tachybase/plugin-action-duplicate + '@tachybase/plugin-action-print': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-print - '@nocobase/plugin-api-doc': + version: link:../../plugins/@tachybase/plugin-action-print + '@tachybase/plugin-api-doc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-doc - '@nocobase/plugin-api-keys': + version: link:../../plugins/@tachybase/plugin-api-doc + '@tachybase/plugin-api-keys': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-keys - '@nocobase/plugin-auth': + version: link:../../plugins/@tachybase/plugin-api-keys + '@tachybase/plugin-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-auth - '@nocobase/plugin-backup-restore': + version: link:../../plugins/@tachybase/plugin-auth + '@tachybase/plugin-backup-restore': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-backup-restore - '@nocobase/plugin-calendar': + version: link:../../plugins/@tachybase/plugin-backup-restore + '@tachybase/plugin-calendar': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-calendar - '@nocobase/plugin-cas': + version: link:../../plugins/@tachybase/plugin-calendar + '@tachybase/plugin-cas': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-cas - '@nocobase/plugin-china-region': + version: link:../../plugins/@tachybase/plugin-cas + '@tachybase/plugin-china-region': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-china-region - '@nocobase/plugin-client': + version: link:../../plugins/@tachybase/plugin-china-region + '@tachybase/plugin-client': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-client - '@nocobase/plugin-collection-manager': + version: link:../../plugins/@tachybase/plugin-client + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-collection-manager - '@nocobase/plugin-custom-request': + version: link:../../plugins/@tachybase/plugin-collection-manager + '@tachybase/plugin-custom-request': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-custom-request - '@nocobase/plugin-data-source-manager': + version: link:../../plugins/@tachybase/plugin-custom-request + '@tachybase/plugin-data-source-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-source-manager - '@nocobase/plugin-data-visualization': + version: link:../../plugins/@tachybase/plugin-data-source-manager + '@tachybase/plugin-data-visualization': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-visualization - '@nocobase/plugin-error-handler': + version: link:../../plugins/@tachybase/plugin-data-visualization + '@tachybase/plugin-error-handler': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-error-handler - '@nocobase/plugin-export': + version: link:../../plugins/@tachybase/plugin-error-handler + '@tachybase/plugin-export': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-export - '@nocobase/plugin-file-manager': + version: link:../../plugins/@tachybase/plugin-export + '@tachybase/plugin-file-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-file-manager - '@nocobase/plugin-formula-field': + version: link:../../plugins/@tachybase/plugin-file-manager + '@tachybase/plugin-formula-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-formula-field - '@nocobase/plugin-gantt': + version: link:../../plugins/@tachybase/plugin-formula-field + '@tachybase/plugin-gantt': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-gantt - '@nocobase/plugin-graph-collection-manager': + version: link:../../plugins/@tachybase/plugin-gantt + '@tachybase/plugin-graph-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-graph-collection-manager - '@nocobase/plugin-iframe-block': + version: link:../../plugins/@tachybase/plugin-graph-collection-manager + '@tachybase/plugin-iframe-block': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-iframe-block - '@nocobase/plugin-import': + version: link:../../plugins/@tachybase/plugin-iframe-block + '@tachybase/plugin-import': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-import - '@nocobase/plugin-kanban': + version: link:../../plugins/@tachybase/plugin-import + '@tachybase/plugin-kanban': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-kanban - '@nocobase/plugin-localization-management': + version: link:../../plugins/@tachybase/plugin-kanban + '@tachybase/plugin-localization-management': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-localization-management - '@nocobase/plugin-logger': + version: link:../../plugins/@tachybase/plugin-localization-management + '@tachybase/plugin-logger': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-logger - '@nocobase/plugin-map': + version: link:../../plugins/@tachybase/plugin-logger + '@tachybase/plugin-map': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-map - '@nocobase/plugin-mock-collections': + version: link:../../plugins/@tachybase/plugin-map + '@tachybase/plugin-mock-collections': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-mock-collections - '@nocobase/plugin-multi-app-share-collection': + version: link:../../plugins/@tachybase/plugin-mock-collections + '@tachybase/plugin-multi-app-share-collection': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-multi-app-share-collection - '@nocobase/plugin-oidc': + version: link:../../plugins/@tachybase/plugin-multi-app-share-collection + '@tachybase/plugin-oidc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-oidc - '@nocobase/plugin-saml': + version: link:../../plugins/@tachybase/plugin-oidc + '@tachybase/plugin-saml': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-saml - '@nocobase/plugin-sequence-field': + version: link:../../plugins/@tachybase/plugin-saml + '@tachybase/plugin-sequence-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sequence-field - '@nocobase/plugin-sms-auth': + version: link:../../plugins/@tachybase/plugin-sequence-field + '@tachybase/plugin-sms-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sms-auth - '@nocobase/plugin-snapshot-field': + version: link:../../plugins/@tachybase/plugin-sms-auth + '@tachybase/plugin-snapshot-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-snapshot-field - '@nocobase/plugin-theme-editor': + version: link:../../plugins/@tachybase/plugin-snapshot-field + '@tachybase/plugin-theme-editor': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-theme-editor - '@nocobase/plugin-ui-schema-storage': + version: link:../../plugins/@tachybase/plugin-theme-editor + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-ui-schema-storage - '@nocobase/plugin-users': + version: link:../../plugins/@tachybase/plugin-ui-schema-storage + '@tachybase/plugin-users': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-users - '@nocobase/plugin-verification': + version: link:../../plugins/@tachybase/plugin-users + '@tachybase/plugin-verification': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-verification + version: link:../../plugins/@tachybase/plugin-verification '@tachybase/client': specifier: workspace:* version: link:../../core/client @@ -4579,126 +4579,126 @@ importers: '@hera/plugin-sancongtou': specifier: workspace:* version: link:../../plugins/@hera/plugin-sancongtou - '@nocobase/plugin-acl': + '@tachybase/plugin-acl': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-acl - '@nocobase/plugin-action-bulk-edit': + version: link:../../plugins/@tachybase/plugin-acl + '@tachybase/plugin-action-bulk-edit': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-edit - '@nocobase/plugin-action-bulk-update': + version: link:../../plugins/@tachybase/plugin-action-bulk-edit + '@tachybase/plugin-action-bulk-update': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-bulk-update - '@nocobase/plugin-action-duplicate': + version: link:../../plugins/@tachybase/plugin-action-bulk-update + '@tachybase/plugin-action-duplicate': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-duplicate - '@nocobase/plugin-action-print': + version: link:../../plugins/@tachybase/plugin-action-duplicate + '@tachybase/plugin-action-print': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-action-print - '@nocobase/plugin-api-doc': + version: link:../../plugins/@tachybase/plugin-action-print + '@tachybase/plugin-api-doc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-doc - '@nocobase/plugin-api-keys': + version: link:../../plugins/@tachybase/plugin-api-doc + '@tachybase/plugin-api-keys': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-api-keys - '@nocobase/plugin-auth': + version: link:../../plugins/@tachybase/plugin-api-keys + '@tachybase/plugin-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-auth - '@nocobase/plugin-backup-restore': + version: link:../../plugins/@tachybase/plugin-auth + '@tachybase/plugin-backup-restore': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-backup-restore - '@nocobase/plugin-calendar': + version: link:../../plugins/@tachybase/plugin-backup-restore + '@tachybase/plugin-calendar': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-calendar - '@nocobase/plugin-cas': + version: link:../../plugins/@tachybase/plugin-calendar + '@tachybase/plugin-cas': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-cas - '@nocobase/plugin-china-region': + version: link:../../plugins/@tachybase/plugin-cas + '@tachybase/plugin-china-region': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-china-region - '@nocobase/plugin-client': + version: link:../../plugins/@tachybase/plugin-china-region + '@tachybase/plugin-client': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-client - '@nocobase/plugin-collection-manager': + version: link:../../plugins/@tachybase/plugin-client + '@tachybase/plugin-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-collection-manager - '@nocobase/plugin-custom-request': + version: link:../../plugins/@tachybase/plugin-collection-manager + '@tachybase/plugin-custom-request': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-custom-request - '@nocobase/plugin-data-source-manager': + version: link:../../plugins/@tachybase/plugin-custom-request + '@tachybase/plugin-data-source-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-source-manager - '@nocobase/plugin-data-visualization': + version: link:../../plugins/@tachybase/plugin-data-source-manager + '@tachybase/plugin-data-visualization': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-data-visualization - '@nocobase/plugin-error-handler': + version: link:../../plugins/@tachybase/plugin-data-visualization + '@tachybase/plugin-error-handler': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-error-handler - '@nocobase/plugin-export': + version: link:../../plugins/@tachybase/plugin-error-handler + '@tachybase/plugin-export': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-export - '@nocobase/plugin-file-manager': + version: link:../../plugins/@tachybase/plugin-export + '@tachybase/plugin-file-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-file-manager - '@nocobase/plugin-formula-field': + version: link:../../plugins/@tachybase/plugin-file-manager + '@tachybase/plugin-formula-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-formula-field - '@nocobase/plugin-gantt': + version: link:../../plugins/@tachybase/plugin-formula-field + '@tachybase/plugin-gantt': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-gantt - '@nocobase/plugin-graph-collection-manager': + version: link:../../plugins/@tachybase/plugin-gantt + '@tachybase/plugin-graph-collection-manager': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-graph-collection-manager - '@nocobase/plugin-iframe-block': + version: link:../../plugins/@tachybase/plugin-graph-collection-manager + '@tachybase/plugin-iframe-block': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-iframe-block - '@nocobase/plugin-import': + version: link:../../plugins/@tachybase/plugin-iframe-block + '@tachybase/plugin-import': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-import - '@nocobase/plugin-kanban': + version: link:../../plugins/@tachybase/plugin-import + '@tachybase/plugin-kanban': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-kanban - '@nocobase/plugin-localization-management': + version: link:../../plugins/@tachybase/plugin-kanban + '@tachybase/plugin-localization-management': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-localization-management - '@nocobase/plugin-logger': + version: link:../../plugins/@tachybase/plugin-localization-management + '@tachybase/plugin-logger': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-logger - '@nocobase/plugin-map': + version: link:../../plugins/@tachybase/plugin-logger + '@tachybase/plugin-map': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-map - '@nocobase/plugin-mock-collections': + version: link:../../plugins/@tachybase/plugin-map + '@tachybase/plugin-mock-collections': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-mock-collections - '@nocobase/plugin-multi-app-share-collection': + version: link:../../plugins/@tachybase/plugin-mock-collections + '@tachybase/plugin-multi-app-share-collection': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-multi-app-share-collection - '@nocobase/plugin-oidc': + version: link:../../plugins/@tachybase/plugin-multi-app-share-collection + '@tachybase/plugin-oidc': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-oidc - '@nocobase/plugin-saml': + version: link:../../plugins/@tachybase/plugin-oidc + '@tachybase/plugin-saml': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-saml - '@nocobase/plugin-sequence-field': + version: link:../../plugins/@tachybase/plugin-saml + '@tachybase/plugin-sequence-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sequence-field - '@nocobase/plugin-sms-auth': + version: link:../../plugins/@tachybase/plugin-sequence-field + '@tachybase/plugin-sms-auth': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-sms-auth - '@nocobase/plugin-snapshot-field': + version: link:../../plugins/@tachybase/plugin-sms-auth + '@tachybase/plugin-snapshot-field': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-snapshot-field - '@nocobase/plugin-theme-editor': + version: link:../../plugins/@tachybase/plugin-snapshot-field + '@tachybase/plugin-theme-editor': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-theme-editor - '@nocobase/plugin-ui-schema-storage': + version: link:../../plugins/@tachybase/plugin-theme-editor + '@tachybase/plugin-ui-schema-storage': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-ui-schema-storage - '@nocobase/plugin-users': + version: link:../../plugins/@tachybase/plugin-ui-schema-storage + '@tachybase/plugin-users': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-users - '@nocobase/plugin-verification': + version: link:../../plugins/@tachybase/plugin-users + '@tachybase/plugin-verification': specifier: workspace:* - version: link:../../plugins/@nocobase/plugin-verification + version: link:../../plugins/@tachybase/plugin-verification '@tachybase/client': specifier: workspace:* version: link:../../core/client diff --git a/vitest.config.mts b/vitest.config.mts index 4e6455b4d..5e7d55b40 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -1,3 +1,3 @@ -import { defineConfig } from '@nocobase/test/vitest.mjs'; +import { defineConfig } from '@tachybase/test/vitest.mjs'; export default defineConfig();