From 62b2b5c68ba4ae8122e8b5d6a91b240339c3873d Mon Sep 17 00:00:00 2001 From: jack zhang <1098626505@qq.com> Date: Tue, 30 Apr 2024 15:51:31 +0800 Subject: [PATCH] chore: add copyright information to the file header (#4028) * fix: add license code * fix: bug * fix: bug * fix: upgrade * fix: improve * chore: add copyright information to the file header * fix: d.ts bug * fix: bug * fix: e2e bug * fix: merge main --------- Co-authored-by: chenos --- addLicense.js | 80 ++++++++++++++++++ addLicenseToSource.js | 82 +++++++++++++++++++ package.json | 2 +- packages/core/acl/src/__tests__/acl.test.ts | 9 ++ .../acl/src/__tests__/allow-manager.test.ts | 9 ++ packages/core/acl/src/__tests__/allow.test.ts | 9 ++ .../acl/src/__tests__/fixed-params.test.ts | 9 ++ .../acl/src/__tests__/skip-middleware.test.ts | 9 ++ .../core/acl/src/__tests__/snippet.test.ts | 9 ++ packages/core/acl/src/acl-available-action.ts | 9 ++ .../core/acl/src/acl-available-strategy.ts | 9 ++ packages/core/acl/src/acl-resource.ts | 9 ++ packages/core/acl/src/acl-role.ts | 9 ++ packages/core/acl/src/acl.ts | 9 ++ packages/core/acl/src/allow-manager.ts | 9 ++ packages/core/acl/src/fixed-params-manager.ts | 9 ++ packages/core/acl/src/index.ts | 9 ++ packages/core/acl/src/skip-middleware.ts | 9 ++ packages/core/acl/src/snippet-manager.ts | 9 ++ .../actions/src/__tests__/add-action.test.ts | 9 ++ .../src/__tests__/create-action.test.ts | 9 ++ .../core/actions/src/__tests__/db2resource.ts | 9 ++ .../src/__tests__/destroy-action.test.ts | 9 ++ .../src/__tests__/first-or-create.test.ts | 9 ++ .../actions/src/__tests__/get-action.test.ts | 9 ++ packages/core/actions/src/__tests__/index.ts | 9 ++ .../actions/src/__tests__/list-action.test.ts | 9 ++ .../actions/src/__tests__/move-action.test.ts | 9 ++ .../src/__tests__/remove-action.test.ts | 9 ++ .../actions/src/__tests__/set-action.test.ts | 9 ++ .../src/__tests__/sort-collection.test.ts | 9 ++ .../src/__tests__/toggle-action.test.ts | 9 ++ .../src/__tests__/update-action.test.ts | 9 ++ .../src/__tests__/update-or-create.test.ts | 9 ++ packages/core/actions/src/actions/add.ts | 9 ++ packages/core/actions/src/actions/create.ts | 9 ++ packages/core/actions/src/actions/destroy.ts | 9 ++ .../actions/src/actions/first-or-create.ts | 9 ++ packages/core/actions/src/actions/get.ts | 9 ++ packages/core/actions/src/actions/index.ts | 9 ++ packages/core/actions/src/actions/list.ts | 9 ++ packages/core/actions/src/actions/move.ts | 9 ++ .../src/actions/proxy-to-repository.ts | 9 ++ packages/core/actions/src/actions/remove.ts | 9 ++ packages/core/actions/src/actions/set.ts | 9 ++ packages/core/actions/src/actions/toggle.ts | 9 ++ .../actions/src/actions/update-or-create.ts | 9 ++ packages/core/actions/src/actions/update.ts | 9 ++ packages/core/actions/src/constants.ts | 9 ++ packages/core/actions/src/index.ts | 9 ++ packages/core/actions/src/utils.ts | 9 ++ .../core/app/src/__tests__/commands.test.ts | 9 ++ packages/core/app/src/config/cache.ts | 9 ++ packages/core/app/src/config/database.ts | 9 ++ packages/core/app/src/config/index.ts | 9 ++ packages/core/app/src/config/logger.ts | 9 ++ packages/core/app/src/config/plugins.ts | 9 ++ packages/core/app/src/config/resourcer.ts | 9 ++ packages/core/app/src/config/telemetry.ts | 9 ++ packages/core/app/src/index.ts | 9 ++ .../auth/src/__tests__/auth-manager.test.ts | 9 ++ .../core/auth/src/__tests__/base-auth.test.ts | 9 ++ .../auth/src/__tests__/middleware.test.ts | 9 ++ packages/core/auth/src/actions.ts | 9 ++ packages/core/auth/src/auth-manager.ts | 9 ++ packages/core/auth/src/auth.ts | 9 ++ packages/core/auth/src/base/auth.ts | 9 ++ packages/core/auth/src/base/jwt-service.ts | 9 ++ .../auth/src/base/token-blacklist-service.ts | 9 ++ packages/core/auth/src/index.ts | 9 ++ packages/core/build/src/build.ts | 12 +++ packages/core/build/src/buildCjs.ts | 9 ++ packages/core/build/src/buildClient.ts | 9 ++ packages/core/build/src/buildDeclaration.ts | 9 ++ packages/core/build/src/buildEsm.ts | 9 ++ packages/core/build/src/buildPlugin.ts | 9 ++ packages/core/build/src/constant.ts | 9 ++ packages/core/build/src/index.d.ts | 9 ++ packages/core/build/src/index.ts | 9 ++ packages/core/build/src/tarPlugin.ts | 9 ++ packages/core/build/src/utils/addlicense.ts | 56 +++++++++++++ .../core/build/src/utils/buildPluginUtils.ts | 9 ++ .../core/build/src/utils/getDepsConfig.ts | 9 ++ packages/core/build/src/utils/getPackages.ts | 9 ++ packages/core/build/src/utils/index.ts | 9 ++ packages/core/build/src/utils/utils.ts | 9 ++ .../cache/src/__tests__/bloom-filter.test.ts | 9 ++ .../cache/src/__tests__/cache-manager.test.ts | 9 ++ .../core/cache/src/__tests__/cache.test.ts | 9 ++ packages/core/cache/src/bloom-filter/index.ts | 9 ++ .../src/bloom-filter/memory-bloom-filter.ts | 9 ++ .../src/bloom-filter/redis-bloom-filter.ts | 9 ++ packages/core/cache/src/cache-manager.ts | 9 ++ packages/core/cache/src/cache.ts | 9 ++ packages/core/cache/src/index.ts | 9 ++ packages/core/cli/src/cli.js | 9 ++ packages/core/cli/src/commands/build.js | 9 ++ packages/core/cli/src/commands/clean.js | 9 ++ .../cli/src/commands/create-nginx-conf.js | 9 ++ .../core/cli/src/commands/create-plugin.js | 9 ++ packages/core/cli/src/commands/dev.js | 9 ++ packages/core/cli/src/commands/doc.js | 9 ++ packages/core/cli/src/commands/e2e.js | 9 ++ packages/core/cli/src/commands/global.js | 9 ++ packages/core/cli/src/commands/index.js | 9 ++ packages/core/cli/src/commands/p-test.js | 9 ++ packages/core/cli/src/commands/pm2.js | 9 ++ packages/core/cli/src/commands/postinstall.js | 9 ++ packages/core/cli/src/commands/start.js | 9 ++ packages/core/cli/src/commands/tar.js | 9 ++ .../core/cli/src/commands/test-coverage.js | 9 ++ packages/core/cli/src/commands/test.js | 9 ++ packages/core/cli/src/commands/umi.js | 9 ++ packages/core/cli/src/commands/upgrade.js | 9 ++ packages/core/cli/src/index.js | 9 ++ packages/core/cli/src/plugin-generator.js | 9 ++ packages/core/cli/src/util.js | 9 ++ packages/core/client/src/acl/ACLProvider.tsx | 9 ++ packages/core/client/src/acl/ACLShortcut.tsx | 9 ++ .../src/acl/Configuration/ConfigureCenter.tsx | 9 ++ .../src/acl/Configuration/MenuConfigure.tsx | 9 ++ .../acl/Configuration/MenuItemsProvider.tsx | 9 ++ .../acl/Configuration/PermisionProvider.tsx | 9 ++ .../src/acl/Configuration/RoleConfigure.tsx | 9 ++ .../src/acl/Configuration/RoleTable.tsx | 9 ++ .../Configuration/RolesResourcesActions.tsx | 9 ++ .../src/acl/Configuration/ScopeSelect.tsx | 9 ++ .../src/acl/Configuration/StrategyActions.tsx | 9 ++ .../client/src/acl/Configuration/index.tsx | 9 ++ .../src/acl/Configuration/schemas/roles.ts | 9 ++ .../src/acl/Configuration/schemas/scopes.ts | 9 ++ .../schemas/useRoleResourceValues.ts | 9 ++ .../schemas/useSaveRoleResourceAction.ts | 9 ++ packages/core/client/src/acl/index.ts | 9 ++ packages/core/client/src/acl/style.ts | 9 ++ .../client/src/antd-config-provider/index.tsx | 9 ++ .../loadConstrueLocale.ts | 9 ++ .../core/client/src/api-client/APIClient.ts | 9 ++ .../src/api-client/APIClientProvider.tsx | 9 ++ .../api-client/__tests__/APIClient.test.tsx | 9 ++ .../core/client/src/api-client/context.ts | 9 ++ .../client/src/api-client/demos/demo1.tsx | 9 ++ .../client/src/api-client/demos/demo2.tsx | 9 ++ .../client/src/api-client/demos/demo3.tsx | 9 ++ .../client/src/api-client/hooks/assign.ts | 9 ++ .../core/client/src/api-client/hooks/index.ts | 9 ++ .../src/api-client/hooks/useAPIClient.ts | 9 ++ .../client/src/api-client/hooks/useRequest.ts | 9 ++ .../src/api-client/hooks/useResource.ts | 9 ++ packages/core/client/src/api-client/index.tsx | 9 ++ .../src/appInfo/CurrentAppInfoProvider.tsx | 9 ++ .../__tests__/CurrentAppInfoProvider.test.tsx | 9 ++ packages/core/client/src/appInfo/index.ts | 9 ++ .../AppSchemaComponentProvider.tsx | 9 ++ .../client/src/application/Application.tsx | 9 ++ .../core/client/src/application/Plugin.ts | 9 ++ .../client/src/application/PluginManager.ts | 9 ++ .../src/application/PluginSettingsManager.ts | 9 ++ .../client/src/application/RouterManager.tsx | 9 ++ .../client/src/application/WebSocketClient.ts | 9 ++ .../__tests__/Application.test.tsx | 9 ++ .../CompatibleSchemaInitializer.test.ts | 9 ++ .../src/application/__tests__/Plugin.test.ts | 9 ++ .../__tests__/PluginSettingsManager.test.ts | 9 ++ .../__tests__/RouterManager.test.tsx | 9 ++ .../__tests__/SchemaInitializer.test.ts | 9 ++ .../__tests__/SchemaToolbar.test.tsx | 9 ++ .../hoc/withDynamicSchemaProps.test.tsx | 9 ++ .../src/application/__tests__/hooks.test.tsx | 9 ++ .../SchemaInitializer.test.tsx | 9 ++ .../SchemaInitializerManager.test.ts | 9 ++ .../SchemaInitializerActionModal.test.tsx | 9 ++ .../SchemaInitializerChildren.test.tsx | 9 ++ .../SchemaInitializerDivider.test.tsx | 9 ++ .../components/SchemaInitializerItem.test.tsx | 9 ++ .../SchemaInitializerItemGroup.test.tsx | 9 ++ .../SchemaInitializerSubMenu.test.tsx | 9 ++ .../SchemaInitializerSwitch.test.tsx | 9 ++ .../components/fixtures/createAppAndHover.tsx | 9 ++ .../schema-initializer/fixures/createApp.tsx | 9 ++ .../hooks/useAriaAttributeOfMenuItem.test.tsx | 9 ++ .../useGetSchemaInitializerMenuItems.test.tsx | 9 ++ .../hooks/useSchemaInitializerRender.test.tsx | 9 ++ .../withInitializer.test.tsx | 9 ++ .../schema-settings/SchemaSettings.test.tsx | 9 ++ .../SchemaSettingsManager.test.ts | 9 ++ .../SchemaSettingsChildren.test.tsx | 9 ++ .../components/fixtures/createAppAndHover.tsx | 9 ++ .../hooks/useSchemaSettingsRender.test.tsx | 9 ++ .../src/application/__tests__/utils.test.tsx | 9 ++ .../__tests__/utils/remotePlugins.test.ts | 9 ++ .../application/components/AppComponent.tsx | 9 ++ .../application/components/BlankComponent.tsx | 9 ++ .../application/components/MainComponent.tsx | 9 ++ .../components/RouterContextCleaner.tsx | 9 ++ .../components/defaultComponents.tsx | 9 ++ .../src/application/components/index.ts | 9 ++ .../core/client/src/application/context.ts | 9 ++ .../client/src/application/demos/demo1.tsx | 9 ++ .../client/src/application/demos/demo2.tsx | 9 ++ .../client/src/application/demos/demo3.tsx | 9 ++ .../core/client/src/application/hoc/index.ts | 9 ++ .../hoc/withDynamicSchemaProps.tsx | 9 ++ .../client/src/application/hooks/index.ts | 9 ++ .../client/src/application/hooks/useApp.ts | 9 ++ .../src/application/hooks/useAppSpin.ts | 9 ++ .../client/src/application/hooks/usePlugin.ts | 9 ++ .../client/src/application/hooks/useRouter.ts | 9 ++ packages/core/client/src/application/index.ts | 9 ++ .../CompatibleSchemaInitializer.tsx | 9 ++ .../schema-initializer/SchemaInitializer.tsx | 9 ++ .../SchemaInitializerManager.ts | 9 ++ .../SchemaInitializerActionModal.tsx | 9 ++ .../components/SchemaInitializerButton.tsx | 9 ++ .../components/SchemaInitializerChildren.tsx | 9 ++ .../components/SchemaInitializerDivider.tsx | 9 ++ .../components/SchemaInitializerItem.tsx | 9 ++ .../components/SchemaInitializerItemGroup.tsx | 9 ++ .../components/SchemaInitializerItems.tsx | 9 ++ .../components/SchemaInitializerSelect.tsx | 9 ++ .../components/SchemaInitializerSubMenu.tsx | 9 ++ .../components/SchemaInitializerSwitch.tsx | 9 ++ .../schema-initializer/components/index.ts | 9 ++ .../schema-initializer/components/style.ts | 9 ++ .../schema-initializer/context/index.ts | 9 ++ .../schema-initializer/hooks/index.tsx | 9 ++ .../hooks/useAriaAttributeOfMenuItem.ts | 9 ++ .../useGetSchemaInitializerMenuItems.tsx | 9 ++ .../hooks/useSchemaInitializerRender.tsx | 9 ++ .../application/schema-initializer/index.ts | 9 ++ .../application/schema-initializer/types.ts | 9 ++ .../schema-initializer/withInitializer.tsx | 9 ++ .../schema-settings/SchemaSettings.tsx | 9 ++ .../schema-settings/SchemaSettingsManager.tsx | 9 ++ .../components/SchemaSettingsChildren.tsx | 9 ++ .../components/SchemaSettingsIcon.tsx | 9 ++ .../components/SchemaSettingsWrapper.tsx | 9 ++ .../schema-settings/components/index.ts | 9 ++ .../context/SchemaSettingItemContext.ts | 9 ++ .../schema-settings/context/index.ts | 9 ++ .../schema-settings/hooks/index.tsx | 9 ++ .../hooks/useSchemaSettingsRender.tsx | 9 ++ .../src/application/schema-settings/index.ts | 9 ++ .../src/application/schema-settings/types.ts | 9 ++ .../schema-toolbar/context/index.tsx | 9 ++ .../schema-toolbar/hooks/index.tsx | 9 ++ .../src/application/schema-toolbar/index.ts | 9 ++ .../src/application/utils/globalDeps.ts | 9 ++ .../client/src/application/utils/index.tsx | 9 ++ .../src/application/utils/remotePlugins.ts | 9 ++ .../client/src/application/utils/requirejs.ts | 9 ++ .../client/src/application/utils/types.ts | 9 ++ .../client/src/async-data-provider/index.tsx | 9 ++ .../src/block-provider/BlockProvider.tsx | 9 ++ .../BlockSchemaComponentProvider.tsx | 9 ++ .../block-provider/DetailsBlockProvider.tsx | 9 ++ .../FilterFormBlockProvider.tsx | 9 ++ .../src/block-provider/FormBlockProvider.tsx | 9 ++ .../src/block-provider/FormFieldProvider.tsx | 9 ++ .../src/block-provider/TableBlockProvider.tsx | 9 ++ .../src/block-provider/TableFieldProvider.tsx | 9 ++ .../block-provider/TableSelectorProvider.tsx | 9 ++ .../block-provider/TemplateBlockProvider.tsx | 9 ++ .../client/src/block-provider/hooks/index.ts | 9 ++ .../hooks/useDataBlockParentRecord.tsx | 9 ++ .../hooks/useFormActiveFields.tsx | 9 ++ .../block-provider/hooks/useParsedFilter.ts | 9 ++ .../core/client/src/block-provider/index.tsx | 9 ++ .../core/client/src/china-region/index.tsx | 9 ++ .../CollectionHistoryProvider.tsx | 9 ++ .../CollectionManagerProvider.tsx | 9 ++ ...llectionManagerSchemaComponentProvider.tsx | 9 ++ .../CollectionProvider_deprecated.tsx | 9 ++ .../Configuration/AddCollectionAction.tsx | 9 ++ .../Configuration/AddFieldAction.tsx | 9 ++ .../Configuration/AddSubFieldAction.tsx | 9 ++ .../Configuration/DeleteCollectionAction.tsx | 9 ++ .../Configuration/EditCollectionAction.tsx | 9 ++ .../Configuration/EditFieldAction.tsx | 9 ++ .../Configuration/EditSubFieldAction.tsx | 9 ++ .../OverridingCollectionField.tsx | 9 ++ .../Configuration/SyncFieldsAction.tsx | 9 ++ .../Configuration/SyncSQLFieldsAction.tsx | 9 ++ .../Configuration/ViewInheritedField.tsx | 9 ++ .../components/CollectionCategory.tsx | 9 ++ .../CollectionFieldInterfaceTag.tsx | 9 ++ .../components/CollectionTemplateTag.tsx | 9 ++ .../Configuration/components/FieldSummary.tsx | 9 ++ .../Configuration/components/Summary.tsx | 9 ++ .../components/TemplateSummary.tsx | 9 ++ .../Configuration/components/index.tsx | 9 ++ .../Configuration/index.tsx | 9 ++ .../Configuration/interfaces.tsx | 9 ++ .../ResourceActionProvider.tsx | 9 ++ .../src/collection-manager/action-hooks.ts | 9 ++ .../collection-manager/collectionPlugin.ts | 9 ++ .../client/src/collection-manager/context.ts | 9 ++ .../src/collection-manager/demos/demo2.tsx | 9 ++ .../src/collection-manager/demos/demo3.tsx | 9 ++ .../src/collection-manager/demos/demo4.tsx | 9 ++ .../src/collection-manager/demos/demo5.tsx | 9 ++ .../src/collection-manager/hooks/index.ts | 9 ++ .../hooks/useCollectionDataSource.ts | 9 ++ .../hooks/useCollectionField_deprecated.ts | 9 ++ .../hooks/useCollectionManager_deprecated.ts | 9 ++ .../hooks/useCollection_deprecated.ts | 9 ++ .../collection-manager/hooks/useDialect.ts | 9 ++ .../client/src/collection-manager/index.tsx | 9 ++ .../interfaces/__tests__/json.tsx | 9 ++ .../collection-manager/interfaces/checkbox.ts | 9 ++ .../interfaces/checkboxGroup.ts | 9 ++ .../interfaces/chinaRegion.ts | 9 ++ .../interfaces/collection.ts | 9 ++ .../collection-manager/interfaces/color.ts | 9 ++ .../interfaces/components/index.tsx | 9 ++ .../interfaces/createdAt.ts | 9 ++ .../interfaces/createdBy.ts | 9 ++ .../collection-manager/interfaces/datetime.ts | 9 ++ .../collection-manager/interfaces/email.ts | 9 ++ .../src/collection-manager/interfaces/icon.ts | 9 ++ .../src/collection-manager/interfaces/id.ts | 9 ++ .../collection-manager/interfaces/index.ts | 9 ++ .../collection-manager/interfaces/input.ts | 9 ++ .../collection-manager/interfaces/integer.ts | 9 ++ .../collection-manager/interfaces/json.tsx | 9 ++ .../collection-manager/interfaces/linkTo.ts | 9 ++ .../src/collection-manager/interfaces/m2m.tsx | 9 ++ .../src/collection-manager/interfaces/m2o.tsx | 9 ++ .../collection-manager/interfaces/markdown.ts | 9 ++ .../interfaces/multipleSelect.ts | 9 ++ .../collection-manager/interfaces/nanoid.ts | 9 ++ .../collection-manager/interfaces/number.ts | 9 ++ .../src/collection-manager/interfaces/o2m.tsx | 9 ++ .../src/collection-manager/interfaces/o2o.tsx | 9 ++ .../collection-manager/interfaces/password.ts | 9 ++ .../collection-manager/interfaces/percent.ts | 9 ++ .../collection-manager/interfaces/phone.ts | 9 ++ .../interfaces/properties/index.ts | 9 ++ .../interfaces/properties/operators.ts | 9 ++ .../interfaces/radioGroup.ts | 9 ++ .../collection-manager/interfaces/richText.ts | 9 ++ .../collection-manager/interfaces/select.ts | 9 ++ .../src/collection-manager/interfaces/sort.ts | 9 ++ .../collection-manager/interfaces/subTable.ts | 9 ++ .../collection-manager/interfaces/tableoid.ts | 9 ++ .../collection-manager/interfaces/textarea.ts | 9 ++ .../src/collection-manager/interfaces/time.ts | 9 ++ .../collection-manager/interfaces/types.ts | 9 ++ .../interfaces/unixTimestamp.tsx | 9 ++ .../interfaces/updatedAt.ts | 9 ++ .../interfaces/updatedBy.ts | 9 ++ .../src/collection-manager/interfaces/url.ts | 9 ++ .../src/collection-manager/interfaces/uuid.ts | 9 ++ .../mixins/InheritanceCollectionMixin.ts | 9 ++ .../src/collection-manager/sub-table.tsx | 9 ++ .../templates/components/PresetFields.tsx | 9 ++ .../templates/components/PreviewFields.tsx | 9 ++ .../templates/components/PreviewTable.tsx | 9 ++ .../templates/components/UnSupportFields.tsx | 9 ++ .../sql-collection/FieldsConfigure.tsx | 9 ++ .../sql-collection/PreviewTable.tsx | 9 ++ .../components/sql-collection/SQLInput.tsx | 9 ++ .../sql-collection/SQLRequestProvider.tsx | 9 ++ .../components/sql-collection/index.ts | 9 ++ .../templates/expression.tsx | 9 ++ .../collection-manager/templates/general.tsx | 9 ++ .../collection-manager/templates/index.tsx | 9 ++ .../templates/properties/index.ts | 9 ++ .../src/collection-manager/templates/sql.tsx | 9 ++ .../src/collection-manager/templates/tree.tsx | 9 ++ .../src/collection-manager/templates/types.ts | 9 ++ .../src/collection-manager/templates/view.tsx | 9 ++ .../client/src/collection-manager/types.ts | 9 ++ .../client/src/collection-manager/utils.ts | 9 ++ .../client/src/common/SelectWithTitle.tsx | 9 ++ packages/core/client/src/common/index.ts | 9 ++ .../src/common/useFieldComponentName.tsx | 9 ++ .../src/common/useNiceDropdownHeight.ts | 9 ++ .../src/css-variable/CSSVariableProvider.tsx | 9 ++ .../core/client/src/css-variable/index.ts | 9 ++ .../CollectionFieldInterfaceManager.test.ts | 9 ++ .../collection-field/CollectionField.test.tsx | 9 ++ .../CollectionFieldProvider.test.tsx | 9 ++ .../CollectionRecord.test.tsx | 9 ++ .../CollectionRecordProvider.test.tsx | 9 ++ .../collection-record/isNewRecord.test.ts | 9 ++ .../CollectionTemplateManager.test.ts | 9 ++ .../collection/AssociationProvider.test.tsx | 9 ++ .../__tests__/collection/Collection.test.tsx | 9 ++ .../collection/CollectionManager.test.tsx | 9 ++ .../CollectionManagerProvider.test.tsx | 9 ++ .../collection/CollectionProvider.test.tsx | 9 ++ .../ExtendCollectionsProvider.test.tsx | 9 ++ .../CollectionDeletedPlaceholder.test.tsx | 9 ++ .../data-block/DataBlockProvider.test.tsx | 9 ++ .../DataBlockRequestProvider.test.tsx | 9 ++ ...sociation-table-list-and-parent-record.tsx | 9 ++ .../association-table-list-and-source-id.tsx | 9 ++ .../collection-form-create.tsx | 9 ++ .../collection-form-get-and-update.tsx | 9 ++ .../collection-form-record-and-update.tsx | 9 ++ .../collection-table-list.tsx | 9 ++ .../data-block/data-block-demos/createApp.tsx | 9 ++ .../CollectionDataSourceProvider.test.tsx | 9 ++ .../__tests__/data-source/DataSource.test.ts | 9 ++ .../data-source/DataSourceManager.test.ts | 9 ++ .../DataSourceManagerProvider.test.tsx | 9 ++ .../data-source/DataSourceProvider.test.tsx | 9 ++ .../src/data-source/__tests__/utils.test.ts | 9 ++ .../CollectionFieldInterface.ts | 9 ++ .../CollectionFieldInterfaceManager.ts | 9 ++ .../collection-field-interface/index.ts | 9 ++ .../collection-field/CollectionField.tsx | 9 ++ .../CollectionFieldProvider.tsx | 9 ++ .../src/data-source/collection-field/index.ts | 9 ++ .../collection-record/CollectionRecord.ts | 9 ++ .../CollectionRecordProvider.tsx | 9 ++ .../data-source/collection-record/index.ts | 9 ++ .../collection-record/isNewRecord.ts | 9 ++ .../collection-template/CollectionTemplate.ts | 9 ++ .../CollectionTemplateManager.ts | 9 ++ .../data-source/collection-template/index.ts | 9 ++ .../collection/AssociationProvider.tsx | 9 ++ .../src/data-source/collection/Collection.ts | 9 ++ .../collection/CollectionManager.ts | 9 ++ .../collection/CollectionManagerProvider.tsx | 9 ++ .../collection/CollectionProvider.tsx | 9 ++ .../collection/ExtendCollectionsProvider.tsx | 9 ++ .../src/data-source/collection/index.ts | 9 ++ .../src/data-source/collection/utils.ts | 9 ++ .../CollectionDeletedPlaceholder.tsx | 9 ++ .../DataSourceApplicationProvider.tsx | 9 ++ .../src/data-source/components/index.ts | 9 ++ .../data-block/DataBlockProvider.tsx | 9 ++ .../data-block/DataBlockRequestProvider.tsx | 9 ++ .../data-block/DataBlockResourceProvider.tsx | 9 ++ .../src/data-source/data-block/index.ts | 9 ++ .../src/data-source/data-source/DataSource.ts | 9 ++ .../data-source/DataSourceManager.ts | 9 ++ .../data-source/DataSourceManagerProvider.tsx | 9 ++ .../data-source/DataSourceProvider.tsx | 9 ++ .../src/data-source/data-source/index.ts | 9 ++ packages/core/client/src/data-source/index.ts | 9 ++ packages/core/client/src/data-source/utils.ts | 9 ++ .../core/client/src/document-title/index.tsx | 9 ++ .../src/filter-provider/FilterProvider.tsx | 9 ++ .../__tests__/transformToFilter.ts | 9 ++ .../filter-provider/__tests__/useFilter.tsx | 9 ++ .../filter-provider/__tests__/utiles.test.ts | 9 ++ .../core/client/src/filter-provider/index.ts | 9 ++ .../core/client/src/filter-provider/utils.ts | 9 ++ .../client/src/flag-provider/FlagProvider.tsx | 9 ++ .../__tests__/flag-provider.test.tsx | 9 ++ .../client/src/flag-provider/hooks/useFlag.ts | 9 ++ .../core/client/src/flag-provider/index.tsx | 9 ++ .../src/global-theme/AntdAppProvider.tsx | 9 ++ .../client/src/global-theme/compatOldTheme.ts | 9 ++ .../src/global-theme/customAlgorithm.ts | 9 ++ .../client/src/global-theme/defaultTheme.ts | 9 ++ .../core/client/src/global-theme/index.tsx | 9 ++ packages/core/client/src/global-theme/type.ts | 9 ++ packages/core/client/src/hooks/index.ts | 9 ++ .../client/src/hooks/useAdminSchemaUid.ts | 9 ++ .../core/client/src/hooks/useMenuItem.tsx | 9 ++ packages/core/client/src/hooks/useViewport.ts | 9 ++ packages/core/client/src/i18n/i18n.ts | 9 ++ packages/core/client/src/i18n/index.ts | 9 ++ packages/core/client/src/icon/Icon.tsx | 9 ++ .../client/src/icon/__tests__/icon.test.tsx | 9 ++ .../core/client/src/icon/demos/antd-icon.tsx | 9 ++ .../client/src/icon/demos/custom-icon.tsx | 9 ++ .../core/client/src/icon/demos/iconfont.tsx | 9 ++ .../client/src/icon/demos/register-icon.tsx | 9 ++ packages/core/client/src/icon/index.ts | 9 ++ packages/core/client/src/index.ts | 9 ++ packages/core/client/src/locale/index.ts | 9 ++ .../modules/actions/ActionSchemaToolbar.tsx | 9 ++ .../__e2e__/action.schemaSetting.test.ts | 9 ++ .../__e2e__/bulk-destroy/basic.test.ts | 9 ++ .../actions/__e2e__/bulk-destroy/templates.ts | 9 ++ .../src/modules/actions/__e2e__/templates.ts | 9 ++ .../add-child/CreateChildInitializer.tsx | 9 ++ .../add-child/addChildActionSettings.tsx | 9 ++ .../add-new/CreateActionInitializer.tsx | 9 ++ .../actions/add-new/addNewActionSettings.tsx | 9 ++ .../add-new/createFormBlockInitializers.tsx | 9 ++ .../CustomizeAddRecordActionInitializer.tsx | 9 ++ .../customizeAddRecordActionSettings.tsx | 9 ++ .../customizeCreateFormBlockInitializers.tsx | 9 ++ .../BulkDestroyActionInitializer.tsx | 9 ++ .../bulk-destroy/bulkDeleteActionSettings.tsx | 9 ++ .../delete/DestroyActionInitializer.tsx | 9 ++ .../actions/delete/deleteActionSettings.tsx | 9 ++ .../DisassociateActionInitializer.tsx | 9 ++ .../disassociate/__e2e__/disassociate.test.ts | 9 ++ .../disassociate/__e2e__/templatesOfPage.ts | 9 ++ .../disassociateActionSettings.tsx | 9 ++ .../ExpandableActionInitializer.tsx | 9 ++ .../expendableActionSettings.tsx | 9 ++ .../filter/FilterActionInitializer.tsx | 9 ++ .../actions/filter/filterActionSettings.tsx | 9 ++ .../refresh/RefreshActionInitializer.tsx | 9 ++ .../actions/refresh/refreshActionSettings.tsx | 9 ++ .../SaveRecordActionInitializer.tsx | 9 ++ .../customizeSaveRecordActionSettings.tsx | 9 ++ .../submit/CreateSubmitActionInitializer.tsx | 9 ++ .../submit/UpdateSubmitActionInitializer.tsx | 9 ++ .../submit/createSubmitActionSettings.tsx | 9 ++ .../submit/updateSubmitActionSettings.tsx | 9 ++ .../UpdateRecordActionInitializer.tsx | 9 ++ .../customizeUpdateRecordActionSettings.tsx | 9 ++ .../PopupActionInitializer.tsx | 9 ++ .../RecordFormBlockInitializers.tsx | 9 ++ .../UpdateActionInitializer.tsx | 9 ++ .../view-edit-popup/ViewActionInitializer.tsx | 9 ++ .../__e2e__/linkageRules.test.ts | 9 ++ .../view-edit-popup/__e2e__/templatesOfBug.ts | 9 ++ .../customizePopupActionSettings.tsx | 9 ++ .../view-edit-popup/editActionSettings.tsx | 9 ++ .../view-edit-popup/viewActionSettings.tsx | 9 ++ .../src/modules/blocks/BlockSchemaToolbar.tsx | 9 ++ .../__tests__/BlockSchemaToolbar.test.tsx | 9 ++ .../DetailsActionInitializers.tsx | 9 ++ .../details-multi/DetailsBlockInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../__e2e__/schemaSettings.test.ts | 9 ++ .../setDataLoadingModeSettingsItem.test.ts | 9 ++ .../details-multi/__e2e__/templatesOfBug.ts | 9 ++ ...eateDetailsBlockWithPagingUISchema.test.ts | 9 ++ .../createDetailsWithPaginationUISchema.ts | 9 ++ .../detailsWithPaginationSettings.tsx | 9 ++ .../useDetailsWithPaginationBlockParams.ts | 9 ++ .../useDetailsWithPaginationDecoratorProps.ts | 9 ++ .../hooks/useDetailsWithPaginationProps.ts | 9 ++ .../setDataLoadingModeSettingsItem.tsx | 9 ++ .../ReadPrettyFormActionInitializers.tsx | 9 ++ .../ReadPrettyFormItemInitializers.tsx | 9 ++ .../RecordReadPrettyFormBlockInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../__e2e__/schemaSettings.test.ts | 9 ++ .../details-single/__e2e__/templatesOfBug.ts | 9 ++ ...eDetailsBlockWithoutPagingUISchema.test.ts | 9 ++ .../details-single/createDetailsUISchema.ts | 9 ++ .../details-single/detailsBlockSettings.ts | 9 ++ .../hooks/useDetailsDecoratorProps.ts | 9 ++ .../details-single/hooks/useDetailsProps.ts | 9 ++ .../form/CreateFormBlockInitializer.tsx | 9 ++ .../data-blocks/form/FormBlockInitializer.tsx | 9 ++ .../form/FormItemSchemaToolbar.tsx | 9 ++ .../form/RecordFormBlockInitializer.tsx | 9 ++ .../form-create/associationForm.test.ts | 9 ++ .../__e2e__/form-create/dragAndDrop.test.ts | 9 ++ .../lazyLoadAssociationFields.test.ts | 9 ++ .../form-create/lazyLoadVariables.test.ts | 9 ++ .../form-create/schemaInitializer.test.ts | 9 ++ .../form-create/schemaSettings.test.ts | 9 ++ .../__e2e__/form-create/templatesOfBug.ts | 9 ++ .../__e2e__/form-edit/bulkEditForm.test.ts | 9 ++ .../form-edit/deprecatedVariables.test.ts | 9 ++ .../form-edit/schemaInitializer.test.ts | 9 ++ .../__e2e__/form-edit/schemaSettings.test.ts | 9 ++ .../form/__e2e__/form-edit/templatesOfBug.ts | 9 ++ .../createCreateFormBlockUISchema.test.ts | 9 ++ .../createEditFormBlockUISchema.test.ts | 9 ++ .../__tests__/fieldSettingsFormItem.test.tsx | 9 ++ .../form/createCreateFormBlockUISchema.ts | 9 ++ .../form/createEditFormBlockUISchema.ts | 9 ++ .../form/createFormActionInitializers.tsx | 9 ++ .../form/createFormBlockSettings.tsx | 9 ++ .../data-blocks/form/editFormBlockSettings.ts | 9 ++ .../form/fieldSettingsFormItem.tsx | 9 ++ .../form/formActionInitializers.tsx | 9 ++ .../data-blocks/form/formItemInitializers.tsx | 9 ++ .../hooks/useCreateFormBlockDecoratorProps.ts | 9 ++ .../form/hooks/useCreateFormBlockProps.ts | 9 ++ .../hooks/useEditFormBlockDecoratorProps.ts | 9 ++ .../form/hooks/useEditFormBlockProps.ts | 9 ++ .../modules/blocks/data-blocks/form/index.ts | 9 ++ .../form/updateFormActionInitializers.tsx | 9 ++ .../grid-card/GridCardActionInitializers.tsx | 9 ++ .../grid-card/GridCardBlockInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../grid-card/__e2e__/schemaSettings.test.ts | 9 ++ .../grid-card/__e2e__/templatesOfBug.ts | 9 ++ .../createGridCardBlockSchema.test.ts | 9 ++ .../grid-card/createGridCardBlockUISchema.ts | 9 ++ .../grid-card/gridCardBlockSettings.ts | 9 ++ .../gridCardItemActionInitializers.tsx | 9 ++ .../hooks/useGridCardBlockDecoratorProps.ts | 9 ++ .../grid-card/hooks/useGridCardBlockParams.ts | 9 ++ .../blocks/data-blocks/grid-card/utils.ts | 9 ++ .../list/ListActionInitializers.tsx | 9 ++ .../data-blocks/list/ListBlockInitializer.tsx | 9 ++ .../list/__e2e__/schemaInitializer.test.ts | 9 ++ .../list/__e2e__/schemaSettings.test.ts | 9 ++ .../list/__e2e__/templatesOfBug.ts | 9 ++ .../__tests__/createListBlockSchema.test.ts | 9 ++ .../list/createListBlockUISchema.ts | 9 ++ .../list/hooks/useListBlockDecoratorProps.ts | 9 ++ .../data-blocks/list/listBlockSettings.ts | 9 ++ .../list/listItemActionInitializers.tsx | 9 ++ .../TableSelectorInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../__e2e__/schemaSettings.test.ts | 9 ++ .../table-selector/__e2e__/templatesOfBug.ts | 9 ++ .../table-selector/__e2e__/utils.ts | 9 ++ .../createTableSelectorSchema.test.ts | 9 ++ .../createTableSelectorUISchema.ts | 9 ++ .../hooks/useTableSelectorDecoratorProps.ts | 9 ++ .../data-blocks/table-selector/index.ts | 9 ++ .../tableSelectorBlockSettings.ts | 9 ++ .../table/TableActionColumnInitializers.tsx | 9 ++ .../table/TableActionInitializers.tsx | 9 ++ .../table/TableBlockInitializer.tsx | 9 ++ .../table/TableColumnInitializers.tsx | 9 ++ .../table/TableColumnSchemaToolbar.tsx | 9 ++ .../data-blocks/table/TreeRecordProvider.tsx | 9 ++ .../table/__e2e__/actions/duplicate.test.ts | 9 ++ .../table/__e2e__/actions/filter.test.ts | 9 ++ .../table/__e2e__/checkboxForTableRow.test.ts | 9 ++ .../table/__e2e__/dragAndDrop.test.ts | 9 ++ .../table/__e2e__/pagination.test.ts | 9 ++ .../table/__e2e__/schemaInitializer.test.ts | 9 ++ .../table/__e2e__/schemaSettings.test.ts | 9 ++ .../table/__e2e__/schemaSettings2.test.ts | 9 ++ .../table/__e2e__/templatesOfBug.ts | 9 ++ .../table/__e2e__/tree/schemaSettings.test.ts | 9 ++ .../__tests__/createTableBLockSchema.test.ts | 9 ++ .../table/createTableBlockUISchema.ts | 9 ++ .../hooks/useTableBlockDecoratorProps.ts | 9 ++ .../table/hooks/useTableBlockProps.tsx | 9 ++ .../modules/blocks/data-blocks/table/index.ts | 9 ++ .../data-blocks/table/tableBlockSettings.tsx | 9 ++ .../data-blocks/table/tableColumnSettings.tsx | 9 ++ .../blocks/data-blocks/table/utils.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../__e2e__/schemaSettings.test.ts | 9 ++ .../blocks/filter-blocks/__e2e__/templates.ts | 9 ++ .../collapse/CollapseItemSchemaToolbar.tsx | 9 ++ .../FilterCollapseBlockInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../collapse/__e2e__/schemaSettings.test.ts | 9 ++ .../collapse/__e2e__/templatesOfBug.ts | 9 ++ .../createCollapseBlockSchema.test.ts | 9 ++ .../createFilterCollapseBlockSchema.ts | 9 ++ .../collapse/filterCollapseBlockSettings.ts | 9 ++ .../filterCollapseItemFieldSettings.ts | 9 ++ .../filterCollapseItemInitializer.tsx | 9 ++ .../hooks/useCollapseBlockDecoratorProps.ts | 9 ++ .../form/FilterFormActionInitializers.tsx | 9 ++ .../form/FilterFormBlockInitializer.tsx | 9 ++ .../form/__e2e__/schemaInitializer.test.ts | 9 ++ .../form/__e2e__/schemaSettings.test.ts | 9 ++ .../form/__e2e__/templatesOfBug.ts | 9 ++ .../createFilterFormBlockSchema.test.ts | 9 ++ .../form/createFilterFormBlockSchema.ts | 9 ++ .../form/filterFormBlockSettings.ts | 9 ++ .../form/filterFormItemFieldSettings.ts | 9 ++ .../form/filterFormItemInitializers.tsx | 9 ++ .../hooks/useFilterFormBlockDecoratorProps.ts | 9 ++ .../form/hooks/useFilterFormBlockProps.ts | 9 ++ .../markdown/MarkdownBlockInitializer.tsx | 9 ++ .../markdown/MarkdownFormItemInitializer.tsx | 9 ++ .../__e2e__/schemaInitializer.test.ts | 9 ++ .../markdown/__e2e__/schemaSettings.test.ts | 9 ++ .../markdown/__e2e__/templatesOfBug.ts | 9 ++ .../markdown/markdownBlockSettings.ts | 9 ++ .../modules/blocks/useParentRecordCommon.ts | 9 ++ .../client/src/modules/blocks/useSourceId.tsx | 9 ++ .../client/src/modules/blocks/useSourceKey.ts | 9 ++ .../cascadeSelectComponentFieldSettings.tsx | 9 ++ .../DatePicker/__e2e__/schemaSettings.test.ts | 9 ++ .../component/DatePicker/__e2e__/utils.ts | 9 ++ .../datePickerComponentFieldSettings.tsx | 9 ++ .../fileManagerComponentFieldSettings.tsx | 9 ++ .../previewComponentFieldSettings.tsx | 9 ++ ...uploadAttachmentComponentFieldSettings.tsx | 9 ++ .../inputNumberComponentFieldSettings.tsx | 9 ++ .../Nester/subformComponentFieldSettings.tsx | 9 ++ .../Picker/TableSelectorInitializers.tsx | 9 ++ .../Picker/__e2e__/schemaSettings.test.ts | 9 ++ .../Picker/__e2e__/templatesOfBug.ts | 9 ++ .../recordPickerComponentFieldSettings.tsx | 9 ++ .../subformPopoverComponentFieldSettings.tsx | 9 ++ .../Select/__e2e__/selectDataScope.test.ts | 9 ++ .../Select/__e2e__/templatesOfBug.ts | 9 ++ .../Select/selectComponentFieldSettings.tsx | 9 ++ .../subTablePopoverComponentFieldSettings.tsx | 9 ++ .../Tag/tagComponentFieldSettings.tsx | 9 ++ .../unixTimestampComponentFieldSettings.tsx | 9 ++ .../CollectionFieldInitializer.tsx | 9 ++ .../TableCollectionFieldInitializer.tsx | 9 ++ .../client/src/modules/menu/GroupItem.tsx | 9 ++ .../client/src/modules/menu/LinkMenuItem.tsx | 9 ++ .../client/src/modules/menu/PageMenuItem.tsx | 9 ++ .../modules/menu/__e2e__/dragAndDrop.test.ts | 9 ++ .../menu/__e2e__/schemaInitializer.test.ts | 9 ++ .../menu/__e2e__/schemaSettings.test.ts | 9 ++ .../modules/menu/__e2e__/templatesOfBug.ts | 9 ++ .../src/modules/menu/menuItemInitializer.tsx | 9 ++ .../src/modules/page/BlockInitializers.tsx | 9 ++ .../page/__e2e__/blockInitializers.test.ts | 9 ++ .../modules/page/__e2e__/dragAndDrop.test.ts | 9 ++ .../page/__e2e__/schemaInitailizer.test.ts | 9 ++ .../page/__e2e__/schemaSettings.test.ts | 9 ++ .../modules/page/__e2e__/templatesOfBug.ts | 9 ++ .../__e2e__/pluginManager.test.ts | 9 ++ .../plugin-manager/__e2e__/templatesOfBug.ts | 9 ++ .../popup/__e2e__/schemaInitializer.test.ts | 9 ++ .../popup/__e2e__/schemaSettings.test.ts | 9 ++ .../modules/popup/__e2e__/templatesOfBug.ts | 9 ++ .../src/modules/popup/__e2e__/zIndex.test.ts | 9 ++ .../user-center/__e2e__/settings.test.ts | 9 ++ .../src/modules/variable/DeclareVariable.tsx | 9 ++ .../modules/variable/__e2e__/basic.test.ts | 9 ++ .../src/modules/variable/__e2e__/templates.ts | 9 ++ .../variable/__tests__/useVariable.test.tsx | 9 ++ .../src/modules/variable/useVariable.ts | 9 ++ .../src/nocobase-buildin-plugin/index.tsx | 9 ++ .../plugins/LocalePlugin.ts | 9 ++ .../PinnedPluginListProvider.tsx | 9 ++ .../core/client/src/plugin-manager/context.ts | 9 ++ .../core/client/src/plugin-manager/index.ts | 9 ++ packages/core/client/src/pm/PluginCard.tsx | 9 ++ packages/core/client/src/pm/PluginDetail.tsx | 9 ++ .../core/client/src/pm/PluginDocument.tsx | 9 ++ .../src/pm/PluginForm/form/PluginNpmForm.tsx | 9 ++ .../pm/PluginForm/form/PluginUploadForm.tsx | 9 ++ .../src/pm/PluginForm/form/PluginUrlForm.tsx | 9 ++ .../pm/PluginForm/modal/PluginAddModal.tsx | 9 ++ .../PluginForm/modal/PluginUpgradeModal.tsx | 9 ++ packages/core/client/src/pm/PluginManager.tsx | 9 ++ .../core/client/src/pm/PluginManagerLink.tsx | 9 ++ packages/core/client/src/pm/PluginSetting.tsx | 9 ++ packages/core/client/src/pm/index.tsx | 9 ++ packages/core/client/src/pm/style.ts | 9 ++ packages/core/client/src/pm/types.ts | 9 ++ packages/core/client/src/powered-by/index.tsx | 9 ++ .../core/client/src/record-provider/index.tsx | 9 ++ .../__tests__/admin-layout.test.tsx | 9 ++ .../route-switch/antd/admin-layout/index.tsx | 9 ++ .../client/src/route-switch/antd/index.ts | 9 ++ .../__tests__/route-schema-component.test.tsx | 9 ++ .../antd/route-schema-component/index.tsx | 9 ++ .../core/client/src/route-switch/index.tsx | 9 ++ .../antd/AntdSchemaComponentProvider.tsx | 9 ++ .../antd/__builtins__/hooks/index.ts | 9 ++ .../antd/__builtins__/hooks/useConfig.ts | 9 ++ .../antd/__builtins__/hooks/usePrefixCls.ts | 9 ++ .../antd/__builtins__/hooks/useToken.ts | 9 ++ .../antd/__builtins__/index.ts | 9 ++ .../antd/__builtins__/loading.ts | 9 ++ .../antd/__builtins__/portal.tsx | 9 ++ .../antd/__builtins__/render.ts | 9 ++ .../antd/__builtins__/style.ts | 9 ++ .../antd/action/Action.Container.tsx | 9 ++ .../antd/action/Action.Designer.tsx | 9 ++ .../antd/action/Action.Drawer.style.ts | 9 ++ .../antd/action/Action.Drawer.tsx | 9 ++ .../antd/action/Action.Link.tsx | 9 ++ .../antd/action/Action.Modal.tsx | 9 ++ .../antd/action/Action.Page.tsx | 9 ++ .../antd/action/Action.Popover.tsx | 9 ++ .../antd/action/Action.style.ts | 9 ++ .../schema-component/antd/action/Action.tsx | 9 ++ .../antd/action/ActionBar.tsx | 9 ++ .../action/__tests__/Action.Designer.test.tsx | 9 ++ .../antd/action/__tests__/action.test.tsx | 9 ++ .../schema-component/antd/action/context.tsx | 9 ++ .../antd/action/demos/demo1.tsx | 9 ++ .../antd/action/demos/demo2.tsx | 9 ++ .../antd/action/demos/demo3.tsx | 9 ++ .../antd/action/demos/demo4.tsx | 9 ++ .../antd/action/demos/demo5.tsx | 9 ++ .../antd/action/demos/demo6.tsx | 9 ++ .../src/schema-component/antd/action/hooks.ts | 9 ++ .../action/hooks/useGetAriaLabelOfAction.ts | 9 ++ .../action/hooks/useGetAriaLabelOfDrawer.ts | 9 ++ .../action/hooks/useGetAriaLabelOfModal.ts | 9 ++ .../action/hooks/useGetAriaLabelOfPopover.ts | 9 ++ .../action/hooks/useSetAriaLabelForDrawer.ts | 9 ++ .../action/hooks/useSetAriaLabelForModal.ts | 9 ++ .../action/hooks/useSetAriaLabelForPopover.ts | 9 ++ .../schema-component/antd/action/index.tsx | 9 ++ .../src/schema-component/antd/action/types.ts | 9 ++ .../src/schema-component/antd/action/utils.ts | 9 ++ .../appends-tree-select/AppendsTreeSelect.tsx | 9 ++ .../antd/appends-tree-select/index.ts | 9 ++ .../AssociationFieldProvider.tsx | 9 ++ .../association-field/AssociationSelect.tsx | 9 ++ .../antd/association-field/Editable.tsx | 9 ++ .../antd/association-field/FileManager.tsx | 9 ++ .../InternalCascadeSelect.tsx | 9 ++ .../antd/association-field/InternalNester.tsx | 9 ++ .../antd/association-field/InternalPicker.tsx | 9 ++ .../InternalPopoverNester.tsx | 9 ++ .../association-field/InternalSubTable.tsx | 9 ++ .../antd/association-field/InternalTag.tsx | 9 ++ .../antd/association-field/InternalViewer.tsx | 9 ++ .../antd/association-field/Nester.tsx | 9 ++ .../antd/association-field/ReadPretty.tsx | 9 ++ .../antd/association-field/SubTable.tsx | 9 ++ .../components/CreateRecordAction.tsx | 9 ++ .../antd/association-field/context.ts | 9 ++ .../antd/association-field/hooks.ts | 9 ++ .../antd/association-field/index.ts | 9 ++ .../antd/association-field/schema.ts | 9 ++ .../antd/association-field/util.ts | 9 ++ .../ActionBarAssociationFilterAction.tsx | 9 ++ .../AssociationFilter.BlockDesigner.tsx | 9 ++ .../AssociationFilter.Initializer.tsx | 9 ++ .../AssociationFilter.Item.Designer.tsx | 9 ++ .../AssociationFilter.Item.style.ts | 9 ++ .../AssociationFilter.Item.tsx | 9 ++ .../association-filter/AssociationFilter.tsx | 9 ++ .../AssociationFilterDesignerDelete.tsx | 9 ++ .../AssociationFilterDesignerDisplayField.tsx | 9 ++ .../AssociationFilterProvider.tsx | 9 ++ .../antd/association-filter/utilts.ts | 9 ++ .../association-select/AssociationSelect.tsx | 9 ++ .../antd/association-select/ReadPretty.tsx | 9 ++ .../__tests__/association-select.test.tsx | 9 ++ .../antd/association-select/demos/demo1.tsx | 9 ++ .../antd/association-select/index.ts | 9 ++ .../association-select/useServiceOptions.ts | 9 ++ .../antd/auto-complete/AutoComplete.tsx | 9 ++ .../antd/auto-complete/index.ts | 9 ++ .../antd/block-item/BlockItem.tsx | 9 ++ .../antd/block-item/BlockItemCard.tsx | 9 ++ .../antd/block-item/BlockItemError.tsx | 9 ++ .../antd/block-item/TestDesigner.tsx | 9 ++ .../block-item/__tests__/block-item.test.tsx | 9 ++ .../antd/block-item/demos/demo1.tsx | 9 ++ .../hooks/useGetAriaLabelOfBlockItem.ts | 9 ++ .../antd/block-item/index.tsx | 9 ++ .../antd/card-item/CardItem.tsx | 9 ++ .../card-item/__tests__/card-item.test.tsx | 9 ++ .../antd/card-item/demos/demo1.tsx | 9 ++ .../schema-component/antd/card-item/index.ts | 9 ++ .../schema-component/antd/card-item/style.ts | 9 ++ .../antd/cascader/Cascader.tsx | 9 ++ .../antd/cascader/ReadPretty.tsx | 9 ++ .../antd/cascader/__tests__/cascader.test.tsx | 9 ++ .../antd/cascader/defaultFieldNames.ts | 9 ++ .../antd/cascader/demos/demo1.tsx | 9 ++ .../antd/cascader/demos/demo2.tsx | 9 ++ .../schema-component/antd/cascader/index.ts | 9 ++ .../antd/checkbox/Checkbox.tsx | 9 ++ .../antd/checkbox/__tests__/checkbox.test.tsx | 9 ++ .../antd/checkbox/demos/checkbox.group.tsx | 9 ++ .../antd/checkbox/demos/checkbox.tsx | 9 ++ .../schema-component/antd/checkbox/index.ts | 9 ++ .../collection-select/CollectionSelect.tsx | 9 ++ .../DataSourceCollectionCascader.test.tsx | 9 ++ .../__tests__/DataSourceSelect.test.tsx | 9 ++ .../__tests__/collection-select.test.tsx | 9 ++ .../antd/collection-select/index.tsx | 9 ++ .../antd/color-picker/ColorPicker.tsx | 9 ++ .../__tests__/ColorPicker.test.tsx | 9 ++ .../antd/color-picker/demos/demo1.tsx | 9 ++ .../antd/color-picker/index.tsx | 9 ++ .../antd/color-select/ColorSelect.tsx | 9 ++ .../__tests__/color-select.test.tsx | 9 ++ .../antd/color-select/demos/demo1.tsx | 9 ++ .../antd/color-select/index.ts | 9 ++ .../src/schema-component/antd/cron/Cron.tsx | 9 ++ .../schema-component/antd/cron/CronSet.tsx | 9 ++ .../antd/cron/__tests__/cron-set.test.tsx | 9 ++ .../antd/cron/demos/demo1.tsx | 9 ++ .../antd/cron/demos/demo2.tsx | 9 ++ .../src/schema-component/antd/cron/index.tsx | 9 ++ .../antd/date-picker/DatePicker.tsx | 9 ++ .../antd/date-picker/ReadPretty.tsx | 9 ++ .../__tests__/date-picker.test.tsx | 9 ++ .../__tests__/getDateRanges.test.ts | 9 ++ .../__tests__/mapDatePicker.test.ts | 9 ++ .../__tests__/mapRangePicker.test.ts | 9 ++ .../antd/date-picker/__tests__/util.test.ts | 9 ++ .../antd/date-picker/demos/demo1.tsx | 9 ++ .../antd/date-picker/demos/demo10.tsx | 9 ++ .../antd/date-picker/demos/demo11.tsx | 9 ++ .../antd/date-picker/demos/demo2.tsx | 9 ++ .../antd/date-picker/demos/demo3.tsx | 9 ++ .../antd/date-picker/demos/demo4.tsx | 9 ++ .../antd/date-picker/demos/demo5.tsx | 9 ++ .../antd/date-picker/demos/demo6.tsx | 9 ++ .../antd/date-picker/demos/demo7.tsx | 9 ++ .../antd/date-picker/demos/demo8.tsx | 9 ++ .../antd/date-picker/demos/demo9.tsx | 9 ++ .../antd/date-picker/index.ts | 9 ++ .../schema-component/antd/date-picker/util.ts | 9 ++ .../schema-component/antd/details/Details.tsx | 9 ++ .../antd/details/__tests__/details.test.tsx | 9 ++ .../antd/details/demos/demo1.tsx | 9 ++ .../schema-component/antd/details/index.ts | 9 ++ .../antd/error-fallback/ErrorFallback.tsx | 9 ++ .../__tests__/error-fallback.test.tsx | 9 ++ .../antd/error-fallback/demos/demo1.tsx | 9 ++ .../antd/error-fallback/index.ts | 9 ++ .../expand-action/Expand.Action.Design.tsx | 9 ++ .../antd/expand-action/Expand.Action.tsx | 9 ++ .../antd/expand-action/index.ts | 9 ++ .../antd/filter/DynamicComponent.tsx | 9 ++ .../antd/filter/Filter.Action.Designer.tsx | 9 ++ .../schema-component/antd/filter/Filter.tsx | 9 ++ .../antd/filter/FilterAction.tsx | 9 ++ .../antd/filter/FilterGroup.tsx | 9 ++ .../antd/filter/FilterItem.tsx | 9 ++ .../antd/filter/FilterItems.tsx | 9 ++ .../antd/filter/SaveDefaultValue.tsx | 9 ++ .../antd/filter/__tests__/filter.test.tsx | 9 ++ .../schema-component/antd/filter/context.ts | 9 ++ .../antd/filter/demos/demo2.tsx | 9 ++ .../antd/filter/demos/demo3.tsx | 9 ++ .../antd/filter/demos/demo4.tsx | 9 ++ .../antd/filter/demos/demo5.tsx | 9 ++ .../antd/filter/demos/demo6.tsx | 9 ++ .../src/schema-component/antd/filter/index.ts | 9 ++ .../antd/filter/useFilterActionProps.ts | 9 ++ .../antd/filter/useOperators.ts | 9 ++ .../schema-component/antd/filter/useValues.ts | 9 ++ .../antd/form-dialog/index.tsx | 9 ++ .../form-item/FormItem.FilterFormDesigner.tsx | 9 ++ .../form-item/FormItem.FilterFormSettings.tsx | 9 ++ .../antd/form-item/FormItem.Settings.tsx | 9 ++ .../antd/form-item/FormItem.tsx | 9 ++ .../antd/form-item/SchemaSettingOptions.tsx | 9 ++ .../__tests__/SchemaSettingOptions.test.tsx | 9 ++ .../form-item/__tests__/form-item.test.tsx | 9 ++ .../__tests__/hooks/useSpecialCase.test.ts | 9 ++ .../antd/form-item/__tests__/utils.test.ts | 9 ++ .../antd/form-item/demos/demo1.tsx | 9 ++ ...eLazyLoadDisplayAssociationFieldsOfForm.ts | 9 ++ .../form-item/hooks/useParseDefaultValue.ts | 9 ++ .../antd/form-item/hooks/useSpecialCase.ts | 9 ++ .../schema-component/antd/form-item/index.tsx | 9 ++ .../schema-component/antd/form-item/utils.ts | 9 ++ .../antd/form-v2/Form.Designer.tsx | 9 ++ .../antd/form-v2/Form.FilterDesigner.tsx | 9 ++ .../antd/form-v2/Form.Settings.tsx | 9 ++ .../schema-component/antd/form-v2/Form.tsx | 9 ++ .../antd/form-v2/FormField.tsx | 9 ++ .../antd/form-v2/Templates.tsx | 9 ++ .../antd/form-v2/__tests__/form-v2.test.tsx | 9 ++ .../antd/form-v2/demos/collections.ts | 9 ++ .../antd/form-v2/demos/demo1.tsx | 9 ++ .../antd/form-v2/demos/demo2.tsx | 9 ++ .../antd/form-v2/demos/demo3.tsx | 9 ++ .../schema-component/antd/form-v2/index.ts | 9 ++ .../schema-component/antd/form-v2/utils.tsx | 9 ++ .../antd/form/Form.Designer.tsx | 9 ++ .../antd/form/Form.Settings.tsx | 9 ++ .../src/schema-component/antd/form/Form.tsx | 9 ++ .../form/__tests__/form.settings.test.tsx | 9 ++ .../antd/form/__tests__/form.test.tsx | 9 ++ .../antd/form/demos/apiClient.ts | 9 ++ .../antd/form/demos/demo1.tsx | 9 ++ .../antd/form/demos/demo2.tsx | 9 ++ .../antd/form/demos/demo3.tsx | 9 ++ .../antd/form/demos/demo4.tsx | 9 ++ .../antd/form/demos/demo5.tsx | 9 ++ .../antd/form/demos/demo6.tsx | 9 ++ .../antd/form/demos/demo7.tsx | 9 ++ .../antd/form/demos/demo8.tsx | 9 ++ .../antd/form/demos/demo9.tsx | 9 ++ .../src/schema-component/antd/form/index.tsx | 9 ++ .../schema-component/antd/g2plot/G2Plot.tsx | 9 ++ .../antd/g2plot/G2PlotDesigner.tsx | 9 ++ .../antd/g2plot/__tests__/g2plot.test.tsx | 9 ++ .../antd/g2plot/demos/demo1.tsx | 9 ++ .../src/schema-component/antd/g2plot/index.ts | 9 ++ .../antd/g2plot/requestChartData.ts | 9 ++ .../grid-card/GridCard.Decorator.style.ts | 9 ++ .../antd/grid-card/GridCard.Decorator.tsx | 9 ++ .../antd/grid-card/GridCard.Designer.tsx | 9 ++ .../antd/grid-card/GridCard.Item.tsx | 9 ++ .../antd/grid-card/GridCard.tsx | 9 ++ .../grid-card/__tests__/grid-card.test.tsx | 9 ++ .../schema-component/antd/grid-card/hooks.ts | 9 ++ .../schema-component/antd/grid-card/index.ts | 9 ++ .../antd/grid-card/options.ts | 9 ++ .../src/schema-component/antd/grid/Block.tsx | 9 ++ .../schema-component/antd/grid/Grid.style.ts | 9 ++ .../src/schema-component/antd/grid/Grid.tsx | 9 ++ .../antd/grid/__tests__/grid.test.tsx | 9 ++ .../antd/grid/demos/demo1.tsx | 9 ++ .../antd/grid/demos/demo2.tsx | 9 ++ .../antd/grid/demos/demo3.tsx | 9 ++ .../src/schema-component/antd/grid/index.tsx | 9 ++ .../antd/icon-picker/IconPicker.tsx | 9 ++ .../__tests__/icon-picker.test.tsx | 9 ++ .../antd/icon-picker/demos/icon-picker.tsx | 9 ++ .../antd/icon-picker/index.ts | 9 ++ .../client/src/schema-component/antd/index.ts | 9 ++ .../antd/input-number/InputNumber.tsx | 9 ++ .../antd/input-number/ReadPretty.tsx | 9 ++ .../__tests__/input-number.test.tsx | 9 ++ .../demos/addonBefore&addonAfter.tsx | 9 ++ .../demos/highPrecisionDecimals.tsx | 9 ++ .../antd/input-number/demos/inputNumber.tsx | 9 ++ .../antd/input-number/index.ts | 9 ++ .../antd/input/EllipsisWithTooltip.tsx | 9 ++ .../src/schema-component/antd/input/Input.tsx | 9 ++ .../src/schema-component/antd/input/Json.tsx | 9 ++ .../antd/input/ReadPretty.tsx | 9 ++ .../__tests__/EllipsisWithTooltip.test.tsx | 9 ++ .../antd/input/__tests__/Input.test.tsx | 9 ++ .../antd/input/demos/input.tsx | 9 ++ .../antd/input/demos/json.tsx | 9 ++ .../antd/input/demos/textarea.tsx | 9 ++ .../schema-component/antd/input/demos/url.tsx | 9 ++ .../src/schema-component/antd/input/index.ts | 9 ++ .../src/schema-component/antd/input/shared.ts | 9 ++ .../antd/list/List.Decorator.tsx | 9 ++ .../antd/list/List.Designer.tsx | 9 ++ .../schema-component/antd/list/List.Item.tsx | 9 ++ .../schema-component/antd/list/List.style.ts | 9 ++ .../src/schema-component/antd/list/List.tsx | 9 ++ .../antd/list/__tests__/list.test.tsx | 9 ++ .../src/schema-component/antd/list/hooks.ts | 9 ++ .../src/schema-component/antd/list/index.ts | 9 ++ .../antd/markdown/Markdown.Void.Designer.tsx | 9 ++ .../antd/markdown/Markdown.Void.tsx | 9 ++ .../antd/markdown/Markdown.tsx | 9 ++ .../antd/markdown/__tests__/markdown.test.tsx | 9 ++ .../antd/markdown/demos/demo1.tsx | 9 ++ .../antd/markdown/demos/demo2.tsx | 9 ++ .../schema-component/antd/markdown/index.ts | 9 ++ .../markdown-it-plugins/mermaidPlugin.ts | 9 ++ .../src/schema-component/antd/markdown/md.ts | 9 ++ .../schema-component/antd/markdown/style.ts | 9 ++ .../schema-component/antd/markdown/util.ts | 9 ++ .../antd/menu/Menu.Designer.tsx | 9 ++ .../src/schema-component/antd/menu/Menu.tsx | 9 ++ .../antd/menu/MenuItemInitializers/index.tsx | 9 ++ .../antd/menu/__tests__/menu.test.tsx | 9 ++ .../antd/menu/__tests__/utils.test.ts | 9 ++ .../antd/menu/demos/demo1.tsx | 9 ++ .../antd/menu/demos/demo2.tsx | 9 ++ .../antd/menu/demos/demo3.tsx | 9 ++ .../src/schema-component/antd/menu/index.ts | 9 ++ .../src/schema-component/antd/menu/locale.ts | 9 ++ .../src/schema-component/antd/menu/util.ts | 9 ++ .../antd/nanoIDInput/NanoIDInput.tsx | 9 ++ .../__tests__/NanoIDInput.test.tsx | 9 ++ .../antd/nanoIDInput/index.tsx | 9 ++ .../schema-component/antd/page/FixedBlock.tsx | 9 ++ .../antd/page/FixedBlockDesignerItem.tsx | 9 ++ .../antd/page/Page.Settings.tsx | 9 ++ .../src/schema-component/antd/page/Page.tsx | 9 ++ .../antd/page/PageTab.Settings.tsx | 9 ++ .../antd/page/PageTabDesigner.tsx | 9 ++ .../page/__tests__/Page.Settings.test.tsx | 9 ++ .../page/__tests__/PageTab.Settings.test.tsx | 9 ++ .../antd/page/__tests__/page.test.tsx | 9 ++ .../antd/page/demos/demo1.tsx | 9 ++ .../antd/page/hooks/useIsBlockInPage.ts | 9 ++ .../src/schema-component/antd/page/index.ts | 9 ++ .../src/schema-component/antd/page/style.ts | 9 ++ .../pagination/__tests__/pagination.test.tsx | 9 ++ .../antd/pagination/index.tsx | 9 ++ .../antd/password/Password.tsx | 9 ++ .../antd/password/PasswordStrength.tsx | 9 ++ .../__tests__/PasswordStrength.test.tsx | 9 ++ .../antd/password/__tests__/password.test.tsx | 9 ++ .../antd/password/__tests__/utils.test.ts | 9 ++ .../antd/password/demos/demo1.tsx | 9 ++ .../antd/password/demos/demo2.tsx | 9 ++ .../schema-component/antd/password/index.ts | 9 ++ .../schema-component/antd/password/utils.ts | 9 ++ .../schema-component/antd/percent/Percent.tsx | 9 ++ .../antd/percent/__tests__/percent.test.tsx | 9 ++ .../antd/percent/demos/percent.tsx | 9 ++ .../schema-component/antd/percent/index.ts | 9 ++ .../schema-component/antd/popover/Popover.tsx | 9 ++ .../schema-component/antd/popover/index.ts | 9 ++ .../schema-component/antd/preview/Preview.tsx | 9 ++ .../antd/preview/__tests__/preview.test.tsx | 9 ++ .../antd/preview/demos/demo1.tsx | 9 ++ .../schema-component/antd/preview/index.ts | 9 ++ .../antd/quick-edit/QuickEdit.tsx | 9 ++ .../quick-edit/__tests__/QuickEdit.test.tsx | 9 ++ .../antd/quick-edit/index.tsx | 9 ++ .../src/schema-component/antd/radio/Radio.tsx | 9 ++ .../antd/radio/__tests__/radio.test.tsx | 9 ++ .../antd/radio/demos/demo1.tsx | 9 ++ .../antd/radio/demos/demo2.tsx | 9 ++ .../antd/radio/demos/demo3.tsx | 9 ++ .../src/schema-component/antd/radio/index.ts | 9 ++ .../antd/record-picker/InputRecordPicker.tsx | 9 ++ .../record-picker/ReadPrettyRecordPicker.tsx | 9 ++ .../antd/record-picker/RecordPicker.tsx | 9 ++ .../__tests__/record-picker.test.tsx | 9 ++ .../antd/record-picker/demos/demo1.tsx | 9 ++ .../antd/record-picker/demos/mockData.ts | 9 ++ .../antd/record-picker/index.tsx | 9 ++ .../antd/record-picker/useFieldNames.ts | 9 ++ .../antd/record-picker/util.ts | 9 ++ .../antd/remote-select/ReadPretty.tsx | 9 ++ .../antd/remote-select/RemoteSelect.tsx | 9 ++ .../__tests__/remote-select.test.tsx | 9 ++ .../antd/remote-select/demos/demo1.tsx | 9 ++ .../antd/remote-select/index.ts | 9 ++ .../antd/remote-select/shared.ts | 9 ++ .../antd/rich-text/RichText.tsx | 9 ++ .../rich-text/__tests__/rich-text.test.tsx | 9 ++ .../antd/rich-text/demos/demo1.tsx | 9 ++ .../schema-component/antd/rich-text/index.ts | 9 ++ .../schema-component/antd/rich-text/style.ts | 9 ++ .../antd/select/ReadPretty.tsx | 9 ++ .../schema-component/antd/select/Select.tsx | 9 ++ .../antd/select/__tests__/select.test.tsx | 9 ++ .../antd/select/__tests__/utils.test.ts | 9 ++ .../antd/select/demos/demo1.tsx | 9 ++ .../antd/select/demos/demo2.tsx | 9 ++ .../antd/select/demos/demo3.tsx | 9 ++ .../src/schema-component/antd/select/index.ts | 9 ++ .../src/schema-component/antd/select/utils.ts | 9 ++ .../antd/space/__tests__/space.test.tsx | 9 ++ .../src/schema-component/antd/space/index.tsx | 9 ++ .../table-v2/Table.ActionColumnDesigner.tsx | 9 ++ .../antd/table-v2/Table.Column.ActionBar.tsx | 9 ++ .../antd/table-v2/Table.Column.Decorator.tsx | 9 ++ .../antd/table-v2/Table.Column.Designer.tsx | 9 ++ .../antd/table-v2/Table.Column.tsx | 9 ++ .../antd/table-v2/Table.Designer.tsx | 9 ++ .../antd/table-v2/Table.Index.tsx | 9 ++ .../schema-component/antd/table-v2/Table.tsx | 9 ++ .../antd/table-v2/TableBlockDesigner.tsx | 9 ++ .../antd/table-v2/TableField.tsx | 9 ++ .../antd/table-v2/TableSelector.tsx | 9 ++ .../antd/table-v2/TableSelectorDesigner.tsx | 9 ++ .../__tests__/Table.Column.settings.test.tsx | 9 ++ .../__tests__/Table.settings.test.tsx | 9 ++ .../table-v2/__tests__/createTableOptions.tsx | 9 ++ .../antd/table-v2/__tests__/table-v2.test.tsx | 9 ++ .../components/ColumnFieldProvider.tsx | 9 ++ .../antd/table-v2/demos/collections.ts | 9 ++ .../antd/table-v2/demos/demo1.tsx | 9 ++ .../antd/table-v2/demos/demo2.tsx | 9 ++ .../schema-component/antd/table-v2/index.ts | 9 ++ .../schema-component/antd/table-v2/utils.ts | 9 ++ .../antd/table/Table.Array.Designer.tsx | 9 ++ .../antd/table/Table.Array.tsx | 9 ++ .../antd/table/Table.Column.ActionBar.tsx | 9 ++ .../antd/table/Table.Column.Decorator.tsx | 9 ++ .../antd/table/Table.Column.Designer.tsx | 9 ++ .../antd/table/Table.Column.tsx | 9 ++ .../antd/table/Table.Designer.tsx | 9 ++ .../antd/table/Table.RowActionDesigner.tsx | 9 ++ .../antd/table/Table.RowSelection.tsx | 9 ++ .../antd/table/Table.Void.Designer.tsx | 9 ++ .../antd/table/Table.Void.tsx | 9 ++ .../antd/table/__tests__/table.test.tsx | 9 ++ .../antd/table/demos/demo1.tsx | 9 ++ .../antd/table/demos/demo2.tsx | 9 ++ .../antd/table/demos/demo3.tsx | 9 ++ .../antd/table/demos/demo4.tsx | 9 ++ .../src/schema-component/antd/table/index.tsx | 9 ++ .../antd/tabs/Tabs.Designer.tsx | 9 ++ .../src/schema-component/antd/tabs/Tabs.tsx | 9 ++ .../antd/tabs/__tests__/tabs.test.tsx | 9 ++ .../schema-component/antd/tabs/context.tsx | 9 ++ .../antd/tabs/demos/demo1.tsx | 9 ++ .../src/schema-component/antd/tabs/index.ts | 9 ++ .../antd/time-picker/ReadPretty.tsx | 9 ++ .../antd/time-picker/TimePicker.tsx | 9 ++ .../__tests__/time-picker.test.tsx | 9 ++ .../antd/time-picker/demos/demo1.tsx | 9 ++ .../antd/time-picker/demos/demo2.tsx | 9 ++ .../antd/time-picker/index.ts | 9 ++ .../antd/tree-select/ReadPretty.tsx | 9 ++ .../antd/tree-select/TreeSelect.tsx | 9 ++ .../__tests__/tree-select.test.tsx | 9 ++ .../antd/tree-select/demos/demo1.tsx | 9 ++ .../antd/tree-select/index.ts | 9 ++ .../antd/unixTimestamp/UnixTimestamp.tsx | 9 ++ .../__tests__/UnixTimestamp.test.tsx | 9 ++ .../antd/unixTimestamp/index.tsx | 9 ++ .../antd/upload/ReadPretty.tsx | 9 ++ .../schema-component/antd/upload/Upload.tsx | 9 ++ .../antd/upload/__tests__/upload.test.tsx | 9 ++ .../antd/upload/demos/apiClient.ts | 9 ++ .../antd/upload/demos/demo1.tsx | 9 ++ .../antd/upload/demos/demo2.tsx | 9 ++ .../src/schema-component/antd/upload/index.ts | 9 ++ .../antd/upload/placeholder.ts | 9 ++ .../schema-component/antd/upload/shared.ts | 9 ++ .../src/schema-component/antd/upload/style.ts | 9 ++ .../schema-component/antd/upload/type.d.ts | 9 ++ .../schema-component/antd/variable/Input.tsx | 9 ++ .../antd/variable/JSONInput.tsx | 9 ++ .../antd/variable/RawTextArea.tsx | 9 ++ .../antd/variable/TextArea.tsx | 9 ++ .../antd/variable/Variable.tsx | 9 ++ .../antd/variable/VariableSelect.style.ts | 9 ++ .../antd/variable/VariableSelect.tsx | 9 ++ .../antd/variable/XButton.tsx | 9 ++ .../antd/variable/__tests__/variable.test.tsx | 9 ++ .../antd/variable/demos/demo1.tsx | 9 ++ .../antd/variable/demos/demo2.tsx | 9 ++ .../antd/variable/demos/demo3.tsx | 9 ++ .../schema-component/antd/variable/index.ts | 9 ++ .../schema-component/antd/variable/style.ts | 9 ++ .../common/dnd-context/index.tsx | 9 ++ .../src/schema-component/common/index.ts | 9 ++ .../common/sortable-item/SortableItem.tsx | 9 ++ .../common/sortable-item/index.ts | 9 ++ .../schema-component/common/utils/logic.js | 9 ++ .../schema-component/common/utils/uitls.tsx | 9 ++ .../client/src/schema-component/context.ts | 9 ++ .../core/DesignableSwitch.tsx | 9 ++ .../schema-component/core/FormProvider.tsx | 9 ++ .../core/RemoteSchemaComponent.tsx | 9 ++ .../schema-component/core/SchemaComponent.tsx | 9 ++ .../core/SchemaComponentOptions.tsx | 9 ++ .../core/SchemaComponentProvider.tsx | 9 ++ .../src/schema-component/core/index.tsx | 9 ++ .../src/schema-component/demos/demo1.tsx | 9 ++ .../src/schema-component/demos/demo2.tsx | 9 ++ .../src/schema-component/demos/demo3.tsx | 9 ++ .../src/schema-component/demos/demo4.tsx | 9 ++ .../hooks/__tests__/addAppVersion.test.ts | 9 ++ .../hooks/__tests__/designable.test.ts | 9 ++ .../hooks/__tests__/splitWrapSchema.test.ts | 9 ++ .../schema-component/hooks/addAppVersion.tsx | 9 ++ .../src/schema-component/hooks/index.ts | 9 ++ .../src/schema-component/hooks/useAttach.ts | 9 ++ .../src/schema-component/hooks/useCompile.ts | 9 ++ .../schema-component/hooks/useComponent.ts | 9 ++ .../schema-component/hooks/useDesignable.tsx | 9 ++ .../src/schema-component/hooks/useDesigner.ts | 9 ++ .../hooks/useFieldComponentOptions.ts | 9 ++ .../hooks/useFieldModeOptions.tsx | 9 ++ .../schema-component/hooks/useFieldProps.ts | 9 ++ .../schema-component/hooks/useFieldTitle.ts | 9 ++ .../src/schema-component/hooks/useProps.ts | 9 ++ .../hooks/useSchemaComponentContext.ts | 9 ++ .../schema-component/hooks/useTableSize.ts | 9 ++ .../client/src/schema-component/index.tsx | 9 ++ .../core/client/src/schema-component/types.ts | 9 ++ .../buttons/CustomFormItemInitializers.tsx | 9 ++ .../buttons/FormItemInitializers.tsx | 9 ++ .../buttons/RecordBlockInitializers.tsx | 9 ++ .../buttons/SubTableActionInitializers.tsx | 9 ++ .../buttons/TabPaneInitializers.tsx | 9 ++ .../buttons/chart-config/area.ts | 9 ++ .../buttons/chart-config/bar.ts | 9 ++ .../buttons/chart-config/column.ts | 9 ++ .../buttons/chart-config/index.ts | 9 ++ .../buttons/chart-config/line.ts | 9 ++ .../buttons/chart-config/pie.ts | 9 ++ .../src/schema-initializer/buttons/index.ts | 9 ++ .../components/CreateRecordAction.tsx | 9 ++ .../components/DeletedField.tsx | 9 ++ .../assigned-field/AssignedField.tsx | 9 ++ .../components/assigned-field/index.ts | 9 ++ .../schema-initializer/components/index.ts | 9 ++ .../src/schema-initializer/demos/basic.tsx | 9 ++ .../schema-initializer/demos/build-type.tsx | 9 ++ .../demos/custom-button.tsx | 9 ++ .../demos/custom-items-component.tsx | 9 ++ .../demos/dynamic-visible-children.tsx | 9 ++ .../demos/insert-schema-action.tsx | 9 ++ .../demos/insert-schema-basic.tsx | 9 ++ .../demos/insert-schema-form-item.tsx | 9 ++ .../schema-initializer/demos/nested-items.tsx | 9 ++ .../useGetAriaLabelOfSchemaInitializer.ts | 9 ++ .../client/src/schema-initializer/index.ts | 9 ++ .../items/ActionInitializer.tsx | 9 ++ .../items/BlockInitializer.tsx | 9 ++ .../items/CreateFilterActionInitializer.tsx | 9 ++ .../items/CreateResetActionInitializer.tsx | 9 ++ .../items/CustomizeActionInitializer.tsx | 9 ++ .../items/DataBlockInitializer.tsx | 9 ++ .../items/DeleteEventActionInitializer.tsx | 9 ++ .../items/FilterBlockInitializer.tsx | 9 ++ .../items/G2PlotInitializer.tsx | 9 ++ .../items/InitializerWithSwitch.tsx | 9 ++ .../RecordAssociationBlockInitializer.tsx | 9 ++ ...cordAssociationDetailsBlockInitializer.tsx | 9 ++ .../RecordAssociationFormBlockInitializer.tsx | 9 ++ ...ordAssociationGridCardBlockInitializer.tsx | 9 ++ .../RecordAssociationListBlockInitializer.tsx | 9 ++ ...dPrettyAssociationFormBlockInitializer.tsx | 9 ++ .../items/SelectActionInitializer.tsx | 9 ++ .../items/SubmitActionInitializer.tsx | 9 ++ .../items/TableActionColumnInitializer.tsx | 9 ++ .../src/schema-initializer/items/index.tsx | 9 ++ .../client/src/schema-initializer/style.ts | 9 ++ .../client/src/schema-initializer/utils.ts | 9 ++ .../src/schema-items/GeneralSchemaItems.tsx | 9 ++ .../src/schema-items/GeneralSettings.tsx | 9 ++ .../src/schema-items/OpenModeSchemaItems.tsx | 9 ++ .../core/client/src/schema-items/index.ts | 9 ++ .../DataTemplates/FormDataTemplates.tsx | 9 ++ .../DataTemplates/TreeLabel.tsx | 9 ++ .../components/AsDefaultTemplate.tsx | 9 ++ .../components/DataTemplateTitle.style.ts | 9 ++ .../components/DataTemplateTitle.tsx | 9 ++ .../DataTemplates/components/Designer.tsx | 9 ++ .../DataTemplates/hooks/useCollectionState.ts | 9 ++ .../schema-settings/DataTemplates/index.tsx | 9 ++ .../schema-settings/DataTemplates/utils.tsx | 9 ++ .../DateFormat/ExpiresRadio.tsx | 9 ++ .../DynamicComponent.tsx | 9 ++ .../EnableChildCollections/index.tsx | 9 ++ .../schema-settings/GeneralSchemaDesigner.tsx | 9 ++ .../LinkageRules/DynamicComponent.tsx | 9 ++ .../LinkageRules/LinkageRuleAction.tsx | 9 ++ .../LinkageRules/LinkageRuleActionGroup.tsx | 9 ++ .../LinkageRules/ValueDynamicComponent.tsx | 9 ++ .../LinkageRules/Variables.tsx | 9 ++ .../LinkageRules/action-hooks.ts | 9 ++ .../LinkageRules/components/EnableLinkage.tsx | 9 ++ .../components/LinkageHeader.style.ts | 9 ++ .../LinkageRules/components/LinkageHeader.tsx | 9 ++ .../schema-settings/LinkageRules/context.ts | 9 ++ .../schema-settings/LinkageRules/index.tsx | 9 ++ .../src/schema-settings/LinkageRules/type.ts | 9 ++ .../schema-settings/LinkageRules/useValues.ts | 9 ++ .../src/schema-settings/SchemaSettings.tsx | 9 ++ .../SchemaSettingsDataScope.tsx | 9 ++ .../SchemaSettingsDateFormat.tsx | 9 ++ .../SchemaSettingsDefaultValue.tsx | 9 ++ .../SchemaSettingsNumberFormat.tsx | 9 ++ .../schema-settings/SchemaSettingsPlugin.ts | 9 ++ .../SchemaSettingsSortingRule.tsx | 9 ++ .../VariableInput/VariableInput.tsx | 9 ++ .../VariableInput/hooks/index.ts | 9 ++ .../VariableInput/hooks/useBaseVariable.tsx | 9 ++ .../VariableInput/hooks/useBlockCollection.ts | 9 ++ .../hooks/useContextAssociationFields.tsx | 9 ++ .../VariableInput/hooks/useDateVariable.ts | 9 ++ .../VariableInput/hooks/useFormVariable.ts | 9 ++ .../hooks/useIterationVariable.ts | 9 ++ .../hooks/useParentRecordVariable.ts | 9 ++ .../VariableInput/hooks/usePopupVariable.ts | 9 ++ .../VariableInput/hooks/useRecordVariable.ts | 9 ++ .../VariableInput/hooks/useRoleVariable.ts | 9 ++ .../VariableInput/hooks/useUserVariable.ts | 9 ++ .../VariableInput/hooks/useVariableOptions.ts | 9 ++ .../schema-settings/VariableInput/index.ts | 9 ++ .../src/schema-settings/VariableInput/type.ts | 9 ++ .../utils/formatVariableScop.tsx | 9 ++ .../src/schema-settings/demos/basic.tsx | 9 ++ .../src/schema-settings/demos/built-type.tsx | 9 ++ .../demos/custom-component.tsx | 9 ++ .../src/schema-settings/demos/demo3.tsx | 9 ++ .../schema-settings/demos/schema-basic.tsx | 9 ++ .../hooks/useGetAriaLabelOfDesigner.ts | 9 ++ .../hooks/useIsAllowToSetDefaultValue.tsx | 9 ++ .../hooks/useIsShowMultipleSwitch.ts | 9 ++ .../hooks/useParseDataScopeFilter.ts | 9 ++ .../core/client/src/schema-settings/index.ts | 9 ++ .../src/schema-settings/isPatternDisabled.tsx | 9 ++ .../core/client/src/schema-settings/styles.ts | 9 ++ .../core/client/src/schema-settings/types.ts | 9 ++ .../src/schema-templates/BlockTemplate.tsx | 9 ++ .../schema-templates/BlockTemplateDetails.tsx | 9 ++ .../schema-templates/BlockTemplatePage.tsx | 9 ++ .../SchemaTemplateManagerProvider.tsx | 9 ++ .../collections/uiSchemaTemplates.ts | 9 ++ .../core/client/src/schema-templates/index.ts | 9 ++ .../schemas/CollectionTitle.tsx | 9 ++ .../schemas/uiSchemaTemplates.ts | 9 ++ packages/core/client/src/style/index.ts | 9 ++ packages/core/client/src/style/useToken.ts | 9 ++ .../SystemSettingsProvider.tsx | 9 ++ .../SystemSettingsShortcut.tsx | 9 ++ .../core/client/src/system-settings/index.tsx | 9 ++ packages/core/client/src/testUtils/index.ts | 9 ++ .../client/src/testUtils/mockAPIClient.ts | 9 ++ .../core/client/src/user/ChangePassword.tsx | 9 ++ packages/core/client/src/user/CurrentUser.tsx | 9 ++ .../client/src/user/CurrentUserProvider.tsx | 9 ++ .../user/CurrentUserSettingsMenuProvider.tsx | 9 ++ packages/core/client/src/user/EditProfile.tsx | 9 ++ packages/core/client/src/user/Help.tsx | 9 ++ .../core/client/src/user/LanguageSettings.tsx | 9 ++ packages/core/client/src/user/SwitchRole.tsx | 9 ++ .../core/client/src/user/VerificationCode.tsx | 9 ++ ...rrent-user-settings-menu-provider.test.tsx | 9 ++ packages/core/client/src/user/index.ts | 9 ++ .../src/variables/VariablesProvider.tsx | 9 ++ .../variables/__tests__/useVariables.test.tsx | 9 ++ .../__tests__/utils/filterEmptyValues.test.ts | 9 ++ .../variables/__tests__/utils/getPath.test.ts | 9 ++ .../__tests__/utils/getVariableName.test.ts | 9 ++ .../__tests__/utils/isVariable.test.ts | 9 ++ .../utils/transformVariableValue.test.ts | 9 ++ .../variables/__tests__/utils/uniq.test.ts | 9 ++ .../core/client/src/variables/constants.ts | 9 ++ .../variables/hooks/useBuiltinVariables.ts | 9 ++ .../src/variables/hooks/useContextVariable.ts | 9 ++ .../src/variables/hooks/useLocalVariables.tsx | 9 ++ .../src/variables/hooks/useVariables.ts | 9 ++ packages/core/client/src/variables/index.ts | 9 ++ packages/core/client/src/variables/types.ts | 9 ++ .../src/variables/utils/filterEmptyValues.ts | 9 ++ .../client/src/variables/utils/getAction.tsx | 9 ++ .../client/src/variables/utils/getPath.tsx | 9 ++ .../src/variables/utils/getVariableName.tsx | 9 ++ .../src/variables/utils/hasRequested.tsx | 9 ++ .../client/src/variables/utils/isVariable.tsx | 9 ++ .../variables/utils/transformVariableValue.ts | 9 ++ .../core/client/src/variables/utils/uniq.ts | 9 ++ packages/core/create-nocobase-app/src/cli.js | 9 ++ .../core/create-nocobase-app/src/generator.js | 9 ++ .../core/create-nocobase-app/src/index.js | 9 ++ packages/core/create-nocobase-app/src/util.js | 9 ++ .../src/__tests__/actions.test.ts | 9 ++ .../src/__tests__/collection-manager.test.ts | 9 ++ .../src/__tests__/data-source-factory.test.ts | 9 ++ .../src/__tests__/data-source-manager.test.ts | 9 ++ .../src/__tests__/koa.test.ts | 9 ++ .../sequelize-collection-manager.test.ts | 9 ++ .../src/__tests__/utils.test.ts | 9 ++ .../src/collection-field.ts | 9 ++ .../src/collection-manager.ts | 9 ++ .../data-source-manager/src/collection.ts | 9 ++ .../src/data-source-factory.ts | 9 ++ .../src/data-source-manager.ts | 9 ++ .../data-source-manager/src/data-source.ts | 9 ++ .../src/default-actions/list.ts | 9 ++ .../src/default-actions/move.ts | 9 ++ .../default-actions/proxy-to-repository.ts | 9 ++ .../src/default-actions/utils.ts | 9 ++ .../core/data-source-manager/src/index.ts | 9 ++ .../src/load-default-actions.ts | 9 ++ .../data-source-manager/src/repository.ts | 9 ++ .../src/sequelize-collection-manager.ts | 9 ++ .../src/sequelize-data-source.ts | 9 ++ .../core/data-source-manager/src/types.ts | 9 ++ .../core/data-source-manager/src/utils.ts | 9 ++ .../adjacency-list-repository.test.ts | 9 ++ .../__tests__/associations/references.test.ts | 9 ++ .../__tests__/associations/target-key.test.ts | 9 ++ .../database/src/__tests__/bigint.test.ts | 9 ++ .../src/__tests__/collection-factory.test.ts | 9 ++ .../collection-group-manager.test.ts | 9 ++ .../src/__tests__/collection-importer.test.ts | 9 ++ .../src/__tests__/collection.sortable.test.ts | 9 ++ .../database/src/__tests__/collection.test.ts | 9 ++ .../src/__tests__/database.import.test.ts | 9 ++ .../database/src/__tests__/database.test.ts | 9 ++ .../eager-loading/eager-loading-tree.test.ts | 9 ++ .../__tests__/field-options/hidden.test.ts | 9 ++ .../__tests__/field-options/inddex.test.ts | 9 ++ .../__tests__/field-options/sort-by.test.ts | 9 ++ .../array-field-repository.test.ts | 9 ++ .../src/__tests__/fields/array.test.ts | 9 ++ .../__tests__/fields/belongs-to-field.test.ts | 9 ++ .../fields/belongs-to-many-field.test.ts | 9 ++ .../__tests__/fields/context-field.test.ts | 9 ++ .../src/__tests__/fields/date.test.ts | 9 ++ .../__tests__/fields/has-many-field.test.ts | 9 ++ .../__tests__/fields/has-one-field.test.ts | 9 ++ .../src/__tests__/fields/nanoid-field.test.ts | 9 ++ .../__tests__/fields/password-field.test.ts | 9 ++ .../database/src/__tests__/fields/set.test.ts | 9 ++ .../src/__tests__/fields/sort-field.test.ts | 9 ++ .../src/__tests__/fields/string-field.test.ts | 9 ++ .../src/__tests__/fields/text-field.test.ts | 9 ++ .../src/__tests__/fields/uuid-field.test.ts | 9 ++ .../src/__tests__/filter-match.test.ts | 9 ++ .../src/__tests__/filter-parser.test.ts | 9 ++ .../database/src/__tests__/filter.test.ts | 9 ++ .../database/src/__tests__/fixtures/c0/a.ts | 9 ++ .../database/src/__tests__/fixtures/c1/b.ts | 9 ++ .../database/src/__tests__/fixtures/c2/a.ts | 9 ++ .../fixtures/collections/delay-extend.ts | 9 ++ .../fixtures/collections/delay-extend2.ts | 9 ++ .../__tests__/fixtures/collections/extend.ts | 9 ++ .../__tests__/fixtures/collections/extend2.ts | 9 ++ .../__tests__/fixtures/collections/posts.ts | 9 ++ .../__tests__/fixtures/collections/tags.js | 9 ++ .../src/__tests__/fixtures/migrations/m1.ts | 9 ++ .../src/__tests__/fixtures/migrations/m2.ts | 9 ++ .../core/database/src/__tests__/group.test.ts | 9 ++ .../hooks/afterCreateWithAssociations.test.ts | 9 ++ packages/core/database/src/__tests__/index.ts | 9 ++ .../collection-inherits-sync.test.ts | 9 ++ .../inhertits/collection-inherits.test.ts | 9 ++ .../__tests__/inhertits/inherited-map.test.ts | 9 ++ .../__tests__/magic-attribute-model.test.ts | 9 ++ .../database/src/__tests__/migrator.test.ts | 9 ++ .../database/src/__tests__/model-hook.test.ts | 9 ++ .../model.changedWithAssociations.test.ts | 9 ++ .../core/database/src/__tests__/model.test.ts | 9 ++ .../src/__tests__/non-id-primary-key.test.ts | 9 ++ .../__tests__/operator/array-operator.test.ts | 9 ++ .../operator/association-operator.test.ts | 9 ++ .../operator/boolean-operator.test.ts | 9 ++ .../__tests__/operator/date-operator.test.ts | 9 ++ .../__tests__/operator/empty-operator.test.ts | 9 ++ .../src/__tests__/operator/eq.test.ts | 9 ++ .../src/__tests__/operator/ne.test.ts | 9 ++ .../src/__tests__/operator/notIn.test.ts | 9 ++ .../operator/string-operator.test.ts | 9 ++ .../src/__tests__/option-parser.test.ts | 9 ++ .../src/__tests__/percent2float.test.ts | 9 ++ .../src/__tests__/postgres/schema.test.ts | 9 ++ .../query-interface/query-interface.test.ts | 9 ++ .../relation-repository/appends.test.ts | 9 ++ .../belongs-to-many-repository.test.ts | 9 ++ .../has-many-repository.test.ts | 9 ++ .../hasone-repository.test.ts | 9 ++ .../database/src/__tests__/repository.test.ts | 9 ++ .../__tests__/repository/aggregation.test.ts | 9 ++ .../src/__tests__/repository/count.test.ts | 9 ++ .../src/__tests__/repository/create.test.ts | 9 ++ .../src/__tests__/repository/destroy.test.ts | 9 ++ .../find-with-collection-without-pk.test.ts | 9 ++ .../src/__tests__/repository/find.test.ts | 9 ++ .../__tests__/repository/update-many.test.ts | 9 ++ .../src/__tests__/repository/update.test.ts | 9 ++ .../src/__tests__/sequelize-hooks.test.ts | 9 ++ .../core/database/src/__tests__/sort.test.ts | 9 ++ .../sql-collection/infer-fields.test.ts | 9 ++ .../sql-collection/select-query.test.ts | 9 ++ .../sql-collection/sql-collection.test.ts | 9 ++ .../database/src/__tests__/sql-parser.test.ts | 9 ++ .../core/database/src/__tests__/sync.test.ts | 9 ++ .../src/__tests__/sync/default-value.test.ts | 9 ++ .../src/__tests__/sync/delete-field.test.ts | 9 ++ .../src/__tests__/sync/empty-table.test.ts | 9 ++ .../src/__tests__/sync/primary-key.test.ts | 9 ++ .../src/__tests__/sync/unique-index.test.ts | 9 ++ .../core/database/src/__tests__/tree.test.ts | 9 ++ .../src/__tests__/underscored-options.test.ts | 9 ++ .../database/src/__tests__/unique.test.ts | 9 ++ .../update-association-values.test.ts | 9 ++ .../update-associations-source-key.test.ts | 9 ++ .../update-associations-through.test.ts | 9 ++ .../src/__tests__/update-associations.test.ts | 9 ++ .../src/__tests__/update-guard.test.ts | 9 ++ .../core/database/src/__tests__/utils.test.ts | 9 ++ .../src/__tests__/value-parsers/array.test.ts | 9 ++ .../src/__tests__/value-parsers/base.test.ts | 9 ++ .../__tests__/value-parsers/boolean.test.ts | 9 ++ .../src/__tests__/value-parsers/date.test.ts | 9 ++ .../src/__tests__/value-parsers/json.test.ts | 9 ++ .../__tests__/value-parsers/number.test.ts | 9 ++ .../__tests__/value-parsers/string.test.ts | 9 ++ .../__tests__/value-parsers/to-many.test.ts | 9 ++ .../__tests__/value-parsers/to-one.test.ts | 9 ++ .../src/__tests__/view/list-view.test.ts | 9 ++ .../__tests__/view/view-collection.test.ts | 9 ++ .../src/__tests__/view/view-inference.test.ts | 9 ++ .../__tests__/view/view-repository.test.ts | 9 ++ .../view/view-with-association.test.ts | 9 ++ .../core/database/src/collection-factory.ts | 9 ++ .../database/src/collection-group-manager.ts | 9 ++ .../core/database/src/collection-importer.ts | 9 ++ packages/core/database/src/collection.ts | 9 ++ .../core/database/src/database-utils/index.ts | 9 ++ packages/core/database/src/database.ts | 9 ++ .../decorators/must-have-filter-decorator.ts | 9 ++ .../decorators/target-collection-decorator.ts | 9 ++ .../src/decorators/transaction-decorator.ts | 9 ++ .../src/eager-loading/eager-loading-tree.ts | 9 ++ .../database/src/errors/identifier-error.ts | 9 ++ .../src/errors/zero-column-table-error.ts | 9 ++ .../database/src/features/references-map.ts | 9 ++ .../features/referential-integrity-check.ts | 9 ++ .../array-field-repository.ts | 9 ++ .../core/database/src/fields/array-field.ts | 9 ++ .../database/src/fields/belongs-to-field.ts | 9 ++ .../src/fields/belongs-to-many-field.ts | 9 ++ .../core/database/src/fields/boolean-field.ts | 9 ++ .../core/database/src/fields/context-field.ts | 9 ++ .../core/database/src/fields/date-field.ts | 9 ++ packages/core/database/src/fields/field.ts | 9 ++ .../database/src/fields/has-inverse-field.ts | 9 ++ .../database/src/fields/has-many-field.ts | 9 ++ .../core/database/src/fields/has-one-field.ts | 9 ++ packages/core/database/src/fields/index.ts | 9 ++ .../core/database/src/fields/json-field.ts | 9 ++ .../core/database/src/fields/nanoid-field.ts | 9 ++ .../core/database/src/fields/number-field.ts | 9 ++ .../database/src/fields/password-field.ts | 9 ++ .../core/database/src/fields/radio-field.ts | 9 ++ .../database/src/fields/relation-field.ts | 9 ++ .../core/database/src/fields/set-field.ts | 9 ++ .../core/database/src/fields/sort-field.ts | 9 ++ .../core/database/src/fields/string-field.ts | 9 ++ .../core/database/src/fields/text-field.ts | 9 ++ .../core/database/src/fields/time-field.ts | 9 ++ .../core/database/src/fields/uid-field.ts | 9 ++ .../core/database/src/fields/uuid-field.ts | 9 ++ .../core/database/src/fields/virtual-field.ts | 9 ++ packages/core/database/src/filter-match.ts | 9 ++ packages/core/database/src/filter-parser.ts | 9 ++ packages/core/database/src/helpers.ts | 9 ++ packages/core/database/src/index.ts | 9 ++ .../core/database/src/inherited-collection.ts | 9 ++ packages/core/database/src/inherited-map.ts | 9 ++ .../database/src/inherited-sync-runner.ts | 9 ++ .../database/src/listeners/adjacency-list.ts | 9 ++ ...d-collection-name-after-repository-find.ts | 9 ++ packages/core/database/src/listeners/index.ts | 9 ++ .../database/src/magic-attribute-model.ts | 9 ++ packages/core/database/src/migration.ts | 9 ++ packages/core/database/src/mock-database.ts | 9 ++ packages/core/database/src/model-hook.ts | 9 ++ packages/core/database/src/model.ts | 9 ++ packages/core/database/src/operators/array.ts | 9 ++ .../database/src/operators/association.ts | 9 ++ .../core/database/src/operators/boolean.ts | 9 ++ .../src/operators/child-collection.ts | 9 ++ packages/core/database/src/operators/date.ts | 9 ++ packages/core/database/src/operators/empty.ts | 9 ++ packages/core/database/src/operators/eq.ts | 9 ++ packages/core/database/src/operators/index.ts | 9 ++ packages/core/database/src/operators/ne.ts | 9 ++ packages/core/database/src/operators/notIn.ts | 9 ++ .../core/database/src/operators/string.ts | 9 ++ packages/core/database/src/operators/utils.ts | 9 ++ packages/core/database/src/options-parser.ts | 9 ++ .../query-interface/mysql-query-interface.ts | 9 ++ .../postgres-query-interface.ts | 9 ++ .../query-interface-builder.ts | 9 ++ .../src/query-interface/query-interface.ts | 9 ++ .../query-interface/sqlite-query-interface.ts | 9 ++ .../belongs-to-many-repository.ts | 9 ++ .../belongs-to-repository.ts | 9 ++ .../relation-repository/hasmany-repository.ts | 9 ++ .../relation-repository/hasone-repository.ts | 9 ++ .../multiple-relation-repository.ts | 9 ++ .../relation-repository.ts | 9 ++ .../single-relation-repository.ts | 9 ++ .../database/src/relation-repository/types.ts | 9 ++ .../adjacency-list-repository.ts | 9 ++ .../src/repositories/view-repository.ts | 9 ++ packages/core/database/src/repository.ts | 9 ++ .../core/database/src/sql-collection/index.ts | 9 ++ .../src/sql-collection/query-generator.ts | 9 ++ .../src/sql-collection/sql-collection.ts | 9 ++ .../database/src/sql-collection/sql-model.ts | 9 ++ .../core/database/src/sql-parser/index.js | 9 ++ .../core/database/src/sql-parser/postgres.js | 9 ++ packages/core/database/src/sync-runner.ts | 9 ++ packages/core/database/src/types.ts | 9 ++ .../core/database/src/update-associations.ts | 9 ++ packages/core/database/src/update-guard.ts | 9 ++ packages/core/database/src/utils.ts | 9 ++ .../src/value-parsers/array-value-parser.ts | 9 ++ .../src/value-parsers/base-value-parser.ts | 9 ++ .../src/value-parsers/boolean-value-parser.ts | 9 ++ .../src/value-parsers/date-value-parser.ts | 9 ++ .../core/database/src/value-parsers/index.ts | 9 ++ .../src/value-parsers/json-value-parser.ts | 9 ++ .../src/value-parsers/number-value-parser.ts | 9 ++ .../src/value-parsers/string-value-parser.ts | 9 ++ .../src/value-parsers/to-many-value-parser.ts | 9 ++ .../src/value-parsers/to-one-value-parser.ts | 9 ++ packages/core/database/src/view-collection.ts | 9 ++ .../core/database/src/view/field-type-map.ts | 9 ++ .../core/database/src/view/view-inference.ts | 9 ++ packages/core/devtools/src/index.js | 9 ++ .../src/client/engines/formulajs.ts | 9 ++ .../evaluators/src/client/engines/mathjs.ts | 9 ++ .../evaluators/src/client/engines/string.ts | 9 ++ packages/core/evaluators/src/client/index.tsx | 9 ++ packages/core/evaluators/src/index.ts | 9 ++ .../src/server/__tests__/index.test.ts | 9 ++ packages/core/evaluators/src/server/index.ts | 9 ++ .../utils/__tests__/appendArrayColumn.test.ts | 9 ++ .../core/evaluators/src/utils/formulajs.ts | 9 ++ packages/core/evaluators/src/utils/index.ts | 9 ++ packages/core/evaluators/src/utils/mathjs.ts | 9 ++ packages/core/evaluators/src/utils/string.ts | 9 ++ packages/core/logger/src/config.ts | 9 ++ packages/core/logger/src/format.ts | 9 ++ packages/core/logger/src/index.ts | 9 ++ packages/core/logger/src/logger.ts | 9 ++ packages/core/logger/src/request-logger.ts | 9 ++ packages/core/logger/src/system-logger.ts | 9 ++ packages/core/logger/src/transports.ts | 9 ++ .../resourcer/src/__tests__/actions/demo0.js | 9 ++ .../resourcer/src/__tests__/actions/demo1.ts | 9 ++ .../core/resourcer/src/__tests__/koa.test.ts | 9 ++ .../src/__tests__/middlewares/demo0.js | 9 ++ .../src/__tests__/middlewares/demo1.ts | 9 ++ .../resourcer/src/__tests__/resourcer.test.ts | 9 ++ .../resourcer/src/__tests__/resources/demo.ts | 9 ++ .../resourcer/src/__tests__/utils.test.ts | 9 ++ packages/core/resourcer/src/action.ts | 9 ++ packages/core/resourcer/src/index.ts | 9 ++ packages/core/resourcer/src/middleware.ts | 9 ++ packages/core/resourcer/src/resource.ts | 9 ++ packages/core/resourcer/src/resourcer.ts | 9 ++ packages/core/resourcer/src/utils.ts | 9 ++ packages/core/sdk/src/APIClient.ts | 9 ++ .../core/sdk/src/__tests__/api-client.test.ts | 9 ++ packages/core/sdk/src/getSubAppName.ts | 9 ++ packages/core/sdk/src/index.ts | 9 ++ .../server/src/__tests__/app-command.test.ts | 9 ++ .../src/__tests__/app-life-cycle.test.ts | 9 ++ .../src/__tests__/app-supervisor.test.ts | 9 ++ .../core/server/src/__tests__/app.test.ts | 9 ++ .../src/__tests__/application-version.test.ts | 9 ++ .../server/src/__tests__/application.test.ts | 9 ++ .../core/server/src/__tests__/command.test.ts | 9 ++ .../core/server/src/__tests__/cron.test.ts | 9 ++ .../src/__tests__/fixtures/long-json.ts | 9 ++ .../core/server/src/__tests__/gateway.test.ts | 9 ++ .../server/src/__tests__/gateway/ipc.test.ts | 9 ++ .../core/server/src/__tests__/i18next.test.ts | 9 ++ .../server/src/__tests__/life-cycle.test.ts | 9 ++ .../src/__tests__/main-data-source.test.ts | 9 ++ .../middlewares/data-wrapping.test.ts | 9 ++ .../__tests__/multiple-application.test.ts | 9 ++ .../core/server/src/__tests__/plugin.test.ts | 9 ++ .../server/src/__tests__/plugins/plugin1.ts | 9 ++ .../server/src/__tests__/plugins/plugin2.ts | 9 ++ .../server/src/__tests__/plugins/plugin3.ts | 9 ++ .../server/src/__tests__/plugins/test-a.ts | 9 ++ .../server/src/__tests__/plugins/test-b.ts | 9 ++ packages/core/server/src/__tests__/pm.test.ts | 9 ++ .../__tests__/validate-filter-params.test.ts | 9 ++ .../core/server/src/acl/available-action.ts | 9 ++ packages/core/server/src/acl/index.ts | 9 ++ packages/core/server/src/app-command.ts | 9 ++ packages/core/server/src/app-supervisor.ts | 9 ++ packages/core/server/src/application.ts | 9 ++ packages/core/server/src/cache/index.ts | 9 ++ packages/core/server/src/commands/console.ts | 9 ++ .../server/src/commands/create-migration.ts | 9 ++ packages/core/server/src/commands/db-auth.ts | 9 ++ packages/core/server/src/commands/db-clean.ts | 9 ++ packages/core/server/src/commands/db-sync.ts | 9 ++ packages/core/server/src/commands/destroy.ts | 9 ++ packages/core/server/src/commands/index.ts | 9 ++ packages/core/server/src/commands/install.ts | 9 ++ packages/core/server/src/commands/migrator.ts | 9 ++ packages/core/server/src/commands/pm.ts | 9 ++ packages/core/server/src/commands/refresh.ts | 9 ++ packages/core/server/src/commands/restart.ts | 9 ++ packages/core/server/src/commands/start.ts | 9 ++ packages/core/server/src/commands/stop.ts | 9 ++ packages/core/server/src/commands/upgrade.ts | 9 ++ .../core/server/src/cron/cron-job-manager.ts | 9 ++ .../src/errors/application-not-install.ts | 9 ++ packages/core/server/src/errors/handler.ts | 9 ++ .../server/src/errors/plugin-command-error.ts | 9 ++ .../server/src/errors/plugin-not-exist.ts | 9 ++ packages/core/server/src/gateway/errors.ts | 9 ++ packages/core/server/src/gateway/index.ts | 9 ++ .../server/src/gateway/ipc-socket-client.ts | 9 ++ .../server/src/gateway/ipc-socket-server.ts | 9 ++ packages/core/server/src/gateway/ws-server.ts | 9 ++ packages/core/server/src/helper.ts | 9 ++ .../server/src/helpers/application-version.ts | 9 ++ packages/core/server/src/index.ts | 9 ++ packages/core/server/src/locale/index.ts | 9 ++ packages/core/server/src/locale/locale.ts | 9 ++ packages/core/server/src/locale/resource.ts | 9 ++ packages/core/server/src/main-data-source.ts | 9 ++ .../server/src/middlewares/data-template.ts | 9 ++ .../server/src/middlewares/data-wrapping.ts | 9 ++ packages/core/server/src/middlewares/i18n.ts | 9 ++ packages/core/server/src/middlewares/index.ts | 9 ++ .../server/src/middlewares/parse-variables.ts | 9 ++ .../src/middlewares/validate-filter-params.ts | 9 ++ packages/core/server/src/migration.ts | 9 ++ .../20230912193824-package-name-unique.ts | 9 ++ .../migrations/20230912294620-update-pkg.ts | 9 ++ .../20240106082756-update-plugins.ts | 9 ++ .../20240428235620-rename-plugins.ts | 9 ++ .../src/plugin-manager/clientStaticUtils.ts | 9 ++ .../server/src/plugin-manager/constants.ts | 9 ++ .../core/server/src/plugin-manager/deps.ts | 9 ++ .../core/server/src/plugin-manager/index.ts | 9 ++ .../server/src/plugin-manager/middleware.ts | 9 ++ .../src/plugin-manager/options/collection.ts | 9 ++ .../src/plugin-manager/options/resource.ts | 9 ++ .../plugin-manager-repository.ts | 9 ++ .../src/plugin-manager/plugin-manager.ts | 9 ++ .../core/server/src/plugin-manager/types.ts | 9 ++ .../core/server/src/plugin-manager/utils.ts | 9 ++ packages/core/server/src/plugin.ts | 9 ++ packages/core/telemetry/src/index.ts | 9 ++ packages/core/telemetry/src/metric.ts | 9 ++ packages/core/telemetry/src/telemetry.ts | 9 ++ packages/core/telemetry/src/trace.ts | 9 ++ .../test/src/__tests__/omitSomeFields.test.ts | 9 ++ .../commonSettingsChecker/blockTitle.ts | 9 ++ .../commonSettingsChecker/fieldTitle.ts | 9 ++ .../src/client/commonSettingsChecker/index.ts | 9 ++ .../client/formItemChecker/collectionField.ts | 9 ++ .../src/client/formItemChecker/common.tsx | 9 ++ .../test/src/client/formItemChecker/icon.tsx | 9 ++ .../test/src/client/formItemChecker/index.ts | 9 ++ .../test/src/client/formItemChecker/input.tsx | 9 ++ .../test/src/client/formItemChecker/number.ts | 9 ++ .../test/src/client/formItemChecker/radio.tsx | 9 ++ .../src/client/formItemChecker/textarea.tsx | 9 ++ packages/core/test/src/client/index.tsx | 9 ++ packages/core/test/src/client/renderApp.tsx | 9 ++ .../test/src/client/renderHookWithApp.tsx | 9 ++ .../core/test/src/client/renderSettings.tsx | 9 ++ .../test/src/client/renderSingleSettings.tsx | 9 ++ .../src/client/settingsChecker/delete.tsx | 9 ++ .../test/src/client/settingsChecker/index.ts | 9 ++ .../test/src/client/settingsChecker/modal.tsx | 9 ++ .../src/client/settingsChecker/select.tsx | 9 ++ .../src/client/settingsChecker/switch.tsx | 9 ++ .../core/test/src/client/utils/checkModal.tsx | 9 ++ .../test/src/client/utils/checkSchema.tsx | 9 ++ packages/core/test/src/client/utils/index.ts | 9 ++ packages/core/test/src/client/utils/utils.ts | 9 ++ packages/core/test/src/e2e/defineConfig.ts | 9 ++ packages/core/test/src/e2e/e2eUtils.ts | 9 ++ packages/core/test/src/e2e/index.ts | 9 ++ .../test/src/e2e/templatesOfCollection.ts | 9 ++ packages/core/test/src/e2e/templatesOfPage.ts | 9 ++ packages/core/test/src/index.ts | 9 ++ .../core/test/src/scripts/test-db-creator.ts | 9 ++ .../test/src/scripts/test-db-distributor.ts | 9 ++ packages/core/test/src/server/index.ts | 9 ++ packages/core/test/src/server/mockServer.ts | 9 ++ packages/core/test/src/web/index.tsx | 9 ++ packages/core/test/src/web/utils.ts | 9 ++ .../core/utils/src/__tests__/assign.test.ts | 9 ++ .../src/__tests__/collection-graph.test.ts | 9 ++ .../core/utils/src/__tests__/common.test.ts | 9 ++ .../core/utils/src/__tests__/forEach.test.ts | 9 ++ .../src/__tests__/getValuesByPath.test.ts | 9 ++ .../utils/src/__tests__/import-module.test.ts | 9 ++ .../utils/src/__tests__/isValidFilter.test.ts | 9 ++ .../utils/src/__tests__/parse-date.test.ts | 9 ++ .../utils/src/__tests__/parse-filter.test.ts | 9 ++ .../utils/src/__tests__/parseHTML.test.ts | 9 ++ packages/core/utils/src/__tests__/test.ts | 9 ++ .../utils/src/__tests__/toFixedByStep.test.ts | 9 ++ packages/core/utils/src/assign.ts | 9 ++ packages/core/utils/src/client.ts | 9 ++ packages/core/utils/src/collections-graph.ts | 9 ++ packages/core/utils/src/common.ts | 9 ++ packages/core/utils/src/date.ts | 9 ++ packages/core/utils/src/dayjs.ts | 9 ++ packages/core/utils/src/forEach.ts | 9 ++ packages/core/utils/src/fs-exists.ts | 9 ++ packages/core/utils/src/getValuesByPath.ts | 9 ++ packages/core/utils/src/index.ts | 9 ++ packages/core/utils/src/isPortalInBody.ts | 9 ++ packages/core/utils/src/isValidFilter.ts | 9 ++ packages/core/utils/src/json-templates.ts | 9 ++ packages/core/utils/src/koa-multer.ts | 9 ++ packages/core/utils/src/log.ts | 9 ++ .../core/utils/src/measure-execution-time.ts | 9 ++ packages/core/utils/src/merge.ts | 9 ++ packages/core/utils/src/mixin/AsyncEmitter.ts | 9 ++ packages/core/utils/src/mixin/index.ts | 9 ++ packages/core/utils/src/notification.ts | 9 ++ packages/core/utils/src/number.ts | 9 ++ packages/core/utils/src/parse-date.ts | 9 ++ packages/core/utils/src/parse-filter.ts | 9 ++ packages/core/utils/src/parseHTML.ts | 9 ++ packages/core/utils/src/perf-hooks.ts | 9 ++ packages/core/utils/src/registry.ts | 9 ++ packages/core/utils/src/requireModule.ts | 9 ++ packages/core/utils/src/server.ts | 9 ++ packages/core/utils/src/toposort.ts | 9 ++ packages/core/utils/src/uid.ts | 9 ++ packages/core/utils/src/url.ts | 9 ++ .../plugin-acl/src/client/NewRole.tsx | 9 ++ .../plugin-acl/src/client/RolesManagement.tsx | 9 ++ .../src/client/RolesManagerProvider.tsx | 9 ++ .../plugin-acl/src/client/RolesMenu.tsx | 9 ++ .../src/client/__e2e__/association.test.ts | 9 ++ .../src/client/__e2e__/collection.test.ts | 9 ++ .../src/client/__e2e__/configure.test.ts | 9 ++ .../src/client/__e2e__/menu.test.ts | 9 ++ .../plugin-acl/src/client/__e2e__/utils.ts | 9 ++ .../src/client/hooks/load-more-observer.ts | 9 ++ .../@nocobase/plugin-acl/src/client/index.ts | 9 ++ .../@nocobase/plugin-acl/src/client/locale.ts | 9 ++ .../client/permissions/ActionPermissions.tsx | 9 ++ .../client/permissions/AvailableActions.tsx | 9 ++ .../client/permissions/GeneralPermissions.tsx | 9 ++ .../client/permissions/MenuItemsProvider.tsx | 9 ++ .../client/permissions/MenuPermissions.tsx | 9 ++ .../src/client/permissions/Permissions.tsx | 9 ++ .../client/permissions/PluginPermissions.tsx | 9 ++ .../permissions/RolesResourcesActions.tsx | 9 ++ .../src/client/permissions/ScopeSelect.tsx | 9 ++ .../client/permissions/StrategyActions.tsx | 9 ++ .../src/client/permissions/style.ts | 9 ++ .../plugin-acl/src/client/roles-manager.ts | 9 ++ .../plugin-acl/src/client/schemas/roles.ts | 9 ++ .../plugin-acl/src/client/schemas/scopes.ts | 9 ++ .../plugins/@nocobase/plugin-acl/src/index.ts | 9 ++ .../src/server/__tests__/acl.test.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../__tests__/association-field.test.ts | 9 ++ .../server/__tests__/configuration.test.ts | 9 ++ .../src/server/__tests__/list-action.test.ts | 9 ++ .../src/server/__tests__/middleware.test.ts | 9 ++ .../src/server/__tests__/own.test.ts | 9 ++ .../src/server/__tests__/prepare.ts | 9 ++ .../src/server/__tests__/role-check.test.ts | 9 ++ .../server/__tests__/role-resource.test.ts | 9 ++ .../src/server/__tests__/role-user.test.ts | 9 ++ .../src/server/__tests__/role.test.ts | 9 ++ .../src/server/__tests__/scope.test.ts | 9 ++ .../server/__tests__/setCurrentRole.test.ts | 9 ++ .../src/server/__tests__/snippets.test.ts | 9 ++ .../src/server/__tests__/users.test.ts | 9 ++ .../__tests__/validate-filter-params.test.ts | 9 ++ .../__tests__/write-role-to-acl.test.ts | 9 ++ .../src/server/actions/available-actions.ts | 9 ++ .../src/server/actions/role-check.ts | 9 ++ .../src/server/actions/role-collections.ts | 9 ++ .../src/server/actions/user-setDefaultRole.ts | 9 ++ .../src/server/collections/roles-users.ts | 9 ++ .../src/server/collections/roles.ts | 9 ++ .../src/server/collections/rolesResources.ts | 9 ++ .../collections/rolesResourcesActions.ts | 9 ++ .../collections/rolesResourcesScopes.ts | 9 ++ .../src/server/collections/users.ts | 9 ++ .../@nocobase/plugin-acl/src/server/index.ts | 9 ++ .../src/server/middlewares/setCurrentRole.ts | 9 ++ .../src/server/middlewares/with-acl-meta.ts | 9 ++ .../20221214072638-set-role-snippets.ts | 9 ++ .../plugin-acl/src/server/model/RoleModel.ts | 9 ++ .../server/model/RoleResourceActionModel.ts | 9 ++ .../src/server/model/RoleResourceModel.ts | 9 ++ .../@nocobase/plugin-acl/src/server/server.ts | 9 ++ .../@nocobase/plugin-acl/src/swagger/index.ts | 9 ++ .../src/client/BulkEditAction.Settings.tsx | 9 ++ .../src/client/BulkEditActionInitializer.tsx | 9 ++ .../src/client/BulkEditBlockInitializers.tsx | 9 ++ .../client/BulkEditFormActionInitializers.tsx | 9 ++ .../client/BulkEditFormItemInitializers.tsx | 9 ++ .../BulkEditSubmitActionInitializer.tsx | 9 ++ .../CreateFormBulkEditBlockInitializer.tsx | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../src/client/bulkEditFormItemSettings.ts | 9 ++ .../src/client/component/BulkEditField.tsx | 9 ++ .../src/client/createBulkEditBlockUISchema.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/utils.tsx | 9 ++ .../plugin-action-bulk-edit/src/index.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/client/BulkUpdateAction.Settings.tsx | 9 ++ .../client/BulkUpdateActionInitializer.tsx | 9 ++ .../src/client/CustomizeActionInitializer.tsx | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/utils.tsx | 9 ++ .../plugin-action-bulk-update/src/index.ts | 9 ++ .../src/locale/en-US.ts | 9 ++ .../src/locale/es-ES.ts | 9 ++ .../src/locale/ko_KR.ts | 9 ++ .../src/locale/pt-BR.ts | 9 ++ .../src/locale/zh-CN.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../client/components/CustomRequestAction.tsx | 9 ++ .../CustomRequestActionDesigner.tsx | 9 ++ .../src/client/components/index.ts | 9 ++ .../src/client/constants.ts | 9 ++ .../src/client/hooks/index.ts | 9 ++ .../hooks/useCustomRequestVariableOptions.ts | 9 ++ .../client/hooks/useCustomRequestsResource.ts | 9 ++ .../hooks/useCustomizeRequestActionProps.ts | 9 ++ .../src/client/hooks/useGetCustomRequest.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../initializer/CustomRequestInitializer.tsx | 9 ++ .../src/client/initializer/index.ts | 9 ++ .../src/client/locale.ts | 9 ++ .../src/client/schemaSettings.ts | 9 ++ .../src/client/schemas/CustomRequestACL.ts | 9 ++ .../CustomRequestConfigurationFields.ts | 9 ++ .../src/client/schemas/index.ts | 9 ++ .../plugin-action-custom-request/src/index.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../src/server/actions/listByCurrentRole.ts | 9 ++ .../src/server/actions/send.ts | 9 ++ .../src/server/collections/customRequest.ts | 9 ++ .../server/collections/customRequestsRoles.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20240425205017-change-locale-module.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/client/DuplicateAction.Settings.tsx | 9 ++ .../src/client/DuplicateAction.tsx | 9 ++ .../src/client/DuplicateActionInitializer.tsx | 9 ++ .../src/client/DuplicatePluginProvider.tsx | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-action-duplicate/src/index.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/client/ExportActionInitializer.tsx | 9 ++ .../src/client/ExportDesigner.tsx | 9 ++ .../src/client/ExportPluginProvider.tsx | 9 ++ .../plugin-action-export/src/client/index.ts | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/schemaSettings.ts | 9 ++ .../src/client/useExportAction.tsx | 9 ++ .../src/client/useFields.ts | 9 ++ .../src/client/useShared.ts | 9 ++ .../plugin-action-export/src/index.ts | 9 ++ .../src/server/__tests__/utils/utils.test.ts | 9 ++ .../src/server/actions/export-xlsx.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../plugin-action-export/src/server/index.ts | 9 ++ .../20240425220631-change-locale-module.ts | 9 ++ .../src/server/renders/index.ts | 9 ++ .../src/server/renders/renders.ts | 9 ++ .../src/server/utils/columns2Appends.ts | 9 ++ .../src/server/utils/index.ts | 9 ++ .../src/client/ImportActionInitializer.tsx | 9 ++ .../src/client/ImportDesigner.tsx | 9 ++ .../src/client/ImportModal.tsx | 9 ++ .../src/client/ImportPluginProvider.tsx | 9 ++ .../src/client/constants.ts | 9 ++ .../src/client/context.ts | 9 ++ .../plugin-action-import/src/client/index.ts | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/schemaSettings.ts | 9 ++ .../src/client/useFields.ts | 9 ++ .../src/client/useImportAction.ts | 9 ++ .../src/client/useShared.ts | 9 ++ .../plugin-action-import/src/index.ts | 9 ++ .../server/actions/downloadXlsxTemplate.ts | 9 ++ .../src/server/actions/importXlsx.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../plugin-action-import/src/server/index.ts | 9 ++ .../src/server/locale/en-US.ts | 9 ++ .../src/server/locale/fr-FR.ts | 9 ++ .../src/server/locale/index.ts | 9 ++ .../src/server/locale/zh-CN.ts | 9 ++ .../src/server/middleware/index.ts | 9 ++ .../20240425223956-change-locale-module.ts | 9 ++ .../src/server/utils/index.ts | 9 ++ .../src/server/utils/transform.ts | 9 ++ .../src/client/PrintAction.Settings.tsx | 9 ++ .../src/client/PrintActionInitializer.tsx | 9 ++ .../src/client/PrintActionPluginProvider.tsx | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../plugin-action-print/src/client/index.tsx | 9 ++ .../plugin-action-print/src/client/utils.ts | 9 ++ .../plugin-action-print/src/index.ts | 9 ++ .../plugin-action-print/src/server/index.ts | 9 ++ .../plugin-action-print/src/server/plugin.ts | 9 ++ .../plugin-api-doc/src/client/Document.tsx | 9 ++ .../plugin-api-doc/src/client/index.tsx | 9 ++ .../@nocobase/plugin-api-doc/src/index.ts | 9 ++ .../plugin-api-doc/src/locale/index.ts | 9 ++ .../plugin-api-doc/src/server/index.ts | 9 ++ .../plugin-api-doc/src/server/server.ts | 9 ++ .../src/server/swagger/base-swagger.ts | 9 ++ .../collections/components/field-type-map.ts | 9 ++ .../swagger/collections/components/index.ts | 9 ++ .../collections/components/parameters.ts | 9 ++ .../swagger/collections/components/schemas.ts | 9 ++ .../src/server/swagger/collections/index.ts | 9 ++ .../collections/paths/associations/index.ts | 9 ++ .../associations/multiple-association.ts | 9 ++ .../paths/associations/single-association.ts | 9 ++ .../swagger/collections/paths/collection.ts | 9 ++ .../server/swagger/collections/paths/index.ts | 9 ++ .../server/swagger/collections/tags/index.ts | 9 ++ .../src/server/swagger/constants.ts | 9 ++ .../src/server/swagger/helpers.ts | 9 ++ .../src/server/swagger/index.ts | 9 ++ .../src/server/swagger/loader.ts | 9 ++ .../src/server/swagger/merge.ts | 9 ++ .../@nocobase/plugin-api-doc/src/swagger.ts | 9 ++ .../client/Configuration/ExpiresSelect.tsx | 9 ++ .../src/client/Configuration/index.tsx | 9 ++ .../src/client/Configuration/roles.ts | 9 ++ .../src/client/Configuration/schema.tsx | 9 ++ .../plugin-api-keys/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/collections/apiKeys.ts | 9 ++ .../plugin-api-keys/src/constants.ts | 9 ++ .../@nocobase/plugin-api-keys/src/index.ts | 9 ++ .../@nocobase/plugin-api-keys/src/locale.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../src/server/actions/api-keys.ts | 9 ++ .../src/server/collections/apiKeys.ts | 9 ++ .../plugin-api-keys/src/server/index.ts | 9 ++ .../src/server/locale/en-US.ts | 9 ++ .../src/server/locale/fr-FR.ts | 9 ++ .../src/server/locale/index.ts | 9 ++ .../src/server/locale/zh-CN.ts | 9 ++ .../plugin-api-keys/src/server/plugin.ts | 9 ++ .../plugin-api-keys/src/swagger/index.ts | 9 ++ .../src/client/AuditLogsBlockInitializer.tsx | 9 ++ .../src/client/AuditLogsBlockProvider.tsx | 9 ++ .../src/client/AuditLogsProvider.tsx | 9 ++ .../createAuditLogsBlockSchema.test.ts | 9 ++ .../src/client/collections.tsx | 9 ++ .../src/client/components/AuditLogsField.tsx | 9 ++ .../src/client/components/AuditLogsValue.tsx | 9 ++ .../AuditLogsViewActionInitializer.tsx | 9 ++ .../src/client/createAuditLogsBlockSchema.tsx | 9 ++ .../src/client/deplicated/AuditLogs.tsx | 9 ++ .../client/deplicated/AuditLogsDesigner.tsx | 9 ++ .../plugin-audit-logs/src/client/index.ts | 9 ++ .../AuditLogsTableActionColumnInitializer.tsx | 9 ++ ...AuditLogsTableActionColumnInitializers.tsx | 9 ++ .../AuditLogsTableActionInitializers.tsx | 9 ++ .../AuditLogsTableColumnInitializers.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../plugin-audit-logs/src/client/utils.ts | 9 ++ .../@nocobase/plugin-audit-logs/src/index.ts | 9 ++ .../src/server/__tests__/hook.test.ts | 9 ++ .../src/server/collections/auditChanges.ts | 9 ++ .../src/server/collections/auditLogs.ts | 9 ++ .../plugin-audit-logs/src/server/constants.ts | 9 ++ .../src/server/hooks/after-create.ts | 9 ++ .../src/server/hooks/after-destroy.ts | 9 ++ .../src/server/hooks/after-update.ts | 9 ++ .../src/server/hooks/index.ts | 9 ++ .../plugin-audit-logs/src/server/index.ts | 9 ++ .../server/migrations/202206160949-logging.ts | 9 ++ .../plugin-auth-sms/src/client/Options.tsx | 9 ++ .../plugin-auth-sms/src/client/SigninPage.tsx | 9 ++ .../src/client/VerificationCode.tsx | 9 ++ .../plugin-auth-sms/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../plugin-auth-sms/src/constants.ts | 9 ++ .../@nocobase/plugin-auth-sms/src/index.ts | 9 ++ .../src/server/__tests__/signin.test.ts | 9 ++ .../plugin-auth-sms/src/server/index.ts | 9 ++ .../src/server/locale/en-US.ts | 9 ++ .../src/server/locale/fr-FR.ts | 9 ++ .../src/server/locale/index.ts | 9 ++ .../src/server/locale/ja-JP.ts | 9 ++ .../src/server/locale/pt-BR.ts | 9 ++ .../src/server/locale/zh-CN.ts | 9 ++ .../20230607180000-sms-authenticator.ts | 9 ++ .../20240425230310-change-locale-module.ts | 9 ++ .../plugin-auth-sms/src/server/plugin.ts | 9 ++ .../plugin-auth-sms/src/server/sms-auth.ts | 9 ++ .../plugin-auth/src/client/AuthProvider.tsx | 9 ++ .../src/client/__e2e__/auth.test.ts | 9 ++ .../plugin-auth/src/client/authenticator.ts | 9 ++ .../plugin-auth/src/client/basic/Options.tsx | 9 ++ .../src/client/basic/SignInForm.tsx | 9 ++ .../src/client/basic/SignUpForm.tsx | 9 ++ .../plugin-auth/src/client/basic/index.ts | 9 ++ .../plugin-auth/src/client/index.tsx | 9 ++ .../plugin-auth/src/client/locale/index.ts | 9 ++ .../src/client/pages/AuthLayout.tsx | 9 ++ .../src/client/pages/SignInPage.tsx | 9 ++ .../src/client/pages/SignUpPage.tsx | 9 ++ .../plugin-auth/src/client/pages/index.ts | 9 ++ .../src/client/settings/Authenticator.tsx | 9 ++ .../src/client/settings/Options.tsx | 9 ++ .../src/client/settings/authType.ts | 9 ++ .../client/settings/schemas/authenticators.ts | 9 ++ .../@nocobase/plugin-auth/src/index.ts | 9 ++ .../@nocobase/plugin-auth/src/preset.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../src/server/__tests__/auth-model.test.ts | 9 ++ .../src/server/__tests__/auth.test.ts | 9 ++ .../src/server/__tests__/storer.test.ts | 9 ++ .../server/__tests__/token-blacklist.test.ts | 9 ++ .../plugin-auth/src/server/actions/auth.ts | 9 ++ .../src/server/actions/authenticators.ts | 9 ++ .../plugin-auth/src/server/basic-auth.ts | 9 ++ .../src/server/collections/authenticators.ts | 9 ++ .../src/server/collections/token-blacklist.ts | 9 ++ .../collections/users-authenticators.ts | 9 ++ .../@nocobase/plugin-auth/src/server/index.ts | 9 ++ .../plugin-auth/src/server/locale/en-US.ts | 9 ++ .../plugin-auth/src/server/locale/fr-FR.ts | 9 ++ .../plugin-auth/src/server/locale/index.ts | 9 ++ .../plugin-auth/src/server/locale/ja-JP.ts | 9 ++ .../plugin-auth/src/server/locale/pt-BR.ts | 9 ++ .../plugin-auth/src/server/locale/zh-CN.ts | 9 ++ .../20230506152253-basic-authenticator.ts | 9 ++ .../migrations/20230607174500-update-basic.ts | 9 ++ .../20231218132032-fix-allow-signup.ts | 9 ++ .../src/server/model/authenticator.ts | 9 ++ .../plugin-auth/src/server/plugin.ts | 9 ++ .../plugin-auth/src/server/storer.ts | 9 ++ .../plugin-auth/src/server/token-blacklist.ts | 9 ++ .../plugin-auth/src/swagger/index.ts | 9 ++ .../src/client/Configuration.tsx | 9 ++ .../src/client/DuplicatorProvider.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../plugin-backup-restore/src/index.ts | 9 ++ .../plugin-backup-restore/src/locale/ja-JP.ts | 9 ++ .../plugin-backup-restore/src/locale/pt-BR.ts | 9 ++ .../src/server/__tests__/api.test.ts | 9 ++ .../src/server/__tests__/dump-action.test.ts | 9 ++ .../src/server/__tests__/dumper.test.ts | 9 ++ .../src/server/__tests__/index.ts | 9 ++ .../src/server/__tests__/on-dump.test.ts | 9 ++ .../src/server/app-migrator.ts | 9 ++ .../src/server/commands/restore-command.ts | 9 ++ .../src/server/dumper.ts | 9 ++ .../src/server/errors/restore-check-error.ts | 9 ++ .../src/server/field-value-writer.ts | 9 ++ .../plugin-backup-restore/src/server/index.ts | 9 ++ .../src/server/locale/zh-CN.ts | 9 ++ .../src/server/resourcers/backup-files.ts | 9 ++ .../src/server/restorer.ts | 9 ++ .../src/server/server.ts | 9 ++ .../plugin-backup-restore/src/server/utils.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../src/client/Iframe.Designer.tsx | 9 ++ .../plugin-block-iframe/src/client/Iframe.tsx | 9 ++ .../src/client/IframeBlockInitializer.tsx | 9 ++ .../src/client/IframeBlockProvider.tsx | 9 ++ .../plugin-block-iframe/src/client/index.ts | 9 ++ .../src/client/schemaSettings.ts | 9 ++ .../plugin-block-iframe/src/index.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../src/server/collections/iframe-html.ts | 9 ++ .../plugin-block-iframe/src/server/index.ts | 9 ++ .../plugin-block-iframe/src/server/plugin.ts | 9 ++ .../plugin-block-iframe/src/swagger/index.ts | 9 ++ .../client/__e2e__/schemaInitializer.test.ts | 9 ++ .../src/client/__e2e__/templates.ts | 9 ++ .../src/client/__tests__/calendar.test.tsx | 9 ++ .../createCalendarBlockSchema.test.ts | 9 ++ .../src/client/calendar/Calendar.Designer.tsx | 9 ++ .../src/client/calendar/Calendar.tsx | 9 ++ .../src/client/calendar/Calender.Settings.tsx | 9 ++ .../src/client/calendar/DeleteEvent.tsx | 9 ++ .../src/client/calendar/Event.tsx | 9 ++ .../src/client/calendar/Nav.tsx | 9 ++ .../src/client/calendar/Title.tsx | 9 ++ .../src/client/calendar/Today.tsx | 9 ++ .../src/client/calendar/ViewSelect.tsx | 9 ++ .../src/client/calendar/components/Header.tsx | 9 ++ .../src/client/calendar/context.ts | 9 ++ .../src/client/calendar/demos/collections.ts | 9 ++ .../src/client/calendar/demos/data.ts | 9 ++ .../client/calendar/demos/defaultValues.ts | 9 ++ .../src/client/calendar/demos/demo1.tsx | 9 ++ .../src/client/calendar/demos/demo2.tsx | 9 ++ .../src/client/calendar/global.style.ts | 9 ++ .../src/client/calendar/index.ts | 9 ++ .../src/client/calendar/style.ts | 9 ++ .../src/client/calendar/types.d.ts | 9 ++ .../src/client/calendar/utils.ts | 9 ++ .../client/collection-templates/calendar.tsx | 9 ++ .../hooks/useCalendarBlockDecoratorProps.ts | 9 ++ .../client/hooks/useCalendarBlockParams.ts | 9 ++ .../plugin-calendar/src/client/index.tsx | 9 ++ .../CalendarBlockProvider.tsx | 9 ++ .../createCalendarBlockUISchema.ts | 9 ++ .../CalendarActionInitializers.tsx | 9 ++ .../CalendarFormActionInitializers.tsx | 9 ++ .../schema-initializer/initializers/index.ts | 9 ++ .../items/CalendarBlockInitializer.tsx | 9 ++ ...ordAssociationCalendarBlockInitializer.tsx | 9 ++ .../client/schema-initializer/items/index.ts | 9 ++ .../@nocobase/plugin-calendar/src/index.ts | 9 ++ .../plugin-calendar/src/locale/en_US.ts | 9 ++ .../plugin-calendar/src/locale/es_ES.ts | 9 ++ .../plugin-calendar/src/locale/fr_FR.ts | 9 ++ .../plugin-calendar/src/locale/index.ts | 9 ++ .../plugin-calendar/src/locale/ja_JP.ts | 9 ++ .../plugin-calendar/src/locale/ko_KR.ts | 9 ++ .../plugin-calendar/src/locale/pt_BR.ts | 9 ++ .../plugin-calendar/src/locale/ru_RU.ts | 9 ++ .../plugin-calendar/src/locale/tr_TR.ts | 9 ++ .../plugin-calendar/src/locale/uk_UA.ts | 9 ++ .../plugin-calendar/src/locale/zh-CN.ts | 9 ++ .../plugin-calendar/src/server/index.ts | 9 ++ .../plugin-calendar/src/server/server.ts | 9 ++ .../src/client/ChartBlockEngine.tsx | 9 ++ .../src/client/ChartBlockEngineDesigner.tsx | 9 ++ .../src/client/ChartBlockInitializer.tsx | 9 ++ .../src/client/ChartQueryBlockInitializer.tsx | 9 ++ .../src/client/ChartQueryMetadataProvider.tsx | 9 ++ .../src/client/DataSetPreviewTable.tsx | 9 ++ .../plugin-charts/src/client/Icons.tsx | 9 ++ .../src/client/chartRenderComponents/index.ts | 9 ++ .../plugin-charts/src/client/hooks/index.ts | 9 ++ .../plugin-charts/src/client/index.tsx | 9 ++ .../plugin-charts/src/client/locale/index.ts | 9 ++ .../src/client/select/CustomSelect.tsx | 9 ++ .../src/client/select/ReadPretty.tsx | 9 ++ .../plugin-charts/src/client/select/index.ts | 9 ++ .../plugin-charts/src/client/select/shared.ts | 9 ++ .../src/client/settings/AddNewQuery.tsx | 9 ++ .../src/client/settings/ConfigureFields.tsx | 9 ++ .../src/client/settings/QueriesTable.tsx | 9 ++ .../src/client/settings/queryTypes.ts | 9 ++ .../client/settings/schemas/chartsQueries.ts | 9 ++ .../src/client/templates/AreaTemplate.tsx | 9 ++ .../src/client/templates/BarTemplate.tsx | 9 ++ .../src/client/templates/ColumnTemplate.tsx | 9 ++ .../src/client/templates/FunnelTemplate.tsx | 9 ++ .../src/client/templates/LineTemplate.tsx | 9 ++ .../src/client/templates/PieTemplate.tsx | 9 ++ .../src/client/templates/RadarTemplate.tsx | 9 ++ .../src/client/templates/ScatterTemplate.tsx | 9 ++ .../src/client/templates/TableTemplate.tsx | 9 ++ .../src/client/templates/index.ts | 9 ++ .../plugin-charts/src/client/utils.ts | 9 ++ .../@nocobase/plugin-charts/src/index.ts | 9 ++ .../plugin-charts/src/locale/en-US.ts | 9 ++ .../plugin-charts/src/locale/es-ES.ts | 9 ++ .../plugin-charts/src/locale/fr-FR.ts | 9 ++ .../plugin-charts/src/locale/ja-JP.ts | 9 ++ .../plugin-charts/src/locale/ko_KR.ts | 9 ++ .../plugin-charts/src/locale/pt-BR.ts | 9 ++ .../plugin-charts/src/locale/ru-RU.ts | 9 ++ .../plugin-charts/src/locale/tr-TR.ts | 9 ++ .../plugin-charts/src/locale/zh-CN.ts | 9 ++ .../src/server/actions/chartsQueries.ts | 9 ++ .../plugin-charts/src/server/actions/index.ts | 9 ++ .../src/server/collections/chartsQueries.ts | 9 ++ .../plugin-charts/src/server/index.ts | 9 ++ .../plugin-charts/src/server/plugin.ts | 9 ++ .../plugin-charts/src/server/query.ts | 9 ++ .../plugin-charts/src/server/shared/index.ts | 9 ++ .../plugin-client/src/client/index.ts | 9 ++ .../@nocobase/plugin-client/src/index.ts | 9 ++ .../20231215215245-admin-menu-uid.test.ts | 9 ++ .../plugin-client/src/server/antd.ts | 9 ++ .../plugin-client/src/server/cron.ts | 9 ++ .../plugin-client/src/server/cronstrue.ts | 9 ++ .../plugin-client/src/server/index.ts | 9 ++ .../20230620203216-admin-ui-schema-uid.ts | 9 ++ .../20231215215247-admin-menu-uid.ts | 9 ++ .../plugin-client/src/server/server.ts | 9 ++ .../collection-template/calendar.test.ts | 9 ++ .../connectToDatabaseView.test.ts | 9 ++ .../collection-template/expression.test.ts | 9 ++ .../__e2e__/collection-template/file.test.ts | 9 ++ .../collection-template/general.test.ts | 9 ++ .../__e2e__/collection-template/sql.test.ts | 9 ++ .../__e2e__/collection-template/tree.test.ts | 9 ++ .../attachment/schemaInitializer.test.ts | 9 ++ .../fields/attachment/schemaSettings.test.ts | 9 ++ .../belongsTo/schemaInitializer.test.ts | 9 ++ .../fields/belongsTo/schemaSettings.test.ts | 9 ++ .../fields/checkbox/schemaInitializer.test.ts | 9 ++ .../fields/checkbox/schemaSettings.test.ts | 9 ++ .../checkboxGroup/schemaInitializer.test.ts | 9 ++ .../checkboxGroup/schemaSettings.test.ts | 9 ++ .../chinaRegion/schemaInitializer.test.ts | 9 ++ .../fields/chinaRegion/schemaSettings.test.ts | 9 ++ .../collection/schemaInitializer.test.ts | 9 ++ .../fields/collection/schemaSettings.test.ts | 9 ++ .../fields/color/schemaInitializer.test.ts | 9 ++ .../fields/color/schemaSettings.test.ts | 9 ++ .../createdAt/schemaInitializer.test.ts | 9 ++ .../fields/createdAt/schemaSettings.test.ts | 9 ++ .../createdBy/schemaInitializer.test.ts | 9 ++ .../fields/createdBy/schemaSettings.test.ts | 9 ++ .../fields/datetime/schemaInitializer.test.ts | 9 ++ .../fields/datetime/schemaSettings.test.ts | 9 ++ .../fields/email/schemaInitializer.test.ts | 9 ++ .../fields/email/schemaSettings.test.ts | 9 ++ .../fields/formula/schemaInitializer.test.ts | 9 ++ .../fields/formula/schemaSettings.test.ts | 9 ++ .../fields/hasOne/schemaInitializer.test.ts | 9 ++ .../fields/hasOne/schemaSettings.test.ts | 9 ++ .../fields/icon/schemaInitializer.test.ts | 9 ++ .../fields/icon/schemaSettings.test.ts | 9 ++ .../fields/id/schemaInitializer.test.ts | 9 ++ .../__e2e__/fields/id/schemaSettings.test.ts | 9 ++ .../fields/integer/schemaInitializer.test.ts | 9 ++ .../fields/integer/schemaSettings.test.ts | 9 ++ .../fields/json/schemaInitializer.test.ts | 9 ++ .../fields/json/schemaSettings.test.ts | 9 ++ .../lastUpdatedAt/schemaInitializer.test.ts | 9 ++ .../lastUpdatedAt/schemaSettings.test.ts | 9 ++ .../lastUpdatedBy/schemaInitializer.test.ts | 9 ++ .../lastUpdatedBy/schemaSettings.test.ts | 9 ++ .../fields/longText/schemaInitializer.test.ts | 9 ++ .../fields/longText/schemaSettings.test.ts | 9 ++ .../manyToMany/schemaInitializer.test.ts | 9 ++ .../fields/manyToMany/schemaSettings1.test.ts | 9 ++ .../fields/manyToMany/schemaSettings2.test.ts | 9 ++ .../fields/manyToMany/schemaSettings3.test.ts | 9 ++ .../fields/manyToMany/schemaSettings4.test.ts | 9 ++ .../fields/manyToMany/schemaSettings5.test.ts | 9 ++ .../manyToOne/schemaInitializer.test.ts | 9 ++ .../fields/manyToOne/schemaSettings.test.ts | 9 ++ .../fields/manyToOne/templatesOfBug.ts | 9 ++ .../fields/markdown/schemaInitializer.test.ts | 9 ++ .../fields/markdown/schemaSettings.test.ts | 9 ++ .../mutipleSelect/schemaInitializer.test.ts | 9 ++ .../mutipleSelect/schemaSettings.test.ts | 9 ++ .../fields/number/schemaInitializer.test.ts | 9 ++ .../fields/number/schemaSettings.test.ts | 9 ++ .../oneToMany/schemaInitializer.test.ts | 9 ++ .../fields/oneToMany/schemaSettings.test.ts | 9 ++ .../fields/password/schemaInitializer.test.ts | 9 ++ .../fields/password/schemaSettings.test.ts | 9 ++ .../fields/percent/schemaInitializer.test.ts | 9 ++ .../fields/percent/schemaSettings.test.ts | 9 ++ .../fields/phone/schemaInitializer.test.ts | 9 ++ .../fields/phone/schemaSettings.test.ts | 9 ++ .../radioGroup/schemaInitializer.test.ts | 9 ++ .../fields/radioGroup/schemaSettings.test.ts | 9 ++ .../fields/richText/schemaInitializer.test.ts | 9 ++ .../fields/richText/schemaSettings.test.ts | 9 ++ .../fields/sequence/schemaInitializer.test.ts | 9 ++ .../fields/sequence/schemaSettings.test.ts | 9 ++ .../singleLineText/schemaInitializer.test.ts | 9 ++ .../singleLineText/schemaSettings.test.ts | 9 ++ .../singleSelect/schemaInitializer.test.ts | 9 ++ .../singleSelect/schemaSettings.test.ts | 9 ++ .../fields/tableOID/schemaInitializer.test.ts | 9 ++ .../fields/tableOID/schemaSettings.test.ts | 9 ++ .../fields/time/schemaInitializer.test.ts | 9 ++ .../fields/time/schemaSettings.test.ts | 9 ++ .../fields/url/schemaInitializer.test.ts | 9 ++ .../__e2e__/fields/url/schemaSettings.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-data-source-main/src/index.ts | 9 ++ .../src/server/__tests__/action.test.ts | 9 ++ .../reference-integerity-check.test.ts | 9 ++ .../__tests__/beforeInitOptions.test.ts | 9 ++ .../__tests__/collection-categories.test.ts | 9 ++ .../server/__tests__/collection-load.test.ts | 9 ++ ...ollection-without-id-primary-field.test.ts | 9 ++ .../__tests__/collections.repository.test.ts | 9 ++ .../field-options/default-value.test.ts | 9 ++ .../__tests__/field-options/indexes.test.ts | 9 ++ .../__tests__/fields.repository.test.ts | 9 ++ .../__tests__/fields/belongs-to-many.test.ts | 9 ++ .../__tests__/fields/belongs-to.test.ts | 9 ++ .../server/__tests__/fields/belongsTo.test.ts | 9 ++ .../server/__tests__/fields/destroy.test.ts | 9 ++ .../server/__tests__/fields/hasMany.test.ts | 9 ++ .../server/__tests__/fields/hasOne.test.ts | 9 ++ .../__tests__/fields/reverseField.test.ts | 9 ++ .../src/server/__tests__/fields/uuid.test.ts | 9 ++ .../http-api/belongs-to-many.test.ts | 9 ++ .../__tests__/http-api/collections.test.ts | 9 ++ .../server/__tests__/http-api/find.test.ts | 9 ++ .../__tests__/http-api/has-many.test.ts | 9 ++ .../http-api/inherited-collection.test.ts | 9 ++ .../__tests__/http-api/recreate.test.ts | 9 ++ .../server/__tests__/http-api/tree.test.ts | 9 ++ .../http-api/validate-update-action.test.ts | 9 ++ .../http-api/view-collection.test.ts | 9 ++ .../src/server/__tests__/index.ts | 9 ++ .../inherits/inherited-collection.test.ts | 9 ++ .../inhertied-collection-with-schema.test.ts | 9 ++ ...04151410-update-collections-hidden.test.ts | 9 ++ .../20240420105949-add-sort-field.test.ts | 9 ++ .../drop-ui-schema-relation.test.ts | 9 ++ .../migrations/fix-created-by-field.test.ts | 9 ++ .../migrations/set-collection-schema.test.ts | 9 ++ .../migrations/update-id-to-bigint.test.ts | 9 ++ .../src/server/__tests__/primary-key.test.ts | 9 ++ .../__tests__/reference-integerity.test.ts | 9 ++ .../__tests__/remove-collection.test.ts | 9 ++ .../resources/collections.fields.test.ts | 9 ++ .../__tests__/resources/collections.test.ts | 9 ++ .../__tests__/sql/sql-collection.test.ts | 9 ++ .../src/server/__tests__/sync.test.ts | 9 ++ .../src/server/__tests__/through.test.ts | 9 ++ .../__tests__/view/view-collection.test.ts | 9 ++ .../view/view-with-filter-target-key.test.ts | 9 ++ .../collections/collectionCategories.ts | 9 ++ .../src/server/collections/collections.ts | 9 ++ .../src/server/collections/fields.ts | 9 ++ .../hooks/afterCreateForForeignKeyField.ts | 9 ++ .../hooks/afterCreateForReverseField.ts | 9 ++ .../hooks/afterDestroyForForeignKeyField.ts | 9 ++ .../beforeCreateForChildrenCollection.ts | 9 ++ .../hooks/beforeCreateForReverseField.ts | 9 ++ .../hooks/beforeCreateForValidateField.ts | 9 ++ .../hooks/beforeCreateForViewCollection.ts | 9 ++ .../server/hooks/beforeDestroyForeignKey.ts | 9 ++ .../src/server/hooks/beforeInitOptions.ts | 9 ++ .../src/server/hooks/index.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20220613103214-alert-sub-table.ts | 9 ++ .../20220704225714-drop-foreign-keys.ts | 9 ++ .../20221101111110-update-foreign-fields.ts | 9 ++ ...0221104151410-update-collections-hidden.ts | 9 ++ .../20221121111110-update-fk-type.ts | 9 ++ .../20221121111113-update-id-to-bigint.ts | 9 ++ .../migrations/20221221103220-timestamps.ts | 9 ++ .../20230225111112-drop-ui-schema-relation.ts | 9 ++ .../20230509111114-alert-ui-schema.ts | 9 ++ .../migrations/20230623145414-number-step.ts | 9 ++ .../migrations/20230704222935-tableoid.ts | 9 ++ .../20230918024546-set-collection-schema.ts | 9 ++ .../20240220153103-install-main-datasource.ts | 9 ++ ...40419182147-fix-created-by-field-target.ts | 9 ++ .../20240420105949-add-sort-field.ts | 9 ++ .../src/server/models/collection.ts | 9 ++ .../src/server/models/field.ts | 9 ++ .../src/server/models/index.ts | 9 ++ .../repositories/collection-repository.ts | 9 ++ .../src/server/repositories/index.ts | 9 ++ .../src/server/resourcers/collections.ts | 9 ++ .../src/server/resourcers/sql.ts | 9 ++ .../src/server/resourcers/views.ts | 9 ++ .../src/server/server.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../src/client/DatabaseConnectionProvider.tsx | 9 ++ .../src/client/ThridDataSource.ts | 9 ++ .../src/client/component/BreadcumbTitle.tsx | 9 ++ .../CollectionsManager/AddFieldAction.tsx | 9 ++ .../CollectionsManager/CollectionFields.tsx | 9 ++ .../CollectionsManager/ConfigurationTable.tsx | 9 ++ .../CollectionsManager/ConfigurationTabs.tsx | 9 ++ .../EditCollectionAction.tsx | 9 ++ .../CollectionsManager/EditFieldAction.tsx | 9 ++ .../CollectionFieldInterfaceSelect.tsx | 9 ++ .../components/CollectionName.tsx | 9 ++ .../components/FieldTitleInput.tsx | 9 ++ .../components/FieldType.tsx | 9 ++ .../components/TitleField.tsx | 9 ++ .../components/UnSupportFields.tsx | 9 ++ .../CollectionsManager/components/index.tsx | 9 ++ .../component/CollectionsManager/hooks.ts | 9 ++ .../component/CollectionsManager/index.tsx | 9 ++ .../schema/collectionFields.ts | 9 ++ .../CollectionsManager/schema/collections.ts | 9 ++ .../component/CreateDatabaseConnectAction.tsx | 9 ++ .../component/DatabaseConnectionManager.tsx | 9 ++ .../EditDatabaseConnectionAction.tsx | 9 ++ .../Configuration/AddCategoryAction.tsx | 9 ++ .../Configuration/CollectionFields.tsx | 9 ++ .../Configuration/ConfigurationTable.tsx | 9 ++ .../Configuration/ConfigurationTabs.tsx | 9 ++ .../Configuration/EditCategoryAction.tsx | 9 ++ .../Configuration/index.tsx | 9 ++ .../Configuration/interfaces.tsx | 9 ++ .../Configuration/schemas/collectionFields.ts | 9 ++ .../Configuration/schemas/collections.ts | 9 ++ .../component/MainDataSourceManager/index.tsx | 9 ++ .../PermissionManager/DataSourceTable.tsx | 9 ++ .../PermissionManager/PermisionProvider.tsx | 9 ++ .../PermissionManager/RoleConfigure.tsx | 9 ++ .../RolesResourcesActions.tsx | 9 ++ .../PermissionManager/ScopeSelect.tsx | 9 ++ .../PermissionManager/StrategyActions.tsx | 9 ++ .../component/PermissionManager/index.tsx | 9 ++ .../schemas/dataSourceTable.ts | 9 ++ .../schemas/roleCollections.ts | 9 ++ .../PermissionManager/schemas/scopes.ts | 9 ++ .../schemas/useRoleResourceValues.ts | 9 ++ .../schemas/useSaveRoleResourceAction.ts | 9 ++ .../component/PermissionManager/style.ts | 9 ++ .../ViewDatabaseConnectionAction.tsx | 9 ++ .../src/client/constant.ts | 9 ++ .../src/client/hooks/index.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/schema/index.ts | 9 ++ .../plugin-data-source-manager/src/index.ts | 9 ++ .../__tests__/data-source-with-acl.test.ts | 9 ++ .../src/server/__tests__/data-sources.test.ts | 9 ++ .../migrations/update-snippets.test.ts | 9 ++ .../collections/data-sources-collections.ts | 9 ++ .../server/collections/data-sources-fields.ts | 9 ++ .../data-sources-roles-resources-actions.ts | 9 ++ .../data-sources-roles-resources-scopes.ts | 9 ++ .../data-sources-roles-resources.ts | 9 ++ .../server/collections/data-sources-roles.ts | 9 ++ .../src/server/collections/data-sources.ts | 9 ++ .../src/server/errors/type-infer-error.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20240301164024-migrate-acl-resources.ts | 9 ++ .../20240414103927-update-snippet-name.ts | 9 ++ .../connections-roles-resources-action.ts | 9 ++ .../models/connections-roles-resources.ts | 9 ++ .../src/server/models/data-source.ts | 9 ++ .../models/data-sources-collection-model.ts | 9 ++ .../server/models/data-sources-field-model.ts | 9 ++ .../server/models/data-sources-roles-model.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../data-sources-collections-fields.ts | 9 ++ .../resourcers/data-sources-collections.ts | 9 ++ .../resourcers/data-sources-resources.ts | 9 ++ .../server/resourcers/data-sources-roles.ts | 9 ++ .../roles-data-sources-collections.ts | 9 ++ .../server/services/full-data-repository.ts | 9 ++ .../src/server/services/type-interface-map.ts | 9 ++ .../src/server/utils.ts | 9 ++ .../src/client/__tests__/chart-api.test.ts | 9 ++ .../client/__tests__/chart-configure.test.tsx | 9 ++ .../src/client/__tests__/hooks.test.ts | 9 ++ .../src/client/block/ChartBlock.tsx | 9 ++ .../src/client/block/ChartBlockDesigner.tsx | 9 ++ .../client/block/ChartBlockInitializer.tsx | 9 ++ .../src/client/block/ChartDataProvider.tsx | 9 ++ .../src/client/block/index.ts | 9 ++ .../src/client/chart/antd/antd.ts | 9 ++ .../src/client/chart/antd/index.ts | 9 ++ .../src/client/chart/antd/statistic.ts | 9 ++ .../src/client/chart/antd/table.ts | 9 ++ .../src/client/chart/chart.ts | 9 ++ .../src/client/chart/configs.ts | 9 ++ .../src/client/chart/g2plot/AntChart.tsx | 9 ++ .../src/client/chart/g2plot/bar.ts | 9 ++ .../src/client/chart/g2plot/configs.ts | 9 ++ .../src/client/chart/g2plot/dualAxes.ts | 9 ++ .../src/client/chart/g2plot/g2plot.ts | 9 ++ .../src/client/chart/g2plot/index.ts | 9 ++ .../src/client/chart/g2plot/pie.ts | 9 ++ .../src/client/chart/group.ts | 9 ++ .../client/configure/ChartConfigProvider.tsx | 9 ++ .../src/client/configure/ChartConfigure.tsx | 9 ++ .../configure/FilterDynamicComponent.tsx | 9 ++ .../configure/TransformerDynamicComponent.tsx | 9 ++ .../src/client/configure/formatters.ts | 9 ++ .../src/client/configure/index.ts | 9 ++ .../src/client/configure/schemas/configure.ts | 9 ++ .../filter/CollectionFieldInitializer.tsx | 9 ++ .../filter/FilterActionInitializers.tsx | 9 ++ .../src/client/filter/FilterBlockDesigner.tsx | 9 ++ .../client/filter/FilterBlockInitializer.tsx | 9 ++ .../src/client/filter/FilterBlockProvider.tsx | 9 ++ .../src/client/filter/FilterCheckbox.tsx | 9 ++ .../src/client/filter/FilterForm.tsx | 9 ++ .../src/client/filter/FilterItemDesigner.tsx | 9 ++ .../client/filter/FilterItemInitializers.tsx | 9 ++ .../src/client/filter/FilterProvider.tsx | 9 ++ .../src/client/filter/FilterVariableInput.tsx | 9 ++ .../src/client/filter/index.ts | 9 ++ .../src/client/filter/utils.ts | 9 ++ .../src/client/hooks/filter.ts | 9 ++ .../src/client/hooks/index.ts | 9 ++ .../src/client/hooks/query.ts | 9 ++ .../src/client/hooks/transformer.ts | 9 ++ .../src/client/hooks/useDateVariable.ts | 9 ++ .../src/client/hooks/useUserVariable.ts | 9 ++ .../src/client/hooks/useVariableOptions.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/renderer/ChartRenderer.tsx | 9 ++ .../client/renderer/ChartRendererProvider.tsx | 9 ++ .../src/client/renderer/index.ts | 9 ++ .../src/client/transformers.ts | 9 ++ .../src/client/utils.ts | 9 ++ .../plugin-data-visualization/src/index.ts | 9 ++ .../src/server/__tests__/api.test.ts | 9 ++ .../src/server/__tests__/formatter.test.ts | 9 ++ .../src/server/__tests__/query.test.ts | 9 ++ .../src/server/actions/formatter.ts | 9 ++ .../src/server/actions/query.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20230926211750-rename-charttype.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../plugin-disable-pm-add/src/client/index.ts | 9 ++ .../plugin-disable-pm-add/src/index.ts | 9 ++ .../plugin-disable-pm-add/src/server/index.ts | 9 ++ .../plugin-error-handler/src/client/index.ts | 9 ++ .../plugin-error-handler/src/index.ts | 9 ++ .../src/server/__tests__/middleware.test.ts | 9 ++ .../src/server/__tests__/render-error.test.ts | 9 ++ .../src/server/error-handler.ts | 9 ++ .../plugin-error-handler/src/server/index.ts | 9 ++ .../src/server/locale/en_US.ts | 9 ++ .../src/server/locale/es-ES.ts | 9 ++ .../src/server/locale/fr_FR.ts | 9 ++ .../src/server/locale/ja_JP.ts | 9 ++ .../src/server/locale/pt-BR.ts | 9 ++ .../src/server/locale/zh_CN.ts | 9 ++ .../plugin-error-handler/src/server/server.ts | 9 ++ .../src/client/ChinaRegionProvider.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../plugin-field-china-region/src/index.ts | 9 ++ .../src/server/__tests__/action.test.ts | 9 ++ .../src/server/collections/chinaRegions.ts | 9 ++ .../src/server/index.ts | 9 ++ .../client/FormulaComponentFieldSettings.tsx | 9 ++ .../src/client/__e2e__/form-create.test.ts | 9 ++ .../src/client/__e2e__/utils.ts | 9 ++ .../client/components/Formula/Expression.tsx | 9 ++ .../src/client/components/Formula/Result.tsx | 9 ++ .../client/components/Formula/demos/demo2.tsx | 9 ++ .../src/client/components/Formula/index.tsx | 9 ++ .../src/client/components/index.ts | 9 ++ .../plugin-field-formula/src/client/index.tsx | 9 ++ .../src/client/interfaces/formula.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/scopes.tsx | 9 ++ .../plugin-field-formula/src/index.ts | 9 ++ .../server/__tests__/formula-field.test.ts | 9 ++ .../src/server/formula-field.ts | 9 ++ .../plugin-field-formula/src/server/index.ts | 9 ++ .../migrations/20230213161904-alter-field.ts | 9 ++ .../20240425222058-change-locale-module.ts | 9 ++ .../plugin-field-formula/src/server/plugin.ts | 9 ++ .../plugin-field-formula/src/utils/index.ts | 9 ++ .../src/client/components/Display.tsx | 9 ++ .../src/client/components/Edit.tsx | 9 ++ .../src/client/components/const.ts | 9 ++ .../src/client/components/index.tsx | 9 ++ .../src/client/components/style.ts | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/interfaces/markdown-vditor.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/utils/index.ts | 9 ++ .../plugin-field-markdown-vditor/src/index.ts | 9 ++ .../src/locale/en-US.ts | 9 ++ .../src/locale/ko_KR.ts | 9 ++ .../src/locale/zh-CN.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/server/markdown-vditor-field.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/client/SequenceFieldProvider.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/sequence.tsx | 9 ++ .../plugin-field-sequence/src/index.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../server/__tests__/sequence-field.test.ts | 9 ++ .../src/server/collections/sequences.ts | 9 ++ .../src/server/fields/sequence-field.ts | 9 ++ .../plugin-field-sequence/src/server/index.ts | 9 ++ .../20221207022250-sequence-field-key.ts | 9 ++ .../20240425225438-change-locale-module.ts | 9 ++ .../src/client/FileManagerProvider.tsx | 9 ++ .../src/client/FileStorage.tsx | 9 ++ .../src/client/StorageOptions.tsx | 9 ++ .../src/client/__e2e__/block.test.ts | 9 ++ .../client/__e2e__/createLocalStorage.test.ts | 9 ++ .../client/__e2e__/editLocalStorage.test.ts | 9 ++ .../client/__e2e__/pageobject/localStorage.ts | 9 ++ .../src/client/__e2e__/templates.ts | 9 ++ .../src/client/hooks/index.ts | 9 ++ .../src/client/hooks/useUploadFiles.ts | 9 ++ .../plugin-file-manager/src/client/index.tsx | 9 ++ .../initializers/UploadActionInitializer.tsx | 9 ++ .../src/client/initializers/index.ts | 9 ++ .../src/client/interfaces/attachment.ts | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/schemas/storage.ts | 9 ++ .../client/schemas/storageTypes/ali-oss.ts | 9 ++ .../src/client/schemas/storageTypes/index.ts | 9 ++ .../src/client/schemas/storageTypes/local.ts | 9 ++ .../src/client/schemas/storageTypes/s3.ts | 9 ++ .../src/client/schemas/storageTypes/tx-cos.ts | 9 ++ .../src/client/templates/file.ts | 9 ++ .../src/client/templates/index.ts | 9 ++ .../plugin-file-manager/src/index.ts | 9 ++ .../src/server/FileModel.ts | 9 ++ .../src/server/__tests__/action.test.ts | 9 ++ .../src/server/__tests__/attachment.test.ts | 9 ++ .../src/server/__tests__/index.ts | 9 ++ .../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 | 9 ++ .../src/server/actions/attachments.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../src/server/collections/attachments.ts | 9 ++ .../src/server/collections/storages.ts | 9 ++ .../src/server/constants.ts | 9 ++ .../plugin-file-manager/src/server/index.ts | 9 ++ .../20230831160742-fix-attachment-field.ts | 9 ++ .../migrations/20231120142523-fix-storage.ts | 9 ++ .../20240306223006-update-target.ts | 9 ++ .../src/server/rules/index.ts | 9 ++ .../src/server/rules/mimetype.ts | 9 ++ .../plugin-file-manager/src/server/server.ts | 9 ++ .../src/server/storages/ali-oss.ts | 9 ++ .../src/server/storages/index.ts | 9 ++ .../src/server/storages/local.ts | 9 ++ .../src/server/storages/s3.ts | 9 ++ .../src/server/storages/tx-cos.ts | 9 ++ .../plugin-file-manager/src/server/utils.ts | 9 ++ .../src/client/Gantt.Designer.tsx | 9 ++ .../src/client/Gantt.Settings.tsx | 9 ++ .../src/client/GanttActionInitializers.tsx | 9 ++ .../src/client/GanttBlockInitializer.tsx | 9 ++ .../src/client/GanttBlockProvider.tsx | 9 ++ .../src/client/__e2e__/drag.test.ts | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../plugin-gantt/src/client/__e2e__/utils.ts | 9 ++ .../__tests__/createGanttBlockSchema.test.ts | 9 ++ .../src/client/__tests__/date-helper.test.tsx | 9 ++ .../client/components/calendar/calendar.tsx | 9 ++ .../src/client/components/calendar/style.tsx | 9 ++ .../calendar/top-part-of-calendar.tsx | 9 ++ .../src/client/components/gantt/Event.tsx | 9 ++ .../src/client/components/gantt/gantt.tsx | 9 ++ .../src/client/components/gantt/style.tsx | 9 ++ .../components/gantt/task-gantt-content.tsx | 9 ++ .../client/components/gantt/task-gantt.tsx | 9 ++ .../src/client/components/grid/grid-body.tsx | 9 ++ .../src/client/components/grid/grid.tsx | 9 ++ .../src/client/components/grid/style.tsx | 9 ++ .../src/client/components/other/arrow.tsx | 9 ++ .../components/other/horizontal-scroll.tsx | 9 ++ .../src/client/components/other/style.tsx | 9 ++ .../src/client/components/other/tooltip.tsx | 9 ++ .../components/other/vertical-scroll.tsx | 9 ++ .../task-item/bar/bar-date-handle.tsx | 9 ++ .../components/task-item/bar/bar-display.tsx | 9 ++ .../task-item/bar/bar-progress-handle.tsx | 9 ++ .../components/task-item/bar/bar-small.tsx | 9 ++ .../client/components/task-item/bar/bar.tsx | 9 ++ .../client/components/task-item/bar/style.tsx | 9 ++ .../task-item/milestone/milestone.tsx | 9 ++ .../components/task-item/milestone/style.tsx | 9 ++ .../components/task-item/project/project.tsx | 9 ++ .../components/task-item/project/style.tsx | 9 ++ .../src/client/components/task-item/style.tsx | 9 ++ .../client/components/task-item/task-item.tsx | 9 ++ .../plugin-gantt/src/client/context.ts | 9 ++ .../src/client/createGanttBlockUISchema.tsx | 9 ++ .../plugin-gantt/src/client/demos/demo1.tsx | 9 ++ .../src/client/helpers/bar-helper.ts | 9 ++ .../src/client/helpers/date-helper.ts | 9 ++ .../src/client/helpers/other-helper.ts | 9 ++ .../plugin-gantt/src/client/index.tsx | 9 ++ .../plugin-gantt/src/client/types/bar-task.ts | 9 ++ .../src/client/types/date-setup.ts | 9 ++ .../src/client/types/gantt-task-actions.ts | 9 ++ .../src/client/types/public-types.ts | 9 ++ .../plugin-gantt/src/client/utils.tsx | 9 ++ .../@nocobase/plugin-gantt/src/index.ts | 9 ++ .../plugin-gantt/src/server/index.ts | 9 ++ .../plugin-gantt/src/server/plugin.ts | 9 ++ .../src/client/GraphCollectionShortcut.tsx | 9 ++ .../src/client/GraphDrawPage.tsx | 9 ++ .../src/client/action-hooks.tsx | 9 ++ .../client/components/AddCollectionAction.tsx | 9 ++ .../src/client/components/AddFieldAction.tsx | 9 ++ .../components/CollectionNodeProvder.tsx | 9 ++ .../components/ConnectAssociationAction.tsx | 9 ++ .../client/components/ConnectChildAction.tsx | 9 ++ .../client/components/ConnectParentAction.tsx | 9 ++ .../src/client/components/ConnectorAction.tsx | 9 ++ .../components/DeleteCollectionAction.tsx | 9 ++ .../src/client/components/DirectionAction.tsx | 9 ++ .../components/EditCollectionAction.tsx | 9 ++ .../src/client/components/EditFieldAction.tsx | 9 ++ .../src/client/components/Entity.tsx | 9 ++ .../src/client/components/FieldSummary.tsx | 9 ++ .../client/components/FullScreenAction.tsx | 9 ++ .../components/LocateCollectionAction.tsx | 9 ++ .../client/components/OverrideFieldAction.tsx | 9 ++ .../components/SelectCollectionsAction.tsx | 9 ++ .../src/client/components/ViewFieldAction.tsx | 9 ++ .../src/client/components/ViewNode.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/style.tsx | 9 ++ .../src/client/utils.tsx | 9 ++ .../src/index.ts | 9 ++ .../src/server/collections/graphPositions.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/CreateAndSelectSort/index.tsx | 9 ++ .../src/client/Kanban.Card.Designer.tsx | 9 ++ .../plugin-kanban/src/client/Kanban.Card.tsx | 9 ++ .../src/client/Kanban.CardViewer.tsx | 9 ++ .../src/client/Kanban.Designer.tsx | 9 ++ .../src/client/Kanban.Settings.tsx | 9 ++ .../plugin-kanban/src/client/Kanban.tsx | 9 ++ .../src/client/KanbanActionInitializers.tsx | 9 ++ .../src/client/KanbanBlockInitializer.tsx | 9 ++ .../src/client/KanbanBlockProvider.tsx | 9 ++ .../client/__e2e__/schemaInitailizer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../plugin-kanban/src/client/__e2e__/utils.ts | 9 ++ .../__tests__/createKanbanBlockSchema.test.ts | 9 ++ .../plugin-kanban/src/client/board/Board.tsx | 9 ++ .../plugin-kanban/src/client/board/Card.tsx | 9 ++ .../src/client/board/CardAdder.tsx | 9 ++ .../src/client/board/CardForm.tsx | 9 ++ .../plugin-kanban/src/client/board/Column.tsx | 9 ++ .../src/client/board/ColumnAdder.tsx | 9 ++ .../src/client/board/ColumnForm.tsx | 9 ++ .../src/client/board/DefaultCard.tsx | 9 ++ .../src/client/board/DefaultColumnHeader.tsx | 9 ++ .../plugin-kanban/src/client/board/Kanban.tsx | 9 ++ .../src/client/board/demos/demo2.tsx | 9 ++ .../plugin-kanban/src/client/board/helpers.ts | 9 ++ .../plugin-kanban/src/client/board/index.ts | 9 ++ .../src/client/board/services.ts | 9 ++ .../plugin-kanban/src/client/board/style.ts | 9 ++ .../plugin-kanban/src/client/board/utils.ts | 9 ++ .../src/client/board/withDroppable.tsx | 9 ++ .../plugin-kanban/src/client/context.ts | 9 ++ .../src/client/createKanbanBlockUISchema.ts | 9 ++ .../plugin-kanban/src/client/index.tsx | 9 ++ .../plugin-kanban/src/client/locale/index.ts | 9 ++ .../plugin-kanban/src/client/style.tsx | 9 ++ .../@nocobase/plugin-kanban/src/index.ts | 9 ++ .../plugin-kanban/src/server/index.ts | 9 ++ .../plugin-kanban/src/server/plugin.ts | 9 ++ .../src/client/Localization.tsx | 9 ++ .../plugin-localization/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/schemas/localization.tsx | 9 ++ .../plugin-localization/src/index.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../src/server/__tests__/middleware.test.ts | 9 ++ .../migrations/delete-pkg-name.test.ts | 9 ++ .../src/server/__tests__/resources.test.ts | 9 ++ .../src/server/__tests__/sync.test.ts | 9 ++ .../src/server/__tests__/utils.ts | 9 ++ .../src/server/actions/localization.ts | 9 ++ .../src/server/actions/localizationTexts.ts | 9 ++ .../server/collections/localization-texts.ts | 9 ++ .../collections/localization-translations.ts | 9 ++ .../src/server/constans.ts | 9 ++ .../plugin-localization/src/server/index.ts | 9 ++ .../20230706200900-roles-add-translation.ts | 9 ++ .../migrations/20231206161851-fix-module.ts | 9 ++ .../20240425224508-change-locale-module.ts | 9 ++ .../20240426123538-delete-pkg-name-ns.ts | 9 ++ .../plugin-localization/src/server/plugin.ts | 9 ++ .../src/server/resources.ts | 9 ++ .../plugin-localization/src/server/utils.ts | 9 ++ .../src/client/LogsDownloader.tsx | 9 ++ .../plugin-logger/src/client/index.tsx | 9 ++ .../plugin-logger/src/client/locale/index.ts | 9 ++ .../@nocobase/plugin-logger/src/index.ts | 9 ++ .../plugin-logger/src/locale/en-US.ts | 9 ++ .../plugin-logger/src/locale/ko_KR.ts | 9 ++ .../plugin-logger/src/locale/zh-CN.ts | 9 ++ .../plugin-logger/src/server/index.ts | 9 ++ .../plugin-logger/src/server/plugin.ts | 9 ++ .../src/server/resourcer/logger.ts | 9 ++ .../client/__e2e__/schemaInitializer.test.ts | 9 ++ .../src/client/__e2e__/schemaSettings.test.ts | 9 ++ .../src/client/__e2e__/templates.ts | 9 ++ .../block/createMapBlockSchema.test.ts | 9 ++ .../client/block/MapActionInitializers.tsx | 9 ++ .../src/client/block/MapBlock.Settings.tsx | 9 ++ .../plugin-map/src/client/block/MapBlock.tsx | 9 ++ .../src/client/block/MapBlockDesigner.tsx | 9 ++ .../src/client/block/MapBlockInitializer.tsx | 9 ++ .../src/client/block/MapBlockProvider.tsx | 9 ++ .../client/block/createMapBlockUISchema.ts | 9 ++ .../plugin-map/src/client/block/index.tsx | 9 ++ .../plugin-map/src/client/block/utils.ts | 9 ++ .../src/client/components/AMap/Block.tsx | 9 ++ .../src/client/components/AMap/Map.tsx | 9 ++ .../src/client/components/AMap/Search.tsx | 9 ++ .../src/client/components/AMap/index.ts | 9 ++ .../src/client/components/Configuration.tsx | 9 ++ .../src/client/components/Designer.tsx | 9 ++ .../client/components/GoogleMaps/Block.tsx | 9 ++ .../src/client/components/GoogleMaps/Map.tsx | 9 ++ .../client/components/GoogleMaps/Search.tsx | 9 ++ .../src/client/components/GoogleMaps/index.ts | 9 ++ .../src/client/components/GoogleMaps/utils.ts | 9 ++ .../plugin-map/src/client/components/Map.tsx | 9 ++ .../src/client/components/MapBlock.tsx | 9 ++ .../src/client/components/MapComponent.tsx | 9 ++ .../src/client/components/ReadPretty.tsx | 9 ++ .../plugin-map/src/client/components/index.ts | 9 ++ .../plugin-map/src/client/constants.ts | 9 ++ .../plugin-map/src/client/fields/circle.ts | 9 ++ .../plugin-map/src/client/fields/index.ts | 9 ++ .../src/client/fields/lineString.ts | 9 ++ .../plugin-map/src/client/fields/point.ts | 9 ++ .../plugin-map/src/client/fields/polygon.ts | 9 ++ .../plugin-map/src/client/fields/schema.ts | 9 ++ .../plugin-map/src/client/hooks/index.ts | 9 ++ .../src/client/hooks/useMapConfiguration.ts | 9 ++ .../@nocobase/plugin-map/src/client/index.tsx | 9 ++ .../plugin-map/src/client/locale/index.ts | 9 ++ .../@nocobase/plugin-map/src/client/types.ts | 9 ++ .../@nocobase/plugin-map/src/client/utils.ts | 9 ++ .../plugins/@nocobase/plugin-map/src/index.ts | 9 ++ .../src/server/__tests__/fields.test.ts | 9 ++ .../plugin-map/src/server/actions/index.ts | 9 ++ .../server/collections/mapConfiguration.ts | 9 ++ .../plugin-map/src/server/constants.ts | 9 ++ .../plugin-map/src/server/fields/circle.ts | 9 ++ .../plugin-map/src/server/fields/index.ts | 9 ++ .../src/server/fields/lineString.ts | 9 ++ .../plugin-map/src/server/fields/point.ts | 9 ++ .../plugin-map/src/server/fields/polygon.ts | 9 ++ .../plugin-map/src/server/helpers/index.ts | 9 ++ .../@nocobase/plugin-map/src/server/index.ts | 9 ++ .../@nocobase/plugin-map/src/server/plugin.ts | 9 ++ .../src/server/value-parsers/index.ts | 9 ++ .../@nocobase/plugin-map/src/swagger/index.ts | 9 ++ .../src/client/MobileClientProvider.tsx | 9 ++ .../src/client/configuration/App.tsx | 9 ++ .../src/client/configuration/Interface.tsx | 9 ++ .../src/client/configuration/index.ts | 9 ++ .../src/client/core/bridge/index.ts | 9 ++ .../src/client/core/bridge/injects.ts | 9 ++ .../src/client/core/bridge/native-call.ts | 9 ++ .../src/client/core/index.tsx | 9 ++ .../src/client/core/schema/common/index.ts | 9 ++ .../src/client/core/schema/common/page.ts | 9 ++ .../container/Container.Designer.tsx | 9 ++ .../schema/components/container/Container.tsx | 9 ++ .../core/schema/components/container/index.ts | 9 ++ .../core/schema/components/container/style.ts | 9 ++ .../components/header/Header.Designer.tsx | 9 ++ .../core/schema/components/header/Header.tsx | 9 ++ .../core/schema/components/header/index.ts | 9 ++ .../client/core/schema/components/index.ts | 9 ++ .../schema/components/menu/Menu.Designer.tsx | 9 ++ .../core/schema/components/menu/Menu.Item.tsx | 9 ++ .../core/schema/components/menu/Menu.tsx | 9 ++ .../components/menu/MenuBlockInitializer.tsx | 9 ++ .../core/schema/components/menu/index.ts | 9 ++ .../core/schema/components/menu/schema.ts | 9 ++ .../core/schema/components/menu/style.ts | 9 ++ .../schema/components/page/Page.Designer.tsx | 9 ++ .../core/schema/components/page/Page.tsx | 9 ++ .../core/schema/components/page/index.ts | 9 ++ .../core/schema/components/page/style.ts | 9 ++ .../components/settings/Settings.Designer.tsx | 9 ++ .../schema/components/settings/Settings.tsx | 9 ++ .../settings/SettingsBlockInitializer.tsx | 9 ++ .../core/schema/components/settings/index.ts | 9 ++ .../schema/components/tab-bar/TabBar.Item.tsx | 9 ++ .../core/schema/components/tab-bar/TabBar.tsx | 9 ++ .../core/schema/components/tab-bar/index.ts | 9 ++ .../core/schema/components/tab-bar/schema.ts | 9 ++ .../src/client/core/schema/helpers/index.ts | 9 ++ .../src/client/core/schema/hooks/index.ts | 9 ++ .../core/schema/hooks/useSchemaPatch.ts | 9 ++ .../src/client/core/schema/index.ts | 9 ++ .../schema/initializers/BlockInitializers.ts | 9 ++ .../client/core/schema/initializers/index.ts | 9 ++ .../client/core/schema/scopes/grid-card.ts | 9 ++ .../src/client/core/schema/scopes/index.ts | 9 ++ .../src/client/devices/iOS6.tsx | 9 ++ .../src/client/devices/index.tsx | 9 ++ .../plugin-mobile-client/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/router/Application.tsx | 9 ++ .../src/client/router/InterfaceProvider.tsx | 9 ++ .../src/client/router/InterfaceRouter.tsx | 9 ++ .../src/client/router/OpenInNewTab.tsx | 9 ++ .../src/client/router/index.ts | 9 ++ .../plugin-mobile-client/src/index.ts | 9 ++ .../plugin-mobile-client/src/server/index.ts | 9 ++ .../20230620203218-mobile-ui-schema-uid.ts | 9 ++ .../20231215215233-mobile-container-uid.ts | 9 ++ .../plugin-mobile-client/src/server/plugin.ts | 9 ++ .../plugin-mobile-client/src/server/routes.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-mock-collections/src/index.ts | 9 ++ .../src/server/collection-templates/index.ts | 9 ++ .../server/field-interfaces/association.ts | 9 ++ .../src/server/field-interfaces/attachment.ts | 9 ++ .../src/server/field-interfaces/checkbox.ts | 9 ++ .../server/field-interfaces/checkboxGroup.ts | 9 ++ .../server/field-interfaces/chinaRegion.ts | 9 ++ .../src/server/field-interfaces/circle.ts | 9 ++ .../src/server/field-interfaces/collection.ts | 9 ++ .../src/server/field-interfaces/color.ts | 9 ++ .../src/server/field-interfaces/createdAt.ts | 9 ++ .../src/server/field-interfaces/createdBy.ts | 9 ++ .../src/server/field-interfaces/datetime.ts | 9 ++ .../src/server/field-interfaces/email.ts | 9 ++ .../src/server/field-interfaces/formula.ts | 9 ++ .../src/server/field-interfaces/icon.ts | 9 ++ .../src/server/field-interfaces/id.ts | 9 ++ .../src/server/field-interfaces/index.ts | 9 ++ .../src/server/field-interfaces/input.ts | 9 ++ .../src/server/field-interfaces/integer.ts | 9 ++ .../src/server/field-interfaces/json.tsx | 9 ++ .../src/server/field-interfaces/lineString.ts | 9 ++ .../src/server/field-interfaces/markdown.ts | 9 ++ .../server/field-interfaces/multipleSelect.ts | 9 ++ .../src/server/field-interfaces/number.ts | 9 ++ .../src/server/field-interfaces/password.ts | 9 ++ .../src/server/field-interfaces/percent.ts | 9 ++ .../src/server/field-interfaces/phone.ts | 9 ++ .../src/server/field-interfaces/point.ts | 9 ++ .../src/server/field-interfaces/polygon.ts | 9 ++ .../src/server/field-interfaces/radioGroup.ts | 9 ++ .../src/server/field-interfaces/richText.ts | 9 ++ .../src/server/field-interfaces/select.ts | 9 ++ .../src/server/field-interfaces/sequence.ts | 9 ++ .../src/server/field-interfaces/snapshot.ts | 9 ++ .../src/server/field-interfaces/sort.ts | 9 ++ .../src/server/field-interfaces/tableoid.ts | 9 ++ .../src/server/field-interfaces/textarea.ts | 9 ++ .../src/server/field-interfaces/time.ts | 9 ++ .../src/server/field-interfaces/updatedAt.ts | 9 ++ .../src/server/field-interfaces/updatedBy.ts | 9 ++ .../src/server/field-interfaces/url.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/AppManager.tsx | 9 ++ .../src/client/AppNameInput.tsx | 9 ++ .../client/MultiAppManagerProvider.style.ts | 9 ++ .../src/client/MultiAppManagerProvider.tsx | 9 ++ .../src/client/Settings.tsx | 9 ++ .../src/client/index.ts | 9 ++ .../client/settings/schemas/applications.ts | 9 ++ .../src/client/utils.tsx | 9 ++ .../plugin-multi-app-manager/src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/__tests__/gateway.test.ts | 9 ++ .../server/__tests__/mock-get-schema.test.ts | 9 ++ .../server/__tests__/multiple-apps.test.ts | 9 ++ .../src/server/collections/applications.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/server/models/application.ts | 9 ++ .../src/server/server.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../MultiAppShareCollectionProvider.tsx | 9 ++ .../src/client/TableTransfer.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/utils.tsx | 9 ++ .../src/index.ts | 9 ++ .../server/__tests__/collection-sync.test.ts | 9 ++ .../src/server/__tests__/index.ts | 9 ++ .../src/server/collections/applications.ts | 9 ++ .../src/server/collections/collections.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20230319111111-update-apps-collections.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../plugin-notifications/src/client/index.ts | 9 ++ .../plugin-notifications/src/index.ts | 9 ++ .../server/__tests__/notifications.test.ts | 9 ++ .../server/collections/notification_logs.ts | 9 ++ .../collections/notification_services.ts | 9 ++ .../src/server/collections/notifications.ts | 9 ++ .../plugin-notifications/src/server/index.ts | 9 ++ .../src/server/models/Notification.ts | 9 ++ .../src/server/models/NotificationLog.ts | 9 ++ .../src/server/models/NotificationService.ts | 9 ++ .../src/server/models/index.ts | 9 ++ .../plugin-notifications/src/server/server.ts | 9 ++ .../plugin-sample-hello/src/client/index.tsx | 9 ++ .../plugin-sample-hello/src/index.ts | 9 ++ .../plugin-sample-hello/src/server/index.ts | 9 ++ .../SnapshotBlockInitializers.tsx | 9 ++ .../SnapshotBlockInitializersDetailItem.tsx | 9 ++ .../SnapshotBlock/SnapshotBlockProvider.tsx | 9 ++ .../src/client/SnapshotFieldProvider.tsx | 9 ++ .../SnapshotHistoryCollectionProvider.tsx | 9 ++ .../src/client/SnapshotRecordPicker.tsx | 9 ++ .../SnapshotOwnerCollectionFieldsSelect.tsx | 9 ++ .../src/client/index.tsx | 9 ++ .../src/client/interface.ts | 9 ++ .../src/client/locale/index.ts | 9 ++ .../plugin-snapshot-field/src/index.ts | 9 ++ .../src/server/__tests__/data/field_linkto.ts | 9 ++ .../src/server/__tests__/data/field_m2m.ts | 9 ++ .../src/server/__tests__/data/field_o2m.ts | 9 ++ .../src/server/__tests__/data/field_o2o.ts | 9 ++ .../src/server/__tests__/data/snap_linkto.ts | 9 ++ .../src/server/__tests__/data/snap_m2m.ts | 9 ++ .../src/server/__tests__/data/snap_o2m.ts | 9 ++ .../src/server/__tests__/data/snap_o2o.ts | 9 ++ .../src/server/__tests__/data/table_a.ts | 9 ++ .../src/server/__tests__/data/table_b.ts | 9 ++ .../src/server/__tests__/data/table_m2m.ts | 9 ++ .../server/__tests__/fieldsHistory.test.ts | 9 ++ .../src/server/__tests__/snapshots.test.ts | 9 ++ .../server/collections/collectionsHistory.ts | 9 ++ .../src/server/collections/fieldsHistory.ts | 9 ++ .../src/server/fields/snapshot-field.ts | 9 ++ .../plugin-snapshot-field/src/server/index.ts | 9 ++ .../src/server/plugin.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-system-settings/src/index.ts | 9 ++ .../src/server/collections/systemSettings.ts | 9 ++ .../src/server/index.ts | 9 ++ ...20220714204714-update-enabled-languages.ts | 9 ++ .../src/server/server.ts | 9 ++ .../antd-token-previewer/ColorPanel.tsx | 9 ++ .../antd-token-previewer/ColorPreview.tsx | 9 ++ .../antd-token-previewer/FilterPanel.tsx | 9 ++ .../antd-token-previewer/IconSwitch.tsx | 9 ++ .../antd-token-previewer/PreviewDemo.tsx | 9 ++ .../antd-token-previewer/ThemeEditor.tsx | 9 ++ .../antd-token-previewer/ThemeSelect.tsx | 9 ++ .../antd-token-previewer/TokenInput.tsx | 9 ++ .../component-demos/alert/alert.tsx | 9 ++ .../component-demos/alert/error.tsx | 9 ++ .../component-demos/alert/index.ts | 9 ++ .../component-demos/alert/info.tsx | 9 ++ .../component-demos/alert/success.tsx | 9 ++ .../component-demos/alert/warning.tsx | 9 ++ .../component-demos/anchor/anchor.tsx | 9 ++ .../component-demos/anchor/anchorInLayout.tsx | 9 ++ .../component-demos/anchor/index.ts | 9 ++ .../autoComplete/auto-complete.tsx | 9 ++ .../component-demos/autoComplete/index.ts | 9 ++ .../component-demos/avatar/avatar.tsx | 9 ++ .../component-demos/avatar/index.tsx | 9 ++ .../component-demos/badge/badge.tsx | 9 ++ .../component-demos/badge/index.ts | 9 ++ .../component-demos/badge/progress.tsx | 9 ++ .../component-demos/badge/success.tsx | 9 ++ .../component-demos/badge/warning.tsx | 9 ++ .../component-demos/breadcrumb/breadcrumb.tsx | 9 ++ .../component-demos/breadcrumb/index.ts | 9 ++ .../component-demos/button/button-icon.tsx | 9 ++ .../component-demos/button/button.tsx | 9 ++ .../component-demos/button/dangerButton.tsx | 9 ++ .../component-demos/button/defaultButton.tsx | 9 ++ .../component-demos/button/disabled.tsx | 9 ++ .../component-demos/button/index.ts | 9 ++ .../component-demos/calendar/calendar.tsx | 9 ++ .../component-demos/calendar/disabled.tsx | 9 ++ .../component-demos/calendar/index.ts | 9 ++ .../component-demos/card/card.tsx | 9 ++ .../component-demos/card/cardGrid.tsx | 9 ++ .../component-demos/card/index.ts | 9 ++ .../component-demos/card/inner.tsx | 9 ++ .../component-demos/carousel/carousel.tsx | 9 ++ .../component-demos/carousel/index.ts | 9 ++ .../component-demos/cascader/cascader.tsx | 9 ++ .../component-demos/cascader/data.ts | 9 ++ .../component-demos/cascader/disable.tsx | 9 ++ .../component-demos/cascader/highlight.tsx | 9 ++ .../component-demos/cascader/index.ts | 9 ++ .../component-demos/checkbox/checkbox.tsx | 9 ++ .../component-demos/checkbox/disabled.tsx | 9 ++ .../component-demos/checkbox/index.ts | 9 ++ .../component-demos/collapse/collapse.tsx | 9 ++ .../component-demos/collapse/index.ts | 9 ++ .../component-demos/datePicker/danger.tsx | 9 ++ .../datePicker/date-picker.tsx | 9 ++ .../component-demos/datePicker/disabled.tsx | 9 ++ .../component-demos/datePicker/icon.tsx | 9 ++ .../component-demos/datePicker/index.ts | 9 ++ .../component-demos/datePicker/warning.tsx | 9 ++ .../descriptions/descriptions.tsx | 9 ++ .../component-demos/descriptions/index.ts | 9 ++ .../component-demos/divider/divider.tsx | 9 ++ .../component-demos/divider/index.ts | 9 ++ .../component-demos/drawer/drawer.tsx | 9 ++ .../component-demos/drawer/index.ts | 9 ++ .../component-demos/dropdown/dropdown.tsx | 9 ++ .../dropdown/dropdownError.tsx | 9 ++ .../component-demos/dropdown/index.ts | 9 ++ .../component-demos/dropdown/menu.tsx | 9 ++ .../component-demos/empty/empty.tsx | 9 ++ .../component-demos/empty/index.ts | 9 ++ .../component-demos/form/danger.tsx | 9 ++ .../component-demos/form/form.tsx | 9 ++ .../component-demos/form/index.tsx | 9 ++ .../component-demos/form/warning.tsx | 9 ++ .../component-demos/grid/grid.tsx | 9 ++ .../component-demos/grid/index.ts | 9 ++ .../component-demos/icon/icon.tsx | 9 ++ .../component-demos/icon/index.ts | 9 ++ .../component-demos/image/disabled.tsx | 9 ++ .../component-demos/image/image.tsx | 9 ++ .../component-demos/image/index.ts | 9 ++ .../component-demos/index.ts | 9 ++ .../component-demos/input/clearIcon.tsx | 9 ++ .../component-demos/input/danger.tsx | 9 ++ .../component-demos/input/disabled.tsx | 9 ++ .../component-demos/input/index.ts | 9 ++ .../component-demos/input/input.tsx | 9 ++ .../component-demos/input/success.tsx | 9 ++ .../component-demos/input/warning.tsx | 9 ++ .../component-demos/input/withAddon.tsx | 9 ++ .../component-demos/inputNumber/danger.tsx | 9 ++ .../component-demos/inputNumber/disabled.tsx | 9 ++ .../component-demos/inputNumber/index.ts | 9 ++ .../inputNumber/inputNumber.tsx | 9 ++ .../component-demos/inputNumber/warning.tsx | 9 ++ .../component-demos/list/index.ts | 9 ++ .../component-demos/list/list.tsx | 9 ++ .../component-demos/mentions/danger.tsx | 9 ++ .../component-demos/mentions/disabled.tsx | 9 ++ .../component-demos/mentions/index.ts | 9 ++ .../component-demos/mentions/mentions.tsx | 9 ++ .../component-demos/mentions/warning.tsx | 9 ++ .../component-demos/menu/data.tsx | 9 ++ .../component-demos/menu/index.ts | 9 ++ .../component-demos/menu/menu.tsx | 9 ++ .../component-demos/menu/menuDanger.tsx | 9 ++ .../component-demos/menu/menuInLayout.tsx | 9 ++ .../component-demos/message/error.tsx | 9 ++ .../component-demos/message/index.ts | 9 ++ .../component-demos/message/info.tsx | 9 ++ .../component-demos/message/message.tsx | 9 ++ .../component-demos/message/success.tsx | 9 ++ .../component-demos/message/warning.tsx | 9 ++ .../component-demos/modal/index.ts | 9 ++ .../component-demos/modal/info.tsx | 9 ++ .../component-demos/modal/modal.tsx | 9 ++ .../component-demos/modal/modalWithButton.tsx | 9 ++ .../component-demos/modal/success.tsx | 9 ++ .../component-demos/modal/warning.tsx | 9 ++ .../component-demos/notification/error.tsx | 9 ++ .../component-demos/notification/index.ts | 9 ++ .../component-demos/notification/info.tsx | 9 ++ .../notification/notification.tsx | 9 ++ .../component-demos/notification/success.tsx | 9 ++ .../component-demos/notification/warning.tsx | 9 ++ .../component-demos/pagination/disabled.tsx | 9 ++ .../component-demos/pagination/index.tsx | 9 ++ .../component-demos/pagination/outline.tsx | 9 ++ .../component-demos/pagination/pagination.tsx | 9 ++ .../component-demos/popconfirm/index.ts | 9 ++ .../component-demos/popconfirm/popconfirm.tsx | 9 ++ .../component-demos/popover/index.ts | 9 ++ .../component-demos/popover/popover.tsx | 9 ++ .../component-demos/progress/danger.tsx | 9 ++ .../component-demos/progress/index.ts | 9 ++ .../component-demos/progress/info.tsx | 9 ++ .../component-demos/progress/progress.tsx | 9 ++ .../component-demos/progress/progressInBg.tsx | 9 ++ .../component-demos/progress/success.tsx | 9 ++ .../component-demos/radio/button.tsx | 9 ++ .../component-demos/radio/disabled.tsx | 9 ++ .../component-demos/radio/index.ts | 9 ++ .../component-demos/radio/radio.tsx | 9 ++ .../component-demos/rate/index.ts | 9 ++ .../component-demos/rate/rate.tsx | 9 ++ .../component-demos/result/danger.tsx | 9 ++ .../component-demos/result/index.ts | 9 ++ .../component-demos/result/info.tsx | 9 ++ .../component-demos/result/result.tsx | 9 ++ .../component-demos/result/resultWithDesc.tsx | 9 ++ .../component-demos/result/success.tsx | 9 ++ .../component-demos/result/warning.tsx | 9 ++ .../component-demos/segmented/index.ts | 9 ++ .../component-demos/segmented/segmented.tsx | 9 ++ .../component-demos/select/_internal.ts | 9 ++ .../component-demos/select/danger.tsx | 9 ++ .../component-demos/select/data.ts | 9 ++ .../component-demos/select/disabled.tsx | 9 ++ .../component-demos/select/icon.tsx | 9 ++ .../component-demos/select/index.ts | 9 ++ .../component-demos/select/select.tsx | 9 ++ .../component-demos/select/selectTag.tsx | 9 ++ .../component-demos/select/warning.tsx | 9 ++ .../component-demos/skeleton/index.ts | 9 ++ .../component-demos/skeleton/skeleton.tsx | 9 ++ .../component-demos/slider/index.ts | 9 ++ .../component-demos/slider/slider.tsx | 9 ++ .../component-demos/slider/sliderInBg.tsx | 9 ++ .../component-demos/space/index.ts | 9 ++ .../component-demos/space/space.tsx | 9 ++ .../component-demos/spin/index.ts | 9 ++ .../component-demos/spin/spin.tsx | 9 ++ .../component-demos/statistic/index.ts | 9 ++ .../component-demos/statistic/statistic.tsx | 9 ++ .../component-demos/steps/danger.tsx | 9 ++ .../component-demos/steps/index.ts | 9 ++ .../component-demos/steps/steps.tsx | 9 ++ .../component-demos/switch/index.ts | 9 ++ .../component-demos/switch/switch.tsx | 9 ++ .../component-demos/table/filterTable.tsx | 9 ++ .../component-demos/table/index.ts | 9 ++ .../component-demos/table/table.tsx | 9 ++ .../component-demos/tabs/cardTabs.tsx | 9 ++ .../component-demos/tabs/index.ts | 9 ++ .../component-demos/tabs/tabs.tsx | 9 ++ .../component-demos/tag/closable.tsx | 9 ++ .../component-demos/tag/error.tsx | 9 ++ .../component-demos/tag/index.ts | 9 ++ .../component-demos/tag/info.tsx | 9 ++ .../component-demos/tag/multiTags.tsx | 9 ++ .../component-demos/tag/success.tsx | 9 ++ .../component-demos/tag/tag.tsx | 9 ++ .../component-demos/tag/warning.tsx | 9 ++ .../component-demos/timePicker/index.ts | 9 ++ .../timePicker/time-picker.tsx | 9 ++ .../component-demos/timeline/danger.tsx | 9 ++ .../component-demos/timeline/index.ts | 9 ++ .../component-demos/timeline/success.tsx | 9 ++ .../component-demos/timeline/timeline.tsx | 9 ++ .../component-demos/tooltip/index.ts | 9 ++ .../component-demos/tooltip/tooltip.tsx | 9 ++ .../component-demos/transfer/danger.tsx | 9 ++ .../component-demos/transfer/data.ts | 9 ++ .../component-demos/transfer/disabled.tsx | 9 ++ .../component-demos/transfer/index.ts | 9 ++ .../component-demos/transfer/transfer.tsx | 9 ++ .../component-demos/transfer/warning.tsx | 9 ++ .../component-demos/tree/disabled.tsx | 9 ++ .../component-demos/tree/index.ts | 9 ++ .../component-demos/tree/tree.tsx | 9 ++ .../component-demos/treeSelect/disabled.tsx | 9 ++ .../component-demos/treeSelect/index.ts | 9 ++ .../treeSelect/tree-select.tsx | 9 ++ .../component-demos/typography/Heading4.tsx | 9 ++ .../component-demos/typography/error.tsx | 9 ++ .../component-demos/typography/index.tsx | 9 ++ .../component-demos/typography/success.tsx | 9 ++ .../component-demos/typography/typography.tsx | 9 ++ .../typography/typographyFull.tsx | 9 ++ .../component-demos/typography/warning.tsx | 9 ++ .../typography/warningText.tsx | 9 ++ .../typography/warningTitle.tsx | 9 ++ .../component-demos/upload/avatar.tsx | 9 ++ .../component-demos/upload/danger.tsx | 9 ++ .../component-demos/upload/index.ts | 9 ++ .../component-demos/upload/upload.tsx | 9 ++ .../component-panel/ComponentCard.tsx | 9 ++ .../component-panel/ComponentDemoGroup.tsx | 9 ++ .../component-panel/ComponentTokenDrawer.tsx | 9 ++ .../component-panel/ComponentTree.tsx | 9 ++ .../component-panel/index.tsx | 9 ++ .../hooks/useControlledTheme.tsx | 9 ++ .../antd-token-previewer/icons/Arrow.d.ts | 9 ++ .../antd-token-previewer/icons/Arrow.js | 9 ++ .../antd-token-previewer/icons/Brush.d.ts | 9 ++ .../antd-token-previewer/icons/Brush.js | 9 ++ .../antd-token-previewer/icons/Compact.d.ts | 9 ++ .../antd-token-previewer/icons/Compact.js | 9 ++ .../antd-token-previewer/icons/Control.d.ts | 9 ++ .../antd-token-previewer/icons/Control.js | 9 ++ .../antd-token-previewer/icons/Dark.d.ts | 9 ++ .../client/antd-token-previewer/icons/Dark.js | 9 ++ .../antd-token-previewer/icons/Light.d.ts | 9 ++ .../antd-token-previewer/icons/Light.js | 9 ++ .../antd-token-previewer/icons/Margin.d.ts | 9 ++ .../antd-token-previewer/icons/Margin.js | 9 ++ .../antd-token-previewer/icons/Motion.d.ts | 9 ++ .../antd-token-previewer/icons/Motion.js | 9 ++ .../antd-token-previewer/icons/Pick.d.ts | 9 ++ .../client/antd-token-previewer/icons/Pick.js | 9 ++ .../icons/SearchDropdown.d.ts | 9 ++ .../icons/SearchDropdown.js | 9 ++ .../antd-token-previewer/icons/ShapeLine.d.ts | 9 ++ .../antd-token-previewer/icons/ShapeLine.js | 9 ++ .../icons/TokenPanel.d.ts | 9 ++ .../antd-token-previewer/icons/TokenPanel.js | 9 ++ .../antd-token-previewer/icons/index.d.ts | 9 ++ .../antd-token-previewer/icons/index.js | 9 ++ .../src/client/antd-token-previewer/index.tsx | 9 ++ .../client/antd-token-previewer/interface.ts | 9 ++ .../antd-token-previewer/locale/context.tsx | 9 ++ .../antd-token-previewer/locale/en-US.ts | 9 ++ .../antd-token-previewer/locale/fr-FR.ts | 9 ++ .../antd-token-previewer/locale/index.ts | 9 ++ .../antd-token-previewer/locale/interface.tsx | 9 ++ .../antd-token-previewer/locale/zh-CN.ts | 9 ++ .../meta/TokenRelation.ts | 9 ++ .../antd-token-previewer/meta/category.ts | 9 ++ .../client/antd-token-previewer/meta/index.ts | 9 ++ .../antd-token-previewer/meta/interface.ts | 9 ++ .../antd-token-previewer/overviews/Error.tsx | 9 ++ .../overviews/Primary.tsx | 9 ++ .../overviews/Success.tsx | 9 ++ .../overviews/Warning.tsx | 9 ++ .../antd-token-previewer/overviews/index.ts | 9 ++ .../client/antd-token-previewer/previewer.tsx | 9 ++ .../token-panel-pro/AliasPanel.tsx | 9 ++ .../token-panel-pro/ComponentDemoPro.tsx | 9 ++ .../token-panel-pro/InputNumberPlus.tsx | 9 ++ .../token-panel-pro/TokenContent.tsx | 9 ++ .../token-panel-pro/TokenDetail.tsx | 9 ++ .../token-panel-pro/TokenPreview.tsx | 9 ++ .../token-panel-pro/calcCustomToken.ts | 9 ++ .../token-panel-pro/index.tsx | 9 ++ .../token-panel/index.tsx | 9 ++ .../token-panel/token-card/index.tsx | 9 ++ .../token-panel/token-item/index.tsx | 9 ++ .../utils/classifyToken.ts | 9 ++ .../utils/deepUpdateObj.ts | 9 ++ .../utils/getColorBgImg.ts | 9 ++ .../utils/getDesignToken.ts | 9 ++ .../utils/getValueByPath.ts | 9 ++ .../antd-token-previewer/utils/isColor.ts | 9 ++ .../antd-token-previewer/utils/makeStyle.tsx | 9 ++ .../antd-token-previewer/utils/statistic.ts | 9 ++ .../src/client/components/InitializeTheme.tsx | 9 ++ .../src/client/components/ThemeCard.tsx | 9 ++ .../client/components/ThemeEditorProvider.tsx | 9 ++ .../src/client/components/ThemeList.tsx | 9 ++ .../client/components/ThemeListProvider.tsx | 9 ++ .../src/client/components/ToEditTheme.tsx | 9 ++ .../client/components/theme-editor/index.tsx | 9 ++ .../src/client/hooks/useThemeSettings.tsx | 9 ++ .../client/hooks/useUpdateThemeSettings.tsx | 9 ++ .../plugin-theme-editor/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../changeAlgorithmFromFunctionToString.tsx | 9 ++ .../changeAlgorithmFromStringToFunction.tsx | 9 ++ .../plugin-theme-editor/src/index.ts | 9 ++ .../src/server/builtinThemes.ts | 9 ++ .../src/server/collections/theme-config.ts | 9 ++ .../plugin-theme-editor/src/server/index.ts | 9 ++ .../migrations/202307250853-theme-editor.ts | 9 ++ .../20231210132610-add-default-field.ts | 9 ++ .../plugin-theme-editor/src/server/plugin.ts | 9 ++ .../plugin-theme-editor/src/swagger/index.ts | 9 ++ .../plugin-theme-editor/src/types.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-ui-schema-storage/src/index.ts | 9 ++ .../src/server/__tests__/action.test.ts | 9 ++ .../src/server/__tests__/fixtures/data.ts | 9 ++ .../__tests__/fixtures/simple-schema.ts | 9 ++ .../20230330214649-filter-form-block.test.ts | 9 ++ .../server/__tests__/server-hook-impl.test.ts | 9 ++ .../src/server/__tests__/server-hook.test.ts | 9 ++ .../server/__tests__/ui-schema-model.test.ts | 9 ++ .../ui-schema-repository-with-cache.test.ts | 9 ++ .../__tests__/ui-schema-repository.test.ts | 9 ++ .../src/server/__tests__/ui-schema.test.ts | 9 ++ .../src/server/actions/ui-schema-action.ts | 9 ++ .../server/collections/uiSchemaServerHooks.ts | 9 ++ .../server/collections/uiSchemaTemplates.ts | 9 ++ .../server/collections/uiSchemaTreePath.ts | 9 ++ .../src/server/collections/uiSchemas.ts | 9 ++ .../src/server/dao/ui_schema_node_dao.ts | 9 ++ .../src/server/helper.ts | 9 ++ .../src/server/index.ts | 9 ++ .../20230330214649-filter-form-block.ts | 9 ++ .../20230509221649-association-select.ts | 9 ++ .../20230509235247-record-picker.ts | 9 ++ .../migrations/20230510235247-form-field.ts | 9 ++ .../20230522231231-association-field.ts | 9 ++ ...t-filter-blocks-in-select-record-drawer.ts | 9 ++ .../src/server/model.ts | 9 ++ .../src/server/repository.ts | 9 ++ .../server-hooks/hooks/bind-menu-to-role.ts | 9 ++ .../src/server/server-hooks/hooks/factory.ts | 9 ++ .../src/server/server-hooks/hooks/index.ts | 9 ++ .../hooks/remove-parents-if-no-children.ts | 9 ++ .../server-hooks/hooks/remove-schema.ts | 9 ++ .../src/server/server-hooks/index.ts | 9 ++ .../src/server/server-hooks/model.ts | 9 ++ .../src/server/server.ts | 9 ++ .../src/swagger/index.ts | 9 ++ .../plugin-users/src/client/PasswordField.tsx | 9 ++ .../src/client/RoleUsersManager.tsx | 9 ++ .../src/client/UserRolesField.tsx | 9 ++ .../src/client/UsersManagement.tsx | 9 ++ .../plugin-users/src/client/hooks.ts | 9 ++ .../plugin-users/src/client/index.ts | 9 ++ .../plugin-users/src/client/locale.ts | 9 ++ .../plugin-users/src/client/schemas/users.ts | 9 ++ .../plugin-users/src/client/utils.ts | 9 ++ .../@nocobase/plugin-users/src/index.ts | 9 ++ .../src/server/__tests__/actions.test.ts | 9 ++ .../src/server/__tests__/fields.test.ts | 9 ++ .../src/server/__tests__/model.test.ts | 9 ++ .../src/server/__tests__/role-users.test.ts | 9 ++ .../src/server/__tests__/utils.ts | 9 ++ .../plugin-users/src/server/actions/users.ts | 9 ++ .../src/server/collections/users.ts | 9 ++ .../plugin-users/src/server/index.ts | 9 ++ .../plugin-users/src/server/locale/en-US.ts | 9 ++ .../plugin-users/src/server/locale/es-ES.ts | 9 ++ .../plugin-users/src/server/locale/fr-FR.ts | 9 ++ .../plugin-users/src/server/locale/index.ts | 9 ++ .../plugin-users/src/server/locale/ja-JP.ts | 9 ++ .../plugin-users/src/server/locale/pt-BR.ts | 9 ++ .../plugin-users/src/server/locale/zh-CN.ts | 9 ++ ...220818072639-add-users-phone-constraint.ts | 9 ++ .../20220818072639-add-users-phone.ts | 9 ++ .../20230802170800-add-username-constraint.ts | 9 ++ .../migrations/20230802170800-add-username.ts | 9 ++ .../20230802183100-update-username.ts | 9 ++ ...0230908164036-update-username-interface.ts | 9 ++ .../20240410152410-update-phone-interface.ts | 9 ++ .../20240418101937-update-system-fields.ts | 9 ++ .../src/server/models/UserModel.ts | 9 ++ .../plugin-users/src/server/server.ts | 9 ++ .../src/client/ProviderOptions.tsx | 9 ++ .../src/client/VerificationProviders.tsx | 9 ++ .../plugin-verification/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/providerTypes/index.ts | 9 ++ .../src/client/providerTypes/sms-aliyun.ts | 9 ++ .../src/client/providerTypes/sms-tencent.ts | 9 ++ .../src/client/schemas/providers.ts | 9 ++ .../plugin-verification/src/index.ts | 9 ++ .../plugin-verification/src/server/Plugin.ts | 9 ++ .../src/server/__tests__/Plugin.test.ts | 9 ++ .../server/__tests__/collections/authors.ts | 9 ++ .../src/server/__tests__/index.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../src/server/actions/verifications.ts | 9 ++ .../src/server/collections/verifications.ts | 9 ++ .../collections/verifications_providers.ts | 9 ++ .../src/server/constants.ts | 9 ++ .../plugin-verification/src/server/index.ts | 9 ++ .../src/server/locale/index.ts | 9 ++ .../src/server/locale/zh-CN.ts | 9 ++ .../src/server/providers/Provider.ts | 9 ++ .../src/server/providers/index.ts | 9 ++ .../src/server/providers/sms-aliyun.ts | 9 ++ .../src/server/providers/sms-tencent.ts | 9 ++ .../src/client/ActionTrigger.tsx | 9 ++ .../src/client/__e2e__/configuration.test.ts | 9 ++ .../src/client/__e2e__/workflowCRUD.test.ts | 9 ++ .../src/client/index.ts | 9 ++ .../src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/ActionTrigger.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/__tests__/trigger.test.ts | 9 ++ .../src/server/index.ts | 9 ++ .../migrations/20240307215012-change-name.ts | 9 ++ .../src/client/AggregateInstruction.tsx | 9 ++ .../client/__e2e__/DataOfCollection.test.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-workflow-aggregate/src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/AggregateInstruction.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/DelayInstruction.tsx | 9 ++ .../plugin-workflow-delay/src/client/index.ts | 9 ++ .../plugin-workflow-delay/src/index.ts | 9 ++ .../plugin-workflow-delay/src/locale/index.ts | 9 ++ .../src/server/DelayInstruction.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../plugin-workflow-delay/src/server/index.ts | 9 ++ .../src/client/DynamicCalculation.tsx | 9 ++ .../src/client/DynamicExpression.tsx | 9 ++ .../src/client/expression.tsx | 9 ++ .../src/client/index.ts | 9 ++ .../src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/DynamicCalculation.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../__tests__/collections/categories.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../src/server/expression-field.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/LoopInstruction.tsx | 9 ++ .../plugin-workflow-loop/src/client/index.ts | 9 ++ .../plugin-workflow-loop/src/index.ts | 9 ++ .../plugin-workflow-loop/src/locale/index.ts | 9 ++ .../src/server/LoopInstruction.ts | 9 ++ .../plugin-workflow-loop/src/server/Plugin.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../plugin-workflow-loop/src/server/index.ts | 9 ++ .../src/client/WorkflowTodo.tsx | 9 ++ .../client/WorkflowTodoBlockInitializer.tsx | 9 ++ .../src/client/__e2e__/assignees.test.ts | 9 ++ .../client/__e2e__/createRecordForm.test.ts | 9 ++ .../client/__e2e__/customFormBlocks.test.ts | 9 ++ .../src/client/__e2e__/datablocks.test.ts | 9 ++ .../client/__e2e__/updateRecordForm.test.ts | 9 ++ .../src/client/__e2e__/workflowTodo.test.ts | 9 ++ .../src/client/index.ts | 9 ++ .../client/instruction/AssigneesSelect.tsx | 9 ++ .../instruction/FormBlockInitializer.tsx | 9 ++ .../client/instruction/FormBlockProvider.tsx | 9 ++ .../src/client/instruction/ModeConfig.tsx | 9 ++ .../src/client/instruction/SchemaConfig.tsx | 9 ++ .../createManualFormBlockUISchema.ts | 9 ++ .../src/client/instruction/forms/create.tsx | 9 ++ .../src/client/instruction/forms/custom.tsx | 9 ++ .../src/client/instruction/forms/update.tsx | 9 ++ .../src/client/instruction/index.tsx | 9 ++ .../src/client/instruction/utils.ts | 9 ++ .../plugin-workflow-manual/src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/ManualInstruction.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/__tests__/assignees.test.ts | 9 ++ .../__tests__/collections/categories.ts | 9 ++ .../server/__tests__/collections/comments.ts | 9 ++ .../src/server/__tests__/collections/posts.ts | 9 ++ .../server/__tests__/collections/replies.ts | 9 ++ .../src/server/__tests__/collections/tags.ts | 9 ++ .../src/server/__tests__/data-source.test.ts | 9 ++ .../src/server/__tests__/form.test.ts | 9 ++ .../src/server/__tests__/mode.test.ts | 9 ++ .../src/server/actions.ts | 9 ++ .../src/server/collections/1-users_jobs.ts | 9 ++ .../src/server/collections/2-jobs.ts | 9 ++ .../src/server/collections/3-users.ts | 9 ++ .../src/server/forms/create.ts | 9 ++ .../src/server/forms/index.ts | 9 ++ .../src/server/forms/update.ts | 9 ++ .../src/server/index.ts | 9 ++ .../migrations/20240325213145-fix-schema.ts | 9 ++ .../src/client/ParallelInstruction.tsx | 9 ++ .../src/client/__e2e__/parallelBranch.test.ts | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-workflow-parallel/src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/ParallelInstruction.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/RequestInstruction.tsx | 9 ++ .../src/client/index.ts | 9 ++ .../plugin-workflow-request/src/index.ts | 9 ++ .../src/locale/index.ts | 9 ++ .../src/server/Plugin.ts | 9 ++ .../src/server/RequestInstruction.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../src/server/index.ts | 9 ++ .../src/client/SQLInstruction.tsx | 9 ++ .../src/client/__e2e__/dataCURD.test.ts | 9 ++ .../plugin-workflow-sql/src/client/index.ts | 9 ++ .../plugin-workflow-sql/src/index.ts | 9 ++ .../plugin-workflow-sql/src/locale/index.ts | 9 ++ .../plugin-workflow-sql/src/server/Plugin.ts | 9 ++ .../src/server/SQLInstruction.ts | 9 ++ .../src/server/__tests__/instruction.test.ts | 9 ++ .../plugin-workflow-sql/src/server/index.ts | 9 ++ .../plugin-workflow-test/src/client/index.ts | 9 ++ .../src/e2e/e2eCollectionModel.ts | 9 ++ .../src/e2e/e2ePageObjectModel.ts | 9 ++ .../plugin-workflow-test/src/e2e/e2eUtils.ts | 9 ++ .../plugin-workflow-test/src/e2e/index.ts | 9 ++ .../plugin-workflow-test/src/index.ts | 9 ++ .../src/server/collections/categories.ts | 9 ++ .../src/server/collections/comments.ts | 9 ++ .../src/server/collections/posts.ts | 9 ++ .../src/server/collections/replies.ts | 9 ++ .../src/server/collections/tags.ts | 9 ++ .../src/server/functions.ts | 9 ++ .../plugin-workflow-test/src/server/index.ts | 9 ++ .../src/server/instructions.ts | 9 ++ .../src/server/triggers.ts | 9 ++ .../plugin-workflow/src/client/AddButton.tsx | 9 ++ .../plugin-workflow/src/client/Branch.tsx | 9 ++ .../src/client/CanvasContent.tsx | 9 ++ .../src/client/ExecutionCanvas.tsx | 9 ++ .../src/client/ExecutionContextProvider.tsx | 9 ++ .../src/client/ExecutionLink.tsx | 9 ++ .../src/client/ExecutionPage.tsx | 9 ++ .../src/client/ExecutionResourceProvider.tsx | 9 ++ .../src/client/FlowContext.tsx | 9 ++ .../src/client/WorkflowCanvas.tsx | 9 ++ .../src/client/WorkflowLink.tsx | 9 ++ .../src/client/WorkflowPage.tsx | 9 ++ .../src/client/WorkflowPane.tsx | 9 ++ .../configuration.test.ts | 9 ++ .../ScheduleEventTrigger/workflowCRUD.test.ts | 9 ++ .../calculationNode/formulaEngine.test.ts | 9 ++ .../calculationNode/mathEngine.test.ts | 9 ++ .../configuration.test.ts | 9 ++ .../workflowCRUD.test.ts | 9 ++ .../BranchIntoYesAndNoBasicType.test.ts | 9 ++ .../BranchIntoYesAndNoFormulaEngine.test.ts | 9 ++ .../BranchIntoYesAndNoMathEngine.test.ts | 9 ++ .../continueWhenYesBasicType.test.ts | 9 ++ .../continueWhenYesFormulaEngine.test.ts | 9 ++ .../continueWhenYesMathEngine.test.ts | 9 ++ .../createRecordNode/CreateRecord.test.ts | 9 ++ .../deleteRecordNode/DeleteRecord.test.ts | 9 ++ .../queryRecordNode/QueryRecord.test.ts | 9 ++ .../updateRecordNode/updateInABatch.test.ts | 9 ++ .../updateRecordNode/updateOneByOne.test.ts | 9 ++ .../components/CheckboxGroupWithTooltip.tsx | 9 ++ .../components/CollectionBlockInitializer.tsx | 9 ++ .../client/components/CollectionFieldset.tsx | 9 ++ .../components/DetailsBlockProvider.tsx | 9 ++ .../client/components/DrawerDescription.tsx | 9 ++ .../src/client/components/DrawerForm.tsx | 9 ++ .../src/client/components/ExecutionStatus.tsx | 9 ++ .../src/client/components/FieldsSelect.tsx | 9 ++ .../components/FilterDynamicComponent.tsx | 9 ++ .../src/client/components/OpenDrawer.tsx | 9 ++ .../client/components/RadioWithTooltip.tsx | 9 ++ .../src/client/components/SimpleDesigner.tsx | 9 ++ .../src/client/components/StatusButton.tsx | 9 ++ .../client/components/TriggerOptionRender.tsx | 9 ++ .../src/client/components/ValueBlock.tsx | 9 ++ .../src/client/components/index.ts | 9 ++ .../components/renderEngineReference.tsx | 9 ++ .../plugin-workflow/src/client/constants.tsx | 9 ++ .../plugin-workflow/src/client/hooks/index.ts | 9 ++ .../hooks/useGetAriaLabelOfAddButton.ts | 9 ++ .../src/client/hooks/useRefreshActionProps.ts | 9 ++ .../hooks/useTriggerWorkflowActionProps.ts | 9 ++ .../src/client/hooks/useWorkflowExecuted.ts | 9 ++ .../plugin-workflow/src/client/index.tsx | 9 ++ .../src/client/locale/index.ts | 9 ++ .../src/client/nodes/calculation.tsx | 9 ++ .../src/client/nodes/condition.tsx | 9 ++ .../src/client/nodes/create.tsx | 9 ++ .../src/client/nodes/destroy.tsx | 9 ++ .../plugin-workflow/src/client/nodes/end.tsx | 9 ++ .../src/client/nodes/index.tsx | 9 ++ .../src/client/nodes/query.tsx | 9 ++ .../src/client/nodes/update.tsx | 9 ++ .../src/client/schemas/collection.ts | 9 ++ .../src/client/schemas/executions.tsx | 9 ++ .../src/client/schemas/workflows.ts | 9 ++ ...ustomizeSubmitToWorkflowActionSettings.tsx | 9 ++ .../plugin-workflow/src/client/style.tsx | 9 ++ .../src/client/triggers/collection.tsx | 9 ++ .../src/client/triggers/index.tsx | 9 ++ .../client/triggers/schedule/EndsByField.tsx | 9 ++ .../src/client/triggers/schedule/OnField.tsx | 9 ++ .../client/triggers/schedule/RepeatField.tsx | 9 ++ .../triggers/schedule/ScheduleConfig.tsx | 9 ++ .../src/client/triggers/schedule/constants.ts | 9 ++ .../src/client/triggers/schedule/index.tsx | 9 ++ .../triggers/schedule/locale/Cron.zh-CN.ts | 9 ++ .../plugin-workflow/src/client/utils.ts | 9 ++ .../plugin-workflow/src/client/variable.tsx | 9 ++ .../@nocobase/plugin-workflow/src/index.ts | 9 ++ .../plugin-workflow/src/server/Plugin.ts | 9 ++ .../plugin-workflow/src/server/Processor.ts | 9 ++ .../src/server/__tests__/Plugin.test.ts | 9 ++ .../src/server/__tests__/Processor.test.ts | 9 ++ .../__tests__/actions/executions.test.ts | 9 ++ .../server/__tests__/actions/nodes.test.ts | 9 ++ .../__tests__/actions/workflows.test.ts | 9 ++ .../instructions/calculation.test.ts | 9 ++ .../__tests__/instructions/condition.test.ts | 9 ++ .../__tests__/instructions/create.test.ts | 9 ++ .../__tests__/instructions/destroy.test.ts | 9 ++ .../server/__tests__/instructions/end.test.ts | 9 ++ .../__tests__/instructions/query.test.ts | 9 ++ .../__tests__/instructions/update.test.ts | 9 ++ .../__tests__/triggers/collection.test.ts | 9 ++ .../triggers/schedule/mode-date-field.test.ts | 9 ++ .../triggers/schedule/mode-static.test.ts | 9 ++ .../src/server/actions/executions.ts | 9 ++ .../src/server/actions/index.ts | 9 ++ .../src/server/actions/nodes.ts | 9 ++ .../src/server/actions/workflows.ts | 9 ++ .../src/server/collections/executions.ts | 9 ++ .../src/server/collections/flow_nodes.ts | 9 ++ .../src/server/collections/jobs.ts | 9 ++ .../src/server/collections/workflows.ts | 9 ++ .../plugin-workflow/src/server/constants.ts | 9 ++ .../src/server/functions/index.ts | 9 ++ .../plugin-workflow/src/server/index.ts | 9 ++ .../instructions/CalculationInstruction.ts | 9 ++ .../instructions/ConditionInstruction.ts | 9 ++ .../server/instructions/CreateInstruction.ts | 9 ++ .../server/instructions/DestroyInstruction.ts | 9 ++ .../src/server/instructions/EndInstruction.ts | 9 ++ .../server/instructions/QueryInstruction.ts | 9 ++ .../server/instructions/UpdateInstruction.ts | 9 ++ .../src/server/instructions/index.ts | 9 ++ .../20221129153547-calculation-variables.ts | 9 ++ ...20230221032941-change-request-body-type.ts | 9 ++ .../20230221071831-calculation-expression.ts | 9 ++ .../20230221121203-condition-calculation.ts | 9 ++ .../20230221162902-jsonb-to-json.ts | 9 ++ .../20230411034722-manual-multi-form.ts | 9 ++ .../20230612021134-manual-collection-block.ts | 9 ++ .../20230710115902-manual-action-values.ts | 9 ++ .../20230809113132-workflow-options.ts | 9 ++ .../migrations/20231024172342-add-node-key.ts | 9 ++ .../20231122143143-split-to-plugins.ts | 9 ++ .../20240115220721-add-node-key-to-job.ts | 9 ++ .../src/server/triggers/CollectionTrigger.ts | 9 ++ .../DateFieldScheduleTrigger.ts | 9 ++ .../ScheduleTrigger/StaticScheduleTrigger.ts | 9 ++ .../server/triggers/ScheduleTrigger/index.ts | 9 ++ .../server/triggers/ScheduleTrigger/utils.ts | 9 ++ .../src/server/triggers/index.ts | 9 ++ .../src/server/types/Execution.ts | 9 ++ .../src/server/types/FlowNode.ts | 9 ++ .../plugin-workflow/src/server/types/Job.ts | 9 ++ .../src/server/types/Workflow.ts | 9 ++ .../plugin-workflow/src/server/types/index.ts | 9 ++ .../plugin-workflow/src/server/utils.ts | 9 ++ .../plugin-workflow/src/swagger/index.ts | 9 ++ packages/presets/nocobase/src/client/index.ts | 9 ++ packages/presets/nocobase/src/index.ts | 9 ++ .../migrations/pro-plugins-detect.test.ts | 9 ++ .../__tests__/migrations/rename.test.ts | 9 ++ packages/presets/nocobase/src/server/index.ts | 9 ++ .../20230829160015-set-audit-local.ts | 9 ++ .../20230829160015-set-charts-local.ts | 9 ++ .../20240106014312-update-plugins.ts | 9 ++ .../20240106090440-remove-unused-plugins.ts | 9 ++ .../20240116154734-remove-sample-hello.ts | 9 ++ .../20240307184120-set-sms-local.ts | 9 ++ .../migrations/20240307214623-change-name.ts | 9 ++ .../20240424125531-pro-plugins-detect.ts | 9 ++ .../migrations/20240424131556-rename.ts | 9 ++ .../presets/nocobase/src/server/wording.ts | 9 ++ 3884 files changed, 35142 insertions(+), 1 deletion(-) create mode 100644 addLicense.js create mode 100644 addLicenseToSource.js create mode 100644 packages/core/build/src/utils/addlicense.ts diff --git a/addLicense.js b/addLicense.js new file mode 100644 index 0000000000..eda2a7c9bb --- /dev/null +++ b/addLicense.js @@ -0,0 +1,80 @@ +const { exec } = require('child_process'); +const fs = require('fs'); +const path = require('path'); + +const commercialLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This program is offered under a commercial license. + * For more information, see + */ +`.trim(); +const openSourceLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ +`.trim(); + +function getLicenseText(packageDir) { + return packageDir.includes('/pro-plugins') ? commercialLicense : openSourceLicense; +} + +function addLicenseToFile(filePath) { + const licenseText = getLicenseText(filePath); + + const data = fs.readFileSync(filePath, 'utf8'); + + if (data.startsWith(licenseText)) return false; + + // 添加授权信息到文件内容的顶部 + const newData = licenseText + '\n\n' + data; + + // 将修改后的内容写回文件 + fs.writeFileSync(filePath, newData, 'utf8'); + + return true; +} + +// 执行 git diff 命令 +exec('git diff --cached --name-only --diff-filter=ACM', (error, stdout, stderr) => { + if (error) { + console.error(`[nocobase]: git diff error ${error.message}`); + process.exit(-1); + } + if (stderr) { + console.error(`[nocobase]: git diff error ${stderr}`); + process.exit(-1); + } + + // 获取命令执行结果(文件列表) + const files = stdout + .split('\n') + .filter(Boolean) + .filter((file) => file.includes('/src/')) // 只检查 src 目录下的文件 + .filter((file) => file.endsWith('.js') || file.endsWith('.jsx') || file.endsWith('.ts') || file.endsWith('.tsx')); + + const validFiles = files.filter((file) => addLicenseToFile(file)); + + if (validFiles.length === 0) { + return; + } + // 执行 git add 这些文件 + exec(`git add ${validFiles.join(' ')}`, (error, stdout, stderr) => { + if (error) { + console.error(`[nocobase]: git add error ${error.message}`); + process.exit(-1); + } + if (stderr) { + console.error(`[nocobase]: git add error ${stderr}`); + process.exit(-1); + } + }); +}); diff --git a/addLicenseToSource.js b/addLicenseToSource.js new file mode 100644 index 0000000000..ea49ab24bc --- /dev/null +++ b/addLicenseToSource.js @@ -0,0 +1,82 @@ +const fg = require('fast-glob'); +const fs = require('fs'); +const path = require('path'); + +const commercialLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This program is offered under a commercial license. + * For more information, see + */ +`.trim(); +const openSourceLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ +`.trim(); + +function getLicenseText(packageDir) { + return packageDir.includes('/pro-plugins') ? commercialLicense : openSourceLicense; +} + +function addLicenseToFile(filePath, licenseText) { + const data = fs.readFileSync(filePath, 'utf8'); + + if (data.includes(licenseText)) { + return; + } + + // 添加授权信息到文件内容的顶部 + const newData = licenseText + '\n\n' + data; + + // 将修改后的内容写回文件 + fs.writeFile(filePath, newData, 'utf8', (err) => { + if (err) { + console.error('写入文件时发生错误:', err); + return; + } + }); +} + +async function addToPackageSource(packageDir) { + const stream = fg.globStream('**/*.{js,jsx,ts,tsx,d.ts}', { + cwd: path.join(packageDir, 'src'), + ignore: ['node_modules'], + absolute: true, + onlyFiles: true, + }); + + console.log('package', path.basename(packageDir)); + + const licenseText = getLicenseText(packageDir); + for await (const filePath of stream) { + addLicenseToFile(filePath, licenseText); + } +} + +function getPackages() { + return fg + .sync(['*/*/package.json', '*/*/*/package.json'], { + cwd: path.join(__dirname, './packages'), + absolute: true, + onlyFiles: true, + }) + .map((item) => path.join(path.dirname(item))); +} + +function run() { + const packages = getPackages(); + for (const package of packages) { + addToPackageSource(package); + } +} + +run(); diff --git a/package.json b/package.json index 6514aab7bc..1a02afd65b 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ }, "config": { "ghooks": { - "pre-commit": "yarn lint-staged", + "pre-commit": "yarn lint-staged && node addLicense.js", "commit-msg": "commitlint --edit" } }, diff --git a/packages/core/acl/src/__tests__/acl.test.ts b/packages/core/acl/src/__tests__/acl.test.ts index 2a9eebdabb..ce40c22978 100644 --- a/packages/core/acl/src/__tests__/acl.test.ts +++ b/packages/core/acl/src/__tests__/acl.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Context } from '@nocobase/actions'; import { ACL } from '..'; diff --git a/packages/core/acl/src/__tests__/allow-manager.test.ts b/packages/core/acl/src/__tests__/allow-manager.test.ts index e26b0c85b3..ba62d0aa8d 100644 --- a/packages/core/acl/src/__tests__/allow-manager.test.ts +++ b/packages/core/acl/src/__tests__/allow-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '..'; import { AllowManager } from '../allow-manager'; describe('allow manager', () => { diff --git a/packages/core/acl/src/__tests__/allow.test.ts b/packages/core/acl/src/__tests__/allow.test.ts index e9f20e5779..c8aade3311 100644 --- a/packages/core/acl/src/__tests__/allow.test.ts +++ b/packages/core/acl/src/__tests__/allow.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { ACL } from '..'; diff --git a/packages/core/acl/src/__tests__/fixed-params.test.ts b/packages/core/acl/src/__tests__/fixed-params.test.ts index 2576b3a93e..1502507975 100644 --- a/packages/core/acl/src/__tests__/fixed-params.test.ts +++ b/packages/core/acl/src/__tests__/fixed-params.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '../acl'; import FixedParamsManager from '../fixed-params-manager'; diff --git a/packages/core/acl/src/__tests__/skip-middleware.test.ts b/packages/core/acl/src/__tests__/skip-middleware.test.ts index 2898c79dce..f323a1f281 100644 --- a/packages/core/acl/src/__tests__/skip-middleware.test.ts +++ b/packages/core/acl/src/__tests__/skip-middleware.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { skip } from '../skip-middleware'; describe('Skip Middleware', () => { diff --git a/packages/core/acl/src/__tests__/snippet.test.ts b/packages/core/acl/src/__tests__/snippet.test.ts index 8f91c55eb7..17747932da 100644 --- a/packages/core/acl/src/__tests__/snippet.test.ts +++ b/packages/core/acl/src/__tests__/snippet.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '..'; import SnippetManager from '../snippet-manager'; diff --git a/packages/core/acl/src/acl-available-action.ts b/packages/core/acl/src/acl-available-action.ts index 3f0e9ac3e3..aba6e6cd57 100644 --- a/packages/core/acl/src/acl-available-action.ts +++ b/packages/core/acl/src/acl-available-action.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface AvailableActionOptions { /** * @deprecated diff --git a/packages/core/acl/src/acl-available-strategy.ts b/packages/core/acl/src/acl-available-strategy.ts index 29302ac0e6..2645ca085a 100644 --- a/packages/core/acl/src/acl-available-strategy.ts +++ b/packages/core/acl/src/acl-available-strategy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { ACL } from './acl'; diff --git a/packages/core/acl/src/acl-resource.ts b/packages/core/acl/src/acl-resource.ts index f16e94ba86..d6ebc716e0 100644 --- a/packages/core/acl/src/acl-resource.ts +++ b/packages/core/acl/src/acl-resource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACLRole, RoleActionParams } from './acl-role'; import { ACL, ListenerContext } from './acl'; import lodash from 'lodash'; diff --git a/packages/core/acl/src/acl-role.ts b/packages/core/acl/src/acl-role.ts index bf6915cd37..54d2d94944 100644 --- a/packages/core/acl/src/acl-role.ts +++ b/packages/core/acl/src/acl-role.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL, DefineOptions } from './acl'; import { ACLAvailableStrategy, AvailableStrategyOptions } from './acl-available-strategy'; import { ACLResource } from './acl-resource'; diff --git a/packages/core/acl/src/acl.ts b/packages/core/acl/src/acl.ts index 4eeceffd21..45c685ec2b 100644 --- a/packages/core/acl/src/acl.ts +++ b/packages/core/acl/src/acl.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Action } from '@nocobase/resourcer'; import { assign, parseFilter, Toposort, ToposortOptions } from '@nocobase/utils'; import EventEmitter from 'events'; diff --git a/packages/core/acl/src/allow-manager.ts b/packages/core/acl/src/allow-manager.ts index 7828f455f0..7bb96a1b44 100644 --- a/packages/core/acl/src/allow-manager.ts +++ b/packages/core/acl/src/allow-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from './acl'; export type ConditionFunc = (ctx: any) => Promise | boolean; diff --git a/packages/core/acl/src/fixed-params-manager.ts b/packages/core/acl/src/fixed-params-manager.ts index 169363e3bc..db1a46df2c 100644 --- a/packages/core/acl/src/fixed-params-manager.ts +++ b/packages/core/acl/src/fixed-params-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { assign } from '@nocobase/utils'; type Context = any; diff --git a/packages/core/acl/src/index.ts b/packages/core/acl/src/index.ts index 391b930641..42f6b12f95 100644 --- a/packages/core/acl/src/index.ts +++ b/packages/core/acl/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './acl'; export * from './acl-available-action'; export * from './acl-available-strategy'; diff --git a/packages/core/acl/src/skip-middleware.ts b/packages/core/acl/src/skip-middleware.ts index 0739639d79..74573decb8 100644 --- a/packages/core/acl/src/skip-middleware.ts +++ b/packages/core/acl/src/skip-middleware.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const skip = (options: ACLSkipOptions) => { return async function ACLSkipMiddleware(ctx, next) { const { resourceName, actionName } = ctx.action; diff --git a/packages/core/acl/src/snippet-manager.ts b/packages/core/acl/src/snippet-manager.ts index e7826fa91a..68083738b3 100644 --- a/packages/core/acl/src/snippet-manager.ts +++ b/packages/core/acl/src/snippet-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import minimatch from 'minimatch'; export type SnippetOptions = { diff --git a/packages/core/actions/src/__tests__/add-action.test.ts b/packages/core/actions/src/__tests__/add-action.test.ts index 868941789f..e13c13b5ec 100644 --- a/packages/core/actions/src/__tests__/add-action.test.ts +++ b/packages/core/actions/src/__tests__/add-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer, MockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/create-action.test.ts b/packages/core/actions/src/__tests__/create-action.test.ts index 6b50bf696f..512b10e92a 100644 --- a/packages/core/actions/src/__tests__/create-action.test.ts +++ b/packages/core/actions/src/__tests__/create-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/db2resource.ts b/packages/core/actions/src/__tests__/db2resource.ts index f0de9ca37e..512cb3cd15 100644 --- a/packages/core/actions/src/__tests__/db2resource.ts +++ b/packages/core/actions/src/__tests__/db2resource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { getNameByParams, parseRequest, ResourcerContext, ResourceType } from '@nocobase/resourcer'; diff --git a/packages/core/actions/src/__tests__/destroy-action.test.ts b/packages/core/actions/src/__tests__/destroy-action.test.ts index 1928628f6d..0a86e60989 100644 --- a/packages/core/actions/src/__tests__/destroy-action.test.ts +++ b/packages/core/actions/src/__tests__/destroy-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerActions } from '@nocobase/actions'; import { mockServer } from './index'; diff --git a/packages/core/actions/src/__tests__/first-or-create.test.ts b/packages/core/actions/src/__tests__/first-or-create.test.ts index 1f21407ca5..37632120f0 100644 --- a/packages/core/actions/src/__tests__/first-or-create.test.ts +++ b/packages/core/actions/src/__tests__/first-or-create.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; import { Collection } from '@nocobase/database'; diff --git a/packages/core/actions/src/__tests__/get-action.test.ts b/packages/core/actions/src/__tests__/get-action.test.ts index 658e5b47f5..d543530256 100644 --- a/packages/core/actions/src/__tests__/get-action.test.ts +++ b/packages/core/actions/src/__tests__/get-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerActions } from '@nocobase/actions'; import { MockServer, mockServer } from './'; diff --git a/packages/core/actions/src/__tests__/index.ts b/packages/core/actions/src/__tests__/index.ts index 431ac27570..640dc3a5a9 100644 --- a/packages/core/actions/src/__tests__/index.ts +++ b/packages/core/actions/src/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { CollectionOptions, mockDatabase } from '@nocobase/database'; import { Handlers, ResourceOptions, Resourcer } from '@nocobase/resourcer'; import Koa from 'koa'; diff --git a/packages/core/actions/src/__tests__/list-action.test.ts b/packages/core/actions/src/__tests__/list-action.test.ts index 12b49533a8..0a3521b605 100644 --- a/packages/core/actions/src/__tests__/list-action.test.ts +++ b/packages/core/actions/src/__tests__/list-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerActions } from '@nocobase/actions'; import { MockServer, mockServer as actionMockServer } from './index'; diff --git a/packages/core/actions/src/__tests__/move-action.test.ts b/packages/core/actions/src/__tests__/move-action.test.ts index ae5023de7f..d9c6cf916d 100644 --- a/packages/core/actions/src/__tests__/move-action.test.ts +++ b/packages/core/actions/src/__tests__/move-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer, MockServer } from './index'; import { registerActions } from '@nocobase/actions'; import { Collection, Database } from '@nocobase/database'; diff --git a/packages/core/actions/src/__tests__/remove-action.test.ts b/packages/core/actions/src/__tests__/remove-action.test.ts index 080e7d3e8c..7a5a28df53 100644 --- a/packages/core/actions/src/__tests__/remove-action.test.ts +++ b/packages/core/actions/src/__tests__/remove-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/set-action.test.ts b/packages/core/actions/src/__tests__/set-action.test.ts index 117a085aaa..ccd417f0a2 100644 --- a/packages/core/actions/src/__tests__/set-action.test.ts +++ b/packages/core/actions/src/__tests__/set-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/sort-collection.test.ts b/packages/core/actions/src/__tests__/sort-collection.test.ts index 28e5c6567b..2b329033c7 100644 --- a/packages/core/actions/src/__tests__/sort-collection.test.ts +++ b/packages/core/actions/src/__tests__/sort-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { SortAbleCollection } from '../actions'; import lodash from 'lodash'; diff --git a/packages/core/actions/src/__tests__/toggle-action.test.ts b/packages/core/actions/src/__tests__/toggle-action.test.ts index dcfea48e9a..d54f4b1d8e 100644 --- a/packages/core/actions/src/__tests__/toggle-action.test.ts +++ b/packages/core/actions/src/__tests__/toggle-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/update-action.test.ts b/packages/core/actions/src/__tests__/update-action.test.ts index f8bf746378..62a540af49 100644 --- a/packages/core/actions/src/__tests__/update-action.test.ts +++ b/packages/core/actions/src/__tests__/update-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, mockServer } from './index'; import { registerActions } from '@nocobase/actions'; diff --git a/packages/core/actions/src/__tests__/update-or-create.test.ts b/packages/core/actions/src/__tests__/update-or-create.test.ts index ed50b9e551..61a1fb4f39 100644 --- a/packages/core/actions/src/__tests__/update-or-create.test.ts +++ b/packages/core/actions/src/__tests__/update-or-create.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer } from './index'; import { registerActions } from '@nocobase/actions'; import { Collection } from '@nocobase/database'; diff --git a/packages/core/actions/src/actions/add.ts b/packages/core/actions/src/actions/add.ts index 122495c364..51fe486d8c 100644 --- a/packages/core/actions/src/actions/add.ts +++ b/packages/core/actions/src/actions/add.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayFieldRepository, BelongsToManyRepository, diff --git a/packages/core/actions/src/actions/create.ts b/packages/core/actions/src/actions/create.ts index d17bd904c7..49c84137fc 100644 --- a/packages/core/actions/src/actions/create.ts +++ b/packages/core/actions/src/actions/create.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '..'; import { getRepositoryFromParams } from '../utils'; diff --git a/packages/core/actions/src/actions/destroy.ts b/packages/core/actions/src/actions/destroy.ts index cbeae5c1f4..2729d33989 100644 --- a/packages/core/actions/src/actions/destroy.ts +++ b/packages/core/actions/src/actions/destroy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getRepositoryFromParams } from '../utils'; import { Context } from '../index'; diff --git a/packages/core/actions/src/actions/first-or-create.ts b/packages/core/actions/src/actions/first-or-create.ts index 8b64d1fd23..efe8b8990e 100644 --- a/packages/core/actions/src/actions/first-or-create.ts +++ b/packages/core/actions/src/actions/first-or-create.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { proxyToRepository } from './proxy-to-repository'; export const firstOrCreate = proxyToRepository(['values', 'filterKeys'], 'firstOrCreate'); diff --git a/packages/core/actions/src/actions/get.ts b/packages/core/actions/src/actions/get.ts index 679a212e6d..ca1b527521 100644 --- a/packages/core/actions/src/actions/get.ts +++ b/packages/core/actions/src/actions/get.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { proxyToRepository } from './proxy-to-repository'; export const get = proxyToRepository( diff --git a/packages/core/actions/src/actions/index.ts b/packages/core/actions/src/actions/index.ts index bff23b93ba..054956ca58 100644 --- a/packages/core/actions/src/actions/index.ts +++ b/packages/core/actions/src/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './list'; export * from './create'; export * from './update'; diff --git a/packages/core/actions/src/actions/list.ts b/packages/core/actions/src/actions/list.ts index 0f2054f61d..efb5745759 100644 --- a/packages/core/actions/src/actions/list.ts +++ b/packages/core/actions/src/actions/list.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { assign } from '@nocobase/utils'; import { Context } from '..'; import { getRepositoryFromParams, pageArgsToLimitArgs } from '../utils'; diff --git a/packages/core/actions/src/actions/move.ts b/packages/core/actions/src/actions/move.ts index 15c8fd1484..9081b298c1 100644 --- a/packages/core/actions/src/actions/move.ts +++ b/packages/core/actions/src/actions/move.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Op } from 'sequelize'; import { BelongsToManyRepository, Collection, HasManyRepository, SortField, TargetKey } from '@nocobase/database'; diff --git a/packages/core/actions/src/actions/proxy-to-repository.ts b/packages/core/actions/src/actions/proxy-to-repository.ts index f126c53ae7..f23e6ff448 100644 --- a/packages/core/actions/src/actions/proxy-to-repository.ts +++ b/packages/core/actions/src/actions/proxy-to-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Context } from '../index'; import { getRepositoryFromParams } from '../utils'; diff --git a/packages/core/actions/src/actions/remove.ts b/packages/core/actions/src/actions/remove.ts index 8faadc8431..a6ef0d0d31 100644 --- a/packages/core/actions/src/actions/remove.ts +++ b/packages/core/actions/src/actions/remove.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RelationRepositoryActionBuilder } from '../utils'; export const remove = RelationRepositoryActionBuilder('remove'); diff --git a/packages/core/actions/src/actions/set.ts b/packages/core/actions/src/actions/set.ts index 3fcab68131..a8ac81f401 100644 --- a/packages/core/actions/src/actions/set.ts +++ b/packages/core/actions/src/actions/set.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RelationRepositoryActionBuilder } from '../utils'; export const set = RelationRepositoryActionBuilder('set'); diff --git a/packages/core/actions/src/actions/toggle.ts b/packages/core/actions/src/actions/toggle.ts index d0edef1702..cfd98b3538 100644 --- a/packages/core/actions/src/actions/toggle.ts +++ b/packages/core/actions/src/actions/toggle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyRepository } from '@nocobase/database'; import { Context } from '..'; import { getRepositoryFromParams } from '../utils'; diff --git a/packages/core/actions/src/actions/update-or-create.ts b/packages/core/actions/src/actions/update-or-create.ts index b98030390c..744feef573 100644 --- a/packages/core/actions/src/actions/update-or-create.ts +++ b/packages/core/actions/src/actions/update-or-create.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { proxyToRepository } from './proxy-to-repository'; export const updateOrCreate = proxyToRepository(['values', 'filterKeys'], 'updateOrCreate'); diff --git a/packages/core/actions/src/actions/update.ts b/packages/core/actions/src/actions/update.ts index 81dd8fdaab..325f3bb0b6 100644 --- a/packages/core/actions/src/actions/update.ts +++ b/packages/core/actions/src/actions/update.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { proxyToRepository } from './proxy-to-repository'; export const update = proxyToRepository( diff --git a/packages/core/actions/src/constants.ts b/packages/core/actions/src/constants.ts index bf7207acd4..51b2e297b8 100644 --- a/packages/core/actions/src/constants.ts +++ b/packages/core/actions/src/constants.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const DEFAULT_PAGE = 1; export const DEFAULT_PER_PAGE = 20; diff --git a/packages/core/actions/src/index.ts b/packages/core/actions/src/index.ts index 16673b49e7..71057c81fb 100644 --- a/packages/core/actions/src/index.ts +++ b/packages/core/actions/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { Database } from '@nocobase/database'; import { Action } from '@nocobase/resourcer'; diff --git a/packages/core/actions/src/utils.ts b/packages/core/actions/src/utils.ts index c1c1e093e1..6f3dd10218 100644 --- a/packages/core/actions/src/utils.ts +++ b/packages/core/actions/src/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MultipleRelationRepository, Repository } from '@nocobase/database'; import { Context } from '.'; diff --git a/packages/core/app/src/__tests__/commands.test.ts b/packages/core/app/src/__tests__/commands.test.ts index 1a01554b8d..f300d4cbda 100644 --- a/packages/core/app/src/__tests__/commands.test.ts +++ b/packages/core/app/src/__tests__/commands.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/database'; import { uid } from '@nocobase/utils'; import axios from 'axios'; diff --git a/packages/core/app/src/config/cache.ts b/packages/core/app/src/config/cache.ts index 09287bac8e..9564c2455d 100644 --- a/packages/core/app/src/config/cache.ts +++ b/packages/core/app/src/config/cache.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CacheManagerOptions } from '@nocobase/cache'; export const cacheManager = { diff --git a/packages/core/app/src/config/database.ts b/packages/core/app/src/config/database.ts index 4f80bf22a5..562cec0b61 100644 --- a/packages/core/app/src/config/database.ts +++ b/packages/core/app/src/config/database.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseDatabaseOptionsFromEnv } from '@nocobase/database'; export async function parseDatabaseOptions() { diff --git a/packages/core/app/src/config/index.ts b/packages/core/app/src/config/index.ts index f1aa7d72bb..0d87ebed56 100644 --- a/packages/core/app/src/config/index.ts +++ b/packages/core/app/src/config/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cacheManager } from './cache'; import { parseDatabaseOptions } from './database'; import logger from './logger'; diff --git a/packages/core/app/src/config/logger.ts b/packages/core/app/src/config/logger.ts index 3ee8cbb86e..e5706ca017 100644 --- a/packages/core/app/src/config/logger.ts +++ b/packages/core/app/src/config/logger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getLoggerLevel, getLoggerTransport } from '@nocobase/logger'; import { AppLoggerOptions } from '@nocobase/server'; diff --git a/packages/core/app/src/config/plugins.ts b/packages/core/app/src/config/plugins.ts index ea227ae777..e250b9e956 100644 --- a/packages/core/app/src/config/plugins.ts +++ b/packages/core/app/src/config/plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PluginConfiguration } from '@nocobase/server'; export default ['nocobase'] as PluginConfiguration[]; diff --git a/packages/core/app/src/config/resourcer.ts b/packages/core/app/src/config/resourcer.ts index 77cbf8ebcf..d374afd8cd 100644 --- a/packages/core/app/src/config/resourcer.ts +++ b/packages/core/app/src/config/resourcer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { prefix: process.env.API_BASE_PATH, }; diff --git a/packages/core/app/src/config/telemetry.ts b/packages/core/app/src/config/telemetry.ts index 3c946f26fd..4777ff81cb 100644 --- a/packages/core/app/src/config/telemetry.ts +++ b/packages/core/app/src/config/telemetry.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppTelemetryOptions } from '@nocobase/server'; export const telemetry: AppTelemetryOptions = { diff --git a/packages/core/app/src/index.ts b/packages/core/app/src/index.ts index 372e2d56e1..8a775f5b6f 100644 --- a/packages/core/app/src/index.ts +++ b/packages/core/app/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Gateway } from '@nocobase/server'; import { getConfig } from './config'; diff --git a/packages/core/auth/src/__tests__/auth-manager.test.ts b/packages/core/auth/src/__tests__/auth-manager.test.ts index 480d24682d..36444b6825 100644 --- a/packages/core/auth/src/__tests__/auth-manager.test.ts +++ b/packages/core/auth/src/__tests__/auth-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { Auth, AuthManager } from '@nocobase/auth'; import { Model } from '@nocobase/database'; diff --git a/packages/core/auth/src/__tests__/base-auth.test.ts b/packages/core/auth/src/__tests__/base-auth.test.ts index f93ef5170f..23000c92d7 100644 --- a/packages/core/auth/src/__tests__/base-auth.test.ts +++ b/packages/core/auth/src/__tests__/base-auth.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseAuth } from '../base/auth'; import { vi } from 'vitest'; diff --git a/packages/core/auth/src/__tests__/middleware.test.ts b/packages/core/auth/src/__tests__/middleware.test.ts index 90c50e8626..3f7333f07c 100644 --- a/packages/core/auth/src/__tests__/middleware.test.ts +++ b/packages/core/auth/src/__tests__/middleware.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, mockServer } from '@nocobase/test'; import { vi } from 'vitest'; diff --git a/packages/core/auth/src/actions.ts b/packages/core/auth/src/actions.ts index 5fc65e17f9..596f0bbdb2 100644 --- a/packages/core/auth/src/actions.ts +++ b/packages/core/auth/src/actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Handlers } from '@nocobase/resourcer'; diff --git a/packages/core/auth/src/auth-manager.ts b/packages/core/auth/src/auth-manager.ts index 9948eef34d..f7bd79d899 100644 --- a/packages/core/auth/src/auth-manager.ts +++ b/packages/core/auth/src/auth-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Registry } from '@nocobase/utils'; import { Auth, AuthExtend } from './auth'; diff --git a/packages/core/auth/src/auth.ts b/packages/core/auth/src/auth.ts index face37fd49..7c1de54a4e 100644 --- a/packages/core/auth/src/auth.ts +++ b/packages/core/auth/src/auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { Model } from '@nocobase/database'; import { Authenticator } from './auth-manager'; diff --git a/packages/core/auth/src/base/auth.ts b/packages/core/auth/src/base/auth.ts index 1cb4f0389b..e4c0d40bb6 100644 --- a/packages/core/auth/src/base/auth.ts +++ b/packages/core/auth/src/base/auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Model } from '@nocobase/database'; import { Auth, AuthConfig } from '../auth'; import { JwtService } from './jwt-service'; diff --git a/packages/core/auth/src/base/jwt-service.ts b/packages/core/auth/src/base/jwt-service.ts index a4af13f4af..6782cfee7e 100644 --- a/packages/core/auth/src/base/jwt-service.ts +++ b/packages/core/auth/src/base/jwt-service.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import jwt, { SignOptions } from 'jsonwebtoken'; import { ITokenBlacklistService } from './token-blacklist-service'; diff --git a/packages/core/auth/src/base/token-blacklist-service.ts b/packages/core/auth/src/base/token-blacklist-service.ts index f980891976..02a9c5c8f6 100644 --- a/packages/core/auth/src/base/token-blacklist-service.ts +++ b/packages/core/auth/src/base/token-blacklist-service.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface ITokenBlacklistService { has(token: string): Promise; add(values: { token: string; expiration: string | Date }): Promise; diff --git a/packages/core/auth/src/index.ts b/packages/core/auth/src/index.ts index c7c83edca8..6296a1244c 100644 --- a/packages/core/auth/src/index.ts +++ b/packages/core/auth/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './actions'; export * from './auth'; export * from './auth-manager'; diff --git a/packages/core/build/src/build.ts b/packages/core/build/src/build.ts index 3b2f72a985..f9002f99db 100755 --- a/packages/core/build/src/build.ts +++ b/packages/core/build/src/build.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import execa from 'execa'; import chalk from 'chalk'; import path from 'path'; @@ -20,6 +29,7 @@ import { getPackages } from './utils/getPackages'; import { Package } from '@lerna/package'; import { tarPlugin } from './tarPlugin' import { buildEsm } from './buildEsm'; +import { addLicense } from './utils/addlicense'; const BUILD_ERROR = 'build-error'; @@ -136,6 +146,8 @@ export async function buildPackage( await userConfig.afterBuild(log); } + await addLicense(path.join(pkg.location, targetDir), log); + // tar if (hasTar) { await tarPlugin(pkg.location, log); diff --git a/packages/core/build/src/buildCjs.ts b/packages/core/build/src/buildCjs.ts index 5397d43c6b..d8ae78c416 100644 --- a/packages/core/build/src/buildCjs.ts +++ b/packages/core/build/src/buildCjs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { build } from 'tsup'; import fg from 'fast-glob'; import path from 'path'; diff --git a/packages/core/build/src/buildClient.ts b/packages/core/build/src/buildClient.ts index 0dbce15caf..19101af77a 100644 --- a/packages/core/build/src/buildClient.ts +++ b/packages/core/build/src/buildClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import react from '@vitejs/plugin-react'; import fg from 'fast-glob'; import fs from 'fs-extra'; diff --git a/packages/core/build/src/buildDeclaration.ts b/packages/core/build/src/buildDeclaration.ts index fb3ab56347..c9102be470 100644 --- a/packages/core/build/src/buildDeclaration.ts +++ b/packages/core/build/src/buildDeclaration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import gulp from 'gulp'; import gulpTs from 'gulp-typescript'; import path from 'path'; diff --git a/packages/core/build/src/buildEsm.ts b/packages/core/build/src/buildEsm.ts index 1c6591f03e..e0751a6888 100644 --- a/packages/core/build/src/buildEsm.ts +++ b/packages/core/build/src/buildEsm.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { PkgLog, UserConfig, getEnvDefine } from './utils'; diff --git a/packages/core/build/src/buildPlugin.ts b/packages/core/build/src/buildPlugin.ts index a420f42878..20b01bcd46 100644 --- a/packages/core/build/src/buildPlugin.ts +++ b/packages/core/build/src/buildPlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import ncc from '@vercel/ncc'; import react from '@vitejs/plugin-react'; import chalk from 'chalk'; diff --git a/packages/core/build/src/constant.ts b/packages/core/build/src/constant.ts index a19585b488..6da14636a8 100644 --- a/packages/core/build/src/constant.ts +++ b/packages/core/build/src/constant.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Package } from '@lerna/package'; import path from 'path'; diff --git a/packages/core/build/src/index.d.ts b/packages/core/build/src/index.d.ts index a7cf4e15ff..aa3e37c91c 100644 --- a/packages/core/build/src/index.d.ts +++ b/packages/core/build/src/index.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Options as TsupConfig } from 'tsup' import { InlineConfig as ViteConfig } from 'vite' diff --git a/packages/core/build/src/index.ts b/packages/core/build/src/index.ts index eb094a48f5..c880549874 100755 --- a/packages/core/build/src/index.ts +++ b/packages/core/build/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './build'; export * from './utils' diff --git a/packages/core/build/src/tarPlugin.ts b/packages/core/build/src/tarPlugin.ts index 900ab8c30c..a756d3064c 100644 --- a/packages/core/build/src/tarPlugin.ts +++ b/packages/core/build/src/tarPlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import tar from 'tar'; import fg from 'fast-glob'; diff --git a/packages/core/build/src/utils/addlicense.ts b/packages/core/build/src/utils/addlicense.ts new file mode 100644 index 0000000000..89f4d1887b --- /dev/null +++ b/packages/core/build/src/utils/addlicense.ts @@ -0,0 +1,56 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + +import fg from 'fast-glob'; +import fs from 'fs-extra'; +import { PkgLog } from './utils'; + +const commercialLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This program is offered under a commercial license. + * For more information, see + */ +`.trim() +const openSourceLicense = ` +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ +`.trim() + +function getLicenseText(packageDir: string) { + return packageDir.includes('/pro-plugins') ? commercialLicense : openSourceLicense; +} + +function addLicenseToFile(filePath: string | Buffer, licenseText: string) { + const data = fs.readFileSync(filePath, 'utf8'); + + // 添加授权信息到文件内容的顶部 + const newData = licenseText + '\n\n' + data; + + // 将修改后的内容写回文件 + fs.writeFileSync(filePath, newData, 'utf8'); +} + +export async function addLicense(cwd: string, log: PkgLog) { + const stream = fg.globStream('**/*.{js,jsx,ts,tsx}', { cwd, ignore: ['node_modules', '**/*.d.ts'], absolute: true, onlyFiles: true }); + + const licenseText = getLicenseText(cwd); + for await (const filePath of stream) { + addLicenseToFile(filePath, licenseText); + } +} diff --git a/packages/core/build/src/utils/buildPluginUtils.ts b/packages/core/build/src/utils/buildPluginUtils.ts index 1470426b55..7c71418d9c 100644 --- a/packages/core/build/src/utils/buildPluginUtils.ts +++ b/packages/core/build/src/utils/buildPluginUtils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import fs from 'fs'; import chalk from 'chalk'; import { builtinModules } from 'module'; diff --git a/packages/core/build/src/utils/getDepsConfig.ts b/packages/core/build/src/utils/getDepsConfig.ts index af5daedf2f..a219af6717 100644 --- a/packages/core/build/src/utils/getDepsConfig.ts +++ b/packages/core/build/src/utils/getDepsConfig.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; export function winPath(path: string) { diff --git a/packages/core/build/src/utils/getPackages.ts b/packages/core/build/src/utils/getPackages.ts index 75231dfa11..90e9dc0ccc 100644 --- a/packages/core/build/src/utils/getPackages.ts +++ b/packages/core/build/src/utils/getPackages.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Topo from '@hapi/topo'; import fg from 'fast-glob'; import path from 'path'; diff --git a/packages/core/build/src/utils/index.ts b/packages/core/build/src/utils/index.ts index 04bca77e0d..3356949a5c 100755 --- a/packages/core/build/src/utils/index.ts +++ b/packages/core/build/src/utils/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './utils'; diff --git a/packages/core/build/src/utils/utils.ts b/packages/core/build/src/utils/utils.ts index 182ba7881d..4fc83aadbb 100644 --- a/packages/core/build/src/utils/utils.ts +++ b/packages/core/build/src/utils/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import chalk from 'chalk'; import path from 'path'; import fg from 'fast-glob'; diff --git a/packages/core/cache/src/__tests__/bloom-filter.test.ts b/packages/core/cache/src/__tests__/bloom-filter.test.ts index e0739caeb3..7b6753560c 100644 --- a/packages/core/cache/src/__tests__/bloom-filter.test.ts +++ b/packages/core/cache/src/__tests__/bloom-filter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BloomFilter } from '../bloom-filter'; import { CacheManager } from '../cache-manager'; diff --git a/packages/core/cache/src/__tests__/cache-manager.test.ts b/packages/core/cache/src/__tests__/cache-manager.test.ts index 4fceba96c3..8293759c6f 100644 --- a/packages/core/cache/src/__tests__/cache-manager.test.ts +++ b/packages/core/cache/src/__tests__/cache-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Cache } from '../cache'; import { CacheManager } from '../cache-manager'; diff --git a/packages/core/cache/src/__tests__/cache.test.ts b/packages/core/cache/src/__tests__/cache.test.ts index 234a6ef4d2..1970eb259c 100644 --- a/packages/core/cache/src/__tests__/cache.test.ts +++ b/packages/core/cache/src/__tests__/cache.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '../cache'; import { CacheManager } from '../cache-manager'; import lodash from 'lodash'; diff --git a/packages/core/cache/src/bloom-filter/index.ts b/packages/core/cache/src/bloom-filter/index.ts index 8539064709..0b3c5425ae 100644 --- a/packages/core/cache/src/bloom-filter/index.ts +++ b/packages/core/cache/src/bloom-filter/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * @experimental */ diff --git a/packages/core/cache/src/bloom-filter/memory-bloom-filter.ts b/packages/core/cache/src/bloom-filter/memory-bloom-filter.ts index 4e04fb9a53..64792998a0 100644 --- a/packages/core/cache/src/bloom-filter/memory-bloom-filter.ts +++ b/packages/core/cache/src/bloom-filter/memory-bloom-filter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BloomFilter as IBloomFilter } from '.'; import { Cache } from '../cache'; import { BloomFilter } from 'bloom-filters'; diff --git a/packages/core/cache/src/bloom-filter/redis-bloom-filter.ts b/packages/core/cache/src/bloom-filter/redis-bloom-filter.ts index 374f40aa8e..5c9f0b638d 100644 --- a/packages/core/cache/src/bloom-filter/redis-bloom-filter.ts +++ b/packages/core/cache/src/bloom-filter/redis-bloom-filter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { RedisStore } from 'cache-manager-redis-yet'; import { BloomFilter } from '.'; diff --git a/packages/core/cache/src/cache-manager.ts b/packages/core/cache/src/cache-manager.ts index e702ca7c27..e39545b10e 100644 --- a/packages/core/cache/src/cache-manager.ts +++ b/packages/core/cache/src/cache-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FactoryStore, Store, caching, Cache as BasicCache } from 'cache-manager'; import { Cache } from './cache'; import lodash from 'lodash'; diff --git a/packages/core/cache/src/cache.ts b/packages/core/cache/src/cache.ts index 29091b1a4f..cf384d9189 100644 --- a/packages/core/cache/src/cache.ts +++ b/packages/core/cache/src/cache.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache as BasicCache, Milliseconds } from 'cache-manager'; export class Cache { diff --git a/packages/core/cache/src/index.ts b/packages/core/cache/src/index.ts index 61516ad33a..19a72a6809 100644 --- a/packages/core/cache/src/index.ts +++ b/packages/core/cache/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './cache-manager'; export * from './cache'; export * from './bloom-filter'; diff --git a/packages/core/cli/src/cli.js b/packages/core/cli/src/cli.js index 9662194af3..68cf368bf8 100644 --- a/packages/core/cli/src/cli.js +++ b/packages/core/cli/src/cli.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const commands = require('./commands'); diff --git a/packages/core/cli/src/commands/build.js b/packages/core/cli/src/commands/build.js index e0f4dee892..dcef3f2861 100644 --- a/packages/core/cli/src/commands/build.js +++ b/packages/core/cli/src/commands/build.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { resolve } = require('path'); const { Command } = require('commander'); const { run, nodeCheck, isPackageValid, buildIndexHtml } = require('../util'); diff --git a/packages/core/cli/src/commands/clean.js b/packages/core/cli/src/commands/clean.js index ab753740d4..5f8a142c71 100644 --- a/packages/core/cli/src/commands/clean.js +++ b/packages/core/cli/src/commands/clean.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { Command } = require('commander'); const { run, isDev } = require('../util'); diff --git a/packages/core/cli/src/commands/create-nginx-conf.js b/packages/core/cli/src/commands/create-nginx-conf.js index ffacb5f92f..65f065b2d4 100644 --- a/packages/core/cli/src/commands/create-nginx-conf.js +++ b/packages/core/cli/src/commands/create-nginx-conf.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { resolve } = require('path'); const { Command } = require('commander'); const { readFileSync, writeFileSync } = require('fs'); diff --git a/packages/core/cli/src/commands/create-plugin.js b/packages/core/cli/src/commands/create-plugin.js index c5cc34e347..42ba1179b7 100644 --- a/packages/core/cli/src/commands/create-plugin.js +++ b/packages/core/cli/src/commands/create-plugin.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { resolve } = require('path'); const { Command } = require('commander'); const { PluginGenerator } = require('../plugin-generator'); diff --git a/packages/core/cli/src/commands/dev.js b/packages/core/cli/src/commands/dev.js index d486f9eefe..d830f0b3cf 100644 --- a/packages/core/cli/src/commands/dev.js +++ b/packages/core/cli/src/commands/dev.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { Command } = require('commander'); const { runAppCommand, runInstall, run, postCheck, nodeCheck, promptForTs } = require('../util'); diff --git a/packages/core/cli/src/commands/doc.js b/packages/core/cli/src/commands/doc.js index ebd80e97ae..1f09648940 100644 --- a/packages/core/cli/src/commands/doc.js +++ b/packages/core/cli/src/commands/doc.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { resolve, isAbsolute } = require('path'); const { run, isDev } = require('../util'); diff --git a/packages/core/cli/src/commands/e2e.js b/packages/core/cli/src/commands/e2e.js index a2c294db25..72f9ffaa88 100644 --- a/packages/core/cli/src/commands/e2e.js +++ b/packages/core/cli/src/commands/e2e.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { run, isPortReachable } = require('../util'); const { execSync } = require('node:child_process'); diff --git a/packages/core/cli/src/commands/global.js b/packages/core/cli/src/commands/global.js index d3075f4c80..526c22ecfe 100644 --- a/packages/core/cli/src/commands/global.js +++ b/packages/core/cli/src/commands/global.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { run, isDev, isProd, promptForTs } = require('../util'); diff --git a/packages/core/cli/src/commands/index.js b/packages/core/cli/src/commands/index.js index c75d9a2dbe..7f12331d9a 100644 --- a/packages/core/cli/src/commands/index.js +++ b/packages/core/cli/src/commands/index.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { isPackageValid, generateAppDir } = require('../util'); diff --git a/packages/core/cli/src/commands/p-test.js b/packages/core/cli/src/commands/p-test.js index fb5b8a8287..8372dfd494 100644 --- a/packages/core/cli/src/commands/p-test.js +++ b/packages/core/cli/src/commands/p-test.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const execa = require('execa'); const { resolve } = require('path'); const pAll = require('p-all'); diff --git a/packages/core/cli/src/commands/pm2.js b/packages/core/cli/src/commands/pm2.js index 423b04a90b..47e26c18bd 100644 --- a/packages/core/cli/src/commands/pm2.js +++ b/packages/core/cli/src/commands/pm2.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { Command } = require('commander'); const { run, isDev } = require('../util'); diff --git a/packages/core/cli/src/commands/postinstall.js b/packages/core/cli/src/commands/postinstall.js index c9612c7dc1..aa3565865a 100644 --- a/packages/core/cli/src/commands/postinstall.js +++ b/packages/core/cli/src/commands/postinstall.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { run, isDev, isPackageValid, generatePlaywrightPath } = require('../util'); const { resolve } = require('path'); diff --git a/packages/core/cli/src/commands/start.js b/packages/core/cli/src/commands/start.js index 0bacc06f92..4d2ba005cb 100644 --- a/packages/core/cli/src/commands/start.js +++ b/packages/core/cli/src/commands/start.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { isDev, run, postCheck, runInstall, promptForTs } = require('../util'); const { existsSync, rmSync } = require('fs'); diff --git a/packages/core/cli/src/commands/tar.js b/packages/core/cli/src/commands/tar.js index 096748a63c..a5c3a9e8fb 100644 --- a/packages/core/cli/src/commands/tar.js +++ b/packages/core/cli/src/commands/tar.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { resolve } = require('path'); const { Command } = require('commander'); const { run, nodeCheck, isPackageValid } = require('../util'); diff --git a/packages/core/cli/src/commands/test-coverage.js b/packages/core/cli/src/commands/test-coverage.js index 9d08c5ed20..ee6d50695d 100644 --- a/packages/core/cli/src/commands/test-coverage.js +++ b/packages/core/cli/src/commands/test-coverage.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { run } = require('../util'); const fg = require('fast-glob'); diff --git a/packages/core/cli/src/commands/test.js b/packages/core/cli/src/commands/test.js index 2b7b738577..cbdaa8f45c 100644 --- a/packages/core/cli/src/commands/test.js +++ b/packages/core/cli/src/commands/test.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const { Command } = require('commander'); const { run } = require('../util'); const path = require('path'); diff --git a/packages/core/cli/src/commands/umi.js b/packages/core/cli/src/commands/umi.js index de04b72d6c..118df5bf26 100644 --- a/packages/core/cli/src/commands/umi.js +++ b/packages/core/cli/src/commands/umi.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { Command } = require('commander'); const { run, isDev } = require('../util'); diff --git a/packages/core/cli/src/commands/upgrade.js b/packages/core/cli/src/commands/upgrade.js index 9cd0ab317a..0fa9eeaee3 100644 --- a/packages/core/cli/src/commands/upgrade.js +++ b/packages/core/cli/src/commands/upgrade.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { Command } = require('commander'); const { resolve } = require('path'); diff --git a/packages/core/cli/src/index.js b/packages/core/cli/src/index.js index 85265d334e..8f1d20b202 100644 --- a/packages/core/cli/src/index.js +++ b/packages/core/cli/src/index.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const util = require('./util'); module.exports = { diff --git a/packages/core/cli/src/plugin-generator.js b/packages/core/cli/src/plugin-generator.js index b6097fca1a..a1d77c28eb 100644 --- a/packages/core/cli/src/plugin-generator.js +++ b/packages/core/cli/src/plugin-generator.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { existsSync } = require('fs'); const { join, resolve } = require('path'); diff --git a/packages/core/cli/src/util.js b/packages/core/cli/src/util.js index 52dc2c3ff8..1cc284ec67 100644 --- a/packages/core/cli/src/util.js +++ b/packages/core/cli/src/util.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const net = require('net'); const chalk = require('chalk'); const execa = require('execa'); diff --git a/packages/core/client/src/acl/ACLProvider.tsx b/packages/core/client/src/acl/ACLProvider.tsx index c3e2913ac9..e5eeda36ca 100644 --- a/packages/core/client/src/acl/ACLProvider.tsx +++ b/packages/core/client/src/acl/ACLProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { Schema, useField, useFieldSchema } from '@formily/react'; import { omit } from 'lodash'; diff --git a/packages/core/client/src/acl/ACLShortcut.tsx b/packages/core/client/src/acl/ACLShortcut.tsx index 0ba8e1df90..942a171f00 100644 --- a/packages/core/client/src/acl/ACLShortcut.tsx +++ b/packages/core/client/src/acl/ACLShortcut.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { Card } from 'antd'; diff --git a/packages/core/client/src/acl/Configuration/ConfigureCenter.tsx b/packages/core/client/src/acl/Configuration/ConfigureCenter.tsx index 1b46c83a1f..e16349098d 100644 --- a/packages/core/client/src/acl/Configuration/ConfigureCenter.tsx +++ b/packages/core/client/src/acl/Configuration/ConfigureCenter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Checkbox, message, Table } from 'antd'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/acl/Configuration/MenuConfigure.tsx b/packages/core/client/src/acl/Configuration/MenuConfigure.tsx index 4f64db6d62..c300460c43 100644 --- a/packages/core/client/src/acl/Configuration/MenuConfigure.tsx +++ b/packages/core/client/src/acl/Configuration/MenuConfigure.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Checkbox, message, Table } from 'antd'; import { uniq } from 'lodash'; import React, { useState } from 'react'; diff --git a/packages/core/client/src/acl/Configuration/MenuItemsProvider.tsx b/packages/core/client/src/acl/Configuration/MenuItemsProvider.tsx index 5a12102736..88fe283e93 100644 --- a/packages/core/client/src/acl/Configuration/MenuItemsProvider.tsx +++ b/packages/core/client/src/acl/Configuration/MenuItemsProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; import { useRequest } from '../../api-client'; diff --git a/packages/core/client/src/acl/Configuration/PermisionProvider.tsx b/packages/core/client/src/acl/Configuration/PermisionProvider.tsx index fdaf51b6c7..4c9578338e 100644 --- a/packages/core/client/src/acl/Configuration/PermisionProvider.tsx +++ b/packages/core/client/src/acl/Configuration/PermisionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } from 'antd'; import React, { createContext, useContext, useState } from 'react'; diff --git a/packages/core/client/src/acl/Configuration/RoleConfigure.tsx b/packages/core/client/src/acl/Configuration/RoleConfigure.tsx index b793971f51..57e2778f10 100644 --- a/packages/core/client/src/acl/Configuration/RoleConfigure.tsx +++ b/packages/core/client/src/acl/Configuration/RoleConfigure.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFieldChange } from '@formily/core'; import { connect } from '@formily/react'; import { Checkbox } from 'antd'; diff --git a/packages/core/client/src/acl/Configuration/RoleTable.tsx b/packages/core/client/src/acl/Configuration/RoleTable.tsx index e9b2adf100..723d231adb 100644 --- a/packages/core/client/src/acl/Configuration/RoleTable.tsx +++ b/packages/core/client/src/acl/Configuration/RoleTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; import { useRequest } from '../../api-client'; diff --git a/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx b/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx index ffd18139ca..49def3a947 100644 --- a/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx +++ b/packages/core/client/src/acl/Configuration/RolesResourcesActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, FormLayout } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; import { connect, useField, useForm } from '@formily/react'; diff --git a/packages/core/client/src/acl/Configuration/ScopeSelect.tsx b/packages/core/client/src/acl/Configuration/ScopeSelect.tsx index 1d4c6e4847..667b8704a2 100644 --- a/packages/core/client/src/acl/Configuration/ScopeSelect.tsx +++ b/packages/core/client/src/acl/Configuration/ScopeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent } from '../../schema-component'; diff --git a/packages/core/client/src/acl/Configuration/StrategyActions.tsx b/packages/core/client/src/acl/Configuration/StrategyActions.tsx index 8dc9cbc88e..ace50dfe41 100644 --- a/packages/core/client/src/acl/Configuration/StrategyActions.tsx +++ b/packages/core/client/src/acl/Configuration/StrategyActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { connect, useField } from '@formily/react'; import { Checkbox, Select, Table, Tag } from 'antd'; diff --git a/packages/core/client/src/acl/Configuration/index.tsx b/packages/core/client/src/acl/Configuration/index.tsx index 391deb24b8..c10b063818 100644 --- a/packages/core/client/src/acl/Configuration/index.tsx +++ b/packages/core/client/src/acl/Configuration/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { MenuConfigure } from './MenuConfigure'; export { RoleConfigure } from './RoleConfigure'; export { RolesResourcesActions } from './RolesResourcesActions'; diff --git a/packages/core/client/src/acl/Configuration/schemas/roles.ts b/packages/core/client/src/acl/Configuration/schemas/roles.ts index cb78b2cf3f..5bf164ed0b 100644 --- a/packages/core/client/src/acl/Configuration/schemas/roles.ts +++ b/packages/core/client/src/acl/Configuration/schemas/roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import pick from 'lodash/pick'; diff --git a/packages/core/client/src/acl/Configuration/schemas/scopes.ts b/packages/core/client/src/acl/Configuration/schemas/scopes.ts index 40ac7a4cd6..0f55334987 100644 --- a/packages/core/client/src/acl/Configuration/schemas/scopes.ts +++ b/packages/core/client/src/acl/Configuration/schemas/scopes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { useContext, useEffect } from 'react'; import { useFormBlockContext } from '../../../block-provider'; diff --git a/packages/core/client/src/acl/Configuration/schemas/useRoleResourceValues.ts b/packages/core/client/src/acl/Configuration/schemas/useRoleResourceValues.ts index 80d989c039..d026eaced7 100644 --- a/packages/core/client/src/acl/Configuration/schemas/useRoleResourceValues.ts +++ b/packages/core/client/src/acl/Configuration/schemas/useRoleResourceValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect } from 'react'; import { useActionContext, useRecord, useRequest } from '../../../'; diff --git a/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts b/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts index 342b1a7259..ad81875b0b 100644 --- a/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts +++ b/packages/core/client/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '../../../'; diff --git a/packages/core/client/src/acl/index.ts b/packages/core/client/src/acl/index.ts index fe86e28947..8545c67934 100644 --- a/packages/core/client/src/acl/index.ts +++ b/packages/core/client/src/acl/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ACLProvider'; export * from './ACLShortcut'; export * from './Configuration'; diff --git a/packages/core/client/src/acl/style.ts b/packages/core/client/src/acl/style.ts index c4e9179c39..533dc4532b 100644 --- a/packages/core/client/src/acl/style.ts +++ b/packages/core/client/src/acl/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ css }) => { diff --git a/packages/core/client/src/antd-config-provider/index.tsx b/packages/core/client/src/antd-config-provider/index.tsx index c6bf4bdc56..9708e3e3a3 100644 --- a/packages/core/client/src/antd-config-provider/index.tsx +++ b/packages/core/client/src/antd-config-provider/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjs } from '@nocobase/utils/client'; import { ConfigProvider, Spin } from 'antd'; import React, { createContext, useContext } from 'react'; diff --git a/packages/core/client/src/antd-config-provider/loadConstrueLocale.ts b/packages/core/client/src/antd-config-provider/loadConstrueLocale.ts index 1080536d13..5b2137f9cc 100644 --- a/packages/core/client/src/antd-config-provider/loadConstrueLocale.ts +++ b/packages/core/client/src/antd-config-provider/loadConstrueLocale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import cronstrue from 'cronstrue'; class CronstrueLocale { diff --git a/packages/core/client/src/api-client/APIClient.ts b/packages/core/client/src/api-client/APIClient.ts index c793977026..5c6993aa3f 100644 --- a/packages/core/client/src/api-client/APIClient.ts +++ b/packages/core/client/src/api-client/APIClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient as APIClientSDK, getSubAppName } from '@nocobase/sdk'; import { Result } from 'ahooks/es/useRequest/src/types'; import { notification } from 'antd'; diff --git a/packages/core/client/src/api-client/APIClientProvider.tsx b/packages/core/client/src/api-client/APIClientProvider.tsx index 043b5236d9..f4ef49cba9 100644 --- a/packages/core/client/src/api-client/APIClientProvider.tsx +++ b/packages/core/client/src/api-client/APIClientProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ReactNode } from 'react'; import { APIClient } from './APIClient'; import { APIClientContext } from './context'; diff --git a/packages/core/client/src/api-client/__tests__/APIClient.test.tsx b/packages/core/client/src/api-client/__tests__/APIClient.test.tsx index 62ab42d2cd..47a3f74379 100644 --- a/packages/core/client/src/api-client/__tests__/APIClient.test.tsx +++ b/packages/core/client/src/api-client/__tests__/APIClient.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import axios from 'axios'; import { APIClient } from '../APIClient'; diff --git a/packages/core/client/src/api-client/context.ts b/packages/core/client/src/api-client/context.ts index 1e70ac3ca5..8ece39ed21 100644 --- a/packages/core/client/src/api-client/context.ts +++ b/packages/core/client/src/api-client/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; import { APIClient } from './APIClient'; diff --git a/packages/core/client/src/api-client/demos/demo1.tsx b/packages/core/client/src/api-client/demos/demo1.tsx index dbc18123d2..45531bf26e 100644 --- a/packages/core/client/src/api-client/demos/demo1.tsx +++ b/packages/core/client/src/api-client/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient, APIClientProvider, compose, useRequest } from '@nocobase/client'; import MockAdapter from 'axios-mock-adapter'; import React from 'react'; diff --git a/packages/core/client/src/api-client/demos/demo2.tsx b/packages/core/client/src/api-client/demos/demo2.tsx index 823a5dbb41..322cde01c1 100644 --- a/packages/core/client/src/api-client/demos/demo2.tsx +++ b/packages/core/client/src/api-client/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient, APIClientProvider, compose, useRequest } from '@nocobase/client'; import MockAdapter from 'axios-mock-adapter'; import React from 'react'; diff --git a/packages/core/client/src/api-client/demos/demo3.tsx b/packages/core/client/src/api-client/demos/demo3.tsx index d27bf0470f..44d96dcb48 100644 --- a/packages/core/client/src/api-client/demos/demo3.tsx +++ b/packages/core/client/src/api-client/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { APIClient, APIClientProvider, useAPIClient, useRequest } from '@nocobase/client'; import { Button, Input, Space, Table } from 'antd'; diff --git a/packages/core/client/src/api-client/hooks/assign.ts b/packages/core/client/src/api-client/hooks/assign.ts index 6dd279c6a6..94bd5e826b 100644 --- a/packages/core/client/src/api-client/hooks/assign.ts +++ b/packages/core/client/src/api-client/hooks/assign.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isPlainObject } from '@nocobase/utils/client'; import deepmerge from 'deepmerge'; import uniq from 'lodash/uniq'; diff --git a/packages/core/client/src/api-client/hooks/index.ts b/packages/core/client/src/api-client/hooks/index.ts index 078c898861..d14f031dca 100644 --- a/packages/core/client/src/api-client/hooks/index.ts +++ b/packages/core/client/src/api-client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useAPIClient'; export * from './useRequest'; export * from './useResource'; diff --git a/packages/core/client/src/api-client/hooks/useAPIClient.ts b/packages/core/client/src/api-client/hooks/useAPIClient.ts index d0566beb86..202bc80e82 100644 --- a/packages/core/client/src/api-client/hooks/useAPIClient.ts +++ b/packages/core/client/src/api-client/hooks/useAPIClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import { APIClientContext } from '../context'; diff --git a/packages/core/client/src/api-client/hooks/useRequest.ts b/packages/core/client/src/api-client/hooks/useRequest.ts index 04bd8ea410..a6fe2f4d00 100644 --- a/packages/core/client/src/api-client/hooks/useRequest.ts +++ b/packages/core/client/src/api-client/hooks/useRequest.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge } from '@formily/shared'; import { useRequest as useReq, useSetState } from 'ahooks'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; diff --git a/packages/core/client/src/api-client/hooks/useResource.ts b/packages/core/client/src/api-client/hooks/useResource.ts index 9f24c66b12..bea60b1e25 100644 --- a/packages/core/client/src/api-client/hooks/useResource.ts +++ b/packages/core/client/src/api-client/hooks/useResource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient } from './useAPIClient'; export function useResource(name: string, of?: string | number) { diff --git a/packages/core/client/src/api-client/index.tsx b/packages/core/client/src/api-client/index.tsx index 5188e9add0..ffca304f97 100644 --- a/packages/core/client/src/api-client/index.tsx +++ b/packages/core/client/src/api-client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './hooks'; export * from './APIClient'; export * from './APIClientProvider'; diff --git a/packages/core/client/src/appInfo/CurrentAppInfoProvider.tsx b/packages/core/client/src/appInfo/CurrentAppInfoProvider.tsx index 41393dc25d..ea1ed3aea1 100644 --- a/packages/core/client/src/appInfo/CurrentAppInfoProvider.tsx +++ b/packages/core/client/src/appInfo/CurrentAppInfoProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext } from 'react'; import { useRequest } from '../api-client'; import { useAppSpin } from '../application/hooks/useAppSpin'; diff --git a/packages/core/client/src/appInfo/__tests__/CurrentAppInfoProvider.test.tsx b/packages/core/client/src/appInfo/__tests__/CurrentAppInfoProvider.test.tsx index da37d9cfa9..997b3d0046 100644 --- a/packages/core/client/src/appInfo/__tests__/CurrentAppInfoProvider.test.tsx +++ b/packages/core/client/src/appInfo/__tests__/CurrentAppInfoProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderHookWithApp, waitFor } from '@nocobase/test/client'; import { CurrentAppInfoProvider, useCurrentAppInfo } from '@nocobase/client'; diff --git a/packages/core/client/src/appInfo/index.ts b/packages/core/client/src/appInfo/index.ts index 47a456a552..7294aa0cb6 100644 --- a/packages/core/client/src/appInfo/index.ts +++ b/packages/core/client/src/appInfo/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CurrentAppInfoProvider'; diff --git a/packages/core/client/src/application/AppSchemaComponentProvider.tsx b/packages/core/client/src/application/AppSchemaComponentProvider.tsx index 2576d3beb7..a028b492b7 100644 --- a/packages/core/client/src/application/AppSchemaComponentProvider.tsx +++ b/packages/core/client/src/application/AppSchemaComponentProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useLocalStorageState } from 'ahooks'; import React from 'react'; import { SchemaComponentProvider } from '../schema-component/core'; diff --git a/packages/core/client/src/application/Application.tsx b/packages/core/client/src/application/Application.tsx index cc2c70f7e4..188b9eb494 100644 --- a/packages/core/client/src/application/Application.tsx +++ b/packages/core/client/src/application/Application.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { define, observable } from '@formily/reactive'; import { APIClientOptions, getSubAppName } from '@nocobase/sdk'; import { i18n as i18next } from 'i18next'; diff --git a/packages/core/client/src/application/Plugin.ts b/packages/core/client/src/application/Plugin.ts index 61c9836ced..56f0f225ac 100644 --- a/packages/core/client/src/application/Plugin.ts +++ b/packages/core/client/src/application/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TFuncKey, TOptions } from 'i18next'; import type { Application } from './Application'; diff --git a/packages/core/client/src/application/PluginManager.ts b/packages/core/client/src/application/PluginManager.ts index 3daa9c4c3c..a1a7664c87 100644 --- a/packages/core/client/src/application/PluginManager.ts +++ b/packages/core/client/src/application/PluginManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Application } from './Application'; import type { Plugin } from './Plugin'; import { getPlugins } from './utils/remotePlugins'; diff --git a/packages/core/client/src/application/PluginSettingsManager.ts b/packages/core/client/src/application/PluginSettingsManager.ts index 7c8a7eb1f7..22e9f6a40f 100644 --- a/packages/core/client/src/application/PluginSettingsManager.ts +++ b/packages/core/client/src/application/PluginSettingsManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { set } from 'lodash'; import React, { createElement } from 'react'; import { Outlet } from 'react-router-dom'; diff --git a/packages/core/client/src/application/RouterManager.tsx b/packages/core/client/src/application/RouterManager.tsx index 74989567db..fbe1a334f8 100644 --- a/packages/core/client/src/application/RouterManager.tsx +++ b/packages/core/client/src/application/RouterManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { get, set } from 'lodash'; import React, { ComponentType } from 'react'; import { diff --git a/packages/core/client/src/application/WebSocketClient.ts b/packages/core/client/src/application/WebSocketClient.ts index 448dab29d6..2e00543765 100644 --- a/packages/core/client/src/application/WebSocketClient.ts +++ b/packages/core/client/src/application/WebSocketClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { define, observable } from '@formily/reactive'; import { getSubAppName } from '@nocobase/sdk'; import { Application } from './Application'; diff --git a/packages/core/client/src/application/__tests__/Application.test.tsx b/packages/core/client/src/application/__tests__/Application.test.tsx index d9fe6919db..e44217888e 100644 --- a/packages/core/client/src/application/__tests__/Application.test.tsx +++ b/packages/core/client/src/application/__tests__/Application.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, sleep, userEvent, waitFor } from '@nocobase/test/client'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; diff --git a/packages/core/client/src/application/__tests__/CompatibleSchemaInitializer.test.ts b/packages/core/client/src/application/__tests__/CompatibleSchemaInitializer.test.ts index 2c16ec0819..32060da1f5 100644 --- a/packages/core/client/src/application/__tests__/CompatibleSchemaInitializer.test.ts +++ b/packages/core/client/src/application/__tests__/CompatibleSchemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, isInitializersSame } from '../schema-initializer/CompatibleSchemaInitializer'; describe('CompatibleSchemaInitializer', () => { diff --git a/packages/core/client/src/application/__tests__/Plugin.test.ts b/packages/core/client/src/application/__tests__/Plugin.test.ts index e870a323cc..185fd2e126 100644 --- a/packages/core/client/src/application/__tests__/Plugin.test.ts +++ b/packages/core/client/src/application/__tests__/Plugin.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import { Application } from '../Application'; diff --git a/packages/core/client/src/application/__tests__/PluginSettingsManager.test.ts b/packages/core/client/src/application/__tests__/PluginSettingsManager.test.ts index 3c846e07d3..d431f7ce38 100644 --- a/packages/core/client/src/application/__tests__/PluginSettingsManager.test.ts +++ b/packages/core/client/src/application/__tests__/PluginSettingsManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '../Application'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; diff --git a/packages/core/client/src/application/__tests__/RouterManager.test.tsx b/packages/core/client/src/application/__tests__/RouterManager.test.tsx index 542dd40ca5..2ec1850a8e 100644 --- a/packages/core/client/src/application/__tests__/RouterManager.test.tsx +++ b/packages/core/client/src/application/__tests__/RouterManager.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, sleep, waitFor } from '@nocobase/test/client'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; diff --git a/packages/core/client/src/application/__tests__/SchemaInitializer.test.ts b/packages/core/client/src/application/__tests__/SchemaInitializer.test.ts index b1591be89c..e16ed381bd 100644 --- a/packages/core/client/src/application/__tests__/SchemaInitializer.test.ts +++ b/packages/core/client/src/application/__tests__/SchemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '../schema-initializer/SchemaInitializer'; describe('SchemaInitializer', () => { diff --git a/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx b/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx index ce51b2eab1..b1a67a31fa 100644 --- a/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx +++ b/packages/core/client/src/application/__tests__/SchemaToolbar.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { fireEvent, render, screen, waitFor } from '@nocobase/test/client'; import { SchemaToolbarProvider, useSchemaToolbar, useSchemaToolbarRender } from '../schema-toolbar'; diff --git a/packages/core/client/src/application/__tests__/hoc/withDynamicSchemaProps.test.tsx b/packages/core/client/src/application/__tests__/hoc/withDynamicSchemaProps.test.tsx index 2503da7e94..7652b77e68 100644 --- a/packages/core/client/src/application/__tests__/hoc/withDynamicSchemaProps.test.tsx +++ b/packages/core/client/src/application/__tests__/hoc/withDynamicSchemaProps.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import { SchemaComponent, SchemaComponentProvider } from '../../../schema-component'; diff --git a/packages/core/client/src/application/__tests__/hooks.test.tsx b/packages/core/client/src/application/__tests__/hooks.test.tsx index 64e749a68c..a868832f1e 100644 --- a/packages/core/client/src/application/__tests__/hooks.test.tsx +++ b/packages/core/client/src/application/__tests__/hooks.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, sleep, screen, waitFor } from '@nocobase/test/client'; import React from 'react'; import { describe } from 'vitest'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializer.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializer.test.tsx index 751e4c3e94..882ccddef2 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializer.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializer.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '@nocobase/client'; describe('SchemaInitializer', () => { diff --git a/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializerManager.test.ts b/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializerManager.test.ts index af464a2c1b..3054e3e53f 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializerManager.test.ts +++ b/packages/core/client/src/application/__tests__/schema-initializer/SchemaInitializerManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer, Application } from '@nocobase/client'; describe('SchemaInitializerManager', () => { diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerActionModal.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerActionModal.test.tsx index 60154ca194..70f7ce5223 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerActionModal.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerActionModal.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerChildren.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerChildren.test.tsx index d3dc2288b6..8bf59984d6 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerChildren.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerChildren.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent } from '@nocobase/test/client'; import { SchemaInitializerItem, useSchemaInitializerItem } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerDivider.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerDivider.test.tsx index 6d57fd724c..8612d244fa 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerDivider.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerDivider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen } from '@nocobase/test/client'; import { createAndHover } from './fixtures/createAppAndHover'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItem.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItem.test.tsx index 6d8ec926a7..6760d501e0 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItem.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItem.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, sleep, act } from '@nocobase/test/client'; import { SchemaInitializerItem } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItemGroup.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItemGroup.test.tsx index dcb1390ab5..16fff8f62b 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItemGroup.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerItemGroup.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen } from '@nocobase/test/client'; import { SchemaInitializerItemGroup } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSubMenu.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSubMenu.test.tsx index f22e1de00e..bb0f3a5a1f 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSubMenu.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSubMenu.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, waitFor } from '@nocobase/test/client'; import { SchemaInitializerSubMenu } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSwitch.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSwitch.test.tsx index d6c93b329f..2b71337917 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSwitch.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/SchemaInitializerSwitch.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, waitFor } from '@nocobase/test/client'; import { useSchemaInitializer, useCurrentSchema, SchemaInitializerSwitch } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/components/fixtures/createAppAndHover.tsx b/packages/core/client/src/application/__tests__/schema-initializer/components/fixtures/createAppAndHover.tsx index 0a8095fb94..376a8ba85a 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/components/fixtures/createAppAndHover.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/components/fixtures/createAppAndHover.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, waitFor } from '@nocobase/test/client'; import { createApp } from '../../fixures/createApp'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/fixures/createApp.tsx b/packages/core/client/src/application/__tests__/schema-initializer/fixures/createApp.tsx index feae708353..c38c9d5c15 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/fixures/createApp.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/fixures/createApp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { observer } from '@formily/reactive-react'; import { renderApp } from '@nocobase/test/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useAriaAttributeOfMenuItem.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useAriaAttributeOfMenuItem.test.tsx index dbc5712ad7..dbdeab32eb 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useAriaAttributeOfMenuItem.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useAriaAttributeOfMenuItem.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderHook } from '@testing-library/react-hooks'; import { useAriaAttributeOfMenuItem, SchemaInitializerMenuProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useGetSchemaInitializerMenuItems.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useGetSchemaInitializerMenuItems.test.tsx index bc7ed48a44..57a9e9d496 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useGetSchemaInitializerMenuItems.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useGetSchemaInitializerMenuItems.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderHook, act } from '@testing-library/react-hooks'; import { useGetSchemaInitializerMenuItems, useSchemaInitializerMenuItems } from '@nocobase/client'; // Adjust the import according to the file structure import React from 'react'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useSchemaInitializerRender.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useSchemaInitializerRender.test.tsx index e9aa449b6d..0a0cc71722 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/hooks/useSchemaInitializerRender.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/hooks/useSchemaInitializerRender.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, SchemaInitializer, useSchemaInitializerRender } from '@nocobase/client'; import { render, waitFor, screen } from '@nocobase/test/client'; diff --git a/packages/core/client/src/application/__tests__/schema-initializer/withInitializer.test.tsx b/packages/core/client/src/application/__tests__/schema-initializer/withInitializer.test.tsx index 6716fc0716..ad59ef7471 100644 --- a/packages/core/client/src/application/__tests__/schema-initializer/withInitializer.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-initializer/withInitializer.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, userEvent, sleep, act } from '@nocobase/test/client'; import { ISchema } from '@formily/json-schema'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/application/__tests__/schema-settings/SchemaSettings.test.tsx b/packages/core/client/src/application/__tests__/schema-settings/SchemaSettings.test.tsx index af1c9fdaa6..95be9cd9ae 100644 --- a/packages/core/client/src/application/__tests__/schema-settings/SchemaSettings.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-settings/SchemaSettings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaSettings } from '@nocobase/client'; describe('SchemaSettings', () => { diff --git a/packages/core/client/src/application/__tests__/schema-settings/SchemaSettingsManager.test.ts b/packages/core/client/src/application/__tests__/schema-settings/SchemaSettingsManager.test.ts index f94efd8345..20fd40026b 100644 --- a/packages/core/client/src/application/__tests__/schema-settings/SchemaSettingsManager.test.ts +++ b/packages/core/client/src/application/__tests__/schema-settings/SchemaSettingsManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaSettings, Application } from '@nocobase/client'; describe('SchemaSettingsManager', () => { diff --git a/packages/core/client/src/application/__tests__/schema-settings/components/SchemaSettingsChildren.test.tsx b/packages/core/client/src/application/__tests__/schema-settings/components/SchemaSettingsChildren.test.tsx index 5f5735bdb9..37013e8813 100644 --- a/packages/core/client/src/application/__tests__/schema-settings/components/SchemaSettingsChildren.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-settings/components/SchemaSettingsChildren.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { screen, userEvent } from '@nocobase/test/client'; import { SchemaInitializerItem, useSchemaSettingsItem } from '@nocobase/client'; diff --git a/packages/core/client/src/application/__tests__/schema-settings/components/fixtures/createAppAndHover.tsx b/packages/core/client/src/application/__tests__/schema-settings/components/fixtures/createAppAndHover.tsx index c44cc4e2a9..d6413e343a 100644 --- a/packages/core/client/src/application/__tests__/schema-settings/components/fixtures/createAppAndHover.tsx +++ b/packages/core/client/src/application/__tests__/schema-settings/components/fixtures/createAppAndHover.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { screen, userEvent, sleep, act, render, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/application/__tests__/schema-settings/hooks/useSchemaSettingsRender.test.tsx b/packages/core/client/src/application/__tests__/schema-settings/hooks/useSchemaSettingsRender.test.tsx index 89e00fccf6..630f29c163 100644 --- a/packages/core/client/src/application/__tests__/schema-settings/hooks/useSchemaSettingsRender.test.tsx +++ b/packages/core/client/src/application/__tests__/schema-settings/hooks/useSchemaSettingsRender.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, SchemaSettings, useSchemaSettingsRender } from '@nocobase/client'; import { render, screen, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/application/__tests__/utils.test.tsx b/packages/core/client/src/application/__tests__/utils.test.tsx index e636cb846b..c1c40b7786 100644 --- a/packages/core/client/src/application/__tests__/utils.test.tsx +++ b/packages/core/client/src/application/__tests__/utils.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen } from '@nocobase/test/client'; import React from 'react'; import { describe } from 'vitest'; 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 18ca15cb34..5466d6ce02 100644 --- a/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts +++ b/packages/core/client/src/application/__tests__/utils/remotePlugins.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../Plugin'; import { configRequirejs, diff --git a/packages/core/client/src/application/components/AppComponent.tsx b/packages/core/client/src/application/components/AppComponent.tsx index 09c21123b5..a32722601a 100644 --- a/packages/core/client/src/application/components/AppComponent.tsx +++ b/packages/core/client/src/application/components/AppComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/reactive-react'; import React, { FC, useCallback, useEffect } from 'react'; import { ErrorBoundary } from 'react-error-boundary'; diff --git a/packages/core/client/src/application/components/BlankComponent.tsx b/packages/core/client/src/application/components/BlankComponent.tsx index 535f64eb1c..f3d40059d2 100644 --- a/packages/core/client/src/application/components/BlankComponent.tsx +++ b/packages/core/client/src/application/components/BlankComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode } from 'react'; export const BlankComponent: FC<{ children?: ReactNode }> = ({ children }) => <>{children}; diff --git a/packages/core/client/src/application/components/MainComponent.tsx b/packages/core/client/src/application/components/MainComponent.tsx index 0749c31fdd..1b51f0d5b0 100644 --- a/packages/core/client/src/application/components/MainComponent.tsx +++ b/packages/core/client/src/application/components/MainComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useApp } from '../hooks'; diff --git a/packages/core/client/src/application/components/RouterContextCleaner.tsx b/packages/core/client/src/application/components/RouterContextCleaner.tsx index 646e10c744..46028a6a8b 100644 --- a/packages/core/client/src/application/components/RouterContextCleaner.tsx +++ b/packages/core/client/src/application/components/RouterContextCleaner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode } from 'react'; import { UNSAFE_LocationContext, UNSAFE_RouteContext } from 'react-router-dom'; diff --git a/packages/core/client/src/application/components/defaultComponents.tsx b/packages/core/client/src/application/components/defaultComponents.tsx index 9be8c2a488..f011954c89 100644 --- a/packages/core/client/src/application/components/defaultComponents.tsx +++ b/packages/core/client/src/application/components/defaultComponents.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { MainComponent } from './MainComponent'; diff --git a/packages/core/client/src/application/components/index.ts b/packages/core/client/src/application/components/index.ts index 8810a1ee45..b323ae8224 100644 --- a/packages/core/client/src/application/components/index.ts +++ b/packages/core/client/src/application/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AppComponent'; export * from './BlankComponent'; export * from './defaultComponents'; diff --git a/packages/core/client/src/application/context.ts b/packages/core/client/src/application/context.ts index ada436a8e8..ec212a79ee 100644 --- a/packages/core/client/src/application/context.ts +++ b/packages/core/client/src/application/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; import { Application } from './Application'; diff --git a/packages/core/client/src/application/demos/demo1.tsx b/packages/core/client/src/application/demos/demo1.tsx index e724d1201d..5081d116e9 100644 --- a/packages/core/client/src/application/demos/demo1.tsx +++ b/packages/core/client/src/application/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Plugin } from '@nocobase/client'; import React, { FC } from 'react'; import { Link, Outlet, useLocation } from 'react-router-dom'; diff --git a/packages/core/client/src/application/demos/demo2.tsx b/packages/core/client/src/application/demos/demo2.tsx index 50f7a816b0..3d7a8734ee 100644 --- a/packages/core/client/src/application/demos/demo2.tsx +++ b/packages/core/client/src/application/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Plugin, RouterManager, useApp } from '@nocobase/client'; import React, { useMemo } from 'react'; import { Link, Navigate, Outlet, useParams } from 'react-router-dom'; diff --git a/packages/core/client/src/application/demos/demo3.tsx b/packages/core/client/src/application/demos/demo3.tsx index 4368b963d4..7b37ec34eb 100644 --- a/packages/core/client/src/application/demos/demo3.tsx +++ b/packages/core/client/src/application/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, NocoBaseBuildInPlugin } from '@nocobase/client'; export const app = new Application({ diff --git a/packages/core/client/src/application/hoc/index.ts b/packages/core/client/src/application/hoc/index.ts index 94568d10d5..7e0130d3cf 100644 --- a/packages/core/client/src/application/hoc/index.ts +++ b/packages/core/client/src/application/hoc/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './withDynamicSchemaProps'; diff --git a/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx b/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx index 2125216614..6c653e8c88 100644 --- a/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx +++ b/packages/core/client/src/application/hoc/withDynamicSchemaProps.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useExpressionScope } from '@formily/react'; import React, { ComponentType, useMemo } from 'react'; import { useDesignable } from '../../schema-component'; diff --git a/packages/core/client/src/application/hooks/index.ts b/packages/core/client/src/application/hooks/index.ts index dbb36261e8..2f22a369a1 100644 --- a/packages/core/client/src/application/hooks/index.ts +++ b/packages/core/client/src/application/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useApp'; export * from './usePlugin'; export * from './useRouter'; diff --git a/packages/core/client/src/application/hooks/useApp.ts b/packages/core/client/src/application/hooks/useApp.ts index 43107dcda5..559b6b814c 100644 --- a/packages/core/client/src/application/hooks/useApp.ts +++ b/packages/core/client/src/application/hooks/useApp.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import type { Application } from '../Application'; import { ApplicationContext } from '../context'; diff --git a/packages/core/client/src/application/hooks/useAppSpin.ts b/packages/core/client/src/application/hooks/useAppSpin.ts index 8160735e60..19d81ae0c4 100644 --- a/packages/core/client/src/application/hooks/useAppSpin.ts +++ b/packages/core/client/src/application/hooks/useAppSpin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } from 'antd'; import React from 'react'; import { useApp } from './useApp'; diff --git a/packages/core/client/src/application/hooks/usePlugin.ts b/packages/core/client/src/application/hooks/usePlugin.ts index 8b3e63df41..a890131bf7 100644 --- a/packages/core/client/src/application/hooks/usePlugin.ts +++ b/packages/core/client/src/application/hooks/usePlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../Plugin'; import { useApp } from './useApp'; diff --git a/packages/core/client/src/application/hooks/useRouter.ts b/packages/core/client/src/application/hooks/useRouter.ts index 4b7b77f651..3b808ad778 100644 --- a/packages/core/client/src/application/hooks/useRouter.ts +++ b/packages/core/client/src/application/hooks/useRouter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useApp } from './useApp'; export const useRouter = () => { diff --git a/packages/core/client/src/application/index.ts b/packages/core/client/src/application/index.ts index 55afe76578..6b8e923137 100644 --- a/packages/core/client/src/application/index.ts +++ b/packages/core/client/src/application/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Application'; export * from './hooks'; export * from './Plugin'; diff --git a/packages/core/client/src/application/schema-initializer/CompatibleSchemaInitializer.tsx b/packages/core/client/src/application/schema-initializer/CompatibleSchemaInitializer.tsx index a8d1f19ce4..6d01bfc255 100644 --- a/packages/core/client/src/application/schema-initializer/CompatibleSchemaInitializer.tsx +++ b/packages/core/client/src/application/schema-initializer/CompatibleSchemaInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from './SchemaInitializer'; /** diff --git a/packages/core/client/src/application/schema-initializer/SchemaInitializer.tsx b/packages/core/client/src/application/schema-initializer/SchemaInitializer.tsx index 87ea0b72bc..bc31a13bb2 100644 --- a/packages/core/client/src/application/schema-initializer/SchemaInitializer.tsx +++ b/packages/core/client/src/application/schema-initializer/SchemaInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ButtonProps } from 'antd'; import { SchemaInitializerItemType, SchemaInitializerItemTypeWithoutName, SchemaInitializerOptions } from './types'; diff --git a/packages/core/client/src/application/schema-initializer/SchemaInitializerManager.ts b/packages/core/client/src/application/schema-initializer/SchemaInitializerManager.ts index e09233f7ac..5424df7a2e 100644 --- a/packages/core/client/src/application/schema-initializer/SchemaInitializerManager.ts +++ b/packages/core/client/src/application/schema-initializer/SchemaInitializerManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ButtonProps } from 'antd'; import { Application } from '../Application'; import { SchemaInitializer } from './SchemaInitializer'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx index 7a483f739c..be7d15a907 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerActionModal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import React, { FC, useCallback, useMemo } from 'react'; import { useActionContext, SchemaComponent } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx index 443fd830f4..13aa6638cd 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, ButtonProps } from 'antd'; import React, { FC } from 'react'; import { Icon } from '../../../icon'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerChildren.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerChildren.tsx index 70698787fb..690429df4a 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerChildren.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerChildren.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, memo, useMemo } from 'react'; import { useFindComponent } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerDivider.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerDivider.tsx index 0413d813b9..f2e7c396d2 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerDivider.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerDivider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Divider, theme } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx index 3624e5de27..7ca740ee3d 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import classNames from 'classnames'; import React, { ReactNode, memo, useMemo } from 'react'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItemGroup.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItemGroup.tsx index ce032e826e..9181354869 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItemGroup.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItemGroup.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { theme } from 'antd'; import React, { FC } from 'react'; import { useCompile } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItems.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItems.tsx index 0361cd758e..c88df50cf5 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItems.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerItems.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ButtonProps } from 'antd'; import React, { FC } from 'react'; import { SchemaInitializerChildren } from './SchemaInitializerChildren'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSelect.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSelect.tsx index 4d57c30213..6be2af1103 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSelect.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Select, SelectProps } from 'antd'; import React, { FC, useCallback, useMemo, useState } from 'react'; import { SchemaInitializerItemProps, SchemaInitializerItem } from './SchemaInitializerItem'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx index 5954dba9b4..76faaf2db6 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSubMenu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Icon, { RightOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSwitch.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSwitch.tsx index fcf49a3713..770844ca02 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSwitch.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerSwitch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Switch } from 'antd'; import React, { FC } from 'react'; import { SchemaInitializerItemProps, SchemaInitializerItem } from './SchemaInitializerItem'; diff --git a/packages/core/client/src/application/schema-initializer/components/index.ts b/packages/core/client/src/application/schema-initializer/components/index.ts index 5770a6471d..4e769e6d05 100644 --- a/packages/core/client/src/application/schema-initializer/components/index.ts +++ b/packages/core/client/src/application/schema-initializer/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SchemaInitializerSubMenu'; export * from './SchemaInitializerItem'; export * from './SchemaInitializerSwitch'; diff --git a/packages/core/client/src/application/schema-initializer/components/style.ts b/packages/core/client/src/application/schema-initializer/components/style.ts index 9f57d6270b..65a2a4245a 100644 --- a/packages/core/client/src/application/schema-initializer/components/style.ts +++ b/packages/core/client/src/application/schema-initializer/components/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../../../schema-component/antd/__builtins__'; export const useSchemaInitializerStyles = genStyleHook('nb-schema-initializer', (token) => { diff --git a/packages/core/client/src/application/schema-initializer/context/index.ts b/packages/core/client/src/application/schema-initializer/context/index.ts index 6a1154a255..eebfc85398 100644 --- a/packages/core/client/src/application/schema-initializer/context/index.ts +++ b/packages/core/client/src/application/schema-initializer/context/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext } from 'react'; import { InsertType, SchemaInitializerItemType, SchemaInitializerOptions } from '../types'; diff --git a/packages/core/client/src/application/schema-initializer/hooks/index.tsx b/packages/core/client/src/application/schema-initializer/hooks/index.tsx index 83fda65c99..1061aef333 100644 --- a/packages/core/client/src/application/schema-initializer/hooks/index.tsx +++ b/packages/core/client/src/application/schema-initializer/hooks/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useAriaAttributeOfMenuItem'; export * from './useSchemaInitializerRender'; export * from './useGetSchemaInitializerMenuItems'; diff --git a/packages/core/client/src/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.ts b/packages/core/client/src/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.ts index b1f38193ce..42f0ddbde1 100644 --- a/packages/core/client/src/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.ts +++ b/packages/core/client/src/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useSchemaInitializerSubMenuContext } from '../components/SchemaInitializerSubMenu'; diff --git a/packages/core/client/src/application/schema-initializer/hooks/useGetSchemaInitializerMenuItems.tsx b/packages/core/client/src/application/schema-initializer/hooks/useGetSchemaInitializerMenuItems.tsx index 69c2684c6b..10573983f5 100644 --- a/packages/core/client/src/application/schema-initializer/hooks/useGetSchemaInitializerMenuItems.tsx +++ b/packages/core/client/src/application/schema-initializer/hooks/useGetSchemaInitializerMenuItems.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ReactNode, useCallback, useMemo } from 'react'; import { useCompile } from '../../../schema-component'; import { SchemaInitializerChild } from '../components'; diff --git a/packages/core/client/src/application/schema-initializer/hooks/useSchemaInitializerRender.tsx b/packages/core/client/src/application/schema-initializer/hooks/useSchemaInitializerRender.tsx index 3de839a01e..3d42430a76 100644 --- a/packages/core/client/src/application/schema-initializer/hooks/useSchemaInitializerRender.tsx +++ b/packages/core/client/src/application/schema-initializer/hooks/useSchemaInitializerRender.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ButtonProps } from 'antd'; import React, { FC, useMemo } from 'react'; import { useApp } from '../../hooks'; diff --git a/packages/core/client/src/application/schema-initializer/index.ts b/packages/core/client/src/application/schema-initializer/index.ts index 5b1cc1b4a5..84f90e1977 100644 --- a/packages/core/client/src/application/schema-initializer/index.ts +++ b/packages/core/client/src/application/schema-initializer/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './withInitializer'; export * from './hooks'; export * from './types'; diff --git a/packages/core/client/src/application/schema-initializer/types.ts b/packages/core/client/src/application/schema-initializer/types.ts index d57e03186a..2671940715 100644 --- a/packages/core/client/src/application/schema-initializer/types.ts +++ b/packages/core/client/src/application/schema-initializer/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { ButtonProps, PopoverProps } from 'antd'; import { ComponentType, ReactNode } from 'react'; diff --git a/packages/core/client/src/application/schema-initializer/withInitializer.tsx b/packages/core/client/src/application/schema-initializer/withInitializer.tsx index 45e31c1188..6fff914fca 100644 --- a/packages/core/client/src/application/schema-initializer/withInitializer.tsx +++ b/packages/core/client/src/application/schema-initializer/withInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, observer } from '@formily/react'; import { ConfigProvider, Popover, theme } from 'antd'; import React, { ComponentType, useCallback, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/application/schema-settings/SchemaSettings.tsx b/packages/core/client/src/application/schema-settings/SchemaSettings.tsx index 2a1a4d4687..8c4f380a2a 100644 --- a/packages/core/client/src/application/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/application/schema-settings/SchemaSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaSettingOptions, SchemaSettingsItemType, SchemaSettingsItemTypeWithoutName } from './types'; export class SchemaSettings { diff --git a/packages/core/client/src/application/schema-settings/SchemaSettingsManager.tsx b/packages/core/client/src/application/schema-settings/SchemaSettingsManager.tsx index ee1b62db6d..d1d79fc638 100644 --- a/packages/core/client/src/application/schema-settings/SchemaSettingsManager.tsx +++ b/packages/core/client/src/application/schema-settings/SchemaSettingsManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '../Application'; import { SchemaSettings } from './SchemaSettings'; import { SchemaSettingsItemTypeWithoutName } from './types'; diff --git a/packages/core/client/src/application/schema-settings/components/SchemaSettingsChildren.tsx b/packages/core/client/src/application/schema-settings/components/SchemaSettingsChildren.tsx index c735d0a28c..44e30815e3 100644 --- a/packages/core/client/src/application/schema-settings/components/SchemaSettingsChildren.tsx +++ b/packages/core/client/src/application/schema-settings/components/SchemaSettingsChildren.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, memo, useEffect, useMemo, useRef } from 'react'; import { useFindComponent } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-settings/components/SchemaSettingsIcon.tsx b/packages/core/client/src/application/schema-settings/components/SchemaSettingsIcon.tsx index cd6e6e5faa..d492941369 100644 --- a/packages/core/client/src/application/schema-settings/components/SchemaSettingsIcon.tsx +++ b/packages/core/client/src/application/schema-settings/components/SchemaSettingsIcon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import React, { FC, useMemo } from 'react'; import { useGetAriaLabelOfDesigner } from '../../../schema-settings/hooks/useGetAriaLabelOfDesigner'; diff --git a/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx b/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx index ff0e8e81e5..dbb6ac1c8e 100644 --- a/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx +++ b/packages/core/client/src/application/schema-settings/components/SchemaSettingsWrapper.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FC, useMemo } from 'react'; import { SchemaSettingsDropdown } from '../../../schema-settings'; import { SchemaSettingOptions } from '../types'; diff --git a/packages/core/client/src/application/schema-settings/components/index.ts b/packages/core/client/src/application/schema-settings/components/index.ts index 9d343afbe2..6d61edc001 100644 --- a/packages/core/client/src/application/schema-settings/components/index.ts +++ b/packages/core/client/src/application/schema-settings/components/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SchemaSettingsWrapper'; export * from './SchemaSettingsChildren'; diff --git a/packages/core/client/src/application/schema-settings/context/SchemaSettingItemContext.ts b/packages/core/client/src/application/schema-settings/context/SchemaSettingItemContext.ts index 55e358ed1d..991afc3954 100644 --- a/packages/core/client/src/application/schema-settings/context/SchemaSettingItemContext.ts +++ b/packages/core/client/src/application/schema-settings/context/SchemaSettingItemContext.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; import { SchemaSettingsItemType } from '../types'; diff --git a/packages/core/client/src/application/schema-settings/context/index.ts b/packages/core/client/src/application/schema-settings/context/index.ts index 829c6c41ad..d7f8c7e574 100644 --- a/packages/core/client/src/application/schema-settings/context/index.ts +++ b/packages/core/client/src/application/schema-settings/context/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SchemaSettingItemContext'; diff --git a/packages/core/client/src/application/schema-settings/hooks/index.tsx b/packages/core/client/src/application/schema-settings/hooks/index.tsx index a52a2fbebc..11fe3de33d 100644 --- a/packages/core/client/src/application/schema-settings/hooks/index.tsx +++ b/packages/core/client/src/application/schema-settings/hooks/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useSchemaSettingsRender'; diff --git a/packages/core/client/src/application/schema-settings/hooks/useSchemaSettingsRender.tsx b/packages/core/client/src/application/schema-settings/hooks/useSchemaSettingsRender.tsx index d881c842e0..e52a64b0f0 100644 --- a/packages/core/client/src/application/schema-settings/hooks/useSchemaSettingsRender.tsx +++ b/packages/core/client/src/application/schema-settings/hooks/useSchemaSettingsRender.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useApp } from '../../hooks'; import { SchemaSettingOptions } from '../types'; diff --git a/packages/core/client/src/application/schema-settings/index.ts b/packages/core/client/src/application/schema-settings/index.ts index 9bdd6c1ba3..30327ee6cf 100644 --- a/packages/core/client/src/application/schema-settings/index.ts +++ b/packages/core/client/src/application/schema-settings/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SchemaSettings'; export * from './SchemaSettingsManager'; export * from './hooks'; diff --git a/packages/core/client/src/application/schema-settings/types.ts b/packages/core/client/src/application/schema-settings/types.ts index c009710838..4ab0638045 100644 --- a/packages/core/client/src/application/schema-settings/types.ts +++ b/packages/core/client/src/application/schema-settings/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ComponentType } from 'react'; import { SchemaSettingsCascaderItemProps, diff --git a/packages/core/client/src/application/schema-toolbar/context/index.tsx b/packages/core/client/src/application/schema-toolbar/context/index.tsx index 80c285ff70..f89156da88 100644 --- a/packages/core/client/src/application/schema-toolbar/context/index.tsx +++ b/packages/core/client/src/application/schema-toolbar/context/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { createContext, useContext } from 'react'; diff --git a/packages/core/client/src/application/schema-toolbar/hooks/index.tsx b/packages/core/client/src/application/schema-toolbar/hooks/index.tsx index 0d6a90c2b3..ddb4d3d7df 100644 --- a/packages/core/client/src/application/schema-toolbar/hooks/index.tsx +++ b/packages/core/client/src/application/schema-toolbar/hooks/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import React, { useMemo } from 'react'; import { useComponent, useDesignable } from '../../../schema-component'; diff --git a/packages/core/client/src/application/schema-toolbar/index.ts b/packages/core/client/src/application/schema-toolbar/index.ts index 472021f7e9..2c77897a48 100644 --- a/packages/core/client/src/application/schema-toolbar/index.ts +++ b/packages/core/client/src/application/schema-toolbar/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './context'; export * from './hooks'; diff --git a/packages/core/client/src/application/utils/globalDeps.ts b/packages/core/client/src/application/utils/globalDeps.ts index 177e6f474a..1f1e0f1bd6 100644 --- a/packages/core/client/src/application/utils/globalDeps.ts +++ b/packages/core/client/src/application/utils/globalDeps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as antdCssinjs from '@ant-design/cssinjs'; import * as antdIcons from '@ant-design/icons'; import * as dndKitAccessibility from '@dnd-kit/accessibility'; diff --git a/packages/core/client/src/application/utils/index.tsx b/packages/core/client/src/application/utils/index.tsx index 14c41009e5..00da6e131e 100644 --- a/packages/core/client/src/application/utils/index.tsx +++ b/packages/core/client/src/application/utils/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType, FC } from 'react'; import { BlankComponent } from '../components'; diff --git a/packages/core/client/src/application/utils/remotePlugins.ts b/packages/core/client/src/application/utils/remotePlugins.ts index c6f3f850f3..593162a737 100644 --- a/packages/core/client/src/application/utils/remotePlugins.ts +++ b/packages/core/client/src/application/utils/remotePlugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Plugin } from '../Plugin'; import type { PluginData } from '../PluginManager'; import type { RequireJS } from './requirejs'; diff --git a/packages/core/client/src/application/utils/requirejs.ts b/packages/core/client/src/application/utils/requirejs.ts index 01984e5946..09543bb3a7 100644 --- a/packages/core/client/src/application/utils/requirejs.ts +++ b/packages/core/client/src/application/utils/requirejs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ // @ts-nocheck /* eslint-disable */ diff --git a/packages/core/client/src/application/utils/types.ts b/packages/core/client/src/application/utils/types.ts index ac87b9b0ed..01d42ea9c3 100644 --- a/packages/core/client/src/application/utils/types.ts +++ b/packages/core/client/src/application/utils/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file */ /** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors. diff --git a/packages/core/client/src/async-data-provider/index.tsx b/packages/core/client/src/async-data-provider/index.tsx index 1287382266..9e6f3b1348 100644 --- a/packages/core/client/src/async-data-provider/index.tsx +++ b/packages/core/client/src/async-data-provider/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } from 'ahooks/es/useRequest/src/types'; import React, { createContext, useContext } from 'react'; import { useRequest } from '../api-client'; diff --git a/packages/core/client/src/block-provider/BlockProvider.tsx b/packages/core/client/src/block-provider/BlockProvider.tsx index a69fcb0f5f..ecb1c38e47 100644 --- a/packages/core/client/src/block-provider/BlockProvider.tsx +++ b/packages/core/client/src/block-provider/BlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field, GeneralField } from '@formily/core'; import { RecursionField, useField, useFieldSchema } from '@formily/react'; import { Col, Row } from 'antd'; diff --git a/packages/core/client/src/block-provider/BlockSchemaComponentProvider.tsx b/packages/core/client/src/block-provider/BlockSchemaComponentProvider.tsx index 48abde42d1..7e6b1c0665 100644 --- a/packages/core/client/src/block-provider/BlockSchemaComponentProvider.tsx +++ b/packages/core/client/src/block-provider/BlockSchemaComponentProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Slider } from 'antd'; import React from 'react'; import { Plugin } from '../application/Plugin'; diff --git a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx index 9021ddfdb9..9270a8b896 100644 --- a/packages/core/client/src/block-provider/DetailsBlockProvider.tsx +++ b/packages/core/client/src/block-provider/DetailsBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { Spin } from 'antd'; diff --git a/packages/core/client/src/block-provider/FilterFormBlockProvider.tsx b/packages/core/client/src/block-provider/FilterFormBlockProvider.tsx index b54c9433ae..089267f642 100644 --- a/packages/core/client/src/block-provider/FilterFormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FilterFormBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { DatePickerProvider } from '../schema-component'; import { DefaultValueProvider } from '../schema-settings'; diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index a4e2b00adc..043eeb28c8 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { Schema, useField } from '@formily/react'; import { Spin } from 'antd'; diff --git a/packages/core/client/src/block-provider/FormFieldProvider.tsx b/packages/core/client/src/block-provider/FormFieldProvider.tsx index a74f159c31..67b8a4648e 100644 --- a/packages/core/client/src/block-provider/FormFieldProvider.tsx +++ b/packages/core/client/src/block-provider/FormFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, onFormValuesChange } from '@formily/core'; import { useField } from '@formily/react'; import { autorun } from '@formily/reactive'; diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index 24f3fa5de3..e5121a2653 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { FormContext, useField, useFieldSchema } from '@formily/react'; import React, { createContext, useCallback, useContext, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/block-provider/TableFieldProvider.tsx b/packages/core/client/src/block-provider/TableFieldProvider.tsx index a651b51e59..2fab38ae73 100644 --- a/packages/core/client/src/block-provider/TableFieldProvider.tsx +++ b/packages/core/client/src/block-provider/TableFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField, Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import React, { createContext, useContext, useEffect } from 'react'; diff --git a/packages/core/client/src/block-provider/TableSelectorProvider.tsx b/packages/core/client/src/block-provider/TableSelectorProvider.tsx index fa6bd4c4fd..7e6c38930e 100644 --- a/packages/core/client/src/block-provider/TableSelectorProvider.tsx +++ b/packages/core/client/src/block-provider/TableSelectorProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { Schema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/block-provider/TemplateBlockProvider.tsx b/packages/core/client/src/block-provider/TemplateBlockProvider.tsx index 86d54f7cca..37861d89a9 100644 --- a/packages/core/client/src/block-provider/TemplateBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TemplateBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useState } from 'react'; const TemplateBlockContext = createContext<{ diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index f9f5b45ea6..18b0c88159 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field, Form } from '@formily/core'; import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@formily/react'; import { untracked } from '@formily/reactive'; diff --git a/packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx b/packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx index ff9a527c16..f1d2d22f43 100644 --- a/packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx +++ b/packages/core/client/src/block-provider/hooks/useDataBlockParentRecord.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InheritanceCollectionMixin, useCollection, diff --git a/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx b/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx index a9c3614f11..b81c72bf8c 100644 --- a/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx +++ b/packages/core/client/src/block-provider/hooks/useFormActiveFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useMemo, useRef } from 'react'; interface FormActiveFieldsProviderValue { diff --git a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts index af27568155..7177c6d685 100644 --- a/packages/core/client/src/block-provider/hooks/useParsedFilter.ts +++ b/packages/core/client/src/block-provider/hooks/useParsedFilter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { reaction } from '@formily/reactive'; import { flatten, getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; diff --git a/packages/core/client/src/block-provider/index.tsx b/packages/core/client/src/block-provider/index.tsx index 9074b0d19d..1547eaf172 100644 --- a/packages/core/client/src/block-provider/index.tsx +++ b/packages/core/client/src/block-provider/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './BlockProvider'; export * from './BlockSchemaComponentProvider'; export * from './FilterFormBlockProvider'; diff --git a/packages/core/client/src/china-region/index.tsx b/packages/core/client/src/china-region/index.tsx index dcbe51d92e..e5ae211009 100644 --- a/packages/core/client/src/china-region/index.tsx +++ b/packages/core/client/src/china-region/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField } from '@formily/react'; import { error } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/collection-manager/CollectionHistoryProvider.tsx b/packages/core/client/src/collection-manager/CollectionHistoryProvider.tsx index f6e25df19a..f30cff9454 100644 --- a/packages/core/client/src/collection-manager/CollectionHistoryProvider.tsx +++ b/packages/core/client/src/collection-manager/CollectionHistoryProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import { useAPIClient, useRequest } from '../api-client'; diff --git a/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx b/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx index ba42906ae6..10a258c008 100644 --- a/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx +++ b/packages/core/client/src/collection-manager/CollectionManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useAPIClient, useRequest } from '../api-client'; import { CollectionManagerSchemaComponentProvider } from './CollectionManagerSchemaComponentProvider'; diff --git a/packages/core/client/src/collection-manager/CollectionManagerSchemaComponentProvider.tsx b/packages/core/client/src/collection-manager/CollectionManagerSchemaComponentProvider.tsx index 70194df249..e845146770 100644 --- a/packages/core/client/src/collection-manager/CollectionManagerSchemaComponentProvider.tsx +++ b/packages/core/client/src/collection-manager/CollectionManagerSchemaComponentProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaComponentOptions } from '..'; import { CollectionProvider_deprecated, ResourceActionProvider, useDataSourceFromRAC } from '.'; diff --git a/packages/core/client/src/collection-manager/CollectionProvider_deprecated.tsx b/packages/core/client/src/collection-manager/CollectionProvider_deprecated.tsx index 56b66b26d7..30a26600df 100644 --- a/packages/core/client/src/collection-manager/CollectionProvider_deprecated.tsx +++ b/packages/core/client/src/collection-manager/CollectionProvider_deprecated.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FC, ReactNode } from 'react'; import { CollectionProvider } from '../data-source/collection/CollectionProvider'; import { CollectionManagerProvider } from '../data-source/collection/CollectionManagerProvider'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx index 71a095bf78..9f0fb3008c 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useField, useForm } from '@formily/react'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx index 3b4e47b5e6..622e5d830b 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; import { useField, useForm } from '@formily/react'; diff --git a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx index a8a723344e..d24b6cb172 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; import { ISchema } from '@formily/react'; diff --git a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx index a6bedb0484..ad6503fec4 100644 --- a/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/DeleteCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, ExclamationCircleFilled } from '@ant-design/icons'; import { css } from '@emotion/css'; import { useForm } from '@formily/react'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx index 7595e29c50..ed036fb757 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx index 5d3392b457..3c9e9f85fd 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx index dbd9d1e302..6dbc3c3513 100644 --- a/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/EditSubFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx b/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx index c62784c9de..63569dcc47 100644 --- a/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx +++ b/packages/core/client/src/collection-manager/Configuration/OverridingCollectionField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx b/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx index 3d2c64b6f5..9a9e80af9d 100644 --- a/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/SyncFieldsAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; import { useField, useForm } from '@formily/react'; diff --git a/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx b/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx index f8fd3904ed..00df09b65d 100644 --- a/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/SyncSQLFieldsAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SyncOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; diff --git a/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx b/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx index 256ece6cd1..4517251978 100644 --- a/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx +++ b/packages/core/client/src/collection-manager/Configuration/ViewInheritedField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx index 0be90cce1b..d944568db9 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionCategory.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx index 1bebb5f905..f47047fdf9 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionFieldInterfaceTag.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx b/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx index 9e3ada12ef..f2308f50d6 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/CollectionTemplateTag.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/FieldSummary.tsx b/packages/core/client/src/collection-manager/Configuration/components/FieldSummary.tsx index 4e4c73ea14..a0faf01d09 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/FieldSummary.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/FieldSummary.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCollectionManager_deprecated } from '../../hooks'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx b/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx index eb0e8255f5..5d58bd7582 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/Summary.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Tag } from 'antd'; import { useAntdToken } from 'antd-style'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/TemplateSummary.tsx b/packages/core/client/src/collection-manager/Configuration/components/TemplateSummary.tsx index f71f7c5faa..c316e677e7 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/TemplateSummary.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/TemplateSummary.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCollectionManager_deprecated } from '../../hooks'; diff --git a/packages/core/client/src/collection-manager/Configuration/components/index.tsx b/packages/core/client/src/collection-manager/Configuration/components/index.tsx index 5090da1d4c..200a146b97 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { observer, useField, useForm } from '@formily/react'; import { Select, AutoComplete } from 'antd'; diff --git a/packages/core/client/src/collection-manager/Configuration/index.tsx b/packages/core/client/src/collection-manager/Configuration/index.tsx index 8c8c9ef296..4680e50d23 100644 --- a/packages/core/client/src/collection-manager/Configuration/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerValidateFormats } from '@formily/core'; export * from './AddFieldAction'; diff --git a/packages/core/client/src/collection-manager/Configuration/interfaces.tsx b/packages/core/client/src/collection-manager/Configuration/interfaces.tsx index 06b33f09f6..8ecd02c154 100644 --- a/packages/core/client/src/collection-manager/Configuration/interfaces.tsx +++ b/packages/core/client/src/collection-manager/Configuration/interfaces.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { useMemo } from 'react'; import { useDataSourceManager } from '../../data-source/data-source/DataSourceManagerProvider'; diff --git a/packages/core/client/src/collection-manager/ResourceActionProvider.tsx b/packages/core/client/src/collection-manager/ResourceActionProvider.tsx index df0cfb8dd5..eabab5b4a1 100644 --- a/packages/core/client/src/collection-manager/ResourceActionProvider.tsx +++ b/packages/core/client/src/collection-manager/ResourceActionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { Result } from 'ahooks/es/useRequest/src/types'; import React, { createContext, useContext, useEffect } from 'react'; diff --git a/packages/core/client/src/collection-manager/action-hooks.ts b/packages/core/client/src/collection-manager/action-hooks.ts index d7b6b0418b..cac488e796 100644 --- a/packages/core/client/src/collection-manager/action-hooks.ts +++ b/packages/core/client/src/collection-manager/action-hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useForm } from '@formily/react'; import { message } from 'antd'; import _ from 'lodash'; diff --git a/packages/core/client/src/collection-manager/collectionPlugin.ts b/packages/core/client/src/collection-manager/collectionPlugin.ts index f46162d408..8146e97e33 100644 --- a/packages/core/client/src/collection-manager/collectionPlugin.ts +++ b/packages/core/client/src/collection-manager/collectionPlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../application/Plugin'; import { InheritanceCollectionMixin } from './mixins/InheritanceCollectionMixin'; diff --git a/packages/core/client/src/collection-manager/context.ts b/packages/core/client/src/collection-manager/context.ts index 75500e9b72..395f238cb1 100644 --- a/packages/core/client/src/collection-manager/context.ts +++ b/packages/core/client/src/collection-manager/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; export const CollectionCategroriesContext = createContext({ data: [], refresh: () => {} }); diff --git a/packages/core/client/src/collection-manager/demos/demo2.tsx b/packages/core/client/src/collection-manager/demos/demo2.tsx index da8923ae9f..8479b361df 100644 --- a/packages/core/client/src/collection-manager/demos/demo2.tsx +++ b/packages/core/client/src/collection-manager/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { diff --git a/packages/core/client/src/collection-manager/demos/demo3.tsx b/packages/core/client/src/collection-manager/demos/demo3.tsx index c17b1b2a6e..2132d20b60 100644 --- a/packages/core/client/src/collection-manager/demos/demo3.tsx +++ b/packages/core/client/src/collection-manager/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect, useState } from 'react'; import { APIClient, diff --git a/packages/core/client/src/collection-manager/demos/demo4.tsx b/packages/core/client/src/collection-manager/demos/demo4.tsx index c4daf8d644..b794b2132d 100644 --- a/packages/core/client/src/collection-manager/demos/demo4.tsx +++ b/packages/core/client/src/collection-manager/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { AntdSchemaComponentProvider, diff --git a/packages/core/client/src/collection-manager/demos/demo5.tsx b/packages/core/client/src/collection-manager/demos/demo5.tsx index bddfbbcade..bf8a60c678 100644 --- a/packages/core/client/src/collection-manager/demos/demo5.tsx +++ b/packages/core/client/src/collection-manager/demos/demo5.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormDrawer, FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; import { ISchema } from '@formily/json-schema'; diff --git a/packages/core/client/src/collection-manager/hooks/index.ts b/packages/core/client/src/collection-manager/hooks/index.ts index d4499bb55d..aea3d6f63b 100644 --- a/packages/core/client/src/collection-manager/hooks/index.ts +++ b/packages/core/client/src/collection-manager/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useCollection_deprecated'; export * from './useCollectionField_deprecated'; export * from './useCollectionManager_deprecated'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts b/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts index dd2ecb7fe8..b785ccb046 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionDataSource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { action } from '@formily/reactive'; import { useCollectionManager_deprecated } from '.'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionField_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollectionField_deprecated.ts index 3fc052cf5f..f367a3b485 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionField_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionField_deprecated.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient } from '../../api-client'; import { useCollectionField } from '../../data-source/collection-field/CollectionFieldProvider'; import { useRecord } from '../../record-provider'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts index a05b6fc999..b8d5df33e2 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CascaderProps } from 'antd'; import _ from 'lodash'; import { useCallback, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts index 710acafe8c..bfb8a137e8 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollection_deprecated.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaKey } from '@formily/react'; import { useAPIClient } from '../../api-client'; import { InheritanceCollectionMixin } from '../mixins/InheritanceCollectionMixin'; diff --git a/packages/core/client/src/collection-manager/hooks/useDialect.ts b/packages/core/client/src/collection-manager/hooks/useDialect.ts index b692333110..180c6d062e 100644 --- a/packages/core/client/src/collection-manager/hooks/useDialect.ts +++ b/packages/core/client/src/collection-manager/hooks/useDialect.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCurrentAppInfo } from '../../appInfo'; const useDialect = () => { diff --git a/packages/core/client/src/collection-manager/index.tsx b/packages/core/client/src/collection-manager/index.tsx index ce636b4df9..0ccf781a45 100644 --- a/packages/core/client/src/collection-manager/index.tsx +++ b/packages/core/client/src/collection-manager/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { useCancelAction, useCollectionFilterOptions, diff --git a/packages/core/client/src/collection-manager/interfaces/__tests__/json.tsx b/packages/core/client/src/collection-manager/interfaces/__tests__/json.tsx index 9b140eaf17..cdda6c1fa0 100644 --- a/packages/core/client/src/collection-manager/interfaces/__tests__/json.tsx +++ b/packages/core/client/src/collection-manager/interfaces/__tests__/json.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, waitFor } from '@nocobase/test/client'; import React from 'react'; import { CurrentAppInfoContext } from '../../../appInfo'; diff --git a/packages/core/client/src/collection-manager/interfaces/checkbox.ts b/packages/core/client/src/collection-manager/interfaces/checkbox.ts index 4b464fbca7..3e4ff0ec3a 100644 --- a/packages/core/client/src/collection-manager/interfaces/checkbox.ts +++ b/packages/core/client/src/collection-manager/interfaces/checkbox.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { defaultProps, operators } from '../'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts b/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts index b55aff59d9..47969049af 100644 --- a/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts +++ b/packages/core/client/src/collection-manager/interfaces/checkboxGroup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts b/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts index 9365784c82..bcdecc69b7 100644 --- a/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts +++ b/packages/core/client/src/collection-manager/interfaces/chinaRegion.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/collection.ts b/packages/core/client/src/collection-manager/interfaces/collection.ts index f12d787dbf..60cca596e8 100644 --- a/packages/core/client/src/collection-manager/interfaces/collection.ts +++ b/packages/core/client/src/collection-manager/interfaces/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { collectionDataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/color.ts b/packages/core/client/src/collection-manager/interfaces/color.ts index 4a0fb02b22..ceb8f80b16 100644 --- a/packages/core/client/src/collection-manager/interfaces/color.ts +++ b/packages/core/client/src/collection-manager/interfaces/color.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/components/index.tsx b/packages/core/client/src/collection-manager/interfaces/components/index.tsx index 9096e115a1..ccb5915a60 100644 --- a/packages/core/client/src/collection-manager/interfaces/components/index.tsx +++ b/packages/core/client/src/collection-manager/interfaces/components/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Switch } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/collection-manager/interfaces/createdAt.ts b/packages/core/client/src/collection-manager/interfaces/createdAt.ts index 0e497cc489..97c0a6da24 100644 --- a/packages/core/client/src/collection-manager/interfaces/createdAt.ts +++ b/packages/core/client/src/collection-manager/interfaces/createdAt.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { dateTimeProps, defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/createdBy.ts b/packages/core/client/src/collection-manager/interfaces/createdBy.ts index 0f564ef670..4acb8d217c 100644 --- a/packages/core/client/src/collection-manager/interfaces/createdBy.ts +++ b/packages/core/client/src/collection-manager/interfaces/createdBy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { cloneDeep } from 'lodash'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/datetime.ts b/packages/core/client/src/collection-manager/interfaces/datetime.ts index 1fc37a2cb6..7790d2a5e6 100644 --- a/packages/core/client/src/collection-manager/interfaces/datetime.ts +++ b/packages/core/client/src/collection-manager/interfaces/datetime.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { dateTimeProps, defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/email.ts b/packages/core/client/src/collection-manager/interfaces/email.ts index ffde8f55dc..343b6560c7 100644 --- a/packages/core/client/src/collection-manager/interfaces/email.ts +++ b/packages/core/client/src/collection-manager/interfaces/email.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { defaultProps, operators, unique } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/icon.ts b/packages/core/client/src/collection-manager/interfaces/icon.ts index dd551e46e4..38a61ab0d7 100644 --- a/packages/core/client/src/collection-manager/interfaces/icon.ts +++ b/packages/core/client/src/collection-manager/interfaces/icon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/id.ts b/packages/core/client/src/collection-manager/interfaces/id.ts index ee02eda970..2dfba0a928 100644 --- a/packages/core/client/src/collection-manager/interfaces/id.ts +++ b/packages/core/client/src/collection-manager/interfaces/id.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/index.ts b/packages/core/client/src/collection-manager/interfaces/index.ts index f1a10caede..6778d83413 100644 --- a/packages/core/client/src/collection-manager/interfaces/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './checkbox'; export * from './checkboxGroup'; export * from './chinaRegion'; diff --git a/packages/core/client/src/collection-manager/interfaces/input.ts b/packages/core/client/src/collection-manager/interfaces/input.ts index 7433df3d93..4ee4fc18e0 100644 --- a/packages/core/client/src/collection-manager/interfaces/input.ts +++ b/packages/core/client/src/collection-manager/interfaces/input.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { defaultProps, operators, unique, primaryKey } from './properties'; import { i18n } from '../../i18n'; diff --git a/packages/core/client/src/collection-manager/interfaces/integer.ts b/packages/core/client/src/collection-manager/interfaces/integer.ts index bc66b2eae2..dcf6abcce7 100644 --- a/packages/core/client/src/collection-manager/interfaces/integer.ts +++ b/packages/core/client/src/collection-manager/interfaces/integer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerValidateFormats } from '@formily/core'; import { i18n } from '../../i18n'; import { defaultProps, operators, unique, autoIncrement, primaryKey } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/json.tsx b/packages/core/client/src/collection-manager/interfaces/json.tsx index 00249c2249..d570047b4b 100644 --- a/packages/core/client/src/collection-manager/interfaces/json.tsx +++ b/packages/core/client/src/collection-manager/interfaces/json.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, FormLayout } from '@formily/antd-v5'; import { registerValidateRules } from '@formily/core'; import React from 'react'; diff --git a/packages/core/client/src/collection-manager/interfaces/linkTo.ts b/packages/core/client/src/collection-manager/interfaces/linkTo.ts index 5b81345803..63c4cf7f95 100644 --- a/packages/core/client/src/collection-manager/interfaces/linkTo.ts +++ b/packages/core/client/src/collection-manager/interfaces/linkTo.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/m2m.tsx b/packages/core/client/src/collection-manager/interfaces/m2m.tsx index ae8be1459c..cd00ad9045 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2m.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/m2o.tsx b/packages/core/client/src/collection-manager/interfaces/m2o.tsx index b80c372880..b6ad7c8267 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2o.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { getUniqueKeyFromCollection } from './o2m'; diff --git a/packages/core/client/src/collection-manager/interfaces/markdown.ts b/packages/core/client/src/collection-manager/interfaces/markdown.ts index 9565394a0b..b44704101b 100644 --- a/packages/core/client/src/collection-manager/interfaces/markdown.ts +++ b/packages/core/client/src/collection-manager/interfaces/markdown.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts b/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts index 8407d79bab..1ae229685b 100644 --- a/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts +++ b/packages/core/client/src/collection-manager/interfaces/multipleSelect.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/nanoid.ts b/packages/core/client/src/collection-manager/interfaces/nanoid.ts index 13c89b9bd4..109ae8296c 100644 --- a/packages/core/client/src/collection-manager/interfaces/nanoid.ts +++ b/packages/core/client/src/collection-manager/interfaces/nanoid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { operators, autoFill, primaryKey, unique } from './properties'; export class NanoidFieldInterface extends CollectionFieldInterface { diff --git a/packages/core/client/src/collection-manager/interfaces/number.ts b/packages/core/client/src/collection-manager/interfaces/number.ts index 3956efabfb..be89ced87c 100644 --- a/packages/core/client/src/collection-manager/interfaces/number.ts +++ b/packages/core/client/src/collection-manager/interfaces/number.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { i18n } from '../../i18n'; import { defaultProps, operators, unique } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/o2m.tsx b/packages/core/client/src/collection-manager/interfaces/o2m.tsx index 0232a61b60..2b55318b5b 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2m.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Collection } from '../../data-source'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/o2o.tsx b/packages/core/client/src/collection-manager/interfaces/o2o.tsx index 5bd7c44ddf..f47de65b75 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2o.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { getUniqueKeyFromCollection } from './o2m'; diff --git a/packages/core/client/src/collection-manager/interfaces/password.ts b/packages/core/client/src/collection-manager/interfaces/password.ts index 5216a5a7fc..4728999b9b 100644 --- a/packages/core/client/src/collection-manager/interfaces/password.ts +++ b/packages/core/client/src/collection-manager/interfaces/password.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { i18n } from '../../i18n'; import { defaultProps, unique } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/percent.ts b/packages/core/client/src/collection-manager/interfaces/percent.ts index 40af90af07..136e22e47a 100644 --- a/packages/core/client/src/collection-manager/interfaces/percent.ts +++ b/packages/core/client/src/collection-manager/interfaces/percent.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerValidateRules } from '@formily/core'; import { ISchema } from '@formily/react'; import { i18n } from '../../i18n'; diff --git a/packages/core/client/src/collection-manager/interfaces/phone.ts b/packages/core/client/src/collection-manager/interfaces/phone.ts index a05bf3fe20..eebab1cac9 100644 --- a/packages/core/client/src/collection-manager/interfaces/phone.ts +++ b/packages/core/client/src/collection-manager/interfaces/phone.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defaultProps, operators, unique } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/properties/index.ts b/packages/core/client/src/collection-manager/interfaces/properties/index.ts index 258e4d0415..cbd7e6074f 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/collection-manager/interfaces/properties/operators.ts b/packages/core/client/src/collection-manager/interfaces/properties/operators.ts index d91ca9ab03..3886b4431a 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/operators.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/operators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const string = [ { label: '{{t("contains")}}', value: '$includes', selected: true }, { label: '{{t("does not contain")}}', value: '$notIncludes' }, diff --git a/packages/core/client/src/collection-manager/interfaces/radioGroup.ts b/packages/core/client/src/collection-manager/interfaces/radioGroup.ts index ea8aa8c807..6958a774fa 100644 --- a/packages/core/client/src/collection-manager/interfaces/radioGroup.ts +++ b/packages/core/client/src/collection-manager/interfaces/radioGroup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { dataSource, defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/richText.ts b/packages/core/client/src/collection-manager/interfaces/richText.ts index 3c2d583550..de4493cb3b 100644 --- a/packages/core/client/src/collection-manager/interfaces/richText.ts +++ b/packages/core/client/src/collection-manager/interfaces/richText.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/select.ts b/packages/core/client/src/collection-manager/interfaces/select.ts index d36320da05..646160b92f 100644 --- a/packages/core/client/src/collection-manager/interfaces/select.ts +++ b/packages/core/client/src/collection-manager/interfaces/select.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { dataSource, defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/sort.ts b/packages/core/client/src/collection-manager/interfaces/sort.ts index dca4567e62..4acb62f036 100644 --- a/packages/core/client/src/collection-manager/interfaces/sort.ts +++ b/packages/core/client/src/collection-manager/interfaces/sort.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/subTable.ts b/packages/core/client/src/collection-manager/interfaces/subTable.ts index 985cb0c53d..ddc36c5188 100644 --- a/packages/core/client/src/collection-manager/interfaces/subTable.ts +++ b/packages/core/client/src/collection-manager/interfaces/subTable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { defaultProps } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/tableoid.ts b/packages/core/client/src/collection-manager/interfaces/tableoid.ts index 4f5e540119..81bb082d40 100644 --- a/packages/core/client/src/collection-manager/interfaces/tableoid.ts +++ b/packages/core/client/src/collection-manager/interfaces/tableoid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/textarea.ts b/packages/core/client/src/collection-manager/interfaces/textarea.ts index c2e9411f4d..942a3e4f47 100644 --- a/packages/core/client/src/collection-manager/interfaces/textarea.ts +++ b/packages/core/client/src/collection-manager/interfaces/textarea.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { i18n } from '../../i18n'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/time.ts b/packages/core/client/src/collection-manager/interfaces/time.ts index 9a31ce8511..dc47c41746 100644 --- a/packages/core/client/src/collection-manager/interfaces/time.ts +++ b/packages/core/client/src/collection-manager/interfaces/time.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/types.ts b/packages/core/client/src/collection-manager/interfaces/types.ts index 4b8a240321..177b5e57ee 100644 --- a/packages/core/client/src/collection-manager/interfaces/types.ts +++ b/packages/core/client/src/collection-manager/interfaces/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; interface IDefault { diff --git a/packages/core/client/src/collection-manager/interfaces/unixTimestamp.tsx b/packages/core/client/src/collection-manager/interfaces/unixTimestamp.tsx index f2de2f355e..0b2dbabc33 100644 --- a/packages/core/client/src/collection-manager/interfaces/unixTimestamp.tsx +++ b/packages/core/client/src/collection-manager/interfaces/unixTimestamp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { dateTimeProps, defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/updatedAt.ts b/packages/core/client/src/collection-manager/interfaces/updatedAt.ts index 13175b0efa..ad969338e7 100644 --- a/packages/core/client/src/collection-manager/interfaces/updatedAt.ts +++ b/packages/core/client/src/collection-manager/interfaces/updatedAt.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { dateTimeProps, defaultProps, operators } from './properties'; diff --git a/packages/core/client/src/collection-manager/interfaces/updatedBy.ts b/packages/core/client/src/collection-manager/interfaces/updatedBy.ts index d195461925..cc03efcefe 100644 --- a/packages/core/client/src/collection-manager/interfaces/updatedBy.ts +++ b/packages/core/client/src/collection-manager/interfaces/updatedBy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { cloneDeep } from 'lodash'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/url.ts b/packages/core/client/src/collection-manager/interfaces/url.ts index 1dc17297c8..4c9ea23b48 100644 --- a/packages/core/client/src/collection-manager/interfaces/url.ts +++ b/packages/core/client/src/collection-manager/interfaces/url.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { defaultProps, operators } from './properties'; import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; diff --git a/packages/core/client/src/collection-manager/interfaces/uuid.ts b/packages/core/client/src/collection-manager/interfaces/uuid.ts index 2f1cb68d64..2b15120eee 100644 --- a/packages/core/client/src/collection-manager/interfaces/uuid.ts +++ b/packages/core/client/src/collection-manager/interfaces/uuid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface'; import { operators, autoFill, primaryKey, unique } from './properties'; diff --git a/packages/core/client/src/collection-manager/mixins/InheritanceCollectionMixin.ts b/packages/core/client/src/collection-manager/mixins/InheritanceCollectionMixin.ts index 2d489bd11e..f1b5963397 100644 --- a/packages/core/client/src/collection-manager/mixins/InheritanceCollectionMixin.ts +++ b/packages/core/client/src/collection-manager/mixins/InheritanceCollectionMixin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CollectionFieldOptions, GetCollectionFieldPredicate } from '../../data-source'; import { Collection } from '../../data-source/collection/Collection'; import _, { filter, unionBy, uniq } from 'lodash'; diff --git a/packages/core/client/src/collection-manager/sub-table.tsx b/packages/core/client/src/collection-manager/sub-table.tsx index cc908cba02..4b7595bb6d 100644 --- a/packages/core/client/src/collection-manager/sub-table.tsx +++ b/packages/core/client/src/collection-manager/sub-table.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm } from '@formily/react'; import { cloneDeep } from 'lodash'; import React, { createContext, useContext, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx b/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx index b6523cefdd..b962f5d2f7 100644 --- a/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PresetFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm } from '@formily/react'; import { Table, Tag } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx b/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx index 019e54ee90..fa77da458f 100644 --- a/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PreviewFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useForm } from '@formily/react'; import { Cascader, Input, Select, Spin, Table, Tag } from 'antd'; import { last, omit } from 'lodash'; diff --git a/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx b/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx index 8b442d1191..0a87498c5a 100644 --- a/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx +++ b/packages/core/client/src/collection-manager/templates/components/PreviewTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecursionField, useForm } from '@formily/react'; import { Spin, Table } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/UnSupportFields.tsx b/packages/core/client/src/collection-manager/templates/components/UnSupportFields.tsx index 064ee8fe31..137fc736a7 100644 --- a/packages/core/client/src/collection-manager/templates/components/UnSupportFields.tsx +++ b/packages/core/client/src/collection-manager/templates/components/UnSupportFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Table, Divider } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx index 00e832bc1a..5a2ad441a8 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/FieldsConfigure.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; import { useAsyncData } from '../../../../async-data-provider'; import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx index 3da50fab1e..0f8e9e9232 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/PreviewTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAsyncData } from '../../../../async-data-provider'; import React, { useEffect } from 'react'; import { Table } from 'antd'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx index 1a98c85fb9..c73f5359ec 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useForm } from '@formily/react'; import { useAsyncData } from '../../../../async-data-provider'; import React, { useEffect } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx index bdd4fb49b5..29d66ba5e0 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/SQLRequestProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useRequest } from '../../../../api-client'; import { AsyncDataProvider } from '../../../../async-data-provider'; import React, { useEffect, useRef } from 'react'; diff --git a/packages/core/client/src/collection-manager/templates/components/sql-collection/index.ts b/packages/core/client/src/collection-manager/templates/components/sql-collection/index.ts index cede88f81b..9d620969d6 100644 --- a/packages/core/client/src/collection-manager/templates/components/sql-collection/index.ts +++ b/packages/core/client/src/collection-manager/templates/components/sql-collection/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FieldsConfigure'; export * from './PreviewTable'; export * from './SQLRequestProvider'; diff --git a/packages/core/client/src/collection-manager/templates/expression.tsx b/packages/core/client/src/collection-manager/templates/expression.tsx index e309f964ff..146fc743e6 100644 --- a/packages/core/client/src/collection-manager/templates/expression.tsx +++ b/packages/core/client/src/collection-manager/templates/expression.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getOptions } from '@nocobase/evaluators/client'; import { getConfigurableProperties } from './properties'; import { CollectionTemplate } from '../../data-source/collection-template/CollectionTemplate'; diff --git a/packages/core/client/src/collection-manager/templates/general.tsx b/packages/core/client/src/collection-manager/templates/general.tsx index 9da90c7dfc..7d4c09e9cc 100644 --- a/packages/core/client/src/collection-manager/templates/general.tsx +++ b/packages/core/client/src/collection-manager/templates/general.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionTemplate } from '../../data-source/collection-template/CollectionTemplate'; import { getConfigurableProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/templates/index.tsx b/packages/core/client/src/collection-manager/templates/index.tsx index 0daa8dcfa9..b38c854648 100644 --- a/packages/core/client/src/collection-manager/templates/index.tsx +++ b/packages/core/client/src/collection-manager/templates/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './general'; export * from './tree'; export * from './expression'; diff --git a/packages/core/client/src/collection-manager/templates/properties/index.ts b/packages/core/client/src/collection-manager/templates/properties/index.ts index eb4267f92b..b323f15a55 100644 --- a/packages/core/client/src/collection-manager/templates/properties/index.ts +++ b/packages/core/client/src/collection-manager/templates/properties/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { PresetFields } from '../components/PresetFields'; diff --git a/packages/core/client/src/collection-manager/templates/sql.tsx b/packages/core/client/src/collection-manager/templates/sql.tsx index a55a2a9ded..04530c6e5f 100644 --- a/packages/core/client/src/collection-manager/templates/sql.tsx +++ b/packages/core/client/src/collection-manager/templates/sql.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { CollectionTemplate } from '../../data-source/collection-template/CollectionTemplate'; import { i18n } from '../../i18n'; diff --git a/packages/core/client/src/collection-manager/templates/tree.tsx b/packages/core/client/src/collection-manager/templates/tree.tsx index 12a70dc3c1..6c63a24fdf 100644 --- a/packages/core/client/src/collection-manager/templates/tree.tsx +++ b/packages/core/client/src/collection-manager/templates/tree.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionTemplate } from '../../data-source/collection-template/CollectionTemplate'; import { getConfigurableProperties } from './properties'; diff --git a/packages/core/client/src/collection-manager/templates/types.ts b/packages/core/client/src/collection-manager/templates/types.ts index b7937e9a02..cdc284d6f5 100644 --- a/packages/core/client/src/collection-manager/templates/types.ts +++ b/packages/core/client/src/collection-manager/templates/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import type { FieldOptions } from '../types'; import type { Application } from '../../application'; diff --git a/packages/core/client/src/collection-manager/templates/view.tsx b/packages/core/client/src/collection-manager/templates/view.tsx index c44883a3e6..f3a4338ed6 100644 --- a/packages/core/client/src/collection-manager/templates/view.tsx +++ b/packages/core/client/src/collection-manager/templates/view.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionTemplate } from '../../data-source/collection-template/CollectionTemplate'; import { PreviewFields } from './components/PreviewFields'; import { PreviewTable } from './components/PreviewTable'; diff --git a/packages/core/client/src/collection-manager/types.ts b/packages/core/client/src/collection-manager/types.ts index 00729d2005..078612d820 100644 --- a/packages/core/client/src/collection-manager/types.ts +++ b/packages/core/client/src/collection-manager/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import type { ReactNode } from 'react'; import type { CollectionManager, CollectionOptions } from '../data-source'; diff --git a/packages/core/client/src/collection-manager/utils.ts b/packages/core/client/src/collection-manager/utils.ts index 392a01bd29..4794ef4fb8 100644 --- a/packages/core/client/src/collection-manager/utils.ts +++ b/packages/core/client/src/collection-manager/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function parseCollectionName(collection: string) { if (!collection) { return []; diff --git a/packages/core/client/src/common/SelectWithTitle.tsx b/packages/core/client/src/common/SelectWithTitle.tsx index 6e2a48b922..4bd43648a3 100644 --- a/packages/core/client/src/common/SelectWithTitle.tsx +++ b/packages/core/client/src/common/SelectWithTitle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Select } from 'antd'; import React, { useRef, useState } from 'react'; diff --git a/packages/core/client/src/common/index.ts b/packages/core/client/src/common/index.ts index 30ff4e5933..dbc0e2243b 100644 --- a/packages/core/client/src/common/index.ts +++ b/packages/core/client/src/common/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SelectWithTitle'; export * from './useFieldComponentName'; diff --git a/packages/core/client/src/common/useFieldComponentName.tsx b/packages/core/client/src/common/useFieldComponentName.tsx index cdb05c506a..6e0393d8d0 100644 --- a/packages/core/client/src/common/useFieldComponentName.tsx +++ b/packages/core/client/src/common/useFieldComponentName.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useCollectionField } from '../data-source/collection-field/CollectionFieldProvider'; diff --git a/packages/core/client/src/common/useNiceDropdownHeight.ts b/packages/core/client/src/common/useNiceDropdownHeight.ts index e71508a7df..0ed78002df 100644 --- a/packages/core/client/src/common/useNiceDropdownHeight.ts +++ b/packages/core/client/src/common/useNiceDropdownHeight.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect, useMemo, useRef } from 'react'; /** diff --git a/packages/core/client/src/css-variable/CSSVariableProvider.tsx b/packages/core/client/src/css-variable/CSSVariableProvider.tsx index dfca2f2c77..de6912bf77 100644 --- a/packages/core/client/src/css-variable/CSSVariableProvider.tsx +++ b/packages/core/client/src/css-variable/CSSVariableProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; import { useEffect } from 'react'; import { defaultTheme } from '../global-theme'; diff --git a/packages/core/client/src/css-variable/index.ts b/packages/core/client/src/css-variable/index.ts index c08a8d88b3..2a4f408a7f 100644 --- a/packages/core/client/src/css-variable/index.ts +++ b/packages/core/client/src/css-variable/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as CSSVariableProvider } from './CSSVariableProvider'; diff --git a/packages/core/client/src/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.ts b/packages/core/client/src/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.ts index 75af024969..6a6995ec73 100644 --- a/packages/core/client/src/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.ts +++ b/packages/core/client/src/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionFieldInterface, CollectionFieldInterfaceManager } from '@nocobase/client'; describe('CollectionFieldInterfaceManager', () => { diff --git a/packages/core/client/src/data-source/__tests__/collection-field/CollectionField.test.tsx b/packages/core/client/src/data-source/__tests__/collection-field/CollectionField.test.tsx index ec4dcdcb33..92aa36fdce 100644 --- a/packages/core/client/src/data-source/__tests__/collection-field/CollectionField.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection-field/CollectionField.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionField, diff --git a/packages/core/client/src/data-source/__tests__/collection-field/CollectionFieldProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection-field/CollectionFieldProvider.test.tsx index e0a6c77653..5d3cc9c791 100644 --- a/packages/core/client/src/data-source/__tests__/collection-field/CollectionFieldProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection-field/CollectionFieldProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType } from 'react'; import { render, screen } from '@nocobase/test/client'; import { diff --git a/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecord.test.tsx b/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecord.test.tsx index c747d900cd..b36a694b71 100644 --- a/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecord.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecord.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionRecord } from '../../collection-record'; describe('Record', () => { diff --git a/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecordProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecordProvider.test.tsx index 67e00a9448..c9cd08589b 100644 --- a/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecordProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection-record/CollectionRecordProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render, screen } from '@nocobase/test/client'; import { diff --git a/packages/core/client/src/data-source/__tests__/collection-record/isNewRecord.test.ts b/packages/core/client/src/data-source/__tests__/collection-record/isNewRecord.test.ts index ebb586c7eb..faf7d25d21 100644 --- a/packages/core/client/src/data-source/__tests__/collection-record/isNewRecord.test.ts +++ b/packages/core/client/src/data-source/__tests__/collection-record/isNewRecord.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isNewRecord, markRecordAsNew } from '../../collection-record/isNewRecord'; describe('recordUtilities', () => { diff --git a/packages/core/client/src/data-source/__tests__/collection-template/CollectionTemplateManager.test.ts b/packages/core/client/src/data-source/__tests__/collection-template/CollectionTemplateManager.test.ts index fa6875f956..2b50cb36cf 100644 --- a/packages/core/client/src/data-source/__tests__/collection-template/CollectionTemplateManager.test.ts +++ b/packages/core/client/src/data-source/__tests__/collection-template/CollectionTemplateManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionTemplate, CollectionTemplateManager, Collection } from '@nocobase/client'; describe('CollectionTemplateManager', () => { diff --git a/packages/core/client/src/data-source/__tests__/collection/AssociationProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection/AssociationProvider.test.tsx index d125f7fab3..7a7d5a8683 100644 --- a/packages/core/client/src/data-source/__tests__/collection/AssociationProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/AssociationProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType } from 'react'; import { render, screen } from '@nocobase/test/client'; import { diff --git a/packages/core/client/src/data-source/__tests__/collection/Collection.test.tsx b/packages/core/client/src/data-source/__tests__/collection/Collection.test.tsx index b82eb8baf7..b929f8ffc5 100644 --- a/packages/core/client/src/data-source/__tests__/collection/Collection.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/Collection.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionOptions, DEFAULT_DATA_SOURCE_KEY } from '@nocobase/client'; import collections from '../collections.json'; diff --git a/packages/core/client/src/data-source/__tests__/collection/CollectionManager.test.tsx b/packages/core/client/src/data-source/__tests__/collection/CollectionManager.test.tsx index d24eab8241..c55f68fb0f 100644 --- a/packages/core/client/src/data-source/__tests__/collection/CollectionManager.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/CollectionManager.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionManager, CollectionTemplate, Collection } from '@nocobase/client'; import collections from '../collections.json'; diff --git a/packages/core/client/src/data-source/__tests__/collection/CollectionManagerProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection/CollectionManagerProvider.test.tsx index f512aaa953..7708b16a9e 100644 --- a/packages/core/client/src/data-source/__tests__/collection/CollectionManagerProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/CollectionManagerProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType, useEffect } from 'react'; import { render, screen } from '@nocobase/test/client'; import { diff --git a/packages/core/client/src/data-source/__tests__/collection/CollectionProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection/CollectionProvider.test.tsx index ee6ebaafe6..6e60f7b714 100644 --- a/packages/core/client/src/data-source/__tests__/collection/CollectionProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/CollectionProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType } from 'react'; import { render, screen } from '@nocobase/test/client'; import { diff --git a/packages/core/client/src/data-source/__tests__/collection/ExtendCollectionsProvider.test.tsx b/packages/core/client/src/data-source/__tests__/collection/ExtendCollectionsProvider.test.tsx index 21531f1de2..f7374cc5f1 100644 --- a/packages/core/client/src/data-source/__tests__/collection/ExtendCollectionsProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/collection/ExtendCollectionsProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render, screen } from '@testing-library/react'; import { diff --git a/packages/core/client/src/data-source/__tests__/components/CollectionDeletedPlaceholder.test.tsx b/packages/core/client/src/data-source/__tests__/components/CollectionDeletedPlaceholder.test.tsx index 1dadfc9921..f6694b2b79 100644 --- a/packages/core/client/src/data-source/__tests__/components/CollectionDeletedPlaceholder.test.tsx +++ b/packages/core/client/src/data-source/__tests__/components/CollectionDeletedPlaceholder.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render, screen, userEvent, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/DataBlockProvider.test.tsx b/packages/core/client/src/data-source/__tests__/data-block/DataBlockProvider.test.tsx index fcf93e7c88..39a10f3b5c 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/DataBlockProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/DataBlockProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { fireEvent, render, screen, waitFor } from '@nocobase/test/client'; import CollectionTableListDemo from './data-block-demos/collection-table-list'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/DataBlockRequestProvider.test.tsx b/packages/core/client/src/data-source/__tests__/data-block/DataBlockRequestProvider.test.tsx index 0eaabcd1a3..2f12ce1d62 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/DataBlockRequestProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/DataBlockRequestProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { requestParentRecordData } from '../../data-block/DataBlockRequestProvider'; describe('requestParentRecordData', () => { diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx index 0d30c69b9a..609f607338 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Table, TableProps } from 'antd'; import { SchemaComponent, UseDataBlockProps, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx index 68d4293bbf..1903ef80bd 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Select, Table, TableProps } from 'antd'; import { SchemaComponent, UseDataBlockProps, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx index b678a48beb..b804083479 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-create.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { Button, Form, FormProps, Input, InputNumber, notification } from 'antd'; import { SchemaComponent, useDataBlockResource, withDynamicSchemaProps } from '@nocobase/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx index 7ed2daa87c..bdcbb649d0 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, useEffect } from 'react'; import { Button, Form, FormProps, Input, InputNumber, Select, notification } from 'antd'; import { diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx index 423cc88d33..53ae6c895f 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, useEffect } from 'react'; import { Button, Form, FormProps, Input, InputNumber, notification } from 'antd'; import { diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx index 0e0240bab1..7703b29276 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/collection-table-list.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaComponent, useDataBlockRequest, withDynamicSchemaProps } from '@nocobase/client'; import { Table, TableProps } from 'antd'; diff --git a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/createApp.tsx b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/createApp.tsx index 5d5cb91c97..737de5a075 100644 --- a/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/createApp.tsx +++ b/packages/core/client/src/data-source/__tests__/data-block/data-block-demos/createApp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ApplicationOptions, Application, diff --git a/packages/core/client/src/data-source/__tests__/data-source/CollectionDataSourceProvider.test.tsx b/packages/core/client/src/data-source/__tests__/data-source/CollectionDataSourceProvider.test.tsx index dc35b9769d..94ab6309bb 100644 --- a/packages/core/client/src/data-source/__tests__/data-source/CollectionDataSourceProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/data-source/CollectionDataSourceProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render, screen } from '@nocobase/test/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-source/DataSource.test.ts b/packages/core/client/src/data-source/__tests__/data-source/DataSource.test.ts index 8770dce2c0..8fa49dbd29 100644 --- a/packages/core/client/src/data-source/__tests__/data-source/DataSource.test.ts +++ b/packages/core/client/src/data-source/__tests__/data-source/DataSource.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, DataSourceOptions, DataSource } from '@nocobase/client'; describe('DataSource', () => { diff --git a/packages/core/client/src/data-source/__tests__/data-source/DataSourceManager.test.ts b/packages/core/client/src/data-source/__tests__/data-source/DataSourceManager.test.ts index 7933735342..b9e18b8cb5 100644 --- a/packages/core/client/src/data-source/__tests__/data-source/DataSourceManager.test.ts +++ b/packages/core/client/src/data-source/__tests__/data-source/DataSourceManager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Collection, diff --git a/packages/core/client/src/data-source/__tests__/data-source/DataSourceManagerProvider.test.tsx b/packages/core/client/src/data-source/__tests__/data-source/DataSourceManagerProvider.test.tsx index f76a341837..db4e3696df 100644 --- a/packages/core/client/src/data-source/__tests__/data-source/DataSourceManagerProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/data-source/DataSourceManagerProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render } from '@testing-library/react'; import { Application, DataSourceManagerProvider, useDataSourceManager } from '@nocobase/client'; diff --git a/packages/core/client/src/data-source/__tests__/data-source/DataSourceProvider.test.tsx b/packages/core/client/src/data-source/__tests__/data-source/DataSourceProvider.test.tsx index b9fa71a452..75e33e8630 100644 --- a/packages/core/client/src/data-source/__tests__/data-source/DataSourceProvider.test.tsx +++ b/packages/core/client/src/data-source/__tests__/data-source/DataSourceProvider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, DEFAULT_DATA_SOURCE_KEY, diff --git a/packages/core/client/src/data-source/__tests__/utils.test.ts b/packages/core/client/src/data-source/__tests__/utils.test.ts index 167caec3f0..5f00ddede9 100644 --- a/packages/core/client/src/data-source/__tests__/utils.test.ts +++ b/packages/core/client/src/data-source/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface, isTitleField, diff --git a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts index 51e2812049..bba227213d 100644 --- a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts +++ b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import type { CollectionFieldOptions } from '../collection'; import { CollectionFieldInterfaceManager } from './CollectionFieldInterfaceManager'; diff --git a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterfaceManager.ts b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterfaceManager.ts index 5f7a4b5b6e..ffcb506be7 100644 --- a/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterfaceManager.ts +++ b/packages/core/client/src/data-source/collection-field-interface/CollectionFieldInterfaceManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { DataSourceManager } from '../data-source'; import type { CollectionFieldInterface, CollectionFieldInterfaceFactory } from './CollectionFieldInterface'; diff --git a/packages/core/client/src/data-source/collection-field-interface/index.ts b/packages/core/client/src/data-source/collection-field-interface/index.ts index ab0254e7a7..d69c6d0530 100644 --- a/packages/core/client/src/data-source/collection-field-interface/index.ts +++ b/packages/core/client/src/data-source/collection-field-interface/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionFieldInterface'; export * from './CollectionFieldInterfaceManager'; diff --git a/packages/core/client/src/data-source/collection-field/CollectionField.tsx b/packages/core/client/src/data-source/collection-field/CollectionField.tsx index 8da23461f5..0042a432b4 100644 --- a/packages/core/client/src/data-source/collection-field/CollectionField.tsx +++ b/packages/core/client/src/data-source/collection-field/CollectionField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { connect, useField, useFieldSchema } from '@formily/react'; import { merge } from '@formily/shared'; diff --git a/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx b/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx index 6f764323b4..67feaa79d0 100644 --- a/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx +++ b/packages/core/client/src/data-source/collection-field/CollectionFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import { useFieldSchema, type SchemaKey } from '@formily/react'; diff --git a/packages/core/client/src/data-source/collection-field/index.ts b/packages/core/client/src/data-source/collection-field/index.ts index b0f92e02a5..e4476c2417 100644 --- a/packages/core/client/src/data-source/collection-field/index.ts +++ b/packages/core/client/src/data-source/collection-field/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionField'; export * from './CollectionFieldProvider'; diff --git a/packages/core/client/src/data-source/collection-record/CollectionRecord.ts b/packages/core/client/src/data-source/collection-record/CollectionRecord.ts index 05a13c0f9a..2f564b4148 100644 --- a/packages/core/client/src/data-source/collection-record/CollectionRecord.ts +++ b/packages/core/client/src/data-source/collection-record/CollectionRecord.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface CollectionRecordOptions { isNew?: boolean; data?: DataType; diff --git a/packages/core/client/src/data-source/collection-record/CollectionRecordProvider.tsx b/packages/core/client/src/data-source/collection-record/CollectionRecordProvider.tsx index d2090d6505..3eee58214d 100644 --- a/packages/core/client/src/data-source/collection-record/CollectionRecordProvider.tsx +++ b/packages/core/client/src/data-source/collection-record/CollectionRecordProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import { CollectionRecord } from './CollectionRecord'; diff --git a/packages/core/client/src/data-source/collection-record/index.ts b/packages/core/client/src/data-source/collection-record/index.ts index 09eb42e656..bf160c9c26 100644 --- a/packages/core/client/src/data-source/collection-record/index.ts +++ b/packages/core/client/src/data-source/collection-record/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionRecord'; export * from './CollectionRecordProvider'; diff --git a/packages/core/client/src/data-source/collection-record/isNewRecord.ts b/packages/core/client/src/data-source/collection-record/isNewRecord.ts index cc9517c274..cda652d907 100644 --- a/packages/core/client/src/data-source/collection-record/isNewRecord.ts +++ b/packages/core/client/src/data-source/collection-record/isNewRecord.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isObject } from 'lodash'; // 使用 Symbol 作为 key,避免与其他属性冲突,同时也可以防止通过表单提交到后端 diff --git a/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts b/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts index af6bfc823f..f3ad383871 100644 --- a/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts +++ b/packages/core/client/src/data-source/collection-template/CollectionTemplate.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CollectionOptions, Collection } from '../collection'; import type { ISchema } from '@formily/react'; import type { CollectionTemplateManager } from './CollectionTemplateManager'; diff --git a/packages/core/client/src/data-source/collection-template/CollectionTemplateManager.ts b/packages/core/client/src/data-source/collection-template/CollectionTemplateManager.ts index add83b3f61..01c3bf9596 100644 --- a/packages/core/client/src/data-source/collection-template/CollectionTemplateManager.ts +++ b/packages/core/client/src/data-source/collection-template/CollectionTemplateManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { DataSourceManager } from '../data-source'; import type { CollectionTemplate, CollectionTemplateFactory } from './CollectionTemplate'; diff --git a/packages/core/client/src/data-source/collection-template/index.ts b/packages/core/client/src/data-source/collection-template/index.ts index cd3c81c614..fd02c376cc 100644 --- a/packages/core/client/src/data-source/collection-template/index.ts +++ b/packages/core/client/src/data-source/collection-template/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionTemplate'; export * from './CollectionTemplateManager'; diff --git a/packages/core/client/src/data-source/collection/AssociationProvider.tsx b/packages/core/client/src/data-source/collection/AssociationProvider.tsx index 9c7660b497..64091f7748 100644 --- a/packages/core/client/src/data-source/collection/AssociationProvider.tsx +++ b/packages/core/client/src/data-source/collection/AssociationProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext } from 'react'; import { CollectionFieldProvider, useCollectionField } from '../collection-field/CollectionFieldProvider'; import { CollectionDeletedPlaceholder } from '../components/CollectionDeletedPlaceholder'; diff --git a/packages/core/client/src/data-source/collection/Collection.ts b/packages/core/client/src/data-source/collection/Collection.ts index 27763b019a..fd1908b4e3 100644 --- a/packages/core/client/src/data-source/collection/Collection.ts +++ b/packages/core/client/src/data-source/collection/Collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaKey } from '@formily/react'; import { filter } from 'lodash'; diff --git a/packages/core/client/src/data-source/collection/CollectionManager.ts b/packages/core/client/src/data-source/collection/CollectionManager.ts index 5e5d5ac328..398f53a10a 100644 --- a/packages/core/client/src/data-source/collection/CollectionManager.ts +++ b/packages/core/client/src/data-source/collection/CollectionManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { SchemaKey } from '@formily/json-schema'; import type { DataSource } from '../data-source'; import type { CollectionFieldOptions, CollectionOptions, GetCollectionFieldPredicate } from './Collection'; diff --git a/packages/core/client/src/data-source/collection/CollectionManagerProvider.tsx b/packages/core/client/src/data-source/collection/CollectionManagerProvider.tsx index c3e7669cc0..bc252c0db2 100644 --- a/packages/core/client/src/data-source/collection/CollectionManagerProvider.tsx +++ b/packages/core/client/src/data-source/collection/CollectionManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import type { CollectionManager } from './CollectionManager'; import type { Collection } from './Collection'; diff --git a/packages/core/client/src/data-source/collection/CollectionProvider.tsx b/packages/core/client/src/data-source/collection/CollectionProvider.tsx index 4f94aec414..4d9c70c62a 100644 --- a/packages/core/client/src/data-source/collection/CollectionProvider.tsx +++ b/packages/core/client/src/data-source/collection/CollectionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import { CollectionFieldContext } from '../collection-field/CollectionFieldProvider'; diff --git a/packages/core/client/src/data-source/collection/ExtendCollectionsProvider.tsx b/packages/core/client/src/data-source/collection/ExtendCollectionsProvider.tsx index 1acfffb8e3..c08840e32a 100644 --- a/packages/core/client/src/data-source/collection/ExtendCollectionsProvider.tsx +++ b/packages/core/client/src/data-source/collection/ExtendCollectionsProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import { CollectionOptions } from './Collection'; import { useDataSourceKey } from '../data-source/DataSourceProvider'; diff --git a/packages/core/client/src/data-source/collection/index.ts b/packages/core/client/src/data-source/collection/index.ts index 9803f76051..0dd694adda 100644 --- a/packages/core/client/src/data-source/collection/index.ts +++ b/packages/core/client/src/data-source/collection/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Collection'; export * from './CollectionProvider'; export * from './AssociationProvider'; diff --git a/packages/core/client/src/data-source/collection/utils.ts b/packages/core/client/src/data-source/collection/utils.ts index a078ff8727..407119400a 100644 --- a/packages/core/client/src/data-source/collection/utils.ts +++ b/packages/core/client/src/data-source/collection/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Application } from '../../application/Application'; import type { CollectionOptions } from './Collection'; diff --git a/packages/core/client/src/data-source/components/CollectionDeletedPlaceholder.tsx b/packages/core/client/src/data-source/components/CollectionDeletedPlaceholder.tsx index aac31b26e1..fdf2aff562 100644 --- a/packages/core/client/src/data-source/components/CollectionDeletedPlaceholder.tsx +++ b/packages/core/client/src/data-source/components/CollectionDeletedPlaceholder.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { App, Button, Result, Typography } from 'antd'; import React, { FC, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/data-source/components/DataSourceApplicationProvider.tsx b/packages/core/client/src/data-source/components/DataSourceApplicationProvider.tsx index 4327f647d0..73234cdd91 100644 --- a/packages/core/client/src/data-source/components/DataSourceApplicationProvider.tsx +++ b/packages/core/client/src/data-source/components/DataSourceApplicationProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import type { DataSourceManager } from '../data-source/DataSourceManager'; import { DataSourceManagerProvider } from '../data-source/DataSourceManagerProvider'; diff --git a/packages/core/client/src/data-source/components/index.ts b/packages/core/client/src/data-source/components/index.ts index 0746410b76..b450616620 100644 --- a/packages/core/client/src/data-source/components/index.ts +++ b/packages/core/client/src/data-source/components/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionDeletedPlaceholder'; export * from './DataSourceApplicationProvider'; diff --git a/packages/core/client/src/data-source/data-block/DataBlockProvider.tsx b/packages/core/client/src/data-source/data-block/DataBlockProvider.tsx index e601624578..d0f6b85fed 100644 --- a/packages/core/client/src/data-source/data-block/DataBlockProvider.tsx +++ b/packages/core/client/src/data-source/data-block/DataBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; import { ACLCollectionProvider } from '../../acl/ACLProvider'; diff --git a/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx b/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx index 87ff04a352..20c6520473 100644 --- a/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx +++ b/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, createContext, useContext, useMemo } from 'react'; import _ from 'lodash'; diff --git a/packages/core/client/src/data-source/data-block/DataBlockResourceProvider.tsx b/packages/core/client/src/data-source/data-block/DataBlockResourceProvider.tsx index 124582af84..fd8753acf4 100644 --- a/packages/core/client/src/data-source/data-block/DataBlockResourceProvider.tsx +++ b/packages/core/client/src/data-source/data-block/DataBlockResourceProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { IResource } from '@nocobase/sdk'; import React, { FC, ReactNode, createContext, useContext, useMemo } from 'react'; diff --git a/packages/core/client/src/data-source/data-block/index.ts b/packages/core/client/src/data-source/data-block/index.ts index ae2ee6dd4e..6f93c17659 100644 --- a/packages/core/client/src/data-source/data-block/index.ts +++ b/packages/core/client/src/data-source/data-block/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './DataBlockResourceProvider'; export * from './DataBlockRequestProvider'; export * from './DataBlockProvider'; diff --git a/packages/core/client/src/data-source/data-source/DataSource.ts b/packages/core/client/src/data-source/data-source/DataSource.ts index 2787f98a44..a25503ddec 100644 --- a/packages/core/client/src/data-source/data-source/DataSource.ts +++ b/packages/core/client/src/data-source/data-source/DataSource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CollectionOptions } from '../collection'; import type { DataSourceManager } from './DataSourceManager'; diff --git a/packages/core/client/src/data-source/data-source/DataSourceManager.ts b/packages/core/client/src/data-source/data-source/DataSourceManager.ts index 96c78a4960..13f62fc82d 100644 --- a/packages/core/client/src/data-source/data-source/DataSourceManager.ts +++ b/packages/core/client/src/data-source/data-source/DataSourceManager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CollectionOptions, Collection } from '../collection'; import type { Application } from '../../application/Application'; diff --git a/packages/core/client/src/data-source/data-source/DataSourceManagerProvider.tsx b/packages/core/client/src/data-source/data-source/DataSourceManagerProvider.tsx index d467140845..4b09ee5eb5 100644 --- a/packages/core/client/src/data-source/data-source/DataSourceManagerProvider.tsx +++ b/packages/core/client/src/data-source/data-source/DataSourceManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext } from 'react'; import type { DataSourceManager } from './DataSourceManager'; diff --git a/packages/core/client/src/data-source/data-source/DataSourceProvider.tsx b/packages/core/client/src/data-source/data-source/DataSourceProvider.tsx index db344553e8..02f3f90485 100644 --- a/packages/core/client/src/data-source/data-source/DataSourceProvider.tsx +++ b/packages/core/client/src/data-source/data-source/DataSourceProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, ReactNode, createContext, useContext } from 'react'; import type { DataSource } from './DataSource'; import { useDataSourceManager } from './DataSourceManagerProvider'; diff --git a/packages/core/client/src/data-source/data-source/index.ts b/packages/core/client/src/data-source/data-source/index.ts index a7a651568c..8645612c50 100644 --- a/packages/core/client/src/data-source/data-source/index.ts +++ b/packages/core/client/src/data-source/data-source/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './DataSource'; export * from './DataSourceManager'; export * from './DataSourceProvider'; diff --git a/packages/core/client/src/data-source/index.ts b/packages/core/client/src/data-source/index.ts index 61fc100359..5bd59b6cce 100644 --- a/packages/core/client/src/data-source/index.ts +++ b/packages/core/client/src/data-source/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './collection'; export * from './collection-field'; export * from './collection-field-interface'; diff --git a/packages/core/client/src/data-source/utils.ts b/packages/core/client/src/data-source/utils.ts index cb068ad37e..bd472f4555 100644 --- a/packages/core/client/src/data-source/utils.ts +++ b/packages/core/client/src/data-source/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // import { CascaderProps } from 'antd'; import { useMemo } from 'react'; import { CollectionFieldOptions } from './collection'; diff --git a/packages/core/client/src/document-title/index.tsx b/packages/core/client/src/document-title/index.tsx index 1b0db6e971..ca8c128410 100644 --- a/packages/core/client/src/document-title/index.tsx +++ b/packages/core/client/src/document-title/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useEffect, useState } from 'react'; import { Helmet } from 'react-helmet'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/filter-provider/FilterProvider.tsx b/packages/core/client/src/filter-provider/FilterProvider.tsx index 05c0d1904a..443dade674 100644 --- a/packages/core/client/src/filter-provider/FilterProvider.tsx +++ b/packages/core/client/src/filter-provider/FilterProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { uniqBy } from 'lodash'; import React, { createContext, useCallback, useEffect, useRef } from 'react'; diff --git a/packages/core/client/src/filter-provider/__tests__/transformToFilter.ts b/packages/core/client/src/filter-provider/__tests__/transformToFilter.ts index ee3e26fe71..12d355e72a 100644 --- a/packages/core/client/src/filter-provider/__tests__/transformToFilter.ts +++ b/packages/core/client/src/filter-provider/__tests__/transformToFilter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { transformToFilter } from '../utils'; // TODO: 前端测试报错解决之后,把该文件重命名为 transformToFilter.test.ts diff --git a/packages/core/client/src/filter-provider/__tests__/useFilter.tsx b/packages/core/client/src/filter-provider/__tests__/useFilter.tsx index 7d085c6fc1..a1a25d9b9d 100644 --- a/packages/core/client/src/filter-provider/__tests__/useFilter.tsx +++ b/packages/core/client/src/filter-provider/__tests__/useFilter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@testing-library/react'; import React from 'react'; import { FilterBlockProvider, useFilterBlock } from '../FilterProvider'; diff --git a/packages/core/client/src/filter-provider/__tests__/utiles.test.ts b/packages/core/client/src/filter-provider/__tests__/utiles.test.ts index 3b4f688d70..024d20ab65 100644 --- a/packages/core/client/src/filter-provider/__tests__/utiles.test.ts +++ b/packages/core/client/src/filter-provider/__tests__/utiles.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getSupportFieldsByAssociation, getSupportFieldsByForeignKey } from '../utils'; describe('getSupportFieldsByAssociation', () => { diff --git a/packages/core/client/src/filter-provider/index.ts b/packages/core/client/src/filter-provider/index.ts index a564f40bb9..ad9598c03f 100644 --- a/packages/core/client/src/filter-provider/index.ts +++ b/packages/core/client/src/filter-provider/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FilterProvider'; export * from './utils'; diff --git a/packages/core/client/src/filter-provider/utils.ts b/packages/core/client/src/filter-provider/utils.ts index 65d3f7b755..397f3996ed 100644 --- a/packages/core/client/src/filter-provider/utils.ts +++ b/packages/core/client/src/filter-provider/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema, useFieldSchema } from '@formily/react'; import { flatten, getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; diff --git a/packages/core/client/src/flag-provider/FlagProvider.tsx b/packages/core/client/src/flag-provider/FlagProvider.tsx index b6cedae681..be14bac68f 100644 --- a/packages/core/client/src/flag-provider/FlagProvider.tsx +++ b/packages/core/client/src/flag-provider/FlagProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; export interface FlagProviderProps { diff --git a/packages/core/client/src/flag-provider/__tests__/flag-provider.test.tsx b/packages/core/client/src/flag-provider/__tests__/flag-provider.test.tsx index ff5aceb2cd..de57546f4a 100644 --- a/packages/core/client/src/flag-provider/__tests__/flag-provider.test.tsx +++ b/packages/core/client/src/flag-provider/__tests__/flag-provider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderHook } from '@nocobase/test/client'; import React from 'react'; import { FlagProvider } from '../FlagProvider'; diff --git a/packages/core/client/src/flag-provider/hooks/useFlag.ts b/packages/core/client/src/flag-provider/hooks/useFlag.ts index 7b7abf5cb2..40c0cdbeae 100644 --- a/packages/core/client/src/flag-provider/hooks/useFlag.ts +++ b/packages/core/client/src/flag-provider/hooks/useFlag.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import { FlagContext } from '../FlagProvider'; diff --git a/packages/core/client/src/flag-provider/index.tsx b/packages/core/client/src/flag-provider/index.tsx index 79a8492546..98b76b2fbe 100644 --- a/packages/core/client/src/flag-provider/index.tsx +++ b/packages/core/client/src/flag-provider/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FlagProvider'; export * from './hooks/useFlag'; diff --git a/packages/core/client/src/global-theme/AntdAppProvider.tsx b/packages/core/client/src/global-theme/AntdAppProvider.tsx index f516d4338a..980f78621b 100644 --- a/packages/core/client/src/global-theme/AntdAppProvider.tsx +++ b/packages/core/client/src/global-theme/AntdAppProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { App } from 'antd'; import React, { memo, useEffect } from 'react'; import { useAPIClient } from '../api-client'; diff --git a/packages/core/client/src/global-theme/compatOldTheme.ts b/packages/core/client/src/global-theme/compatOldTheme.ts index 1786ec7633..8a59c9c8c8 100644 --- a/packages/core/client/src/global-theme/compatOldTheme.ts +++ b/packages/core/client/src/global-theme/compatOldTheme.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import defaultTheme from './defaultTheme'; import { ThemeConfig } from './type'; diff --git a/packages/core/client/src/global-theme/customAlgorithm.ts b/packages/core/client/src/global-theme/customAlgorithm.ts index ce800f7233..11c6ccfde2 100644 --- a/packages/core/client/src/global-theme/customAlgorithm.ts +++ b/packages/core/client/src/global-theme/customAlgorithm.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MappingAlgorithm, theme } from 'antd'; import { ThemeConfig } from './type'; diff --git a/packages/core/client/src/global-theme/defaultTheme.ts b/packages/core/client/src/global-theme/defaultTheme.ts index 699a882034..990958a4e0 100644 --- a/packages/core/client/src/global-theme/defaultTheme.ts +++ b/packages/core/client/src/global-theme/defaultTheme.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ThemeConfig } from './type'; const defaultTheme: ThemeConfig = { diff --git a/packages/core/client/src/global-theme/index.tsx b/packages/core/client/src/global-theme/index.tsx index 84db6185db..592f50642b 100644 --- a/packages/core/client/src/global-theme/index.tsx +++ b/packages/core/client/src/global-theme/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ConfigProvider, theme as antdTheme } from 'antd'; import _ from 'lodash'; import React, { createContext, useCallback, useMemo, useRef } from 'react'; diff --git a/packages/core/client/src/global-theme/type.ts b/packages/core/client/src/global-theme/type.ts index 2853e46851..d41b7ffee1 100644 --- a/packages/core/client/src/global-theme/type.ts +++ b/packages/core/client/src/global-theme/type.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ThemeConfig as _ThemeConfig } from 'antd'; import { AliasToken } from 'antd/es/theme/internal'; diff --git a/packages/core/client/src/hooks/index.ts b/packages/core/client/src/hooks/index.ts index 5f1aed6833..a9b4d27471 100644 --- a/packages/core/client/src/hooks/index.ts +++ b/packages/core/client/src/hooks/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useAdminSchemaUid'; export * from './useViewport'; diff --git a/packages/core/client/src/hooks/useAdminSchemaUid.ts b/packages/core/client/src/hooks/useAdminSchemaUid.ts index b5fb7ad3ef..2938f7facc 100644 --- a/packages/core/client/src/hooks/useAdminSchemaUid.ts +++ b/packages/core/client/src/hooks/useAdminSchemaUid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const useAdminSchemaUid = () => { return 'nocobase-admin-menu'; }; diff --git a/packages/core/client/src/hooks/useMenuItem.tsx b/packages/core/client/src/hooks/useMenuItem.tsx index a83318d732..02274aa0ce 100644 --- a/packages/core/client/src/hooks/useMenuItem.tsx +++ b/packages/core/client/src/hooks/useMenuItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuProps } from 'antd'; import _ from 'lodash'; import React, { createContext, ReactNode, useCallback, useContext, useRef } from 'react'; diff --git a/packages/core/client/src/hooks/useViewport.ts b/packages/core/client/src/hooks/useViewport.ts index 65070c7e79..a6f2fdf7b5 100644 --- a/packages/core/client/src/hooks/useViewport.ts +++ b/packages/core/client/src/hooks/useViewport.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect, useRef } from 'react'; const useViewportMeta = () => { diff --git a/packages/core/client/src/i18n/i18n.ts b/packages/core/client/src/i18n/i18n.ts index 7bade9b974..6ff6829e3a 100644 --- a/packages/core/client/src/i18n/i18n.ts +++ b/packages/core/client/src/i18n/i18n.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import i18next, { TFuncKey, TOptions } from 'i18next'; import { initReactI18next } from 'react-i18next'; import locale from '../locale'; diff --git a/packages/core/client/src/i18n/index.ts b/packages/core/client/src/i18n/index.ts index e82230f1bf..5d83484458 100644 --- a/packages/core/client/src/i18n/index.ts +++ b/packages/core/client/src/i18n/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './i18n'; diff --git a/packages/core/client/src/icon/Icon.tsx b/packages/core/client/src/icon/Icon.tsx index 8b9a226e76..dc69d689bb 100644 --- a/packages/core/client/src/icon/Icon.tsx +++ b/packages/core/client/src/icon/Icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as antIcons from '@ant-design/icons'; import AntdIcon, { createFromIconfontCN } from '@ant-design/icons'; import React from 'react'; diff --git a/packages/core/client/src/icon/__tests__/icon.test.tsx b/packages/core/client/src/icon/__tests__/icon.test.tsx index 8adedd5b9c..12a1f49de5 100644 --- a/packages/core/client/src/icon/__tests__/icon.test.tsx +++ b/packages/core/client/src/icon/__tests__/icon.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/antd-icon'; diff --git a/packages/core/client/src/icon/demos/antd-icon.tsx b/packages/core/client/src/icon/demos/antd-icon.tsx index 73bbf14000..b0aa9ac38f 100644 --- a/packages/core/client/src/icon/demos/antd-icon.tsx +++ b/packages/core/client/src/icon/demos/antd-icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/icon/demos/custom-icon.tsx b/packages/core/client/src/icon/demos/custom-icon.tsx index c9ea301569..d53198fefb 100644 --- a/packages/core/client/src/icon/demos/custom-icon.tsx +++ b/packages/core/client/src/icon/demos/custom-icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/icon/demos/iconfont.tsx b/packages/core/client/src/icon/demos/iconfont.tsx index 0c323873ed..8227b1eccb 100644 --- a/packages/core/client/src/icon/demos/iconfont.tsx +++ b/packages/core/client/src/icon/demos/iconfont.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/icon/demos/register-icon.tsx b/packages/core/client/src/icon/demos/register-icon.tsx index 0209b3352b..46147efe4c 100644 --- a/packages/core/client/src/icon/demos/register-icon.tsx +++ b/packages/core/client/src/icon/demos/register-icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/icon/index.ts b/packages/core/client/src/icon/index.ts index e263cc0e6d..6129ec25e1 100644 --- a/packages/core/client/src/icon/index.ts +++ b/packages/core/client/src/icon/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Icon'; diff --git a/packages/core/client/src/index.ts b/packages/core/client/src/index.ts index edf5dc1e28..e38c4978c2 100644 --- a/packages/core/client/src/index.ts +++ b/packages/core/client/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // 解决 build 报 dayjs 相关类型错误的问题 import 'dayjs/plugin/isBetween'; import 'dayjs/plugin/isSameOrAfter'; diff --git a/packages/core/client/src/locale/index.ts b/packages/core/client/src/locale/index.ts index cce90aab24..8723e05f3f 100644 --- a/packages/core/client/src/locale/index.ts +++ b/packages/core/client/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export type LocaleOptions = { label: string; }; diff --git a/packages/core/client/src/modules/actions/ActionSchemaToolbar.tsx b/packages/core/client/src/modules/actions/ActionSchemaToolbar.tsx index fa57d2b848..eacda1c5c5 100644 --- a/packages/core/client/src/modules/actions/ActionSchemaToolbar.tsx +++ b/packages/core/client/src/modules/actions/ActionSchemaToolbar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaToolbar } from '../../schema-settings/GeneralSchemaDesigner'; diff --git a/packages/core/client/src/modules/actions/__e2e__/action.schemaSetting.test.ts b/packages/core/client/src/modules/actions/__e2e__/action.schemaSetting.test.ts index 5eface9545..9502928ec6 100644 --- a/packages/core/client/src/modules/actions/__e2e__/action.schemaSetting.test.ts +++ b/packages/core/client/src/modules/actions/__e2e__/action.schemaSetting.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { OneTableWithDelete } from './templates'; test.describe('action settings', () => { diff --git a/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/basic.test.ts b/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/basic.test.ts index a15686af9c..09d5b64a89 100644 --- a/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/basic.test.ts +++ b/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/basic.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableWithGeneral } from './templates'; diff --git a/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/templates.ts b/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/templates.ts index 4c35ecfd15..9b33ad0b60 100644 --- a/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/templates.ts +++ b/packages/core/client/src/modules/actions/__e2e__/bulk-destroy/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const oneTableWithGeneral = { collections: [ { diff --git a/packages/core/client/src/modules/actions/__e2e__/templates.ts b/packages/core/client/src/modules/actions/__e2e__/templates.ts index 28ff3a1f03..d945d69de9 100644 --- a/packages/core/client/src/modules/actions/__e2e__/templates.ts +++ b/packages/core/client/src/modules/actions/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const OneTableWithDelete = { collections: [ { diff --git a/packages/core/client/src/modules/actions/add-child/CreateChildInitializer.tsx b/packages/core/client/src/modules/actions/add-child/CreateChildInitializer.tsx index 50f58298dc..f9c4b81d9e 100644 --- a/packages/core/client/src/modules/actions/add-child/CreateChildInitializer.tsx +++ b/packages/core/client/src/modules/actions/add-child/CreateChildInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; export const CreateChildInitializer = (props) => { diff --git a/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx b/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx index 0298db713c..c69de3eb8a 100644 --- a/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx +++ b/packages/core/client/src/modules/actions/add-child/addChildActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useMemo } from 'react'; import { useSchemaToolbar } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/add-new/CreateActionInitializer.tsx b/packages/core/client/src/modules/actions/add-new/CreateActionInitializer.tsx index c2c10691a9..19f6878c63 100644 --- a/packages/core/client/src/modules/actions/add-new/CreateActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/add-new/CreateActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useSchemaInitializerItem } from '../../../application'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/add-new/addNewActionSettings.tsx b/packages/core/client/src/modules/actions/add-new/addNewActionSettings.tsx index 392ea66993..e53c9dd311 100644 --- a/packages/core/client/src/modules/actions/add-new/addNewActionSettings.tsx +++ b/packages/core/client/src/modules/actions/add-new/addNewActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx b/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx index 04c6a26602..a593a8f2ea 100644 --- a/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx +++ b/packages/core/client/src/modules/actions/add-new/createFormBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../application/schema-initializer/CompatibleSchemaInitializer'; import { gridRowColWrap } from '../../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/actions/add-record/CustomizeAddRecordActionInitializer.tsx b/packages/core/client/src/modules/actions/add-record/CustomizeAddRecordActionInitializer.tsx index 5538e59c73..bd316a5d05 100644 --- a/packages/core/client/src/modules/actions/add-record/CustomizeAddRecordActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/add-record/CustomizeAddRecordActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useSchemaInitializerItem } from '../../../application'; import { BlockInitializer } from '../../../schema-initializer/items/BlockInitializer'; diff --git a/packages/core/client/src/modules/actions/add-record/customizeAddRecordActionSettings.tsx b/packages/core/client/src/modules/actions/add-record/customizeAddRecordActionSettings.tsx index 161621e352..25476a2331 100644 --- a/packages/core/client/src/modules/actions/add-record/customizeAddRecordActionSettings.tsx +++ b/packages/core/client/src/modules/actions/add-record/customizeAddRecordActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { ButtonEditor, RemoveButton } from '../../../schema-component/antd/action/Action.Designer'; diff --git a/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx b/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx index ba06701842..e291241a3e 100644 --- a/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx +++ b/packages/core/client/src/modules/actions/add-record/customizeCreateFormBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../application/schema-initializer/CompatibleSchemaInitializer'; import { gridRowColWrap } from '../../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/actions/bulk-destroy/BulkDestroyActionInitializer.tsx b/packages/core/client/src/modules/actions/bulk-destroy/BulkDestroyActionInitializer.tsx index 4238a9134d..e478f52310 100644 --- a/packages/core/client/src/modules/actions/bulk-destroy/BulkDestroyActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/bulk-destroy/BulkDestroyActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/actions/bulk-destroy/bulkDeleteActionSettings.tsx b/packages/core/client/src/modules/actions/bulk-destroy/bulkDeleteActionSettings.tsx index 43e0472f48..be35280a42 100644 --- a/packages/core/client/src/modules/actions/bulk-destroy/bulkDeleteActionSettings.tsx +++ b/packages/core/client/src/modules/actions/bulk-destroy/bulkDeleteActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { diff --git a/packages/core/client/src/modules/actions/delete/DestroyActionInitializer.tsx b/packages/core/client/src/modules/actions/delete/DestroyActionInitializer.tsx index e51c43fab7..6429f3446e 100644 --- a/packages/core/client/src/modules/actions/delete/DestroyActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/delete/DestroyActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/delete/deleteActionSettings.tsx b/packages/core/client/src/modules/actions/delete/deleteActionSettings.tsx index c8c10b4841..82605d81ad 100644 --- a/packages/core/client/src/modules/actions/delete/deleteActionSettings.tsx +++ b/packages/core/client/src/modules/actions/delete/deleteActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/actions/disassociate/DisassociateActionInitializer.tsx b/packages/core/client/src/modules/actions/disassociate/DisassociateActionInitializer.tsx index b2da9ece27..33f4e7a890 100644 --- a/packages/core/client/src/modules/actions/disassociate/DisassociateActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/disassociate/DisassociateActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/disassociate/__e2e__/disassociate.test.ts b/packages/core/client/src/modules/actions/disassociate/__e2e__/disassociate.test.ts index 582f0c92ac..376aeb25cb 100644 --- a/packages/core/client/src/modules/actions/disassociate/__e2e__/disassociate.test.ts +++ b/packages/core/client/src/modules/actions/disassociate/__e2e__/disassociate.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { test, expect } from '@nocobase/test/e2e'; import { disassociatePage } from './templatesOfPage'; diff --git a/packages/core/client/src/modules/actions/disassociate/__e2e__/templatesOfPage.ts b/packages/core/client/src/modules/actions/disassociate/__e2e__/templatesOfPage.ts index 0ce1ffdd84..9893105e7f 100644 --- a/packages/core/client/src/modules/actions/disassociate/__e2e__/templatesOfPage.ts +++ b/packages/core/client/src/modules/actions/disassociate/__e2e__/templatesOfPage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const disassociatePage: PageConfig = { diff --git a/packages/core/client/src/modules/actions/disassociate/disassociateActionSettings.tsx b/packages/core/client/src/modules/actions/disassociate/disassociateActionSettings.tsx index 8263979203..bfffdcbee2 100644 --- a/packages/core/client/src/modules/actions/disassociate/disassociateActionSettings.tsx +++ b/packages/core/client/src/modules/actions/disassociate/disassociateActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/actions/expand-collapse/ExpandableActionInitializer.tsx b/packages/core/client/src/modules/actions/expand-collapse/ExpandableActionInitializer.tsx index cf1fcfd812..859f079da4 100644 --- a/packages/core/client/src/modules/actions/expand-collapse/ExpandableActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/expand-collapse/ExpandableActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx b/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx index 7d2274a5a8..be6e5a8c9d 100644 --- a/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx +++ b/packages/core/client/src/modules/actions/expand-collapse/expendableActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/actions/filter/FilterActionInitializer.tsx b/packages/core/client/src/modules/actions/filter/FilterActionInitializer.tsx index cae54d7fa8..c4bbc2a47b 100644 --- a/packages/core/client/src/modules/actions/filter/FilterActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/filter/FilterActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx b/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx index a57248b941..30e1197f13 100644 --- a/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx +++ b/packages/core/client/src/modules/actions/filter/filterActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/actions/refresh/RefreshActionInitializer.tsx b/packages/core/client/src/modules/actions/refresh/RefreshActionInitializer.tsx index 308313a058..cd47bbe34e 100644 --- a/packages/core/client/src/modules/actions/refresh/RefreshActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/refresh/RefreshActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/refresh/refreshActionSettings.tsx b/packages/core/client/src/modules/actions/refresh/refreshActionSettings.tsx index 0c22b3333f..b8b31acada 100644 --- a/packages/core/client/src/modules/actions/refresh/refreshActionSettings.tsx +++ b/packages/core/client/src/modules/actions/refresh/refreshActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { ButtonEditor, RemoveButton, SecondConFirm } from '../../../schema-component/antd/action/Action.Designer'; diff --git a/packages/core/client/src/modules/actions/save-record/SaveRecordActionInitializer.tsx b/packages/core/client/src/modules/actions/save-record/SaveRecordActionInitializer.tsx index 561016b07a..89ce519b94 100644 --- a/packages/core/client/src/modules/actions/save-record/SaveRecordActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/save-record/SaveRecordActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { BlockInitializer } from '../../../schema-initializer/items'; import { useSchemaInitializerItem } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx b/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx index ad50de97ba..b9921c3d6f 100644 --- a/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx +++ b/packages/core/client/src/modules/actions/save-record/customizeSaveRecordActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { isValid } from '@formily/shared'; import { useSchemaToolbar } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/submit/CreateSubmitActionInitializer.tsx b/packages/core/client/src/modules/actions/submit/CreateSubmitActionInitializer.tsx index e06d23e122..a95b7dcba1 100644 --- a/packages/core/client/src/modules/actions/submit/CreateSubmitActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/submit/CreateSubmitActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx b/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx index 9083d1b2fc..67b5ff1beb 100644 --- a/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx b/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx index a7ec64efbd..4f2662e1e5 100644 --- a/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx +++ b/packages/core/client/src/modules/actions/submit/createSubmitActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema, useField, connect, mapProps, ISchema } from '@formily/react'; import { isValid } from '@formily/shared'; import React, { useEffect, useState } from 'react'; diff --git a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx index c1adee749c..2e20e1ab6b 100644 --- a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx +++ b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { isValid } from '@formily/shared'; import { isInitializersSame, useSchemaToolbar } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/update-record/UpdateRecordActionInitializer.tsx b/packages/core/client/src/modules/actions/update-record/UpdateRecordActionInitializer.tsx index 3671e390d0..eb4f6640c7 100644 --- a/packages/core/client/src/modules/actions/update-record/UpdateRecordActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/update-record/UpdateRecordActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { BlockInitializer } from '../../../schema-initializer/items'; import { useSchemaInitializerItem } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx b/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx index 8a3b0ab37d..4464f86824 100644 --- a/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx +++ b/packages/core/client/src/modules/actions/update-record/customizeUpdateRecordActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isValid } from '@formily/shared'; import { useFieldSchema } from '@formily/react'; import { useSchemaToolbar } from '../../../application'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/PopupActionInitializer.tsx b/packages/core/client/src/modules/actions/view-edit-popup/PopupActionInitializer.tsx index cb6f5f21b7..e72b28b9b0 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/PopupActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/PopupActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useSchemaInitializerItem } from '../../../application'; import { BlockInitializer } from '../../../schema-initializer/items'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/RecordFormBlockInitializers.tsx b/packages/core/client/src/modules/actions/view-edit-popup/RecordFormBlockInitializers.tsx index b338cdfc49..7981ef2f58 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/RecordFormBlockInitializers.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/RecordFormBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '../../../application/schema-initializer/SchemaInitializer'; import { gridRowColWrap } from '../../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/UpdateActionInitializer.tsx b/packages/core/client/src/modules/actions/view-edit-popup/UpdateActionInitializer.tsx index 4e4635da4e..1f4d694255 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/UpdateActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/UpdateActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/ViewActionInitializer.tsx b/packages/core/client/src/modules/actions/view-edit-popup/ViewActionInitializer.tsx index bf6347d28d..1d1cf0015e 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/ViewActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/ViewActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '../../../schema-initializer/items/ActionInitializer'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/linkageRules.test.ts b/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/linkageRules.test.ts index 91546623b9..5fafc9e259 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/linkageRules.test.ts +++ b/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/linkageRules.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T3910 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/templatesOfBug.ts index 2880cd94aa..f0c7c9f706 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/actions/view-edit-popup/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const T3910: PageConfig = { diff --git a/packages/core/client/src/modules/actions/view-edit-popup/customizePopupActionSettings.tsx b/packages/core/client/src/modules/actions/view-edit-popup/customizePopupActionSettings.tsx index 454872f073..d88525acd6 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/customizePopupActionSettings.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/customizePopupActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/editActionSettings.tsx b/packages/core/client/src/modules/actions/view-edit-popup/editActionSettings.tsx index ebb7dc7475..2531d1a3fd 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/editActionSettings.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/editActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/actions/view-edit-popup/viewActionSettings.tsx b/packages/core/client/src/modules/actions/view-edit-popup/viewActionSettings.tsx index 1f94d08d9f..7d705b93e1 100644 --- a/packages/core/client/src/modules/actions/view-edit-popup/viewActionSettings.tsx +++ b/packages/core/client/src/modules/actions/view-edit-popup/viewActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useSchemaToolbar } from '../../../application'; import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/BlockSchemaToolbar.tsx b/packages/core/client/src/modules/blocks/BlockSchemaToolbar.tsx index 3168e79beb..216f52872e 100644 --- a/packages/core/client/src/modules/blocks/BlockSchemaToolbar.tsx +++ b/packages/core/client/src/modules/blocks/BlockSchemaToolbar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { Collection, useCollectionManager, useDataBlockProps } from '../../data-source'; diff --git a/packages/core/client/src/modules/blocks/__tests__/BlockSchemaToolbar.test.tsx b/packages/core/client/src/modules/blocks/__tests__/BlockSchemaToolbar.test.tsx index 4916159e28..93513f72f6 100644 --- a/packages/core/client/src/modules/blocks/__tests__/BlockSchemaToolbar.test.tsx +++ b/packages/core/client/src/modules/blocks/__tests__/BlockSchemaToolbar.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../../../data-source/collection/Collection'; import { getCollectionTitle } from '../BlockSchemaToolbar'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx index e0619a4c46..009c097735 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; /** diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.tsx index aabb6247e7..df42e2e6f3 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.ts index 46701af977..1530e1694a 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyDetailsBlock, test } from '@nocobase/test/e2e'; import { oneEmptyTableWithUsers } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.ts index d2acc5228e..aa4eb3b531 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneDetailBlockWithM2oFieldToGeneral, diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/setDataLoadingModeSettingsItem.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/setDataLoadingModeSettingsItem.test.ts index 1026314cda..a53ec7dfa6 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/setDataLoadingModeSettingsItem.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/setDataLoadingModeSettingsItem.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { tableListDetailsGridCardWithUsers } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.ts index fdc5b33fb6..8afbf69489 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const oneEmptyTableWithUsers = { pageSchema: { _isJSONSchemaObject: true, diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.ts index 2bfc879767..7384bda659 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createDetailsWithPaginationUISchema } from '../createDetailsWithPaginationUISchema'; vi.mock('@formily/shared', () => ({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts index 0091625925..d48f5dda67 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx index db80511c9d..2b7f2f666d 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationBlockParams.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationBlockParams.ts index e96cd4f7ac..99c4ccec53 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationBlockParams.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationBlockParams.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useParsedFilter } from '../../../../../block-provider/hooks/useParsedFilter'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.ts index 4814602351..d57f58e695 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParentRecordCommon } from '../../../useParentRecordCommon'; import { useDetailsWithPaginationBlockParams } from './useDetailsWithPaginationBlockParams'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.ts b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.ts index 675c97518d..a56ace2437 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useDetailsBlockProps } from '../../../../../block-provider/DetailsBlockProvider'; export function useDetailsWithPaginationProps() { diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx index 20707d7c17..626706601f 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx index fa5227a375..0ff48397f9 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager/hooks/useCollection_deprecated'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx index 05396d58da..29516b4095 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.tsx index 18b3ea249d..e39ca6444d 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.ts index 7dd9b2727b..45e2c4bf32 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, expectSettingsMenu, oneEmptyTableBlockWithActions, test } from '@nocobase/test/e2e'; import { T3848 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.ts index 8372adaea6..7d6a6cbec2 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndBasicFields, test } from '@nocobase/test/e2e'; test.describe('single details block schema settings', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.ts index d94bb6d795..abe9e83da1 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const T3848: PageConfig = { diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.ts index a8560272e6..ac05adf40f 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createDetailsUISchema } from '../createDetailsUISchema'; // Mock uid to always return a fixed value diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts index 1e211a755f..914565ae77 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/createDetailsUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts index 999109fff7..d00463d30b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/detailsBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts index 079c738eba..20d4967f6b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useParamsFromRecord } from '../../../../../block-provider/BlockProvider'; import { diff --git a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.ts b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.ts index 69bacd8547..210590e543 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useDetailsBlockProps } from '../../../../../block-provider/DetailsBlockProvider'; export function useDetailsProps() { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/CreateFormBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/CreateFormBlockInitializer.tsx index a210d497ac..3082c6aa19 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/CreateFormBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/CreateFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React from 'react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/FormBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/FormBlockInitializer.tsx index 0dd98c7328..e233b22444 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/FormBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/FormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/FormItemSchemaToolbar.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/FormItemSchemaToolbar.tsx index fdaa2dbfc4..22d090998a 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/FormItemSchemaToolbar.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/FormItemSchemaToolbar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaToolbar } from '../../../../schema-settings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/RecordFormBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/RecordFormBlockInitializer.tsx index ac86544660..e4397d4152 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/RecordFormBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/RecordFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.ts index d6fbf9e96b..ff1e4a5dd9 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { deleteRecords, expect, test } from '@nocobase/test/e2e'; import { T3529, T3953, T3979 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.ts index f78366e743..bb4031fc12 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneFormBlockBasedOnUsers, test } from '@nocobase/test/e2e'; test('fields', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.ts index 0f43aa9c3f..c5d2be9087 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneFormWithMultiLevelAssociationFields, diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.ts index d99c6fd732..ae8f74169f 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, formBlockDefaultValueTemplate, test } from '@nocobase/test/e2e'; test.describe('variables with default value', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts index c37523c8f2..6c164f2d3f 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { createBlockInPage, expect, oneEmptyForm, test } from '@nocobase/test/e2e'; import { oneEmptyTableWithUsers } from '../../../details-multi/__e2e__/templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.ts index a8f7263ff1..9aff0b579e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.ts index b1eaef81da..7c6ed59fc5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig, generalWithM2oSingleSelect, generalWithMultiLevelM2mFields } from '@nocobase/test/e2e'; export const T2165 = { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/bulkEditForm.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/bulkEditForm.test.ts index c8b345b5c3..ab3a456550 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/bulkEditForm.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/bulkEditForm.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T3924 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/deprecatedVariables.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/deprecatedVariables.test.ts index 920b3b94ff..8e27ae035c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/deprecatedVariables.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/deprecatedVariables.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableWithUsersForDeprecatedVariables } from '../form-create/templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.ts index d271943481..ae16724810 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyTableBlockWithActions, test } from '@nocobase/test/e2e'; import { T3848 } from '../../../details-single/__e2e__/templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.ts index 700dcddc3b..3a92720b36 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.ts index f0c2a17384..65bfee8178 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const T3825: PageConfig = { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.ts index e1daebb3ba..6bd37ddc6d 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CreateFormBlockUISchemaOptions, createCreateFormBlockUISchema } from '../createCreateFormBlockUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts index 8ff9615cd8..06ee5d9791 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { createEditFormBlockUISchema } from '../createEditFormBlockUISchema'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/fieldSettingsFormItem.test.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/fieldSettingsFormItem.test.tsx index 04409ee5ef..11fb3eadc8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/fieldSettingsFormItem.test.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/__tests__/fieldSettingsFormItem.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, checkSettings, diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts index cd399656ee..79b46cd93e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts index 7ab4b7b1bc..40e03bd54b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createEditFormBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx index e512a0a77b..e1445d2d3c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; /** diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx index f06ec43b9f..27534d7601 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/createFormBlockSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFormBlockContext } from '../../../../block-provider'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts index f12f6a9a8d..81c23db1fa 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/editFormBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { useFormBlockContext } from '../../../../block-provider'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx index 5cf95d7f59..d5b8e87f72 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/fieldSettingsFormItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { ISchema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/formActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/formActionInitializers.tsx index 8ff1272524..e01bba54af 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/formActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/formActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '../../../../application/schema-initializer/SchemaInitializer'; /** diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx index accc784a1a..f37f5c7ebd 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/formItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { AssociatedFields, ParentCollectionFields } from '../../../../schema-initializer/buttons/FormItemInitializers'; import { gridRowColWrap, useFormItemInitializerFields } from '../../../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.ts index d08ec5fb00..9a386b7d25 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParentRecordCommon } from '../../../useParentRecordCommon'; export function useCreateFormBlockDecoratorProps(props) { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.ts b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.ts index 992e8ed528..04f6146e9c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFormBlockProps } from '../../../../../block-provider/FormBlockProvider'; export function useCreateFormBlockProps() { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.ts index fdf1bd7d94..fc1c2ac297 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParamsFromRecord } from '../../../../../block-provider/BlockProvider'; import { useDetailsParentRecord } from '../../details-single/hooks/useDetailsDecoratorProps'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.ts b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.ts index 840a02da1d..b14581d866 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFormBlockProps } from '../../../../../block-provider/FormBlockProvider'; export function useEditFormBlockProps() { diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/index.ts b/packages/core/client/src/modules/blocks/data-blocks/form/index.ts index 4e579df300..c9a1202129 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/index.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/form/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CreateFormBlockInitializer'; export * from './FormBlockInitializer'; export * from './FormItemSchemaToolbar'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx index 89687319c7..3020f820ae 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/form/updateFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; /** diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx index 072aef25a7..2c82134483 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.tsx index 772fd83358..f38057bc5d 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { OrderedListOutlined } from '@ant-design/icons'; import React from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.ts index ddc4759358..55f7fb1839 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyGridCardBlock, test } from '@nocobase/test/e2e'; import { oneEmptyTableWithUsers } from '../../details-multi/__e2e__/templatesOfBug'; import { oneGridCardWithInheritFields } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.ts index 9b33c7e509..c9547186ba 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, oneEmptyGridCardBlock, test } from '@nocobase/test/e2e'; import { T3813 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.ts index 4912ca56ab..5b0d23ebc3 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig, generalWithM2oSingleSelect } from '@nocobase/test/e2e'; export const T3813: PageConfig = { diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.ts index 435b4e190a..4c500221c2 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createGridCardBlockUISchema } from '../createGridCardBlockUISchema'; describe('createGridCardBlockSchema', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.ts index 08e747d0e1..869443b5a1 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; export const createGridCardBlockUISchema = (options: { diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts index 134b28bc99..3fed6d27ad 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema } from '@formily/json-schema'; import { useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx index aa7a78a871..3fee3def3a 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.ts index e2fc62dab3..12cf352b77 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParentRecordCommon } from '../../../useParentRecordCommon'; import { useGridCardBlockParams } from './useGridCardBlockParams'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.ts index 1edcac117a..cd166da8c5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParsedFilter } from '../../../../../block-provider/hooks/useParsedFilter'; import { useMemo } from 'react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/grid-card/utils.ts b/packages/core/client/src/modules/blocks/data-blocks/grid-card/utils.ts index b8b1b31a8c..03df3a1ae8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/grid-card/utils.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/grid-card/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const columnCountMarks = [1, 2, 3, 4, 6, 8, 12, 24].reduce((obj, cur) => { obj[cur] = cur; return obj; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx index 6ac4b88916..6e6891a9d5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/list/ListActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/ListBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/list/ListBlockInitializer.tsx index d360e20209..4e9e48dd22 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/ListBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/list/ListBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { OrderedListOutlined } from '@ant-design/icons'; import React from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.ts index 60f448ad3c..53917f708f 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyListBlock, test } from '@nocobase/test/e2e'; import { oneEmptyTableWithUsers } from '../../details-multi/__e2e__/templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.ts index 6186724a73..1bb977926e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneEmptyListBlock, test } from '@nocobase/test/e2e'; test.describe('list block schema settings', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.ts index cadc3a1e5b..11527ca1cf 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createListBlockUISchema } from '../createListBlockUISchema'; describe('createListBlockSchema', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockUISchema.ts index 95b7aaf0f2..bd82488da7 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/createListBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; export const createListBlockUISchema = (options: { diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.ts index 0d4a137581..4944874fb5 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParentRecordCommon } from '../../../useParentRecordCommon'; export function useListBlockDecoratorProps(props) { diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts index 627700a88d..fdc1bac618 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/list/listBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx index e630f1fd8f..54c43df806 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/list/listItemActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.tsx index 908a2894a5..c9fadcb6b7 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React from 'react'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.ts index a4d333bedc..6360d5bfb8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, test } from '@nocobase/test/e2e'; import { createTable } from './utils'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.ts index b43b71dcb1..5236efda81 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, test, expect } from '@nocobase/test/e2e'; import { createTable } from './utils'; import { tableSelectorDataScopeVariable } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.ts index c649e89e51..36c11e5cf4 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; const commonCollections = [ diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/utils.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/utils.ts index 574ee01210..df8be160cd 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/utils.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NocoPage, Page, PageConfig, oneFormBlockWithAllAssociationFieldsAndSelectorMode } from '@nocobase/test/e2e'; export async function createTable({ diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.ts index 1821c60790..65c132f7ed 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createTableSelectorUISchema } from '../createTableSelectorUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts index 3fb226e4b3..5ad784c478 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.ts index 634013b9a0..2e9e31a606 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function useTableSelectorDecoratorProps() {} diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/index.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/index.ts index 4b3e254fbb..37da6bdb50 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/index.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './TableSelectorInitializer'; export * from './tableSelectorBlockSettings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts b/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts index 7b183f3736..1395f1aac8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { cloneDeep } from 'lodash'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx index 714adc186e..77ca5d3992 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionColumnInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { ISchema, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx index 59398b951f..2aba165eb8 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { useCollection_deprecated } from '../../../../collection-manager/hooks/useCollection_deprecated'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableBlockInitializer.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableBlockInitializer.tsx index fb3179fdcd..77291a12da 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application/schema-initializer/context'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx index ac8fb85696..5ff60ca160 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.tsx index 39365850e4..c5495affd3 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaToolbar } from '../../../../schema-settings'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/TreeRecordProvider.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/TreeRecordProvider.tsx index efcc9ed696..6c7d7f5fee 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/TreeRecordProvider.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/TreeRecordProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, createContext } from 'react'; interface TreeRecordContextProps { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.ts index b74e33433c..5bb3aa3fda 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T2187 } from '../templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.ts index 48cbc840d0..218b26cde2 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T2183, T2186 } from '../templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.ts index f458cfabbe..0c038b1dbe 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { checkboxForTableRow, expect, test } from '@nocobase/test/e2e'; test('selects the checkbox of a table row and deletes the selected row', async ({ page, mockPage, mockRecords }) => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.ts index 750b8d8162..45d21be062 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyTableBlockBasedOnUsers, test } from '@nocobase/test/e2e'; // 该测试总是在 CI 环境失败,但是本地运行是正常的,原因未知,现 skip 处理 diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/pagination.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/pagination.test.ts index f924d1f615..3f322bbe20 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/pagination.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/pagination.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; test.describe('pagination', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.ts index 330aab77b0..61ea4845bd 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyTable, test } from '@nocobase/test/e2e'; import { T3686, T4005, oneTableWithInheritFields } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.ts index ec13eff545..4f1998cf0c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings2.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings2.test.ts index cf7ddd5e75..a6eb68f628 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings2.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/schemaSettings2.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; test.describe('save as template', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.ts index b015d092b5..3ed50b488b 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const T2183 = { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.ts index 8f35b34a13..3b098a4e26 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, expectSettingsMenu, oneEmptyTableWithTreeCollection, test } from '@nocobase/test/e2e'; test.describe('tree table block schema settings', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.ts b/packages/core/client/src/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.ts index 8a0b724b9a..3e72f5e28e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createTableBlockUISchema } from '../createTableBlockUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts b/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts index 891ae71327..66457e0b7c 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/createTableBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts index d89bd2cfa5..b18fe231ac 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useMemo } from 'react'; import { useParsedFilter } from '../../../../../block-provider/hooks/useParsedFilter'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx index d5fdc12ab4..2bad8e5c08 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { isEqual } from 'lodash'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/index.ts b/packages/core/client/src/modules/blocks/data-blocks/table/index.ts index 5b35a76b89..646b14e223 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/index.ts +++ b/packages/core/client/src/modules/blocks/data-blocks/table/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './TableActionColumnInitializers'; export * from './TableActionInitializers'; export * from './TableBlockInitializer'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx index 37869739b1..ec8ee6d3d6 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/tableBlockSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { useField, useFieldSchema } from '@formily/react'; import { useAPIClient } from '../../../../api-client'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx index e951663dec..4b331d6f76 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/tableColumnSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx index de54e3c7a7..24c6b706e9 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useIsFileField } from '../../../../schema-component'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts index 0678622b45..3bdfba6dbc 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { detailsTableListGridCardInPopup, tableDetailsListGridCardWithUsers } from './templates'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaSettings.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaSettings.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/templates.ts b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/templates.ts index 66c7cffa4f..1f5683ec7d 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/templates.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const tableDetailsListGridCardWithUsers = { pageSchema: { _isJSONSchemaObject: true, diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.tsx b/packages/core/client/src/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.tsx index 17d7bbab3d..765cc7bac5 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaToolbar } from '../../../../schema-settings'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.tsx b/packages/core/client/src/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.tsx index 28016afed2..1691478bcf 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React from 'react'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.ts index 41a8022e0a..adc860f97d 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyFilterCollapseBlock, test } from '@nocobase/test/e2e'; test.describe('where collapse block can be added', () => { diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.ts index 366908a5b5..7092bd15cc 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.ts index 5fa7b6c27a..d15d2b8ddc 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createCollapseBlockSchema } from '../createFilterCollapseBlockSchema'; vi.mock('@formily/shared', () => ({ diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts index 2d713a61be..a96b239516 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts index 0ad5faaec5..eeeb817dcf 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts index 2f56624bb0..e4f3cf099d 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx index cf9b6ac5a9..78ebe20a41 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { SchemaInitializer } from '../../../../application/schema-initializer/SchemaInitializer'; import { useOptionalFieldList } from '../../../../block-provider/hooks'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.ts index eadf9277d3..b4b8e125f3 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function useCollapseBlockDecoratorProps() {} diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx index 69d0b5ee83..5d981e8b36 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; /** diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.tsx b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.tsx index 3263e610ee..ed67c1ffbd 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React from 'react'; import { useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.ts index a9f740db72..d12fdec0fc 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, oneEmptyFilterFormBlock, test } from '@nocobase/test/e2e'; import { oneFilterFormWithInherit } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.ts index e022eae3ca..06b5a39e53 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.ts index 44579ec4c9..58806e061c 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const oneFilterFormWithInherit = { collections: [ { diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.ts index 4fc5e833d2..dafcb383b7 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createFilterFormBlockSchema } from '../createFilterFormBlockSchema'; vi.mock('@formily/shared', () => { diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts index 85ab058def..16924f5c20 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts index 46761790e6..9bda08eef0 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts index 1bb204988f..cf6b52084d 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { ISchema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx index 2ecd336612..0d0382d661 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/filterFormItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { FilterAssociatedFields, diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.ts index 37f6d0fc82..7ec9761dc8 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function useFilterFormBlockDecoratorProps() {} diff --git a/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.ts b/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.ts index 76ad7db2b9..f0218cdf52 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFormBlockProps } from '../../../../../block-provider/FormBlockProvider'; export function useFilterFormBlockProps() { diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.tsx b/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.tsx index 4a56295e84..a822937f4d 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.tsx +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.tsx b/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.tsx index e50a8f267b..18f2be306f 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.tsx +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../../../application'; diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.ts index 50365c718a..c61e5ce540 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createBlockInPage, expect, test } from '@nocobase/test/e2e'; test.describe('where markdown block can be added', () => { diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.ts index 7d8142d992..b90f542643 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, oneEmptyMarkdown, test } from '@nocobase/test/e2e'; test.describe('markdown block schema settings', () => { diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts index 477d00805e..5ac90851d0 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { useTranslation } from 'react-i18next'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/modules/blocks/useParentRecordCommon.ts b/packages/core/client/src/modules/blocks/useParentRecordCommon.ts index c7bb9ac92d..91120886e0 100644 --- a/packages/core/client/src/modules/blocks/useParentRecordCommon.ts +++ b/packages/core/client/src/modules/blocks/useParentRecordCommon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollectionRecordData } from '../../data-source/collection-record/CollectionRecordProvider'; /** diff --git a/packages/core/client/src/modules/blocks/useSourceId.tsx b/packages/core/client/src/modules/blocks/useSourceId.tsx index f67eaf228f..d76d49738c 100644 --- a/packages/core/client/src/modules/blocks/useSourceId.tsx +++ b/packages/core/client/src/modules/blocks/useSourceId.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useDataBlockProps } from '../..'; import { useDataBlockParentRecord } from '../../block-provider/hooks/useDataBlockParentRecord'; import { useSourceKey } from './useSourceKey'; diff --git a/packages/core/client/src/modules/blocks/useSourceKey.ts b/packages/core/client/src/modules/blocks/useSourceKey.ts index 5bcb804138..3e3e65adef 100644 --- a/packages/core/client/src/modules/blocks/useSourceKey.ts +++ b/packages/core/client/src/modules/blocks/useSourceKey.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollectionManager } from '../../data-source/collection/CollectionManagerProvider'; /** diff --git a/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx index 5d24fe83ca..a1f4bb48c8 100644 --- a/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.ts index aa98865f46..1b9eb55c96 100644 --- a/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, test } from '@nocobase/test/e2e'; import dayjs from 'dayjs'; import { oneFormBlockWithDatetimeFields, oneTableBlockWithDatetimeFields } from './utils'; diff --git a/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/utils.ts b/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/utils.ts index 2b89970b41..1abf7e042d 100644 --- a/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/utils.ts +++ b/packages/core/client/src/modules/fields/component/DatePicker/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generalWithDatetime, PageConfig } from '@nocobase/test/e2e'; /** * 1. 一个 Table 区块 diff --git a/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx index 62488de03d..4e243074e8 100644 --- a/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/DatePicker/datePickerComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsDateFormat } from '../../../../schema-settings/SchemaSettingsDateFormat'; diff --git a/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx index 1ee48795b5..16d3f1dcb4 100644 --- a/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/FileManager/fileManagerComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema, useForm } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/FileManager/previewComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/FileManager/previewComponentFieldSettings.tsx index 90417fb545..97e7df27b8 100644 --- a/packages/core/client/src/modules/fields/component/FileManager/previewComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/FileManager/previewComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx index a790703783..5b8458f816 100644 --- a/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx index 0a890813dd..dd0833da26 100644 --- a/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema, useForm } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsNumberFormat } from '../../../../schema-settings/SchemaSettingsNumberFormat'; diff --git a/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx index b0d8f27441..b81e009f7c 100644 --- a/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Nester/subformComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx index df16fb782c..d8ba0d3525 100644 --- a/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx +++ b/packages/core/client/src/modules/fields/component/Picker/TableSelectorInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollection_deprecated } from '../../../..'; import { CompatibleSchemaInitializer } from '../../../../application/schema-initializer/CompatibleSchemaInitializer'; import { gridRowColWrap } from '../../../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/fields/component/Picker/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/fields/component/Picker/__e2e__/schemaSettings.test.ts index f00296c709..c23c887531 100644 --- a/packages/core/client/src/modules/fields/component/Picker/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/fields/component/Picker/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, test } from '@nocobase/test/e2e'; import { oneFormWithPickerField } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/fields/component/Picker/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/fields/component/Picker/__e2e__/templatesOfBug.ts index 64fc2df65f..4845461774 100644 --- a/packages/core/client/src/modules/fields/component/Picker/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/fields/component/Picker/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const oneFormWithPickerField: PageConfig = { diff --git a/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx index bf14bebd8a..000d37fbb0 100644 --- a/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Picker/recordPickerComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx index 725c76b72a..0149ddcede 100644 --- a/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/Select/__e2e__/selectDataScope.test.ts b/packages/core/client/src/modules/fields/component/Select/__e2e__/selectDataScope.test.ts index 4c569515b6..368503878c 100644 --- a/packages/core/client/src/modules/fields/component/Select/__e2e__/selectDataScope.test.ts +++ b/packages/core/client/src/modules/fields/component/Select/__e2e__/selectDataScope.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T3867 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/fields/component/Select/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/fields/component/Select/__e2e__/templatesOfBug.ts index daaf1a5351..4e2d95d235 100644 --- a/packages/core/client/src/modules/fields/component/Select/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/fields/component/Select/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const T3867 = { pageSchema: { _isJSONSchemaObject: true, diff --git a/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx index 87414f7acb..8024eeddec 100644 --- a/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Select/selectComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx index ea5df9ac14..d55ca3c33e 100644 --- a/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema, ISchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx index 1cfa4295f2..1bf175ff79 100644 --- a/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Tag/tagComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx b/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx index 5bc587c9d5..91980e9b16 100644 --- a/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx +++ b/packages/core/client/src/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; import { SchemaSettingsDateFormat } from '../../../../schema-settings/SchemaSettingsDateFormat'; diff --git a/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx b/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx index 15316f56d8..9da2229ab5 100644 --- a/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx +++ b/packages/core/client/src/modules/fields/initializer/CollectionFieldInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx b/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx index a4886d3806..f00795eebf 100644 --- a/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx +++ b/packages/core/client/src/modules/fields/initializer/TableCollectionFieldInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ISchema } from '@formily/react'; diff --git a/packages/core/client/src/modules/menu/GroupItem.tsx b/packages/core/client/src/modules/menu/GroupItem.tsx index 98775e850a..82784b3836 100644 --- a/packages/core/client/src/modules/menu/GroupItem.tsx +++ b/packages/core/client/src/modules/menu/GroupItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; import React, { useCallback, useContext } from 'react'; diff --git a/packages/core/client/src/modules/menu/LinkMenuItem.tsx b/packages/core/client/src/modules/menu/LinkMenuItem.tsx index b9fc2a707b..9dbbf56f8d 100644 --- a/packages/core/client/src/modules/menu/LinkMenuItem.tsx +++ b/packages/core/client/src/modules/menu/LinkMenuItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; import React, { useCallback, useContext } from 'react'; diff --git a/packages/core/client/src/modules/menu/PageMenuItem.tsx b/packages/core/client/src/modules/menu/PageMenuItem.tsx index 494bfcd7bf..cacf260392 100644 --- a/packages/core/client/src/modules/menu/PageMenuItem.tsx +++ b/packages/core/client/src/modules/menu/PageMenuItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/modules/menu/__e2e__/dragAndDrop.test.ts b/packages/core/client/src/modules/menu/__e2e__/dragAndDrop.test.ts index 53bb7013b7..59f3931cac 100644 --- a/packages/core/client/src/modules/menu/__e2e__/dragAndDrop.test.ts +++ b/packages/core/client/src/modules/menu/__e2e__/dragAndDrop.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; test('single page', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/menu/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/menu/__e2e__/schemaInitializer.test.ts index 2698f14aff..2cf1f68199 100644 --- a/packages/core/client/src/modules/menu/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/menu/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, groupPageEmpty, test } from '@nocobase/test/e2e'; test.describe('add menu item', () => { diff --git a/packages/core/client/src/modules/menu/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/menu/__e2e__/schemaSettings.test.ts index 00275615a7..af8c4b51c7 100644 --- a/packages/core/client/src/modules/menu/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/menu/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, PageConfig, expect, expectSettingsMenu, test } from '@nocobase/test/e2e'; test.describe('group page menus schema settings', () => { diff --git a/packages/core/client/src/modules/menu/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/menu/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/menu/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/menu/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/menu/menuItemInitializer.tsx b/packages/core/client/src/modules/menu/menuItemInitializer.tsx index d9b94ec343..e7f14115a2 100644 --- a/packages/core/client/src/modules/menu/menuItemInitializer.tsx +++ b/packages/core/client/src/modules/menu/menuItemInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '../../application/schema-initializer/SchemaInitializer'; import { LinkMenuItem } from './LinkMenuItem'; import { PageMenuItem } from './PageMenuItem'; diff --git a/packages/core/client/src/modules/page/BlockInitializers.tsx b/packages/core/client/src/modules/page/BlockInitializers.tsx index de22ce58a9..e66c7cc2b1 100644 --- a/packages/core/client/src/modules/page/BlockInitializers.tsx +++ b/packages/core/client/src/modules/page/BlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; import { gridRowColWrap } from '../../schema-initializer/utils'; diff --git a/packages/core/client/src/modules/page/__e2e__/blockInitializers.test.ts b/packages/core/client/src/modules/page/__e2e__/blockInitializers.test.ts index 40e17d3cbd..161b30c0a0 100644 --- a/packages/core/client/src/modules/page/__e2e__/blockInitializers.test.ts +++ b/packages/core/client/src/modules/page/__e2e__/blockInitializers.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { test, expect } from '@nocobase/test/e2e'; test.describe('page:addBlock', () => { diff --git a/packages/core/client/src/modules/page/__e2e__/dragAndDrop.test.ts b/packages/core/client/src/modules/page/__e2e__/dragAndDrop.test.ts index 5437e23e93..7f7091a056 100644 --- a/packages/core/client/src/modules/page/__e2e__/dragAndDrop.test.ts +++ b/packages/core/client/src/modules/page/__e2e__/dragAndDrop.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test, twoTabsPage } from '@nocobase/test/e2e'; test('tabs', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/page/__e2e__/schemaInitailizer.test.ts b/packages/core/client/src/modules/page/__e2e__/schemaInitailizer.test.ts index 3405fc734a..4e7e65e15d 100644 --- a/packages/core/client/src/modules/page/__e2e__/schemaInitailizer.test.ts +++ b/packages/core/client/src/modules/page/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, tabPageEmpty, test } from '@nocobase/test/e2e'; test('add tab', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/page/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/page/__e2e__/schemaSettings.test.ts index cba11d367d..88d4a6d50f 100644 --- a/packages/core/client/src/modules/page/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/page/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, test } from '@nocobase/test/e2e'; test.describe('page schema settings', () => { diff --git a/packages/core/client/src/modules/page/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/page/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/page/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/page/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + 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 ce8c1be74e..64b70b7bf1 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; async function waitForModalToBeHidden(page) { diff --git a/packages/core/client/src/modules/plugin-manager/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/plugin-manager/__e2e__/templatesOfBug.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/modules/plugin-manager/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/plugin-manager/__e2e__/templatesOfBug.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/modules/popup/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/popup/__e2e__/schemaInitializer.test.ts index ea1e139113..b092c139e7 100644 --- a/packages/core/client/src/modules/popup/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/popup/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneDetailBlockWithM2oFieldToGeneral, diff --git a/packages/core/client/src/modules/popup/__e2e__/schemaSettings.test.ts b/packages/core/client/src/modules/popup/__e2e__/schemaSettings.test.ts index 8326b44310..91d60fd631 100644 --- a/packages/core/client/src/modules/popup/__e2e__/schemaSettings.test.ts +++ b/packages/core/client/src/modules/popup/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NocoPage, Page, expect, oneEmptyTableBlockWithActions, test } from '@nocobase/test/e2e'; test.describe('tabs schema settings', () => { diff --git a/packages/core/client/src/modules/popup/__e2e__/templatesOfBug.ts b/packages/core/client/src/modules/popup/__e2e__/templatesOfBug.ts index 22c9718a0b..db67702e92 100644 --- a/packages/core/client/src/modules/popup/__e2e__/templatesOfBug.ts +++ b/packages/core/client/src/modules/popup/__e2e__/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig, generalWithMultiLevelM2oFields } from '@nocobase/test/e2e'; export const T2797: PageConfig = { diff --git a/packages/core/client/src/modules/popup/__e2e__/zIndex.test.ts b/packages/core/client/src/modules/popup/__e2e__/zIndex.test.ts index fab8a75611..0add00003e 100644 --- a/packages/core/client/src/modules/popup/__e2e__/zIndex.test.ts +++ b/packages/core/client/src/modules/popup/__e2e__/zIndex.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { T2797, T2838 } from './templatesOfBug'; diff --git a/packages/core/client/src/modules/user-center/__e2e__/settings.test.ts b/packages/core/client/src/modules/user-center/__e2e__/settings.test.ts index d0a604a440..7d2f544ae5 100644 --- a/packages/core/client/src/modules/user-center/__e2e__/settings.test.ts +++ b/packages/core/client/src/modules/user-center/__e2e__/settings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { test } from '@nocobase/test/e2e'; test('switch role', async ({ page, mockPage }) => { diff --git a/packages/core/client/src/modules/variable/DeclareVariable.tsx b/packages/core/client/src/modules/variable/DeclareVariable.tsx index e66949d534..b76b5c9b65 100644 --- a/packages/core/client/src/modules/variable/DeclareVariable.tsx +++ b/packages/core/client/src/modules/variable/DeclareVariable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, createContext } from 'react'; import { Collection } from '../../data-source'; diff --git a/packages/core/client/src/modules/variable/__e2e__/basic.test.ts b/packages/core/client/src/modules/variable/__e2e__/basic.test.ts index eadfcbc29b..3f2864e2fc 100644 --- a/packages/core/client/src/modules/variable/__e2e__/basic.test.ts +++ b/packages/core/client/src/modules/variable/__e2e__/basic.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { tableViewLinkageRulesVariables } from './templates'; diff --git a/packages/core/client/src/modules/variable/__e2e__/templates.ts b/packages/core/client/src/modules/variable/__e2e__/templates.ts index d343828d3f..93d1ee45cb 100644 --- a/packages/core/client/src/modules/variable/__e2e__/templates.ts +++ b/packages/core/client/src/modules/variable/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const tableViewLinkageRulesVariables = { pageSchema: { _isJSONSchemaObject: true, diff --git a/packages/core/client/src/modules/variable/__tests__/useVariable.test.tsx b/packages/core/client/src/modules/variable/__tests__/useVariable.test.tsx index bf037474c5..a9433b69da 100644 --- a/packages/core/client/src/modules/variable/__tests__/useVariable.test.tsx +++ b/packages/core/client/src/modules/variable/__tests__/useVariable.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderHook } from '@nocobase/test/client'; import React from 'react'; import { Collection } from '../../../data-source'; diff --git a/packages/core/client/src/modules/variable/useVariable.ts b/packages/core/client/src/modules/variable/useVariable.ts index c467725b7c..8f8eac256a 100644 --- a/packages/core/client/src/modules/variable/useVariable.ts +++ b/packages/core/client/src/modules/variable/useVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import { DeclareVariableContext } from './DeclareVariable'; diff --git a/packages/core/client/src/nocobase-buildin-plugin/index.tsx b/packages/core/client/src/nocobase-buildin-plugin/index.tsx index 8aa1a402ce..a4bb890862 100644 --- a/packages/core/client/src/nocobase-buildin-plugin/index.tsx +++ b/packages/core/client/src/nocobase-buildin-plugin/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DisconnectOutlined, LoadingOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer } from '@formily/reactive-react'; diff --git a/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts b/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts index c09feabe55..f9fe26fb44 100644 --- a/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts +++ b/packages/core/client/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { setValidateLanguage } from '@formily/validator'; import { App, ConfigProvider } from 'antd'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx b/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx index 78cf159d2d..de83465b04 100644 --- a/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx +++ b/packages/core/client/src/plugin-manager/PinnedPluginListProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { SchemaOptionsContext } from '@formily/react'; import { get } from 'lodash'; diff --git a/packages/core/client/src/plugin-manager/context.ts b/packages/core/client/src/plugin-manager/context.ts index 50cb96b7c2..b043defbe6 100644 --- a/packages/core/client/src/plugin-manager/context.ts +++ b/packages/core/client/src/plugin-manager/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; export const PinnedPluginListContext = createContext({ items: {} }); diff --git a/packages/core/client/src/plugin-manager/index.ts b/packages/core/client/src/plugin-manager/index.ts index da50b1ba2e..3eabe9ca05 100644 --- a/packages/core/client/src/plugin-manager/index.ts +++ b/packages/core/client/src/plugin-manager/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './context'; export * from './PinnedPluginListProvider'; diff --git a/packages/core/client/src/pm/PluginCard.tsx b/packages/core/client/src/pm/PluginCard.tsx index 0618c1a1b2..4ee053ac05 100644 --- a/packages/core/client/src/pm/PluginCard.tsx +++ b/packages/core/client/src/pm/PluginCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { App, Card, Divider, Popconfirm, Space, Switch, Typography, message } from 'antd'; import classnames from 'classnames'; import React, { FC, useState } from 'react'; diff --git a/packages/core/client/src/pm/PluginDetail.tsx b/packages/core/client/src/pm/PluginDetail.tsx index 06a01ba696..343e839a69 100644 --- a/packages/core/client/src/pm/PluginDetail.tsx +++ b/packages/core/client/src/pm/PluginDetail.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Col, Modal, Row, Space, Spin, Table, Tabs, TabsProps, Tag, Typography } from 'antd'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; diff --git a/packages/core/client/src/pm/PluginDocument.tsx b/packages/core/client/src/pm/PluginDocument.tsx index a629fc3b59..10539d7521 100644 --- a/packages/core/client/src/pm/PluginDocument.tsx +++ b/packages/core/client/src/pm/PluginDocument.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } from 'antd'; import React, { memo, useCallback, useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx index dd136887fc..15fa8c5c4c 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx index 75822eeb8c..7abebb2096 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginUploadForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx index 5d1cd8c1cd..4960aac5c3 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginUrlForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/pm/PluginForm/modal/PluginAddModal.tsx b/packages/core/client/src/pm/PluginForm/modal/PluginAddModal.tsx index 3e30ede7b2..a312b05bfc 100644 --- a/packages/core/client/src/pm/PluginForm/modal/PluginAddModal.tsx +++ b/packages/core/client/src/pm/PluginForm/modal/PluginAddModal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal, Radio } from 'antd'; import React, { FC, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/pm/PluginForm/modal/PluginUpgradeModal.tsx b/packages/core/client/src/pm/PluginForm/modal/PluginUpgradeModal.tsx index 7c699e48dd..a35335d9fe 100644 --- a/packages/core/client/src/pm/PluginForm/modal/PluginUpgradeModal.tsx +++ b/packages/core/client/src/pm/PluginForm/modal/PluginUpgradeModal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal, Radio } from 'antd'; import React, { FC, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/pm/PluginManager.tsx b/packages/core/client/src/pm/PluginManager.tsx index e097a62c8b..c130740081 100644 --- a/packages/core/client/src/pm/PluginManager.tsx +++ b/packages/core/client/src/pm/PluginManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './PluginManagerLink'; import { PageHeader } from '@ant-design/pro-layout'; import { useDebounce } from 'ahooks'; diff --git a/packages/core/client/src/pm/PluginManagerLink.tsx b/packages/core/client/src/pm/PluginManagerLink.tsx index ea0ccf8382..ea3295ea0a 100644 --- a/packages/core/client/src/pm/PluginManagerLink.tsx +++ b/packages/core/client/src/pm/PluginManagerLink.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ApiOutlined, SettingOutlined } from '@ant-design/icons'; import { Button, Dropdown, Tooltip } from 'antd'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/pm/PluginSetting.tsx b/packages/core/client/src/pm/PluginSetting.tsx index 4c4bd3e366..7712b9d4ff 100644 --- a/packages/core/client/src/pm/PluginSetting.tsx +++ b/packages/core/client/src/pm/PluginSetting.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageHeader } from '@ant-design/pro-layout'; import { css } from '@emotion/css'; import { Layout, Menu, Result } from 'antd'; diff --git a/packages/core/client/src/pm/index.tsx b/packages/core/client/src/pm/index.tsx index 70c008be5c..06cb7133c0 100644 --- a/packages/core/client/src/pm/index.tsx +++ b/packages/core/client/src/pm/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ACLPane } from '../acl/ACLShortcut'; import { ADMIN_SETTINGS_PATH } from '../application'; diff --git a/packages/core/client/src/pm/style.ts b/packages/core/client/src/pm/style.ts index f55405c058..8df70983ff 100644 --- a/packages/core/client/src/pm/style.ts +++ b/packages/core/client/src/pm/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ token }) => { diff --git a/packages/core/client/src/pm/types.ts b/packages/core/client/src/pm/types.ts index 16d445e0ee..b82d588de2 100644 --- a/packages/core/client/src/pm/types.ts +++ b/packages/core/client/src/pm/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface IPluginData { id: number; createdAt: Date; diff --git a/packages/core/client/src/powered-by/index.tsx b/packages/core/client/src/powered-by/index.tsx index 7dff2ef2a5..2d9981b151 100644 --- a/packages/core/client/src/powered-by/index.tsx +++ b/packages/core/client/src/powered-by/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/record-provider/index.tsx b/packages/core/client/src/record-provider/index.tsx index b2f8fa8225..9460accb60 100644 --- a/packages/core/client/src/record-provider/index.tsx +++ b/packages/core/client/src/record-provider/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useMemo } from 'react'; import { CollectionRecordProvider, useCollection } from '../data-source'; import { useCurrentUserContext } from '../user'; diff --git a/packages/core/client/src/route-switch/antd/admin-layout/__tests__/admin-layout.test.tsx b/packages/core/client/src/route-switch/antd/admin-layout/__tests__/admin-layout.test.tsx index 46fb52c8d5..94162095e6 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/__tests__/admin-layout.test.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/__tests__/admin-layout.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACLMenuItemProvider, AdminLayout, BlockSchemaComponentPlugin, CurrentUserProvider } from '@nocobase/client'; import { renderApp, waitFor, screen } from '@nocobase/test/client'; import React from 'react'; diff --git a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx index 11140af450..bc20146f31 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { useSessionStorageState } from 'ahooks'; import { App, ConfigProvider, Divider, Layout } from 'antd'; diff --git a/packages/core/client/src/route-switch/antd/index.ts b/packages/core/client/src/route-switch/antd/index.ts index 313ae59652..18b04eb94a 100644 --- a/packages/core/client/src/route-switch/antd/index.ts +++ b/packages/core/client/src/route-switch/antd/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './admin-layout'; export * from './route-schema-component'; diff --git a/packages/core/client/src/route-switch/antd/route-schema-component/__tests__/route-schema-component.test.tsx b/packages/core/client/src/route-switch/antd/route-schema-component/__tests__/route-schema-component.test.tsx index b3b1cf3cc7..a43ac51a15 100644 --- a/packages/core/client/src/route-switch/antd/route-schema-component/__tests__/route-schema-component.test.tsx +++ b/packages/core/client/src/route-switch/antd/route-schema-component/__tests__/route-schema-component.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RouteSchemaComponent } from '@nocobase/client'; import { renderApp, waitFor, screen } from '@nocobase/test/client'; import React from 'react'; diff --git a/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx b/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx index 9317f10ccc..2c89f9e963 100644 --- a/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx +++ b/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useParams } from 'react-router-dom'; import { RemoteSchemaComponent } from '../../../'; diff --git a/packages/core/client/src/route-switch/index.tsx b/packages/core/client/src/route-switch/index.tsx index 37b189656b..82d3351e87 100644 --- a/packages/core/client/src/route-switch/index.tsx +++ b/packages/core/client/src/route-switch/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './antd'; diff --git a/packages/core/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx b/packages/core/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx index e72374b2e7..ba7cd194d7 100644 --- a/packages/core/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx +++ b/packages/core/client/src/schema-component/antd/AntdSchemaComponentProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import * as components from '.'; import { Plugin } from '../../application/Plugin'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/hooks/index.ts b/packages/core/client/src/schema-component/antd/__builtins__/hooks/index.ts index 6d27f143d8..e7fb6c5b1f 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/hooks/index.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useConfig'; export * from './usePrefixCls'; export * from './useToken'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/hooks/useConfig.ts b/packages/core/client/src/schema-component/antd/__builtins__/hooks/useConfig.ts index b9d05bd59a..834eabaa6b 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/hooks/useConfig.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/hooks/useConfig.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ConfigProvider } from 'antd'; import { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/hooks/usePrefixCls.ts b/packages/core/client/src/schema-component/antd/__builtins__/hooks/usePrefixCls.ts index ca782364c9..05fc32ec9c 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/hooks/usePrefixCls.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/hooks/usePrefixCls.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ConfigProvider } from 'antd'; import { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/hooks/useToken.ts b/packages/core/client/src/schema-component/antd/__builtins__/hooks/useToken.ts index e148d3e101..7d30d327e4 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/hooks/useToken.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/hooks/useToken.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { theme } from 'antd'; import { CustomToken } from '../../../../global-theme'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/index.ts b/packages/core/client/src/schema-component/antd/__builtins__/index.ts index 8d1d516bd0..7c1c6148b8 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/index.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './hooks'; export * from './loading'; export * from './portal'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/loading.ts b/packages/core/client/src/schema-component/antd/__builtins__/loading.ts index 3746651f07..00a8196557 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/loading.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/loading.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } from 'antd'; export const loading = async (title: React.ReactNode = 'Loading...', processor: () => Promise) => { diff --git a/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx b/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx index fb060dcbd6..296a1ed9a3 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx +++ b/packages/core/client/src/schema-component/antd/__builtins__/portal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Observer, ReactFC } from '@formily/react'; import { observable } from '@formily/reactive'; import React, { Fragment } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/render.ts b/packages/core/client/src/schema-component/antd/__builtins__/render.ts index f1e04482f3..6edd913cbf 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/render.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/render.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ReactElement } from 'react'; import * as ReactDOM from 'react-dom'; import type { Root } from 'react-dom/client'; diff --git a/packages/core/client/src/schema-component/antd/__builtins__/style.ts b/packages/core/client/src/schema-component/antd/__builtins__/style.ts index bbe439102a..168b5a2c0e 100644 --- a/packages/core/client/src/schema-component/antd/__builtins__/style.ts +++ b/packages/core/client/src/schema-component/antd/__builtins__/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import { useStyleRegister } from '@ant-design/cssinjs'; import { merge } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Container.tsx b/packages/core/client/src/schema-component/antd/action/Action.Container.tsx index 3671855c99..6033ebb988 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Container.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Container.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useActionContext } from '.'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index ce8d7c882f..fce2c08864 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { Field, onFieldValueChange } from '@formily/core'; import { ISchema, useField, useFieldSchema, useForm, useFormEffects } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Drawer.style.ts b/packages/core/client/src/schema-component/antd/action/Action.Drawer.style.ts index b6d8883774..dbae97c7f7 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Drawer.style.ts +++ b/packages/core/client/src/schema-component/antd/action/Action.Drawer.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; export const useStyles = genStyleHook('nb-action-drawer', (token) => { diff --git a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx index 0dbb6a04c7..50c851a633 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Drawer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { Drawer } from 'antd'; import classNames from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Link.tsx b/packages/core/client/src/schema-component/antd/action/Action.Link.tsx index 33c8834970..19178d1a5e 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Link.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Link.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import React from 'react'; import classnames from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx index 781f7069da..ac4ceb4575 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { Modal, ModalProps } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx index 55d9d93001..9b78dbfd2a 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Page.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Page.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer, RecursionField, SchemaExpressionScopeContext, useField, useFieldSchema } from '@formily/react'; import React, { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/Action.Popover.tsx b/packages/core/client/src/schema-component/antd/action/Action.Popover.tsx index e69de29bb2..d3436f53a5 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Popover.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Popover.tsx @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/client/src/schema-component/antd/action/Action.style.ts b/packages/core/client/src/schema-component/antd/action/Action.style.ts index 4776b1361b..1f4d4061b7 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.style.ts +++ b/packages/core/client/src/schema-component/antd/action/Action.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-action', (token) => { diff --git a/packages/core/client/src/schema-component/antd/action/Action.tsx b/packages/core/client/src/schema-component/antd/action/Action.tsx index cdafda0524..52ff8ae02c 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema, useForm } from '@formily/react'; import { isPortalInBody } from '@nocobase/utils/client'; import { App, Button } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/action/ActionBar.tsx b/packages/core/client/src/schema-component/antd/action/ActionBar.tsx index f7d39635c0..610a7dca79 100644 --- a/packages/core/client/src/schema-component/antd/action/ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/action/ActionBar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import { RecursionField, observer, useFieldSchema } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/action/__tests__/Action.Designer.test.tsx b/packages/core/client/src/schema-component/antd/action/__tests__/Action.Designer.test.tsx index d90aebc8ef..3c47e349ae 100644 --- a/packages/core/client/src/schema-component/antd/action/__tests__/Action.Designer.test.tsx +++ b/packages/core/client/src/schema-component/antd/action/__tests__/Action.Designer.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, checkSettings, renderSingleSettings, checkModalSetting } from '@nocobase/test/client'; import { ButtonEditor } from '../Action.Designer'; diff --git a/packages/core/client/src/schema-component/antd/action/__tests__/action.test.tsx b/packages/core/client/src/schema-component/antd/action/__tests__/action.test.tsx index ac03313ee0..c02e8c5991 100644 --- a/packages/core/client/src/schema-component/antd/action/__tests__/action.test.tsx +++ b/packages/core/client/src/schema-component/antd/action/__tests__/action.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/action/context.tsx b/packages/core/client/src/schema-component/antd/action/context.tsx index e3f1d13873..be51c5877f 100644 --- a/packages/core/client/src/schema-component/antd/action/context.tsx +++ b/packages/core/client/src/schema-component/antd/action/context.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; import { DrawerProps, ModalProps } from 'antd'; import React, { createContext, useEffect, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx index 982c057dc5..d3b4dd20ff 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, observer, useForm } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx index af86cb78fc..ae7e54f160 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, observer, useForm } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx index 9a4e2dd796..a96d768c21 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema, observer, useField, useFieldSchema } from '@formily/react'; import { Action, SchemaComponent, SchemaComponentProvider, useActionContext } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx index ea9a5a5cd3..4bbf97ded6 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, observer, useForm } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx index 9a3a708f26..332fca9018 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo5.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable, Editable, diff --git a/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx index 9f7fc31469..42d2157497 100644 --- a/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/action/demos/demo6.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/core/client/src/schema-component/antd/action/hooks.ts b/packages/core/client/src/schema-component/antd/action/hooks.ts index bc0a34f593..ef22498f3b 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema, useForm } from '@formily/react'; import { App } from 'antd'; import { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts index 319d708ea0..9ce1c8416c 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfAction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useBlockContext } from '../../../../block-provider/BlockProvider'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts index 5540cf886f..92fedaaa20 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts index a8a5256625..0a724d1381 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfModal.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts index bcc5cbd9a1..ffff8d250b 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.ts b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.ts index e0c528cbf0..0846c17817 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect } from 'react'; import { useGetAriaLabelOfDrawer } from './useGetAriaLabelOfDrawer'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForModal.ts b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForModal.ts index 0fca9ea08f..3d4bd3abfb 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForModal.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForModal.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect } from 'react'; import { useGetAriaLabelOfModal } from './useGetAriaLabelOfModal'; diff --git a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForPopover.ts b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForPopover.ts index 12d4668814..99482eb69e 100644 --- a/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForPopover.ts +++ b/packages/core/client/src/schema-component/antd/action/hooks/useSetAriaLabelForPopover.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect } from 'react'; import { useGetAriaLabelOfPopover } from './useGetAriaLabelOfPopover'; diff --git a/packages/core/client/src/schema-component/antd/action/index.tsx b/packages/core/client/src/schema-component/antd/action/index.tsx index 360304a157..b9f6ad3745 100644 --- a/packages/core/client/src/schema-component/antd/action/index.tsx +++ b/packages/core/client/src/schema-component/antd/action/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Action'; export * from './ActionBar'; export * from './context'; diff --git a/packages/core/client/src/schema-component/antd/action/types.ts b/packages/core/client/src/schema-component/antd/action/types.ts index 1049d6bb4b..733026bf97 100644 --- a/packages/core/client/src/schema-component/antd/action/types.ts +++ b/packages/core/client/src/schema-component/antd/action/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ButtonProps, DrawerProps, ModalProps } from 'antd'; export type ActionProps = ButtonProps & { diff --git a/packages/core/client/src/schema-component/antd/action/utils.ts b/packages/core/client/src/schema-component/antd/action/utils.ts index 3c9aaee162..f7f5de6621 100644 --- a/packages/core/client/src/schema-component/antd/action/utils.ts +++ b/packages/core/client/src/schema-component/antd/action/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import { last } from 'lodash'; import { ActionType } from '../../../schema-settings/LinkageRules/type'; diff --git a/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx b/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx index 4cef09c375..2d5d1ed330 100644 --- a/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleFilled } from '@ant-design/icons'; import { Tag, TreeSelect } from 'antd'; import type { DefaultOptionType, TreeSelectProps } from 'rc-tree-select/es/TreeSelect'; diff --git a/packages/core/client/src/schema-component/antd/appends-tree-select/index.ts b/packages/core/client/src/schema-component/antd/appends-tree-select/index.ts index 2217685303..37513ab19f 100644 --- a/packages/core/client/src/schema-component/antd/appends-tree-select/index.ts +++ b/packages/core/client/src/schema-component/antd/appends-tree-select/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AppendsTreeSelect'; diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx index da8dbc14e9..ec21079de9 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { observer, useField, useFieldSchema } from '@formily/react'; import React, { useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index ff27b42a64..04bb8aff02 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined, PlusOutlined } from '@ant-design/icons'; import { onFieldChange } from '@formily/core'; import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/Editable.tsx b/packages/core/client/src/schema-component/antd/association-field/Editable.tsx index 0cb2c22e46..f0c6038796 100644 --- a/packages/core/client/src/schema-component/antd/association-field/Editable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/Editable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { observer, useField, useForm } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx b/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx index 382cba2a2a..830ec2e168 100644 --- a/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/FileManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecursionField, connect, useField, useFieldSchema } from '@formily/react'; import { differenceBy, unionBy } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx index 96b8bb1b83..e9f61c0c00 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems, FormItem } from '@formily/antd-v5'; import { createForm, onFormValuesChange } from '@formily/core'; import { FormProvider, connect, createSchemaField, observer, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx index 6bd9767df5..833f6c1e9e 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalNester.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; import { RecursionField, useField, useFieldSchema, observer } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx index cc50cd0397..177333e835 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { Input, Select, Space } from 'antd'; import { differenceBy, unionBy } from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx index e7e412a095..78c11febbd 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EditOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx index 1088661701..f24609c485 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalSubTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; import { RecursionField, SchemaOptionsContext, observer, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx index 2b6c8d74ed..843e21e892 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalTag.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { toArr } from '@formily/shared'; import React, { Fragment, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx index b31feb2f37..95d28bbc8a 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalViewer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { toArr } from '@formily/shared'; import React, { Fragment, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/Nester.tsx b/packages/core/client/src/schema-component/antd/association-field/Nester.tsx index 29e271b781..d4e8236d3d 100644 --- a/packages/core/client/src/schema-component/antd/association-field/Nester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/Nester.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseOutlined, PlusOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { ArrayField } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx index 1c71992ccb..bfba05a1e2 100644 --- a/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import React from 'react'; import { AssociationFieldProvider } from './AssociationFieldProvider'; diff --git a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx index ff815c84b2..a077af8485 100644 --- a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { ArrayField } from '@formily/core'; import { exchangeArrayState } from '@formily/core/esm/shared/internals'; diff --git a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx index a5aa6f2ef1..84dce63287 100644 --- a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecursionField, observer, useField, useFieldSchema } from '@formily/react'; import React, { useState } from 'react'; import { CollectionProvider_deprecated, useCollectionManager_deprecated } from '../../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/association-field/context.ts b/packages/core/client/src/schema-component/antd/association-field/context.ts index 6cdd03a17e..bee90585fd 100644 --- a/packages/core/client/src/schema-component/antd/association-field/context.ts +++ b/packages/core/client/src/schema-component/antd/association-field/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralField } from '@formily/core'; import { createContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-field/hooks.ts b/packages/core/client/src/schema-component/antd/association-field/hooks.ts index cd15de8c78..46d3a22152 100644 --- a/packages/core/client/src/schema-component/antd/association-field/hooks.ts +++ b/packages/core/client/src/schema-component/antd/association-field/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralField } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { reaction } from '@formily/reactive'; diff --git a/packages/core/client/src/schema-component/antd/association-field/index.ts b/packages/core/client/src/schema-component/antd/association-field/index.ts index 11e667e348..f3e93bb311 100644 --- a/packages/core/client/src/schema-component/antd/association-field/index.ts +++ b/packages/core/client/src/schema-component/antd/association-field/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { Action } from '../action'; import { Editable } from './Editable'; diff --git a/packages/core/client/src/schema-component/antd/association-field/schema.ts b/packages/core/client/src/schema-component/antd/association-field/schema.ts index e36133e070..1e15444679 100644 --- a/packages/core/client/src/schema-component/antd/association-field/schema.ts +++ b/packages/core/client/src/schema-component/antd/association-field/schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Nester: { type: 'void', diff --git a/packages/core/client/src/schema-component/antd/association-field/util.ts b/packages/core/client/src/schema-component/antd/association-field/util.ts index a5dc2ec1a5..ad50e054ca 100644 --- a/packages/core/client/src/schema-component/antd/association-field/util.ts +++ b/packages/core/client/src/schema-component/antd/association-field/util.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/react'; import { isArr } from '@formily/shared'; import { getDefaultFormat, str2moment } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx b/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx index 29443a4772..fb915b0b5e 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/ActionBarAssociationFilterAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema, useFieldSchema } from '@formily/react'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx index 2bf44589e4..e19ba0011e 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Initializer.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Initializer.tsx index 59c1c750c8..030eaffd79 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Initializer.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Initializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer } from '../../../application/schema-initializer/SchemaInitializer'; import { SchemaInitializerItemType } from '../../../application/schema-initializer/types'; import { useAssociatedFields } from '../../../filter-provider/utils'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx index 95ef3b41c1..0d6e84ad8e 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.style.ts b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.style.ts index cd100fd3f6..765642a06e 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.style.ts +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-association-filter-item', (token) => { diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx index 63e4b7a01a..6d6e816a72 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.Item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseOutlined, SearchOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { Col, Collapse, Input, Row, Tree } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx index ce5551cc46..2dfa382a78 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { useFieldSchema } from '@formily/react'; import cls from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx index 09ec5860cf..4cdd1ae3c4 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDelete.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext } from 'react'; import { useFieldSchema } from '@formily/react'; import { createDesignable, SchemaComponentContext } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx index 7bc870509f..94eb255d30 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge } from '@formily/shared'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterProvider.tsx b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterProvider.tsx index 472ae251ea..0c6e377a50 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterProvider.tsx +++ b/packages/core/client/src/schema-component/antd/association-filter/AssociationFilterProvider.tsx @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // TODO: 因他们之间功能相同,所以先直接复用,后续有需要再拆分 export { TableBlockProvider as AssociationFilterProvider } from '../../../block-provider/TableBlockProvider'; diff --git a/packages/core/client/src/schema-component/antd/association-filter/utilts.ts b/packages/core/client/src/schema-component/antd/association-filter/utilts.ts index 268ccc47da..20c34149a0 100644 --- a/packages/core/client/src/schema-component/antd/association-filter/utilts.ts +++ b/packages/core/client/src/schema-component/antd/association-filter/utilts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; export const getTargetKey = (field?: CollectionFieldOptions_deprecated) => { diff --git a/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx index 238e839891..088767270c 100644 --- a/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/AssociationSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { ArrayCollapse, ArrayItems, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx index 66cbdd1031..86e805393a 100644 --- a/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import React from 'react'; import { useFieldTitle } from '../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/association-select/__tests__/association-select.test.tsx b/packages/core/client/src/schema-component/antd/association-select/__tests__/association-select.test.tsx index d9d83fb3e6..5431b8edb9 100644 --- a/packages/core/client/src/schema-component/antd/association-select/__tests__/association-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/__tests__/association-select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, sleep, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/association-select/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/association-select/demos/demo1.tsx index d30981b60b..bc90b74845 100644 --- a/packages/core/client/src/schema-component/antd/association-select/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/association-select/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClientProvider, AssociationSelect, FormProvider, SchemaComponent } from '@nocobase/client'; import React from 'react'; import { mockAPIClient } from '../../../../testUtils'; diff --git a/packages/core/client/src/schema-component/antd/association-select/index.ts b/packages/core/client/src/schema-component/antd/association-select/index.ts index d121d8577c..1e9f97cfad 100644 --- a/packages/core/client/src/schema-component/antd/association-select/index.ts +++ b/packages/core/client/src/schema-component/antd/association-select/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AssociationSelect'; diff --git a/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts b/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts index ecb4a7ed4e..3d737a77a9 100644 --- a/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts +++ b/packages/core/client/src/schema-component/antd/association-select/useServiceOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback, useMemo } from 'react'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx b/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx index 81d1b9e6d3..282febaf58 100644 --- a/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx +++ b/packages/core/client/src/schema-component/antd/auto-complete/AutoComplete.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapProps, mapReadPretty } from '@formily/react'; import { AutoComplete as AntdAutoComplete } from 'antd'; import { ReadPretty } from '../input'; diff --git a/packages/core/client/src/schema-component/antd/auto-complete/index.ts b/packages/core/client/src/schema-component/antd/auto-complete/index.ts index 99dbd39e3d..b1427e76c7 100644 --- a/packages/core/client/src/schema-component/antd/auto-complete/index.ts +++ b/packages/core/client/src/schema-component/antd/auto-complete/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AutoComplete'; diff --git a/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx b/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx index 172b357c4a..9c7bb0b18d 100644 --- a/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/BlockItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import cls from 'classnames'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx b/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx index 41b82e1fe7..0ebfe9f0db 100644 --- a/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card, CardProps } from 'antd'; import React from 'react'; import { useToken } from '../../../style'; diff --git a/packages/core/client/src/schema-component/antd/block-item/BlockItemError.tsx b/packages/core/client/src/schema-component/antd/block-item/BlockItemError.tsx index e01e1ca309..842328cff1 100644 --- a/packages/core/client/src/schema-component/antd/block-item/BlockItemError.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/BlockItemError.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { FC } from 'react'; import { ErrorBoundary, FallbackProps } from 'react-error-boundary'; diff --git a/packages/core/client/src/schema-component/antd/block-item/TestDesigner.tsx b/packages/core/client/src/schema-component/antd/block-item/TestDesigner.tsx index 2a521785b2..603e3a5add 100644 --- a/packages/core/client/src/schema-component/antd/block-item/TestDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/TestDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { DragHandler } from '../../common'; import { useDesignable } from '../../hooks'; diff --git a/packages/core/client/src/schema-component/antd/block-item/__tests__/block-item.test.tsx b/packages/core/client/src/schema-component/antd/block-item/__tests__/block-item.test.tsx index fbf2a49979..28c72dbe0f 100644 --- a/packages/core/client/src/schema-component/antd/block-item/__tests__/block-item.test.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/__tests__/block-item.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@testing-library/react'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx index be46dd9847..7ebe2c3ab1 100644 --- a/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; import { BlockItem, DndContext, DragHandler, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts b/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts index 48e1a24e75..ef95bf3b87 100644 --- a/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts +++ b/packages/core/client/src/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import _ from 'lodash'; import { useCallback } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/block-item/index.tsx b/packages/core/client/src/schema-component/antd/block-item/index.tsx index 19cf83478a..de84813348 100644 --- a/packages/core/client/src/schema-component/antd/block-item/index.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/index.tsx @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './BlockItem'; export * from './TestDesigner'; diff --git a/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx b/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx index 9cca65d1e3..980050f365 100644 --- a/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx +++ b/packages/core/client/src/schema-component/antd/card-item/CardItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { Skeleton } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/card-item/__tests__/card-item.test.tsx b/packages/core/client/src/schema-component/antd/card-item/__tests__/card-item.test.tsx index 042c52f8d4..81f33da841 100644 --- a/packages/core/client/src/schema-component/antd/card-item/__tests__/card-item.test.tsx +++ b/packages/core/client/src/schema-component/antd/card-item/__tests__/card-item.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/card-item/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/card-item/demos/demo1.tsx index 3f16b4e9e6..44977bc5da 100644 --- a/packages/core/client/src/schema-component/antd/card-item/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/card-item/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CardItem, FormProvider, SchemaComponent } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/card-item/index.ts b/packages/core/client/src/schema-component/antd/card-item/index.ts index 1f55f58c63..2743116eaa 100644 --- a/packages/core/client/src/schema-component/antd/card-item/index.ts +++ b/packages/core/client/src/schema-component/antd/card-item/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CardItem'; diff --git a/packages/core/client/src/schema-component/antd/card-item/style.ts b/packages/core/client/src/schema-component/antd/card-item/style.ts index 1ed3d55081..ee7be96f5c 100644 --- a/packages/core/client/src/schema-component/antd/card-item/style.ts +++ b/packages/core/client/src/schema-component/antd/card-item/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-card-item', (token) => { diff --git a/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx b/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx index f5dccc375d..8ed483eaf9 100644 --- a/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/Cascader.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { ArrayField } from '@formily/core'; import { connect, mapProps, mapReadPretty, useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx index aa4457e96c..4274ecafbf 100644 --- a/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField } from '@formily/react'; import { toArr } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/cascader/__tests__/cascader.test.tsx b/packages/core/client/src/schema-component/antd/cascader/__tests__/cascader.test.tsx index 141f7c38c0..7c585a48a4 100644 --- a/packages/core/client/src/schema-component/antd/cascader/__tests__/cascader.test.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/__tests__/cascader.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/cascader/defaultFieldNames.ts b/packages/core/client/src/schema-component/antd/cascader/defaultFieldNames.ts index da692434e9..0dfcf1f18e 100644 --- a/packages/core/client/src/schema-component/antd/cascader/defaultFieldNames.ts +++ b/packages/core/client/src/schema-component/antd/cascader/defaultFieldNames.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const defaultFieldNames = { label: 'label', value: 'value', diff --git a/packages/core/client/src/schema-component/antd/cascader/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/cascader/demos/demo1.tsx index 689649b2a0..e5ebf07424 100644 --- a/packages/core/client/src/schema-component/antd/cascader/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Cascader, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx index 5e8e35e078..4ec52d5151 100644 --- a/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/cascader/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; import { useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/cascader/index.ts b/packages/core/client/src/schema-component/antd/cascader/index.ts index 9da1b70387..3bbd45f82c 100644 --- a/packages/core/client/src/schema-component/antd/cascader/index.ts +++ b/packages/core/client/src/schema-component/antd/cascader/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Cascader'; diff --git a/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx b/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx index 75d1590cc0..f683d43b46 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx +++ b/packages/core/client/src/schema-component/antd/checkbox/Checkbox.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckOutlined, CloseOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty, useField } from '@formily/react'; import { isValid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/checkbox/__tests__/checkbox.test.tsx b/packages/core/client/src/schema-component/antd/checkbox/__tests__/checkbox.test.tsx index e772edd8fd..88a81e670b 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/__tests__/checkbox.test.tsx +++ b/packages/core/client/src/schema-component/antd/checkbox/__tests__/checkbox.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, renderReadPrettyApp, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/checkbox'; diff --git a/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.group.tsx b/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.group.tsx index 15813d8258..bd6380935a 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.group.tsx +++ b/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.group.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: 组 */ diff --git a/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.tsx b/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.tsx index ec6a78245a..ccf119e542 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.tsx +++ b/packages/core/client/src/schema-component/antd/checkbox/demos/checkbox.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: 勾选 */ diff --git a/packages/core/client/src/schema-component/antd/checkbox/index.ts b/packages/core/client/src/schema-component/antd/checkbox/index.ts index f5c939faf4..db1cf6b85d 100644 --- a/packages/core/client/src/schema-component/antd/checkbox/index.ts +++ b/packages/core/client/src/schema-component/antd/checkbox/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Checkbox'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx index 9f7f59d424..e252773b05 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/CollectionSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty, observer, useField } from '@formily/react'; import { Cascader, Select, SelectProps, Tag } from 'antd'; import React, { useCallback, useContext, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceCollectionCascader.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceCollectionCascader.test.tsx index 0c48dfbc7d..5aab8d6f9c 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceCollectionCascader.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceCollectionCascader.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderApp, screen, userEvent, waitFor } from '@nocobase/test/client'; import { DataSourceCollectionCascader } from '../CollectionSelect'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceSelect.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceSelect.test.tsx index 3de5b92b15..ddb8a1137e 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceSelect.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/DataSourceSelect.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderApp, screen, userEvent, waitFor, renderReadPrettyApp } from '@nocobase/test/client'; import { DataSourceSelect } from '../CollectionSelect'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx index 26e8b0d325..bac8168f83 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderReadPrettyApp, renderApp, screen, userEvent, waitFor } from '@nocobase/test/client'; import { FormItem, CollectionSelect } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/collection-select/index.tsx b/packages/core/client/src/schema-component/antd/collection-select/index.tsx index 94f40bdfc4..4773fad524 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/index.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionSelect'; diff --git a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx index 01e292ecd1..33b99abf74 100644 --- a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx +++ b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; import { connect, mapProps, mapReadPretty } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/color-picker/__tests__/ColorPicker.test.tsx b/packages/core/client/src/schema-component/antd/color-picker/__tests__/ColorPicker.test.tsx index a2fb37d23a..6f822beb91 100644 --- a/packages/core/client/src/schema-component/antd/color-picker/__tests__/ColorPicker.test.tsx +++ b/packages/core/client/src/schema-component/antd/color-picker/__tests__/ColorPicker.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ColorPicker } from '@nocobase/client'; import { renderApp, screen, renderReadPrettyApp, userEvent, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/color-picker/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/color-picker/demos/demo1.tsx index 9ecd4fdb3a..8ab7b4dcef 100644 --- a/packages/core/client/src/schema-component/antd/color-picker/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/color-picker/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: ColorPicker */ diff --git a/packages/core/client/src/schema-component/antd/color-picker/index.tsx b/packages/core/client/src/schema-component/antd/color-picker/index.tsx index 2a3592dfd1..72ce8c201c 100644 --- a/packages/core/client/src/schema-component/antd/color-picker/index.tsx +++ b/packages/core/client/src/schema-component/antd/color-picker/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ColorPicker'; diff --git a/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx b/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx index 97cdb13fcb..3daf9d95b8 100644 --- a/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx +++ b/packages/core/client/src/schema-component/antd/color-select/ColorSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { Select, Tag } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/color-select/__tests__/color-select.test.tsx b/packages/core/client/src/schema-component/antd/color-select/__tests__/color-select.test.tsx index 172c677a83..466a0c377f 100644 --- a/packages/core/client/src/schema-component/antd/color-select/__tests__/color-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/color-select/__tests__/color-select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen } from '@nocobase/test/client'; import React from 'react'; import App from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/color-select/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/color-select/demos/demo1.tsx index 492a143aa9..780510fd48 100644 --- a/packages/core/client/src/schema-component/antd/color-select/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/color-select/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: 勾选 */ diff --git a/packages/core/client/src/schema-component/antd/color-select/index.ts b/packages/core/client/src/schema-component/antd/color-select/index.ts index f2012066fc..d5c32770d7 100644 --- a/packages/core/client/src/schema-component/antd/color-select/index.ts +++ b/packages/core/client/src/schema-component/antd/color-select/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ColorSelect'; diff --git a/packages/core/client/src/schema-component/antd/cron/Cron.tsx b/packages/core/client/src/schema-component/antd/cron/Cron.tsx index e09ca56ad0..ef20f45ccf 100644 --- a/packages/core/client/src/schema-component/antd/cron/Cron.tsx +++ b/packages/core/client/src/schema-component/antd/cron/Cron.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { connect, mapReadPretty } from '@formily/react'; import { error } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/cron/CronSet.tsx b/packages/core/client/src/schema-component/antd/cron/CronSet.tsx index e01279878f..f53200f08f 100644 --- a/packages/core/client/src/schema-component/antd/cron/CronSet.tsx +++ b/packages/core/client/src/schema-component/antd/cron/CronSet.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty, useFieldSchema } from '@formily/react'; import { Select, SelectProps } from 'antd'; import React, { useEffect, useMemo, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cron/__tests__/cron-set.test.tsx b/packages/core/client/src/schema-component/antd/cron/__tests__/cron-set.test.tsx index 1bc7f7f66b..4e148bc725 100644 --- a/packages/core/client/src/schema-component/antd/cron/__tests__/cron-set.test.tsx +++ b/packages/core/client/src/schema-component/antd/cron/__tests__/cron-set.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import Cron from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/cron/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/cron/demos/demo1.tsx index 8c80e5ba86..f9fe35c4c3 100644 --- a/packages/core/client/src/schema-component/antd/cron/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/cron/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Cron, FormProvider, SchemaComponent } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cron/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/cron/demos/demo2.tsx index e270fc4c41..6c311bcacb 100644 --- a/packages/core/client/src/schema-component/antd/cron/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/cron/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { CronSet, FormProvider, SchemaComponent } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/cron/index.tsx b/packages/core/client/src/schema-component/antd/cron/index.tsx index f0e06e16f4..587fd0f450 100644 --- a/packages/core/client/src/schema-component/antd/cron/index.tsx +++ b/packages/core/client/src/schema-component/antd/cron/index.tsx @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Cron'; export * from './CronSet'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx b/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx index 60dfe93bf2..c4e0d9cea6 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/DatePicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapProps, mapReadPretty } from '@formily/react'; import { DatePicker as AntdDatePicker } from 'antd'; import type { diff --git a/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx index 64c8f5780a..91c20e0248 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; import { isArr } from '@formily/shared'; import { getDefaultFormat, str2moment } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/date-picker.test.tsx b/packages/core/client/src/schema-component/antd/date-picker/__tests__/date-picker.test.tsx index acd971f87c..e89323d675 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/date-picker.test.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/date-picker.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, sleep, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/getDateRanges.test.ts b/packages/core/client/src/schema-component/antd/date-picker/__tests__/getDateRanges.test.ts index 41a0e5ae11..0da7b30d23 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/getDateRanges.test.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/getDateRanges.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; import { getDateRanges } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapDatePicker.test.ts b/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapDatePicker.test.ts index 2ae67697b2..f966ee3a3e 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapDatePicker.test.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapDatePicker.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import dayjs from 'dayjs'; import { mapDatePicker } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapRangePicker.test.ts b/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapRangePicker.test.ts index 883da4f3f1..2ee3d45664 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapRangePicker.test.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/mapRangePicker.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import dayjs from 'dayjs'; import { mapRangePicker } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts b/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts index 657447bdf4..ac5b2ebf8e 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/__tests__/util.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; import { str2moment } from '@nocobase/utils/client'; import { getDateRanges, moment2str } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo1.tsx index 0e58433fe0..75b41fcbfe 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo10.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo10.tsx index aad364a19d..0704bb7632 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo10.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo10.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo11.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo11.tsx index 1cd60ac4d6..955051081d 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo11.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo11.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker.RangePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo2.tsx index a32adcd207..87922d5c3f 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker (GMT) */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo3.tsx index 82f0a13022..2d982ffa05 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo4.tsx index e9709a3ee1..23bdafc6e1 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker.RangePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo5.tsx index e3db10a37e..659374d5c0 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo5.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker.RangePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo6.tsx index bb7a325729..1fdcf0b00d 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo6.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker.RangePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo7.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo7.tsx index 56eaec1826..19cedb8001 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo7.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo7.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo8.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo8.tsx index aad364a19d..0704bb7632 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo8.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo8.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/demos/demo9.tsx b/packages/core/client/src/schema-component/antd/date-picker/demos/demo9.tsx index 56eaec1826..19cedb8001 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/demos/demo9.tsx +++ b/packages/core/client/src/schema-component/antd/date-picker/demos/demo9.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: DatePicker */ diff --git a/packages/core/client/src/schema-component/antd/date-picker/index.ts b/packages/core/client/src/schema-component/antd/date-picker/index.ts index a48b62e4df..a1c2c8937a 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/index.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './DatePicker'; diff --git a/packages/core/client/src/schema-component/antd/date-picker/util.ts b/packages/core/client/src/schema-component/antd/date-picker/util.ts index a5fbbfe073..6521b27fa6 100644 --- a/packages/core/client/src/schema-component/antd/date-picker/util.ts +++ b/packages/core/client/src/schema-component/antd/date-picker/util.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getDefaultFormat, str2moment, toGmt, toLocal } from '@nocobase/utils/client'; import type { Dayjs } from 'dayjs'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-component/antd/details/Details.tsx b/packages/core/client/src/schema-component/antd/details/Details.tsx index d1641a71ea..12b8979f36 100644 --- a/packages/core/client/src/schema-component/antd/details/Details.tsx +++ b/packages/core/client/src/schema-component/antd/details/Details.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { FormV2 } from '../form-v2'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/details/__tests__/details.test.tsx b/packages/core/client/src/schema-component/antd/details/__tests__/details.test.tsx index 5c38bb711a..6a7127476b 100644 --- a/packages/core/client/src/schema-component/antd/details/__tests__/details.test.tsx +++ b/packages/core/client/src/schema-component/antd/details/__tests__/details.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/details/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/details/demos/demo1.tsx index 7728564ec0..46e58e2c22 100644 --- a/packages/core/client/src/schema-component/antd/details/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/details/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Details, FormProvider, Input, SchemaComponent } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/details/index.ts b/packages/core/client/src/schema-component/antd/details/index.ts index 2201d1f1d2..ea616b0ab1 100644 --- a/packages/core/client/src/schema-component/antd/details/index.ts +++ b/packages/core/client/src/schema-component/antd/details/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Details'; diff --git a/packages/core/client/src/schema-component/antd/error-fallback/ErrorFallback.tsx b/packages/core/client/src/schema-component/antd/error-fallback/ErrorFallback.tsx index 995d6e8439..7c8a906f20 100644 --- a/packages/core/client/src/schema-component/antd/error-fallback/ErrorFallback.tsx +++ b/packages/core/client/src/schema-component/antd/error-fallback/ErrorFallback.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Result, Typography } from 'antd'; import React, { FC } from 'react'; import { FallbackProps, useErrorBoundary } from 'react-error-boundary'; diff --git a/packages/core/client/src/schema-component/antd/error-fallback/__tests__/error-fallback.test.tsx b/packages/core/client/src/schema-component/antd/error-fallback/__tests__/error-fallback.test.tsx index 87dd745599..60f4486952 100644 --- a/packages/core/client/src/schema-component/antd/error-fallback/__tests__/error-fallback.test.tsx +++ b/packages/core/client/src/schema-component/antd/error-fallback/__tests__/error-fallback.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/error-fallback/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/error-fallback/demos/demo1.tsx index 183fcae574..d1b1fc2c98 100644 --- a/packages/core/client/src/schema-component/antd/error-fallback/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/error-fallback/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ErrorBoundary } from 'react-error-boundary'; import { ErrorFallback } from '../ErrorFallback'; diff --git a/packages/core/client/src/schema-component/antd/error-fallback/index.ts b/packages/core/client/src/schema-component/antd/error-fallback/index.ts index 12bb8db1b4..faef807ae0 100644 --- a/packages/core/client/src/schema-component/antd/error-fallback/index.ts +++ b/packages/core/client/src/schema-component/antd/error-fallback/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ErrorFallback'; diff --git a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx index 8ba9a60bf3..c6812c8547 100644 --- a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx +++ b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.Design.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx index 2744ba40a2..c12b5146d5 100644 --- a/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx +++ b/packages/core/client/src/schema-component/antd/expand-action/Expand.Action.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { useFieldSchema } from '@formily/react'; import { Button } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/expand-action/index.ts b/packages/core/client/src/schema-component/antd/expand-action/index.ts index 8120050242..4bcb6d6527 100644 --- a/packages/core/client/src/schema-component/antd/expand-action/index.ts +++ b/packages/core/client/src/schema-component/antd/expand-action/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ExpandAction } from './Expand.Action'; import { ExpandActionDesign } from './Expand.Action.Design'; diff --git a/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx b/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx index 69b79909a1..0b98f01638 100644 --- a/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx +++ b/packages/core/client/src/schema-component/antd/filter/DynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, onFieldValueChange } from '@formily/core'; import { FieldContext, FormContext } from '@formily/react'; import { merge } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx b/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx index 5a95ee5a7f..280265307c 100644 --- a/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/filter/Filter.Action.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/filter/Filter.tsx b/packages/core/client/src/schema-component/antd/filter/Filter.tsx index 627ae2d4aa..3bb4b14820 100644 --- a/packages/core/client/src/schema-component/antd/filter/Filter.tsx +++ b/packages/core/client/src/schema-component/antd/filter/Filter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ObjectField as ObjectFieldModel } from '@formily/core'; import { observer, useField, useFieldSchema } from '@formily/react'; import React, { useEffect } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx b/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx index 76d6ecc44c..0aa69c023a 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { createForm, Field, Form } from '@formily/core'; import { observer, useField, useFieldSchema, useForm } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx b/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx index 5a60b0486b..08ec982e74 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterGroup.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleOutlined } from '@ant-design/icons'; import { ObjectField as ObjectFieldModel } from '@formily/core'; import { ArrayField, connect, useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx b/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx index a7fe50a60b..1bcf2dfc76 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx index c197d564b9..f4f40be295 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField as ArrayFieldModel } from '@formily/core'; import { ObjectField, observer, useField } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx b/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx index dbfc264d4e..0c965fc2b6 100644 --- a/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx +++ b/packages/core/client/src/schema-component/antd/filter/SaveDefaultValue.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { useFieldSchema, useForm } from '@formily/react'; import { Button } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/filter/__tests__/filter.test.tsx b/packages/core/client/src/schema-component/antd/filter/__tests__/filter.test.tsx index e050e0f7ef..8b8b76e1ee 100644 --- a/packages/core/client/src/schema-component/antd/filter/__tests__/filter.test.tsx +++ b/packages/core/client/src/schema-component/antd/filter/__tests__/filter.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor, within } from '@nocobase/test/client'; import React from 'react'; import App2 from '../demos/demo2'; diff --git a/packages/core/client/src/schema-component/antd/filter/context.ts b/packages/core/client/src/schema-component/antd/filter/context.ts index c502f53992..a9d5580d31 100644 --- a/packages/core/client/src/schema-component/antd/filter/context.ts +++ b/packages/core/client/src/schema-component/antd/filter/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ObjectField } from '@formily/core'; import { Schema } from '@formily/react'; import { createContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo2.tsx index 616d0d3e20..22c311a6a5 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AntdSchemaComponentProvider, Filter, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx index 05aa6fe5dd..5158792afc 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { AntdSchemaComponentProvider, diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx index a9655f62ff..f6f4722d31 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { AntdSchemaComponentProvider, diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx index baa96a99c6..b3e8d84592 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo5.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { Filter, FilterAction, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/filter/demos/demo6.tsx index c15df10929..c7aea0d8cc 100644 --- a/packages/core/client/src/schema-component/antd/filter/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/filter/demos/demo6.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AntdSchemaComponentProvider, Application, diff --git a/packages/core/client/src/schema-component/antd/filter/index.ts b/packages/core/client/src/schema-component/antd/filter/index.ts index 0a0ba718f0..a132fce2e8 100644 --- a/packages/core/client/src/schema-component/antd/filter/index.ts +++ b/packages/core/client/src/schema-component/antd/filter/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Filter'; export * from './FilterAction'; export * from './useFilterActionProps'; diff --git a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts index 6deb6d2a4b..7485a81036 100644 --- a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts +++ b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import flat from 'flat'; diff --git a/packages/core/client/src/schema-component/antd/filter/useOperators.ts b/packages/core/client/src/schema-component/antd/filter/useOperators.ts index 6bc243ea9c..35b1720877 100644 --- a/packages/core/client/src/schema-component/antd/filter/useOperators.ts +++ b/packages/core/client/src/schema-component/antd/filter/useOperators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCollection_deprecated, useCollectionManager_deprecated } from '../../../collection-manager'; import { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/filter/useValues.ts b/packages/core/client/src/schema-component/antd/filter/useValues.ts index b9bad47ef4..62dd32f39f 100644 --- a/packages/core/client/src/schema-component/antd/filter/useValues.ts +++ b/packages/core/client/src/schema-component/antd/filter/useValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { merge } from '@formily/shared'; import flat, { unflatten } from 'flat'; diff --git a/packages/core/client/src/schema-component/antd/form-dialog/index.tsx b/packages/core/client/src/schema-component/antd/form-dialog/index.tsx index 1400777072..c807674b10 100644 --- a/packages/core/client/src/schema-component/antd/form-dialog/index.tsx +++ b/packages/core/client/src/schema-component/antd/form-dialog/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, Form, IFormProps } from '@formily/core'; import { FormProvider, Observer, observer, ReactFC } from '@formily/react'; import { untracked } from '@formily/reactive'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormDesigner.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormDesigner.tsx index 3cab0f34a1..7c80a7b029 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { GeneralSchemaDesigner } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx index 187608ba55..88181bed92 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.FilterFormSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx index 86d0ac0945..8a3fbf1e47 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { ISchema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index ca012117f4..63b4d5fcf7 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { FormItem as Item } from '@formily/antd-v5'; import { Field } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx b/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx index 56630169eb..bc5a8999a5 100644 --- a/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/SchemaSettingOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { ISchema, Schema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/form-item/__tests__/SchemaSettingOptions.test.tsx b/packages/core/client/src/schema-component/antd/form-item/__tests__/SchemaSettingOptions.test.tsx index afb2967dc8..d280111c51 100644 --- a/packages/core/client/src/schema-component/antd/form-item/__tests__/SchemaSettingOptions.test.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/__tests__/SchemaSettingOptions.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, checkSettings, diff --git a/packages/core/client/src/schema-component/antd/form-item/__tests__/form-item.test.tsx b/packages/core/client/src/schema-component/antd/form-item/__tests__/form-item.test.tsx index 16b17a79e1..40f3e4e929 100644 --- a/packages/core/client/src/schema-component/antd/form-item/__tests__/form-item.test.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/__tests__/form-item.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.ts b/packages/core/client/src/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.ts index f22df2ce6e..6f7429da0e 100644 --- a/packages/core/client/src/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.ts +++ b/packages/core/client/src/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { transformValue } from '../../hooks/useSpecialCase'; describe('transformValue', () => { diff --git a/packages/core/client/src/schema-component/antd/form-item/__tests__/utils.test.ts b/packages/core/client/src/schema-component/antd/form-item/__tests__/utils.test.ts index b1661fd178..a3eaecfd8a 100644 --- a/packages/core/client/src/schema-component/antd/form-item/__tests__/utils.test.ts +++ b/packages/core/client/src/schema-component/antd/form-item/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isFieldValueEmpty } from '../utils'; describe('isFieldValueEmpty', () => { diff --git a/packages/core/client/src/schema-component/antd/form-item/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/form-item/demos/demo1.tsx index 4b04b74ede..dd9b3d2d24 100644 --- a/packages/core/client/src/schema-component/antd/form-item/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClientProvider, CurrentUserProvider, diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts index 9e00c4bd89..170a09049a 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema, useForm } from '@formily/react'; import { nextTick } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts index 6da34b4cb9..d354f40473 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useParseDefaultValue.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { reaction } from '@formily/reactive'; diff --git a/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts b/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts index 07c815d601..290bbc62c2 100644 --- a/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts +++ b/packages/core/client/src/schema-component/antd/form-item/hooks/useSpecialCase.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { Schema, useFieldSchema, useForm } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/form-item/index.tsx b/packages/core/client/src/schema-component/antd/form-item/index.tsx index cb153889e1..81b7b4cf0b 100644 --- a/packages/core/client/src/schema-component/antd/form-item/index.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FormItem'; export * from './FormItem.Settings'; export * from './FormItem.FilterFormSettings'; diff --git a/packages/core/client/src/schema-component/antd/form-item/utils.ts b/packages/core/client/src/schema-component/antd/form-item/utils.ts index 17e4943b3b..54d292e543 100644 --- a/packages/core/client/src/schema-component/antd/form-item/utils.ts +++ b/packages/core/client/src/schema-component/antd/form-item/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; /** diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.Designer.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.Designer.tsx index 563ec10fa0..096ffdb0cb 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; import { GeneralSchemaDesigner } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.FilterDesigner.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.FilterDesigner.tsx index fd3804bc10..cabdad7c53 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.FilterDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.FilterDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; import { GeneralSchemaDesigner } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx index d6e033988e..05b11fee99 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx index ffe69599ba..ae0f21614f 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; import { createForm, Field, Form as FormilyForm, onFieldInit, onFormInputChange } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx b/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx index 45ee929fb1..74f45f2ef3 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/FormField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField, useFieldSchema } from '@formily/react'; import React, { useEffect } from 'react'; import { useFormBlockContext } from '../../../block-provider'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx b/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx index 6d86eba9be..23c062e99a 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Templates.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { error, forEach } from '@nocobase/utils/client'; import { Select, Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/__tests__/form-v2.test.tsx b/packages/core/client/src/schema-component/antd/form-v2/__tests__/form-v2.test.tsx index f8bf7d8af3..552261336c 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/__tests__/form-v2.test.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/__tests__/form-v2.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/collections.ts b/packages/core/client/src/schema-component/antd/form-v2/demos/collections.ts index 913eee01fd..e768cc0163 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/collections.ts +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default [ { key: '17zb9wfq0vt', diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx index 23544840c9..296f487d8e 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx index bcd6aec1b6..b9c14cc08f 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx index 0cf49f8a6c..e4232e5e64 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Action, diff --git a/packages/core/client/src/schema-component/antd/form-v2/index.ts b/packages/core/client/src/schema-component/antd/form-v2/index.ts index df0fef47a3..6bc51a013d 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/index.ts +++ b/packages/core/client/src/schema-component/antd/form-v2/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form as FormV2 } from './Form'; import { DetailsDesigner, FormDesigner, ReadPrettyFormDesigner } from './Form.Designer'; import { FilterDesigner } from './Form.FilterDesigner'; diff --git a/packages/core/client/src/schema-component/antd/form-v2/utils.tsx b/packages/core/client/src/schema-component/antd/form-v2/utils.tsx index 3972c9925a..3edfd0b5aa 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/utils.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { evaluators } from '@nocobase/evaluators/client'; import { uid } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/form/Form.Designer.tsx b/packages/core/client/src/schema-component/antd/form/Form.Designer.tsx index 4f220a52b0..b534709450 100644 --- a/packages/core/client/src/schema-component/antd/form/Form.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/form/Form.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; import { GeneralSchemaDesigner } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/form/Form.Settings.tsx b/packages/core/client/src/schema-component/antd/form/Form.Settings.tsx index de11dd456f..e5b07813f1 100644 --- a/packages/core/client/src/schema-component/antd/form/Form.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/form/Form.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaSettings } from '../../../application/schema-settings'; import { useCollection_deprecated } from '../../../collection-manager'; import { SchemaSettingsTemplate } from '../../../schema-settings/SchemaSettings'; diff --git a/packages/core/client/src/schema-component/antd/form/Form.tsx b/packages/core/client/src/schema-component/antd/form/Form.tsx index 3f3c204692..d081243ddd 100644 --- a/packages/core/client/src/schema-component/antd/form/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form/Form.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; import { FieldContext, FormContext, observer, RecursionField, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/form/__tests__/form.settings.test.tsx b/packages/core/client/src/schema-component/antd/form/__tests__/form.settings.test.tsx index bf771be243..2341c52152 100644 --- a/packages/core/client/src/schema-component/antd/form/__tests__/form.settings.test.tsx +++ b/packages/core/client/src/schema-component/antd/form/__tests__/form.settings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin, FormBlockProvider, VariablesProvider } from '@nocobase/client'; import { checkSettings, renderApp } from '@nocobase/test/client'; import { withSchema } from '@nocobase/test/web'; diff --git a/packages/core/client/src/schema-component/antd/form/__tests__/form.test.tsx b/packages/core/client/src/schema-component/antd/form/__tests__/form.test.tsx index 3a09d777d9..e0790ae1a0 100644 --- a/packages/core/client/src/schema-component/antd/form/__tests__/form.test.tsx +++ b/packages/core/client/src/schema-component/antd/form/__tests__/form.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, sleep, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/apiClient.ts b/packages/core/client/src/schema-component/antd/form/demos/apiClient.ts index 6581aab98d..dcee1075c2 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/apiClient.ts +++ b/packages/core/client/src/schema-component/antd/form/demos/apiClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient } from '@nocobase/client'; import MockAdapter from 'axios-mock-adapter'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx index fab7d67e4b..e2701f3f49 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, SchemaComponent, SchemaComponentProvider, useCloseAction } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx index 23d2033cc2..20ce81b838 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx index cfd4d96fa9..51f7ef4dbe 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx index 2bb7c87b9c..2ba3a05394 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, SchemaComponent, SchemaComponentProvider, useCloseAction } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx index 7100e2ee1e..ac63e47fd0 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo5.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx index cd73343f1f..47772a6e05 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo6.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx index 79c182a73b..24c1edf73d 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo7.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, Input } from '@formily/antd-v5'; import { ISchema, observer, useForm } from '@formily/react'; import { Action, Form, FormUseValues, SchemaComponent, SchemaComponentProvider, useRequest } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx index ac6bd081b5..7ff5a8fb91 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo8.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { ISchema, observer } from '@formily/react'; import { diff --git a/packages/core/client/src/schema-component/antd/form/demos/demo9.tsx b/packages/core/client/src/schema-component/antd/form/demos/demo9.tsx index 5626d1de5d..4d39fd3d32 100644 --- a/packages/core/client/src/schema-component/antd/form/demos/demo9.tsx +++ b/packages/core/client/src/schema-component/antd/form/demos/demo9.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin, VariablesProvider } from '@nocobase/client'; import { renderApp } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/form/index.tsx b/packages/core/client/src/schema-component/antd/form/index.tsx index b142a347b0..045207e680 100644 --- a/packages/core/client/src/schema-component/antd/form/index.tsx +++ b/packages/core/client/src/schema-component/antd/form/index.tsx @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Form'; export * from './Form.Settings'; diff --git a/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx b/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx index 02ab18398b..1e36cc5b92 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/G2Plot.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Area, Bar, diff --git a/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx b/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx index 64e96c64e7..7a03e1fa8c 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/G2PlotDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/g2plot/__tests__/g2plot.test.tsx b/packages/core/client/src/schema-component/antd/g2plot/__tests__/g2plot.test.tsx index c0e26b4c76..42d2fc2b7d 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/__tests__/g2plot.test.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/__tests__/g2plot.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/g2plot/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/g2plot/demos/demo1.tsx index ac36d013c0..9196657865 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/g2plot/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient, APIClientProvider, diff --git a/packages/core/client/src/schema-component/antd/g2plot/index.ts b/packages/core/client/src/schema-component/antd/g2plot/index.ts index c3dc4811c4..2742a5549c 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/index.ts +++ b/packages/core/client/src/schema-component/antd/g2plot/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './G2Plot'; diff --git a/packages/core/client/src/schema-component/antd/g2plot/requestChartData.ts b/packages/core/client/src/schema-component/antd/g2plot/requestChartData.ts index f1970db5b7..0354ee40d7 100644 --- a/packages/core/client/src/schema-component/antd/g2plot/requestChartData.ts +++ b/packages/core/client/src/schema-component/antd/g2plot/requestChartData.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient } from '../../../api-client'; export const requestChartData = (options) => { diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.style.ts b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.style.ts index 0119329e89..9349713554 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.style.ts +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-grid-card', (token) => { diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx index 86ecac1c31..5492fe091c 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Decorator.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; import { FormContext, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx index 64d6dfc0de..51bc4b815e 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { Slider } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx index 4e9ce7d2f5..856da986c9 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.Item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { ObjectField } from '@formily/core'; import { useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx b/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx index 63104ad2db..18a528b562 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/GridCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { ArrayField } from '@formily/core'; import { RecursionField, Schema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/__tests__/grid-card.test.tsx b/packages/core/client/src/schema-component/antd/grid-card/__tests__/grid-card.test.tsx index 3dcb332661..bae1afb1ad 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/__tests__/grid-card.test.tsx +++ b/packages/core/client/src/schema-component/antd/grid-card/__tests__/grid-card.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin } from '@nocobase/client'; import { renderApp, waitFor, screen, userEvent } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/hooks.ts b/packages/core/client/src/schema-component/antd/grid-card/hooks.ts index d4d00ebb1b..3ac7e6f12f 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/hooks.ts +++ b/packages/core/client/src/schema-component/antd/grid-card/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SpaceProps } from 'antd'; const spaceProps: SpaceProps = { diff --git a/packages/core/client/src/schema-component/antd/grid-card/index.ts b/packages/core/client/src/schema-component/antd/grid-card/index.ts index 46fa672a02..1022e90906 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/index.ts +++ b/packages/core/client/src/schema-component/antd/grid-card/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './GridCard'; diff --git a/packages/core/client/src/schema-component/antd/grid-card/options.ts b/packages/core/client/src/schema-component/antd/grid-card/options.ts index 8df7b54df5..88f6534309 100644 --- a/packages/core/client/src/schema-component/antd/grid-card/options.ts +++ b/packages/core/client/src/schema-component/antd/grid-card/options.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const pageSizeOptions = [12, 24, 60, 96, 120]; export const gridSizes = ['xs', 'md', 'lg', 'xxl']; export const screenSizeTitleMaps = { diff --git a/packages/core/client/src/schema-component/antd/grid/Block.tsx b/packages/core/client/src/schema-component/antd/grid/Block.tsx index 410c77a56a..2f7d8921b0 100644 --- a/packages/core/client/src/schema-component/antd/grid/Block.tsx +++ b/packages/core/client/src/schema-component/antd/grid/Block.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useFieldSchema } from '@formily/react'; import React from 'react'; import { DragHandler } from '../../'; diff --git a/packages/core/client/src/schema-component/antd/grid/Grid.style.ts b/packages/core/client/src/schema-component/antd/grid/Grid.style.ts index c2e276e822..0848ce6247 100644 --- a/packages/core/client/src/schema-component/antd/grid/Grid.style.ts +++ b/packages/core/client/src/schema-component/antd/grid/Grid.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-grid', (token) => { diff --git a/packages/core/client/src/schema-component/antd/grid/Grid.tsx b/packages/core/client/src/schema-component/antd/grid/Grid.tsx index 64deeea92b..34a3334eaf 100644 --- a/packages/core/client/src/schema-component/antd/grid/Grid.tsx +++ b/packages/core/client/src/schema-component/antd/grid/Grid.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; import { useDndContext, useDndMonitor, useDraggable, useDroppable } from '@dnd-kit/core'; import { ISchema, RecursionField, Schema, observer, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/grid/__tests__/grid.test.tsx b/packages/core/client/src/schema-component/antd/grid/__tests__/grid.test.tsx index a9e93f420f..e3c3f76497 100644 --- a/packages/core/client/src/schema-component/antd/grid/__tests__/grid.test.tsx +++ b/packages/core/client/src/schema-component/antd/grid/__tests__/grid.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx index a387ddc08e..a22e8ab656 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useFieldSchema } from '@formily/react'; import { Application, diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx index 4dabb9a42f..ceed2db651 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx index 03f6e560cd..08dc69bf5d 100644 --- a/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/grid/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/core/client/src/schema-component/antd/grid/index.tsx b/packages/core/client/src/schema-component/antd/grid/index.tsx index d50807e89e..aebd48049a 100644 --- a/packages/core/client/src/schema-component/antd/grid/index.tsx +++ b/packages/core/client/src/schema-component/antd/grid/index.tsx @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Block'; export * from './Grid'; diff --git a/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx b/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx index 5ff332ec87..d34fda5e69 100644 --- a/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx +++ b/packages/core/client/src/schema-component/antd/icon-picker/IconPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseOutlined, LoadingOutlined } from '@ant-design/icons'; import { useFormLayout } from '@formily/antd-v5'; import { connect, mapProps, mapReadPretty } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/icon-picker/__tests__/icon-picker.test.tsx b/packages/core/client/src/schema-component/antd/icon-picker/__tests__/icon-picker.test.tsx index edd1092293..ebe933364a 100644 --- a/packages/core/client/src/schema-component/antd/icon-picker/__tests__/icon-picker.test.tsx +++ b/packages/core/client/src/schema-component/antd/icon-picker/__tests__/icon-picker.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App from '../demos/icon-picker'; diff --git a/packages/core/client/src/schema-component/antd/icon-picker/demos/icon-picker.tsx b/packages/core/client/src/schema-component/antd/icon-picker/demos/icon-picker.tsx index 40478519f2..80fc638f7a 100644 --- a/packages/core/client/src/schema-component/antd/icon-picker/demos/icon-picker.tsx +++ b/packages/core/client/src/schema-component/antd/icon-picker/demos/icon-picker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { IconPicker, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/icon-picker/index.ts b/packages/core/client/src/schema-component/antd/icon-picker/index.ts index 30dda5250c..9543d2297f 100644 --- a/packages/core/client/src/schema-component/antd/icon-picker/index.ts +++ b/packages/core/client/src/schema-component/antd/icon-picker/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './IconPicker'; diff --git a/packages/core/client/src/schema-component/antd/index.ts b/packages/core/client/src/schema-component/antd/index.ts index e03080bde4..74ae92ef9b 100644 --- a/packages/core/client/src/schema-component/antd/index.ts +++ b/packages/core/client/src/schema-component/antd/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AntdSchemaComponentProvider'; export { genStyleHook } from './__builtins__'; export * from './action'; diff --git a/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx b/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx index 955b3cd060..9e451e0a95 100644 --- a/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/InputNumber.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { InputNumber as AntdNumber, InputNumberProps } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx index e621dc88f2..e86e18bd49 100644 --- a/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isValid } from '@formily/shared'; import { toFixedByStep } from '@nocobase/utils/client'; import type { InputNumberProps as AntdInputNumberProps } from 'antd/es/input-number'; diff --git a/packages/core/client/src/schema-component/antd/input-number/__tests__/input-number.test.tsx b/packages/core/client/src/schema-component/antd/input-number/__tests__/input-number.test.tsx index 3fda3e0270..3bf77a1b5b 100644 --- a/packages/core/client/src/schema-component/antd/input-number/__tests__/input-number.test.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/__tests__/input-number.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen } from '@nocobase/test/client'; import React from 'react'; import { formatNumberWithSeparator, formatUnitConversion, scientificNotation } from '../ReadPretty'; diff --git a/packages/core/client/src/schema-component/antd/input-number/demos/addonBefore&addonAfter.tsx b/packages/core/client/src/schema-component/antd/input-number/demos/addonBefore&addonAfter.tsx index cbb6c432d2..6b3bd6ab30 100644 --- a/packages/core/client/src/schema-component/antd/input-number/demos/addonBefore&addonAfter.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/demos/addonBefore&addonAfter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { InputNumber, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input-number/demos/highPrecisionDecimals.tsx b/packages/core/client/src/schema-component/antd/input-number/demos/highPrecisionDecimals.tsx index ede1bf83b6..24fa402606 100644 --- a/packages/core/client/src/schema-component/antd/input-number/demos/highPrecisionDecimals.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/demos/highPrecisionDecimals.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { InputNumber, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input-number/demos/inputNumber.tsx b/packages/core/client/src/schema-component/antd/input-number/demos/inputNumber.tsx index 3306cba51b..df49de4b64 100644 --- a/packages/core/client/src/schema-component/antd/input-number/demos/inputNumber.tsx +++ b/packages/core/client/src/schema-component/antd/input-number/demos/inputNumber.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { InputNumber, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input-number/index.ts b/packages/core/client/src/schema-component/antd/input-number/index.ts index 69c441376d..83a5c61500 100644 --- a/packages/core/client/src/schema-component/antd/input-number/index.ts +++ b/packages/core/client/src/schema-component/antd/input-number/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './InputNumber'; diff --git a/packages/core/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx b/packages/core/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx index bfa2e202f7..f9aab028aa 100644 --- a/packages/core/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx +++ b/packages/core/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Popover } from 'antd'; import React, { CSSProperties, forwardRef, useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/Input.tsx b/packages/core/client/src/schema-component/antd/input/Input.tsx index a6fb285662..bb3175849c 100644 --- a/packages/core/client/src/schema-component/antd/input/Input.tsx +++ b/packages/core/client/src/schema-component/antd/input/Input.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { Input as AntdInput } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/input/Json.tsx b/packages/core/client/src/schema-component/antd/input/Json.tsx index 903c9cb2ae..aa2b71893e 100644 --- a/packages/core/client/src/schema-component/antd/input/Json.tsx +++ b/packages/core/client/src/schema-component/antd/input/Json.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField } from '@formily/react'; import { Input } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx index c5a76787a2..644bc6a661 100644 --- a/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; import { Typography } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/input/__tests__/EllipsisWithTooltip.test.tsx b/packages/core/client/src/schema-component/antd/input/__tests__/EllipsisWithTooltip.test.tsx index 2b6689095e..06e74e9391 100644 --- a/packages/core/client/src/schema-component/antd/input/__tests__/EllipsisWithTooltip.test.tsx +++ b/packages/core/client/src/schema-component/antd/input/__tests__/EllipsisWithTooltip.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect, useRef } from 'react'; import { render, sleep, userEvent, waitFor, screen, act } from '@nocobase/test/client'; import { EllipsisWithTooltip } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/input/__tests__/Input.test.tsx b/packages/core/client/src/schema-component/antd/input/__tests__/Input.test.tsx index 2dfcd26471..9627c794dc 100644 --- a/packages/core/client/src/schema-component/antd/input/__tests__/Input.test.tsx +++ b/packages/core/client/src/schema-component/antd/input/__tests__/Input.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/input'; diff --git a/packages/core/client/src/schema-component/antd/input/demos/input.tsx b/packages/core/client/src/schema-component/antd/input/demos/input.tsx index f8fb47c8fc..7c77982b7b 100644 --- a/packages/core/client/src/schema-component/antd/input/demos/input.tsx +++ b/packages/core/client/src/schema-component/antd/input/demos/input.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Application, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/demos/json.tsx b/packages/core/client/src/schema-component/antd/input/demos/json.tsx index 435375be71..ba3ca521b4 100644 --- a/packages/core/client/src/schema-component/antd/input/demos/json.tsx +++ b/packages/core/client/src/schema-component/antd/input/demos/json.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Application, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/demos/textarea.tsx b/packages/core/client/src/schema-component/antd/input/demos/textarea.tsx index 317280a41d..bc6f36a782 100644 --- a/packages/core/client/src/schema-component/antd/input/demos/textarea.tsx +++ b/packages/core/client/src/schema-component/antd/input/demos/textarea.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Application, Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/demos/url.tsx b/packages/core/client/src/schema-component/antd/input/demos/url.tsx index 7f4b0e7cbb..265b006016 100644 --- a/packages/core/client/src/schema-component/antd/input/demos/url.tsx +++ b/packages/core/client/src/schema-component/antd/input/demos/url.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Input, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/input/index.ts b/packages/core/client/src/schema-component/antd/input/index.ts index 253ba49429..8f24701510 100644 --- a/packages/core/client/src/schema-component/antd/input/index.ts +++ b/packages/core/client/src/schema-component/antd/input/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Input'; export * from './ReadPretty'; export * from './Json'; diff --git a/packages/core/client/src/schema-component/antd/input/shared.ts b/packages/core/client/src/schema-component/antd/input/shared.ts index 55fd09837f..0115ef9d69 100644 --- a/packages/core/client/src/schema-component/antd/input/shared.ts +++ b/packages/core/client/src/schema-component/antd/input/shared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function HTMLEncode(html: string) { let temp = document.createElement('div'); temp.textContent != null ? (temp.textContent = html) : (temp.innerText = html); diff --git a/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx b/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx index d02c4a1c88..425d6b6754 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Decorator.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/list/List.Designer.tsx b/packages/core/client/src/schema-component/antd/list/List.Designer.tsx index ed8de4bcfb..e5bf7b4108 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/list/List.Item.tsx b/packages/core/client/src/schema-component/antd/list/List.Item.tsx index c82f85844d..24694b1be3 100644 --- a/packages/core/client/src/schema-component/antd/list/List.Item.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.Item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { ObjectField } from '@formily/core'; import { useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/list/List.style.ts b/packages/core/client/src/schema-component/antd/list/List.style.ts index df67186a3a..d3ad6c3e6a 100644 --- a/packages/core/client/src/schema-component/antd/list/List.style.ts +++ b/packages/core/client/src/schema-component/antd/list/List.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-list', (token) => { diff --git a/packages/core/client/src/schema-component/antd/list/List.tsx b/packages/core/client/src/schema-component/antd/list/List.tsx index 694be37a42..721832bd62 100644 --- a/packages/core/client/src/schema-component/antd/list/List.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import { ArrayField } from '@formily/core'; import { RecursionField, Schema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/list/__tests__/list.test.tsx b/packages/core/client/src/schema-component/antd/list/__tests__/list.test.tsx index 17500020c3..b5c766a756 100644 --- a/packages/core/client/src/schema-component/antd/list/__tests__/list.test.tsx +++ b/packages/core/client/src/schema-component/antd/list/__tests__/list.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin } from '@nocobase/client'; import { renderApp, waitFor, screen, userEvent } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/list/hooks.ts b/packages/core/client/src/schema-component/antd/list/hooks.ts index e687eb122e..82f7d5cadf 100644 --- a/packages/core/client/src/schema-component/antd/list/hooks.ts +++ b/packages/core/client/src/schema-component/antd/list/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SpaceProps } from 'antd'; const spaceProps: SpaceProps = { diff --git a/packages/core/client/src/schema-component/antd/list/index.ts b/packages/core/client/src/schema-component/antd/list/index.ts index 4994c18137..5e8ff290de 100644 --- a/packages/core/client/src/schema-component/antd/list/index.ts +++ b/packages/core/client/src/schema-component/antd/list/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './List'; diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx index 35a96f24fb..72eeb02cc6 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx index 8bb996f7c4..76798b9ca6 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField, useFieldSchema } from '@formily/react'; import { Input as AntdInput, Button, Space, Spin } from 'antd'; import cls from 'classnames'; diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx index b2dd62a1da..f7237b5e1f 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { Input as AntdInput, Spin } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/markdown/__tests__/markdown.test.tsx b/packages/core/client/src/schema-component/antd/markdown/__tests__/markdown.test.tsx index 091fe53e16..73f8db1a09 100644 --- a/packages/core/client/src/schema-component/antd/markdown/__tests__/markdown.test.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/__tests__/markdown.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { act, fireEvent, render } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/markdown/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/markdown/demos/demo1.tsx index 5c177b46ef..c28ca47002 100644 --- a/packages/core/client/src/schema-component/antd/markdown/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Markdown */ diff --git a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx index d55bc61209..f9538c0f71 100644 --- a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Markdown.Void */ diff --git a/packages/core/client/src/schema-component/antd/markdown/index.ts b/packages/core/client/src/schema-component/antd/markdown/index.ts index a5b9f6efd4..ddcee8a96c 100644 --- a/packages/core/client/src/schema-component/antd/markdown/index.ts +++ b/packages/core/client/src/schema-component/antd/markdown/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Markdown'; diff --git a/packages/core/client/src/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.ts b/packages/core/client/src/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.ts index bb6ead9f6c..19b4665faf 100644 --- a/packages/core/client/src/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.ts +++ b/packages/core/client/src/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ // 因为这里有 commonjs,在 vitest 下会报错,所以忽略这个文件 diff --git a/packages/core/client/src/schema-component/antd/markdown/md.ts b/packages/core/client/src/schema-component/antd/markdown/md.ts index 18cba1ed50..ee38a1fade 100644 --- a/packages/core/client/src/schema-component/antd/markdown/md.ts +++ b/packages/core/client/src/schema-component/antd/markdown/md.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import MarkdownIt from 'markdown-it'; import markdownItHighlightjs from 'markdown-it-highlightjs'; import mermaidPlugin from './markdown-it-plugins/mermaidPlugin'; diff --git a/packages/core/client/src/schema-component/antd/markdown/style.ts b/packages/core/client/src/schema-component/antd/markdown/style.ts index 7377d70d58..0cc9353b4e 100644 --- a/packages/core/client/src/schema-component/antd/markdown/style.ts +++ b/packages/core/client/src/schema-component/antd/markdown/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; import { genStyleHook } from './../__builtins__'; diff --git a/packages/core/client/src/schema-component/antd/markdown/util.ts b/packages/core/client/src/schema-component/antd/markdown/util.ts index 86c829c042..0c27ae8577 100644 --- a/packages/core/client/src/schema-component/antd/markdown/util.ts +++ b/packages/core/client/src/schema-component/antd/markdown/util.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect, useState } from 'react'; export async function parseMarkdown(text: string) { diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx index 72fe690f1e..a67d45d061 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TreeSelect } from '@formily/antd-v5'; import { Field, onFieldChange } from '@formily/core'; import { ISchema, Schema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.tsx index 54108a5668..ca17e7a241 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { FieldContext, diff --git a/packages/core/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx b/packages/core/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx index c6ffc46a21..75f2fae34e 100644 --- a/packages/core/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx +++ b/packages/core/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ token }) => ({ diff --git a/packages/core/client/src/schema-component/antd/menu/__tests__/menu.test.tsx b/packages/core/client/src/schema-component/antd/menu/__tests__/menu.test.tsx index c5028bf452..f7b786c8df 100644 --- a/packages/core/client/src/schema-component/antd/menu/__tests__/menu.test.tsx +++ b/packages/core/client/src/schema-component/antd/menu/__tests__/menu.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor, within } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/menu/__tests__/utils.test.ts b/packages/core/client/src/schema-component/antd/menu/__tests__/utils.test.ts index a7085c2b4f..240054f8d4 100644 --- a/packages/core/client/src/schema-component/antd/menu/__tests__/utils.test.ts +++ b/packages/core/client/src/schema-component/antd/menu/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { findMenuItem } from '../util'; diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx index bcfcb3553c..6a29c1d1b9 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Menu */ diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx index 98c5b24bd9..a261baaf34 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Menu */ diff --git a/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx index 053432a151..8f2924ccdb 100644 --- a/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/menu/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Menu */ diff --git a/packages/core/client/src/schema-component/antd/menu/index.ts b/packages/core/client/src/schema-component/antd/menu/index.ts index 9036e23db6..f7d15ba768 100644 --- a/packages/core/client/src/schema-component/antd/menu/index.ts +++ b/packages/core/client/src/schema-component/antd/menu/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Menu'; export * from './MenuItemInitializers'; export * from './util'; diff --git a/packages/core/client/src/schema-component/antd/menu/locale.ts b/packages/core/client/src/schema-component/antd/menu/locale.ts index 3be3e7d294..7a270816dc 100644 --- a/packages/core/client/src/schema-component/antd/menu/locale.ts +++ b/packages/core/client/src/schema-component/antd/menu/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const useMenuTranslation = () => { diff --git a/packages/core/client/src/schema-component/antd/menu/util.ts b/packages/core/client/src/schema-component/antd/menu/util.ts index 72156c0188..a9ee898220 100644 --- a/packages/core/client/src/schema-component/antd/menu/util.ts +++ b/packages/core/client/src/schema-component/antd/menu/util.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; export function findByUid(schema: Schema, uid: string) { diff --git a/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx b/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx index 48deba759a..48b2e853af 100644 --- a/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx +++ b/packages/core/client/src/schema-component/antd/nanoIDInput/NanoIDInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { customAlphabet as Alphabet } from 'nanoid'; import React, { useEffect } from 'react'; import { LoadingOutlined } from '@ant-design/icons'; diff --git a/packages/core/client/src/schema-component/antd/nanoIDInput/__tests__/NanoIDInput.test.tsx b/packages/core/client/src/schema-component/antd/nanoIDInput/__tests__/NanoIDInput.test.tsx index 329b13681b..994297fbf7 100644 --- a/packages/core/client/src/schema-component/antd/nanoIDInput/__tests__/NanoIDInput.test.tsx +++ b/packages/core/client/src/schema-component/antd/nanoIDInput/__tests__/NanoIDInput.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin } from '@nocobase/client'; import { screen, renderApp, renderReadPrettyApp, userEvent, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/nanoIDInput/index.tsx b/packages/core/client/src/schema-component/antd/nanoIDInput/index.tsx index 7381a29c01..da7ee5a6d1 100644 --- a/packages/core/client/src/schema-component/antd/nanoIDInput/index.tsx +++ b/packages/core/client/src/schema-component/antd/nanoIDInput/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './NanoIDInput'; diff --git a/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx b/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx index 7115de07fb..e47589aa06 100644 --- a/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx +++ b/packages/core/client/src/schema-component/antd/page/FixedBlock.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { useField, useFieldSchema } from '@formily/react'; import React, { useContext, useEffect, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx b/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx index e786db8b92..9188e80c4c 100644 --- a/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx +++ b/packages/core/client/src/schema-component/antd/page/FixedBlockDesignerItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx b/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx index 4d9576cf97..d5732790e1 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { useDesignable } from '../..'; diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index d4d980a658..52f60ae406 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { PageHeader as AntdPageHeader } from '@ant-design/pro-layout'; import { FormLayout } from '@formily/antd-v5'; diff --git a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx index 8c5ae397cc..927efec4fe 100644 --- a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { App } from 'antd'; import { useTranslation } from 'react-i18next'; import { ISchema } from '@formily/json-schema'; diff --git a/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx b/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx index 9d69bf1b38..a4c29f8d43 100644 --- a/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/page/PageTabDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DragOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/page/__tests__/Page.Settings.test.tsx b/packages/core/client/src/schema-component/antd/page/__tests__/Page.Settings.test.tsx index 36f2e074a4..aac6d6d39e 100644 --- a/packages/core/client/src/schema-component/antd/page/__tests__/Page.Settings.test.tsx +++ b/packages/core/client/src/schema-component/antd/page/__tests__/Page.Settings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, checkSettings, renderSettings, checkModal } from '@nocobase/test/client'; import { Page } from '../Page'; import { pageSettings } from '../Page.Settings'; diff --git a/packages/core/client/src/schema-component/antd/page/__tests__/PageTab.Settings.test.tsx b/packages/core/client/src/schema-component/antd/page/__tests__/PageTab.Settings.test.tsx index c4ad03c7f4..2621b4ae1b 100644 --- a/packages/core/client/src/schema-component/antd/page/__tests__/PageTab.Settings.test.tsx +++ b/packages/core/client/src/schema-component/antd/page/__tests__/PageTab.Settings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, checkSettings, renderSettings } from '@nocobase/test/client'; import { Page } from '../Page'; import { pageTabSettings } from '../PageTab.Settings'; diff --git a/packages/core/client/src/schema-component/antd/page/__tests__/page.test.tsx b/packages/core/client/src/schema-component/antd/page/__tests__/page.test.tsx index bc171200a9..439870ef7f 100644 --- a/packages/core/client/src/schema-component/antd/page/__tests__/page.test.tsx +++ b/packages/core/client/src/schema-component/antd/page/__tests__/page.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, waitFor, renderApp, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx index 4ed02b45c0..5f31303f5c 100644 --- a/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/page/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { DocumentTitleProvider, Page, SchemaComponent, SchemaComponentProvider, Application } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/page/hooks/useIsBlockInPage.ts b/packages/core/client/src/schema-component/antd/page/hooks/useIsBlockInPage.ts index 1d7b3a55f7..9379c88d23 100644 --- a/packages/core/client/src/schema-component/antd/page/hooks/useIsBlockInPage.ts +++ b/packages/core/client/src/schema-component/antd/page/hooks/useIsBlockInPage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCallback } from 'react'; import { useActionContext } from '../../action'; diff --git a/packages/core/client/src/schema-component/antd/page/index.ts b/packages/core/client/src/schema-component/antd/page/index.ts index 1a996216e7..c87309eaf8 100644 --- a/packages/core/client/src/schema-component/antd/page/index.ts +++ b/packages/core/client/src/schema-component/antd/page/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Page'; export * from './FixedBlock'; export * from './PageTab.Settings'; diff --git a/packages/core/client/src/schema-component/antd/page/style.ts b/packages/core/client/src/schema-component/antd/page/style.ts index 9e51601f2e..015aa548ae 100644 --- a/packages/core/client/src/schema-component/antd/page/style.ts +++ b/packages/core/client/src/schema-component/antd/page/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from './../__builtins__'; export const useStyles = genStyleHook('nb-page', (token) => { diff --git a/packages/core/client/src/schema-component/antd/pagination/__tests__/pagination.test.tsx b/packages/core/client/src/schema-component/antd/pagination/__tests__/pagination.test.tsx index f02a6cfd8c..bcb8c58974 100644 --- a/packages/core/client/src/schema-component/antd/pagination/__tests__/pagination.test.tsx +++ b/packages/core/client/src/schema-component/antd/pagination/__tests__/pagination.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { renderApp } from '@nocobase/test/client'; import { Pagination } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/pagination/index.tsx b/packages/core/client/src/schema-component/antd/pagination/index.tsx index ab20df15b7..3c92020096 100644 --- a/packages/core/client/src/schema-component/antd/pagination/index.tsx +++ b/packages/core/client/src/schema-component/antd/pagination/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Pagination as AntdPagination } from 'antd'; import React, { KeyboardEventHandler } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/password/Password.tsx b/packages/core/client/src/schema-component/antd/password/Password.tsx index 89f206921f..3aebc22a53 100644 --- a/packages/core/client/src/schema-component/antd/password/Password.tsx +++ b/packages/core/client/src/schema-component/antd/password/Password.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { Input } from 'antd'; import { PasswordProps } from 'antd/es/input'; diff --git a/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx b/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx index 80bb0759b0..b8f8ec1a84 100644 --- a/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx +++ b/packages/core/client/src/schema-component/antd/password/PasswordStrength.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isFn } from '@formily/shared'; import React, { Fragment } from 'react'; import { getStrength } from './utils'; diff --git a/packages/core/client/src/schema-component/antd/password/__tests__/PasswordStrength.test.tsx b/packages/core/client/src/schema-component/antd/password/__tests__/PasswordStrength.test.tsx index efbafb07c5..2e4bb6e3b4 100644 --- a/packages/core/client/src/schema-component/antd/password/__tests__/PasswordStrength.test.tsx +++ b/packages/core/client/src/schema-component/antd/password/__tests__/PasswordStrength.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render } from '@testing-library/react'; import { PasswordStrength } from '../PasswordStrength'; diff --git a/packages/core/client/src/schema-component/antd/password/__tests__/password.test.tsx b/packages/core/client/src/schema-component/antd/password/__tests__/password.test.tsx index 6d8ecdae45..76e2f77dad 100644 --- a/packages/core/client/src/schema-component/antd/password/__tests__/password.test.tsx +++ b/packages/core/client/src/schema-component/antd/password/__tests__/password.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/password/__tests__/utils.test.ts b/packages/core/client/src/schema-component/antd/password/__tests__/utils.test.ts index 8b0201498b..9c32621dd5 100644 --- a/packages/core/client/src/schema-component/antd/password/__tests__/utils.test.ts +++ b/packages/core/client/src/schema-component/antd/password/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getStrength } from '../utils'; describe('getStrength', () => { diff --git a/packages/core/client/src/schema-component/antd/password/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/password/demos/demo1.tsx index 42366a0eed..e7fba7aaad 100644 --- a/packages/core/client/src/schema-component/antd/password/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/password/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Password */ diff --git a/packages/core/client/src/schema-component/antd/password/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/password/demos/demo2.tsx index 9d34afbbbd..9cfdda57de 100644 --- a/packages/core/client/src/schema-component/antd/password/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/password/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Check strength */ diff --git a/packages/core/client/src/schema-component/antd/password/index.ts b/packages/core/client/src/schema-component/antd/password/index.ts index 74946a7c07..c917112bf8 100644 --- a/packages/core/client/src/schema-component/antd/password/index.ts +++ b/packages/core/client/src/schema-component/antd/password/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Password'; diff --git a/packages/core/client/src/schema-component/antd/password/utils.ts b/packages/core/client/src/schema-component/antd/password/utils.ts index 1718264fa2..c4d24130a8 100644 --- a/packages/core/client/src/schema-component/antd/password/utils.ts +++ b/packages/core/client/src/schema-component/antd/password/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const isNum = function (c) { return c >= 48 && c <= 57; }; diff --git a/packages/core/client/src/schema-component/antd/percent/Percent.tsx b/packages/core/client/src/schema-component/antd/percent/Percent.tsx index c76dd3da5c..747676692d 100644 --- a/packages/core/client/src/schema-component/antd/percent/Percent.tsx +++ b/packages/core/client/src/schema-component/antd/percent/Percent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { isNum } from '@formily/shared'; import { InputNumber } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/percent/__tests__/percent.test.tsx b/packages/core/client/src/schema-component/antd/percent/__tests__/percent.test.tsx index 9459cb8c50..ba91e3ef5f 100644 --- a/packages/core/client/src/schema-component/antd/percent/__tests__/percent.test.tsx +++ b/packages/core/client/src/schema-component/antd/percent/__tests__/percent.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render } from '@nocobase/test/client'; import React from 'react'; import App from '../demos/percent'; diff --git a/packages/core/client/src/schema-component/antd/percent/demos/percent.tsx b/packages/core/client/src/schema-component/antd/percent/demos/percent.tsx index 920e686368..c95dca72bd 100644 --- a/packages/core/client/src/schema-component/antd/percent/demos/percent.tsx +++ b/packages/core/client/src/schema-component/antd/percent/demos/percent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { Percent, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/percent/index.ts b/packages/core/client/src/schema-component/antd/percent/index.ts index 819cecaa74..66b425be7e 100644 --- a/packages/core/client/src/schema-component/antd/percent/index.ts +++ b/packages/core/client/src/schema-component/antd/percent/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Percent'; diff --git a/packages/core/client/src/schema-component/antd/popover/Popover.tsx b/packages/core/client/src/schema-component/antd/popover/Popover.tsx index d970f40f89..b297deae27 100644 --- a/packages/core/client/src/schema-component/antd/popover/Popover.tsx +++ b/packages/core/client/src/schema-component/antd/popover/Popover.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Popover as AntdPopover, PopoverProps } from 'antd'; import React, { useCallback, useRef } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/popover/index.ts b/packages/core/client/src/schema-component/antd/popover/index.ts index 8f473de4b9..3da2de7926 100644 --- a/packages/core/client/src/schema-component/antd/popover/index.ts +++ b/packages/core/client/src/schema-component/antd/popover/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Popover'; diff --git a/packages/core/client/src/schema-component/antd/preview/Preview.tsx b/packages/core/client/src/schema-component/antd/preview/Preview.tsx index 049c8f1427..e98f042d37 100644 --- a/packages/core/client/src/schema-component/antd/preview/Preview.tsx +++ b/packages/core/client/src/schema-component/antd/preview/Preview.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, DownloadOutlined, PlusOutlined } from '@ant-design/icons'; import { connect, mapReadPretty } from '@formily/react'; import { Upload as AntdUpload, Button, Progress, Space, UploadFile } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/preview/__tests__/preview.test.tsx b/packages/core/client/src/schema-component/antd/preview/__tests__/preview.test.tsx index 0e490a6463..bee72f37ec 100644 --- a/packages/core/client/src/schema-component/antd/preview/__tests__/preview.test.tsx +++ b/packages/core/client/src/schema-component/antd/preview/__tests__/preview.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/preview/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/preview/demos/demo1.tsx index 2bbec3bc3b..0dd1052221 100644 --- a/packages/core/client/src/schema-component/antd/preview/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/preview/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Preview */ diff --git a/packages/core/client/src/schema-component/antd/preview/index.ts b/packages/core/client/src/schema-component/antd/preview/index.ts index 7d1d8598f2..435e4d1248 100644 --- a/packages/core/client/src/schema-component/antd/preview/index.ts +++ b/packages/core/client/src/schema-component/antd/preview/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Preview'; diff --git a/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx b/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx index 84d4d32ca6..ce639bbe6f 100644 --- a/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx +++ b/packages/core/client/src/schema-component/antd/quick-edit/QuickEdit.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; // import { FormItem } from '@formily/antd-v5'; import { Field, createForm } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/quick-edit/__tests__/QuickEdit.test.tsx b/packages/core/client/src/schema-component/antd/quick-edit/__tests__/QuickEdit.test.tsx index f60b0ed235..42201d187b 100644 --- a/packages/core/client/src/schema-component/antd/quick-edit/__tests__/QuickEdit.test.tsx +++ b/packages/core/client/src/schema-component/antd/quick-edit/__tests__/QuickEdit.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin } from '@nocobase/client'; import { screen, renderApp, sleep, renderReadPrettyApp, userEvent, waitFor } from '@nocobase/test/client'; diff --git a/packages/core/client/src/schema-component/antd/quick-edit/index.tsx b/packages/core/client/src/schema-component/antd/quick-edit/index.tsx index fb442095ae..977c327c5b 100644 --- a/packages/core/client/src/schema-component/antd/quick-edit/index.tsx +++ b/packages/core/client/src/schema-component/antd/quick-edit/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './QuickEdit'; diff --git a/packages/core/client/src/schema-component/antd/radio/Radio.tsx b/packages/core/client/src/schema-component/antd/radio/Radio.tsx index e59deacd59..daf1f139cc 100644 --- a/packages/core/client/src/schema-component/antd/radio/Radio.tsx +++ b/packages/core/client/src/schema-component/antd/radio/Radio.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapProps, mapReadPretty, useField } from '@formily/react'; import { isValid } from '@formily/shared'; import { Radio as AntdRadio, Tag } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/radio/__tests__/radio.test.tsx b/packages/core/client/src/schema-component/antd/radio/__tests__/radio.test.tsx index 9342295aa5..5e633106f4 100644 --- a/packages/core/client/src/schema-component/antd/radio/__tests__/radio.test.tsx +++ b/packages/core/client/src/schema-component/antd/radio/__tests__/radio.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/radio/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/radio/demos/demo1.tsx index 0abbbba40f..1c599b6eea 100644 --- a/packages/core/client/src/schema-component/antd/radio/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/radio/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Basic * desc: The simplest use. diff --git a/packages/core/client/src/schema-component/antd/radio/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/radio/demos/demo2.tsx index 849f988794..0cbfe1cfef 100644 --- a/packages/core/client/src/schema-component/antd/radio/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/radio/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Radio Group * desc: A group of radio components. diff --git a/packages/core/client/src/schema-component/antd/radio/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/radio/demos/demo3.tsx index e9ca3c293d..8bbe22abf4 100644 --- a/packages/core/client/src/schema-component/antd/radio/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/radio/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Radio Group with color */ diff --git a/packages/core/client/src/schema-component/antd/radio/index.ts b/packages/core/client/src/schema-component/antd/radio/index.ts index bfbe6d09bf..f4b30dc657 100644 --- a/packages/core/client/src/schema-component/antd/radio/index.ts +++ b/packages/core/client/src/schema-component/antd/radio/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Radio'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx index 8f91d16fae..acd2ac8fd3 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/InputRecordPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { RecursionField, useField, useFieldSchema } from '@formily/react'; import { Select } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx index 7f4d08ef1a..a05ac39a1f 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField, useFieldSchema } from '@formily/react'; import { toArr } from '@formily/shared'; import React, { Fragment, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx b/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx index 5b72ee26a5..3dbbdb10a3 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/RecordPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { InputRecordPicker } from './InputRecordPicker'; import { ReadPrettyRecordPicker } from './ReadPrettyRecordPicker'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/__tests__/record-picker.test.tsx b/packages/core/client/src/schema-component/antd/record-picker/__tests__/record-picker.test.tsx index 990feab064..3391db1f98 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/__tests__/record-picker.test.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/__tests__/record-picker.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor, within } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx index 3ed39e12fe..4a76b6cd02 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: 勾选 */ diff --git a/packages/core/client/src/schema-component/antd/record-picker/demos/mockData.ts b/packages/core/client/src/schema-component/antd/record-picker/demos/mockData.ts index 9e05e5ab37..4b1d66d1d5 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/demos/mockData.ts +++ b/packages/core/client/src/schema-component/antd/record-picker/demos/mockData.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { data: [ { diff --git a/packages/core/client/src/schema-component/antd/record-picker/index.tsx b/packages/core/client/src/schema-component/antd/record-picker/index.tsx index b70d8ec9dc..f216d953cf 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/index.tsx +++ b/packages/core/client/src/schema-component/antd/record-picker/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import ActionContainer from '../action/Action.Container'; import { RecordPicker } from './RecordPicker'; diff --git a/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts b/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts index d4fb39e33e..a6a78ef135 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts +++ b/packages/core/client/src/schema-component/antd/record-picker/useFieldNames.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; export const useFieldNames = (props) => { diff --git a/packages/core/client/src/schema-component/antd/record-picker/util.ts b/packages/core/client/src/schema-component/antd/record-picker/util.ts index 1bf726a28b..d289eb1c0d 100644 --- a/packages/core/client/src/schema-component/antd/record-picker/util.ts +++ b/packages/core/client/src/schema-component/antd/record-picker/util.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { isArr } from '@formily/shared'; import { dayjs, getDefaultFormat, str2moment } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx index 0b88484745..ee141fa24c 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useRequest } from '../../../api-client'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx index f88aaf20a0..0ac49ca95b 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty, useFieldSchema } from '@formily/react'; import { Divider, SelectProps, Tag } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/__tests__/remote-select.test.tsx b/packages/core/client/src/schema-component/antd/remote-select/__tests__/remote-select.test.tsx index 43c319a46e..0c6240fd56 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/__tests__/remote-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/__tests__/remote-select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, sleep, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/remote-select/demos/demo1.tsx index d26529fcde..854587510a 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClientProvider, FormProvider, RemoteSelect, SchemaComponent } from '@nocobase/client'; import React from 'react'; import { mockAPIClient } from '../../../../testUtils'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/index.ts b/packages/core/client/src/schema-component/antd/remote-select/index.ts index 2196544440..538f4fe697 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/index.ts +++ b/packages/core/client/src/schema-component/antd/remote-select/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './RemoteSelect'; diff --git a/packages/core/client/src/schema-component/antd/remote-select/shared.ts b/packages/core/client/src/schema-component/antd/remote-select/shared.ts index b5f0707a3b..f2c43f69af 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/shared.ts +++ b/packages/core/client/src/schema-component/antd/remote-select/shared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { castArray } from 'lodash'; export const getValues = (values, fieldNames) => { diff --git a/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx b/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx index b6e43a1f2b..05728552ac 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx +++ b/packages/core/client/src/schema-component/antd/rich-text/RichText.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapProps, mapReadPretty } from '@formily/react'; import React from 'react'; import ReactQuill from 'react-quill'; diff --git a/packages/core/client/src/schema-component/antd/rich-text/__tests__/rich-text.test.tsx b/packages/core/client/src/schema-component/antd/rich-text/__tests__/rich-text.test.tsx index 69319bc2a8..4be02ad18c 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/__tests__/rich-text.test.tsx +++ b/packages/core/client/src/schema-component/antd/rich-text/__tests__/rich-text.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/rich-text/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/rich-text/demos/demo1.tsx index 60bd69846e..08105e190d 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/rich-text/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem } from '@formily/antd-v5'; import { RichText, SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/rich-text/index.ts b/packages/core/client/src/schema-component/antd/rich-text/index.ts index 735dd7d121..ad2b1296e9 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/index.ts +++ b/packages/core/client/src/schema-component/antd/rich-text/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './RichText'; diff --git a/packages/core/client/src/schema-component/antd/rich-text/style.ts b/packages/core/client/src/schema-component/antd/rich-text/style.ts index f563757206..ac14509c21 100644 --- a/packages/core/client/src/schema-component/antd/rich-text/style.ts +++ b/packages/core/client/src/schema-component/antd/rich-text/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from './../__builtins__'; /*! diff --git a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx index 2cb8940149..dfe5a6b9d4 100644 --- a/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/select/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isArrayField } from '@formily/core'; import { observer, useField } from '@formily/react'; import { isValid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/select/Select.tsx b/packages/core/client/src/schema-component/antd/select/Select.tsx index 3d9784817b..796a75dbdc 100644 --- a/packages/core/client/src/schema-component/antd/select/Select.tsx +++ b/packages/core/client/src/schema-component/antd/select/Select.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleFilled, CloseOutlined, LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { isValid, toArr } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/select/__tests__/select.test.tsx b/packages/core/client/src/schema-component/antd/select/__tests__/select.test.tsx index 4443d7f973..24961c4174 100644 --- a/packages/core/client/src/schema-component/antd/select/__tests__/select.test.tsx +++ b/packages/core/client/src/schema-component/antd/select/__tests__/select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/select/__tests__/utils.test.ts b/packages/core/client/src/schema-component/antd/select/__tests__/utils.test.ts index e76d20eae1..ddcf668ea4 100644 --- a/packages/core/client/src/schema-component/antd/select/__tests__/utils.test.ts +++ b/packages/core/client/src/schema-component/antd/select/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defaultFieldNames, getCurrentOptions } from '../utils'; const dataSource = [ diff --git a/packages/core/client/src/schema-component/antd/select/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/select/demos/demo1.tsx index b7b942c275..82bebd6418 100644 --- a/packages/core/client/src/schema-component/antd/select/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/select/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Select */ diff --git a/packages/core/client/src/schema-component/antd/select/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/select/demos/demo2.tsx index 74e9cd5af1..e15f55ec95 100644 --- a/packages/core/client/src/schema-component/antd/select/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/select/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Select */ diff --git a/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx index be9dfbc43c..1b2d21dddb 100644 --- a/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/select/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Select */ diff --git a/packages/core/client/src/schema-component/antd/select/index.ts b/packages/core/client/src/schema-component/antd/select/index.ts index 7defbbabac..cae32cf029 100644 --- a/packages/core/client/src/schema-component/antd/select/index.ts +++ b/packages/core/client/src/schema-component/antd/select/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Select'; export * from './utils'; diff --git a/packages/core/client/src/schema-component/antd/select/utils.ts b/packages/core/client/src/schema-component/antd/select/utils.ts index 3dc434969b..1c19786644 100644 --- a/packages/core/client/src/schema-component/antd/select/utils.ts +++ b/packages/core/client/src/schema-component/antd/select/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isPlainObject } from '@nocobase/utils/client'; import { castArray } from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/space/__tests__/space.test.tsx b/packages/core/client/src/schema-component/antd/space/__tests__/space.test.tsx index b06db746fd..e87c5c8b49 100644 --- a/packages/core/client/src/schema-component/antd/space/__tests__/space.test.tsx +++ b/packages/core/client/src/schema-component/antd/space/__tests__/space.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@testing-library/react'; import React from 'react'; import { Space } from '../index'; diff --git a/packages/core/client/src/schema-component/antd/space/index.tsx b/packages/core/client/src/schema-component/antd/space/index.tsx index 9972280abd..1fa1e00698 100644 --- a/packages/core/client/src/schema-component/antd/space/index.tsx +++ b/packages/core/client/src/schema-component/antd/space/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFormLayout } from '@formily/antd-v5'; import { Space as AntdSpace, Divider, SpaceProps } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx index 4acbe45d1a..38a2c1fefa 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DragOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx index 1e3d4f4ea4..370fc2e6f6 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx index ef35a6ae4c..4555151157 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import React, { useLayoutEffect } from 'react'; import { diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx index b5672d0967..fcbafab813 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import { set } from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx index e57f847528..f0a15c8560 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Column.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Designer.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Designer.tsx index 0fadf360b8..291bd6a075 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; import { GeneralSchemaDesigner, SchemaSettingsRemove } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.Index.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.Index.tsx index 47b14329d2..5a293fd4c4 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.Index.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.Index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useRecordIndex } from '../../../record-provider'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 68ff883966..bbaeb1fdd4 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, MenuOutlined } from '@ant-design/icons'; import { TinyColor } from '@ctrl/tinycolor'; import { SortableContext, SortableContextProps, useSortable } from '@dnd-kit/sortable'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx index 4f24b5bb3c..8a7b568873 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { Field } from '@formily/core'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx index b594cbbde2..f57c474e85 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { observer, useField, useFieldSchema, useForm } from '@formily/react'; import React, { useEffect } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableSelector.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableSelector.tsx index b9a1d7b6b6..2eee1bc617 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableSelector.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableSelector.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Table } from './Table'; export const TableSelector = Table; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx index 0935ffa73e..081f540f69 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.Column.settings.test.tsx b/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.Column.settings.test.tsx index 559e4335dd..e4b582ccf2 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.Column.settings.test.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.Column.settings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin, TableV2, useTableBlockDecoratorProps } from '@nocobase/client'; import { checkSettings, renderSettings, checkSchema, screen, waitFor } from '@nocobase/test/client'; import { withSchema } from '@nocobase/test/web'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.settings.test.tsx b/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.settings.test.tsx index a73201cee7..ac32d8b0c7 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.settings.test.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/__tests__/Table.settings.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockSchemaComponentPlugin, FixedBlock, diff --git a/packages/core/client/src/schema-component/antd/table-v2/__tests__/createTableOptions.tsx b/packages/core/client/src/schema-component/antd/table-v2/__tests__/createTableOptions.tsx index aa434ee7d1..7ac6f2e7ab 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/__tests__/createTableOptions.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/__tests__/createTableOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FixedBlock, BlockSchemaComponentPlugin, diff --git a/packages/core/client/src/schema-component/antd/table-v2/__tests__/table-v2.test.tsx b/packages/core/client/src/schema-component/antd/table-v2/__tests__/table-v2.test.tsx index 0074d70c29..c7361b2a43 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/__tests__/table-v2.test.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/__tests__/table-v2.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx b/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx index 0decb83a68..73bafd2d72 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/components/ColumnFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, RecursionField } from '@formily/react'; import React from 'react'; import { useRecord } from '../../../../record-provider'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/demos/collections.ts b/packages/core/client/src/schema-component/antd/table-v2/demos/collections.ts index d19d73227c..f97060d3a0 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/demos/collections.ts +++ b/packages/core/client/src/schema-component/antd/table-v2/demos/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { data: [ { diff --git a/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx index 6e2aad60ca..bde9dc3ed8 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { APIClientProvider, diff --git a/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx index 05122f50b6..60f3fd47c3 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { connect, ISchema, observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { SchemaComponent, SchemaComponentProvider } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/index.ts b/packages/core/client/src/schema-component/antd/table-v2/index.ts index b1dff04250..bd671fcbf8 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/index.ts +++ b/packages/core/client/src/schema-component/antd/table-v2/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Table } from './Table'; import { TableActionColumnDesigner } from './Table.ActionColumnDesigner'; import { TableColumn } from './Table.Column'; diff --git a/packages/core/client/src/schema-component/antd/table-v2/utils.ts b/packages/core/client/src/schema-component/antd/table-v2/utils.ts index d0153bf4ad..f76ffcdd9f 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/utils.ts +++ b/packages/core/client/src/schema-component/antd/table-v2/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/react'; export const isCollectionFieldComponent = (schema: ISchema) => { diff --git a/packages/core/client/src/schema-component/antd/table/Table.Array.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Array.Designer.tsx index 2fe52d5f3c..8e8ac1060a 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Array.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Array.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { GeneralSchemaDesigner, SchemaSettingsRemove } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Array.tsx b/packages/core/client/src/schema-component/antd/table/Table.Array.tsx index 2c37407191..b506c64bbb 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Array.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Array.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { TinyColor } from '@ctrl/tinycolor'; import { css } from '@emotion/css'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx index 2a991ca7f7..c0ff383fda 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.ActionBar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx index 5e89f46de1..8d671d5908 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.Decorator.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import React, { useLayoutEffect } from 'react'; import { SortableItem, useCollection_deprecated, useCompile, useDesignable, useDesigner } from '../../../'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx index 64146f120b..e744647a61 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema, useForm } from '@formily/react'; import React from 'react'; import { useCollectionManager_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Column.tsx b/packages/core/client/src/schema-component/antd/table/Table.Column.tsx index 7c360ca5ac..22c80b3bd9 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Column.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Column.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Designer.tsx index 0fadf360b8..291bd6a075 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated } from '../../../collection-manager'; import { GeneralSchemaDesigner, SchemaSettingsRemove } from '../../../schema-settings'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx b/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx index 4f2a0aeb1d..36270868bf 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.RowActionDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DragOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx b/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx index 46cdd256ae..e0778aac31 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.RowSelection.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { observer, useField } from '@formily/react'; import { isArr, isValid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx b/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx index ce1425cf95..19d0d29323 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Void.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/Table.Void.tsx b/packages/core/client/src/schema-component/antd/table/Table.Void.tsx index 5d6a450c00..b61d56f17e 100644 --- a/packages/core/client/src/schema-component/antd/table/Table.Void.tsx +++ b/packages/core/client/src/schema-component/antd/table/Table.Void.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, Field } from '@formily/core'; import { FieldContext, FormContext, observer, useField, useFieldSchema } from '@formily/react'; import { Options, Result } from 'ahooks/es/useRequest/src/types'; diff --git a/packages/core/client/src/schema-component/antd/table/__tests__/table.test.tsx b/packages/core/client/src/schema-component/antd/table/__tests__/table.test.tsx index ab69f21d56..8b1d1fdfaa 100644 --- a/packages/core/client/src/schema-component/antd/table/__tests__/table.test.tsx +++ b/packages/core/client/src/schema-component/antd/table/__tests__/table.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx index d6bec14a96..47ad4a4274 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx index 684b54f5d1..0bc63ebd0b 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx index cbe56ae808..3ddc6c47d5 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Application, Input, SchemaComponent, SchemaComponentProvider, Table } from '@nocobase/client'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx b/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx index c84708a4e7..5e4ad5cc2e 100644 --- a/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/antd/table/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, observer } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/core/client/src/schema-component/antd/table/index.tsx b/packages/core/client/src/schema-component/antd/table/index.tsx index d5dc13fb33..d874207a91 100644 --- a/packages/core/client/src/schema-component/antd/table/index.tsx +++ b/packages/core/client/src/schema-component/antd/table/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableArray } from './Table.Array'; import { TableArrayDesigner } from './Table.Array.Designer'; import { TableColumn } from './Table.Column'; diff --git a/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx b/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx index e5e993bafb..b47e537c96 100644 --- a/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/Tabs.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx b/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx index 88690033da..cc075ff0c7 100644 --- a/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/Tabs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer, RecursionField, useField, useFieldSchema } from '@formily/react'; import { Tabs as AntdTabs, TabPaneProps, TabsProps } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/tabs/__tests__/tabs.test.tsx b/packages/core/client/src/schema-component/antd/tabs/__tests__/tabs.test.tsx index b5cedcc3f3..2951f839d7 100644 --- a/packages/core/client/src/schema-component/antd/tabs/__tests__/tabs.test.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/__tests__/tabs.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/tabs/context.tsx b/packages/core/client/src/schema-component/antd/tabs/context.tsx index e11dddba76..e5aafe6552 100644 --- a/packages/core/client/src/schema-component/antd/tabs/context.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/context.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TabsProps } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx index fe1a4d9760..9add593506 100644 --- a/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/tabs/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Tabs */ diff --git a/packages/core/client/src/schema-component/antd/tabs/index.ts b/packages/core/client/src/schema-component/antd/tabs/index.ts index c6f0911ede..dc4a15dc7d 100644 --- a/packages/core/client/src/schema-component/antd/tabs/index.ts +++ b/packages/core/client/src/schema-component/antd/tabs/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Tabs'; export * from './context'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx index 1044621b21..b1c5e20bb0 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; import { toArr } from '@formily/shared'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx b/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx index 0ac87f539e..7f01ab920d 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/TimePicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjsable, formatDayjsValue } from '@formily/antd-v5/esm/__builtins__'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/__tests__/time-picker.test.tsx b/packages/core/client/src/schema-component/antd/time-picker/__tests__/time-picker.test.tsx index 2b011ac107..8103aabdc3 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/__tests__/time-picker.test.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/__tests__/time-picker.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fireEvent, render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/time-picker/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/time-picker/demos/demo1.tsx index 0cc3ca736d..daa0fa3931 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: TimePicker */ diff --git a/packages/core/client/src/schema-component/antd/time-picker/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/time-picker/demos/demo2.tsx index ed6a5901e3..61cdb54321 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/time-picker/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: TimePicker.RangePicker */ diff --git a/packages/core/client/src/schema-component/antd/time-picker/index.ts b/packages/core/client/src/schema-component/antd/time-picker/index.ts index 00c41e3816..6e032e775f 100644 --- a/packages/core/client/src/schema-component/antd/time-picker/index.ts +++ b/packages/core/client/src/schema-component/antd/time-picker/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './TimePicker'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx index 53a11d3350..8f4dca8bce 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { usePrefixCls } from '@formily/antd-v5/esm/__builtins__'; import { Field } from '@formily/core'; import { observer, useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx b/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx index 201b6eab8b..d939ae7475 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/TreeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { TreeSelect as AntdTreeSelect } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/__tests__/tree-select.test.tsx b/packages/core/client/src/schema-component/antd/tree-select/__tests__/tree-select.test.tsx index 952610af8b..1be2fe43f5 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/__tests__/tree-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/__tests__/tree-select.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/tree-select/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/tree-select/demos/demo1.tsx index 10b4ec5782..26b7a699dc 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/tree-select/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: TreeSelect */ diff --git a/packages/core/client/src/schema-component/antd/tree-select/index.ts b/packages/core/client/src/schema-component/antd/tree-select/index.ts index f516e4c283..6064bb9771 100644 --- a/packages/core/client/src/schema-component/antd/tree-select/index.ts +++ b/packages/core/client/src/schema-component/antd/tree-select/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './TreeSelect'; diff --git a/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx b/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx index 4eeed12d33..f2d9555b9a 100644 --- a/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx +++ b/packages/core/client/src/schema-component/antd/unixTimestamp/UnixTimestamp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import React, { useMemo } from 'react'; import { DatePicker } from '../date-picker'; diff --git a/packages/core/client/src/schema-component/antd/unixTimestamp/__tests__/UnixTimestamp.test.tsx b/packages/core/client/src/schema-component/antd/unixTimestamp/__tests__/UnixTimestamp.test.tsx index aeebe7dd39..2a5fdddd04 100644 --- a/packages/core/client/src/schema-component/antd/unixTimestamp/__tests__/UnixTimestamp.test.tsx +++ b/packages/core/client/src/schema-component/antd/unixTimestamp/__tests__/UnixTimestamp.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, renderApp, userEvent, waitFor, renderReadPrettyApp } from '@nocobase/test/client'; import { UnixTimestamp } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-component/antd/unixTimestamp/index.tsx b/packages/core/client/src/schema-component/antd/unixTimestamp/index.tsx index fdc2fed171..163e17b59c 100644 --- a/packages/core/client/src/schema-component/antd/unixTimestamp/index.tsx +++ b/packages/core/client/src/schema-component/antd/unixTimestamp/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './UnixTimestamp'; diff --git a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx index c41e789457..905fcc33c9 100644 --- a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownloadOutlined } from '@ant-design/icons'; import { Field } from '@formily/core'; import { useField } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/upload/Upload.tsx b/packages/core/client/src/schema-component/antd/upload/Upload.tsx index 671b9e4bbe..8e22fdfd7e 100644 --- a/packages/core/client/src/schema-component/antd/upload/Upload.tsx +++ b/packages/core/client/src/schema-component/antd/upload/Upload.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, DownloadOutlined, InboxOutlined, LoadingOutlined, PlusOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { Upload as AntdUpload, Button, Modal, Progress, Space, UploadFile } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx b/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx index 07028d2642..45852dd75a 100644 --- a/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx +++ b/packages/core/client/src/schema-component/antd/upload/__tests__/upload.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/upload/demos/apiClient.ts b/packages/core/client/src/schema-component/antd/upload/demos/apiClient.ts index b683af42b5..16964c0396 100644 --- a/packages/core/client/src/schema-component/antd/upload/demos/apiClient.ts +++ b/packages/core/client/src/schema-component/antd/upload/demos/apiClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockAPIClient } from '../../../../testUtils'; const sleep = (value: number) => new Promise((resolve) => setTimeout(resolve, value)); diff --git a/packages/core/client/src/schema-component/antd/upload/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/upload/demos/demo1.tsx index 0946e6f7d6..af94251053 100644 --- a/packages/core/client/src/schema-component/antd/upload/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/upload/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Upload */ diff --git a/packages/core/client/src/schema-component/antd/upload/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/upload/demos/demo2.tsx index 3124f65056..2e1bdb3233 100644 --- a/packages/core/client/src/schema-component/antd/upload/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/upload/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Upload */ diff --git a/packages/core/client/src/schema-component/antd/upload/index.ts b/packages/core/client/src/schema-component/antd/upload/index.ts index 70aa206770..d57d3f3635 100644 --- a/packages/core/client/src/schema-component/antd/upload/index.ts +++ b/packages/core/client/src/schema-component/antd/upload/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Upload'; diff --git a/packages/core/client/src/schema-component/antd/upload/placeholder.ts b/packages/core/client/src/schema-component/antd/upload/placeholder.ts index 7be1a1ee21..cdca9cad73 100644 --- a/packages/core/client/src/schema-component/antd/upload/placeholder.ts +++ b/packages/core/client/src/schema-component/antd/upload/placeholder.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const UPLOAD_PLACEHOLDER = [ { ext: /\.docx?$/i, diff --git a/packages/core/client/src/schema-component/antd/upload/shared.ts b/packages/core/client/src/schema-component/antd/upload/shared.ts index ab89c50403..6e6b1e1f4a 100644 --- a/packages/core/client/src/schema-component/antd/upload/shared.ts +++ b/packages/core/client/src/schema-component/antd/upload/shared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField } from '@formily/react'; import { reaction } from '@formily/reactive'; diff --git a/packages/core/client/src/schema-component/antd/upload/style.ts b/packages/core/client/src/schema-component/antd/upload/style.ts index 01e4bc4234..efe8cdfe5f 100644 --- a/packages/core/client/src/schema-component/antd/upload/style.ts +++ b/packages/core/client/src/schema-component/antd/upload/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; export const useStyles = genStyleHook('upload', (token) => { diff --git a/packages/core/client/src/schema-component/antd/upload/type.d.ts b/packages/core/client/src/schema-component/antd/upload/type.d.ts index ba7c9c05c8..3274550ea5 100644 --- a/packages/core/client/src/schema-component/antd/upload/type.d.ts +++ b/packages/core/client/src/schema-component/antd/upload/type.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { DraggerProps as AntdDraggerProps, UploadProps as AntdUploadProps } from 'antd/es/upload'; import { UploadFile } from 'antd/es/upload/interface'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/antd/variable/Input.tsx b/packages/core/client/src/schema-component/antd/variable/Input.tsx index 3b3c9d35aa..594530dc03 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleFilled } from '@ant-design/icons'; import { css, cx } from '@emotion/css'; import { useForm } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/antd/variable/JSONInput.tsx b/packages/core/client/src/schema-component/antd/variable/JSONInput.tsx index 0ad99a6632..1402b1fb0e 100644 --- a/packages/core/client/src/schema-component/antd/variable/JSONInput.tsx +++ b/packages/core/client/src/schema-component/antd/variable/JSONInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Input } from '../input'; diff --git a/packages/core/client/src/schema-component/antd/variable/RawTextArea.tsx b/packages/core/client/src/schema-component/antd/variable/RawTextArea.tsx index 866a24ddee..236ce85ee3 100644 --- a/packages/core/client/src/schema-component/antd/variable/RawTextArea.tsx +++ b/packages/core/client/src/schema-component/antd/variable/RawTextArea.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useRef, useState } from 'react'; import { css } from '@emotion/css'; import { Button, Input } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/variable/TextArea.tsx b/packages/core/client/src/schema-component/antd/variable/TextArea.tsx index 0e90d593b0..cc66ca1d7b 100644 --- a/packages/core/client/src/schema-component/antd/variable/TextArea.tsx +++ b/packages/core/client/src/schema-component/antd/variable/TextArea.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { useForm } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-component/antd/variable/Variable.tsx b/packages/core/client/src/schema-component/antd/variable/Variable.tsx index e6273cd0b3..15c0a34cc6 100644 --- a/packages/core/client/src/schema-component/antd/variable/Variable.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Variable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import React, { createContext, useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/variable/VariableSelect.style.ts b/packages/core/client/src/schema-component/antd/variable/VariableSelect.style.ts index b1bfa32cce..83593eccb8 100644 --- a/packages/core/client/src/schema-component/antd/variable/VariableSelect.style.ts +++ b/packages/core/client/src/schema-component/antd/variable/VariableSelect.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '../__builtins__'; const useStyles = genStyleHook('nb-variable-select', (token) => { diff --git a/packages/core/client/src/schema-component/antd/variable/VariableSelect.tsx b/packages/core/client/src/schema-component/antd/variable/VariableSelect.tsx index f9652261ab..6debde98b4 100644 --- a/packages/core/client/src/schema-component/antd/variable/VariableSelect.tsx +++ b/packages/core/client/src/schema-component/antd/variable/VariableSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import { Cascader } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/variable/XButton.tsx b/packages/core/client/src/schema-component/antd/variable/XButton.tsx index 9a61511421..8eebb89027 100644 --- a/packages/core/client/src/schema-component/antd/variable/XButton.tsx +++ b/packages/core/client/src/schema-component/antd/variable/XButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, ButtonProps } from 'antd'; import React, { forwardRef, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx b/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx index 97b36c58d0..ec82d3541f 100644 --- a/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx +++ b/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, userEvent, waitFor } from '@nocobase/test/client'; import React from 'react'; import App1 from '../demos/demo1'; diff --git a/packages/core/client/src/schema-component/antd/variable/demos/demo1.tsx b/packages/core/client/src/schema-component/antd/variable/demos/demo1.tsx index 12e10c390e..b9f0c6b166 100644 --- a/packages/core/client/src/schema-component/antd/variable/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/antd/variable/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Variable.Input */ diff --git a/packages/core/client/src/schema-component/antd/variable/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/variable/demos/demo2.tsx index 912cb73ce1..46bdecdd53 100644 --- a/packages/core/client/src/schema-component/antd/variable/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/variable/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Variable.Input */ diff --git a/packages/core/client/src/schema-component/antd/variable/demos/demo3.tsx b/packages/core/client/src/schema-component/antd/variable/demos/demo3.tsx index f2ab31a90b..d2f0f595c0 100644 --- a/packages/core/client/src/schema-component/antd/variable/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/antd/variable/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Variable.Input */ diff --git a/packages/core/client/src/schema-component/antd/variable/index.ts b/packages/core/client/src/schema-component/antd/variable/index.ts index 21cddc232a..0e7830cc5e 100644 --- a/packages/core/client/src/schema-component/antd/variable/index.ts +++ b/packages/core/client/src/schema-component/antd/variable/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Variable'; diff --git a/packages/core/client/src/schema-component/antd/variable/style.ts b/packages/core/client/src/schema-component/antd/variable/style.ts index 59ed37382d..15530a7887 100644 --- a/packages/core/client/src/schema-component/antd/variable/style.ts +++ b/packages/core/client/src/schema-component/antd/variable/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from './../__builtins__'; export const useStyles = genStyleHook('nb-variable', (token) => { diff --git a/packages/core/client/src/schema-component/common/dnd-context/index.tsx b/packages/core/client/src/schema-component/common/dnd-context/index.tsx index f345b9f6d5..2cd84e56b2 100644 --- a/packages/core/client/src/schema-component/common/dnd-context/index.tsx +++ b/packages/core/client/src/schema-component/common/dnd-context/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DndContext as DndKitContext, DragEndEvent, DragOverlay, rectIntersection } from '@dnd-kit/core'; import { Props } from '@dnd-kit/core/dist/components/DndContext/DndContext'; import { observer } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/common/index.ts b/packages/core/client/src/schema-component/common/index.ts index 3f18bf9717..2094c381a4 100644 --- a/packages/core/client/src/schema-component/common/index.ts +++ b/packages/core/client/src/schema-component/common/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './dnd-context'; export * from './sortable-item'; diff --git a/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx b/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx index 05fc2d2a3a..0dc4a94371 100644 --- a/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx +++ b/packages/core/client/src/schema-component/common/sortable-item/SortableItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; import { useDraggable, useDroppable } from '@dnd-kit/core'; import { cx } from '@emotion/css'; diff --git a/packages/core/client/src/schema-component/common/sortable-item/index.ts b/packages/core/client/src/schema-component/common/sortable-item/index.ts index 5334ff1093..f755082a0d 100644 --- a/packages/core/client/src/schema-component/common/sortable-item/index.ts +++ b/packages/core/client/src/schema-component/common/sortable-item/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SortableItem'; diff --git a/packages/core/client/src/schema-component/common/utils/logic.js b/packages/core/client/src/schema-component/common/utils/logic.js index f3627f0b15..7dd9b0c6c1 100644 --- a/packages/core/client/src/schema-component/common/utils/logic.js +++ b/packages/core/client/src/schema-component/common/utils/logic.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* globals define,module */ import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-component/common/utils/uitls.tsx b/packages/core/client/src/schema-component/common/utils/uitls.tsx index bd001b0404..2d5b93c776 100644 --- a/packages/core/client/src/schema-component/common/utils/uitls.tsx +++ b/packages/core/client/src/schema-component/common/utils/uitls.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _, { every, findIndex, some } from 'lodash'; import { VariableOption, VariablesContextType } from '../../../variables/types'; import { isVariable } from '../../../variables/utils/isVariable'; diff --git a/packages/core/client/src/schema-component/context.ts b/packages/core/client/src/schema-component/context.ts index ceed413fab..8a0c22f222 100644 --- a/packages/core/client/src/schema-component/context.ts +++ b/packages/core/client/src/schema-component/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; import { ISchemaComponentContext } from './types'; diff --git a/packages/core/client/src/schema-component/core/DesignableSwitch.tsx b/packages/core/client/src/schema-component/core/DesignableSwitch.tsx index 4c0a765751..3d9e3dcd69 100644 --- a/packages/core/client/src/schema-component/core/DesignableSwitch.tsx +++ b/packages/core/client/src/schema-component/core/DesignableSwitch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { HighlightOutlined } from '@ant-design/icons'; import { Button, Tooltip } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/core/FormProvider.tsx b/packages/core/client/src/schema-component/core/FormProvider.tsx index 75b2774bd2..c901792be3 100644 --- a/packages/core/client/src/schema-component/core/FormProvider.tsx +++ b/packages/core/client/src/schema-component/core/FormProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { FormProvider as FormilyFormProvider, diff --git a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx index 2c739d8ae7..b2e3152645 100644 --- a/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx +++ b/packages/core/client/src/schema-component/core/RemoteSchemaComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { Schema } from '@formily/react'; import { Spin } from 'antd'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponent.tsx b/packages/core/client/src/schema-component/core/SchemaComponent.tsx index f67acccb2d..3135b53483 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponent.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { IRecursionFieldProps, ISchemaFieldProps, RecursionField, Schema } from '@formily/react'; import React, { useContext, useMemo } from 'react'; import { SchemaComponentContext } from '../context'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx b/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx index 3bdd436ac3..0d3f3a9bb3 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponentOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ExpressionScope, SchemaComponentsContext, SchemaOptionsContext } from '@formily/react'; import React, { memo, useContext, useMemo } from 'react'; import { ISchemaComponentOptionsProps } from '../types'; diff --git a/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx b/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx index bda898c129..67afc9e321 100644 --- a/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx +++ b/packages/core/client/src/schema-component/core/SchemaComponentProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { FormProvider, Schema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/core/index.tsx b/packages/core/client/src/schema-component/core/index.tsx index 8c3c10a9e5..510146d89e 100644 --- a/packages/core/client/src/schema-component/core/index.tsx +++ b/packages/core/client/src/schema-component/core/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './DesignableSwitch'; export * from './FormProvider'; export * from './RemoteSchemaComponent'; diff --git a/packages/core/client/src/schema-component/demos/demo1.tsx b/packages/core/client/src/schema-component/demos/demo1.tsx index a46f567b66..4b2640fd68 100644 --- a/packages/core/client/src/schema-component/demos/demo1.tsx +++ b/packages/core/client/src/schema-component/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Insert Adjacent */ diff --git a/packages/core/client/src/schema-component/demos/demo2.tsx b/packages/core/client/src/schema-component/demos/demo2.tsx index 5b64c47404..81f2c8a934 100644 --- a/packages/core/client/src/schema-component/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentProvider, useSchemaComponentContext } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/demos/demo3.tsx b/packages/core/client/src/schema-component/demos/demo3.tsx index 79bedc8ef3..e7194366e8 100644 --- a/packages/core/client/src/schema-component/demos/demo3.tsx +++ b/packages/core/client/src/schema-component/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentProvider, useSchemaComponentContext } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/demos/demo4.tsx b/packages/core/client/src/schema-component/demos/demo4.tsx index 92b3f36978..4cd1c1e013 100644 --- a/packages/core/client/src/schema-component/demos/demo4.tsx +++ b/packages/core/client/src/schema-component/demos/demo4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentProvider, useSchemaComponentContext } from '@nocobase/client'; import { Button } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/__tests__/addAppVersion.test.ts b/packages/core/client/src/schema-component/hooks/__tests__/addAppVersion.test.ts index 1ef741d86e..9c2361dda8 100644 --- a/packages/core/client/src/schema-component/hooks/__tests__/addAppVersion.test.ts +++ b/packages/core/client/src/schema-component/hooks/__tests__/addAppVersion.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { addAppVersion } from '../addAppVersion'; describe('addAppVersion', () => { diff --git a/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts b/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts index 0e80f873b5..549c84c2b0 100644 --- a/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts +++ b/packages/core/client/src/schema-component/hooks/__tests__/designable.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Schema } from '@formily/react'; import { createDesignable, Designable } from '../useDesignable'; diff --git a/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts b/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts index 795bd34a1f..88e143d935 100644 --- a/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts +++ b/packages/core/client/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; import { splitWrapSchema } from '../useDesignable'; diff --git a/packages/core/client/src/schema-component/hooks/addAppVersion.tsx b/packages/core/client/src/schema-component/hooks/addAppVersion.tsx index 76ef3b0507..1f77e62b6d 100644 --- a/packages/core/client/src/schema-component/hooks/addAppVersion.tsx +++ b/packages/core/client/src/schema-component/hooks/addAppVersion.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function addAppVersion(schema: any, appVersion: string) { if (!schema) { return; diff --git a/packages/core/client/src/schema-component/hooks/index.ts b/packages/core/client/src/schema-component/hooks/index.ts index b947b72332..b15d28347a 100644 --- a/packages/core/client/src/schema-component/hooks/index.ts +++ b/packages/core/client/src/schema-component/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useAttach'; export * from './useCompile'; export * from './useComponent'; diff --git a/packages/core/client/src/schema-component/hooks/useAttach.ts b/packages/core/client/src/schema-component/hooks/useAttach.ts index fb5b55c864..a07bfe6132 100644 --- a/packages/core/client/src/schema-component/hooks/useAttach.ts +++ b/packages/core/client/src/schema-component/hooks/useAttach.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useRef, useEffect } from 'react'; interface IRecycleTarget { diff --git a/packages/core/client/src/schema-component/hooks/useCompile.ts b/packages/core/client/src/schema-component/hooks/useCompile.ts index 2b51f9c916..a73175de39 100644 --- a/packages/core/client/src/schema-component/hooks/useCompile.ts +++ b/packages/core/client/src/schema-component/hooks/useCompile.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@formily/react'; import { isValidElement, useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/useComponent.ts b/packages/core/client/src/schema-component/hooks/useComponent.ts index 880c045258..f28b8366ba 100644 --- a/packages/core/client/src/schema-component/hooks/useComponent.ts +++ b/packages/core/client/src/schema-component/hooks/useComponent.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaOptionsContext } from '@formily/react'; import { get } from 'lodash'; import { useContext } from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/useDesignable.tsx b/packages/core/client/src/schema-component/hooks/useDesignable.tsx index 7040c19f58..d668bda319 100644 --- a/packages/core/client/src/schema-component/hooks/useDesignable.tsx +++ b/packages/core/client/src/schema-component/hooks/useDesignable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralField, Query } from '@formily/core'; import { ISchema, Schema, SchemaOptionsContext, useField, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-component/hooks/useDesigner.ts b/packages/core/client/src/schema-component/hooks/useDesigner.ts index 9036b513bb..b0b88ebe33 100644 --- a/packages/core/client/src/schema-component/hooks/useDesigner.ts +++ b/packages/core/client/src/schema-component/hooks/useDesigner.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useComponent, useDesignable } from '.'; import { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts b/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts index 2eb3284482..c473310b9a 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldComponentOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx index fd6a98c836..55685cb791 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx +++ b/packages/core/client/src/schema-component/hooks/useFieldModeOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema, useForm } from '@formily/react'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldProps.ts b/packages/core/client/src/schema-component/hooks/useFieldProps.ts index ca494bcb4d..dd5acd03ef 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldProps.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext, useRef } from 'react'; import { Schema, SchemaExpressionScopeContext, SchemaOptionsContext } from '@formily/react'; diff --git a/packages/core/client/src/schema-component/hooks/useFieldTitle.ts b/packages/core/client/src/schema-component/hooks/useFieldTitle.ts index e18bcdd104..011c44a82a 100644 --- a/packages/core/client/src/schema-component/hooks/useFieldTitle.ts +++ b/packages/core/client/src/schema-component/hooks/useFieldTitle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { useEffect } from 'react'; diff --git a/packages/core/client/src/schema-component/hooks/useProps.ts b/packages/core/client/src/schema-component/hooks/useProps.ts index acad65d9fa..5f7e073e8e 100644 --- a/packages/core/client/src/schema-component/hooks/useProps.ts +++ b/packages/core/client/src/schema-component/hooks/useProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + interface Options { arrayMerge?(target: any[], source: any[], options?: Options): any[]; clone?: boolean; diff --git a/packages/core/client/src/schema-component/hooks/useSchemaComponentContext.ts b/packages/core/client/src/schema-component/hooks/useSchemaComponentContext.ts index 9bdab5dbd6..ca6c19a81e 100644 --- a/packages/core/client/src/schema-component/hooks/useSchemaComponentContext.ts +++ b/packages/core/client/src/schema-component/hooks/useSchemaComponentContext.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import { SchemaComponentContext } from '../context'; diff --git a/packages/core/client/src/schema-component/hooks/useTableSize.ts b/packages/core/client/src/schema-component/hooks/useTableSize.ts index e8c1b2cfa4..9c4009e0e8 100644 --- a/packages/core/client/src/schema-component/hooks/useTableSize.ts +++ b/packages/core/client/src/schema-component/hooks/useTableSize.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEventListener } from 'ahooks'; import { debounce } from 'lodash'; import { useCallback, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-component/index.tsx b/packages/core/client/src/schema-component/index.tsx index 00b9572204..b0c8833da2 100644 --- a/packages/core/client/src/schema-component/index.tsx +++ b/packages/core/client/src/schema-component/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './antd'; export * from './common'; export * from './context'; diff --git a/packages/core/client/src/schema-component/types.ts b/packages/core/client/src/schema-component/types.ts index 54b2d152bc..4fc75bce5c 100644 --- a/packages/core/client/src/schema-component/types.ts +++ b/packages/core/client/src/schema-component/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; import { IRecursionFieldProps, ISchemaFieldProps, SchemaReactComponents } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx index ffa3fd1a3b..7da258acde 100644 --- a/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/CustomFormItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; diff --git a/packages/core/client/src/schema-initializer/buttons/FormItemInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/FormItemInitializers.tsx index 93183b9cab..a688cf9213 100644 --- a/packages/core/client/src/schema-initializer/buttons/FormItemInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/FormItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; import { SchemaInitializerChildren } from '../../application'; diff --git a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx index 67ee5bd96e..1d0105a5af 100644 --- a/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/RecordBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; import { useCallback, useMemo } from 'react'; import { diff --git a/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx index 76371d1166..c9281987f3 100644 --- a/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/SubTableActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '../../application/schema-initializer/CompatibleSchemaInitializer'; /** diff --git a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx index 26c5349cf1..4dcc464ed5 100644 --- a/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TabPaneInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import React, { useMemo } from 'react'; import { SchemaComponent, useActionContext, useDesignable, useRecord } from '../..'; diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/area.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/area.ts index f6e692060e..782176e5a9 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/area.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/area.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const area = { data: [ { diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/bar.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/bar.ts index 25383cdcca..757e15b4a6 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/bar.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/bar.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const bar = { data: [ { year: '1951 年', value: 38 }, diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/column.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/column.ts index 31f29f319a..01e55066ad 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/column.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/column.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const column = { data: [ { diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/index.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/index.ts index 2708796dc6..188641b01e 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/index.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './area'; export * from './bar'; export * from './column'; diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/line.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/line.ts index 4275a5e5bc..b7181cefe0 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/line.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/line.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const line = { data: [ { diff --git a/packages/core/client/src/schema-initializer/buttons/chart-config/pie.ts b/packages/core/client/src/schema-initializer/buttons/chart-config/pie.ts index 2dc74b2457..9ff14f5647 100644 --- a/packages/core/client/src/schema-initializer/buttons/chart-config/pie.ts +++ b/packages/core/client/src/schema-initializer/buttons/chart-config/pie.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const pie = { appendPadding: 10, data: [ diff --git a/packages/core/client/src/schema-initializer/buttons/index.ts b/packages/core/client/src/schema-initializer/buttons/index.ts index 23171b79ea..1bf9a819a7 100644 --- a/packages/core/client/src/schema-initializer/buttons/index.ts +++ b/packages/core/client/src/schema-initializer/buttons/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CustomFormItemInitializers'; export * from './FormItemInitializers'; export * from './RecordBlockInitializers'; diff --git a/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx b/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx index cad8f32193..5503f0b506 100644 --- a/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx +++ b/packages/core/client/src/schema-initializer/components/CreateRecordAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer, RecursionField, useField, useFieldSchema, useForm } from '@formily/react'; diff --git a/packages/core/client/src/schema-initializer/components/DeletedField.tsx b/packages/core/client/src/schema-initializer/components/DeletedField.tsx index ba341eb15d..e4b6b8dfe3 100644 --- a/packages/core/client/src/schema-initializer/components/DeletedField.tsx +++ b/packages/core/client/src/schema-initializer/components/DeletedField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx index cd854a0870..bc7eba164d 100644 --- a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx +++ b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { merge } from '@formily/shared'; diff --git a/packages/core/client/src/schema-initializer/components/assigned-field/index.ts b/packages/core/client/src/schema-initializer/components/assigned-field/index.ts index ffbb3e51d1..11391c5020 100644 --- a/packages/core/client/src/schema-initializer/components/assigned-field/index.ts +++ b/packages/core/client/src/schema-initializer/components/assigned-field/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AssignedField'; diff --git a/packages/core/client/src/schema-initializer/components/index.ts b/packages/core/client/src/schema-initializer/components/index.ts index adc976fa4b..00d8fc2736 100644 --- a/packages/core/client/src/schema-initializer/components/index.ts +++ b/packages/core/client/src/schema-initializer/components/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './assigned-field'; export * from './CreateRecordAction'; diff --git a/packages/core/client/src/schema-initializer/demos/basic.tsx b/packages/core/client/src/schema-initializer/demos/basic.tsx index 0408a6f0b2..39cbf277c2 100644 --- a/packages/core/client/src/schema-initializer/demos/basic.tsx +++ b/packages/core/client/src/schema-initializer/demos/basic.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CSSVariableProvider, diff --git a/packages/core/client/src/schema-initializer/demos/build-type.tsx b/packages/core/client/src/schema-initializer/demos/build-type.tsx index 2bf62f2495..e38535a7ac 100644 --- a/packages/core/client/src/schema-initializer/demos/build-type.tsx +++ b/packages/core/client/src/schema-initializer/demos/build-type.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Plugin, diff --git a/packages/core/client/src/schema-initializer/demos/custom-button.tsx b/packages/core/client/src/schema-initializer/demos/custom-button.tsx index cf69043f7b..7c0cc39625 100644 --- a/packages/core/client/src/schema-initializer/demos/custom-button.tsx +++ b/packages/core/client/src/schema-initializer/demos/custom-button.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, Plugin, SchemaInitializer, useSchemaInitializerRender } from '@nocobase/client'; import { PlusOutlined } from '@ant-design/icons'; diff --git a/packages/core/client/src/schema-initializer/demos/custom-items-component.tsx b/packages/core/client/src/schema-initializer/demos/custom-items-component.tsx index 00d5588c18..98ba1566ea 100644 --- a/packages/core/client/src/schema-initializer/demos/custom-items-component.tsx +++ b/packages/core/client/src/schema-initializer/demos/custom-items-component.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { Application, diff --git a/packages/core/client/src/schema-initializer/demos/dynamic-visible-children.tsx b/packages/core/client/src/schema-initializer/demos/dynamic-visible-children.tsx index eac2298261..3b34f22559 100644 --- a/packages/core/client/src/schema-initializer/demos/dynamic-visible-children.tsx +++ b/packages/core/client/src/schema-initializer/demos/dynamic-visible-children.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Plugin, diff --git a/packages/core/client/src/schema-initializer/demos/insert-schema-action.tsx b/packages/core/client/src/schema-initializer/demos/insert-schema-action.tsx index 0ee7db75d7..80b946478b 100644 --- a/packages/core/client/src/schema-initializer/demos/insert-schema-action.tsx +++ b/packages/core/client/src/schema-initializer/demos/insert-schema-action.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Action, ActionBar, diff --git a/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx b/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx index 53f7ee5fb5..828f7a9bf2 100644 --- a/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx +++ b/packages/core/client/src/schema-initializer/demos/insert-schema-basic.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, diff --git a/packages/core/client/src/schema-initializer/demos/insert-schema-form-item.tsx b/packages/core/client/src/schema-initializer/demos/insert-schema-form-item.tsx index a7c9c5b55c..304f21d3ac 100644 --- a/packages/core/client/src/schema-initializer/demos/insert-schema-form-item.tsx +++ b/packages/core/client/src/schema-initializer/demos/insert-schema-form-item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CollectionFieldInitializer, diff --git a/packages/core/client/src/schema-initializer/demos/nested-items.tsx b/packages/core/client/src/schema-initializer/demos/nested-items.tsx index 0ff86b6a77..043c4ea4ce 100644 --- a/packages/core/client/src/schema-initializer/demos/nested-items.tsx +++ b/packages/core/client/src/schema-initializer/demos/nested-items.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { Application, diff --git a/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts b/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts index cf5c121e29..122c3e743b 100644 --- a/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts +++ b/packages/core/client/src/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-initializer/index.ts b/packages/core/client/src/schema-initializer/index.ts index b6d027bfc5..bc70539f3d 100644 --- a/packages/core/client/src/schema-initializer/index.ts +++ b/packages/core/client/src/schema-initializer/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../application/Plugin'; import { CreateChildInitializer } from '../modules/actions/add-child/CreateChildInitializer'; import { CreateActionInitializer } from '../modules/actions/add-new/CreateActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/ActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/ActionInitializer.tsx index 61bbd311cf..c16d72a95a 100644 --- a/packages/core/client/src/schema-initializer/items/ActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/ActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { InitializerWithSwitch } from './InitializerWithSwitch'; diff --git a/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx index 05de0d33ec..2daaa62c4e 100644 --- a/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/BlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge } from '@formily/shared'; import React from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../application'; diff --git a/packages/core/client/src/schema-initializer/items/CreateFilterActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/CreateFilterActionInitializer.tsx index 8e8708a670..b2034fb111 100644 --- a/packages/core/client/src/schema-initializer/items/CreateFilterActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/CreateFilterActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from './ActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/CreateResetActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/CreateResetActionInitializer.tsx index af9e9f0e49..0e4b007917 100644 --- a/packages/core/client/src/schema-initializer/items/CreateResetActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/CreateResetActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from './ActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/CustomizeActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/CustomizeActionInitializer.tsx index eb4113cfac..f13b97a612 100644 --- a/packages/core/client/src/schema-initializer/items/CustomizeActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/CustomizeActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { BlockInitializer } from '.'; diff --git a/packages/core/client/src/schema-initializer/items/DataBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/DataBlockInitializer.tsx index 19609d169d..9e4893cd5b 100644 --- a/packages/core/client/src/schema-initializer/items/DataBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/DataBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Icon, { TableOutlined } from '@ant-design/icons'; import { Divider, Empty, Input, MenuProps, Spin } from 'antd'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/DeleteEventActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/DeleteEventActionInitializer.tsx index cfcd275bed..4a750b71a6 100644 --- a/packages/core/client/src/schema-initializer/items/DeleteEventActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/DeleteEventActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from './ActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/FilterBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/FilterBlockInitializer.tsx index b980d50905..ced4d73427 100644 --- a/packages/core/client/src/schema-initializer/items/FilterBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/FilterBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataBlockInitializer } from './DataBlockInitializer'; export const FilterBlockInitializer = DataBlockInitializer; diff --git a/packages/core/client/src/schema-initializer/items/G2PlotInitializer.tsx b/packages/core/client/src/schema-initializer/items/G2PlotInitializer.tsx index 778aa7a93f..6602b1d53c 100644 --- a/packages/core/client/src/schema-initializer/items/G2PlotInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/G2PlotInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '../../application'; diff --git a/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx b/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx index 68a7823a42..d0b9d66d25 100644 --- a/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx +++ b/packages/core/client/src/schema-initializer/items/InitializerWithSwitch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge } from '@formily/shared'; import React from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/RecordAssociationBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordAssociationBlockInitializer.tsx index 7f3525453a..0bde6547ea 100644 --- a/packages/core/client/src/schema-initializer/items/RecordAssociationBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordAssociationBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback } from 'react'; import { TableOutlined } from '@ant-design/icons'; diff --git a/packages/core/client/src/schema-initializer/items/RecordAssociationDetailsBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordAssociationDetailsBlockInitializer.tsx index 1ec34f9421..99a4b8f0fc 100644 --- a/packages/core/client/src/schema-initializer/items/RecordAssociationDetailsBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordAssociationDetailsBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/RecordAssociationFormBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordAssociationFormBlockInitializer.tsx index e435b883f1..5bd386ddfb 100644 --- a/packages/core/client/src/schema-initializer/items/RecordAssociationFormBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordAssociationFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/RecordAssociationGridCardBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordAssociationGridCardBlockInitializer.tsx index 82111d3be0..dfdf0a6a4a 100644 --- a/packages/core/client/src/schema-initializer/items/RecordAssociationGridCardBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordAssociationGridCardBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/RecordAssociationListBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordAssociationListBlockInitializer.tsx index cd706e683d..02f81253f5 100644 --- a/packages/core/client/src/schema-initializer/items/RecordAssociationListBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordAssociationListBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.tsx index 9b08427b40..bcb339b675 100644 --- a/packages/core/client/src/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import React, { useCallback } from 'react'; diff --git a/packages/core/client/src/schema-initializer/items/SelectActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/SelectActionInitializer.tsx index a4b1b4086a..54c31b8298 100644 --- a/packages/core/client/src/schema-initializer/items/SelectActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/SelectActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from './ActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/SubmitActionInitializer.tsx b/packages/core/client/src/schema-initializer/items/SubmitActionInitializer.tsx index 50ab05c772..dc760fbbad 100644 --- a/packages/core/client/src/schema-initializer/items/SubmitActionInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/SubmitActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from './ActionInitializer'; diff --git a/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx b/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx index 33d833d6b9..98689a1442 100644 --- a/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/TableActionColumnInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { uid } from '@formily/shared'; import { useSchemaInitializerItem } from '../../application'; diff --git a/packages/core/client/src/schema-initializer/items/index.tsx b/packages/core/client/src/schema-initializer/items/index.tsx index e52a191cc3..4b379133bf 100644 --- a/packages/core/client/src/schema-initializer/items/index.tsx +++ b/packages/core/client/src/schema-initializer/items/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from '../../schema-component/antd/association-filter/ActionBarAssociationFilterAction'; // association filter export * from '../../schema-component/antd/association-filter/AssociationFilter'; diff --git a/packages/core/client/src/schema-initializer/style.ts b/packages/core/client/src/schema-initializer/style.ts index 73971a9f87..baf5f330fb 100644 --- a/packages/core/client/src/schema-initializer/style.ts +++ b/packages/core/client/src/schema-initializer/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ token }) => { diff --git a/packages/core/client/src/schema-initializer/utils.ts b/packages/core/client/src/schema-initializer/utils.ts index 79854f6e0e..b29a399826 100644 --- a/packages/core/client/src/schema-initializer/utils.ts +++ b/packages/core/client/src/schema-initializer/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field, Form } from '@formily/core'; import { ISchema, Schema, useFieldSchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/core/client/src/schema-items/GeneralSchemaItems.tsx b/packages/core/client/src/schema-items/GeneralSchemaItems.tsx index 02a541ce48..89d96e42fa 100644 --- a/packages/core/client/src/schema-items/GeneralSchemaItems.tsx +++ b/packages/core/client/src/schema-items/GeneralSchemaItems.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema, observer, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; diff --git a/packages/core/client/src/schema-items/GeneralSettings.tsx b/packages/core/client/src/schema-items/GeneralSettings.tsx index d576a87e72..d34b5f2ee0 100644 --- a/packages/core/client/src/schema-items/GeneralSettings.tsx +++ b/packages/core/client/src/schema-items/GeneralSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx b/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx index dfccc53bfc..d00d2c6cb4 100644 --- a/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx +++ b/packages/core/client/src/schema-items/OpenModeSchemaItems.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { Select } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-items/index.ts b/packages/core/client/src/schema-items/index.ts index 33e40ea98c..57e6288c73 100644 --- a/packages/core/client/src/schema-items/index.ts +++ b/packages/core/client/src/schema-items/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './OpenModeSchemaItems'; export * from './GeneralSchemaItems'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx b/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx index 20b5da010e..5f4ea8ee96 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/FormDataTemplates.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { connect, mapProps, observer } from '@formily/react'; import { observable } from '@formily/reactive'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/TreeLabel.tsx b/packages/core/client/src/schema-settings/DataTemplates/TreeLabel.tsx index cd375f5451..ca47fdd72e 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/TreeLabel.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/TreeLabel.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/AsDefaultTemplate.tsx b/packages/core/client/src/schema-settings/DataTemplates/components/AsDefaultTemplate.tsx index ccfc5a3661..489d6e1886 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/AsDefaultTemplate.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/components/AsDefaultTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayBase } from '@formily/antd-v5'; import { Switch } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.style.ts b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.style.ts index bec4600099..107f8d222c 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.style.ts +++ b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(() => { diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx index bc4b0e5deb..6bdecc8b9c 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/components/DataTemplateTitle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CopyOutlined } from '@ant-design/icons'; import { ArrayBase } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx b/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx index c37fa00fcc..82bbeacfea 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/components/Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema, observer, useField, useFieldSchema } from '@formily/react'; import { error } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts b/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts index 5beb6deb89..d263b9ba38 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts +++ b/packages/core/client/src/schema-settings/DataTemplates/hooks/useCollectionState.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField } from '@formily/react'; import React, { useCallback, useState } from 'react'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/index.tsx b/packages/core/client/src/schema-settings/DataTemplates/index.tsx index 0588c36f24..15ef703824 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/index.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/index.tsx @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FormDataTemplates'; diff --git a/packages/core/client/src/schema-settings/DataTemplates/utils.tsx b/packages/core/client/src/schema-settings/DataTemplates/utils.tsx index 4e70c00f04..133128c338 100644 --- a/packages/core/client/src/schema-settings/DataTemplates/utils.tsx +++ b/packages/core/client/src/schema-settings/DataTemplates/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayBase } from '@formily/antd-v5'; import { useForm } from '@formily/react'; import { message } from 'antd'; diff --git a/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx b/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx index ffa5120d3a..7b5372353b 100644 --- a/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx +++ b/packages/core/client/src/schema-settings/DateFormat/ExpiresRadio.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import dayjs from 'dayjs'; diff --git a/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx b/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx index c1825e9d0f..253eda0b64 100644 --- a/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx +++ b/packages/core/client/src/schema-settings/EnableChildCollections/DynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer, useFieldSchema } from '@formily/react'; import React, { useEffect, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx index 187fbba02c..a4d9c315ee 100644 --- a/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx +++ b/packages/core/client/src/schema-settings/EnableChildCollections/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm } from '@formily/react'; import { action } from '@formily/reactive'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx index 70400da02d..4ad2cda48b 100644 --- a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx +++ b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DragOutlined, MenuOutlined, PlusOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx b/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx index 2b5a5bfa80..066f0ecf93 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/DynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, onFieldValueChange } from '@formily/core'; import { FieldContext, FormContext } from '@formily/react'; import { merge } from '@formily/shared'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx index d9b2a8f2cf..7cb7cd959f 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { TreeSelect } from '@formily/antd-v5'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx index 72a1971b1f..f427299e6c 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/LinkageRuleActionGroup.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField as ArrayFieldModel, VoidField } from '@formily/core'; import { ArrayField, ObjectField, observer, useField } from '@formily/react'; import { Space } from 'antd'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/ValueDynamicComponent.tsx b/packages/core/client/src/schema-settings/LinkageRules/ValueDynamicComponent.tsx index 954281ef12..5fe8c25998 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/ValueDynamicComponent.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/ValueDynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input, Select } from 'antd'; import React, { useCallback, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/Variables.tsx b/packages/core/client/src/schema-settings/LinkageRules/Variables.tsx index 56616e5cc2..0e49c5b7ce 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/Variables.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/Variables.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCompile } from '../../schema-component'; import { useCollectionManager_deprecated, useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/action-hooks.ts b/packages/core/client/src/schema-settings/LinkageRules/action-hooks.ts index e2303b6b39..6b72ae8eff 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/action-hooks.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/action-hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; import { useCollectionManager_deprecated } from '../../collection-manager'; import { ActionType } from './type'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx b/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx index 5bbd08e55a..6915d094be 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayBase } from '@formily/antd-v5'; import { Switch } from 'antd'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.style.ts b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.style.ts index bec4600099..107f8d222c 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.style.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(() => { diff --git a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx index 05b2ffc801..29a9643ac1 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/components/LinkageHeader.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CopyOutlined } from '@ant-design/icons'; import { ArrayBase } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/context.ts b/packages/core/client/src/schema-settings/LinkageRules/context.ts index 3899de9ef9..20493d89fe 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/context.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ObjectField } from '@formily/core'; import { Schema } from '@formily/react'; import { createContext } from 'react'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/index.tsx b/packages/core/client/src/schema-settings/LinkageRules/index.tsx index 8147f4c7d8..3f06124b5a 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/index.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { observer, useFieldSchema } from '@formily/react'; import React, { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/LinkageRules/type.ts b/packages/core/client/src/schema-settings/LinkageRules/type.ts index 0c9cc10c02..279f640130 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/type.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/type.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export enum ActionType { Visible = 'visible', Editable = 'editable', diff --git a/packages/core/client/src/schema-settings/LinkageRules/useValues.ts b/packages/core/client/src/schema-settings/LinkageRules/useValues.ts index c277354fbc..6e7f2482b5 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/useValues.ts +++ b/packages/core/client/src/schema-settings/LinkageRules/useValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { useEffect, useContext } from 'react'; import { LinkageLogicContext } from './context'; diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index 30e2230330..7911f774eb 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input } from '@formily/antd-v5'; import { Field, GeneralField, createForm } from '@formily/core'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx index 874c0cde84..67e326397e 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDataScope.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import React, { FC, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx index 89ff1f31f2..1e5b4bcc2c 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDateFormat.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { ISchema, Schema, useField } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx b/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx index eb4286f2cb..1b0ed99c1d 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsDefaultValue.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { ISchema, Schema, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx b/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx index 2f578b0d32..f6c6549c63 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsNumberFormat.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { ISchema, Schema, useField, useForm } from '@formily/react'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsPlugin.ts b/packages/core/client/src/schema-settings/SchemaSettingsPlugin.ts index 83325557e2..6b8026def1 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsPlugin.ts +++ b/packages/core/client/src/schema-settings/SchemaSettingsPlugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../application/Plugin'; import { addChildActionSettings } from '../modules/actions/add-child/addChildActionSettings'; import { addNewActionSettings } from '../modules/actions/add-new/addNewActionSettings'; diff --git a/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx b/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx index c2bd2ba7fe..efe2a404be 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsSortingRule.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import _ from 'lodash'; import React from 'react'; diff --git a/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx b/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx index 0ad70b8176..9331e49897 100644 --- a/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/VariableInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; // @ts-ignore import { Schema } from '@formily/json-schema'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/index.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/index.ts index 8c4b9e99c7..f1dbc23f86 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/index.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useBaseVariable'; export * from './useDateVariable'; export * from './useUserVariable'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx b/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx index b920015de4..98f36ba8ee 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useBaseVariable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/json-schema'; import { Tooltip } from 'antd'; import React, { useContext, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useBlockCollection.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useBlockCollection.ts index 64021c2a1e..a103209cc5 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useBlockCollection.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useBlockCollection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useBlockRequestContext } from '../../../block-provider/BlockProvider'; export const useBlockCollection = () => { diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useContextAssociationFields.tsx b/packages/core/client/src/schema-settings/VariableInput/hooks/useContextAssociationFields.tsx index d16ac795e3..a1293a68e6 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useContextAssociationFields.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useContextAssociationFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { error } from '@nocobase/utils/client'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useDateVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useDateVariable.ts index ccd01fbcda..ec5af9a6de 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useDateVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useDateVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { getDateRanges } from '../../../schema-component/antd/date-picker/util'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts index a053d6208d..a120ccf957 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useFormVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; import { Schema } from '@formily/json-schema'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts index 2808c97b88..2bc7d1e567 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useIterationVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts index 2067a13e45..c3c407715b 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useParentRecordVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/usePopupVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/usePopupVariable.ts index ee5d799bef..6ba3828bb5 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/usePopupVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/usePopupVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useVariable } from '../../../modules/variable/useVariable'; import { useBaseVariable } from './useBaseVariable'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts index 9678bddd1b..fe7c308908 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useRecordVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import _ from 'lodash'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts index 6c853110c4..2b4bcec761 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useRoleVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { useTranslation } from 'react-i18next'; import { useAPIClient } from '../../../api-client'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts index 68979c6f1a..c763df9242 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useUserVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { useTranslation } from 'react-i18next'; import { CollectionFieldOptions_deprecated } from '../../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts b/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts index ae41b2b027..ec8c7b8843 100644 --- a/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts +++ b/packages/core/client/src/schema-settings/VariableInput/hooks/useVariableOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; import { ISchema, Schema } from '@formily/react'; import { useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/VariableInput/index.ts b/packages/core/client/src/schema-settings/VariableInput/index.ts index ff5267fd6d..b32e210070 100644 --- a/packages/core/client/src/schema-settings/VariableInput/index.ts +++ b/packages/core/client/src/schema-settings/VariableInput/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './hooks'; export * from './VariableInput'; diff --git a/packages/core/client/src/schema-settings/VariableInput/type.ts b/packages/core/client/src/schema-settings/VariableInput/type.ts index 4dce386d2c..09b1603bf3 100644 --- a/packages/core/client/src/schema-settings/VariableInput/type.ts +++ b/packages/core/client/src/schema-settings/VariableInput/type.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; import type { DefaultOptionType } from 'antd/lib/cascader'; diff --git a/packages/core/client/src/schema-settings/VariableInput/utils/formatVariableScop.tsx b/packages/core/client/src/schema-settings/VariableInput/utils/formatVariableScop.tsx index 0bd5655c2a..d58d3a1257 100644 --- a/packages/core/client/src/schema-settings/VariableInput/utils/formatVariableScop.tsx +++ b/packages/core/client/src/schema-settings/VariableInput/utils/formatVariableScop.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormatVariableScopeParam, FormatVariableScopeReturn } from '../VariableInput'; export function formatVariableScop(variableScop: FormatVariableScopeParam[]): FormatVariableScopeReturn[] { diff --git a/packages/core/client/src/schema-settings/demos/basic.tsx b/packages/core/client/src/schema-settings/demos/basic.tsx index c6354cc553..c7c31cb6cf 100644 --- a/packages/core/client/src/schema-settings/demos/basic.tsx +++ b/packages/core/client/src/schema-settings/demos/basic.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { Application, Plugin, SchemaSettings, SchemaSettingsItem, useSchemaSettingsRender } from '@nocobase/client'; diff --git a/packages/core/client/src/schema-settings/demos/built-type.tsx b/packages/core/client/src/schema-settings/demos/built-type.tsx index 28e0062527..edc1f7b0b1 100644 --- a/packages/core/client/src/schema-settings/demos/built-type.tsx +++ b/packages/core/client/src/schema-settings/demos/built-type.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Input } from 'antd'; import { diff --git a/packages/core/client/src/schema-settings/demos/custom-component.tsx b/packages/core/client/src/schema-settings/demos/custom-component.tsx index c5ab148c01..e7a3535e04 100644 --- a/packages/core/client/src/schema-settings/demos/custom-component.tsx +++ b/packages/core/client/src/schema-settings/demos/custom-component.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, Plugin, SchemaSettings, useSchemaSettingsRender } from '@nocobase/client'; import { Button } from 'antd'; diff --git a/packages/core/client/src/schema-settings/demos/demo3.tsx b/packages/core/client/src/schema-settings/demos/demo3.tsx index 0161c525c1..22703fff1c 100644 --- a/packages/core/client/src/schema-settings/demos/demo3.tsx +++ b/packages/core/client/src/schema-settings/demos/demo3.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, CardItem, diff --git a/packages/core/client/src/schema-settings/demos/schema-basic.tsx b/packages/core/client/src/schema-settings/demos/schema-basic.tsx index 8ee0eea3a7..9a1120e56b 100644 --- a/packages/core/client/src/schema-settings/demos/schema-basic.tsx +++ b/packages/core/client/src/schema-settings/demos/schema-basic.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Application, diff --git a/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts b/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts index 36ca4d0f7a..bcb54d9e51 100644 --- a/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts +++ b/packages/core/client/src/schema-settings/hooks/useGetAriaLabelOfDesigner.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCallback } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx b/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx index 122bebbf5d..1b730e8921 100644 --- a/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx +++ b/packages/core/client/src/schema-settings/hooks/useIsAllowToSetDefaultValue.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; import { Schema, useFieldSchema } from '@formily/react'; import React, { useContext, useMemo } from 'react'; diff --git a/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts b/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts index 67aab07086..9eeebdfee5 100644 --- a/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts +++ b/packages/core/client/src/schema-settings/hooks/useIsShowMultipleSwitch.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { useCollectionManager_deprecated } from '../../collection-manager'; import { useColumnSchema } from '../../schema-component/antd/table-v2/Table.Column.Decorator'; diff --git a/packages/core/client/src/schema-settings/hooks/useParseDataScopeFilter.ts b/packages/core/client/src/schema-settings/hooks/useParseDataScopeFilter.ts index 5830c9f219..3036424320 100644 --- a/packages/core/client/src/schema-settings/hooks/useParseDataScopeFilter.ts +++ b/packages/core/client/src/schema-settings/hooks/useParseDataScopeFilter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { flatten, unflatten } from '@nocobase/utils/client'; import { useCallback } from 'react'; import { useLocalVariables, useVariables } from '../../variables'; diff --git a/packages/core/client/src/schema-settings/index.ts b/packages/core/client/src/schema-settings/index.ts index 2f55cc2275..f0178601b2 100644 --- a/packages/core/client/src/schema-settings/index.ts +++ b/packages/core/client/src/schema-settings/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './DataTemplates/hooks/useCollectionState'; export * from './DataTemplates/utils'; export * from './GeneralSchemaDesigner'; diff --git a/packages/core/client/src/schema-settings/isPatternDisabled.tsx b/packages/core/client/src/schema-settings/isPatternDisabled.tsx index cff5a220cf..c5b4360bb1 100644 --- a/packages/core/client/src/schema-settings/isPatternDisabled.tsx +++ b/packages/core/client/src/schema-settings/isPatternDisabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; export const isPatternDisabled = (fieldSchema: Schema) => { diff --git a/packages/core/client/src/schema-settings/styles.ts b/packages/core/client/src/schema-settings/styles.ts index cf1a0d16af..f052a77a69 100644 --- a/packages/core/client/src/schema-settings/styles.ts +++ b/packages/core/client/src/schema-settings/styles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(() => { diff --git a/packages/core/client/src/schema-settings/types.ts b/packages/core/client/src/schema-settings/types.ts index 32a366352c..31e62c8c35 100644 --- a/packages/core/client/src/schema-settings/types.ts +++ b/packages/core/client/src/schema-settings/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; export interface DataScopeProps { diff --git a/packages/core/client/src/schema-templates/BlockTemplate.tsx b/packages/core/client/src/schema-templates/BlockTemplate.tsx index d606a0791f..389cecad7c 100644 --- a/packages/core/client/src/schema-templates/BlockTemplate.tsx +++ b/packages/core/client/src/schema-templates/BlockTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField, useFieldSchema } from '@formily/react'; import React, { createContext, useContext, useMemo } from 'react'; import { CollectionDeletedPlaceholder, RemoteSchemaComponent, useDesignable } from '..'; diff --git a/packages/core/client/src/schema-templates/BlockTemplateDetails.tsx b/packages/core/client/src/schema-templates/BlockTemplateDetails.tsx index 54d23cc514..b02d84d638 100644 --- a/packages/core/client/src/schema-templates/BlockTemplateDetails.tsx +++ b/packages/core/client/src/schema-templates/BlockTemplateDetails.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageHeader as AntdPageHeader } from '@ant-design/pro-layout'; import { Input, Spin } from 'antd'; import React, { useContext, useState } from 'react'; diff --git a/packages/core/client/src/schema-templates/BlockTemplatePage.tsx b/packages/core/client/src/schema-templates/BlockTemplatePage.tsx index b5b5bacd1e..9d09424bbb 100644 --- a/packages/core/client/src/schema-templates/BlockTemplatePage.tsx +++ b/packages/core/client/src/schema-templates/BlockTemplatePage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageHeader as AntdPageHeader } from '@ant-design/pro-layout'; import React from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx b/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx index 979f4e09fe..74aaa61bcc 100644 --- a/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx +++ b/packages/core/client/src/schema-templates/SchemaTemplateManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; import { cloneDeep } from 'lodash'; diff --git a/packages/core/client/src/schema-templates/collections/uiSchemaTemplates.ts b/packages/core/client/src/schema-templates/collections/uiSchemaTemplates.ts index a1c89628aa..74864ada7e 100644 --- a/packages/core/client/src/schema-templates/collections/uiSchemaTemplates.ts +++ b/packages/core/client/src/schema-templates/collections/uiSchemaTemplates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '../../collection-manager'; export const uiSchemaTemplatesCollection: CollectionOptions = { diff --git a/packages/core/client/src/schema-templates/index.ts b/packages/core/client/src/schema-templates/index.ts index c7471d9b30..cae0b019ee 100644 --- a/packages/core/client/src/schema-templates/index.ts +++ b/packages/core/client/src/schema-templates/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './BlockTemplateDetails'; export * from './BlockTemplatePage'; export * from './SchemaTemplateManagerProvider'; diff --git a/packages/core/client/src/schema-templates/schemas/CollectionTitle.tsx b/packages/core/client/src/schema-templates/schemas/CollectionTitle.tsx index 6b92148076..c31586f4fb 100644 --- a/packages/core/client/src/schema-templates/schemas/CollectionTitle.tsx +++ b/packages/core/client/src/schema-templates/schemas/CollectionTitle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useDataSourceManager, useCollectionRecordData } from '../../data-source'; import { useCompile } from '../../schema-component'; diff --git a/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts b/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts index e865f2d7f5..375a79b7b0 100644 --- a/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts +++ b/packages/core/client/src/schema-templates/schemas/uiSchemaTemplates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { useBulkDestroyActionProps, useDestroyActionProps, useUpdateActionProps } from '../../block-provider/hooks'; diff --git a/packages/core/client/src/style/index.ts b/packages/core/client/src/style/index.ts index 18cac32b03..a53134d45e 100644 --- a/packages/core/client/src/style/index.ts +++ b/packages/core/client/src/style/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CreateStylesUtils, createStyles } from 'antd-style'; import { CustomToken } from '../global-theme'; export * from './useToken'; diff --git a/packages/core/client/src/style/useToken.ts b/packages/core/client/src/style/useToken.ts index 79a76a19d2..2eca7b3599 100644 --- a/packages/core/client/src/style/useToken.ts +++ b/packages/core/client/src/style/useToken.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { theme } from 'antd'; import { CustomToken } from '../global-theme'; diff --git a/packages/core/client/src/system-settings/SystemSettingsProvider.tsx b/packages/core/client/src/system-settings/SystemSettingsProvider.tsx index f27a4964e4..b64e158771 100644 --- a/packages/core/client/src/system-settings/SystemSettingsProvider.tsx +++ b/packages/core/client/src/system-settings/SystemSettingsProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } from 'ahooks/es/useRequest/src/types'; import React, { createContext, ReactNode, useContext } from 'react'; import { useRequest } from '../api-client'; diff --git a/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx b/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx index 6362f6f0ed..f9408cb9ec 100644 --- a/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx +++ b/packages/core/client/src/system-settings/SystemSettingsShortcut.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; import { Card, message } from 'antd'; diff --git a/packages/core/client/src/system-settings/index.tsx b/packages/core/client/src/system-settings/index.tsx index 745eacf45c..d33af89e4d 100644 --- a/packages/core/client/src/system-settings/index.tsx +++ b/packages/core/client/src/system-settings/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SystemSettingsProvider'; export * from './SystemSettingsShortcut'; import { Plugin } from '../application/Plugin'; diff --git a/packages/core/client/src/testUtils/index.ts b/packages/core/client/src/testUtils/index.ts index 4f11569e3d..de35b48d39 100644 --- a/packages/core/client/src/testUtils/index.ts +++ b/packages/core/client/src/testUtils/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './mockAPIClient'; diff --git a/packages/core/client/src/testUtils/mockAPIClient.ts b/packages/core/client/src/testUtils/mockAPIClient.ts index bac8f78694..5b77afe4ce 100644 --- a/packages/core/client/src/testUtils/mockAPIClient.ts +++ b/packages/core/client/src/testUtils/mockAPIClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { APIClient } from '../api-client'; class MockAPIClient extends APIClient { diff --git a/packages/core/client/src/user/ChangePassword.tsx b/packages/core/client/src/user/ChangePassword.tsx index c3ac598c68..226d9d9eb2 100644 --- a/packages/core/client/src/user/ChangePassword.tsx +++ b/packages/core/client/src/user/ChangePassword.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; import { MenuProps } from 'antd'; diff --git a/packages/core/client/src/user/CurrentUser.tsx b/packages/core/client/src/user/CurrentUser.tsx index 7ede1d265d..a042ad6185 100644 --- a/packages/core/client/src/user/CurrentUser.tsx +++ b/packages/core/client/src/user/CurrentUser.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UserOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { error } from '@nocobase/utils/client'; diff --git a/packages/core/client/src/user/CurrentUserProvider.tsx b/packages/core/client/src/user/CurrentUserProvider.tsx index 59f6e68fc5..7bcf4855aa 100644 --- a/packages/core/client/src/user/CurrentUserProvider.tsx +++ b/packages/core/client/src/user/CurrentUserProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useContext, useMemo } from 'react'; import { Navigate, useLocation } from 'react-router-dom'; import { useACLRoleContext } from '../acl'; diff --git a/packages/core/client/src/user/CurrentUserSettingsMenuProvider.tsx b/packages/core/client/src/user/CurrentUserSettingsMenuProvider.tsx index bb3e4f6ec5..4a4a41eb4f 100644 --- a/packages/core/client/src/user/CurrentUserSettingsMenuProvider.tsx +++ b/packages/core/client/src/user/CurrentUserSettingsMenuProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { error } from '@nocobase/utils/client'; import { ItemType } from 'antd/es/menu/hooks/useItems'; import React, { createContext, useCallback, useContext, useRef } from 'react'; diff --git a/packages/core/client/src/user/EditProfile.tsx b/packages/core/client/src/user/EditProfile.tsx index 5b3760b93b..9ac1849aec 100644 --- a/packages/core/client/src/user/EditProfile.tsx +++ b/packages/core/client/src/user/EditProfile.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; import { MenuProps } from 'antd'; diff --git a/packages/core/client/src/user/Help.tsx b/packages/core/client/src/user/Help.tsx index 04ffea1edf..48ba1a1569 100644 --- a/packages/core/client/src/user/Help.tsx +++ b/packages/core/client/src/user/Help.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { QuestionCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { Dropdown, Menu, Popover } from 'antd'; diff --git a/packages/core/client/src/user/LanguageSettings.tsx b/packages/core/client/src/user/LanguageSettings.tsx index 8da30ddd71..deb0207fcf 100644 --- a/packages/core/client/src/user/LanguageSettings.tsx +++ b/packages/core/client/src/user/LanguageSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuProps } from 'antd'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/user/SwitchRole.tsx b/packages/core/client/src/user/SwitchRole.tsx index 3a2e19fa6c..3e76dd5ebf 100644 --- a/packages/core/client/src/user/SwitchRole.tsx +++ b/packages/core/client/src/user/SwitchRole.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuProps } from 'antd'; import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/core/client/src/user/VerificationCode.tsx b/packages/core/client/src/user/VerificationCode.tsx index 4a33600d8d..14d6cd41a9 100644 --- a/packages/core/client/src/user/VerificationCode.tsx +++ b/packages/core/client/src/user/VerificationCode.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; import { css } from '@emotion/css'; import { useAPIClient } from '../api-client'; diff --git a/packages/core/client/src/user/__tests__/current-user-settings-menu-provider.test.tsx b/packages/core/client/src/user/__tests__/current-user-settings-menu-provider.test.tsx index 92fd3e51e8..5a1cbdc90f 100644 --- a/packages/core/client/src/user/__tests__/current-user-settings-menu-provider.test.tsx +++ b/packages/core/client/src/user/__tests__/current-user-settings-menu-provider.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render } from '@nocobase/test/client'; import React from 'react'; import { SettingsMenu } from '../CurrentUser'; diff --git a/packages/core/client/src/user/index.ts b/packages/core/client/src/user/index.ts index c058b2b16f..140c34bffc 100644 --- a/packages/core/client/src/user/index.ts +++ b/packages/core/client/src/user/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CurrentUser'; export * from './CurrentUserProvider'; export * from './CurrentUserSettingsMenuProvider'; diff --git a/packages/core/client/src/variables/VariablesProvider.tsx b/packages/core/client/src/variables/VariablesProvider.tsx index f8bb9b9abb..e29e2646e9 100644 --- a/packages/core/client/src/variables/VariablesProvider.tsx +++ b/packages/core/client/src/variables/VariablesProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { raw, untracked } from '@formily/reactive'; import { getValuesByPath } from '@nocobase/utils/client'; import _ from 'lodash'; diff --git a/packages/core/client/src/variables/__tests__/useVariables.test.tsx b/packages/core/client/src/variables/__tests__/useVariables.test.tsx index c56e3277ec..6ae1a65f48 100644 --- a/packages/core/client/src/variables/__tests__/useVariables.test.tsx +++ b/packages/core/client/src/variables/__tests__/useVariables.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaExpressionScopeContext, SchemaOptionsContext } from '@formily/react'; import { act, renderHook, waitFor } from '@nocobase/test/client'; import React from 'react'; diff --git a/packages/core/client/src/variables/__tests__/utils/filterEmptyValues.test.ts b/packages/core/client/src/variables/__tests__/utils/filterEmptyValues.test.ts index 5bec7b0077..15261bb2be 100644 --- a/packages/core/client/src/variables/__tests__/utils/filterEmptyValues.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/filterEmptyValues.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { filterEmptyValues } from '../../utils/filterEmptyValues'; describe('filterEmptyValues', () => { diff --git a/packages/core/client/src/variables/__tests__/utils/getPath.test.ts b/packages/core/client/src/variables/__tests__/utils/getPath.test.ts index 7b93a19b38..423729f9aa 100644 --- a/packages/core/client/src/variables/__tests__/utils/getPath.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/getPath.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getPath } from '../../utils/getPath'; test('{{ $user.name }} => $user.name', () => { diff --git a/packages/core/client/src/variables/__tests__/utils/getVariableName.test.ts b/packages/core/client/src/variables/__tests__/utils/getVariableName.test.ts index 2c60d1828b..a68c827e35 100644 --- a/packages/core/client/src/variables/__tests__/utils/getVariableName.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/getVariableName.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getVariableName } from '../../utils/getVariableName'; test('{{ $user.name }} => $user', () => { diff --git a/packages/core/client/src/variables/__tests__/utils/isVariable.test.ts b/packages/core/client/src/variables/__tests__/utils/isVariable.test.ts index 82522ac83e..bab5e5957d 100644 --- a/packages/core/client/src/variables/__tests__/utils/isVariable.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/isVariable.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isVariable } from '../../utils/isVariable'; it('should return false for a string with only one opening brace', () => { diff --git a/packages/core/client/src/variables/__tests__/utils/transformVariableValue.test.ts b/packages/core/client/src/variables/__tests__/utils/transformVariableValue.test.ts index a8e15d7ec9..fbcd040413 100644 --- a/packages/core/client/src/variables/__tests__/utils/transformVariableValue.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/transformVariableValue.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { transformVariableValue } from '../../utils/transformVariableValue'; describe('transformVariableValue', () => { diff --git a/packages/core/client/src/variables/__tests__/utils/uniq.test.ts b/packages/core/client/src/variables/__tests__/utils/uniq.test.ts index 19473da2b7..c878d52198 100644 --- a/packages/core/client/src/variables/__tests__/utils/uniq.test.ts +++ b/packages/core/client/src/variables/__tests__/utils/uniq.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uniq } from '../../utils/uniq'; describe('uniq', () => { diff --git a/packages/core/client/src/variables/constants.ts b/packages/core/client/src/variables/constants.ts index ed01ddb995..204deadc99 100644 --- a/packages/core/client/src/variables/constants.ts +++ b/packages/core/client/src/variables/constants.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const DEBOUNCE_WAIT = 300; diff --git a/packages/core/client/src/variables/hooks/useBuiltinVariables.ts b/packages/core/client/src/variables/hooks/useBuiltinVariables.ts index a372c46aab..6af6647476 100644 --- a/packages/core/client/src/variables/hooks/useBuiltinVariables.ts +++ b/packages/core/client/src/variables/hooks/useBuiltinVariables.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjs } from '@nocobase/utils/client'; import { useMemo } from 'react'; import { DEFAULT_DATA_SOURCE_KEY } from '../../data-source/data-source/DataSourceManager'; diff --git a/packages/core/client/src/variables/hooks/useContextVariable.ts b/packages/core/client/src/variables/hooks/useContextVariable.ts index a268c0b991..aadc20f57c 100644 --- a/packages/core/client/src/variables/hooks/useContextVariable.ts +++ b/packages/core/client/src/variables/hooks/useContextVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useTableBlockContext } from '../../block-provider'; import { VariableOption } from '../types'; diff --git a/packages/core/client/src/variables/hooks/useLocalVariables.tsx b/packages/core/client/src/variables/hooks/useLocalVariables.tsx index ff90d488c4..8f8ab3f024 100644 --- a/packages/core/client/src/variables/hooks/useLocalVariables.tsx +++ b/packages/core/client/src/variables/hooks/useLocalVariables.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form } from '@formily/core'; import { useMemo } from 'react'; import { useCollection_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/variables/hooks/useVariables.ts b/packages/core/client/src/variables/hooks/useVariables.ts index a9b30c2fd2..c7104b63e4 100644 --- a/packages/core/client/src/variables/hooks/useVariables.ts +++ b/packages/core/client/src/variables/hooks/useVariables.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useContext } from 'react'; import { VariablesContext } from '../VariablesProvider'; diff --git a/packages/core/client/src/variables/index.ts b/packages/core/client/src/variables/index.ts index fd180254f2..297a6fb680 100644 --- a/packages/core/client/src/variables/index.ts +++ b/packages/core/client/src/variables/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as VariablesProvider, VariablesContext } from './VariablesProvider'; export { default as useBuiltinVariables } from './hooks/useBuiltinVariables'; export { default as useContextVariable } from './hooks/useContextVariable'; diff --git a/packages/core/client/src/variables/types.ts b/packages/core/client/src/variables/types.ts index efa9ceb969..b3ddf23ad2 100644 --- a/packages/core/client/src/variables/types.ts +++ b/packages/core/client/src/variables/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Dispatch, SetStateAction } from 'react'; import { CollectionFieldOptions_deprecated } from '../collection-manager'; diff --git a/packages/core/client/src/variables/utils/filterEmptyValues.ts b/packages/core/client/src/variables/utils/filterEmptyValues.ts index 54455cc25c..d087e9cd57 100644 --- a/packages/core/client/src/variables/utils/filterEmptyValues.ts +++ b/packages/core/client/src/variables/utils/filterEmptyValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const filterEmptyValues = (value: any) => { if (!Array.isArray(value)) { return value; diff --git a/packages/core/client/src/variables/utils/getAction.tsx b/packages/core/client/src/variables/utils/getAction.tsx index dfbdb6556a..7910971d2b 100644 --- a/packages/core/client/src/variables/utils/getAction.tsx +++ b/packages/core/client/src/variables/utils/getAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const TYPE_TO_ACTION = { hasMany: 'list?pageSize=9999', belongsTo: 'get', diff --git a/packages/core/client/src/variables/utils/getPath.tsx b/packages/core/client/src/variables/utils/getPath.tsx index adba144cc0..0282647608 100644 --- a/packages/core/client/src/variables/utils/getPath.tsx +++ b/packages/core/client/src/variables/utils/getPath.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { REGEX_OF_VARIABLE } from './isVariable'; /** diff --git a/packages/core/client/src/variables/utils/getVariableName.tsx b/packages/core/client/src/variables/utils/getVariableName.tsx index 6c9562f2e6..ed53fd2f0b 100644 --- a/packages/core/client/src/variables/utils/getVariableName.tsx +++ b/packages/core/client/src/variables/utils/getVariableName.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import { getPath } from './getPath'; diff --git a/packages/core/client/src/variables/utils/hasRequested.tsx b/packages/core/client/src/variables/utils/hasRequested.tsx index 4b2ff3694f..99aa10f391 100644 --- a/packages/core/client/src/variables/utils/hasRequested.tsx +++ b/packages/core/client/src/variables/utils/hasRequested.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const requested = {}; /** diff --git a/packages/core/client/src/variables/utils/isVariable.tsx b/packages/core/client/src/variables/utils/isVariable.tsx index f21cb75134..380229bd21 100644 --- a/packages/core/client/src/variables/utils/isVariable.tsx +++ b/packages/core/client/src/variables/utils/isVariable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const REGEX_OF_VARIABLE = /\{\{\s*([a-zA-Z0-9_$-.]+?)\s*\}\}/g; export const isVariable = (str: unknown) => { diff --git a/packages/core/client/src/variables/utils/transformVariableValue.ts b/packages/core/client/src/variables/utils/transformVariableValue.ts index 2d3d157eb6..2e9840c33d 100644 --- a/packages/core/client/src/variables/utils/transformVariableValue.ts +++ b/packages/core/client/src/variables/utils/transformVariableValue.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import { CollectionFieldOptions_deprecated } from '../../collection-manager'; diff --git a/packages/core/client/src/variables/utils/uniq.ts b/packages/core/client/src/variables/utils/uniq.ts index 2232209d3f..db5bccbaf6 100644 --- a/packages/core/client/src/variables/utils/uniq.ts +++ b/packages/core/client/src/variables/utils/uniq.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; /** diff --git a/packages/core/create-nocobase-app/src/cli.js b/packages/core/create-nocobase-app/src/cli.js index a7656786c1..09fd152ddc 100644 --- a/packages/core/create-nocobase-app/src/cli.js +++ b/packages/core/create-nocobase-app/src/cli.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const { resolve } = require('path'); const { Command } = require('commander'); diff --git a/packages/core/create-nocobase-app/src/generator.js b/packages/core/create-nocobase-app/src/generator.js index c132a174a5..6506c39611 100644 --- a/packages/core/create-nocobase-app/src/generator.js +++ b/packages/core/create-nocobase-app/src/generator.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const chalk = require('chalk'); const crypto = require('crypto'); const { existsSync } = require('fs'); diff --git a/packages/core/create-nocobase-app/src/index.js b/packages/core/create-nocobase-app/src/index.js index e69de29bb2..d3436f53a5 100644 --- a/packages/core/create-nocobase-app/src/index.js +++ b/packages/core/create-nocobase-app/src/index.js @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/create-nocobase-app/src/util.js b/packages/core/create-nocobase-app/src/util.js index 91569a3a04..75cece26c5 100644 --- a/packages/core/create-nocobase-app/src/util.js +++ b/packages/core/create-nocobase-app/src/util.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const fs = require('fs'); const tar = require('tar'); const axios = require('axios'); diff --git a/packages/core/data-source-manager/src/__tests__/actions.test.ts b/packages/core/data-source-manager/src/__tests__/actions.test.ts index 913adaedfc..caf6fa0de9 100644 --- a/packages/core/data-source-manager/src/__tests__/actions.test.ts +++ b/packages/core/data-source-manager/src/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { list } from '../default-actions/list'; import { vi } from 'vitest'; import { createMoveAction } from '../default-actions/move'; diff --git a/packages/core/data-source-manager/src/__tests__/collection-manager.test.ts b/packages/core/data-source-manager/src/__tests__/collection-manager.test.ts index f8c90ee952..6e57e01454 100644 --- a/packages/core/data-source-manager/src/__tests__/collection-manager.test.ts +++ b/packages/core/data-source-manager/src/__tests__/collection-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionManager } from '@nocobase/data-source-manager'; import { Repository } from '../repository'; diff --git a/packages/core/data-source-manager/src/__tests__/data-source-factory.test.ts b/packages/core/data-source-manager/src/__tests__/data-source-factory.test.ts index 86fdef37bf..754f0325fe 100644 --- a/packages/core/data-source-manager/src/__tests__/data-source-factory.test.ts +++ b/packages/core/data-source-manager/src/__tests__/data-source-factory.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer } from '@nocobase/test'; import { DataSource } from '../data-source'; import { ICollectionManager } from '../types'; diff --git a/packages/core/data-source-manager/src/__tests__/data-source-manager.test.ts b/packages/core/data-source-manager/src/__tests__/data-source-manager.test.ts index 01628880ed..8170bd3a2f 100644 --- a/packages/core/data-source-manager/src/__tests__/data-source-manager.test.ts +++ b/packages/core/data-source-manager/src/__tests__/data-source-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, mockDatabase, supertest } from '@nocobase/test'; import { SequelizeDataSource } from '../sequelize-data-source'; import { vi } from 'vitest'; diff --git a/packages/core/data-source-manager/src/__tests__/koa.test.ts b/packages/core/data-source-manager/src/__tests__/koa.test.ts index 54193b29e0..3c42dd8aed 100644 --- a/packages/core/data-source-manager/src/__tests__/koa.test.ts +++ b/packages/core/data-source-manager/src/__tests__/koa.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/test'; import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; diff --git a/packages/core/data-source-manager/src/__tests__/sequelize-collection-manager.test.ts b/packages/core/data-source-manager/src/__tests__/sequelize-collection-manager.test.ts index eda331ea13..fd806574bd 100644 --- a/packages/core/data-source-manager/src/__tests__/sequelize-collection-manager.test.ts +++ b/packages/core/data-source-manager/src/__tests__/sequelize-collection-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SequelizeCollectionManager } from '@nocobase/data-source-manager'; describe('sequelize collection manager', () => { diff --git a/packages/core/data-source-manager/src/__tests__/utils.test.ts b/packages/core/data-source-manager/src/__tests__/utils.test.ts index 2444956d95..0f981f681a 100644 --- a/packages/core/data-source-manager/src/__tests__/utils.test.ts +++ b/packages/core/data-source-manager/src/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { joinCollectionName, parseCollectionName } from '@nocobase/data-source-manager'; describe('utils', () => { diff --git a/packages/core/data-source-manager/src/collection-field.ts b/packages/core/data-source-manager/src/collection-field.ts index dab466a8dd..889b13cf62 100644 --- a/packages/core/data-source-manager/src/collection-field.ts +++ b/packages/core/data-source-manager/src/collection-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FieldOptions, IField } from './types'; export class CollectionField implements IField { diff --git a/packages/core/data-source-manager/src/collection-manager.ts b/packages/core/data-source-manager/src/collection-manager.ts index 350bd1932b..640031787a 100644 --- a/packages/core/data-source-manager/src/collection-manager.ts +++ b/packages/core/data-source-manager/src/collection-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from './collection'; import { CollectionOptions, ICollection, ICollectionManager, IRepository, MergeOptions } from './types'; diff --git a/packages/core/data-source-manager/src/collection.ts b/packages/core/data-source-manager/src/collection.ts index 1879b2b1f1..01c6615283 100644 --- a/packages/core/data-source-manager/src/collection.ts +++ b/packages/core/data-source-manager/src/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions, ICollection, ICollectionManager, IField, IRepository } from './types'; import { default as lodash } from 'lodash'; import merge from 'deepmerge'; diff --git a/packages/core/data-source-manager/src/data-source-factory.ts b/packages/core/data-source-manager/src/data-source-factory.ts index ec1043d9ee..8a451a6067 100644 --- a/packages/core/data-source-manager/src/data-source-factory.ts +++ b/packages/core/data-source-manager/src/data-source-factory.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataSource } from './data-source'; export class DataSourceFactory { diff --git a/packages/core/data-source-manager/src/data-source-manager.ts b/packages/core/data-source-manager/src/data-source-manager.ts index 11a34d8f8c..01fbe0abb0 100644 --- a/packages/core/data-source-manager/src/data-source-manager.ts +++ b/packages/core/data-source-manager/src/data-source-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ToposortOptions } from '@nocobase/utils'; import { DataSource } from './data-source'; import { DataSourceFactory } from './data-source-factory'; diff --git a/packages/core/data-source-manager/src/data-source.ts b/packages/core/data-source-manager/src/data-source.ts index 672ba3f8ba..bc5d12c5a7 100644 --- a/packages/core/data-source-manager/src/data-source.ts +++ b/packages/core/data-source-manager/src/data-source.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { getNameByParams, parseRequest, ResourceManager } from '@nocobase/resourcer'; import EventEmitter from 'events'; diff --git a/packages/core/data-source-manager/src/default-actions/list.ts b/packages/core/data-source-manager/src/default-actions/list.ts index fa424cb47e..afe0bda75f 100644 --- a/packages/core/data-source-manager/src/default-actions/list.ts +++ b/packages/core/data-source-manager/src/default-actions/list.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { assign } from '@nocobase/utils'; import { pageArgsToLimitArgs } from './utils'; import { Context } from '@nocobase/actions'; diff --git a/packages/core/data-source-manager/src/default-actions/move.ts b/packages/core/data-source-manager/src/default-actions/move.ts index d68619b62b..f8695abd70 100644 --- a/packages/core/data-source-manager/src/default-actions/move.ts +++ b/packages/core/data-source-manager/src/default-actions/move.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; export function createMoveAction(databaseMoveAction) { diff --git a/packages/core/data-source-manager/src/default-actions/proxy-to-repository.ts b/packages/core/data-source-manager/src/default-actions/proxy-to-repository.ts index f0f4d11e09..eee1b6392e 100644 --- a/packages/core/data-source-manager/src/default-actions/proxy-to-repository.ts +++ b/packages/core/data-source-manager/src/default-actions/proxy-to-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { DataSource } from '../data-source'; import { Context } from '@nocobase/actions'; diff --git a/packages/core/data-source-manager/src/default-actions/utils.ts b/packages/core/data-source-manager/src/default-actions/utils.ts index 80a58c7063..e58a18d357 100644 --- a/packages/core/data-source-manager/src/default-actions/utils.ts +++ b/packages/core/data-source-manager/src/default-actions/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function pageArgsToLimitArgs( page: number, pageSize: number, diff --git a/packages/core/data-source-manager/src/index.ts b/packages/core/data-source-manager/src/index.ts index d73ffd6c59..0b9abf563a 100644 --- a/packages/core/data-source-manager/src/index.ts +++ b/packages/core/data-source-manager/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './collection-manager'; export * from './data-source'; export * from './data-source-manager'; diff --git a/packages/core/data-source-manager/src/load-default-actions.ts b/packages/core/data-source-manager/src/load-default-actions.ts index aa4f67d743..a2d07dc1af 100644 --- a/packages/core/data-source-manager/src/load-default-actions.ts +++ b/packages/core/data-source-manager/src/load-default-actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { list } from './default-actions/list'; import { createMoveAction } from './default-actions/move'; import { proxyToRepository } from './default-actions/proxy-to-repository'; diff --git a/packages/core/data-source-manager/src/repository.ts b/packages/core/data-source-manager/src/repository.ts index 154fde43ce..62911cc37f 100644 --- a/packages/core/data-source-manager/src/repository.ts +++ b/packages/core/data-source-manager/src/repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { IModel, IRepository } from './types'; diff --git a/packages/core/data-source-manager/src/sequelize-collection-manager.ts b/packages/core/data-source-manager/src/sequelize-collection-manager.ts index bb3382c1be..915c0afc9f 100644 --- a/packages/core/data-source-manager/src/sequelize-collection-manager.ts +++ b/packages/core/data-source-manager/src/sequelize-collection-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Database from '@nocobase/database'; diff --git a/packages/core/data-source-manager/src/sequelize-data-source.ts b/packages/core/data-source-manager/src/sequelize-data-source.ts index 8d518e1a88..52375ec1a4 100644 --- a/packages/core/data-source-manager/src/sequelize-data-source.ts +++ b/packages/core/data-source-manager/src/sequelize-data-source.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataSource } from './data-source'; import { SequelizeCollectionManager } from './sequelize-collection-manager'; diff --git a/packages/core/data-source-manager/src/types.ts b/packages/core/data-source-manager/src/types.ts index 0be4e53e84..567576a454 100644 --- a/packages/core/data-source-manager/src/types.ts +++ b/packages/core/data-source-manager/src/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export type CollectionOptions = { name: string; repository?: string; diff --git a/packages/core/data-source-manager/src/utils.ts b/packages/core/data-source-manager/src/utils.ts index 3e0906f579..247211c1fe 100644 --- a/packages/core/data-source-manager/src/utils.ts +++ b/packages/core/data-source-manager/src/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function parseCollectionName(collection: string) { if (!collection) { return []; diff --git a/packages/core/database/src/__tests__/adjacency-list-repository.test.ts b/packages/core/database/src/__tests__/adjacency-list-repository.test.ts index 4f9715f12f..3c6d4ab951 100644 --- a/packages/core/database/src/__tests__/adjacency-list-repository.test.ts +++ b/packages/core/database/src/__tests__/adjacency-list-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from './'; import Database from '../database'; diff --git a/packages/core/database/src/__tests__/associations/references.test.ts b/packages/core/database/src/__tests__/associations/references.test.ts index 7fe4baabca..0cd351b47e 100644 --- a/packages/core/database/src/__tests__/associations/references.test.ts +++ b/packages/core/database/src/__tests__/associations/references.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../index'; describe('association references', () => { diff --git a/packages/core/database/src/__tests__/associations/target-key.test.ts b/packages/core/database/src/__tests__/associations/target-key.test.ts index 70e16f6956..fd0c5d0bc3 100644 --- a/packages/core/database/src/__tests__/associations/target-key.test.ts +++ b/packages/core/database/src/__tests__/associations/target-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('association target key', async () => { diff --git a/packages/core/database/src/__tests__/bigint.test.ts b/packages/core/database/src/__tests__/bigint.test.ts index 74f390ee43..ecdfe71911 100644 --- a/packages/core/database/src/__tests__/bigint.test.ts +++ b/packages/core/database/src/__tests__/bigint.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { mockDatabase } from './index'; diff --git a/packages/core/database/src/__tests__/collection-factory.test.ts b/packages/core/database/src/__tests__/collection-factory.test.ts index 97f0c04c9e..fb6b2cb6b4 100644 --- a/packages/core/database/src/__tests__/collection-factory.test.ts +++ b/packages/core/database/src/__tests__/collection-factory.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import Database from '../database'; import { mockDatabase } from './index'; diff --git a/packages/core/database/src/__tests__/collection-group-manager.test.ts b/packages/core/database/src/__tests__/collection-group-manager.test.ts index 2e482d6055..4530f8f9ff 100644 --- a/packages/core/database/src/__tests__/collection-group-manager.test.ts +++ b/packages/core/database/src/__tests__/collection-group-manager.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionGroupManager } from '../collection-group-manager'; describe('collection group manager', () => { diff --git a/packages/core/database/src/__tests__/collection-importer.test.ts b/packages/core/database/src/__tests__/collection-importer.test.ts index e9d3c63994..429dcdac88 100644 --- a/packages/core/database/src/__tests__/collection-importer.test.ts +++ b/packages/core/database/src/__tests__/collection-importer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ImporterReader } from '../collection-importer'; import * as path from 'path'; import { extend } from '../database'; diff --git a/packages/core/database/src/__tests__/collection.sortable.test.ts b/packages/core/database/src/__tests__/collection.sortable.test.ts index 4ee1ad52b7..88feeff6fd 100644 --- a/packages/core/database/src/__tests__/collection.sortable.test.ts +++ b/packages/core/database/src/__tests__/collection.sortable.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from './index'; import { Database } from '../database'; diff --git a/packages/core/database/src/__tests__/collection.test.ts b/packages/core/database/src/__tests__/collection.test.ts index be4aa7ea65..0da1bf3a78 100644 --- a/packages/core/database/src/__tests__/collection.test.ts +++ b/packages/core/database/src/__tests__/collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../collection'; import { Database } from '../database'; import { mockDatabase } from './index'; diff --git a/packages/core/database/src/__tests__/database.import.test.ts b/packages/core/database/src/__tests__/database.import.test.ts index a51fc5e861..c008e46710 100644 --- a/packages/core/database/src/__tests__/database.import.test.ts +++ b/packages/core/database/src/__tests__/database.import.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from './index'; import path from 'path'; import Database from '../database'; diff --git a/packages/core/database/src/__tests__/database.test.ts b/packages/core/database/src/__tests__/database.test.ts index e9d64feab6..1d04ee4dc6 100644 --- a/packages/core/database/src/__tests__/database.test.ts +++ b/packages/core/database/src/__tests__/database.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import path from 'path'; import { Database, Model } from '..'; diff --git a/packages/core/database/src/__tests__/eager-loading/eager-loading-tree.test.ts b/packages/core/database/src/__tests__/eager-loading/eager-loading-tree.test.ts index 79267a54c2..6f5ff48d58 100644 --- a/packages/core/database/src/__tests__/eager-loading/eager-loading-tree.test.ts +++ b/packages/core/database/src/__tests__/eager-loading/eager-loading-tree.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { mockDatabase } from '@nocobase/database'; import { EagerLoadingTree } from '../../eager-loading/eager-loading-tree'; diff --git a/packages/core/database/src/__tests__/field-options/hidden.test.ts b/packages/core/database/src/__tests__/field-options/hidden.test.ts index 33d5eb5638..1be54af80b 100644 --- a/packages/core/database/src/__tests__/field-options/hidden.test.ts +++ b/packages/core/database/src/__tests__/field-options/hidden.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; import { Model } from '../../model'; diff --git a/packages/core/database/src/__tests__/field-options/inddex.test.ts b/packages/core/database/src/__tests__/field-options/inddex.test.ts index 95b25b5d5f..4793f1699c 100644 --- a/packages/core/database/src/__tests__/field-options/inddex.test.ts +++ b/packages/core/database/src/__tests__/field-options/inddex.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; import { md5 } from '../../utils'; diff --git a/packages/core/database/src/__tests__/field-options/sort-by.test.ts b/packages/core/database/src/__tests__/field-options/sort-by.test.ts index 62ed4a7248..7cbd92b0b4 100644 --- a/packages/core/database/src/__tests__/field-options/sort-by.test.ts +++ b/packages/core/database/src/__tests__/field-options/sort-by.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/test'; import { BelongsToManyRepository, Database } from '../../index'; diff --git a/packages/core/database/src/__tests__/field-repository/array-field-repository.test.ts b/packages/core/database/src/__tests__/field-repository/array-field-repository.test.ts index 0acac517f3..678f3289d4 100644 --- a/packages/core/database/src/__tests__/field-repository/array-field-repository.test.ts +++ b/packages/core/database/src/__tests__/field-repository/array-field-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import Database from '../../database'; import { ArrayFieldRepository } from '../../field-repository/array-field-repository'; diff --git a/packages/core/database/src/__tests__/fields/array.test.ts b/packages/core/database/src/__tests__/fields/array.test.ts index f856947a79..88ac7bf3bd 100644 --- a/packages/core/database/src/__tests__/fields/array.test.ts +++ b/packages/core/database/src/__tests__/fields/array.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/fields/belongs-to-field.test.ts b/packages/core/database/src/__tests__/fields/belongs-to-field.test.ts index dedcce0137..3a29ec68a3 100644 --- a/packages/core/database/src/__tests__/fields/belongs-to-field.test.ts +++ b/packages/core/database/src/__tests__/fields/belongs-to-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../'; import { IdentifierError } from '../../errors/identifier-error'; diff --git a/packages/core/database/src/__tests__/fields/belongs-to-many-field.test.ts b/packages/core/database/src/__tests__/fields/belongs-to-many-field.test.ts index 2570a0e6ac..d21e923b3b 100644 --- a/packages/core/database/src/__tests__/fields/belongs-to-many-field.test.ts +++ b/packages/core/database/src/__tests__/fields/belongs-to-many-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; import { IdentifierError } from '../../errors/identifier-error'; diff --git a/packages/core/database/src/__tests__/fields/context-field.test.ts b/packages/core/database/src/__tests__/fields/context-field.test.ts index c29d1b0ec0..392dc9ec0b 100644 --- a/packages/core/database/src/__tests__/fields/context-field.test.ts +++ b/packages/core/database/src/__tests__/fields/context-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { mockDatabase } from '../'; import { Database } from '../../'; diff --git a/packages/core/database/src/__tests__/fields/date.test.ts b/packages/core/database/src/__tests__/fields/date.test.ts index f74088e6f1..e1a2ff189e 100644 --- a/packages/core/database/src/__tests__/fields/date.test.ts +++ b/packages/core/database/src/__tests__/fields/date.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; import { Repository } from '../../repository'; diff --git a/packages/core/database/src/__tests__/fields/has-many-field.test.ts b/packages/core/database/src/__tests__/fields/has-many-field.test.ts index ae20c69eb1..51b3d25ba2 100644 --- a/packages/core/database/src/__tests__/fields/has-many-field.test.ts +++ b/packages/core/database/src/__tests__/fields/has-many-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../'; import { IdentifierError } from '../../errors/identifier-error'; diff --git a/packages/core/database/src/__tests__/fields/has-one-field.test.ts b/packages/core/database/src/__tests__/fields/has-one-field.test.ts index e964ed1f45..94b92dd246 100644 --- a/packages/core/database/src/__tests__/fields/has-one-field.test.ts +++ b/packages/core/database/src/__tests__/fields/has-one-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../'; import { IdentifierError } from '../../errors/identifier-error'; diff --git a/packages/core/database/src/__tests__/fields/nanoid-field.test.ts b/packages/core/database/src/__tests__/fields/nanoid-field.test.ts index bea56e16a6..ee1f1b9859 100644 --- a/packages/core/database/src/__tests__/fields/nanoid-field.test.ts +++ b/packages/core/database/src/__tests__/fields/nanoid-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/fields/password-field.test.ts b/packages/core/database/src/__tests__/fields/password-field.test.ts index 6f6a093883..9b25339793 100644 --- a/packages/core/database/src/__tests__/fields/password-field.test.ts +++ b/packages/core/database/src/__tests__/fields/password-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database, PasswordField } from '../../'; diff --git a/packages/core/database/src/__tests__/fields/set.test.ts b/packages/core/database/src/__tests__/fields/set.test.ts index 7699647a8d..2ef56022ce 100644 --- a/packages/core/database/src/__tests__/fields/set.test.ts +++ b/packages/core/database/src/__tests__/fields/set.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/fields/sort-field.test.ts b/packages/core/database/src/__tests__/fields/sort-field.test.ts index dbf0efffc2..f769d070d6 100644 --- a/packages/core/database/src/__tests__/fields/sort-field.test.ts +++ b/packages/core/database/src/__tests__/fields/sort-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../'; import { SortField } from '../../fields'; diff --git a/packages/core/database/src/__tests__/fields/string-field.test.ts b/packages/core/database/src/__tests__/fields/string-field.test.ts index 3ea7a1524a..7d0deba113 100644 --- a/packages/core/database/src/__tests__/fields/string-field.test.ts +++ b/packages/core/database/src/__tests__/fields/string-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../../database'; import { mockDatabase } from '../'; diff --git a/packages/core/database/src/__tests__/fields/text-field.test.ts b/packages/core/database/src/__tests__/fields/text-field.test.ts index 24956dadc0..1708a1bfc1 100644 --- a/packages/core/database/src/__tests__/fields/text-field.test.ts +++ b/packages/core/database/src/__tests__/fields/text-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/fields/uuid-field.test.ts b/packages/core/database/src/__tests__/fields/uuid-field.test.ts index 34f59d8a46..860b13d7cd 100644 --- a/packages/core/database/src/__tests__/fields/uuid-field.test.ts +++ b/packages/core/database/src/__tests__/fields/uuid-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/filter-match.test.ts b/packages/core/database/src/__tests__/filter-match.test.ts index 9e4ddcde88..3d2097cc34 100644 --- a/packages/core/database/src/__tests__/filter-match.test.ts +++ b/packages/core/database/src/__tests__/filter-match.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '..'; import { filterMatch } from '../filter-match'; import { mockDatabase } from './index'; diff --git a/packages/core/database/src/__tests__/filter-parser.test.ts b/packages/core/database/src/__tests__/filter-parser.test.ts index 4db06404a2..3600e42610 100644 --- a/packages/core/database/src/__tests__/filter-parser.test.ts +++ b/packages/core/database/src/__tests__/filter-parser.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; import { Database } from '../database'; import FilterParser from '../filter-parser'; diff --git a/packages/core/database/src/__tests__/filter.test.ts b/packages/core/database/src/__tests__/filter.test.ts index 406b84dd8a..cc81a33d20 100644 --- a/packages/core/database/src/__tests__/filter.test.ts +++ b/packages/core/database/src/__tests__/filter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; import { mockDatabase } from '../mock-database'; diff --git a/packages/core/database/src/__tests__/fixtures/c0/a.ts b/packages/core/database/src/__tests__/fixtures/c0/a.ts index 668dd4fc25..87a759c6ee 100644 --- a/packages/core/database/src/__tests__/fixtures/c0/a.ts +++ b/packages/core/database/src/__tests__/fixtures/c0/a.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/c1/b.ts b/packages/core/database/src/__tests__/fixtures/c1/b.ts index fb88fac433..d9e5365f9e 100644 --- a/packages/core/database/src/__tests__/fixtures/c1/b.ts +++ b/packages/core/database/src/__tests__/fixtures/c1/b.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/c2/a.ts b/packages/core/database/src/__tests__/fixtures/c2/a.ts index fdd6192025..6ad777b8ff 100644 --- a/packages/core/database/src/__tests__/fixtures/c2/a.ts +++ b/packages/core/database/src/__tests__/fixtures/c2/a.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default { diff --git a/packages/core/database/src/__tests__/fixtures/collections/delay-extend.ts b/packages/core/database/src/__tests__/fixtures/collections/delay-extend.ts index 7d53adcff3..29aa8ffb80 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/delay-extend.ts +++ b/packages/core/database/src/__tests__/fixtures/collections/delay-extend.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/collections/delay-extend2.ts b/packages/core/database/src/__tests__/fixtures/collections/delay-extend2.ts index 97d36b26d1..9d07a31e05 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/delay-extend2.ts +++ b/packages/core/database/src/__tests__/fixtures/collections/delay-extend2.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/collections/extend.ts b/packages/core/database/src/__tests__/fixtures/collections/extend.ts index 19f9761702..fcb3ccfe26 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/extend.ts +++ b/packages/core/database/src/__tests__/fixtures/collections/extend.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/collections/extend2.ts b/packages/core/database/src/__tests__/fixtures/collections/extend2.ts index 35f8dc0508..430428e862 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/extend2.ts +++ b/packages/core/database/src/__tests__/fixtures/collections/extend2.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extend } from '../../../database'; export default extend({ diff --git a/packages/core/database/src/__tests__/fixtures/collections/posts.ts b/packages/core/database/src/__tests__/fixtures/collections/posts.ts index eb99a49203..779bc4af83 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/posts.ts +++ b/packages/core/database/src/__tests__/fixtures/collections/posts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'posts', fields: [{ type: 'string', name: 'title' }], diff --git a/packages/core/database/src/__tests__/fixtures/collections/tags.js b/packages/core/database/src/__tests__/fixtures/collections/tags.js index c9e4cef082..b882fbe9b5 100644 --- a/packages/core/database/src/__tests__/fixtures/collections/tags.js +++ b/packages/core/database/src/__tests__/fixtures/collections/tags.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + module.exports = { name: 'tags', fields: [{ type: 'string', name: 'name' }], diff --git a/packages/core/database/src/__tests__/fixtures/migrations/m1.ts b/packages/core/database/src/__tests__/fixtures/migrations/m1.ts index 7f20dfeb8f..0d848e5edd 100644 --- a/packages/core/database/src/__tests__/fixtures/migrations/m1.ts +++ b/packages/core/database/src/__tests__/fixtures/migrations/m1.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/database'; export default class extends Migration { diff --git a/packages/core/database/src/__tests__/fixtures/migrations/m2.ts b/packages/core/database/src/__tests__/fixtures/migrations/m2.ts index 7f20dfeb8f..0d848e5edd 100644 --- a/packages/core/database/src/__tests__/fixtures/migrations/m2.ts +++ b/packages/core/database/src/__tests__/fixtures/migrations/m2.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/database'; export default class extends Migration { diff --git a/packages/core/database/src/__tests__/group.test.ts b/packages/core/database/src/__tests__/group.test.ts index 5d5f4d0ad6..0ef30e22ca 100644 --- a/packages/core/database/src/__tests__/group.test.ts +++ b/packages/core/database/src/__tests__/group.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; import sequelize from 'sequelize'; diff --git a/packages/core/database/src/__tests__/hooks/afterCreateWithAssociations.test.ts b/packages/core/database/src/__tests__/hooks/afterCreateWithAssociations.test.ts index 9f7c7d51d7..d5fa6f0c44 100644 --- a/packages/core/database/src/__tests__/hooks/afterCreateWithAssociations.test.ts +++ b/packages/core/database/src/__tests__/hooks/afterCreateWithAssociations.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../'; import { Database } from '../../database'; diff --git a/packages/core/database/src/__tests__/index.ts b/packages/core/database/src/__tests__/index.ts index c78cfa57d5..a86d553f70 100644 --- a/packages/core/database/src/__tests__/index.ts +++ b/packages/core/database/src/__tests__/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { mockDatabase } from '../mock-database'; diff --git a/packages/core/database/src/__tests__/inhertits/collection-inherits-sync.test.ts b/packages/core/database/src/__tests__/inhertits/collection-inherits-sync.test.ts index 5462884225..85f40d3889 100644 --- a/packages/core/database/src/__tests__/inhertits/collection-inherits-sync.test.ts +++ b/packages/core/database/src/__tests__/inhertits/collection-inherits-sync.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/inhertits/collection-inherits.test.ts b/packages/core/database/src/__tests__/inhertits/collection-inherits.test.ts index d9e4c8ed04..0dcf431678 100644 --- a/packages/core/database/src/__tests__/inhertits/collection-inherits.test.ts +++ b/packages/core/database/src/__tests__/inhertits/collection-inherits.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyRepository } from '@nocobase/database'; import Database from '../../database'; import { InheritedCollection } from '../../inherited-collection'; diff --git a/packages/core/database/src/__tests__/inhertits/inherited-map.test.ts b/packages/core/database/src/__tests__/inhertits/inherited-map.test.ts index 873c934e8a..b8f795ea47 100644 --- a/packages/core/database/src/__tests__/inhertits/inherited-map.test.ts +++ b/packages/core/database/src/__tests__/inhertits/inherited-map.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import InheritanceMap from '../../inherited-map'; describe('InheritedMap', () => { diff --git a/packages/core/database/src/__tests__/magic-attribute-model.test.ts b/packages/core/database/src/__tests__/magic-attribute-model.test.ts index 6a92e7d558..78592ed796 100644 --- a/packages/core/database/src/__tests__/magic-attribute-model.test.ts +++ b/packages/core/database/src/__tests__/magic-attribute-model.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '.'; import { Database, MagicAttributeModel } from '..'; diff --git a/packages/core/database/src/__tests__/migrator.test.ts b/packages/core/database/src/__tests__/migrator.test.ts index 8768804c20..8deb9069b7 100644 --- a/packages/core/database/src/__tests__/migrator.test.ts +++ b/packages/core/database/src/__tests__/migrator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Database, Migration, mockDatabase } from '@nocobase/database'; import { resolve } from 'path'; diff --git a/packages/core/database/src/__tests__/model-hook.test.ts b/packages/core/database/src/__tests__/model-hook.test.ts index f643d36f20..4706064f69 100644 --- a/packages/core/database/src/__tests__/model-hook.test.ts +++ b/packages/core/database/src/__tests__/model-hook.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '..'; import { mockDatabase } from '.'; diff --git a/packages/core/database/src/__tests__/model.changedWithAssociations.test.ts b/packages/core/database/src/__tests__/model.changedWithAssociations.test.ts index 8a62e5a7e5..fc2fb1ce97 100644 --- a/packages/core/database/src/__tests__/model.changedWithAssociations.test.ts +++ b/packages/core/database/src/__tests__/model.changedWithAssociations.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; import { mockDatabase } from '../mock-database'; diff --git a/packages/core/database/src/__tests__/model.test.ts b/packages/core/database/src/__tests__/model.test.ts index 83f0428c96..9cd4531ec8 100644 --- a/packages/core/database/src/__tests__/model.test.ts +++ b/packages/core/database/src/__tests__/model.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('model', () => { diff --git a/packages/core/database/src/__tests__/non-id-primary-key.test.ts b/packages/core/database/src/__tests__/non-id-primary-key.test.ts index 2cda6a508a..db25afc777 100644 --- a/packages/core/database/src/__tests__/non-id-primary-key.test.ts +++ b/packages/core/database/src/__tests__/non-id-primary-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('non-id primary key', () => { diff --git a/packages/core/database/src/__tests__/operator/array-operator.test.ts b/packages/core/database/src/__tests__/operator/array-operator.test.ts index 0ffbefa62a..537b533969 100644 --- a/packages/core/database/src/__tests__/operator/array-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/array-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/operator/association-operator.test.ts b/packages/core/database/src/__tests__/operator/association-operator.test.ts index 8c5d702989..4b44b597e8 100644 --- a/packages/core/database/src/__tests__/operator/association-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/association-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/operator/boolean-operator.test.ts b/packages/core/database/src/__tests__/operator/boolean-operator.test.ts index 1718304f8c..07352eb80b 100644 --- a/packages/core/database/src/__tests__/operator/boolean-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/boolean-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection, mockDatabase } from '@nocobase/database'; describe('boolean operator', () => { diff --git a/packages/core/database/src/__tests__/operator/date-operator.test.ts b/packages/core/database/src/__tests__/operator/date-operator.test.ts index 537e25978a..f2726bd438 100644 --- a/packages/core/database/src/__tests__/operator/date-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/date-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { Repository } from '../../repository'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/operator/empty-operator.test.ts b/packages/core/database/src/__tests__/operator/empty-operator.test.ts index f48c628761..101f885e42 100644 --- a/packages/core/database/src/__tests__/operator/empty-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/empty-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/operator/eq.test.ts b/packages/core/database/src/__tests__/operator/eq.test.ts index 006be28fbd..d4435ec82c 100644 --- a/packages/core/database/src/__tests__/operator/eq.test.ts +++ b/packages/core/database/src/__tests__/operator/eq.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/operator/ne.test.ts b/packages/core/database/src/__tests__/operator/ne.test.ts index 7e3ae7a08a..0b9114d519 100644 --- a/packages/core/database/src/__tests__/operator/ne.test.ts +++ b/packages/core/database/src/__tests__/operator/ne.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/operator/notIn.test.ts b/packages/core/database/src/__tests__/operator/notIn.test.ts index 04bdc6af4f..65ba6f28fc 100644 --- a/packages/core/database/src/__tests__/operator/notIn.test.ts +++ b/packages/core/database/src/__tests__/operator/notIn.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import Database from '../../database'; diff --git a/packages/core/database/src/__tests__/operator/string-operator.test.ts b/packages/core/database/src/__tests__/operator/string-operator.test.ts index c12046bf35..69d57bbea3 100644 --- a/packages/core/database/src/__tests__/operator/string-operator.test.ts +++ b/packages/core/database/src/__tests__/operator/string-operator.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection, mockDatabase } from '@nocobase/database'; describe('string operator', () => { diff --git a/packages/core/database/src/__tests__/option-parser.test.ts b/packages/core/database/src/__tests__/option-parser.test.ts index 85becd64f4..a38fd7ee88 100644 --- a/packages/core/database/src/__tests__/option-parser.test.ts +++ b/packages/core/database/src/__tests__/option-parser.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../collection'; import { Database } from '../database'; import { OptionsParser } from '../options-parser'; diff --git a/packages/core/database/src/__tests__/percent2float.test.ts b/packages/core/database/src/__tests__/percent2float.test.ts index 1c50391be3..b216f78ea2 100644 --- a/packages/core/database/src/__tests__/percent2float.test.ts +++ b/packages/core/database/src/__tests__/percent2float.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { percent2float } from '../utils'; describe('percent2float', () => { diff --git a/packages/core/database/src/__tests__/postgres/schema.test.ts b/packages/core/database/src/__tests__/postgres/schema.test.ts index 2164ee43df..a2838ae35d 100644 --- a/packages/core/database/src/__tests__/postgres/schema.test.ts +++ b/packages/core/database/src/__tests__/postgres/schema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import { Database } from '../../database'; import { randomStr } from '@nocobase/test'; diff --git a/packages/core/database/src/__tests__/query-interface/query-interface.test.ts b/packages/core/database/src/__tests__/query-interface/query-interface.test.ts index 95c81cb054..85bf7d3546 100644 --- a/packages/core/database/src/__tests__/query-interface/query-interface.test.ts +++ b/packages/core/database/src/__tests__/query-interface/query-interface.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('query interface', async () => { diff --git a/packages/core/database/src/__tests__/relation-repository/appends.test.ts b/packages/core/database/src/__tests__/relation-repository/appends.test.ts index 2626b583bb..48a0858125 100644 --- a/packages/core/database/src/__tests__/relation-repository/appends.test.ts +++ b/packages/core/database/src/__tests__/relation-repository/appends.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { BelongsToRepository, Collection, mockDatabase } from '@nocobase/database'; describe('appends', () => { diff --git a/packages/core/database/src/__tests__/relation-repository/belongs-to-many-repository.test.ts b/packages/core/database/src/__tests__/relation-repository/belongs-to-many-repository.test.ts index 66d3d5255b..56d946286b 100644 --- a/packages/core/database/src/__tests__/relation-repository/belongs-to-many-repository.test.ts +++ b/packages/core/database/src/__tests__/relation-repository/belongs-to-many-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import Database from '../../database'; import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository'; diff --git a/packages/core/database/src/__tests__/relation-repository/has-many-repository.test.ts b/packages/core/database/src/__tests__/relation-repository/has-many-repository.test.ts index eab3802d45..1afe7121f5 100644 --- a/packages/core/database/src/__tests__/relation-repository/has-many-repository.test.ts +++ b/packages/core/database/src/__tests__/relation-repository/has-many-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import { HasManyRepository } from '../../relation-repository/hasmany-repository'; import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository'; diff --git a/packages/core/database/src/__tests__/relation-repository/hasone-repository.test.ts b/packages/core/database/src/__tests__/relation-repository/hasone-repository.test.ts index 4300a6f890..24a7056aec 100644 --- a/packages/core/database/src/__tests__/relation-repository/hasone-repository.test.ts +++ b/packages/core/database/src/__tests__/relation-repository/hasone-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../../collection'; import Database from '../../database'; import { HasOneRepository } from '../../relation-repository/hasone-repository'; diff --git a/packages/core/database/src/__tests__/repository.test.ts b/packages/core/database/src/__tests__/repository.test.ts index 575350709d..7eebe07418 100644 --- a/packages/core/database/src/__tests__/repository.test.ts +++ b/packages/core/database/src/__tests__/repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { vi } from 'vitest'; import { Collection } from '../collection'; diff --git a/packages/core/database/src/__tests__/repository/aggregation.test.ts b/packages/core/database/src/__tests__/repository/aggregation.test.ts index c25cdfb951..bea0273b92 100644 --- a/packages/core/database/src/__tests__/repository/aggregation.test.ts +++ b/packages/core/database/src/__tests__/repository/aggregation.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyRepository, HasManyRepository, mockDatabase } from '../../index'; import Database from '../../database'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/repository/count.test.ts b/packages/core/database/src/__tests__/repository/count.test.ts index a9c0f96174..ac92ea3bce 100644 --- a/packages/core/database/src/__tests__/repository/count.test.ts +++ b/packages/core/database/src/__tests__/repository/count.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import { HasManyRepository } from '../../relation-repository/hasmany-repository'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/repository/create.test.ts b/packages/core/database/src/__tests__/repository/create.test.ts index b6500a6e70..87ba4a43d6 100644 --- a/packages/core/database/src/__tests__/repository/create.test.ts +++ b/packages/core/database/src/__tests__/repository/create.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import Database from '../../database'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/repository/destroy.test.ts b/packages/core/database/src/__tests__/repository/destroy.test.ts index ca7d28ad91..ef4cfca4a0 100644 --- a/packages/core/database/src/__tests__/repository/destroy.test.ts +++ b/packages/core/database/src/__tests__/repository/destroy.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import { Collection } from '../../collection'; import { Database } from '@nocobase/database'; diff --git a/packages/core/database/src/__tests__/repository/find-with-collection-without-pk.test.ts b/packages/core/database/src/__tests__/repository/find-with-collection-without-pk.test.ts index daa37e2f48..36d4a91f51 100644 --- a/packages/core/database/src/__tests__/repository/find-with-collection-without-pk.test.ts +++ b/packages/core/database/src/__tests__/repository/find-with-collection-without-pk.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../index'; diff --git a/packages/core/database/src/__tests__/repository/find.test.ts b/packages/core/database/src/__tests__/repository/find.test.ts index f35f571fe7..29843aa363 100644 --- a/packages/core/database/src/__tests__/repository/find.test.ts +++ b/packages/core/database/src/__tests__/repository/find.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../index'; import Database from '@nocobase/database'; import { Collection } from '../../collection'; diff --git a/packages/core/database/src/__tests__/repository/update-many.test.ts b/packages/core/database/src/__tests__/repository/update-many.test.ts index aefa89f12f..9c24b4b235 100644 --- a/packages/core/database/src/__tests__/repository/update-many.test.ts +++ b/packages/core/database/src/__tests__/repository/update-many.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('update many', () => { diff --git a/packages/core/database/src/__tests__/repository/update.test.ts b/packages/core/database/src/__tests__/repository/update.test.ts index 8dedd3ac78..ee35b4c4c4 100644 --- a/packages/core/database/src/__tests__/repository/update.test.ts +++ b/packages/core/database/src/__tests__/repository/update.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Database, mockDatabase } from '@nocobase/database'; describe('update', () => { diff --git a/packages/core/database/src/__tests__/sequelize-hooks.test.ts b/packages/core/database/src/__tests__/sequelize-hooks.test.ts index acefecbb9d..b6846f520c 100644 --- a/packages/core/database/src/__tests__/sequelize-hooks.test.ts +++ b/packages/core/database/src/__tests__/sequelize-hooks.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Database } from '../database'; import { mockDatabase } from './index'; diff --git a/packages/core/database/src/__tests__/sort.test.ts b/packages/core/database/src/__tests__/sort.test.ts index fb62c7fdbd..e69f8b79f7 100644 --- a/packages/core/database/src/__tests__/sort.test.ts +++ b/packages/core/database/src/__tests__/sort.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { mockDatabase } from './'; diff --git a/packages/core/database/src/__tests__/sql-collection/infer-fields.test.ts b/packages/core/database/src/__tests__/sql-collection/infer-fields.test.ts index 69bcaa84e1..e67b033296 100644 --- a/packages/core/database/src/__tests__/sql-collection/infer-fields.test.ts +++ b/packages/core/database/src/__tests__/sql-collection/infer-fields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../../database'; import { mockDatabase } from '../../mock-database'; import { SQLModel } from '../../sql-collection/sql-model'; diff --git a/packages/core/database/src/__tests__/sql-collection/select-query.test.ts b/packages/core/database/src/__tests__/sql-collection/select-query.test.ts index 497e07c7b6..1b115c3537 100644 --- a/packages/core/database/src/__tests__/sql-collection/select-query.test.ts +++ b/packages/core/database/src/__tests__/sql-collection/select-query.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SQLModel } from '../../sql-collection/sql-model'; import { Sequelize } from 'sequelize'; diff --git a/packages/core/database/src/__tests__/sql-collection/sql-collection.test.ts b/packages/core/database/src/__tests__/sql-collection/sql-collection.test.ts index 44a084cecc..91a51444ea 100644 --- a/packages/core/database/src/__tests__/sql-collection/sql-collection.test.ts +++ b/packages/core/database/src/__tests__/sql-collection/sql-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '../../mock-database'; import { SqlCollection } from '../../sql-collection'; diff --git a/packages/core/database/src/__tests__/sql-parser.test.ts b/packages/core/database/src/__tests__/sql-parser.test.ts index 2de090eafc..4681685107 100644 --- a/packages/core/database/src/__tests__/sql-parser.test.ts +++ b/packages/core/database/src/__tests__/sql-parser.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import sqlParser from '../sql-parser'; describe('sql parser', () => { diff --git a/packages/core/database/src/__tests__/sync.test.ts b/packages/core/database/src/__tests__/sync.test.ts index 7936d33226..c6991f45eb 100644 --- a/packages/core/database/src/__tests__/sync.test.ts +++ b/packages/core/database/src/__tests__/sync.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Database, mockDatabase } from '@nocobase/database'; diff --git a/packages/core/database/src/__tests__/sync/default-value.test.ts b/packages/core/database/src/__tests__/sync/default-value.test.ts index e46a5d7cce..ebf880ef73 100644 --- a/packages/core/database/src/__tests__/sync/default-value.test.ts +++ b/packages/core/database/src/__tests__/sync/default-value.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../../index'; describe('default value', () => { diff --git a/packages/core/database/src/__tests__/sync/delete-field.test.ts b/packages/core/database/src/__tests__/sync/delete-field.test.ts index e04f37ac04..e30f507c0e 100644 --- a/packages/core/database/src/__tests__/sync/delete-field.test.ts +++ b/packages/core/database/src/__tests__/sync/delete-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../../index'; describe.skip('delete field', () => { diff --git a/packages/core/database/src/__tests__/sync/empty-table.test.ts b/packages/core/database/src/__tests__/sync/empty-table.test.ts index 6d0416fb4b..6a31931fa6 100644 --- a/packages/core/database/src/__tests__/sync/empty-table.test.ts +++ b/packages/core/database/src/__tests__/sync/empty-table.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; import * as process from 'process'; diff --git a/packages/core/database/src/__tests__/sync/primary-key.test.ts b/packages/core/database/src/__tests__/sync/primary-key.test.ts index ea7e0c7106..2b30c64df6 100644 --- a/packages/core/database/src/__tests__/sync/primary-key.test.ts +++ b/packages/core/database/src/__tests__/sync/primary-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../../index'; import * as process from 'process'; 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 31194a5ad1..1e717aece2 100644 --- a/packages/core/database/src/__tests__/sync/unique-index.test.ts +++ b/packages/core/database/src/__tests__/sync/unique-index.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../../index'; import { waitSecond } from '@nocobase/test'; diff --git a/packages/core/database/src/__tests__/tree.test.ts b/packages/core/database/src/__tests__/tree.test.ts index ab25f75107..9faeeac1bc 100644 --- a/packages/core/database/src/__tests__/tree.test.ts +++ b/packages/core/database/src/__tests__/tree.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { AdjacencyListRepository } from '../repositories/tree-repository/adjacency-list-repository'; import { mockDatabase } from './'; diff --git a/packages/core/database/src/__tests__/underscored-options.test.ts b/packages/core/database/src/__tests__/underscored-options.test.ts index 4efa437083..7e73ebef7f 100644 --- a/packages/core/database/src/__tests__/underscored-options.test.ts +++ b/packages/core/database/src/__tests__/underscored-options.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('underscored options', () => { diff --git a/packages/core/database/src/__tests__/unique.test.ts b/packages/core/database/src/__tests__/unique.test.ts index f081d5d914..19589105b3 100644 --- a/packages/core/database/src/__tests__/unique.test.ts +++ b/packages/core/database/src/__tests__/unique.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('unique field', () => { diff --git a/packages/core/database/src/__tests__/update-association-values.test.ts b/packages/core/database/src/__tests__/update-association-values.test.ts index adfb208ff6..d0703c86bc 100644 --- a/packages/core/database/src/__tests__/update-association-values.test.ts +++ b/packages/core/database/src/__tests__/update-association-values.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { mockDatabase } from './'; diff --git a/packages/core/database/src/__tests__/update-associations-source-key.test.ts b/packages/core/database/src/__tests__/update-associations-source-key.test.ts index 0b1119c5b3..8f584fe0b6 100644 --- a/packages/core/database/src/__tests__/update-associations-source-key.test.ts +++ b/packages/core/database/src/__tests__/update-associations-source-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../collection'; import Database from '../database'; import { mockDatabase } from '../mock-database'; diff --git a/packages/core/database/src/__tests__/update-associations-through.test.ts b/packages/core/database/src/__tests__/update-associations-through.test.ts index f118833cf1..0f05e10b16 100644 --- a/packages/core/database/src/__tests__/update-associations-through.test.ts +++ b/packages/core/database/src/__tests__/update-associations-through.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { Database } from '../database'; import { mockDatabase } from './'; diff --git a/packages/core/database/src/__tests__/update-associations.test.ts b/packages/core/database/src/__tests__/update-associations.test.ts index c2c6c78745..16a26bab24 100644 --- a/packages/core/database/src/__tests__/update-associations.test.ts +++ b/packages/core/database/src/__tests__/update-associations.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../collection'; import { Database } from '../database'; import { updateAssociations } from '../update-associations'; diff --git a/packages/core/database/src/__tests__/update-guard.test.ts b/packages/core/database/src/__tests__/update-guard.test.ts index 96dda9823e..7ed1a8df00 100644 --- a/packages/core/database/src/__tests__/update-guard.test.ts +++ b/packages/core/database/src/__tests__/update-guard.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '../collection'; import { mockDatabase } from './index'; import { UpdateGuard } from '../update-guard'; diff --git a/packages/core/database/src/__tests__/utils.test.ts b/packages/core/database/src/__tests__/utils.test.ts index fe2cf1f329..1fc5c7f4b4 100644 --- a/packages/core/database/src/__tests__/utils.test.ts +++ b/packages/core/database/src/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { mockDatabase } from '@nocobase/database'; describe('database utils', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/array.test.ts b/packages/core/database/src/__tests__/value-parsers/array.test.ts index 549b8d2e65..1a1ce0bf75 100644 --- a/packages/core/database/src/__tests__/value-parsers/array.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/array.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayValueParser } from '@nocobase/database'; describe('array value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/base.test.ts b/packages/core/database/src/__tests__/value-parsers/base.test.ts index e4bfee23f1..0816c06a32 100644 --- a/packages/core/database/src/__tests__/value-parsers/base.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/base.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser as ValueParser } from '../../value-parsers'; describe('number value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/boolean.test.ts b/packages/core/database/src/__tests__/value-parsers/boolean.test.ts index 75e92f1a63..c7db85f3c5 100644 --- a/packages/core/database/src/__tests__/value-parsers/boolean.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/boolean.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BooleanValueParser } from '../../value-parsers'; describe('boolean value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/date.test.ts b/packages/core/database/src/__tests__/value-parsers/date.test.ts index 6b83e0ea96..5ede38c6bd 100644 --- a/packages/core/database/src/__tests__/value-parsers/date.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/date.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; import { Database, mockDatabase } from '../..'; import { DateValueParser } from '../../value-parsers'; diff --git a/packages/core/database/src/__tests__/value-parsers/json.test.ts b/packages/core/database/src/__tests__/value-parsers/json.test.ts index fe185fb8a6..2785c047d0 100644 --- a/packages/core/database/src/__tests__/value-parsers/json.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/json.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { JsonValueParser } from '../../value-parsers'; describe('array value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/number.test.ts b/packages/core/database/src/__tests__/value-parsers/number.test.ts index 1c13a28e2f..cfd359a09f 100644 --- a/packages/core/database/src/__tests__/value-parsers/number.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/number.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NumberValueParser } from '../../value-parsers'; describe('number value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/string.test.ts b/packages/core/database/src/__tests__/value-parsers/string.test.ts index d52f1bc9cb..f18b4d40c5 100644 --- a/packages/core/database/src/__tests__/value-parsers/string.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/string.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { StringValueParser } from '../../value-parsers'; describe('array value parser', () => { diff --git a/packages/core/database/src/__tests__/value-parsers/to-many.test.ts b/packages/core/database/src/__tests__/value-parsers/to-many.test.ts index 4e36c2ad2c..f8f4a0c0db 100644 --- a/packages/core/database/src/__tests__/value-parsers/to-many.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/to-many.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../..'; import { ToManyValueParser } from '../../value-parsers'; diff --git a/packages/core/database/src/__tests__/value-parsers/to-one.test.ts b/packages/core/database/src/__tests__/value-parsers/to-one.test.ts index c70af6b13c..13b98eb871 100644 --- a/packages/core/database/src/__tests__/value-parsers/to-one.test.ts +++ b/packages/core/database/src/__tests__/value-parsers/to-one.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '../..'; import { ToManyValueParser } from '../../value-parsers'; diff --git a/packages/core/database/src/__tests__/view/list-view.test.ts b/packages/core/database/src/__tests__/view/list-view.test.ts index 3b218c0ded..bc18e9f7f8 100644 --- a/packages/core/database/src/__tests__/view/list-view.test.ts +++ b/packages/core/database/src/__tests__/view/list-view.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; describe('list view', () => { diff --git a/packages/core/database/src/__tests__/view/view-collection.test.ts b/packages/core/database/src/__tests__/view/view-collection.test.ts index cdb8938505..f7b0931aaf 100644 --- a/packages/core/database/src/__tests__/view/view-collection.test.ts +++ b/packages/core/database/src/__tests__/view/view-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { uid } from '@nocobase/utils'; import { Database, mockDatabase } from '../../index'; diff --git a/packages/core/database/src/__tests__/view/view-inference.test.ts b/packages/core/database/src/__tests__/view/view-inference.test.ts index 33b56de946..5636dd79f5 100644 --- a/packages/core/database/src/__tests__/view/view-inference.test.ts +++ b/packages/core/database/src/__tests__/view/view-inference.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; import { ViewFieldInference } from '../../view/view-inference'; diff --git a/packages/core/database/src/__tests__/view/view-repository.test.ts b/packages/core/database/src/__tests__/view/view-repository.test.ts index b744672022..c3bb8afe15 100644 --- a/packages/core/database/src/__tests__/view/view-repository.test.ts +++ b/packages/core/database/src/__tests__/view/view-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; import { uid } from '@nocobase/utils'; diff --git a/packages/core/database/src/__tests__/view/view-with-association.test.ts b/packages/core/database/src/__tests__/view/view-with-association.test.ts index fe0b010c9d..6d21695a5c 100644 --- a/packages/core/database/src/__tests__/view/view-with-association.test.ts +++ b/packages/core/database/src/__tests__/view/view-with-association.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@nocobase/utils'; import { Database, mockDatabase, ViewFieldInference } from '../../index'; import { pgOnly } from '@nocobase/test'; diff --git a/packages/core/database/src/collection-factory.ts b/packages/core/database/src/collection-factory.ts index 14098c4c19..7e76e9bef1 100644 --- a/packages/core/database/src/collection-factory.ts +++ b/packages/core/database/src/collection-factory.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, CollectionOptions } from './collection'; import Database from './database'; import { Model } from './model'; diff --git a/packages/core/database/src/collection-group-manager.ts b/packages/core/database/src/collection-group-manager.ts index 0240c360c6..2b1adeb32a 100644 --- a/packages/core/database/src/collection-group-manager.ts +++ b/packages/core/database/src/collection-group-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseDumpRules, DumpRules } from './collection'; import Database from './database'; diff --git a/packages/core/database/src/collection-importer.ts b/packages/core/database/src/collection-importer.ts index 969312885a..1fadb4c120 100644 --- a/packages/core/database/src/collection-importer.ts +++ b/packages/core/database/src/collection-importer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { importModule } from '@nocobase/utils'; import { existsSync } from 'fs'; import { readdir } from 'fs/promises'; diff --git a/packages/core/database/src/collection.ts b/packages/core/database/src/collection.ts index a121913f48..a180a0c0ca 100644 --- a/packages/core/database/src/collection.ts +++ b/packages/core/database/src/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import merge from 'deepmerge'; import { EventEmitter } from 'events'; import { default as _, default as lodash } from 'lodash'; diff --git a/packages/core/database/src/database-utils/index.ts b/packages/core/database/src/database-utils/index.ts index 46c3906b8f..6b52a7c0e8 100644 --- a/packages/core/database/src/database-utils/index.ts +++ b/packages/core/database/src/database-utils/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; import lodash from 'lodash'; diff --git a/packages/core/database/src/database.ts b/packages/core/database/src/database.ts index 52410bf392..e0ed142de0 100644 --- a/packages/core/database/src/database.ts +++ b/packages/core/database/src/database.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createConsoleLogger, createLogger, Logger, LoggerOptions } from '@nocobase/logger'; import { applyMixins, AsyncEmitter } from '@nocobase/utils'; import chalk from 'chalk'; diff --git a/packages/core/database/src/decorators/must-have-filter-decorator.ts b/packages/core/database/src/decorators/must-have-filter-decorator.ts index 77e296c792..37e5df7cf9 100644 --- a/packages/core/database/src/decorators/must-have-filter-decorator.ts +++ b/packages/core/database/src/decorators/must-have-filter-decorator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isValidFilter } from '@nocobase/utils'; const mustHaveFilter = () => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => { diff --git a/packages/core/database/src/decorators/target-collection-decorator.ts b/packages/core/database/src/decorators/target-collection-decorator.ts index 02d4a3cd10..ae9a369e37 100644 --- a/packages/core/database/src/decorators/target-collection-decorator.ts +++ b/packages/core/database/src/decorators/target-collection-decorator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; const injectTargetCollection = (target: any, propertyKey: string, descriptor: PropertyDescriptor) => { diff --git a/packages/core/database/src/decorators/transaction-decorator.ts b/packages/core/database/src/decorators/transaction-decorator.ts index 9419f74571..eb4220e57d 100644 --- a/packages/core/database/src/decorators/transaction-decorator.ts +++ b/packages/core/database/src/decorators/transaction-decorator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; export function transactionWrapperBuilder(transactionGenerator) { diff --git a/packages/core/database/src/eager-loading/eager-loading-tree.ts b/packages/core/database/src/eager-loading/eager-loading-tree.ts index fafb73699f..e4a696f192 100644 --- a/packages/core/database/src/eager-loading/eager-loading-tree.ts +++ b/packages/core/database/src/eager-loading/eager-loading-tree.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Association, HasOne, HasOneOptions, Includeable, Model, ModelStatic, Op, Transaction } from 'sequelize'; import Database from '../database'; diff --git a/packages/core/database/src/errors/identifier-error.ts b/packages/core/database/src/errors/identifier-error.ts index d958e07c07..1ce59e1403 100644 --- a/packages/core/database/src/errors/identifier-error.ts +++ b/packages/core/database/src/errors/identifier-error.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class IdentifierError extends Error { constructor(message: string) { super(message); diff --git a/packages/core/database/src/errors/zero-column-table-error.ts b/packages/core/database/src/errors/zero-column-table-error.ts index b7906fcf40..a4fe850866 100644 --- a/packages/core/database/src/errors/zero-column-table-error.ts +++ b/packages/core/database/src/errors/zero-column-table-error.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class ZeroColumnTableError extends Error {} diff --git a/packages/core/database/src/features/references-map.ts b/packages/core/database/src/features/references-map.ts index 02f8b84111..efdc316e38 100644 --- a/packages/core/database/src/features/references-map.ts +++ b/packages/core/database/src/features/references-map.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; export type ReferencePriority = 'default' | 'user'; diff --git a/packages/core/database/src/features/referential-integrity-check.ts b/packages/core/database/src/features/referential-integrity-check.ts index 0398062762..6293977367 100644 --- a/packages/core/database/src/features/referential-integrity-check.ts +++ b/packages/core/database/src/features/referential-integrity-check.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Transactionable } from 'sequelize'; import Database from '../database'; diff --git a/packages/core/database/src/field-repository/array-field-repository.ts b/packages/core/database/src/field-repository/array-field-repository.ts index 34cf590770..6e6699db91 100644 --- a/packages/core/database/src/field-repository/array-field-repository.ts +++ b/packages/core/database/src/field-repository/array-field-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Transactionable } from 'sequelize/types'; import { Collection } from '../collection'; diff --git a/packages/core/database/src/fields/array-field.ts b/packages/core/database/src/fields/array-field.ts index 153904f624..8885301072 100644 --- a/packages/core/database/src/fields/array-field.ts +++ b/packages/core/database/src/fields/array-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/belongs-to-field.ts b/packages/core/database/src/fields/belongs-to-field.ts index 5866073406..93d666aabd 100644 --- a/packages/core/database/src/fields/belongs-to-field.ts +++ b/packages/core/database/src/fields/belongs-to-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash, { omit } from 'lodash'; import { BelongsToOptions as SequelizeBelongsToOptions, Utils } from 'sequelize'; import { buildReference, Reference, ReferencePriority } from '../features/references-map'; diff --git a/packages/core/database/src/fields/belongs-to-many-field.ts b/packages/core/database/src/fields/belongs-to-many-field.ts index f82d505201..6f7d22f5f3 100644 --- a/packages/core/database/src/fields/belongs-to-many-field.ts +++ b/packages/core/database/src/fields/belongs-to-many-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { omit } from 'lodash'; import { AssociationScope, BelongsToManyOptions as SequelizeBelongsToManyOptions, Utils } from 'sequelize'; import { Collection } from '../collection'; diff --git a/packages/core/database/src/fields/boolean-field.ts b/packages/core/database/src/fields/boolean-field.ts index ee97a43b6c..fdb5361efa 100644 --- a/packages/core/database/src/fields/boolean-field.ts +++ b/packages/core/database/src/fields/boolean-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/context-field.ts b/packages/core/database/src/fields/context-field.ts index 8146ae8b27..420bc18f6b 100644 --- a/packages/core/database/src/fields/context-field.ts +++ b/packages/core/database/src/fields/context-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { DataTypes } from 'sequelize'; import { Model } from '../model'; diff --git a/packages/core/database/src/fields/date-field.ts b/packages/core/database/src/fields/date-field.ts index e740129f99..f40b27de3e 100644 --- a/packages/core/database/src/fields/date-field.ts +++ b/packages/core/database/src/fields/date-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/field.ts b/packages/core/database/src/fields/field.ts index 2e8a423c2f..2f529d002d 100644 --- a/packages/core/database/src/fields/field.ts +++ b/packages/core/database/src/fields/field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import { DataType, ModelAttributeColumnOptions, ModelIndexesOptions, SyncOptions, Transactionable } from 'sequelize'; import { Collection } from '../collection'; diff --git a/packages/core/database/src/fields/has-inverse-field.ts b/packages/core/database/src/fields/has-inverse-field.ts index 7640e298a2..f6bea0feb5 100644 --- a/packages/core/database/src/fields/has-inverse-field.ts +++ b/packages/core/database/src/fields/has-inverse-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from './field'; export interface HasInverseField { diff --git a/packages/core/database/src/fields/has-many-field.ts b/packages/core/database/src/fields/has-many-field.ts index 28a3f038b4..8c0467d4b2 100644 --- a/packages/core/database/src/fields/has-many-field.ts +++ b/packages/core/database/src/fields/has-many-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { omit } from 'lodash'; import { AssociationScope, diff --git a/packages/core/database/src/fields/has-one-field.ts b/packages/core/database/src/fields/has-one-field.ts index f2673daca4..d8d5e355d5 100644 --- a/packages/core/database/src/fields/has-one-field.ts +++ b/packages/core/database/src/fields/has-one-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { omit } from 'lodash'; import { AssociationScope, diff --git a/packages/core/database/src/fields/index.ts b/packages/core/database/src/fields/index.ts index eb630051da..2bb02a1fd0 100644 --- a/packages/core/database/src/fields/index.ts +++ b/packages/core/database/src/fields/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayFieldOptions } from './array-field'; import { BelongsToFieldOptions } from './belongs-to-field'; import { BelongsToManyFieldOptions } from './belongs-to-many-field'; diff --git a/packages/core/database/src/fields/json-field.ts b/packages/core/database/src/fields/json-field.ts index fbe424b263..cd66ea8080 100644 --- a/packages/core/database/src/fields/json-field.ts +++ b/packages/core/database/src/fields/json-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/nanoid-field.ts b/packages/core/database/src/fields/nanoid-field.ts index ca6838ddce..8ef9ffe89b 100644 --- a/packages/core/database/src/fields/nanoid-field.ts +++ b/packages/core/database/src/fields/nanoid-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; import { customAlphabet, nanoid } from 'nanoid'; diff --git a/packages/core/database/src/fields/number-field.ts b/packages/core/database/src/fields/number-field.ts index 9fde4c9fb5..4e65057c39 100644 --- a/packages/core/database/src/fields/number-field.ts +++ b/packages/core/database/src/fields/number-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/password-field.ts b/packages/core/database/src/fields/password-field.ts index 32848b1352..4bc3e402fa 100644 --- a/packages/core/database/src/fields/password-field.ts +++ b/packages/core/database/src/fields/password-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import crypto from 'crypto'; import { DataTypes } from 'sequelize'; import { Model } from '../model'; diff --git a/packages/core/database/src/fields/radio-field.ts b/packages/core/database/src/fields/radio-field.ts index e6408c3868..c0bde8b95f 100644 --- a/packages/core/database/src/fields/radio-field.ts +++ b/packages/core/database/src/fields/radio-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/relation-field.ts b/packages/core/database/src/fields/relation-field.ts index c83bebecfd..ae90e85895 100644 --- a/packages/core/database/src/fields/relation-field.ts +++ b/packages/core/database/src/fields/relation-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseFieldOptions, Field } from './field'; export type BaseRelationFieldOptions = BaseFieldOptions; diff --git a/packages/core/database/src/fields/set-field.ts b/packages/core/database/src/fields/set-field.ts index 5afc0e9707..f0c66fbab5 100644 --- a/packages/core/database/src/fields/set-field.ts +++ b/packages/core/database/src/fields/set-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from './array-field'; import { BaseColumnFieldOptions } from './field'; diff --git a/packages/core/database/src/fields/sort-field.ts b/packages/core/database/src/fields/sort-field.ts index 30d9adae60..be29eaf82f 100644 --- a/packages/core/database/src/fields/sort-field.ts +++ b/packages/core/database/src/fields/sort-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Mutex } from 'async-mutex'; import { isNumber } from 'lodash'; import { DataTypes } from 'sequelize'; diff --git a/packages/core/database/src/fields/string-field.ts b/packages/core/database/src/fields/string-field.ts index db7e60617c..300819f0fc 100644 --- a/packages/core/database/src/fields/string-field.ts +++ b/packages/core/database/src/fields/string-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/text-field.ts b/packages/core/database/src/fields/text-field.ts index c6da240414..74ca88da9b 100644 --- a/packages/core/database/src/fields/text-field.ts +++ b/packages/core/database/src/fields/text-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/time-field.ts b/packages/core/database/src/fields/time-field.ts index f9a487b9bb..f4b0c90f3e 100644 --- a/packages/core/database/src/fields/time-field.ts +++ b/packages/core/database/src/fields/time-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/uid-field.ts b/packages/core/database/src/fields/uid-field.ts index cd80119d1c..b3b322cd18 100644 --- a/packages/core/database/src/fields/uid-field.ts +++ b/packages/core/database/src/fields/uid-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@nocobase/utils'; import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/fields/uuid-field.ts b/packages/core/database/src/fields/uuid-field.ts index 59feba3915..0f8366262e 100644 --- a/packages/core/database/src/fields/uuid-field.ts +++ b/packages/core/database/src/fields/uuid-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; import { v4 as uuidv4 } from 'uuid'; diff --git a/packages/core/database/src/fields/virtual-field.ts b/packages/core/database/src/fields/virtual-field.ts index 7d03b1fe50..1a77e47478 100644 --- a/packages/core/database/src/fields/virtual-field.ts +++ b/packages/core/database/src/fields/virtual-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from 'sequelize'; import { BaseColumnFieldOptions, Field } from './field'; diff --git a/packages/core/database/src/filter-match.ts b/packages/core/database/src/filter-match.ts index 7384e8c82f..816064b45f 100644 --- a/packages/core/database/src/filter-match.ts +++ b/packages/core/database/src/filter-match.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { filter } from 'mathjs'; export function filterMatch(model, where) { diff --git a/packages/core/database/src/filter-parser.ts b/packages/core/database/src/filter-parser.ts index e72880e069..a21ea5f600 100644 --- a/packages/core/database/src/filter-parser.ts +++ b/packages/core/database/src/filter-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { flatten, unflatten } from 'flat'; import { default as lodash, default as _ } from 'lodash'; import { ModelStatic } from 'sequelize'; diff --git a/packages/core/database/src/helpers.ts b/packages/core/database/src/helpers.ts index ad751cc56f..b6787c93a1 100644 --- a/packages/core/database/src/helpers.ts +++ b/packages/core/database/src/helpers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Database, IDatabaseOptions } from './database'; diff --git a/packages/core/database/src/index.ts b/packages/core/database/src/index.ts index 0d90bf81aa..c26b6fbfb0 100644 --- a/packages/core/database/src/index.ts +++ b/packages/core/database/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { BaseError, BelongsToGetAssociationMixin, diff --git a/packages/core/database/src/inherited-collection.ts b/packages/core/database/src/inherited-collection.ts index 0615fd974e..29bd5cb2a2 100644 --- a/packages/core/database/src/inherited-collection.ts +++ b/packages/core/database/src/inherited-collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { default as lodash } from 'lodash'; import { Field } from '.'; import { Collection, CollectionContext, CollectionOptions } from './collection'; diff --git a/packages/core/database/src/inherited-map.ts b/packages/core/database/src/inherited-map.ts index 1963fd16cb..6460d32838 100644 --- a/packages/core/database/src/inherited-map.ts +++ b/packages/core/database/src/inherited-map.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import Database from './database'; diff --git a/packages/core/database/src/inherited-sync-runner.ts b/packages/core/database/src/inherited-sync-runner.ts index 7fed9ead07..f4971c3ef9 100644 --- a/packages/core/database/src/inherited-sync-runner.ts +++ b/packages/core/database/src/inherited-sync-runner.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InheritedCollection } from './inherited-collection'; import lodash from 'lodash'; diff --git a/packages/core/database/src/listeners/adjacency-list.ts b/packages/core/database/src/listeners/adjacency-list.ts index e683734f3e..cf90eef1c7 100644 --- a/packages/core/database/src/listeners/adjacency-list.ts +++ b/packages/core/database/src/listeners/adjacency-list.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '../collection'; export const beforeDefineAdjacencyListCollection = (options: CollectionOptions) => { diff --git a/packages/core/database/src/listeners/append-child-collection-name-after-repository-find.ts b/packages/core/database/src/listeners/append-child-collection-name-after-repository-find.ts index b19ea606b1..4953996117 100644 --- a/packages/core/database/src/listeners/append-child-collection-name-after-repository-find.ts +++ b/packages/core/database/src/listeners/append-child-collection-name-after-repository-find.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; const setRowAttribute = (row, attribute, value, raw) => { diff --git a/packages/core/database/src/listeners/index.ts b/packages/core/database/src/listeners/index.ts index 446eff2ac0..df6b0425a5 100644 --- a/packages/core/database/src/listeners/index.ts +++ b/packages/core/database/src/listeners/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { beforeDefineAdjacencyListCollection } from './adjacency-list'; import { appendChildCollectionNameAfterRepositoryFind } from './append-child-collection-name-after-repository-find'; diff --git a/packages/core/database/src/magic-attribute-model.ts b/packages/core/database/src/magic-attribute-model.ts index 0577e7adc8..b3ffc7b76e 100644 --- a/packages/core/database/src/magic-attribute-model.ts +++ b/packages/core/database/src/magic-attribute-model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge } from '@nocobase/utils'; import _ from 'lodash'; import { Utils } from 'sequelize'; diff --git a/packages/core/database/src/migration.ts b/packages/core/database/src/migration.ts index 5d789a645f..461eef36cc 100644 --- a/packages/core/database/src/migration.ts +++ b/packages/core/database/src/migration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { importModule } from '@nocobase/utils'; import _ from 'lodash'; import { QueryInterface, Sequelize } from 'sequelize'; diff --git a/packages/core/database/src/mock-database.ts b/packages/core/database/src/mock-database.ts index 42aede01bc..7b7a0c1dc3 100644 --- a/packages/core/database/src/mock-database.ts +++ b/packages/core/database/src/mock-database.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { merge } from '@nocobase/utils'; import { customAlphabet } from 'nanoid'; diff --git a/packages/core/database/src/model-hook.ts b/packages/core/database/src/model-hook.ts index 9ba865750f..dfd0f3c74f 100644 --- a/packages/core/database/src/model-hook.ts +++ b/packages/core/database/src/model-hook.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { SequelizeHooks } from 'sequelize/types/hooks'; diff --git a/packages/core/database/src/model.ts b/packages/core/database/src/model.ts index 67de5c8ecb..c8e168ef52 100644 --- a/packages/core/database/src/model.ts +++ b/packages/core/database/src/model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash, { isPlainObject } from 'lodash'; import { Model as SequelizeModel, ModelStatic } from 'sequelize'; import { Collection } from './collection'; diff --git a/packages/core/database/src/operators/array.ts b/packages/core/database/src/operators/array.ts index 6bf82d4031..e59ee4fb03 100644 --- a/packages/core/database/src/operators/array.ts +++ b/packages/core/database/src/operators/array.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import { Op, Sequelize } from 'sequelize'; import { isMySQL, isPg } from './utils'; diff --git a/packages/core/database/src/operators/association.ts b/packages/core/database/src/operators/association.ts index fb42d04f8f..8c593519c8 100644 --- a/packages/core/database/src/operators/association.ts +++ b/packages/core/database/src/operators/association.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op, Sequelize } from 'sequelize'; export default { diff --git a/packages/core/database/src/operators/boolean.ts b/packages/core/database/src/operators/boolean.ts index 4493fb595b..805ecf918d 100644 --- a/packages/core/database/src/operators/boolean.ts +++ b/packages/core/database/src/operators/boolean.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; export default { diff --git a/packages/core/database/src/operators/child-collection.ts b/packages/core/database/src/operators/child-collection.ts index 0843f2689e..4860d24621 100644 --- a/packages/core/database/src/operators/child-collection.ts +++ b/packages/core/database/src/operators/child-collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Sequelize } from 'sequelize'; diff --git a/packages/core/database/src/operators/date.ts b/packages/core/database/src/operators/date.ts index 7d0db6219a..8a851a2ff0 100644 --- a/packages/core/database/src/operators/date.ts +++ b/packages/core/database/src/operators/date.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseDate } from '@nocobase/utils'; import { Op } from 'sequelize'; diff --git a/packages/core/database/src/operators/empty.ts b/packages/core/database/src/operators/empty.ts index 9f55a778d7..bd69bc6152 100644 --- a/packages/core/database/src/operators/empty.ts +++ b/packages/core/database/src/operators/empty.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; import { ArrayField, StringField } from '../fields'; import arrayOperators from './array'; diff --git a/packages/core/database/src/operators/eq.ts b/packages/core/database/src/operators/eq.ts index fa994f0bbb..e1cf305793 100644 --- a/packages/core/database/src/operators/eq.ts +++ b/packages/core/database/src/operators/eq.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; export default { diff --git a/packages/core/database/src/operators/index.ts b/packages/core/database/src/operators/index.ts index 7ad5fdc305..4d45da25e6 100644 --- a/packages/core/database/src/operators/index.ts +++ b/packages/core/database/src/operators/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import association from './association'; import date from './date'; import array from './array'; diff --git a/packages/core/database/src/operators/ne.ts b/packages/core/database/src/operators/ne.ts index f650530e9d..69d2c43062 100644 --- a/packages/core/database/src/operators/ne.ts +++ b/packages/core/database/src/operators/ne.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; export default { diff --git a/packages/core/database/src/operators/notIn.ts b/packages/core/database/src/operators/notIn.ts index e2be831224..544f1606a0 100644 --- a/packages/core/database/src/operators/notIn.ts +++ b/packages/core/database/src/operators/notIn.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; export default { diff --git a/packages/core/database/src/operators/string.ts b/packages/core/database/src/operators/string.ts index 4c688ebd62..be46cd1b47 100644 --- a/packages/core/database/src/operators/string.ts +++ b/packages/core/database/src/operators/string.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from 'sequelize'; import { isPg } from './utils'; diff --git a/packages/core/database/src/operators/utils.ts b/packages/core/database/src/operators/utils.ts index 0874a01adc..d2357faa84 100644 --- a/packages/core/database/src/operators/utils.ts +++ b/packages/core/database/src/operators/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const getDialect = (ctx) => { return ctx.db.sequelize.getDialect(); }; diff --git a/packages/core/database/src/options-parser.ts b/packages/core/database/src/options-parser.ts index 12a66418d5..78ed99a44b 100644 --- a/packages/core/database/src/options-parser.ts +++ b/packages/core/database/src/options-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { FindAttributeOptions, ModelStatic, Op, Sequelize } from 'sequelize'; import { Collection } from './collection'; diff --git a/packages/core/database/src/query-interface/mysql-query-interface.ts b/packages/core/database/src/query-interface/mysql-query-interface.ts index 304d7da91f..2b125d5acc 100644 --- a/packages/core/database/src/query-interface/mysql-query-interface.ts +++ b/packages/core/database/src/query-interface/mysql-query-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Transaction, Transactionable } from 'sequelize'; diff --git a/packages/core/database/src/query-interface/postgres-query-interface.ts b/packages/core/database/src/query-interface/postgres-query-interface.ts index 183c4465cc..57f3204fbf 100644 --- a/packages/core/database/src/query-interface/postgres-query-interface.ts +++ b/packages/core/database/src/query-interface/postgres-query-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Collection } from '../collection'; import sqlParser from '../sql-parser/postgres'; diff --git a/packages/core/database/src/query-interface/query-interface-builder.ts b/packages/core/database/src/query-interface/query-interface-builder.ts index 7ffacef48b..3632308f60 100644 --- a/packages/core/database/src/query-interface/query-interface-builder.ts +++ b/packages/core/database/src/query-interface/query-interface-builder.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '../database'; import MysqlQueryInterface from './mysql-query-interface'; import PostgresQueryInterface from './postgres-query-interface'; diff --git a/packages/core/database/src/query-interface/query-interface.ts b/packages/core/database/src/query-interface/query-interface.ts index 665df508b0..e0d32cd4b6 100644 --- a/packages/core/database/src/query-interface/query-interface.ts +++ b/packages/core/database/src/query-interface/query-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { QueryInterface as SequelizeQueryInterface, Transaction, Transactionable } from 'sequelize'; import { Collection } from '../collection'; import Database from '../database'; diff --git a/packages/core/database/src/query-interface/sqlite-query-interface.ts b/packages/core/database/src/query-interface/sqlite-query-interface.ts index 418394f12a..8663aebda5 100644 --- a/packages/core/database/src/query-interface/sqlite-query-interface.ts +++ b/packages/core/database/src/query-interface/sqlite-query-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Collection } from '../collection'; diff --git a/packages/core/database/src/relation-repository/belongs-to-many-repository.ts b/packages/core/database/src/relation-repository/belongs-to-many-repository.ts index 0c6b6fc9c4..8b754e5c6f 100644 --- a/packages/core/database/src/relation-repository/belongs-to-many-repository.ts +++ b/packages/core/database/src/relation-repository/belongs-to-many-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { BelongsToMany, Op, Transaction } from 'sequelize'; import { AggregateOptions, CreateOptions, DestroyOptions, TargetKey } from '../repository'; diff --git a/packages/core/database/src/relation-repository/belongs-to-repository.ts b/packages/core/database/src/relation-repository/belongs-to-repository.ts index c754c104d7..fab312f93b 100644 --- a/packages/core/database/src/relation-repository/belongs-to-repository.ts +++ b/packages/core/database/src/relation-repository/belongs-to-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsTo } from 'sequelize'; import { SingleRelationFindOption, SingleRelationRepository } from './single-relation-repository'; diff --git a/packages/core/database/src/relation-repository/hasmany-repository.ts b/packages/core/database/src/relation-repository/hasmany-repository.ts index b820da08fa..376eff9435 100644 --- a/packages/core/database/src/relation-repository/hasmany-repository.ts +++ b/packages/core/database/src/relation-repository/hasmany-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { omit } from 'lodash'; import { HasMany, Op } from 'sequelize'; import { AggregateOptions, DestroyOptions, FindOptions, TargetKey, TK } from '../repository'; diff --git a/packages/core/database/src/relation-repository/hasone-repository.ts b/packages/core/database/src/relation-repository/hasone-repository.ts index 9a2c3ac681..13274773c5 100644 --- a/packages/core/database/src/relation-repository/hasone-repository.ts +++ b/packages/core/database/src/relation-repository/hasone-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { HasOne } from 'sequelize'; import { SingleRelationRepository } from './single-relation-repository'; diff --git a/packages/core/database/src/relation-repository/multiple-relation-repository.ts b/packages/core/database/src/relation-repository/multiple-relation-repository.ts index 463a9ade20..4fdb9205c5 100644 --- a/packages/core/database/src/relation-repository/multiple-relation-repository.ts +++ b/packages/core/database/src/relation-repository/multiple-relation-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { HasOne, MultiAssociationAccessors, Sequelize, Transaction, Transactionable } from 'sequelize'; import injectTargetCollection from '../decorators/target-collection-decorator'; diff --git a/packages/core/database/src/relation-repository/relation-repository.ts b/packages/core/database/src/relation-repository/relation-repository.ts index a92cf1814c..3f1059521a 100644 --- a/packages/core/database/src/relation-repository/relation-repository.ts +++ b/packages/core/database/src/relation-repository/relation-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Association, BelongsTo, BelongsToMany, HasMany, HasOne, ModelStatic, Transaction } from 'sequelize'; import { Collection } from '../collection'; diff --git a/packages/core/database/src/relation-repository/single-relation-repository.ts b/packages/core/database/src/relation-repository/single-relation-repository.ts index 1ba5e713de..ed3c6a8803 100644 --- a/packages/core/database/src/relation-repository/single-relation-repository.ts +++ b/packages/core/database/src/relation-repository/single-relation-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { SingleAssociationAccessors, Transactionable } from 'sequelize'; import injectTargetCollection from '../decorators/target-collection-decorator'; diff --git a/packages/core/database/src/relation-repository/types.ts b/packages/core/database/src/relation-repository/types.ts index dd8c7f2c13..79c3d0ea63 100644 --- a/packages/core/database/src/relation-repository/types.ts +++ b/packages/core/database/src/relation-repository/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TargetKey, Values } from '../repository'; import { Transactionable } from 'sequelize'; diff --git a/packages/core/database/src/repositories/tree-repository/adjacency-list-repository.ts b/packages/core/database/src/repositories/tree-repository/adjacency-list-repository.ts index c26a77a8c6..e5c9ee6d53 100644 --- a/packages/core/database/src/repositories/tree-repository/adjacency-list-repository.ts +++ b/packages/core/database/src/repositories/tree-repository/adjacency-list-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { FindOptions, Repository } from '../../repository'; import Database from '../../database'; diff --git a/packages/core/database/src/repositories/view-repository.ts b/packages/core/database/src/repositories/view-repository.ts index 75fdcbd40b..5d2403a6de 100644 --- a/packages/core/database/src/repositories/view-repository.ts +++ b/packages/core/database/src/repositories/view-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '../repository'; export class ViewRepository extends Repository {} diff --git a/packages/core/database/src/repository.ts b/packages/core/database/src/repository.ts index 6e52514b8f..4338430dca 100644 --- a/packages/core/database/src/repository.ts +++ b/packages/core/database/src/repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { flatten } from 'flat'; import lodash from 'lodash'; import { diff --git a/packages/core/database/src/sql-collection/index.ts b/packages/core/database/src/sql-collection/index.ts index 8a524dd0f2..b98036c4a0 100644 --- a/packages/core/database/src/sql-collection/index.ts +++ b/packages/core/database/src/sql-collection/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './sql-model'; export * from './sql-collection'; diff --git a/packages/core/database/src/sql-collection/query-generator.ts b/packages/core/database/src/sql-collection/query-generator.ts index c6639a7b8b..3fb8cc5f5f 100644 --- a/packages/core/database/src/sql-collection/query-generator.ts +++ b/packages/core/database/src/sql-collection/query-generator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GroupOption, Order, ProjectionAlias, WhereOptions } from 'sequelize'; import { SQLModel } from './sql-model'; import { lodash } from '@nocobase/utils'; diff --git a/packages/core/database/src/sql-collection/sql-collection.ts b/packages/core/database/src/sql-collection/sql-collection.ts index 9330e1bf3e..5f2e94a862 100644 --- a/packages/core/database/src/sql-collection/sql-collection.ts +++ b/packages/core/database/src/sql-collection/sql-collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, CollectionContext, CollectionOptions } from '../collection'; import { SQLModel } from './sql-model'; diff --git a/packages/core/database/src/sql-collection/sql-model.ts b/packages/core/database/src/sql-collection/sql-model.ts index 4839375e92..7ebff659d8 100644 --- a/packages/core/database/src/sql-collection/sql-model.ts +++ b/packages/core/database/src/sql-collection/sql-model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '../model'; import sqlParser from '../sql-parser'; import { selectQuery } from './query-generator'; diff --git a/packages/core/database/src/sql-parser/index.js b/packages/core/database/src/sql-parser/index.js index eab4bd585d..943df2b139 100644 --- a/packages/core/database/src/sql-parser/index.js +++ b/packages/core/database/src/sql-parser/index.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // Generated by Peggy 3.0.2. // // https://peggyjs.org/ diff --git a/packages/core/database/src/sql-parser/postgres.js b/packages/core/database/src/sql-parser/postgres.js index 931fa9544d..4049fb4367 100644 --- a/packages/core/database/src/sql-parser/postgres.js +++ b/packages/core/database/src/sql-parser/postgres.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // Generated by Peggy 3.0.2. // // https://peggyjs.org/ diff --git a/packages/core/database/src/sync-runner.ts b/packages/core/database/src/sync-runner.ts index acb5a4830d..fb0f1faab9 100644 --- a/packages/core/database/src/sync-runner.ts +++ b/packages/core/database/src/sync-runner.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from './model'; import { Collection } from './collection'; import Database from './database'; diff --git a/packages/core/database/src/types.ts b/packages/core/database/src/types.ts index 99ba477772..db3bc00250 100644 --- a/packages/core/database/src/types.ts +++ b/packages/core/database/src/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Model } from './model'; import type { CreateOptions, DestroyOptions, SaveOptions, SyncOptions, UpdateOptions } from 'sequelize/types'; import { Collection, CollectionOptions } from './collection'; diff --git a/packages/core/database/src/update-associations.ts b/packages/core/database/src/update-associations.ts index 12e83082a0..76cb90647d 100644 --- a/packages/core/database/src/update-associations.ts +++ b/packages/core/database/src/update-associations.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Association, diff --git a/packages/core/database/src/update-guard.ts b/packages/core/database/src/update-guard.ts index 7b72af184b..80dacd7ea3 100644 --- a/packages/core/database/src/update-guard.ts +++ b/packages/core/database/src/update-guard.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { ModelStatic } from 'sequelize'; import { Model } from './model'; diff --git a/packages/core/database/src/utils.ts b/packages/core/database/src/utils.ts index 6c2c464ab3..d088178dd8 100644 --- a/packages/core/database/src/utils.ts +++ b/packages/core/database/src/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import crypto from 'crypto'; import Database from './database'; import { IdentifierError } from './errors/identifier-error'; diff --git a/packages/core/database/src/value-parsers/array-value-parser.ts b/packages/core/database/src/value-parsers/array-value-parser.ts index ff68fdcbe3..088c4e3c52 100644 --- a/packages/core/database/src/value-parsers/array-value-parser.ts +++ b/packages/core/database/src/value-parsers/array-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser } from './base-value-parser'; export class ArrayValueParser extends BaseValueParser { diff --git a/packages/core/database/src/value-parsers/base-value-parser.ts b/packages/core/database/src/value-parsers/base-value-parser.ts index d4cd7e9486..9c5c1ce4b3 100644 --- a/packages/core/database/src/value-parsers/base-value-parser.ts +++ b/packages/core/database/src/value-parsers/base-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class BaseValueParser { ctx: any; field: any; diff --git a/packages/core/database/src/value-parsers/boolean-value-parser.ts b/packages/core/database/src/value-parsers/boolean-value-parser.ts index e84b51e8bd..3f741eb8eb 100644 --- a/packages/core/database/src/value-parsers/boolean-value-parser.ts +++ b/packages/core/database/src/value-parsers/boolean-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser } from './base-value-parser'; export class BooleanValueParser extends BaseValueParser { diff --git a/packages/core/database/src/value-parsers/date-value-parser.ts b/packages/core/database/src/value-parsers/date-value-parser.ts index 085a912fc9..8073d31968 100644 --- a/packages/core/database/src/value-parsers/date-value-parser.ts +++ b/packages/core/database/src/value-parsers/date-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { moment2str } from '@nocobase/utils'; import dayjs from 'dayjs'; import { getJsDateFromExcel } from 'excel-date-to-js'; diff --git a/packages/core/database/src/value-parsers/index.ts b/packages/core/database/src/value-parsers/index.ts index c7882c4c1b..cb3bcc8ce6 100644 --- a/packages/core/database/src/value-parsers/index.ts +++ b/packages/core/database/src/value-parsers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '../database'; import { ArrayValueParser } from './array-value-parser'; import { BaseValueParser } from './base-value-parser'; diff --git a/packages/core/database/src/value-parsers/json-value-parser.ts b/packages/core/database/src/value-parsers/json-value-parser.ts index 14ed3e6c9a..cd82ca498f 100644 --- a/packages/core/database/src/value-parsers/json-value-parser.ts +++ b/packages/core/database/src/value-parsers/json-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser } from './base-value-parser'; export class JsonValueParser extends BaseValueParser { diff --git a/packages/core/database/src/value-parsers/number-value-parser.ts b/packages/core/database/src/value-parsers/number-value-parser.ts index c12f02e3fc..0095a21801 100644 --- a/packages/core/database/src/value-parsers/number-value-parser.ts +++ b/packages/core/database/src/value-parsers/number-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { percent2float } from '../utils'; import { BaseValueParser } from './base-value-parser'; diff --git a/packages/core/database/src/value-parsers/string-value-parser.ts b/packages/core/database/src/value-parsers/string-value-parser.ts index 16f415826c..0f68b6aff9 100644 --- a/packages/core/database/src/value-parsers/string-value-parser.ts +++ b/packages/core/database/src/value-parsers/string-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser } from './base-value-parser'; export class StringValueParser extends BaseValueParser { diff --git a/packages/core/database/src/value-parsers/to-many-value-parser.ts b/packages/core/database/src/value-parsers/to-many-value-parser.ts index af8f78fb98..14ac2c81f4 100644 --- a/packages/core/database/src/value-parsers/to-many-value-parser.ts +++ b/packages/core/database/src/value-parsers/to-many-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { basename, extname } from 'path'; import { Repository } from '../repository'; import { BaseValueParser } from './base-value-parser'; diff --git a/packages/core/database/src/value-parsers/to-one-value-parser.ts b/packages/core/database/src/value-parsers/to-one-value-parser.ts index f5f4fa17d4..860715a710 100644 --- a/packages/core/database/src/value-parsers/to-one-value-parser.ts +++ b/packages/core/database/src/value-parsers/to-one-value-parser.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '../repository'; import { BaseValueParser } from './base-value-parser'; diff --git a/packages/core/database/src/view-collection.ts b/packages/core/database/src/view-collection.ts index 766ff0fc72..0e09c43b99 100644 --- a/packages/core/database/src/view-collection.ts +++ b/packages/core/database/src/view-collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, CollectionContext, CollectionOptions } from './collection'; export class ViewCollection extends Collection { diff --git a/packages/core/database/src/view/field-type-map.ts b/packages/core/database/src/view/field-type-map.ts index c97ceb0bcd..d3cf6c4aac 100644 --- a/packages/core/database/src/view/field-type-map.ts +++ b/packages/core/database/src/view/field-type-map.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const postgres = { 'character varying': ['string', 'uuid', 'nanoid'], varchar: ['string', 'uuid', 'nanoid'], diff --git a/packages/core/database/src/view/view-inference.ts b/packages/core/database/src/view/view-inference.ts index 732bdbcf3e..992f8ccbaa 100644 --- a/packages/core/database/src/view/view-inference.ts +++ b/packages/core/database/src/view/view-inference.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isArray } from 'mathjs'; import Database from '../database'; import FieldTypeMap from './field-type-map'; diff --git a/packages/core/devtools/src/index.js b/packages/core/devtools/src/index.js index e69de29bb2..d3436f53a5 100644 --- a/packages/core/devtools/src/index.js +++ b/packages/core/devtools/src/index.js @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/core/evaluators/src/client/engines/formulajs.ts b/packages/core/evaluators/src/client/engines/formulajs.ts index 2a96a12624..21be7808ad 100644 --- a/packages/core/evaluators/src/client/engines/formulajs.ts +++ b/packages/core/evaluators/src/client/engines/formulajs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import formulajs from '../../utils/formulajs'; export default { diff --git a/packages/core/evaluators/src/client/engines/mathjs.ts b/packages/core/evaluators/src/client/engines/mathjs.ts index 6a99300559..6739e8e487 100644 --- a/packages/core/evaluators/src/client/engines/mathjs.ts +++ b/packages/core/evaluators/src/client/engines/mathjs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import mathjs from '../../utils/mathjs'; export default { diff --git a/packages/core/evaluators/src/client/engines/string.ts b/packages/core/evaluators/src/client/engines/string.ts index 6936eaca4c..805b37c68d 100644 --- a/packages/core/evaluators/src/client/engines/string.ts +++ b/packages/core/evaluators/src/client/engines/string.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import string from '../../utils/string'; export default { diff --git a/packages/core/evaluators/src/client/index.tsx b/packages/core/evaluators/src/client/index.tsx index 882ae2440f..6079894ebf 100644 --- a/packages/core/evaluators/src/client/index.tsx +++ b/packages/core/evaluators/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils/client'; import mathjs from './engines/mathjs'; diff --git a/packages/core/evaluators/src/index.ts b/packages/core/evaluators/src/index.ts index a5fb6b4d3f..91875b7102 100644 --- a/packages/core/evaluators/src/index.ts +++ b/packages/core/evaluators/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; export * from './server'; diff --git a/packages/core/evaluators/src/server/__tests__/index.test.ts b/packages/core/evaluators/src/server/__tests__/index.test.ts index b53fdb58bb..f5bfe2549a 100644 --- a/packages/core/evaluators/src/server/__tests__/index.test.ts +++ b/packages/core/evaluators/src/server/__tests__/index.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { evaluate } from '../../utils'; import evaluators from '..'; diff --git a/packages/core/evaluators/src/server/index.ts b/packages/core/evaluators/src/server/index.ts index b89e089b0c..d921bc358e 100644 --- a/packages/core/evaluators/src/server/index.ts +++ b/packages/core/evaluators/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils'; import { Evaluator } from '../utils'; diff --git a/packages/core/evaluators/src/utils/__tests__/appendArrayColumn.test.ts b/packages/core/evaluators/src/utils/__tests__/appendArrayColumn.test.ts index 8c8897ca3d..41191c0a8a 100644 --- a/packages/core/evaluators/src/utils/__tests__/appendArrayColumn.test.ts +++ b/packages/core/evaluators/src/utils/__tests__/appendArrayColumn.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { get } from 'lodash'; import { appendArrayColumn } from '..'; diff --git a/packages/core/evaluators/src/utils/formulajs.ts b/packages/core/evaluators/src/utils/formulajs.ts index 84838ed982..21310158f3 100644 --- a/packages/core/evaluators/src/utils/formulajs.ts +++ b/packages/core/evaluators/src/utils/formulajs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as functions from '@formulajs/formulajs'; import { round } from 'mathjs'; diff --git a/packages/core/evaluators/src/utils/index.ts b/packages/core/evaluators/src/utils/index.ts index d3bdc4661b..676a1b53e0 100644 --- a/packages/core/evaluators/src/utils/index.ts +++ b/packages/core/evaluators/src/utils/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { get, cloneDeep } from 'lodash'; export type Scope = { [key: string]: any }; diff --git a/packages/core/evaluators/src/utils/mathjs.ts b/packages/core/evaluators/src/utils/mathjs.ts index b2679a4798..7b06c086a4 100644 --- a/packages/core/evaluators/src/utils/mathjs.ts +++ b/packages/core/evaluators/src/utils/mathjs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as math from 'mathjs'; import { evaluate } from '.'; diff --git a/packages/core/evaluators/src/utils/string.ts b/packages/core/evaluators/src/utils/string.ts index f9ff96b486..cb30fca857 100644 --- a/packages/core/evaluators/src/utils/string.ts +++ b/packages/core/evaluators/src/utils/string.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { evaluate } from '.'; export default evaluate.bind( diff --git a/packages/core/logger/src/config.ts b/packages/core/logger/src/config.ts index 2960547973..9c04023fda 100644 --- a/packages/core/logger/src/config.ts +++ b/packages/core/logger/src/config.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; export const getLoggerLevel = () => diff --git a/packages/core/logger/src/format.ts b/packages/core/logger/src/format.ts index 362ecb23fd..70f5c988d1 100644 --- a/packages/core/logger/src/format.ts +++ b/packages/core/logger/src/format.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import chalk from 'chalk'; import winston from 'winston'; import { getLoggerFormat } from './config'; diff --git a/packages/core/logger/src/index.ts b/packages/core/logger/src/index.ts index 18e521a52e..70328c52f6 100644 --- a/packages/core/logger/src/index.ts +++ b/packages/core/logger/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './config'; export * from './logger'; export * from './system-logger'; diff --git a/packages/core/logger/src/logger.ts b/packages/core/logger/src/logger.ts index 7a51f1ea28..05c55a4dd7 100644 --- a/packages/core/logger/src/logger.ts +++ b/packages/core/logger/src/logger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import winston, { Logger } from 'winston'; import 'winston-daily-rotate-file'; import { getLoggerLevel } from './config'; diff --git a/packages/core/logger/src/request-logger.ts b/packages/core/logger/src/request-logger.ts index b1e6450326..8ae72f96ec 100644 --- a/packages/core/logger/src/request-logger.ts +++ b/packages/core/logger/src/request-logger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getLoggerFilePath } from './config'; import { LoggerOptions, createLogger } from './logger'; import { pick } from 'lodash'; diff --git a/packages/core/logger/src/system-logger.ts b/packages/core/logger/src/system-logger.ts index 4491bb4005..37e91a350d 100644 --- a/packages/core/logger/src/system-logger.ts +++ b/packages/core/logger/src/system-logger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import winston, { format, Logger } from 'winston'; import { createLogger, LoggerOptions } from './logger'; import Transport from 'winston-transport'; diff --git a/packages/core/logger/src/transports.ts b/packages/core/logger/src/transports.ts index 65786b6cd3..c37b74f65c 100644 --- a/packages/core/logger/src/transports.ts +++ b/packages/core/logger/src/transports.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import winston from 'winston'; import { DailyRotateFileTransportOptions } from 'winston-daily-rotate-file'; import { LoggerOptions } from './logger'; diff --git a/packages/core/resourcer/src/__tests__/actions/demo0.js b/packages/core/resourcer/src/__tests__/actions/demo0.js index 8760d6bd66..77895317f6 100644 --- a/packages/core/resourcer/src/__tests__/actions/demo0.js +++ b/packages/core/resourcer/src/__tests__/actions/demo0.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + module.exports = async function (ctx, next) { ctx.arr.push(7); await next(); diff --git a/packages/core/resourcer/src/__tests__/actions/demo1.ts b/packages/core/resourcer/src/__tests__/actions/demo1.ts index 0d388f7681..938328c1fc 100644 --- a/packages/core/resourcer/src/__tests__/actions/demo1.ts +++ b/packages/core/resourcer/src/__tests__/actions/demo1.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default async function (ctx, next) { ctx.arr.push(9); await next(); diff --git a/packages/core/resourcer/src/__tests__/koa.test.ts b/packages/core/resourcer/src/__tests__/koa.test.ts index 38d5efe5f2..b3eb0a1b9f 100644 --- a/packages/core/resourcer/src/__tests__/koa.test.ts +++ b/packages/core/resourcer/src/__tests__/koa.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; import supertest from 'supertest'; diff --git a/packages/core/resourcer/src/__tests__/middlewares/demo0.js b/packages/core/resourcer/src/__tests__/middlewares/demo0.js index ea19e549a4..ddf7a0dfb4 100644 --- a/packages/core/resourcer/src/__tests__/middlewares/demo0.js +++ b/packages/core/resourcer/src/__tests__/middlewares/demo0.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + module.exports = async function (ctx, next) { ctx.arr.push(1); await next(); diff --git a/packages/core/resourcer/src/__tests__/middlewares/demo1.ts b/packages/core/resourcer/src/__tests__/middlewares/demo1.ts index 09db5c9dd4..c08039d5cd 100644 --- a/packages/core/resourcer/src/__tests__/middlewares/demo1.ts +++ b/packages/core/resourcer/src/__tests__/middlewares/demo1.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default async function (ctx, next) { ctx.arr.push(2); await next(); diff --git a/packages/core/resourcer/src/__tests__/resourcer.test.ts b/packages/core/resourcer/src/__tests__/resourcer.test.ts index 8e8bba319b..eda5618890 100644 --- a/packages/core/resourcer/src/__tests__/resourcer.test.ts +++ b/packages/core/resourcer/src/__tests__/resourcer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { Action, Resourcer, ResourcerContext } from '..'; import Resource from '../resource'; diff --git a/packages/core/resourcer/src/__tests__/resources/demo.ts b/packages/core/resourcer/src/__tests__/resources/demo.ts index 3d9d2dcb78..2b0d3acbbd 100644 --- a/packages/core/resourcer/src/__tests__/resources/demo.ts +++ b/packages/core/resourcer/src/__tests__/resources/demo.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'demo', actions: { diff --git a/packages/core/resourcer/src/__tests__/utils.test.ts b/packages/core/resourcer/src/__tests__/utils.test.ts index d7cb924e07..5ba1b8d783 100644 --- a/packages/core/resourcer/src/__tests__/utils.test.ts +++ b/packages/core/resourcer/src/__tests__/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mergeFields, parseFields, parseQuery, parseRequest } from '..'; describe('utils', () => { diff --git a/packages/core/resourcer/src/action.ts b/packages/core/resourcer/src/action.ts index 98594d1ce0..f2a91affde 100644 --- a/packages/core/resourcer/src/action.ts +++ b/packages/core/resourcer/src/action.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { assign, MergeStrategies, requireModule } from '@nocobase/utils'; import compose from 'koa-compose'; import _ from 'lodash'; diff --git a/packages/core/resourcer/src/index.ts b/packages/core/resourcer/src/index.ts index d4deaa4ec1..eb9fbf3f64 100644 --- a/packages/core/resourcer/src/index.ts +++ b/packages/core/resourcer/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './utils'; export * from './middleware'; export * from './action'; diff --git a/packages/core/resourcer/src/middleware.ts b/packages/core/resourcer/src/middleware.ts index 146ea7a5bc..e844d043f0 100644 --- a/packages/core/resourcer/src/middleware.ts +++ b/packages/core/resourcer/src/middleware.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import compose from 'koa-compose'; import { requireModule } from '@nocobase/utils'; import { ActionName } from './action'; diff --git a/packages/core/resourcer/src/resource.ts b/packages/core/resourcer/src/resource.ts index ffb1ddf120..b329fcffd9 100644 --- a/packages/core/resourcer/src/resource.ts +++ b/packages/core/resourcer/src/resource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import Action, { ActionName, ActionType } from './action'; import Middleware, { MiddlewareType } from './middleware'; diff --git a/packages/core/resourcer/src/resourcer.ts b/packages/core/resourcer/src/resourcer.ts index 6a8c378670..f8609e6c80 100644 --- a/packages/core/resourcer/src/resourcer.ts +++ b/packages/core/resourcer/src/resourcer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { importModule, Toposort, ToposortOptions } from '@nocobase/utils'; import glob from 'glob'; import compose from 'koa-compose'; diff --git a/packages/core/resourcer/src/utils.ts b/packages/core/resourcer/src/utils.ts index b9d9cf7771..3ef70517e6 100644 --- a/packages/core/resourcer/src/utils.ts +++ b/packages/core/resourcer/src/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; // @ts-ignore import { pathToRegexp } from 'path-to-regexp'; diff --git a/packages/core/sdk/src/APIClient.ts b/packages/core/sdk/src/APIClient.ts index 7ce009d1ff..3dedb365c9 100644 --- a/packages/core/sdk/src/APIClient.ts +++ b/packages/core/sdk/src/APIClient.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import axios, { AxiosInstance, AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse } from 'axios'; import qs from 'qs'; import getSubAppName from './getSubAppName'; diff --git a/packages/core/sdk/src/__tests__/api-client.test.ts b/packages/core/sdk/src/__tests__/api-client.test.ts index 155349bbbf..feb321b208 100644 --- a/packages/core/sdk/src/__tests__/api-client.test.ts +++ b/packages/core/sdk/src/__tests__/api-client.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AxiosResponse } from 'axios'; import MockAdapter from 'axios-mock-adapter'; import { APIClient, Storage } from '../'; diff --git a/packages/core/sdk/src/getSubAppName.ts b/packages/core/sdk/src/getSubAppName.ts index c56d84e402..78f468bdb0 100644 --- a/packages/core/sdk/src/getSubAppName.ts +++ b/packages/core/sdk/src/getSubAppName.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const getSubAppName = (publicPath = '/') => { const prefix = `${publicPath}apps/`; if (!window.location.pathname.startsWith(prefix)) { diff --git a/packages/core/sdk/src/index.ts b/packages/core/sdk/src/index.ts index 907a148cbe..160c4faf82 100644 --- a/packages/core/sdk/src/index.ts +++ b/packages/core/sdk/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './APIClient'; export { default as getSubAppName } from './getSubAppName'; diff --git a/packages/core/server/src/__tests__/app-command.test.ts b/packages/core/server/src/__tests__/app-command.test.ts index 8da63bcf80..5ba00af8e5 100644 --- a/packages/core/server/src/__tests__/app-command.test.ts +++ b/packages/core/server/src/__tests__/app-command.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/database'; import { vi } from 'vitest'; import Application, { ApplicationOptions } from '../application'; diff --git a/packages/core/server/src/__tests__/app-life-cycle.test.ts b/packages/core/server/src/__tests__/app-life-cycle.test.ts index 0309b295fe..b30ae8352b 100644 --- a/packages/core/server/src/__tests__/app-life-cycle.test.ts +++ b/packages/core/server/src/__tests__/app-life-cycle.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import Application, { ApplicationOptions } from '../application'; import { createAppProxy } from '../helper'; diff --git a/packages/core/server/src/__tests__/app-supervisor.test.ts b/packages/core/server/src/__tests__/app-supervisor.test.ts index be5d93af5b..04cccc7372 100644 --- a/packages/core/server/src/__tests__/app-supervisor.test.ts +++ b/packages/core/server/src/__tests__/app-supervisor.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppSupervisor } from '../app-supervisor'; describe('App Supervisor', () => { diff --git a/packages/core/server/src/__tests__/app.test.ts b/packages/core/server/src/__tests__/app.test.ts index ac1dd64950..991aee40db 100644 --- a/packages/core/server/src/__tests__/app.test.ts +++ b/packages/core/server/src/__tests__/app.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from '@nocobase/database'; import { MockServer, mockServer } from '@nocobase/test'; import { vi } from 'vitest'; diff --git a/packages/core/server/src/__tests__/application-version.test.ts b/packages/core/server/src/__tests__/application-version.test.ts index 01f9ecd127..be5279aa17 100644 --- a/packages/core/server/src/__tests__/application-version.test.ts +++ b/packages/core/server/src/__tests__/application-version.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockServer, MockServer } from '@nocobase/test'; describe('application version', () => { diff --git a/packages/core/server/src/__tests__/application.test.ts b/packages/core/server/src/__tests__/application.test.ts index c3ca6bf984..24c273a4d0 100644 --- a/packages/core/server/src/__tests__/application.test.ts +++ b/packages/core/server/src/__tests__/application.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import supertest from 'supertest'; import { Application } from '../application'; diff --git a/packages/core/server/src/__tests__/command.test.ts b/packages/core/server/src/__tests__/command.test.ts index 613f67a8b0..d271a974fa 100644 --- a/packages/core/server/src/__tests__/command.test.ts +++ b/packages/core/server/src/__tests__/command.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/database'; import Application, { ApplicationOptions } from '../application'; diff --git a/packages/core/server/src/__tests__/cron.test.ts b/packages/core/server/src/__tests__/cron.test.ts index 68ad6e624e..73cd20674b 100644 --- a/packages/core/server/src/__tests__/cron.test.ts +++ b/packages/core/server/src/__tests__/cron.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { mockServer, MockServer, waitSecond } from '@nocobase/test'; import { CronJobManager } from '../cron/cron-job-manager'; diff --git a/packages/core/server/src/__tests__/fixtures/long-json.ts b/packages/core/server/src/__tests__/fixtures/long-json.ts index 5f1185eb1d..c39ff5ceaf 100644 --- a/packages/core/server/src/__tests__/fixtures/long-json.ts +++ b/packages/core/server/src/__tests__/fixtures/long-json.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { title: 'title', content: getLongString(), diff --git a/packages/core/server/src/__tests__/gateway.test.ts b/packages/core/server/src/__tests__/gateway.test.ts index 870dbd7dfb..09fecfe368 100644 --- a/packages/core/server/src/__tests__/gateway.test.ts +++ b/packages/core/server/src/__tests__/gateway.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { startServerWithRandomPort, supertest, waitSecond } from '@nocobase/test'; import { vi } from 'vitest'; import ws from 'ws'; diff --git a/packages/core/server/src/__tests__/gateway/ipc.test.ts b/packages/core/server/src/__tests__/gateway/ipc.test.ts index 7968996c19..776767bf99 100644 --- a/packages/core/server/src/__tests__/gateway/ipc.test.ts +++ b/packages/core/server/src/__tests__/gateway/ipc.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mkdtemp } from 'fs-extra'; import { join } from 'path'; import { tmpdir } from 'node:os'; diff --git a/packages/core/server/src/__tests__/i18next.test.ts b/packages/core/server/src/__tests__/i18next.test.ts index ae13255c46..f61172a1bc 100644 --- a/packages/core/server/src/__tests__/i18next.test.ts +++ b/packages/core/server/src/__tests__/i18next.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import supertest from 'supertest'; import { Application } from '../application'; diff --git a/packages/core/server/src/__tests__/life-cycle.test.ts b/packages/core/server/src/__tests__/life-cycle.test.ts index 16e895f66b..3e0287851b 100644 --- a/packages/core/server/src/__tests__/life-cycle.test.ts +++ b/packages/core/server/src/__tests__/life-cycle.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import Application from '../application'; import { Plugin } from '../plugin'; diff --git a/packages/core/server/src/__tests__/main-data-source.test.ts b/packages/core/server/src/__tests__/main-data-source.test.ts index 84ccf72b09..77c9bba67e 100644 --- a/packages/core/server/src/__tests__/main-data-source.test.ts +++ b/packages/core/server/src/__tests__/main-data-source.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; describe('MainDataSource', () => { diff --git a/packages/core/server/src/__tests__/middlewares/data-wrapping.test.ts b/packages/core/server/src/__tests__/middlewares/data-wrapping.test.ts index e8ce706f99..87eb104e0f 100644 --- a/packages/core/server/src/__tests__/middlewares/data-wrapping.test.ts +++ b/packages/core/server/src/__tests__/middlewares/data-wrapping.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import supertest from 'supertest'; import { Application } from '../../application'; import { dataWrapping } from '../../middlewares'; diff --git a/packages/core/server/src/__tests__/multiple-application.test.ts b/packages/core/server/src/__tests__/multiple-application.test.ts index c2e683bb27..2582d00505 100644 --- a/packages/core/server/src/__tests__/multiple-application.test.ts +++ b/packages/core/server/src/__tests__/multiple-application.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppSupervisor } from '@nocobase/server'; import { mockServer, MockServer } from '@nocobase/test'; import { uid } from '@nocobase/utils'; diff --git a/packages/core/server/src/__tests__/plugin.test.ts b/packages/core/server/src/__tests__/plugin.test.ts index 781c3f3a30..f835e18515 100644 --- a/packages/core/server/src/__tests__/plugin.test.ts +++ b/packages/core/server/src/__tests__/plugin.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import { mockServer, MockServer } from '@nocobase/test'; import { Plugin } from '../plugin'; diff --git a/packages/core/server/src/__tests__/plugins/plugin1.ts b/packages/core/server/src/__tests__/plugins/plugin1.ts index 848a2259da..2c94e1e017 100644 --- a/packages/core/server/src/__tests__/plugins/plugin1.ts +++ b/packages/core/server/src/__tests__/plugins/plugin1.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../plugin'; export default class Plugin1 extends Plugin { diff --git a/packages/core/server/src/__tests__/plugins/plugin2.ts b/packages/core/server/src/__tests__/plugins/plugin2.ts index 9be40ce963..a2a58736c5 100644 --- a/packages/core/server/src/__tests__/plugins/plugin2.ts +++ b/packages/core/server/src/__tests__/plugins/plugin2.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../plugin'; export default class Plugin2 extends Plugin { diff --git a/packages/core/server/src/__tests__/plugins/plugin3.ts b/packages/core/server/src/__tests__/plugins/plugin3.ts index b30b699517..8256736c73 100644 --- a/packages/core/server/src/__tests__/plugins/plugin3.ts +++ b/packages/core/server/src/__tests__/plugins/plugin3.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../plugin'; export default class Plugin3 extends Plugin { diff --git a/packages/core/server/src/__tests__/plugins/test-a.ts b/packages/core/server/src/__tests__/plugins/test-a.ts index 824760fdd9..77dfd7ac21 100644 --- a/packages/core/server/src/__tests__/plugins/test-a.ts +++ b/packages/core/server/src/__tests__/plugins/test-a.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../plugin'; export default class TestA extends Plugin { diff --git a/packages/core/server/src/__tests__/plugins/test-b.ts b/packages/core/server/src/__tests__/plugins/test-b.ts index 6a4f07a736..e93d1300e1 100644 --- a/packages/core/server/src/__tests__/plugins/test-b.ts +++ b/packages/core/server/src/__tests__/plugins/test-b.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '../../plugin'; export default class TestB extends Plugin { diff --git a/packages/core/server/src/__tests__/pm.test.ts b/packages/core/server/src/__tests__/pm.test.ts index 6f9ca9fd54..820fdff09e 100644 --- a/packages/core/server/src/__tests__/pm.test.ts +++ b/packages/core/server/src/__tests__/pm.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Plugin from '../plugin'; import { PluginManager } from '../plugin-manager'; import { vi } from 'vitest'; diff --git a/packages/core/server/src/__tests__/validate-filter-params.test.ts b/packages/core/server/src/__tests__/validate-filter-params.test.ts index aaf1219808..2f2bc8dbd0 100644 --- a/packages/core/server/src/__tests__/validate-filter-params.test.ts +++ b/packages/core/server/src/__tests__/validate-filter-params.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import supertest from 'supertest'; import { Application } from '../application'; diff --git a/packages/core/server/src/acl/available-action.ts b/packages/core/server/src/acl/available-action.ts index e0ad40c19f..12ea6cdbeb 100644 --- a/packages/core/server/src/acl/available-action.ts +++ b/packages/core/server/src/acl/available-action.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AvailableActionOptions } from '@nocobase/acl'; const availableActions: { diff --git a/packages/core/server/src/acl/index.ts b/packages/core/server/src/acl/index.ts index 4f917a93b1..f9c6337df7 100644 --- a/packages/core/server/src/acl/index.ts +++ b/packages/core/server/src/acl/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { availableActions } from './available-action'; diff --git a/packages/core/server/src/app-command.ts b/packages/core/server/src/app-command.ts index d382313864..4b8ad2d2df 100644 --- a/packages/core/server/src/app-command.ts +++ b/packages/core/server/src/app-command.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Command } from 'commander'; export class AppCommand extends Command { diff --git a/packages/core/server/src/app-supervisor.ts b/packages/core/server/src/app-supervisor.ts index aefab0684a..f64bccc632 100644 --- a/packages/core/server/src/app-supervisor.ts +++ b/packages/core/server/src/app-supervisor.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { applyMixins, AsyncEmitter } from '@nocobase/utils'; import { Mutex } from 'async-mutex'; import { EventEmitter } from 'events'; diff --git a/packages/core/server/src/application.ts b/packages/core/server/src/application.ts index 2528c35a8f..835f07d2d8 100644 --- a/packages/core/server/src/application.ts +++ b/packages/core/server/src/application.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerActions } from '@nocobase/actions'; import { actions as authActions, AuthManager, AuthManagerOptions } from '@nocobase/auth'; import { Cache, CacheManager, CacheManagerOptions } from '@nocobase/cache'; diff --git a/packages/core/server/src/cache/index.ts b/packages/core/server/src/cache/index.ts index ddd0329514..9c0bf3d123 100644 --- a/packages/core/server/src/cache/index.ts +++ b/packages/core/server/src/cache/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CacheManagerOptions, CacheManager } from '@nocobase/cache'; import Application from '../application'; diff --git a/packages/core/server/src/commands/console.ts b/packages/core/server/src/commands/console.ts index e869b3aa16..52ed023391 100644 --- a/packages/core/server/src/commands/console.ts +++ b/packages/core/server/src/commands/console.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/create-migration.ts b/packages/core/server/src/commands/create-migration.ts index 599b3b0d44..0c3f4f6f1d 100644 --- a/packages/core/server/src/commands/create-migration.ts +++ b/packages/core/server/src/commands/create-migration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import dayjs from 'dayjs'; diff --git a/packages/core/server/src/commands/db-auth.ts b/packages/core/server/src/commands/db-auth.ts index 754ec01f95..d8b5678c88 100644 --- a/packages/core/server/src/commands/db-auth.ts +++ b/packages/core/server/src/commands/db-auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/db-clean.ts b/packages/core/server/src/commands/db-clean.ts index 841b216343..8067c812a7 100644 --- a/packages/core/server/src/commands/db-clean.ts +++ b/packages/core/server/src/commands/db-clean.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/db-sync.ts b/packages/core/server/src/commands/db-sync.ts index 20faaf0e4b..2a46fa0b4c 100644 --- a/packages/core/server/src/commands/db-sync.ts +++ b/packages/core/server/src/commands/db-sync.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/destroy.ts b/packages/core/server/src/commands/destroy.ts index 39b8a72b32..0e28661e9f 100644 --- a/packages/core/server/src/commands/destroy.ts +++ b/packages/core/server/src/commands/destroy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/index.ts b/packages/core/server/src/commands/index.ts index 86afd7b0a0..d7e0c0d882 100644 --- a/packages/core/server/src/commands/index.ts +++ b/packages/core/server/src/commands/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/install.ts b/packages/core/server/src/commands/install.ts index e8a52ca30e..adddbe150c 100644 --- a/packages/core/server/src/commands/install.ts +++ b/packages/core/server/src/commands/install.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/migrator.ts b/packages/core/server/src/commands/migrator.ts index 999f098cd0..4d17b713c3 100644 --- a/packages/core/server/src/commands/migrator.ts +++ b/packages/core/server/src/commands/migrator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/pm.ts b/packages/core/server/src/commands/pm.ts index f3d7bfa6d9..fc00100be9 100644 --- a/packages/core/server/src/commands/pm.ts +++ b/packages/core/server/src/commands/pm.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { AppSupervisor } from '../app-supervisor'; diff --git a/packages/core/server/src/commands/refresh.ts b/packages/core/server/src/commands/refresh.ts index 27073c5089..baad2ee053 100644 --- a/packages/core/server/src/commands/refresh.ts +++ b/packages/core/server/src/commands/refresh.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/restart.ts b/packages/core/server/src/commands/restart.ts index f4c49e020e..9c4ecf6362 100644 --- a/packages/core/server/src/commands/restart.ts +++ b/packages/core/server/src/commands/restart.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/start.ts b/packages/core/server/src/commands/start.ts index 8db20cfa23..65a6e0885b 100644 --- a/packages/core/server/src/commands/start.ts +++ b/packages/core/server/src/commands/start.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { fsExists } from '@nocobase/utils'; diff --git a/packages/core/server/src/commands/stop.ts b/packages/core/server/src/commands/stop.ts index a1844f45fb..aeb73cb854 100644 --- a/packages/core/server/src/commands/stop.ts +++ b/packages/core/server/src/commands/stop.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/commands/upgrade.ts b/packages/core/server/src/commands/upgrade.ts index c50e5b01db..ba07693178 100644 --- a/packages/core/server/src/commands/upgrade.ts +++ b/packages/core/server/src/commands/upgrade.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import Application from '../application'; diff --git a/packages/core/server/src/cron/cron-job-manager.ts b/packages/core/server/src/cron/cron-job-manager.ts index 06736cd2a7..d798967f61 100644 --- a/packages/core/server/src/cron/cron-job-manager.ts +++ b/packages/core/server/src/cron/cron-job-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CronJob, CronJobParameters } from 'cron'; import Application from '../application'; diff --git a/packages/core/server/src/errors/application-not-install.ts b/packages/core/server/src/errors/application-not-install.ts index ff2ad030cc..d02773c2ef 100644 --- a/packages/core/server/src/errors/application-not-install.ts +++ b/packages/core/server/src/errors/application-not-install.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class ApplicationNotInstall extends Error { code: string; diff --git a/packages/core/server/src/errors/handler.ts b/packages/core/server/src/errors/handler.ts index aaa3ee4dc0..5ba7fc111f 100644 --- a/packages/core/server/src/errors/handler.ts +++ b/packages/core/server/src/errors/handler.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PluginCommandError } from './plugin-command-error'; type ErrorLevel = 'fatal' | 'silly' | 'warn'; diff --git a/packages/core/server/src/errors/plugin-command-error.ts b/packages/core/server/src/errors/plugin-command-error.ts index 3e6e5c4ec1..0d33faa99d 100644 --- a/packages/core/server/src/errors/plugin-command-error.ts +++ b/packages/core/server/src/errors/plugin-command-error.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class PluginCommandError extends Error {} diff --git a/packages/core/server/src/errors/plugin-not-exist.ts b/packages/core/server/src/errors/plugin-not-exist.ts index 32a73708fc..527c0c2755 100644 --- a/packages/core/server/src/errors/plugin-not-exist.ts +++ b/packages/core/server/src/errors/plugin-not-exist.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class PluginNotExist extends Error {} diff --git a/packages/core/server/src/gateway/errors.ts b/packages/core/server/src/gateway/errors.ts index 7557cab0cb..be316245f7 100644 --- a/packages/core/server/src/gateway/errors.ts +++ b/packages/core/server/src/gateway/errors.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppSupervisor } from '../app-supervisor'; import lodash from 'lodash'; diff --git a/packages/core/server/src/gateway/index.ts b/packages/core/server/src/gateway/index.ts index ba9441783a..f090937760 100644 --- a/packages/core/server/src/gateway/index.ts +++ b/packages/core/server/src/gateway/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createSystemLogger, getLoggerFilePath, SystemLogger } from '@nocobase/logger'; import { Registry, Toposort, ToposortOptions, uid } from '@nocobase/utils'; import { createStoragePluginsSymlink } from '@nocobase/utils/plugin-symlink'; diff --git a/packages/core/server/src/gateway/ipc-socket-client.ts b/packages/core/server/src/gateway/ipc-socket-client.ts index df3cebe7dd..9f45a2d551 100644 --- a/packages/core/server/src/gateway/ipc-socket-client.ts +++ b/packages/core/server/src/gateway/ipc-socket-client.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Logger, createConsoleLogger } from '@nocobase/logger'; import * as events from 'events'; import net from 'net'; diff --git a/packages/core/server/src/gateway/ipc-socket-server.ts b/packages/core/server/src/gateway/ipc-socket-server.ts index 8288e94c61..3aad5367e9 100644 --- a/packages/core/server/src/gateway/ipc-socket-server.ts +++ b/packages/core/server/src/gateway/ipc-socket-server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { randomUUID } from 'crypto'; import fs from 'fs'; import net from 'net'; diff --git a/packages/core/server/src/gateway/ws-server.ts b/packages/core/server/src/gateway/ws-server.ts index e9ec0fbcd2..c118be874c 100644 --- a/packages/core/server/src/gateway/ws-server.ts +++ b/packages/core/server/src/gateway/ws-server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Gateway, IncomingRequest } from '../gateway'; import WebSocket, { WebSocketServer } from 'ws'; import { nanoid } from 'nanoid'; diff --git a/packages/core/server/src/helper.ts b/packages/core/server/src/helper.ts index 97e6a91f39..7335732f7b 100644 --- a/packages/core/server/src/helper.ts +++ b/packages/core/server/src/helper.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import cors from '@koa/cors'; import { requestLogger } from '@nocobase/logger'; import { Resourcer } from '@nocobase/resourcer'; diff --git a/packages/core/server/src/helpers/application-version.ts b/packages/core/server/src/helpers/application-version.ts index 2d2abf72c4..ba5c68634c 100644 --- a/packages/core/server/src/helpers/application-version.ts +++ b/packages/core/server/src/helpers/application-version.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import semver from 'semver'; import Application from '../application'; diff --git a/packages/core/server/src/index.ts b/packages/core/server/src/index.ts index b9021439e0..88027eaf67 100644 --- a/packages/core/server/src/index.ts +++ b/packages/core/server/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './application'; export { Application as default } from './application'; export * as middlewares from './middlewares'; diff --git a/packages/core/server/src/locale/index.ts b/packages/core/server/src/locale/index.ts index 5501675d52..f7933b83de 100644 --- a/packages/core/server/src/locale/index.ts +++ b/packages/core/server/src/locale/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './locale'; diff --git a/packages/core/server/src/locale/locale.ts b/packages/core/server/src/locale/locale.ts index e085a1f0ab..c688a011af 100644 --- a/packages/core/server/src/locale/locale.ts +++ b/packages/core/server/src/locale/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { lodash } from '@nocobase/utils'; import Application from '../application'; diff --git a/packages/core/server/src/locale/resource.ts b/packages/core/server/src/locale/resource.ts index 43351be0a2..d3db044f48 100644 --- a/packages/core/server/src/locale/resource.ts +++ b/packages/core/server/src/locale/resource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { requireModule } from '@nocobase/utils'; const arr2obj = (items: any[]) => { diff --git a/packages/core/server/src/main-data-source.ts b/packages/core/server/src/main-data-source.ts index 00028a2483..136a71fb34 100644 --- a/packages/core/server/src/main-data-source.ts +++ b/packages/core/server/src/main-data-source.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataSourceOptions, SequelizeDataSource } from '@nocobase/data-source-manager'; import { parseVariables } from './middlewares'; import { dateTemplate } from './middlewares/data-template'; diff --git a/packages/core/server/src/middlewares/data-template.ts b/packages/core/server/src/middlewares/data-template.ts index a2a625f4c4..f795a4613b 100644 --- a/packages/core/server/src/middlewares/data-template.ts +++ b/packages/core/server/src/middlewares/data-template.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { Collection } from '@nocobase/database'; diff --git a/packages/core/server/src/middlewares/data-wrapping.ts b/packages/core/server/src/middlewares/data-wrapping.ts index 39025623e2..2d2017da93 100644 --- a/packages/core/server/src/middlewares/data-wrapping.ts +++ b/packages/core/server/src/middlewares/data-wrapping.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import stream from 'stream'; diff --git a/packages/core/server/src/middlewares/i18n.ts b/packages/core/server/src/middlewares/i18n.ts index ffce15f7e9..877fdb5d78 100644 --- a/packages/core/server/src/middlewares/i18n.ts +++ b/packages/core/server/src/middlewares/i18n.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Locale } from '../locale'; export async function i18n(ctx, next) { diff --git a/packages/core/server/src/middlewares/index.ts b/packages/core/server/src/middlewares/index.ts index e80f49ad85..288fdd8598 100644 --- a/packages/core/server/src/middlewares/index.ts +++ b/packages/core/server/src/middlewares/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './data-wrapping'; export { parseVariables } from './parse-variables'; diff --git a/packages/core/server/src/middlewares/parse-variables.ts b/packages/core/server/src/middlewares/parse-variables.ts index b1dc14b0e0..109587707f 100644 --- a/packages/core/server/src/middlewares/parse-variables.ts +++ b/packages/core/server/src/middlewares/parse-variables.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getDateVars, parseFilter } from '@nocobase/utils'; function getUser(ctx) { diff --git a/packages/core/server/src/middlewares/validate-filter-params.ts b/packages/core/server/src/middlewares/validate-filter-params.ts index d1bc04f7d3..74f28efde5 100644 --- a/packages/core/server/src/middlewares/validate-filter-params.ts +++ b/packages/core/server/src/middlewares/validate-filter-params.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isValidFilter } from '@nocobase/utils'; export default async function validateFilterParams(ctx, next) { diff --git a/packages/core/server/src/migration.ts b/packages/core/server/src/migration.ts index 2ca93f040e..87dd171cf0 100644 --- a/packages/core/server/src/migration.ts +++ b/packages/core/server/src/migration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration as DbMigration } from '@nocobase/database'; diff --git a/packages/core/server/src/migrations/20230912193824-package-name-unique.ts b/packages/core/server/src/migrations/20230912193824-package-name-unique.ts index a8e50817bd..d6fe751572 100644 --- a/packages/core/server/src/migrations/20230912193824-package-name-unique.ts +++ b/packages/core/server/src/migrations/20230912193824-package-name-unique.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { DataTypes } from '@nocobase/database'; diff --git a/packages/core/server/src/migrations/20230912294620-update-pkg.ts b/packages/core/server/src/migrations/20230912294620-update-pkg.ts index 95118240db..6e98a2aedf 100644 --- a/packages/core/server/src/migrations/20230912294620-update-pkg.ts +++ b/packages/core/server/src/migrations/20230912294620-update-pkg.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '../migration'; diff --git a/packages/core/server/src/migrations/20240106082756-update-plugins.ts b/packages/core/server/src/migrations/20240106082756-update-plugins.ts index 80543dcc31..f86ca475b5 100644 --- a/packages/core/server/src/migrations/20240106082756-update-plugins.ts +++ b/packages/core/server/src/migrations/20240106082756-update-plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '../migration'; diff --git a/packages/core/server/src/migrations/20240428235620-rename-plugins.ts b/packages/core/server/src/migrations/20240428235620-rename-plugins.ts index c3dfb2f30d..2c5cc5e577 100644 --- a/packages/core/server/src/migrations/20240428235620-rename-plugins.ts +++ b/packages/core/server/src/migrations/20240428235620-rename-plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '../migration'; export default class extends Migration { diff --git a/packages/core/server/src/plugin-manager/clientStaticUtils.ts b/packages/core/server/src/plugin-manager/clientStaticUtils.ts index 700f35b87b..b23d65ecdd 100644 --- a/packages/core/server/src/plugin-manager/clientStaticUtils.ts +++ b/packages/core/server/src/plugin-manager/clientStaticUtils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import fs from 'fs'; diff --git a/packages/core/server/src/plugin-manager/constants.ts b/packages/core/server/src/plugin-manager/constants.ts index 260648cf5c..14231c0aab 100644 --- a/packages/core/server/src/plugin-manager/constants.ts +++ b/packages/core/server/src/plugin-manager/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const APP_NAME = 'nocobase'; export const DEFAULT_PLUGIN_STORAGE_PATH = 'storage/plugins'; export const DEFAULT_PLUGIN_PATH = 'packages/plugins/'; diff --git a/packages/core/server/src/plugin-manager/deps.ts b/packages/core/server/src/plugin-manager/deps.ts index 43eb9bce49..777488e28b 100644 --- a/packages/core/server/src/plugin-manager/deps.ts +++ b/packages/core/server/src/plugin-manager/deps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { version } from '../../package.json'; diff --git a/packages/core/server/src/plugin-manager/index.ts b/packages/core/server/src/plugin-manager/index.ts index af89af5314..b748c3bff1 100644 --- a/packages/core/server/src/plugin-manager/index.ts +++ b/packages/core/server/src/plugin-manager/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './clientStaticUtils'; export * from './plugin-manager'; diff --git a/packages/core/server/src/plugin-manager/middleware.ts b/packages/core/server/src/plugin-manager/middleware.ts index 547d837dac..82eec66d88 100644 --- a/packages/core/server/src/plugin-manager/middleware.ts +++ b/packages/core/server/src/plugin-manager/middleware.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { koaMulter as multer } from '@nocobase/utils'; diff --git a/packages/core/server/src/plugin-manager/options/collection.ts b/packages/core/server/src/plugin-manager/options/collection.ts index 61387145b2..489dfa7ada 100644 --- a/packages/core/server/src/plugin-manager/options/collection.ts +++ b/packages/core/server/src/plugin-manager/options/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/core/server/src/plugin-manager/options/resource.ts b/packages/core/server/src/plugin-manager/options/resource.ts index d5404e36be..210512b079 100644 --- a/packages/core/server/src/plugin-manager/options/resource.ts +++ b/packages/core/server/src/plugin-manager/options/resource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@nocobase/utils'; import fs from 'fs'; import path from 'path'; diff --git a/packages/core/server/src/plugin-manager/plugin-manager-repository.ts b/packages/core/server/src/plugin-manager/plugin-manager-repository.ts index 88ffd3c2e5..a245399234 100644 --- a/packages/core/server/src/plugin-manager/plugin-manager-repository.ts +++ b/packages/core/server/src/plugin-manager/plugin-manager-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import lodash from 'lodash'; import { PluginManager } from './plugin-manager'; diff --git a/packages/core/server/src/plugin-manager/plugin-manager.ts b/packages/core/server/src/plugin-manager/plugin-manager.ts index 938ce3dc8f..b309b1dacf 100644 --- a/packages/core/server/src/plugin-manager/plugin-manager.ts +++ b/packages/core/server/src/plugin-manager/plugin-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Topo from '@hapi/topo'; import { CleanOptions, Collection, SyncOptions } from '@nocobase/database'; import { importModule, isURL } from '@nocobase/utils'; diff --git a/packages/core/server/src/plugin-manager/types.ts b/packages/core/server/src/plugin-manager/types.ts index 98bee32b43..ea5f556e4a 100644 --- a/packages/core/server/src/plugin-manager/types.ts +++ b/packages/core/server/src/plugin-manager/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface PluginData { name?: string; packageName?: string; diff --git a/packages/core/server/src/plugin-manager/utils.ts b/packages/core/server/src/plugin-manager/utils.ts index f2f200072b..07c791dc4d 100644 --- a/packages/core/server/src/plugin-manager/utils.ts +++ b/packages/core/server/src/plugin-manager/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore next -- @preserve */ import { importModule, isURL } from '@nocobase/utils'; diff --git a/packages/core/server/src/plugin.ts b/packages/core/server/src/plugin.ts index e3d524c86b..b2db915063 100644 --- a/packages/core/server/src/plugin.ts +++ b/packages/core/server/src/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Model } from '@nocobase/database'; diff --git a/packages/core/telemetry/src/index.ts b/packages/core/telemetry/src/index.ts index 2e9d35da7f..2ec81458e5 100644 --- a/packages/core/telemetry/src/index.ts +++ b/packages/core/telemetry/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './telemetry'; diff --git a/packages/core/telemetry/src/metric.ts b/packages/core/telemetry/src/metric.ts index e29cce23ec..a85b71bf54 100644 --- a/packages/core/telemetry/src/metric.ts +++ b/packages/core/telemetry/src/metric.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils'; import { MetricReader, diff --git a/packages/core/telemetry/src/telemetry.ts b/packages/core/telemetry/src/telemetry.ts index fd74b93a80..bcd22e439a 100644 --- a/packages/core/telemetry/src/telemetry.ts +++ b/packages/core/telemetry/src/telemetry.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; import { Resource } from '@opentelemetry/resources'; import { InstrumentationOption, registerInstrumentations } from '@opentelemetry/instrumentation'; diff --git a/packages/core/telemetry/src/trace.ts b/packages/core/telemetry/src/trace.ts index 9e38e96e69..f623b16848 100644 --- a/packages/core/telemetry/src/trace.ts +++ b/packages/core/telemetry/src/trace.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils'; import { BatchSpanProcessor, ConsoleSpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-base'; import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'; diff --git a/packages/core/test/src/__tests__/omitSomeFields.test.ts b/packages/core/test/src/__tests__/omitSomeFields.test.ts index aabe521828..9066c1a3c3 100644 --- a/packages/core/test/src/__tests__/omitSomeFields.test.ts +++ b/packages/core/test/src/__tests__/omitSomeFields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { omitSomeFields } from '../e2e/e2eUtils'; describe('omitSomeFields', () => { diff --git a/packages/core/test/src/client/commonSettingsChecker/blockTitle.ts b/packages/core/test/src/client/commonSettingsChecker/blockTitle.ts index 15e7c132b8..346bba62f8 100644 --- a/packages/core/test/src/client/commonSettingsChecker/blockTitle.ts +++ b/packages/core/test/src/client/commonSettingsChecker/blockTitle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { waitFor, screen } from '@testing-library/react'; import { checkSettings } from '../settingsChecker'; import { expectNoTsError } from '../utils'; diff --git a/packages/core/test/src/client/commonSettingsChecker/fieldTitle.ts b/packages/core/test/src/client/commonSettingsChecker/fieldTitle.ts index 576fa3d577..c724650b54 100644 --- a/packages/core/test/src/client/commonSettingsChecker/fieldTitle.ts +++ b/packages/core/test/src/client/commonSettingsChecker/fieldTitle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { waitFor, screen } from '@testing-library/react'; import { checkSettings } from '../settingsChecker'; import { expectNoTsError } from '../utils'; diff --git a/packages/core/test/src/client/commonSettingsChecker/index.ts b/packages/core/test/src/client/commonSettingsChecker/index.ts index 4ece305be5..401500a6eb 100644 --- a/packages/core/test/src/client/commonSettingsChecker/index.ts +++ b/packages/core/test/src/client/commonSettingsChecker/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './blockTitle'; export * from './fieldTitle'; diff --git a/packages/core/test/src/client/formItemChecker/collectionField.ts b/packages/core/test/src/client/formItemChecker/collectionField.ts index 80129e3cf0..efbc78b6bb 100644 --- a/packages/core/test/src/client/formItemChecker/collectionField.ts +++ b/packages/core/test/src/client/formItemChecker/collectionField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/formItemChecker/common.tsx b/packages/core/test/src/client/formItemChecker/common.tsx index 8b56ad42ad..89f9cea563 100644 --- a/packages/core/test/src/client/formItemChecker/common.tsx +++ b/packages/core/test/src/client/formItemChecker/common.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectNoTsError } from '../utils'; export interface CommonFormItemCheckerOptions { diff --git a/packages/core/test/src/client/formItemChecker/icon.tsx b/packages/core/test/src/client/formItemChecker/icon.tsx index ac50a513b9..823518a83a 100644 --- a/packages/core/test/src/client/formItemChecker/icon.tsx +++ b/packages/core/test/src/client/formItemChecker/icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/formItemChecker/index.ts b/packages/core/test/src/client/formItemChecker/index.ts index 5c7f7862b6..83374b38b2 100644 --- a/packages/core/test/src/client/formItemChecker/index.ts +++ b/packages/core/test/src/client/formItemChecker/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { iconChecker, IconCheckOptions } from './icon'; import { radioChecker, RadioCheckOptions } from './radio'; import { inputChecker, InputCheckOptions } from './input'; diff --git a/packages/core/test/src/client/formItemChecker/input.tsx b/packages/core/test/src/client/formItemChecker/input.tsx index 531652e114..59b92ce9c2 100644 --- a/packages/core/test/src/client/formItemChecker/input.tsx +++ b/packages/core/test/src/client/formItemChecker/input.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/formItemChecker/number.ts b/packages/core/test/src/client/formItemChecker/number.ts index 5a3f1b17dd..552cfc6ccb 100644 --- a/packages/core/test/src/client/formItemChecker/number.ts +++ b/packages/core/test/src/client/formItemChecker/number.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/formItemChecker/radio.tsx b/packages/core/test/src/client/formItemChecker/radio.tsx index 22ab8856b0..01864ad17b 100644 --- a/packages/core/test/src/client/formItemChecker/radio.tsx +++ b/packages/core/test/src/client/formItemChecker/radio.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/formItemChecker/textarea.tsx b/packages/core/test/src/client/formItemChecker/textarea.tsx index 2bed3e54c7..107379e5b5 100644 --- a/packages/core/test/src/client/formItemChecker/textarea.tsx +++ b/packages/core/test/src/client/formItemChecker/textarea.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import userEvent from '@testing-library/user-event'; import { CommonFormItemCheckerOptions, getFormItemElement } from './common'; diff --git a/packages/core/test/src/client/index.tsx b/packages/core/test/src/client/index.tsx index f48fa8f1e4..ec74c099ee 100644 --- a/packages/core/test/src/client/index.tsx +++ b/packages/core/test/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render } from '@testing-library/react'; import { sleep } from '../web'; diff --git a/packages/core/test/src/client/renderApp.tsx b/packages/core/test/src/client/renderApp.tsx index cad4d78792..c7cd459473 100644 --- a/packages/core/test/src/client/renderApp.tsx +++ b/packages/core/test/src/client/renderApp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { render } from '@testing-library/react'; import { GetAppComponentOptions, addXReadPrettyToEachLayer, getAppComponent } from '../web'; diff --git a/packages/core/test/src/client/renderHookWithApp.tsx b/packages/core/test/src/client/renderHookWithApp.tsx index ae89e8c2b9..6336d178cb 100644 --- a/packages/core/test/src/client/renderHookWithApp.tsx +++ b/packages/core/test/src/client/renderHookWithApp.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC, Fragment } from 'react'; import { renderHook } from '@testing-library/react-hooks'; import { GetAppOptions, getApp } from '../web'; diff --git a/packages/core/test/src/client/renderSettings.tsx b/packages/core/test/src/client/renderSettings.tsx index 35abe211cc..5fe281b350 100644 --- a/packages/core/test/src/client/renderSettings.tsx +++ b/packages/core/test/src/client/renderSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { waitFor, screen } from '@testing-library/react'; import { GetAppComponentOptions } from '../web'; import userEvent from '@testing-library/user-event'; diff --git a/packages/core/test/src/client/renderSingleSettings.tsx b/packages/core/test/src/client/renderSingleSettings.tsx index a1550c686d..93e0942d84 100644 --- a/packages/core/test/src/client/renderSingleSettings.tsx +++ b/packages/core/test/src/client/renderSingleSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RenderSettingsOptions, renderSettings } from './renderSettings'; import { addXReadPrettyToEachLayer, setSchemaWithSettings } from '../web'; diff --git a/packages/core/test/src/client/settingsChecker/delete.tsx b/packages/core/test/src/client/settingsChecker/delete.tsx index 5bafe5cf09..12ee3cfe79 100644 --- a/packages/core/test/src/client/settingsChecker/delete.tsx +++ b/packages/core/test/src/client/settingsChecker/delete.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen } from '@testing-library/react'; import { CheckModalOptions, checkModal, expectNoTsError } from '../utils'; diff --git a/packages/core/test/src/client/settingsChecker/index.ts b/packages/core/test/src/client/settingsChecker/index.ts index bac7fd1c5e..96ae2241cb 100644 --- a/packages/core/test/src/client/settingsChecker/index.ts +++ b/packages/core/test/src/client/settingsChecker/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect } from 'vitest'; import { screen } from '@testing-library/react'; diff --git a/packages/core/test/src/client/settingsChecker/modal.tsx b/packages/core/test/src/client/settingsChecker/modal.tsx index c439c0fd0b..e85610ca60 100644 --- a/packages/core/test/src/client/settingsChecker/modal.tsx +++ b/packages/core/test/src/client/settingsChecker/modal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckModalOptions, checkModal } from '../utils'; export interface CheckModalSettingOptions { diff --git a/packages/core/test/src/client/settingsChecker/select.tsx b/packages/core/test/src/client/settingsChecker/select.tsx index 0ea1c69ae7..8f351f2855 100644 --- a/packages/core/test/src/client/settingsChecker/select.tsx +++ b/packages/core/test/src/client/settingsChecker/select.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { screen, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { expectNoTsError } from '../utils'; diff --git a/packages/core/test/src/client/settingsChecker/switch.tsx b/packages/core/test/src/client/settingsChecker/switch.tsx index 6f152b1a80..2b74ccb119 100644 --- a/packages/core/test/src/client/settingsChecker/switch.tsx +++ b/packages/core/test/src/client/settingsChecker/switch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect } from 'vitest'; import { waitFor, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; diff --git a/packages/core/test/src/client/utils/checkModal.tsx b/packages/core/test/src/client/utils/checkModal.tsx index 0fe30ce9be..93429acbd0 100644 --- a/packages/core/test/src/client/utils/checkModal.tsx +++ b/packages/core/test/src/client/utils/checkModal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { waitFor, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { FormItemCheckOptions, checkFormItems } from '../formItemChecker'; diff --git a/packages/core/test/src/client/utils/checkSchema.tsx b/packages/core/test/src/client/utils/checkSchema.tsx index e60acf0a09..c269dec662 100644 --- a/packages/core/test/src/client/utils/checkSchema.tsx +++ b/packages/core/test/src/client/utils/checkSchema.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { waitFor, screen } from '@testing-library/react'; import { expect } from 'vitest'; diff --git a/packages/core/test/src/client/utils/index.ts b/packages/core/test/src/client/utils/index.ts index ebf29521be..83b4a46688 100644 --- a/packages/core/test/src/client/utils/index.ts +++ b/packages/core/test/src/client/utils/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './utils'; export * from './checkModal'; export * from './checkSchema'; diff --git a/packages/core/test/src/client/utils/utils.ts b/packages/core/test/src/client/utils/utils.ts index 239011635d..d46a5d4729 100644 --- a/packages/core/test/src/client/utils/utils.ts +++ b/packages/core/test/src/client/utils/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect } from 'vitest'; import { waitFor, screen } from '@testing-library/react'; diff --git a/packages/core/test/src/e2e/defineConfig.ts b/packages/core/test/src/e2e/defineConfig.ts index a8bf694e08..c7943c2a35 100644 --- a/packages/core/test/src/e2e/defineConfig.ts +++ b/packages/core/test/src/e2e/defineConfig.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { devices, defineConfig as playwrightDefineConfig, type PlaywrightTestConfig } from '@playwright/test'; export const defineConfig = (config?: PlaywrightTestConfig) => { diff --git a/packages/core/test/src/e2e/e2eUtils.ts b/packages/core/test/src/e2e/e2eUtils.ts index 78bd753f4a..e190ba6cb1 100644 --- a/packages/core/test/src/e2e/e2eUtils.ts +++ b/packages/core/test/src/e2e/e2eUtils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { uid } from '@formily/shared'; import { Page, test as base, expect, request } from '@playwright/test'; diff --git a/packages/core/test/src/e2e/index.ts b/packages/core/test/src/e2e/index.ts index 37246f4de6..fccee56d02 100644 --- a/packages/core/test/src/e2e/index.ts +++ b/packages/core/test/src/e2e/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './e2eUtils'; export * from './templatesOfCollection'; export * from './templatesOfPage'; diff --git a/packages/core/test/src/e2e/templatesOfCollection.ts b/packages/core/test/src/e2e/templatesOfCollection.ts index 28a4ddc574..c600b54803 100644 --- a/packages/core/test/src/e2e/templatesOfCollection.ts +++ b/packages/core/test/src/e2e/templatesOfCollection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting } from './e2eUtils'; /** diff --git a/packages/core/test/src/e2e/templatesOfPage.ts b/packages/core/test/src/e2e/templatesOfPage.ts index 1fc03d79be..a91070da5f 100644 --- a/packages/core/test/src/e2e/templatesOfPage.ts +++ b/packages/core/test/src/e2e/templatesOfPage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from './e2eUtils'; import { generalWithAdvanced, diff --git a/packages/core/test/src/index.ts b/packages/core/test/src/index.ts index 0ce5251aa3..513e86595d 100644 --- a/packages/core/test/src/index.ts +++ b/packages/core/test/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; diff --git a/packages/core/test/src/scripts/test-db-creator.ts b/packages/core/test/src/scripts/test-db-creator.ts index a44739d7a0..f76289a19e 100644 --- a/packages/core/test/src/scripts/test-db-creator.ts +++ b/packages/core/test/src/scripts/test-db-creator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import http from 'http'; import url from 'url'; import pg from 'pg'; diff --git a/packages/core/test/src/scripts/test-db-distributor.ts b/packages/core/test/src/scripts/test-db-distributor.ts index b82f847736..7cb4697921 100644 --- a/packages/core/test/src/scripts/test-db-distributor.ts +++ b/packages/core/test/src/scripts/test-db-distributor.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import http from 'http'; import url from 'url'; import pg from 'pg'; diff --git a/packages/core/test/src/server/index.ts b/packages/core/test/src/server/index.ts index e0caf88225..00ed70ad4a 100644 --- a/packages/core/test/src/server/index.ts +++ b/packages/core/test/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { describe } from 'vitest'; import ws from 'ws'; diff --git a/packages/core/test/src/server/mockServer.ts b/packages/core/test/src/server/mockServer.ts index b1a31deffe..91dec44647 100644 --- a/packages/core/test/src/server/mockServer.ts +++ b/packages/core/test/src/server/mockServer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { mockDatabase } from '@nocobase/database'; import { Application, ApplicationOptions, AppSupervisor, Gateway, PluginManager } from '@nocobase/server'; import jwt from 'jsonwebtoken'; diff --git a/packages/core/test/src/web/index.tsx b/packages/core/test/src/web/index.tsx index 9c328de93f..bbcb7b4bd9 100644 --- a/packages/core/test/src/web/index.tsx +++ b/packages/core/test/src/web/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { ComponentType } from 'react'; import MockAdapter from 'axios-mock-adapter'; import { AxiosInstance, AxiosRequestConfig } from 'axios'; diff --git a/packages/core/test/src/web/utils.ts b/packages/core/test/src/web/utils.ts index b6e6ea955b..a12fe8ddad 100644 --- a/packages/core/test/src/web/utils.ts +++ b/packages/core/test/src/web/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const sleep = async (timeout = 0) => { return new Promise((resolve) => { setTimeout(resolve, timeout); diff --git a/packages/core/utils/src/__tests__/assign.test.ts b/packages/core/utils/src/__tests__/assign.test.ts index e0dea501ad..b40c90150b 100644 --- a/packages/core/utils/src/__tests__/assign.test.ts +++ b/packages/core/utils/src/__tests__/assign.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { assign } from '../assign'; describe('merge strategy', () => { diff --git a/packages/core/utils/src/__tests__/collection-graph.test.ts b/packages/core/utils/src/__tests__/collection-graph.test.ts index 1a46820874..8279ad0998 100644 --- a/packages/core/utils/src/__tests__/collection-graph.test.ts +++ b/packages/core/utils/src/__tests__/collection-graph.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionsGraph } from '../collections-graph'; describe('collection graph', () => { diff --git a/packages/core/utils/src/__tests__/common.test.ts b/packages/core/utils/src/__tests__/common.test.ts index e91e3c62fa..1768547f79 100644 --- a/packages/core/utils/src/__tests__/common.test.ts +++ b/packages/core/utils/src/__tests__/common.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { hasEmptyValue } from '../client'; describe('hasEmptyValue', () => { diff --git a/packages/core/utils/src/__tests__/forEach.test.ts b/packages/core/utils/src/__tests__/forEach.test.ts index 3fab7a592a..f56dc23579 100644 --- a/packages/core/utils/src/__tests__/forEach.test.ts +++ b/packages/core/utils/src/__tests__/forEach.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { forEach } from '../forEach'; describe('forEach', () => { diff --git a/packages/core/utils/src/__tests__/getValuesByPath.test.ts b/packages/core/utils/src/__tests__/getValuesByPath.test.ts index 365e64fd53..7e10f9b4a0 100644 --- a/packages/core/utils/src/__tests__/getValuesByPath.test.ts +++ b/packages/core/utils/src/__tests__/getValuesByPath.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getValuesByPath } from '../getValuesByPath'; describe('getValuesByPath', () => { diff --git a/packages/core/utils/src/__tests__/import-module.test.ts b/packages/core/utils/src/__tests__/import-module.test.ts index 9c306259e7..0af2967fd0 100644 --- a/packages/core/utils/src/__tests__/import-module.test.ts +++ b/packages/core/utils/src/__tests__/import-module.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { importModule } from '../requireModule'; diff --git a/packages/core/utils/src/__tests__/isValidFilter.test.ts b/packages/core/utils/src/__tests__/isValidFilter.test.ts index 1af65c75e8..4883253b03 100644 --- a/packages/core/utils/src/__tests__/isValidFilter.test.ts +++ b/packages/core/utils/src/__tests__/isValidFilter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isValidFilter } from '..'; describe('isValidFilter', () => { diff --git a/packages/core/utils/src/__tests__/parse-date.test.ts b/packages/core/utils/src/__tests__/parse-date.test.ts index 485914a46f..336562ca5e 100644 --- a/packages/core/utils/src/__tests__/parse-date.test.ts +++ b/packages/core/utils/src/__tests__/parse-date.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjs } from '../dayjs'; import { parseDate } from '../parse-date'; diff --git a/packages/core/utils/src/__tests__/parse-filter.test.ts b/packages/core/utils/src/__tests__/parse-filter.test.ts index 091316009d..bd78809d45 100644 --- a/packages/core/utils/src/__tests__/parse-filter.test.ts +++ b/packages/core/utils/src/__tests__/parse-filter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getDateVars, getDayRange, parseFilter, utc2unit, Utc2unitOptions } from '../parse-filter'; describe('utc to unit', () => { diff --git a/packages/core/utils/src/__tests__/parseHTML.test.ts b/packages/core/utils/src/__tests__/parseHTML.test.ts index 4a553296c4..3da62b2378 100644 --- a/packages/core/utils/src/__tests__/parseHTML.test.ts +++ b/packages/core/utils/src/__tests__/parseHTML.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseHTML } from '../parseHTML'; describe('parseHTML', () => { diff --git a/packages/core/utils/src/__tests__/test.ts b/packages/core/utils/src/__tests__/test.ts index 9e84e7e56e..c7f2101ef0 100644 --- a/packages/core/utils/src/__tests__/test.ts +++ b/packages/core/utils/src/__tests__/test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const test = 'hello'; export default { test }; diff --git a/packages/core/utils/src/__tests__/toFixedByStep.test.ts b/packages/core/utils/src/__tests__/toFixedByStep.test.ts index b2525758e0..26bcb4f694 100644 --- a/packages/core/utils/src/__tests__/toFixedByStep.test.ts +++ b/packages/core/utils/src/__tests__/toFixedByStep.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { toFixedByStep } from '@nocobase/utils/client'; describe('toFixedByStep', () => { diff --git a/packages/core/utils/src/assign.ts b/packages/core/utils/src/assign.ts index c7ff6921f5..306da77cba 100644 --- a/packages/core/utils/src/assign.ts +++ b/packages/core/utils/src/assign.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import deepmerge from 'deepmerge'; import lodash from 'lodash'; import { isPlainObject } from './common'; diff --git a/packages/core/utils/src/client.ts b/packages/core/utils/src/client.ts index 798b3c0e64..4f7a444a13 100644 --- a/packages/core/utils/src/client.ts +++ b/packages/core/utils/src/client.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { dayjs } from './dayjs'; diff --git a/packages/core/utils/src/collections-graph.ts b/packages/core/utils/src/collections-graph.ts index dece31f786..00463524f0 100644 --- a/packages/core/utils/src/collections-graph.ts +++ b/packages/core/utils/src/collections-graph.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as graphlib from 'graphlib'; import { castArray } from 'lodash'; diff --git a/packages/core/utils/src/common.ts b/packages/core/utils/src/common.ts index f7d232401c..c4894af961 100644 --- a/packages/core/utils/src/common.ts +++ b/packages/core/utils/src/common.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const isString = (value: any): value is string => { return typeof value === 'string'; }; diff --git a/packages/core/utils/src/date.ts b/packages/core/utils/src/date.ts index 458b5d9f2e..5aa3fe9eec 100644 --- a/packages/core/utils/src/date.ts +++ b/packages/core/utils/src/date.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import { dayjs } from './dayjs'; diff --git a/packages/core/utils/src/dayjs.ts b/packages/core/utils/src/dayjs.ts index c501f172ca..0a196ed23d 100644 --- a/packages/core/utils/src/dayjs.ts +++ b/packages/core/utils/src/dayjs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; import advancedFormat from 'dayjs/plugin/advancedFormat'; import customParseFormat from 'dayjs/plugin/customParseFormat'; diff --git a/packages/core/utils/src/forEach.ts b/packages/core/utils/src/forEach.ts index 13feac09ca..ee8067d3db 100644 --- a/packages/core/utils/src/forEach.ts +++ b/packages/core/utils/src/forEach.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const forEach = (obj: any, callback: (value: any, key: string | number) => void) => { if (Array.isArray(obj)) { obj.forEach(callback); diff --git a/packages/core/utils/src/fs-exists.ts b/packages/core/utils/src/fs-exists.ts index fbd18301f2..435c20e337 100644 --- a/packages/core/utils/src/fs-exists.ts +++ b/packages/core/utils/src/fs-exists.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { stat } from 'fs/promises'; export async function fsExists(path: string) { diff --git a/packages/core/utils/src/getValuesByPath.ts b/packages/core/utils/src/getValuesByPath.ts index 1fd6198686..10cc607295 100644 --- a/packages/core/utils/src/getValuesByPath.ts +++ b/packages/core/utils/src/getValuesByPath.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getValuesByPath = (obj: object, path: string, defaultValue?: any) => { if (!obj) { return defaultValue; diff --git a/packages/core/utils/src/index.ts b/packages/core/utils/src/index.ts index 78ac553751..fd1751e3b0 100644 --- a/packages/core/utils/src/index.ts +++ b/packages/core/utils/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { dayjs } from './dayjs'; diff --git a/packages/core/utils/src/isPortalInBody.ts b/packages/core/utils/src/isPortalInBody.ts index 2e3e7c03df..5c0f54da9c 100644 --- a/packages/core/utils/src/isPortalInBody.ts +++ b/packages/core/utils/src/isPortalInBody.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * 判断一个 DOM 对象是否是由 createPortal 挂在到了 body 上 * @param domNode DOM 对象 diff --git a/packages/core/utils/src/isValidFilter.ts b/packages/core/utils/src/isValidFilter.ts index 783b189b93..74351b42ef 100644 --- a/packages/core/utils/src/isValidFilter.ts +++ b/packages/core/utils/src/isValidFilter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function isValidFilter(condition: any) { if (!condition) { return false; diff --git a/packages/core/utils/src/json-templates.ts b/packages/core/utils/src/json-templates.ts index baad0ca029..533764af01 100644 --- a/packages/core/utils/src/json-templates.ts +++ b/packages/core/utils/src/json-templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // json-templates // Simple templating within JSON structures. // diff --git a/packages/core/utils/src/koa-multer.ts b/packages/core/utils/src/koa-multer.ts index 7cfa29f77c..3332e8c0cd 100644 --- a/packages/core/utils/src/koa-multer.ts +++ b/packages/core/utils/src/koa-multer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import originalMulter from 'multer'; function multer(options?) { diff --git a/packages/core/utils/src/log.ts b/packages/core/utils/src/log.ts index 227da7ea69..756dcc3d39 100644 --- a/packages/core/utils/src/log.ts +++ b/packages/core/utils/src/log.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const error = (message: Error | string, ...args: any[]) => { console.error(message, ...args); }; diff --git a/packages/core/utils/src/measure-execution-time.ts b/packages/core/utils/src/measure-execution-time.ts index f2e330135b..65022f34e8 100644 --- a/packages/core/utils/src/measure-execution-time.ts +++ b/packages/core/utils/src/measure-execution-time.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export async function measureExecutionTime(operation, operationName) { const startTime = Date.now(); await operation(); diff --git a/packages/core/utils/src/merge.ts b/packages/core/utils/src/merge.ts index 874e1a85c8..619dc71d4e 100644 --- a/packages/core/utils/src/merge.ts +++ b/packages/core/utils/src/merge.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import deepmerge from 'deepmerge'; const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray; diff --git a/packages/core/utils/src/mixin/AsyncEmitter.ts b/packages/core/utils/src/mixin/AsyncEmitter.ts index 417f1deac9..10d9138b79 100644 --- a/packages/core/utils/src/mixin/AsyncEmitter.ts +++ b/packages/core/utils/src/mixin/AsyncEmitter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class AsyncEmitter { async emitAsync(event: string | symbol, ...args: any[]): Promise { // @ts-ignore diff --git a/packages/core/utils/src/mixin/index.ts b/packages/core/utils/src/mixin/index.ts index 35e0e4910d..1ced10f86d 100644 --- a/packages/core/utils/src/mixin/index.ts +++ b/packages/core/utils/src/mixin/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function applyMixins(derivedCtor: any, constructors: any[]) { constructors.forEach((baseCtor) => { Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => { diff --git a/packages/core/utils/src/notification.ts b/packages/core/utils/src/notification.ts index f9db6f8007..9a66a66c50 100644 --- a/packages/core/utils/src/notification.ts +++ b/packages/core/utils/src/notification.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } from 'antd'; export const showToast = (message, type = 'info', duration = 5000) => { diff --git a/packages/core/utils/src/number.ts b/packages/core/utils/src/number.ts index 18c1e5f419..14d422f0ce 100644 --- a/packages/core/utils/src/number.ts +++ b/packages/core/utils/src/number.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getNumberPrecision, toFixed } from '@rc-component/mini-decimal'; export function toFixedByStep(value: any, step: string | number) { diff --git a/packages/core/utils/src/parse-date.ts b/packages/core/utils/src/parse-date.ts index 54e69b97c0..c87ff4f30b 100644 --- a/packages/core/utils/src/parse-date.ts +++ b/packages/core/utils/src/parse-date.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { offsetFromString } from './date'; import { dayjs } from './dayjs'; diff --git a/packages/core/utils/src/parse-filter.ts b/packages/core/utils/src/parse-filter.ts index 0a48912226..21a001e29b 100644 --- a/packages/core/utils/src/parse-filter.ts +++ b/packages/core/utils/src/parse-filter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import _ from 'lodash'; import set from 'lodash/set'; import moment from 'moment'; diff --git a/packages/core/utils/src/parseHTML.ts b/packages/core/utils/src/parseHTML.ts index 53c100ffe2..6cab43dea4 100644 --- a/packages/core/utils/src/parseHTML.ts +++ b/packages/core/utils/src/parseHTML.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * parseHTML('{{version}}', { version: '1.0.0' }) -> '1.0.0' * @param html diff --git a/packages/core/utils/src/perf-hooks.ts b/packages/core/utils/src/perf-hooks.ts index d9d3ae3517..8bfd99adf9 100644 --- a/packages/core/utils/src/perf-hooks.ts +++ b/packages/core/utils/src/perf-hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecordableHistogram, performance } from 'perf_hooks'; export const prePerfHooksWrap = (handler: any, options?: { name?: string }) => { diff --git a/packages/core/utils/src/registry.ts b/packages/core/utils/src/registry.ts index 66adc74283..d4af6510c2 100644 --- a/packages/core/utils/src/registry.ts +++ b/packages/core/utils/src/registry.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface RegistryOptions { override: boolean; } diff --git a/packages/core/utils/src/requireModule.ts b/packages/core/utils/src/requireModule.ts index d3c2ae69be..f4e47247a9 100644 --- a/packages/core/utils/src/requireModule.ts +++ b/packages/core/utils/src/requireModule.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { pathToFileURL } from 'url'; diff --git a/packages/core/utils/src/server.ts b/packages/core/utils/src/server.ts index 6d7d1426a4..e665e5d314 100644 --- a/packages/core/utils/src/server.ts +++ b/packages/core/utils/src/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './date'; export * from './fs-exists'; export * from './merge'; diff --git a/packages/core/utils/src/toposort.ts b/packages/core/utils/src/toposort.ts index 7fb6dc4e8f..ddeeb8b48b 100644 --- a/packages/core/utils/src/toposort.ts +++ b/packages/core/utils/src/toposort.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Topo from '@hapi/topo'; export interface ToposortOptions extends Topo.Options { diff --git a/packages/core/utils/src/uid.ts b/packages/core/utils/src/uid.ts index e3e576fe61..782fa45a84 100644 --- a/packages/core/utils/src/uid.ts +++ b/packages/core/utils/src/uid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + let IDX = 36, HEX = ''; while (IDX--) HEX += IDX.toString(36); diff --git a/packages/core/utils/src/url.ts b/packages/core/utils/src/url.ts index feeeb43552..f9fa037fa6 100644 --- a/packages/core/utils/src/url.ts +++ b/packages/core/utils/src/url.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function isURL(string) { let url; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx index 103ca00e34..6dd30bbb8b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/NewRole.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent, useActionContext, useRequest } from '@nocobase/client'; import React from 'react'; import { useACLTranslation } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx index 1b02749fc8..af2133134d 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagement.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; import { Card, Row, Col, Tabs, Divider } from 'antd'; import { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx index a0ceb3036d..e32c968fdb 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/RolesManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; export const RolesManagerContext = createContext<{ diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx index 1c4b02db21..046c8a1b9a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/RolesMenu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionContextProvider, RecordProvider, diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts index dc9425e3da..88768a0bc5 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/association.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableBlock, T3950 } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts index c23b865106..db8acb72c7 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableBlock, newTableBlock } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts index b84d78a38d..b4fe1bf717 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/configure.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableBlock } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts index deb78f6a9f..8a2fd2c651 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/menu.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; test('menu permission ', async ({ page, mockPage, mockRole, updateRole }) => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts index 622dad5c63..71518ada1e 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { general, PageConfig } from '@nocobase/test/e2e'; /** * 页面中有一个空的 Table 区块,并且配有字段:普通字段和关系字段 diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts b/packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts index 7bc5e5bbf3..773551a8d3 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/hooks/load-more-observer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback, useEffect, useRef, useState } from 'react'; export const useLoadMoreObserver = ({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/index.ts b/packages/plugins/@nocobase/plugin-acl/src/client/index.ts index cec44c813d..9df8d9cfc9 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { RolesManagement } from './RolesManagement'; import { RolesManager } from './roles-manager'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts b/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts index d80c57e434..17c9b082fd 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export function useACLTranslation() { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx index e7038f66ef..1e5e69ec6a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ActionPermissions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { CollectionContext, diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx index 1bbee689f0..74f74e1a04 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/AvailableActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useRequest } from '@nocobase/client'; import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx index f8c194e930..7fec43175c 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/GeneralPermissions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFormValuesChange, createForm, Form, onFieldChange } from '@formily/core'; import { connect } from '@formily/react'; import { SchemaComponent, useAPIClient, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx index fc5469eb8e..01af0b8bf1 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuItemsProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAdminSchemaUid, useRequest } from '@nocobase/client'; import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx index 0088e49029..f22e39de48 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/MenuPermissions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Checkbox, message, Table } from 'antd'; import { onFormValuesChange, createForm, Form } from '@formily/core'; import { uniq } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx index 8b28cdbdad..23f820fb26 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/Permissions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useApp, useRequest, useAPIClient } from '@nocobase/client'; import { Tabs } from 'antd'; import React, { useContext, useEffect, useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx index f42090efb0..7a7d52fe5f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/PluginPermissions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useApp, useCompile, useCollectionRecord, useRequest } from '@nocobase/client'; import { Checkbox, message, Table } from 'antd'; import React, { useContext, useMemo, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx index 13989cadda..1ae7ca0eef 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/RolesResourcesActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, FormLayout } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; import { connect, useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx index c3aeb3aeab..3a42cd91ff 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/ScopeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx index 097b7a884b..3ffd7ec8d9 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/StrategyActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { connect, useField } from '@formily/react'; import { Checkbox, Select, Table, Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts index c4e9179c39..533dc4532b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/permissions/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ css }) => { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts b/packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts index 6b3e800d76..2a3092a3b7 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/roles-manager.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils/client'; export type RolesManagerOptions = { diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts index b2960bfae7..e3502ee44b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@nocobase/client'; import { useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts index 39453eef33..e4195906c7 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/client/schemas/scopes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { VariableInput, useFilterOptions, useFormBlockContext } from '@nocobase/client'; import { useContext, useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/index.ts b/packages/plugins/@nocobase/plugin-acl/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/index.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts index 6877f9cd21..8c5404b91f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/acl.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { Database } from '@nocobase/database'; import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts index 59cd6a5a08..7e542650ce 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts index c3bd545bf7..8038f1ac5c 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/association-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { Database, HasManyRepository } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts index c19c4f231b..62e41d6c02 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/configuration.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts index 652851c903..637fac6d7b 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/list-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts index 1014ee3ac1..1114b4381f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/middleware.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { Database, Model } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts index a26099bcd1..d8a70670e2 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/own.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL } from '@nocobase/acl'; import { Database } from '@nocobase/database'; import PluginUser from '@nocobase/plugin-users'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts index e893a6184c..ea20d143f9 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/prepare.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, MockServer } from '@nocobase/test'; export async function prepareApp(): Promise { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts index 1e10c039ea..16fed65a17 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-check.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { CollectionRepository } from '@nocobase/plugin-data-source-main'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts index 32e333d83d..1b64a6a0db 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-resource.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, Model } from '@nocobase/database'; import { CollectionRepository } from '@nocobase/plugin-data-source-main'; import UsersPlugin from '@nocobase/plugin-users'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts index b8613579e0..9a17205654 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role-user.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { BelongsToManyRepository } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts index fee341fa32..15c8c9bd1e 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/role.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayFieldRepository, Database, Model } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts index 9c56177ba5..079ef7a61a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/scope.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts index d0e98b09f1..fbebb257fe 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/setCurrentRole.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; import Database from '@nocobase/database'; import UsersPlugin from '@nocobase/plugin-users'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts index 510110f677..95b68f7b62 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/snippets.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts index d5f2905df1..ca460044be 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/users.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/validate-filter-params.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/validate-filter-params.test.ts index 1bd5ffe4b8..871f9ca71f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/validate-filter-params.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/validate-filter-params.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { Database } from '@nocobase/database'; import { ACL } from '@nocobase/acl'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts index 9e9ad281e9..a8391ceced 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/__tests__/write-role-to-acl.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { Database } from '@nocobase/database'; import { prepareApp } from './prepare'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts b/packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts index 4eb17f9229..491d86639a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/actions/available-actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const availableActionResource = { name: 'availableActions', actions: { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts b/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts index 5ae43a4b45..02bccf3c5d 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-check.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const map2obj = (map: Map) => { const obj = {}; for (const [key, value] of map) { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts b/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts index a6c4356bb7..cd7806588a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/actions/role-collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; type UsingConfigType = 'strategy' | 'resourceAction'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts b/packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts index 7400105973..5ee44fca14 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/actions/user-setDefaultRole.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; export async function setDefaultRole(ctx: Context, next: Next) { diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts index c82a431df2..93a5940907 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles-users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts index c3bab89d6d..3de4554673 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts index a03b1f7f62..3614ae7bfa 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts index 05da21007e..c29dc3792f 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesActions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts index 1ff4ea7082..93c3235019 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/rolesResourcesScopes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts b/packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts index 00a9056b44..0e25190ff6 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/collections/users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/index.ts b/packages/plugins/@nocobase/plugin-acl/src/server/index.ts index b35e3bfb9d..1e779a4138 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './middlewares/setCurrentRole'; export * from './middlewares/with-acl-meta'; export { RoleResourceActionModel } from './model/RoleResourceActionModel'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts b/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts index 5c7502124d..b134427e48 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/setCurrentRole.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { Cache } from '@nocobase/cache'; import { Model, Repository } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts b/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts index bacf3c7bfa..d0d5b4266a 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/middlewares/with-acl-meta.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { snakeCase } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts b/packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts index 4d9975230c..925f87f3bc 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/migrations/20221214072638-set-role-snippets.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts index e6a2b40fef..511b6c5ac5 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { ACL } from '@nocobase/acl'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts index 5adceb8683..8e3c9a4688 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceActionModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL, ACLRole } from '@nocobase/acl'; import { Model } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts index e0079f8619..2c48fcc161 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/model/RoleResourceModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ACL, ACLResource, ACLRole } from '@nocobase/acl'; import { Model } from '@nocobase/database'; import { RoleResourceActionModel } from './RoleResourceActionModel'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts index bda01fe0ad..a73d184645 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, utils as actionUtils } from '@nocobase/actions'; import { Cache } from '@nocobase/cache'; import { Collection, RelationField, Transaction } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts index 38874e1557..66d9451c34 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.2', info: { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx index 2c9c81f343..2ce79d1cff 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditAction.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { ActionDesigner, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx index afe6c122d7..b6594bf127 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx index c2e1fee6cd..939606f537 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, SchemaInitializer, gridRowColWrap } from '@nocobase/client'; import { CreateFormBulkEditBlockInitializer } from './CreateFormBulkEditBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx index cc8ea394e8..0a29f8bb84 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '@nocobase/client'; import { BulkEditSubmitActionInitializer } from './BulkEditSubmitActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx index 6f30f3581c..92b5508e3e 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditFormItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, gridRowColWrap } from '@nocobase/client'; import { useCustomBulkEditFormItemInitializerFields } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx index 878deb997a..6bfdab8cb1 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/BulkEditSubmitActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx index aa042673e1..8a8c62cba3 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/CreateFormBulkEditBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import { SchemaInitializerItem, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts index 248b13c7b4..6feeea9eb7 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyTableBlockWithActions, test } from '@nocobase/test/e2e'; import { oneEmptyGantt } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts index 9e424c76b9..2b39281840 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneEmptyTableBlockWithCustomizeActions } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts index 75af4dd965..9fd147b4b0 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts index 40b974f031..b7dfd2da20 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/bulkEditFormItemSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayCollapse, FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx index 1f46abf11c..35f0fbfeaf 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/component/BulkEditField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { Field } from '@formily/core'; import { connect, useField, useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts index 7bd7f9f7cd..c6b610d43e 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/createBulkEditBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx index b64ac562db..bde1e87542 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, useCollection_deprecated } from '@nocobase/client'; import { bulkEditActionSettings, deprecatedBulkEditActionSettings } from './BulkEditAction.Settings'; import { BulkEditActionInitializer } from './BulkEditActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts index da9aa4d926..34e2a1d1cc 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx index 728892a5dd..74a8dbc125 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaExpressionScopeContext, useField, useForm } from '@formily/react'; import { SchemaInitializerItemType, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts index fdf463f468..2b1f3cef95 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-edit/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; export class PluginActionBulkEditServer extends Plugin {} diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx index dfd810cbda..5be24f6b66 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateAction.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useFieldSchema } from '@formily/react'; import { isValid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx index fa89e0cabf..b7cefbbb3f 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/BulkUpdateActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx index 482095fbcc..e49166080b 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/CustomizeActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BlockInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts index d29899c607..494f021392 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyTableBlockWithCustomizeActions, test } from '@nocobase/test/e2e'; import { oneEmptyGantt } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts index 492a1883de..fb37fbaed5 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneEmptyTableBlockWithCustomizeUpdate } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts index 61f7aaae91..8529739b03 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig, generalWithM2oSingleSelect } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx index e8ee9a03ed..a73ed3c2d0 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, useCollection_deprecated } from '@nocobase/client'; import { bulkUpdateActionSettings, deprecatedBulkUpdateActionSettings } from './BulkUpdateAction.Settings'; import { BulkUpdateActionInitializer } from './BulkUpdateActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts index 2028aa4a47..313a8e5dde 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx index bb973ff0ac..f6321577e3 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaExpressionScopeContext, useField, useFieldSchema } from '@formily/react'; import { TableFieldResource, diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts index a3cf6c88a3..fa539a11ea 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Bulk update": "Bulk update", "After successful bulk update": "After successful bulk update", diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts index 38806e2332..6af3864802 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/es-ES.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Bulk update": "Actualización en masa", "After successful bulk update": "Tras una actualización en masa correcta", diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts index 5b6488d19a..50f1355808 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/ko_KR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Bulk update': '대량 업데이트', 'After successful bulk update': '대량 업데이트 성공 후', diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts index 7b14596025..04a4e13921 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Bulk update": "Atualização em massa", "After successful bulk update": "Após a atualização em massa bem sucedida", diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts index 204ce95bfc..f1ca06e0ea 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Bulk update': '批量更新', 'After successful bulk update': '批量成功更新后', diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts index 7292c86dee..3465e1c8d4 100644 --- a/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-action-bulk-update/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginActionBulkUpdateServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/__e2e__/schemaSettings.test.ts index 0768cea571..d2a81490f1 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyForm, oneEmptyTable, test } from '@nocobase/test/e2e'; test.describe('custom request action', () => { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestAction.tsx b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestAction.tsx index 99eb35772d..457520af6c 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Action, useAPIClient, useRequest } from '@nocobase/client'; import React from 'react'; import { useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestActionDesigner.tsx b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestActionDesigner.tsx index d3e326d681..3631fde676 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestActionDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/CustomRequestActionDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/index.ts index ab246698ff..c9a86ea0eb 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/components/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CustomRequestAction'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/constants.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/constants.ts index ad59e27241..937e52a8e9 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/constants.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/constants.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const listByCurrentRoleUrl = `customRequests:listByCurrentRole`; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/index.ts index a11f46dba8..304373e1d0 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useCustomizeRequestActionProps'; export * from './useGetCustomRequest'; export * from './useCustomRequestVariableOptions'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts index b692074ce3..224b6a2af8 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestVariableOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DEFAULT_DATA_SOURCE_KEY, useCollection_deprecated, diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestsResource.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestsResource.ts index 0560ee34b8..d5af49df58 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestsResource.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomRequestsResource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient } from '@nocobase/client'; export const useCustomRequestsResource = () => { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts index e537b1ab06..e000c2824a 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema, useForm } from '@formily/react'; import { useAPIClient, useActionContext, useCompile, useDataSourceKey, useRecord } from '@nocobase/client'; import { isURL } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useGetCustomRequest.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useGetCustomRequest.ts index c68a05f9c4..9616000843 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useGetCustomRequest.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useGetCustomRequest.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/index.tsx b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/index.tsx index 3a8e3ec14a..18cb1f4a72 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { CustomRequestAction } from './components'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/CustomRequestInitializer.tsx b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/CustomRequestInitializer.tsx index 99d41f883b..945fd12555 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/CustomRequestInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/CustomRequestInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { BlockInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/index.ts index c46bcdd84d..70bf776d77 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/initializer/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CustomRequestInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/locale.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/locale.ts index 0a3d436e7d..b94a9bd1a2 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/locale.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation as useT } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts index 2c040b7701..88e18b298c 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AfterSuccess, ButtonEditor, diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestACL.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestACL.ts index 6b2e10471a..438a04fda4 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestACL.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestACL.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DEFAULT_DATA_SOURCE_KEY } from '@nocobase/client'; import { generateNTemplate } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts index fa886ec5a0..8876c36cc1 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/CustomRequestConfigurationFields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../locale'; export const CustomRequestConfigurationFieldsSchema = { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/index.ts index 19061ed2b2..704e6b99fe 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemas/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CustomRequestConfigurationFields'; export * from './CustomRequestACL'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/__tests__/actions.test.ts index c72336ea63..72aeae12e1 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import Database, { Repository } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/listByCurrentRole.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/listByCurrentRole.ts index 82b67d7bfc..949d2afeee 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/listByCurrentRole.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/listByCurrentRole.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; export async function listByCurrentRole(ctx: Context) { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts index c63f9fc42b..d0beac5af6 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/actions/send.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { parse } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequest.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequest.ts index 9fccf28fdd..0a07c7daf6 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequest.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequest.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequestsRoles.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequestsRoles.ts index e35b58a54c..5b3f1379c5 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequestsRoles.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/collections/customRequestsRoles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/migrations/20240425205017-change-locale-module.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/migrations/20240425205017-change-locale-module.ts index 7d7d42d40d..fda6955d82 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/migrations/20240425205017-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/migrations/20240425205017-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/plugin.ts index 7d04721e51..b43d78b0a8 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Logger, LoggerOptions } from '@nocobase/logger'; import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx index fdf871072c..ac29c6c04b 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFieldInputValueChange } from '@formily/core'; import { ISchema, connect, mapProps, useField, useFieldSchema, useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx index b5f68f42ee..e53147ba42 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { RecursionField, observer, useField, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx index f5c6d8a542..e9073844e0 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicateActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionInitializer } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx index 1d6f717ce1..dc4d68f6ad 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/DuplicatePluginProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { DuplicateActionInitializer } from './DuplicateActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts index a9d77f2d69..fb64eb48d5 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, oneEmptyDetailsBlock, diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts index 23c4e078cf..d38e516e54 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneEmptyTableBlockWithDuplicateActions } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts index 19c0498c15..14b021c2f6 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig, general } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts index 264e405ada..eba297dc34 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, useCollection_deprecated } from '@nocobase/client'; import { DuplicateAction } from './DuplicateAction'; import { deprecatedDuplicateActionSettings, duplicateActionSettings } from './DuplicateAction.Settings'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts index 683a874430..7887153cc2 100644 --- a/packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-action-duplicate/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginActionDuplicateServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportActionInitializer.tsx index 1f6d965059..32af314506 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema, useFieldSchema } from '@formily/react'; import { merge } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportDesigner.tsx b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportDesigner.tsx index 79d9ec1a73..3ac785294b 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import type { ISchema } from '@formily/react'; import { useField, useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportPluginProvider.tsx b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportPluginProvider.tsx index 2a0043be31..b8f28e378f 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/ExportPluginProvider.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/ExportPluginProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { ExportActionInitializer, ExportDesigner, useExportAction } from './'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/client/index.ts index e3313c95b4..9dbd00b52b 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ExportActionInitializer'; export * from './ExportDesigner'; export * from './ExportPluginProvider'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/client/locale/index.ts index 5612283ae0..3609b13837 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'action-export'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-action-export/src/client/schemaSettings.ts index b2fc4870b0..c1a066e16d 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/schemaSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx b/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx index 1783ad4d8c..711e1967e8 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useAPIClient, diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/useFields.ts b/packages/plugins/@nocobase/plugin-action-export/src/client/useFields.ts index 85832b55b2..bdcdfdc4f0 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/useFields.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/useFields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { useCollectionManager_deprecated } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/useShared.ts b/packages/plugins/@nocobase/plugin-action-export/src/client/useShared.ts index bcca96477f..1eef945cdf 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/useShared.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/useShared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cascader, css, useCollection_deprecated } from '@nocobase/client'; import { useFields } from './useFields'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/__tests__/utils/utils.test.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/__tests__/utils/utils.test.ts index 8cb68302b3..b0563a6bd5 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/__tests__/utils/utils.test.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/__tests__/utils/utils.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { mockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts index 220f36a5eb..6e3c255da9 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Repository } from '@nocobase/database'; import xlsx from 'node-xlsx'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/index.ts index 91cdfdbd69..714db45f3b 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './export-xlsx'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/index.ts index 28560dee55..d34186a3eb 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import { exportXlsx } from './actions'; diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/migrations/20240425220631-change-locale-module.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/migrations/20240425220631-change-locale-module.ts index 0d434afd9a..ef4b1ec2e1 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/migrations/20240425220631-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/migrations/20240425220631-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/renders/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/renders/index.ts index 64830df7be..e6b5c2ae58 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/renders/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/renders/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as renders from './renders'; function getInterfaceRender(name: string): Function { diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/renders/renders.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/renders/renders.ts index 71b61df51d..1b9ee8125d 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/renders/renders.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/renders/renders.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getDefaultFormat, str2moment, toFixedByStep } from '@nocobase/utils'; export async function _(field, row, ctx, column?: any) { diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/utils/columns2Appends.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/utils/columns2Appends.ts index 4f0a3d78ed..6b048db95d 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/utils/columns2Appends.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/utils/columns2Appends.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function columns2Appends(columns, ctx) { const { resourceName } = ctx.action; const appends = new Set([]); diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/utils/index.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/utils/index.ts index 9d9a02a024..3b36769386 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/utils/index.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/utils/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './columns2Appends'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportActionInitializer.tsx index 3f3610de2f..71780a35aa 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ISchema } from '@formily/react'; import { Schema, useFieldSchema } from '@formily/react'; import { merge } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportDesigner.tsx b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportDesigner.tsx index 32dc2fbec6..0de5eadf52 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import type { ISchema } from '@formily/react'; import { useField, useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportModal.tsx b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportModal.tsx index f579d9e28d..4baeaadcfc 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportModal.tsx +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportModal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ExclamationCircleFilled, LoadingOutlined } from '@ant-design/icons'; import { css } from '@nocobase/client'; import { Button, Modal, Space, Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportPluginProvider.tsx b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportPluginProvider.tsx index 90f0e5b299..b86a251e91 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/ImportPluginProvider.tsx +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/ImportPluginProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React, { useState } from 'react'; import { createPortal } from 'react-dom'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/constants.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/constants.ts index b5e2d0845f..b1bc7b286f 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/constants.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/constants.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const NAMESPACE = 'action-import'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/context.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/context.ts index 0bbdea1aec..1921c3042f 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/context.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; export interface ImportContextType { diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/index.ts index f60b4b1a41..d7c908f1c6 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // i18n.addResources('zh-CN', NAMESPACE, zhCN); // i18n.addResources('en-US', NAMESPACE, enUS); diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/locale/index.ts index 25b4e2b39c..a7b111a0d4 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'action-import'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/schemaSettings.ts index 7e885cbb6a..7d8aa8c6bc 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/schemaSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { ButtonEditor, SchemaSettings, useDesignable, useSchemaToolbar } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/useFields.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/useFields.ts index c7a3c98b6e..d2caea6f02 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/useFields.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/useFields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollectionManager_deprecated } from '@nocobase/client'; const EXCLUDE_INTERFACES = [ diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/useImportAction.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/useImportAction.ts index 8855a94c50..380fd15452 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/useImportAction.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/useImportAction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema, useFieldSchema, useForm } from '@formily/react'; import { useActionContext, diff --git a/packages/plugins/@nocobase/plugin-action-import/src/client/useShared.ts b/packages/plugins/@nocobase/plugin-action-import/src/client/useShared.ts index 1cc25de9a1..bbb5eedac8 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/client/useShared.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/client/useShared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { VoidField } from '@formily/core'; import { Cascader, css, useCollection_deprecated } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/index.ts index 350fd47f22..2c62180bd7 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { name } from '../package.json'; export * from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/downloadXlsxTemplate.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/downloadXlsxTemplate.ts index b01709b3d6..c9948de88f 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/downloadXlsxTemplate.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/downloadXlsxTemplate.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import xlsx from 'node-xlsx'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/importXlsx.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/importXlsx.ts index 2248e83972..4355448fbb 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/importXlsx.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/importXlsx.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Collection, Repository } from '@nocobase/database'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/index.ts index 79fbffbf5c..060f50e207 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/actions/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './downloadXlsxTemplate'; export * from './importXlsx'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/index.ts index da97301348..c0a25a6535 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import { namespace } from '..'; import { downloadXlsxTemplate, importXlsx } from './actions'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/en-US.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/en-US.ts index 612d96de92..c3cd2a5beb 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Yes: 'Yes', No: 'No', diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/fr-FR.ts index 6294aa1e33..80c5ba0010 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/fr-FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Yes: 'Oui', No: 'Non', diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/index.ts index b0b1d48d5d..892a9b6393 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as enUS } from './en-US'; export { default as zhCN } from './zh-CN'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/zh-CN.ts index 1533b5dfc1..a449fa6c6c 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Yes: '是', No: '否', diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/middleware/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/middleware/index.ts index 0be497f3d4..99f330d815 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/middleware/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/middleware/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { koaMulter as multer } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/migrations/20240425223956-change-locale-module.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/migrations/20240425223956-change-locale-module.ts index 1f9b438a7a..222f1097da 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/migrations/20240425223956-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/migrations/20240425223956-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/utils/index.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/utils/index.ts index e9b6ee6f7d..588ef58629 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/utils/index.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/utils/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import * as transforms from './transform'; diff --git a/packages/plugins/@nocobase/plugin-action-import/src/server/utils/transform.ts b/packages/plugins/@nocobase/plugin-action-import/src/server/utils/transform.ts index 1fe46e5965..0dcebd58bf 100644 --- a/packages/plugins/@nocobase/plugin-action-import/src/server/utils/transform.ts +++ b/packages/plugins/@nocobase/plugin-action-import/src/server/utils/transform.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjs, str2moment } from '@nocobase/utils'; import * as math from 'mathjs'; import { namespace } from '../../'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx index b853efa5be..b27fa4a78b 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintAction.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionDesigner, SchemaSettings, diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx index 09f8fbd167..13d6421a96 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ActionInitializer } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx index 0c9b8de49b..5a14764f3c 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/PrintActionPluginProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { PrintActionInitializer } from './PrintActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts index 16182a2ab6..0db69c31d2 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneCalenderWithViewAction, oneTableWithViewAction } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts index 84ab88f58d..27faa3662d 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx b/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx index 645845abdf..9edd80fbe3 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { deprecatedPrintActionSettings, printActionSettings } from './PrintAction.Settings'; import { PrintActionPluginProvider } from './PrintActionPluginProvider'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts b/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts index ef37e20f6b..b9e7cb05cd 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useDetailsBlockContext, useFormBlockContext } from '@nocobase/client'; import { useReactToPrint } from 'react-to-print'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/index.ts b/packages/plugins/@nocobase/plugin-action-print/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/index.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/server/index.ts b/packages/plugins/@nocobase/plugin-action-print/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts index e16415b66b..734fa15c2c 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginActionPrintServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx b/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx index 2110468d4b..a494b55c0f 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx +++ b/packages/plugins/@nocobase/plugin-api-doc/src/client/Document.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, useAPIClient, useApp, useRequest } from '@nocobase/client'; import { getSubAppName } from '@nocobase/sdk'; import { Select, Space, Spin, Typography } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx b/packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx index bc8779b507..f1529534a0 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-api-doc/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RightOutlined } from '@ant-design/icons'; import { Plugin } from '@nocobase/client'; import { Button, Tooltip } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts index c5ea2761f8..086de067b1 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation as useT } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts index a052885f5b..5d53fb47d4 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { Plugin } from '@nocobase/server'; import { SwaggerManager } from './swagger'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts index ebd85d3018..ea685e8b8b 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/base-swagger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.3', info: { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts index 86cf7bb72b..bd9cf66e3c 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/field-type-map.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@nocobase/database'; const fieldTypeMap = { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts index 056b9a404f..155c02aec2 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import schemas from './schemas'; import parameters from './parameters'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts index 5fb37c8e1a..1f7a976e75 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/parameters.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import { getTypeByField } from './field-type-map'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts index eed1b7af50..87d5519b4f 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/components/schemas.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Field, RelationField } from '@nocobase/database'; import { getTypeByField } from './field-type-map'; import { associationFields } from '../paths/associations'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts index e873888dd6..a408fef750 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import paths from './paths'; import components from './components'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts index 763ed85657..558055e726 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToField, BelongsToManyField, diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts index dc01c79eca..291d1b230f 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/multiple-association.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyField, Collection, HasManyField } from '@nocobase/database'; import { CreateActionTemplate, diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts index 0c6f25ea3c..380784a8b4 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/associations/single-association.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToField, Collection, HasOneField } from '@nocobase/database'; import { appendCollectionIndexParams } from './multiple-association'; import { CreateActionTemplate, DestroyActionTemplate, GetActionTemplate, UpdateActionTemplate } from '../collection'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts index 487da1c50c..cd8c8341ed 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, RelationField } from '@nocobase/database'; import { hasSortField, readOnlyCollection } from './index'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts index 39e66bf7d1..f9fe4f79cd 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/paths/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/database'; import list from './collection'; import associations from './associations'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts index 32adcf5acc..4a8144424f 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/collections/tags/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection } from '@nocobase/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/@nocobase/plugin-api-doc/src/server/swagger/constants.ts index fb7cfcd38f..b78708c410 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/constants.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const SchemaTypeMapping = { uid: 'string', json: 'object', diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts index 0784e06642..8620b809ae 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/helpers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const createDefaultActionSwagger = ({ collection }) => { const responses = { default: { diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts index 3f56f4daf3..ada3670b65 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import APIDocPlugin from '../server'; import baseSwagger from './base-swagger'; import collectionToSwaggerObject from './collections'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts index bb81d941d9..63712c4f67 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/loader.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { requireModule } from '@nocobase/utils'; import { merge } from './merge'; diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts index 0aadb68ba8..cc2a8dce20 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/server/swagger/merge.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { merge as deepmerge } from '@nocobase/utils'; const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray.concat(destinationArray); diff --git a/packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts b/packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts index cc60d8036a..811bb5d38e 100644 --- a/packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts +++ b/packages/plugins/@nocobase/plugin-api-doc/src/swagger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - API doc plugin', diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx index 91c07377f0..8f875d8ade 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/ExpiresSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapProps, mapReadPretty } from '@formily/react'; import { css, useRecord } from '@nocobase/client'; import { useBoolean } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx index 91329dd13f..2b5584ce46 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecursionField } from '@formily/react'; import { SchemaComponentOptions, useCurrentRoles } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts index 00cb23733f..c6cdf937a9 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCurrentRoles } from '@nocobase/client'; export const useCurrentRolesProps = () => { diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx index bf099cfc96..cf7f38cb15 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; import { useActionContext, useBlockRequestContext, useRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx index c16d4168e1..cd7b22ea71 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/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/@nocobase/plugin-api-keys/src/client/locale/index.ts index 2b9163b19e..f4ac7f1f6c 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation as useT } from 'react-i18next'; import { NAMESPACE } from '../../constants'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts b/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts index 2a75a757f0..ddbb5e2574 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/collections/apiKeys.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CollectionOptions } from '@nocobase/database'; import { generateNTemplate } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts b/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts index c99c64ea4f..f3ec40ccdc 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/constants.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const NAMESPACE = '@nocobase/plugin-api-keys'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/index.ts b/packages/plugins/@nocobase/plugin-api-keys/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/index.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/locale.ts b/packages/plugins/@nocobase/plugin-api-keys/src/locale.ts index 8759f9f379..e026f6f8d4 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/locale.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NAMESPACE } from './constants'; export function generateNTemplate(key: string) { diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts index 88dcf192bd..0a7921b7e6 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts index 8bfe82639d..51e1dcf68a 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/actions/api-keys.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import actions, { Context, Next } from '@nocobase/actions'; import { Repository } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts index 62cd1d811f..02a1ccb428 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/collections/apiKeys.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import apiKeys from '../../collections/apiKeys'; export default apiKeys; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/en-US.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/fr-FR.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts index b0b1d48d5d..892a9b6393 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as enUS } from './en-US'; export { default as zhCN } from './zh-CN'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts index c4ccc3a3ea..c81f3e750f 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Role not found': '角色不存在', }; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts index fba165772a..d9152b32a6 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { create, destroy } from './actions/api-keys'; diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts index 18262229ae..d7baee07de 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-api-keys/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - API keys plugin', diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx index 9607e1581f..2c8dde58eb 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import { ISchema } from '@formily/react'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockProvider.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockProvider.tsx index 9569b2c108..bea1bd1c9e 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ExtendCollectionsProvider, TableBlockProvider } from '@nocobase/client'; import React from 'react'; import { useAuditChangesCollection, useAuditLogsCollection, useCollectionsCollection } from './collections'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsProvider.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsProvider.tsx index df1959f4a9..1229361889 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsProvider.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/AuditLogsProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { AuditLogsBlockInitializer } from './AuditLogsBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/__tests__/createAuditLogsBlockSchema.test.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/client/__tests__/createAuditLogsBlockSchema.test.ts index a950b94291..5f1005d9a6 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/__tests__/createAuditLogsBlockSchema.test.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/__tests__/createAuditLogsBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { createAuditLogsBlockSchema } from '../createAuditLogsBlockSchema'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/collections.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/collections.tsx index c1d4757ef0..c593a268e1 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/collections.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/collections.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAuditLogsTranslation } from './locale'; export const useAuditLogsCollection = () => { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsField.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsField.tsx index 314d1b048a..fd62c7662a 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsField.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EllipsisWithTooltip, useCompile } from '@nocobase/client'; import React from 'react'; import { observer, useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsValue.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsValue.tsx index 1e2c1ac088..fbc9969482 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsValue.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsValue.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EllipsisWithTooltip, FormProvider, SchemaComponent, useRecord } from '@nocobase/client'; import React from 'react'; import { observer, useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsViewActionInitializer.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsViewActionInitializer.tsx index 9dac55c1b9..9f614ab978 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsViewActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/components/AuditLogsViewActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionInitializer } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/createAuditLogsBlockSchema.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/createAuditLogsBlockSchema.tsx index 4970be528f..aed2aefd63 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/createAuditLogsBlockSchema.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/createAuditLogsBlockSchema.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx index b257d39a19..9c2c6acda8 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { observer, useField } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx index 03f57cd8af..5d1e4a0162 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/deplicated/AuditLogsDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { GeneralSchemaDesigner, diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/index.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/client/index.ts index e271c71a1e..d5282fd23d 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, SchemaInitializerItemType } from '@nocobase/client'; import { AuditLogsProvider } from './AuditLogsProvider'; import { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializer.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializer.tsx index a045445a7d..1dc40cf07f 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InitializerWithSwitch, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx index ebb7839748..a554a48796 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionColumnInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx index c5dd704b42..5d39838ea4 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer } from '@nocobase/client'; /** diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx index ac033c94ad..5fc45001fa 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/initializers/AuditLogsTableColumnInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, SchemaInitializerChildren, diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/client/locale/index.ts index 5784d89b65..f7ca17b3a2 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/client/utils.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/client/utils.ts index 1ecc634430..8718b5bcfc 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; export const createSchema = () => { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/index.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/index.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/__tests__/hook.test.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/__tests__/hook.test.ts index 4f8920a04a..956a1c3030 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/__tests__/hook.test.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/__tests__/hook.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditChanges.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditChanges.ts index c0713a4510..480f2da504 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditChanges.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditChanges.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditLogs.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditLogs.ts index 76609b423c..2a0ddd7a24 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditLogs.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/collections/auditLogs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/constants.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/constants.ts index 0cf75c7245..b8d3d42231 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/constants.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const LOG_TYPE_CREATE = 'create'; export const LOG_TYPE_UPDATE = 'update'; export const LOG_TYPE_DESTROY = 'destroy'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-create.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-create.ts index 4f6f480c2c..19315b1651 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-create.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-create.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LOG_TYPE_CREATE } from '../constants'; export async function afterCreate(model, options) { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-destroy.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-destroy.ts index 4a7b8fa59b..55d1d555ba 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-destroy.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-destroy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LOG_TYPE_DESTROY } from '../constants'; export async function afterDestroy(model, options) { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-update.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-update.ts index 72407e63dd..d7040a84ac 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-update.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/after-update.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LOG_TYPE_UPDATE } from '../constants'; export async function afterUpdate(model, options) { diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/index.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/index.ts index 3c84cf55e3..69e8ba86c8 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './after-create'; export * from './after-update'; export * from './after-destroy'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/index.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/index.ts index 6d971ae1b2..132cf0c079 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import path from 'path'; import { afterCreate, afterDestroy, afterUpdate } from './hooks'; diff --git a/packages/plugins/@nocobase/plugin-audit-logs/src/server/migrations/202206160949-logging.ts b/packages/plugins/@nocobase/plugin-audit-logs/src/server/migrations/202206160949-logging.ts index ade154ad0c..6400271c87 100644 --- a/packages/plugins/@nocobase/plugin-audit-logs/src/server/migrations/202206160949-logging.ts +++ b/packages/plugins/@nocobase/plugin-audit-logs/src/server/migrations/202206160949-logging.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class LoggingMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/client/Options.tsx b/packages/plugins/@nocobase/plugin-auth-sms/src/client/Options.tsx index 534b609f47..9530414636 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/client/Options.tsx +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/client/Options.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import React from 'react'; import { useAuthTranslation } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/client/SigninPage.tsx b/packages/plugins/@nocobase/plugin-auth-sms/src/client/SigninPage.tsx index 22071b91c7..d5411a76ef 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/client/SigninPage.tsx +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/client/SigninPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import { ISchema } from '@formily/react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/client/VerificationCode.tsx b/packages/plugins/@nocobase/plugin-auth-sms/src/client/VerificationCode.tsx index 1791c5dd0d..2d932df43e 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/client/VerificationCode.tsx +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/client/VerificationCode.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { css, useAPIClient } from '@nocobase/client'; import { Button, Input, message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/client/index.tsx b/packages/plugins/@nocobase/plugin-auth-sms/src/client/index.tsx index 71df75703e..478ef80714 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import AuthPlugin from '@nocobase/plugin-auth/client'; import { SigninPage } from './SigninPage'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/client/locale/index.ts index 05507a5e54..f025d0c30a 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'auth-sms'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/constants.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/constants.ts index b75db661d6..aacaa015f7 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/constants.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { name } from '../package.json'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/index.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/index.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/__tests__/signin.test.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/__tests__/signin.test.ts index 9a97bc4ef5..b0895c8d3c 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/__tests__/signin.test.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/__tests__/signin.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, Model, ModelStatic } from '@nocobase/database'; import VerificationPlugin from '@nocobase/plugin-verification'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/index.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/en-US.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/en-US.ts index 8da957a8b4..a5780ac09c 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'The email is incorrect, please re-enter', 'Please fill in your email address': 'Please fill in your email address', diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/fr-FR.ts index ea51f6bf9c..314562e3bd 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/fr-FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'L\'email est incorrect, veuillez le saisir à nouveau', 'Please fill in your email address': 'Veuillez remplir votre adresse e-mail', diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/index.ts index 03bcd4fced..29e1be6c80 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as enUS } from './en-US'; export { default as zhCN } from './zh-CN'; export { default as ptBR } from './pt-BR'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/ja-JP.ts index 5af98b70f1..63406d55ce 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/ja-JP.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/ja-JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Please fill in your email address': 'メールアドレスを入力してください', 'The password is incorrect, please re-enter': 'パスワードが正しくありません。再度入力してください。', diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/pt-BR.ts index d6b5f77ec1..6da802d81d 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'O e-mail está incorreto, por favor, digite novamente', 'Please fill in your email address': 'Por favor, preencha o seu endereço de e-mail', diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/zh-CN.ts index 8265a9444a..98fe263b57 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': '邮箱有误,请重新输入', 'Please fill in your email address': '请填写邮箱', diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20230607180000-sms-authenticator.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20230607180000-sms-authenticator.ts index 0248e66df6..49652811c7 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20230607180000-sms-authenticator.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20230607180000-sms-authenticator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { authType } from '../../constants'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20240425230310-change-locale-module.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20240425230310-change-locale-module.ts index cbd768562e..070af74c48 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20240425230310-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/migrations/20240425230310-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/plugin.ts index 352e5916a4..c6f042fe2d 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import VerificationPlugin from '@nocobase/plugin-verification'; import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-auth-sms/src/server/sms-auth.ts b/packages/plugins/@nocobase/plugin-auth-sms/src/server/sms-auth.ts index adead4c832..79d1dbe230 100644 --- a/packages/plugins/@nocobase/plugin-auth-sms/src/server/sms-auth.ts +++ b/packages/plugins/@nocobase/plugin-auth-sms/src/server/sms-auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AuthConfig, BaseAuth } from '@nocobase/auth'; import { Model } from '@nocobase/database'; import { AuthModel } from '@nocobase/plugin-auth'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx index e5597ac7ec..19f7dace2b 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/AuthProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient } from '@nocobase/client'; import React, { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts b/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts index 6d25e9ff27..7744cc818f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/__e2e__/auth.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; test.describe('auth', () => { diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts b/packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts index d50b4f3984..9c20517354 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/authenticator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; export type Authenticator = { diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx index 93a99d0c62..97a1d53c7a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/Options.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import React from 'react'; import { useAuthTranslation } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx index e0639ffaef..81177f21d3 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignInForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { SchemaComponent, useAPIClient, useCurrentUserContext } from '@nocobase/client'; import React, { useCallback } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx index dfbce92c87..fd7da1a4b6 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/SignUpForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import { ISchema } from '@formily/react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts b/packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts index a31cbddc7e..8ef05b3351 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/basic/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './SignInForm'; export * from './SignUpForm'; export * from './Options'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx index bf5ec09713..1aa3729d9b 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { Registry } from '@nocobase/utils/client'; import { ComponentType } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts index b8d1f63041..57ba7189a7 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'auth'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx index a999a45598..c37e8ae155 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/pages/AuthLayout.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import React from 'react'; import { Outlet } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx index 9ad740b69c..b8080e4724 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignInPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { Space, Tabs } from 'antd'; import React, { createElement, useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx index b95f54a414..175536a2b2 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/pages/SignUpPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCurrentDocumentTitle, usePlugin, useViewport } from '@nocobase/client'; import React, { useContext, createContext, FunctionComponent, createElement } from 'react'; import { Navigate, useSearchParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts b/packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts index 5b188796e7..7410c11aa5 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/pages/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AuthLayout'; export * from './SignInPage'; export * from './SignUpPage'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx index 4a613d05ce..c95737517d 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Authenticator.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionContextProvider, SchemaComponent, diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx index 3b6c14450d..e4535b24c7 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/Options.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { observer, useForm } from '@formily/react'; import { useActionContext, usePlugin, useRecord, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts b/packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts index 3f1b30c6de..f6f193ac43 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/authType.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; export const AuthTypeContext = createContext<{ diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts index e9225fa5a3..b021a9384f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { i18n, useAPIClient, useActionContext, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/index.ts b/packages/plugins/@nocobase/plugin-auth/src/index.ts index d107abf2fe..2ed7b8eb58 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { AuthModel, BasicAuth, default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/preset.ts b/packages/plugins/@nocobase/plugin-auth/src/preset.ts index 0ace317232..3c2bfdcda0 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/preset.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/preset.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { name } from '../package.json'; export const presetAuthType = 'Email/Password'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts index 3d5a2e28c3..0c002c2772 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth-model.test.ts b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth-model.test.ts index 1796c6a4e5..134972ac90 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth-model.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth-model.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import { AuthModel } from '../model/authenticator'; import { Database, Repository } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts index d1fb371718..c911251c93 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/auth.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseAuth } from '@nocobase/auth'; import { Database, Model } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts index 98500dbf21..2e5ad6527f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/storer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache, CacheManager } from '@nocobase/cache'; import { Storer } from '../storer'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts index a885cc1b09..aa476d912f 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/__tests__/token-blacklist.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ITokenBlacklistService } from '@nocobase/auth'; import Database, { Repository } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts b/packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts index c84fe9e79a..81ca2c90e2 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/actions/auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Context, Next } from '@nocobase/actions'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts index 7510b80083..72ad82bd4a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/actions/authenticators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Model, Repository } from '@nocobase/database'; import { namespace } from '../../preset'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts b/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts index df19b01aa1..ea43b82832 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/basic-auth.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AuthConfig, BaseAuth } from '@nocobase/auth'; import { PasswordField } from '@nocobase/database'; import crypto from 'crypto'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts index e77e07e69b..4b3badf667 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/collections/authenticators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; /** diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts b/packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts index d3bb3d8661..1115054ed3 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/collections/token-blacklist.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts index 3111710a32..513058114b 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/collections/users-authenticators.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; /** diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/index.ts b/packages/plugins/@nocobase/plugin-auth/src/server/index.ts index f150ec90e4..564510e4d5 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { BasicAuth } from './basic-auth'; export { AuthModel } from './model/authenticator'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts index 8da957a8b4..a5780ac09c 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'The email is incorrect, please re-enter', 'Please fill in your email address': 'Please fill in your email address', diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts index 37476d1bd6..58967f0cff 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/fr-FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'L\'email est incorrect, veuillez le saisir à nouveau', 'Please fill in your email address': 'Veuillez remplir votre adresse e-mail', diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts index 03bcd4fced..29e1be6c80 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as enUS } from './en-US'; export { default as zhCN } from './zh-CN'; export { default as ptBR } from './pt-BR'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts index 5af98b70f1..63406d55ce 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/ja-JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Please fill in your email address': 'メールアドレスを入力してください', 'The password is incorrect, please re-enter': 'パスワードが正しくありません。再度入力してください。', diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts index d6b5f77ec1..6da802d81d 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'O e-mail está incorreto, por favor, digite novamente', 'Please fill in your email address': 'Por favor, preencha o seu endereço de e-mail', diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts index 3c308c0427..de99c16e07 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The username or email is incorrect, please re-enter': '用户名或邮箱有误,请重新输入', 'The password is incorrect, please re-enter': '密码有误,请重新输入', diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts index a9e7a4ce63..2965da3e20 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230506152253-basic-authenticator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { presetAuthType, presetAuthenticator } from '../../preset'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts index e2a887cb6e..5c9932f224 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20230607174500-update-basic.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { presetAuthenticator } from '../../preset'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts index ecab69d839..a111ed56dd 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/migrations/20231218132032-fix-allow-signup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { presetAuthType } from '../../preset'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts b/packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts index 5c2c2ed1ff..1fe7b04640 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/model/authenticator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Authenticator } from '@nocobase/auth'; import { Database, Model } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts index 5c42e737e0..62827c536a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { Model } from '@nocobase/database'; import { InstallOptions, Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts b/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts index 3d1703a9eb..99b0f77c49 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/storer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Storer as IStorer } from '@nocobase/auth'; import { Cache } from '@nocobase/cache'; import { Database, Model } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts b/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts index 56b498003f..11dee1ced6 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/server/token-blacklist.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ITokenBlacklistService } from '@nocobase/auth'; import { Repository } from '@nocobase/database'; import { CronJob } from 'cron'; diff --git a/packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts index 27ab5cd845..4b066083b1 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Auth plugin', diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx b/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx index b0b2806978..967f86c1a4 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/client/Configuration.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InboxOutlined, PlusOutlined, ReloadOutlined, UploadOutlined } from '@ant-design/icons'; import { FormItem } from '@formily/antd-v5'; import { Checkbox, DatePicker, useAPIClient, useCompile } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx b/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx index 184cd770db..638a2c3726 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/client/DuplicatorProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React, { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx b/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx index 8ea08dbb24..e0515ff7f1 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { BackupAndRestoreList } from './Configuration'; import { DuplicatorProvider } from './DuplicatorProvider'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts index 8f2d42f15b..d59a57d96b 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/index.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/index.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts index 048e92d2ab..9d51baf961 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/locale/ja-JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'System metadata': 'システムメタデータ', 'System config': 'システム構成', diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts index b8dd555d24..49a5afa2bb 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const locale = { 'System metadata': 'Metadados do Sistema', 'System config': 'configuração do sistema', diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts index 0a684f3b79..19c303f04c 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/api.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, waitSecond } from '@nocobase/test'; import { Dumper } from '../dumper'; import createApp from './index'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts index 8cd0772afc..3a0649c208 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dump-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import fsPromises from 'fs/promises'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts index cb22104f63..bc31b2e133 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/dumper.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import fs from 'fs'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts index 83672fccfd..29895b02b4 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer } from '@nocobase/test'; export default async function createApp() { diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts index aace1da750..e45a51956e 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/__tests__/on-dump.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { Collection, Database } from '@nocobase/database'; import createApp from './index'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts index 49a1eacf11..7ed6e86872 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/app-migrator.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import { applyMixins, AsyncEmitter } from '@nocobase/utils'; import crypto from 'crypto'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts index fa89460ae6..f01c8d3505 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/commands/restore-command.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Application, AppSupervisor } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts index dbcfd373d2..d431dfb648 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, CollectionGroupManager as DBCollectionGroupManager, DumpRulesGroupType } from '@nocobase/database'; import archiver from 'archiver'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts index a09086e96e..ff9f94f2e3 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/errors/restore-check-error.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class RestoreCheckError extends Error { constructor(message) { super(message); diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts index 946a679c76..793368711d 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/field-value-writer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes, Field } from '@nocobase/database'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts index 0736493f78..14bd27f3d7 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Select Import data': '请选择导入数据', 'Select Import Plugins': '请选择导入插件', diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts index e8f5a5bb73..b13cc5d4cd 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/resourcers/backup-files.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Dumper } from '../dumper'; import { DumpRulesGroupType } from '@nocobase/database'; import fs from 'fs'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts index 8c1a3c6a54..1d5dddfb20 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/restorer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import decompress from 'decompress'; import fs from 'fs'; import fsPromises from 'fs/promises'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts index 4b75c4908b..07ddfd7cc3 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import backupFilesResourcer from './resourcers/backup-files'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts index 4897b33efd..159b933f54 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { Database } from '@nocobase/database'; import fs from 'fs'; diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts index 0f082b0759..bedf2fd2b3 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Backup & Restore plugin', diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.Designer.tsx b/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.Designer.tsx index d1857b6ec9..f2f23a6bc6 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.tsx b/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.tsx index 5db114ee67..b87830d5c8 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.tsx +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/Iframe.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField } from '@formily/react'; import { useRequest } from '@nocobase/client'; import { Card, Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockInitializer.tsx index 54705ed47d..69df37e5ab 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockProvider.tsx b/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockProvider.tsx index 746359bd45..47cbddc7cd 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/IframeBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { Iframe } from './Iframe'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/index.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/client/index.ts index d5ae4c2953..d8063da592 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { IframeBlockProvider } from './IframeBlockProvider'; import { iframeBlockSchemaSettings, iframeBlockSchemaSettings_deprecated } from './schemaSettings'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/client/schemaSettings.ts index 771a14d6e7..bd47e9c2fb 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/client/schemaSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; import { SchemaSettings, useAPIClient, useDesignable } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/index.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/index.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/server/actions/index.ts index c16728ccf3..26b94d332e 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/server/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Repository } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/server/collections/iframe-html.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/server/collections/iframe-html.ts index d2ee425c77..4d6ad3a6e5 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/server/collections/iframe-html.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/server/collections/iframe-html.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/server/index.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/server/plugin.ts index cc3ba55587..c0200e279f 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import path from 'path'; import { getHtml } from './actions'; diff --git a/packages/plugins/@nocobase/plugin-block-iframe/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-block-iframe/src/swagger/index.ts index 76c5711783..39b3449c13 100644 --- a/packages/plugins/@nocobase/plugin-block-iframe/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-block-iframe/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Iframe block plugin', diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts index bdae981de7..68de410983 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { emptyPageWithCalendarCollection, oneTableWithCalendarCollection } from './templates'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts index 9198108de5..c44a1f3dcc 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; const calendarCollection = { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx index ec2538f5e9..775a6fff4d 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/calendar.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { render, screen, waitFor } from '@nocobase/test/client'; import dayjs from 'dayjs'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts index ffbffdbff1..7c7d933216 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/__tests__/createCalendarBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createCalendarBlockUISchema } from '../schema-initializer/createCalendarBlockUISchema'; vi.mock('@formily/shared', async () => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx index b48b97529c..a0f9770f05 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@nocobase/client'; import React from 'react'; export const CalendarDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx index eee9fa6e5c..5429423c14 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calendar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import { RecursionField, Schema, observer, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx index 2e3260b096..2faaa6c765 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Calender.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx index 2a33487377..b5fb6654ac 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/DeleteEvent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Modal, Radio, Space, Typography } from 'antd'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx index 4550041bad..5e08c41e85 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Event.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx index 53736e9aaf..326460f541 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Nav.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import { observer } from '@formily/react'; import { Button } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx index 6cc05f29c1..ad96686ffd 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Title.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Button } from 'antd'; import React, { useContext, useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx index fa82c8a179..e52b988043 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/Today.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Button } from 'antd'; import React, { useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx index 9db3c10846..b303dd5c46 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/ViewSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Select } from 'antd'; import React, { useContext } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx index ba0fde7d81..64262dafc3 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/components/Header.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { getLunarDay } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts index 877cb54d92..36d3ba76d1 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; import type { ToolbarProps } from './types'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts index d19d73227c..f97060d3a0 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { data: [ { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts index 51a0deb0a6..ed30cdd3a0 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { data: [ { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts index ab3a2f7368..91094e10b7 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/defaultValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const now = new Date(); export default [ diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx index 227650c1d6..2e0d47c874 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Calendar */ diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx index 9f94766786..648d8531e2 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { AntdSchemaComponentProvider, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts index 988a41a259..1bd5e958d2 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createGlobalStyle } from 'antd-style'; const GlobalStyle = createGlobalStyle` diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts index b5ddca3e5c..73bb04d682 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionBar } from '@nocobase/client'; import { Calendar } from './Calendar'; import { CalendarDesigner } from './Calendar.Designer'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts index 26b9509277..057dd5ebbe 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '@nocobase/client'; export default genStyleHook('nb-calendar', (token) => { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts index fcb6f0104e..81127d8622 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/types.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface ToolbarProps { localizer?: any; label?: any; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts index 7f7a8f6e16..633101895e 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; import { get } from 'lodash'; import solarLunar from 'solarlunar-es'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx index fcf3354992..ba43bc478e 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/collection-templates/calendar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionTemplate, ICollectionTemplate, getConfigurableProperties } from '@nocobase/client'; import { generateNTemplate } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts index 7e29575ec2..268b5fbfcc 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockDecoratorProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParentRecordCommon } from '@nocobase/client'; import { useCalendarBlockParams } from './useCalendarBlockParams'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts index b6c0b9af27..2ab54aaa57 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/hooks/useCalendarBlockParams.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useParsedFilter } from '@nocobase/client'; import { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx index bf19d1cf52..26b8db28d1 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { generateNTemplate } from '../locale'; import { CalendarV2 } from './calendar'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx index 6a08b0b859..81f5f524d4 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/CalendarBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { BlockProvider, FixedBlockWrapper, useBlockRequestContext, withDynamicSchemaProps } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts index b0c2a5f2be..cf83149ca5 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/createCalendarBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { generateNTemplate } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx index ed399101ac..a9e213dc34 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase/client'; import { generateNTemplate } from '../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx index 400e34953b..7a2dac6278 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarFormActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializer, SchemaInitializerItemType, useCollection_deprecated } from '@nocobase/client'; import { generateNTemplate } from '../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts index 84ff2eed3d..265f379f70 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CalendarActionInitializers'; export * from './CalendarFormActionInitializers'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx index 0f46fd8986..844436022a 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/CalendarBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx index 97b0b327d9..ea8798fd93 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts index e2f62374a7..0501600742 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/items/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CalendarBlockInitializer'; export * from './RecordAssociationCalendarBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts index a0a1f70d1a..e9f03df802 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/en_US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Configure calendar", "Title field": "Title field", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts index 01e9167868..623ac10a91 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/es_ES.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Configurar calendario", "Title field": "Campo de título", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts index 2f32f79466..3327363f00 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/fr_FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Configurer le calendrier", "Title field": "Champ de titre", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts index 42a6600b83..d8e966bf7a 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation as useT } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts index 879ff4c7b6..c1fb261f83 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/ja_JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "カレンダーの設定", "Title field": "タイトルフィールド", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts index 6803990388..0f1206a996 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/ko_KR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "캘린더 구성", "Title field": "제목 필드", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts index 11e2db7899..a7486b5151 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/pt_BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Configurar calendário", "Title field": "Campo de título", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts index 84e737d886..627a70d49b 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/ru_RU.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Настроить календарь", "Title field": "Поле заголовка", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts index b13d86293b..2fc3d31e86 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/tr_TR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Takvimi yapılandır", "Title field": "Başlık alanı", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts index f7cc367a17..31652957b6 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/uk_UA.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Configure calendar": "Налаштувати календар", "Title field": "Поле заголовка", diff --git a/packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts index 14b3c26446..e135b3bb45 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Configure calendar': '配置日历', 'Title field': '标题字段', diff --git a/packages/plugins/@nocobase/plugin-calendar/src/server/index.ts b/packages/plugins/@nocobase/plugin-calendar/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-calendar/src/server/server.ts b/packages/plugins/@nocobase/plugin-calendar/src/server/server.ts index 907c44bc6f..72a542ad80 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; export default class PluginCalendarServer extends Plugin {} diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx index d4180ef308..9ab66b8ab6 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngine.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCompile, useRequest } from '@nocobase/client'; import { Empty, Spin } from 'antd'; import JSON5 from 'json5'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx index 286a3abdb2..22f314b3b6 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockEngineDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext, useField, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx index c86a6ec1cb..f37c66f88d 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/ChartBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { RecursionField, Schema, SchemaOptionsContext, observer, useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx index 432b17d9b7..374c0eb01c 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx index cbbf014b74..2e43a10e0f 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/ChartQueryMetadataProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useRequest } from '@nocobase/client'; import { Spin } from 'antd'; import React, { createContext, useContext, useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx index 3fa2d83a32..a26f25e910 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/DataSetPreviewTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { FormItem, Input, SchemaComponent, SchemaComponentProvider, TableV2 } from '@nocobase/client'; import { Empty, Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx index 1835ccb15f..37e251289b 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/Icons.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts index e2bc7b5783..43a85d13cb 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/chartRenderComponents/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { G2Plot } from '@nocobase/client'; import DataSetPreviewTable from '../DataSetPreviewTable'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts index 07d1d6fe66..08899e4fe8 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useChartQueryMetadataContext } from '../ChartQueryMetadataProvider'; import { useEffect, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx index 0eff99b258..0e67605f17 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerValidateRules } from '@formily/core'; import { BlockSchemaComponentPlugin, Plugin, SchemaComponentOptions, useAPIClient } from '@nocobase/client'; import JSON5 from 'json5'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts index 71c6c1c683..49a6e33c35 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx index ffda8f2041..a9917789b4 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/select/CustomSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; import { Icon, StablePopover, css } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx index 391cf7ffb6..bd58edc68b 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/select/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { isArrayField } from '@formily/core'; import { observer, useField } from '@formily/react'; import { isValid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts index 8e772cb690..9960ca8d38 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/select/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CustomSelect'; export * from './shared'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts b/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts index d440fdd40d..b5e4a3ae51 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/select/shared.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; export const defaultFieldNames = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx index d8728ec130..f51c189ac7 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/settings/AddNewQuery.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { createForm } from '@formily/core'; import { ISchema, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx index cb15739f61..a4d91c994f 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/settings/ConfigureFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useRecord } from '@nocobase/client'; import { Table } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx index c2cc5f7bee..14f7c25572 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/settings/QueriesTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import { Card } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts b/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts index 0a378b67f8..c39669b362 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/settings/queryTypes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts index fb2fefd5e3..922b1449ac 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/settings/schemas/chartsQueries.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx index 018e16cd51..d5ddd58c96 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/AreaTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx index 23cb4cdfe2..26f9b970ae 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/BarTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx index 0614bcdf68..f9d451efc7 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ColumnTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx index bd7439268f..39d52e1d4a 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/FunnelTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx index bd02df737c..fae41e0703 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/LineTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx index 8d2753f996..0f0f0cc368 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/PieTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx index 770ff0d2a3..7a6368d5ae 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/RadarTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx index 78f72e2e60..964aebd71f 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/ScatterTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const chartConfig = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx b/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx index 68addb3d94..46eae04b76 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/TableTemplate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; const validateJSON = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts b/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts index 49171d4db2..28c5a3f057 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/templates/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { pieTemplate } from './PieTemplate'; import { barTemplate } from './BarTemplate'; import { columnTemplate } from './ColumnTemplate'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts b/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts index 3bf0a3eef4..4a427244fd 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/index.ts b/packages/plugins/@nocobase/plugin-charts/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts index 056d2b6706..2db438fa05 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Edit: 'Edit', Delete: 'Delete', diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts index 7466cc0f75..a050e6bd10 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/es-ES.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Edit": "Editar", "Delete": "Borrar", diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/fr-FR.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/ja-JP.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts index e0cefaf12f..879651bd95 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/ko_KR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Edit": "편집", "Delete": "삭제", diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts index 6969b693c1..429a7d0109 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Edit: 'Editar', Delete: 'Delete', diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/ru-RU.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts index ff8b4c5632..f3f1abbf93 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/tr-TR.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default {}; diff --git a/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts index 38955e9efc..832e5d26f6 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Edit: '编辑', Delete: '删除', diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts index e80cf8d6ee..b743429e8f 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/actions/chartsQueries.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import JSON5 from 'json5'; import { query } from '../query'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/actions/index.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts b/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts index 1b07e0be53..61eb34c3f8 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/collections/chartsQueries.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/index.ts b/packages/plugins/@nocobase/plugin-charts/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts index 84ad0ed3a8..50689fc264 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import JSON5 from 'json5'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/query.ts b/packages/plugins/@nocobase/plugin-charts/src/server/query.ts index 0802b1a3f9..b3f5196f18 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/query.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/query.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; export const query = { diff --git a/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts b/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts index 3fa6adc085..f9fa60d6d3 100644 --- a/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts +++ b/packages/plugins/@nocobase/plugin-charts/src/server/shared/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const choicesTypeInterfaceArray = ['radioGroup', 'select']; export { choicesTypeInterfaceArray }; diff --git a/packages/plugins/@nocobase/plugin-client/src/client/index.ts b/packages/plugins/@nocobase/plugin-client/src/client/index.ts index 2ccffaa328..672b64d4e5 100644 --- a/packages/plugins/@nocobase/plugin-client/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-client/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-client/src/index.ts b/packages/plugins/@nocobase/plugin-client/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-client/src/index.ts +++ b/packages/plugins/@nocobase/plugin-client/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts b/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts index d2207c7726..c9911a4ad6 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/__tests__/20231215215245-admin-menu-uid.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import Migration from '../migrations/20231215215247-admin-menu-uid'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/antd.ts b/packages/plugins/@nocobase/plugin-client/src/server/antd.ts index 190c249d5c..23dba1c2e4 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/antd.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/antd.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { requireModule } from '@nocobase/utils'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/cron.ts b/packages/plugins/@nocobase/plugin-client/src/server/cron.ts index cf6fcd8f24..074a90a393 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/cron.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/cron.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { requireModule } from '@nocobase/utils'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts b/packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts index 63280ced95..a663215918 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/cronstrue.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const methods = [ 'atX0SecondsPastTheMinuteGt20', 'atX0MinutesPastTheHourGt20', diff --git a/packages/plugins/@nocobase/plugin-client/src/server/index.ts b/packages/plugins/@nocobase/plugin-client/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts b/packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts index 76dd9dbc37..1801cc265d 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/migrations/20230620203216-admin-ui-schema-uid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts b/packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts index 26fec6981c..01563c6198 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/migrations/20231215215247-admin-menu-uid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-client/src/server/server.ts b/packages/plugins/@nocobase/plugin-client/src/server/server.ts index db69fcc988..34e1846f4d 100644 --- a/packages/plugins/@nocobase/plugin-client/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-client/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { resolve } from 'path'; import { getAntdLocale } from './antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/calendar.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/calendar.test.ts index 5b04505161..affbb12358 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/calendar.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/calendar.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts index 75aa786d64..58661e528b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/connectToDatabaseView.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { test } from '@nocobase/test/e2e'; test.describe('create collection', () => {}); diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/expression.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/expression.test.ts index 293e483dc7..de3ec229e9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/expression.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/expression.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/file.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/file.test.ts index ae08d7a93e..f405dc9e8e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/file.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/file.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/general.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/general.test.ts index f028554564..91a45e88be 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/general.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/general.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage, FieldInterface } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/sql.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/sql.test.ts index c39b99f6df..bf2775f3d5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/sql.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/sql.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/tree.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/tree.test.ts index 7e7220b831..8aeb8cbbe1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/tree.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/collection-template/tree.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { uid } from '@nocobase/utils'; import { CollectionManagerPage } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts index 8df4c60fa8..4cf0536e45 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaSettings.test.ts index 4a3b3bde06..eb975db165 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/attachment/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts index 2d50ad5670..9d436d00f2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts index 8d6165c572..b71a961b5c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/belongsTo/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts index 5501af9588..6c69346832 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts index e2020d34ba..344dea224f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkbox/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts index 844b802ec2..4245c3231d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/checkboxGroup/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts index 8e5cbf446e..1ccc460b9c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/chinaRegion/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaInitializer.test.ts index 90ceb02b6f..1f713c7903 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectInitializerMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaSettings.test.ts index bc1c762e81..9da3a3761a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/collection/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@nocobase/test/e2e'; import { createColumnItem, showSettingsMenu } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaInitializer.test.ts index c603fa8db3..2becccb476 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaSettings.test.ts index 5bbb8fa95c..b34c25b115 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/color/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts index db36ba535d..1a4bb0fee9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts index 1cd598d643..e93e381d5e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdAt/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts index 5051d3650a..f75ab77e16 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/createdBy/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts index f2e793c62e..584b8972fc 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectInitializerMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaSettings.test.ts index aa04c6381d..935acb35f4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/datetime/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaSettings.test.ts index 65397187a5..6b0d689d09 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/email/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaSettings.test.ts index 45c6d24ea3..8d0113bcb2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/formula/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@nocobase/test/e2e'; import { createColumnItem, showSettingsMenu } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts index 07aa6883ef..173a80653b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/hasOne/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaSettings.test.ts index eea351f3fe..90499ffc80 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/icon/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaSettings.test.ts index 8261228fe0..ad9ad1caae 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/id/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaSettings.test.ts index 8850f0f5c6..13684f0861 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/integer/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaSettings.test.ts index 8f6d2d9f65..1be472dd98 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/json/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@nocobase/test/e2e'; import { createColumnItem, showSettingsMenu } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts index 15a97a8aec..3e8b877b06 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedAt/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields, test } from '@nocobase/test/e2e'; import { createColumnItem, showSettingsMenu } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts index c6233df458..f6446035ea 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/lastUpdatedBy/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaSettings.test.ts index 9043f57c2a..d4bcc7e9d2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/longText/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings1.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings1.test.ts index 4f402522fb..03f4dc0d2e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings1.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings1.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings2.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings2.test.ts index 9e122a01ea..0b66405ec9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings2.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings2.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings3.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings3.test.ts index 1b600c2891..a6319138d4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings3.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings3.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings4.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings4.test.ts index eabe0a8fac..77e17d2adc 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings4.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings4.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneFilterFormBlockWithAllAssociationFields, test } from '@nocobase/test/e2e'; test.describe('form item & filter form', () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings5.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings5.test.ts index 0bd137f5be..be66179c52 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings5.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToMany/schemaSettings5.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAssociationFields, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts index be55b74cd2..c02952083f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts index 5e9fa3af12..26b9060f19 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/manyToOne/templatesOfBug.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig, generalWithAssociation } from '@nocobase/test/e2e'; export const T3377: PageConfig = { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaSettings.test.ts index 2cc04305e5..d38edfeb98 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/markdown/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts index 201b395eb7..08e08f9acf 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/mutipleSelect/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaSettings.test.ts index b70d95ee06..4e135aae2d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/number/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts index f3d93d05e7..8100b12a33 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/oneToMany/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaSettings.test.ts index c11376d360..130fa2bd80 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/password/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaSettings.test.ts index 403c801be3..a09b8b3aac 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/percent/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaSettings.test.ts index 4458b51abe..f03dcb60ea 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/phone/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts index 86e5eb0e36..5aa94b9b4f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/radioGroup/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaSettings.test.ts index 51ff855f55..84bb197620 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/richText/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaSettings.test.ts index 29900fe728..ef5df75876 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/sequence/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expectSettingsMenu, oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields, test } from '@nocobase/test/e2e'; import { createColumnItem, showSettingsMenu } from '../../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts index 5dc281553c..b514047c46 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleLineText/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts index 13a361eaa3..28979a5c7c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/singleSelect/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts index 4c1c80b1c1..31ca271f2c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/tableOID/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaInitializer.test.ts index 2d3f41aef0..307a4af1cd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { test } from '@nocobase/test/e2e'; test('form item & create form', async ({ page, mockPage }) => {}); diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaSettings.test.ts index d9ed9a4f28..0d909d107b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/time/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaInitializer.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaInitializer.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaSettings.test.ts index 2fd8010f9a..a87eb4477a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/fields/url/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/utils.ts index 7b5d406fae..6e3f93d83f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Page, expect } from '@nocobase/test/e2e'; export async function showSettingsMenu(page: Page, fieldName: string) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/client/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/client/index.ts index aae0622b95..f333386c37 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginDataSourceMainClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/index.ts index 1c6f764686..3be9599999 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/action.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/action.test.ts index cb636a32fd..f36b80b8b3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/action.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/associations/reference-integerity-check.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/associations/reference-integerity-check.test.ts index eaaf0004e0..ede7980ffc 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/associations/reference-integerity-check.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/associations/reference-integerity-check.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/beforeInitOptions.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/beforeInitOptions.test.ts index 30542685ca..ecebf5e401 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/beforeInitOptions.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/beforeInitOptions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-categories.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-categories.test.ts index 90652520bc..bd25260ed3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-categories.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-categories.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from './index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-load.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-load.test.ts index ebfdda0cfa..700270333f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-load.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-load.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from './index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-without-id-primary-field.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-without-id-primary-field.test.ts index b43d510f66..39351d0cc4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-without-id-primary-field.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collection-without-id-primary-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from './index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collections.repository.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collections.repository.test.ts index b8f541fffb..52680993c4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collections.repository.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/collections.repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { CollectionGroupManager, Collection as DBCollection, HasManyRepository } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/default-value.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/default-value.test.ts index 1196a05a4e..573fc1b0bf 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/default-value.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/default-value.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '..'; import { Collection } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/indexes.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/indexes.test.ts index 9cdeef2ea4..4f96a67557 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/indexes.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/field-options/indexes.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields.repository.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields.repository.test.ts index 529ba28383..26fbd8bfc0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields.repository.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields.repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection, StringFieldOptions } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to-many.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to-many.test.ts index 8301bffe2b..dd1896b108 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to-many.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to-many.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to.test.ts index 78f23f71ae..d3023bc26f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongs-to.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongsTo.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongsTo.test.ts index 78f23f71ae..d3023bc26f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongsTo.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/belongsTo.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/destroy.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/destroy.test.ts index c9aa7b4dde..c738769562 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/destroy.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/destroy.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasMany.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasMany.test.ts index 8e2f75b9cf..ee6fe06c39 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasMany.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasMany.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasOne.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasOne.test.ts index 9b31f52647..542b3eabb2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasOne.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/hasOne.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/reverseField.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/reverseField.test.ts index 4a46119bf1..c0a97c8082 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/reverseField.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/reverseField.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/uuid.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/uuid.test.ts index d17e4c7dbf..bca8c27ec0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/uuid.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/fields/uuid.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/belongs-to-many.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/belongs-to-many.test.ts index c257d7be00..3555c6352b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/belongs-to-many.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/belongs-to-many.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/collections.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/collections.test.ts index d211541e0d..d39908b9de 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/collections.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/collections.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/find.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/find.test.ts index c1db34cf0e..a5ad1973b3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/find.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/find.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/has-many.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/has-many.test.ts index 272506e2aa..c1bb202366 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/has-many.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/has-many.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/inherited-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/inherited-collection.test.ts index b4a367bcc7..26f51e3084 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/inherited-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/inherited-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, pgOnly } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/recreate.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/recreate.test.ts index f1ffff2e95..8d998c503a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/recreate.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/recreate.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/tree.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/tree.test.ts index fd454d7c77..20ab129aeb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/tree.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/tree.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { Database } from '@nocobase/database'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/validate-update-action.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/validate-update-action.test.ts index 5317419b15..7f1743c417 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/validate-update-action.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/validate-update-action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/view-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/view-collection.test.ts index a4c523d3b9..71e3e989a7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/view-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/http-api/view-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, DataTypes, Field, Repository } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/index.ts index db7fc40c54..92e2026ab4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer } from '@nocobase/test'; export async function createApp(options: any = {}) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inherited-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inherited-collection.test.ts index 6a98942f6b..56626b7f17 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inherited-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inherited-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { BelongsToManyRepository, BelongsToRepository, diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts index ec34284281..9a850f77e2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/inherits/inhertied-collection-with-schema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts index 2cd757ce06..c07ebf3b90 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20221104151410-update-collections-hidden.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, MigrationContext } from '@nocobase/database'; import UpdateCollectionsHiddenMigration from '../../migrations/20221104151410-update-collections-hidden'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20240420105949-add-sort-field.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20240420105949-add-sort-field.test.ts index b6feaf9909..dd3ac8ee21 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20240420105949-add-sort-field.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/20240420105949-add-sort-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import Migration from '../../migrations/20240420105949-add-sort-field'; import PluginCollectionManagerServer from '../../server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts index c884c44299..1ac18aede0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/drop-ui-schema-relation.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, MigrationContext } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/fix-created-by-field.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/fix-created-by-field.test.ts index eb3e9492f7..d17f7d9915 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/fix-created-by-field.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/fix-created-by-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { Database, MigrationContext } from '@nocobase/database'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/set-collection-schema.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/set-collection-schema.test.ts index 6e7d361be6..c6ea02f6bb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/set-collection-schema.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/set-collection-schema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, MigrationContext } from '@nocobase/database'; import { MockServer, pgOnly } from '@nocobase/test'; import Migrator from '../../migrations/20230918024546-set-collection-schema'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/update-id-to-bigint.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/update-id-to-bigint.test.ts index db1a291053..8eb0bac87a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/update-id-to-bigint.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/migrations/update-id-to-bigint.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, MigrationContext } from '@nocobase/database'; import lodash from 'lodash'; import Migrator from '../../migrations/20221121111113-update-id-to-bigint'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/primary-key.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/primary-key.test.ts index 4f3f8efb6c..abf9fcc213 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/primary-key.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/primary-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, HasManyRepository } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from './index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/reference-integerity.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/reference-integerity.test.ts index 416360069b..3d3ffa1bae 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/reference-integerity.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/reference-integerity.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from './index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/remove-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/remove-collection.test.ts index a00f5af257..cbd944fe85 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/remove-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/remove-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.fields.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.fields.test.ts index 9449c57e00..54091f8897 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.fields.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.fields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.test.ts index fbd64b9d74..5eadfeca2a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/resources/collections.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { HasManyRepository } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { createApp } from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sql/sql-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sql/sql-collection.test.ts index 4c399a6489..61a0f746f9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sql/sql-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sql/sql-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, SQLModel } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sync.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sync.test.ts index b6152a9225..a384469e5e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sync.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/sync.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/through.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/through.test.ts index 35299296e7..4a7bc55c51 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/through.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/through.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, startMockServer } from '@nocobase/test'; describe('collections repository', () => { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-collection.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-collection.test.ts index 5d7ddae2b6..35aa72468a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-collection.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository, ViewCollection, ViewFieldInference } from '@nocobase/database'; import Application from '@nocobase/server'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-with-filter-target-key.test.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-with-filter-target-key.test.ts index 267fdba889..f72ec4b32a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-with-filter-target-key.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/__tests__/view/view-with-filter-target-key.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import Application from '@nocobase/server'; import { createApp } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collectionCategories.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collectionCategories.ts index 3f415cdb04..ca91578636 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collectionCategories.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collectionCategories.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collections.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collections.ts index 9375202d3b..ad6c56eb2a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/fields.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/fields.ts index 4bf585ba74..e5629ed1e8 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/fields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/collections/fields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForForeignKeyField.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForForeignKeyField.ts index 7669070387..0250f9313b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForForeignKeyField.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForForeignKeyField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; export function afterCreateForForeignKeyField(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForReverseField.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForReverseField.ts index b156e84f26..a07bc03757 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForReverseField.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterCreateForReverseField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; export function afterCreateForReverseField(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterDestroyForForeignKeyField.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterDestroyForForeignKeyField.ts index fb55d7b172..8a7b73cdb2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterDestroyForForeignKeyField.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/afterDestroyForForeignKeyField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { FindOneOptions, FindOptions, Model, Transaction } from '@nocobase/database'; async function destroyFields(db: Database, transaction: Transaction, fieldRecords: Model[]) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForChildrenCollection.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForChildrenCollection.ts index b9258610d6..62a8c0e746 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForChildrenCollection.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForChildrenCollection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; export function beforeCreateForChildrenCollection(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForReverseField.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForReverseField.ts index cef3bb32f6..42a1009161 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForReverseField.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForReverseField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; export function beforeCreateForReverseField(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForValidateField.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForValidateField.ts index f727c3a823..49cfc6cf76 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForValidateField.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForValidateField.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; export function beforeCreateForValidateField(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForViewCollection.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForViewCollection.ts index 6cd094dc61..5fbbdb4741 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForViewCollection.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeCreateForViewCollection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; export function beforeCreateForViewCollection(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeDestroyForeignKey.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeDestroyForeignKey.ts index 7054a27bd8..5d976eddfd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeDestroyForeignKey.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeDestroyForeignKey.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; export function beforeDestroyForeignKey(db: Database) { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeInitOptions.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeInitOptions.ts index 8f4179a64d..c5e8e42fb5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeInitOptions.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/beforeInitOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Model } from '@nocobase/database'; import { uid } from '@nocobase/utils'; import { Utils } from 'sequelize'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/index.ts index 8e893fe098..fbbcb59783 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './afterCreateForForeignKeyField'; export * from './afterCreateForReverseField'; export * from './beforeCreateForReverseField'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/index.ts index 948c0824a5..232d8447f3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './repositories'; export { default as fieldsCollection } from './collections/fields'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220613103214-alert-sub-table.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220613103214-alert-sub-table.ts index 3e052583ba..416fe82ed9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220613103214-alert-sub-table.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220613103214-alert-sub-table.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220704225714-drop-foreign-keys.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220704225714-drop-foreign-keys.ts index 7b2a8ede79..e3722a5ddb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220704225714-drop-foreign-keys.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20220704225714-drop-foreign-keys.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221101111110-update-foreign-fields.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221101111110-update-foreign-fields.ts index 1514a4c782..553439a71f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221101111110-update-foreign-fields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221101111110-update-foreign-fields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221104151410-update-collections-hidden.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221104151410-update-collections-hidden.ts index af65f074aa..e4f1c402b7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221104151410-update-collections-hidden.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221104151410-update-collections-hidden.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111110-update-fk-type.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111110-update-fk-type.ts index b8880a02d3..3c80ec1976 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111110-update-fk-type.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111110-update-fk-type.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { DataTypes } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111113-update-id-to-bigint.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111113-update-id-to-bigint.ts index bbe8d2eee1..a638aecc29 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111113-update-id-to-bigint.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221121111113-update-id-to-bigint.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { DataTypes } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221221103220-timestamps.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221221103220-timestamps.ts index f08e83da54..0531c70a6f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221221103220-timestamps.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20221221103220-timestamps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230225111112-drop-ui-schema-relation.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230225111112-drop-ui-schema-relation.ts index bdb60e4a41..15aa5ed775 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230225111112-drop-ui-schema-relation.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230225111112-drop-ui-schema-relation.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Collection } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230509111114-alert-ui-schema.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230509111114-alert-ui-schema.ts index c92652fefe..b40e741b01 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230509111114-alert-ui-schema.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230509111114-alert-ui-schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Collection } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230623145414-number-step.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230623145414-number-step.ts index 8adc60e2a8..736878e018 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230623145414-number-step.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230623145414-number-step.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Collection } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230704222935-tableoid.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230704222935-tableoid.ts index e892e59091..1eab9a96f6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230704222935-tableoid.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230704222935-tableoid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230918024546-set-collection-schema.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230918024546-set-collection-schema.ts index 863be2c665..4ac34966be 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230918024546-set-collection-schema.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20230918024546-set-collection-schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240220153103-install-main-datasource.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240220153103-install-main-datasource.ts index 2ae9d1f60a..d4a57c46cb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240220153103-install-main-datasource.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240220153103-install-main-datasource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240419182147-fix-created-by-field-target.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240419182147-fix-created-by-field-target.ts index 581d34b463..7d52ec823b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240419182147-fix-created-by-field-target.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240419182147-fix-created-by-field-target.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240420105949-add-sort-field.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240420105949-add-sort-field.ts index 5670912e57..b58a96bb56 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240420105949-add-sort-field.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/migrations/20240420105949-add-sort-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { CollectionRepository } from '../repositories'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/collection.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/collection.ts index bd6d3cbf63..980da5f24d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/collection.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection, MagicAttributeModel, SyncOptions, Transactionable } from '@nocobase/database'; import lodash from 'lodash'; import { QueryInterfaceDropTableOptions } from 'sequelize'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/field.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/field.ts index c09c704523..2acbe446d9 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/field.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection, MagicAttributeModel, SyncOptions, Transactionable } from '@nocobase/database'; interface LoadOptions extends Transactionable { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/index.ts index 730a3dd28e..ce80a254ab 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/models/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './collection'; export * from './field'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/collection-repository.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/collection-repository.ts index f98025e116..b1042816f3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/collection-repository.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/collection-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { Application } from '@nocobase/server'; import { CollectionsGraph } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/index.ts index 9cb43e2380..633449f0bd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/repositories/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './collection-repository'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/collections.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/collections.ts index 67faa908ea..ce349770f4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/sql.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/sql.ts index cac630c2cc..e44d7b95c7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/sql.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/sql.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { SQLModel, SqlCollection } from '@nocobase/database'; import { CollectionModel } from '../models'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/views.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/views.ts index 8ca144fbfb..f7247b0d39 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/views.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/resourcers/views.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, ViewFieldInference } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/server/server.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/server/server.ts index d923cb0cf3..ae4e90a5c5 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Filter, InheritedCollection, UniqueConstraintError } from '@nocobase/database'; import PluginErrorHandler from '@nocobase/plugin-error-handler'; import { Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-main/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-data-source-main/src/swagger/index.ts index 7a3bf1b9cb..19c667f882 100644 --- a/packages/plugins/@nocobase/plugin-data-source-main/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-main/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.2', info: { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx index 389d9837fc..a3dfbf9a69 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/DatabaseConnectionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React, { FC, useState, createContext } from 'react'; import * as hooks from './hooks'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts index 8609de1f9b..ae99bab4f1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/ThridDataSource.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataSourceOptions, DataSource } from '@nocobase/client'; export class ThirdDataSource extends DataSource { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx index 615f97b2cd..9391208a84 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/BreadcumbTitle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RightOutlined } from '@ant-design/icons'; import { useApp, useCompile, useDataSourceManager } from '@nocobase/client'; import { Breadcrumb, Space, Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx index b1d4c6cb2c..9153c5fe89 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/AddFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { ArrayTable } from '@formily/antd-v5'; import { useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx index 27259ea7d8..a95bc87b59 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm, Field } from '@formily/core'; import { FieldContext, FormContext, useField, RecursionField } from '@formily/react'; import { message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx index 0af9314fe4..57fac41ec4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm, useField } from '@formily/react'; import { action } from '@formily/reactive'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx index 8aa572876e..eb5526253f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/ConfigurationTabs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DndContext, DragEndEvent, DragOverlay, MouseSensor, useSensor, useSensors } from '@dnd-kit/core'; import { RecursionField, observer } from '@formily/react'; import { Badge, Card, Space } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx index 7d7f4133c9..f6bf0173f2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx index b461b29e2c..475a0691bb 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/EditFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable } from '@formily/antd-v5'; import { ISchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx index 6f80fb5862..41ea4974b1 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm, useField } from '@formily/react'; import { Select, Tag } from 'antd'; import React, { useEffect, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx index 8dedad30ae..1499dc21b7 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/CollectionName.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { LoadingOutlined } from '@ant-design/icons'; import { connect, mapProps, mapReadPretty } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx index 2f6904748a..0fd23ef752 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldTitleInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { Input } from 'antd'; import { debounce } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx index 6683f9ee6e..403015f0f6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/FieldType.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { useRecord } from '@nocobase/client'; import { Select, Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx index d01c2c60bb..aefe1d7f69 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/TitleField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Switch, Tooltip, message } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx index 97f809514c..726f507dba 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/UnSupportFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Table, Divider } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx index 24a8e578cd..51e6c92de3 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/components/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect, useState } from 'react'; import { Select } from 'antd'; import { observer, useForm, useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts index f32827989d..3d92428bab 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } from 'antd'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx index 7c1998f2a9..992227d220 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts index 869bc6723d..682a4d981a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collectionFields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { CollectionOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts index 8a293d5dcc..5c36dd575b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/schema/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/react'; import { uid } from '@formily/shared'; import { message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx index a2a731e99e..9a5699b694 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CreateDatabaseConnectAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined, PlusOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import { ActionContext, SchemaComponent, useAPIClient, useCompile, usePlugin } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx index f93ae951a2..401189a8a2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/DatabaseConnectionManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { SchemaComponent, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx index 94de0820e8..fd823a6d8f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/EditDatabaseConnectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { ActionContext, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx index 10163c0abf..7ec913b944 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/AddCategoryAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { useForm } from '@formily/react'; import { cloneDeep } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx index 3319b91b91..e08ccca7cd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/CollectionFields.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { createForm, Field } from '@formily/core'; import { FieldContext, FormContext, useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx index ef370ffd4a..6ed2d5f809 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { action } from '@formily/reactive'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx index 0a1f9754a9..97db883dbe 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { DndContext, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx index 3a3349e674..8537143283 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/EditCategoryAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { cloneDeep } from 'lodash'; import React, { useContext, useEffect, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx index bafb996d14..ae19b84f07 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { registerValidateFormats } from '@formily/core'; export * from './ConfigurationTable'; export * from './schemas/collections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx index 8998fd8c93..2eae79d00a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/interfaces.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface, useDataSourceManager } from '@nocobase/client'; import { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts index 8ab05fea3e..ac88036eae 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { CollectionFieldInterfaceTag, CollectionOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts index 0a1adf4a98..e4f2c16ae0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/react'; import { uid } from '@formily/shared'; import { message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx index d64df4b25d..2ddfa6464c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx index 8cdbdbcfb4..e9d5969a97 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/DataSourceTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } from 'antd'; import React, { createContext, useContext } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx index dd09b18023..34036e1664 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/PermisionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } from 'antd'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx index e25b4d3a00..ea5d05ac40 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RoleConfigure.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFieldChange } from '@formily/core'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx index 8a7f4a4aa0..2af22798dc 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/RolesResourcesActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormItem, FormLayout } from '@formily/antd-v5'; import { ArrayField } from '@formily/core'; import { connect, useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx index 036bfc0e78..119909c1d8 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/ScopeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import React, { createContext, useContext, useMemo, useState } from 'react'; import { FormProvider, SchemaComponent, useRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx index 2743e5db9a..1cc81ac77e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/StrategyActions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { connect, useField } from '@formily/react'; import { Checkbox, Select, Table, Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx index 2c5de53440..b5ec3ddfbe 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { Card } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts index 90620def02..c6536496ed 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/dataSourceTable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { roleCollectionsSchema } from './roleCollections'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts index 1f6b5ddfcf..875450bc43 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { useRoleResourceValues } from './useRoleResourceValues'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts index e22019e94f..da167fe77a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/scopes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { useContext, useEffect } from 'react'; import { useFormBlockContext, VariableInput, useFilterFieldOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts index 3997385219..6a607c85d6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useRoleResourceValues.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useEffect, useContext } from 'react'; import { useActionContext, useRecord, useRequest } from '@nocobase/client'; import { PermissionContext } from '../PermisionProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts index f8049f74f9..13387e2a8b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/useSaveRoleResourceAction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { useContext } from 'react'; import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts index c4e9179c39..533dc4532b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ css }) => { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx index 164ba96f92..d75e574d68 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/ViewDatabaseConnectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useRecord } from '@nocobase/client'; import React from 'react'; import { Button } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts index 8504fa741d..0dd1cfef08 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/constant.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getConnectionCollectionPath = (name: string | number) => `/admin/settings/data-source-manager/${name}/collections`; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts index 3e3f5fbfcd..b629f0f682 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm, useField } from '@formily/react'; import { message } from 'antd'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx index 6253699ade..3d5e7ecc47 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import React from 'react'; import { DatabaseConnectionProvider } from './DatabaseConnectionProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts index 57c92f1eda..694556fa31 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; export const NAMESPACE = 'data-source-manager'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts index 97cb3efdc4..8b57d3343b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/schema/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts index df3356794e..6764d46428 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-source-with-acl.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, MockServer } from '@nocobase/test'; import { CollectionManager, DataSource, IRepository } from '@nocobase/data-source-manager'; import { SuperAgentTest } from 'supertest'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts index 7c2fbd7124..d51e95d77b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/data-sources.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, MockServer, waitSecond } from '@nocobase/test'; import { CollectionManager, DataSource } from '@nocobase/data-source-manager'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/migrations/update-snippets.test.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/migrations/update-snippets.test.ts index 61de74e505..ae6121d8b4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/migrations/update-snippets.test.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/__tests__/migrations/update-snippets.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, MigrationContext } from '@nocobase/database'; import updateSnippetName from '../../migrations/20240414103927-update-snippet-name'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts index d4a54a93d7..5471f18c84 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts index 040822e18f..e57a93531b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts index f32bfc9bc8..8b468141ef 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts index 128a102434..b025bcd027 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources-scopes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts index cbb9bdeded..848519a92a 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles-resources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts index ecd3339e4a..94474be92d 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts index 8a4eb89e20..33abc24c6c 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts index 2c8b0ebdf1..1132789d0b 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/errors/type-infer-error.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class TypeInferError extends Error {} diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts index 36284a013a..03e072bde2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; export * from './utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts index c808ebfae6..64ed6be084 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240301164024-migrate-acl-resources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240414103927-update-snippet-name.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240414103927-update-snippet-name.ts index ff0a67229e..469a82035f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240414103927-update-snippet-name.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/migrations/20240414103927-update-snippet-name.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts index 505d0c35b6..b75b075737 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources-action.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RoleResourceActionModel } from '@nocobase/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/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts index 22f4397f70..3b3d6409cd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/connections-roles-resources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RoleResourceModel } from '@nocobase/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/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts index 17652811f3..d509e05783 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-source.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Transaction } from '@nocobase/database'; import { Application } from '@nocobase/server'; import { setCurrentRole } from '@nocobase/plugin-acl'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts index 9ce40faa60..c8b1a77085 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-collection-model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MagicAttributeModel } from '@nocobase/database'; import { Application } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts index b2be5c7468..3427ce48bf 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-field-model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MagicAttributeModel } from '@nocobase/database'; import { Application } from '@nocobase/server'; import { mergeOptions } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts index bf5ae9e0be..d9de3aeb3f 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/models/data-sources-roles-model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { ACL } from '@nocobase/acl'; import { Transaction } from 'sequelize'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts index bccf0b0955..0a86c9a987 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, Plugin } from '@nocobase/server'; import { resolve } from 'path'; import { DataSourcesCollectionModel } from './models/data-sources-collection-model'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts index e526f34feb..2870f71893 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections-fields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts index 2e576fae50..4abbfde784 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts index 4618d2d82c..4f8842e708 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-resources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'roles.dataSourceResources', actions: { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts index e6fc806fcb..193693326e 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/data-sources-roles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'dataSources.roles', actions: { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts index 1eda1661ff..802c79e9c6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/resourcers/roles-data-sources-collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FullDataRepository } from '../services/full-data-repository'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts index 32c03ed98c..66af18bdb6 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/full-data-repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CountOptions, FindOptions } from '@nocobase/database'; export class FullDataRepository { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts index fa10cb7fe9..8bcd28a0aa 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/services/type-interface-map.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ const typeInterfaceMap = { diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts index 1eb8508c3c..ed8695acaa 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function mergeOptions(fieldOptions, modelOptions) { const newOptions = { ...fieldOptions, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts index 907ba76aec..e8be89497e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-api.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import DataVisualizationPlugin from '..'; import { Chart } from '../chart/chart'; import { ChartGroup } from '../chart/group'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx index ae4155517a..4aaaf0b02c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/chart-configure.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { vi } from 'vitest'; describe('ChartConfigure', () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts index d4f7919433..c37fd93d03 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/__tests__/hooks.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as client from '@nocobase/client'; import { renderHook } from '@testing-library/react'; import { vi } from 'vitest'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx index 11f04752e7..0bd934da4f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlock.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions, SchemaInitializerContext, useSchemaInitializer } from '@nocobase/client'; import React, { useState } from 'react'; import { ChartConfigProvider } from '../configure'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx index 90697dbd42..5632f6a0d7 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, SchemaSettingsBlockTitleItem, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx index bc6f25dd13..bd9e82be06 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BarChartOutlined, LineChartOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx index aba624d9b7..7360e6f819 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/ChartDataProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useState } from 'react'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts index e28794071c..e9048ca4af 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/block/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ChartBlock'; export * from './ChartBlockDesigner'; export * from './ChartBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts index c48fac2449..320a2d23e9 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/antd.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Chart } from '../chart'; export class AntdChart extends Chart { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts index 9c75ae6e65..3a8c9a476b 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Statistic } from './statistic'; import { Table } from './table'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts index 144409a9ab..0e43338944 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/statistic.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AntdChart } from './antd'; import { Statistic as AntdStatistic } from 'antd'; import { lang } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts index f0ad9ff030..d9a074b8d6 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/antd/table.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RenderProps } from '../chart'; import { AntdChart } from './antd'; import { Table as AntdTable } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts index b1a1d0d28d..3f21499551 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/chart.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { FieldOption } from '../hooks'; import { DimensionProps, MeasureProps, QueryProps } from '../renderer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts index f41f44fe1f..8725598d47 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/configs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaProperties } from '@formily/react'; import { lang } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx index f99f7acb14..d194a301d7 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/AntChart.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useEffect, useRef } from 'react'; import { ChartRendererContext } from '../../renderer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts index 20018cedd8..b8972f6d89 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/bar.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Bar as G2PlotBar } from '@ant-design/plots'; import { G2PlotChart } from './g2plot'; import { ChartType } from '../chart'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts index 45ec934422..a43af373e9 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/configs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import config, { FieldConfigProps } from '../configs'; const { booleanField } = config; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts index d187db9338..39022feba7 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/dualAxes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { G2PlotChart } from './g2plot'; import { ChartType, RenderProps } from '../chart'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts index 98e78714c3..1589b36b88 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/g2plot.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Chart, ChartProps, ChartType, RenderProps } from '../chart'; import configs from './configs'; import { getAntChart } from './AntChart'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts index 653ea91486..af2a552cb5 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Area, Column, Line, Scatter, Bar } from '@ant-design/plots'; import { Pie } from './pie'; import { DualAxes } from './dualAxes'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts index e63ddbc45a..41a0e609fc 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/g2plot/pie.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { G2PlotChart } from './g2plot'; import { Pie as G2Pie } from '@ant-design/plots'; import { ChartType, RenderProps } from '../chart'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts index eef43a28da..7070d2a2eb 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/chart/group.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { usePlugin } from '@nocobase/client'; import { ChartType } from './chart'; import DataVisualizationPlugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx index 2a09d11652..75fe81736d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import React, { createContext, useState } from 'react'; import { ChartRendererProvider } from '../renderer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx index 04c41da9a0..0b55d36888 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/ChartConfigure.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RightSquareOutlined } from '@ant-design/icons'; import { ArrayItems, Editable, FormCollapse, FormItem, FormLayout, Switch } from '@formily/antd-v5'; import { Form as FormType, ObjectField, createForm, onFieldChange, onFormInit } from '@formily/core'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx index 26e519077b..894f760a8b 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/FilterDynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Variable } from '@nocobase/client'; import React from 'react'; import { useVariableOptions } from '../hooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/TransformerDynamicComponent.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/TransformerDynamicComponent.tsx index 5503b50b54..95334852d8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/TransformerDynamicComponent.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/TransformerDynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import React from 'react'; import { SchemaComponent } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/formatters.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/formatters.ts index baf08b06b3..e286f912da 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/formatters.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/formatters.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { lang } from '../locale'; export default { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts index b4c07b1fe1..b8cc6491a8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ChartConfigure'; export * from './ChartConfigProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts index 0c9f3fd832..64fa5787f5 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/configure/schemas/configure.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { lang } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx index 5d8c33c9ac..6cbf5f16e8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/CollectionFieldInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { InitializerWithSwitch, useSchemaInitializerItem } from '@nocobase/client'; import { ISchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx index 84aa6eeacf..d7b034752c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined } from '@ant-design/icons'; import { useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx index 3df5f6582a..86d5247d65 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, SchemaSettingsRemove } from '@nocobase/client'; import React from 'react'; import { useChartsTranslation } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx index 56cdb3cfb2..5b431e049f 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext } from 'react'; import { FilterOutlined } from '@ant-design/icons'; import { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx index 6715ff9be4..99e711baae 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useEffect } from 'react'; import { SchemaComponentOptions } from '@nocobase/client'; import { ChartFilterItemDesigner } from './FilterItemDesigner'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx index 9d6af5fcf4..d0da56750e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterCheckbox.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { connect, useField } from '@formily/react'; import { Checkbox } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx index b7fbd24e46..a0b019c42c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { memo, useContext, useEffect, useMemo, useRef } from 'react'; import { createForm, onFieldInit, onFieldMount, onFieldUnmount } from '@formily/core'; import { ChartFilterContext } from './FilterProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx index 8e7fd45904..582d637e84 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext } from 'react'; import { EditDescription, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx index c3ac511f33..547ccf895c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterItemInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { FormItem, FormLayout } from '@formily/antd-v5'; import { Field, onFieldValueChange } from '@formily/core'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx index cbf6e29487..8105bdbba3 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext, useEffect, useState } from 'react'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx index c61731f16b..43e0870f7c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/FilterVariableInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent, VariableInput, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts index 8c04a9d261..89f0abbf78 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './FilterBlockDesigner'; export * from './FilterBlockInitializer'; export * from './FilterItemInitializers'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts index d018de38ab..5321bffb2a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DEFAULT_DATA_SOURCE_KEY } from '@nocobase/client'; import { moment2str } from '@nocobase/utils/client'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts index 35215e8d36..6b3b794308 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, CollectionFieldInterfaceManager, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts index f20383e67c..cce623cf6e 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './query'; export * from './transformer'; export * from './useVariableOptions'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts index 6524d9a4d9..d66116e67a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/query.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { ISchema, Schema, useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts index 365df0d588..16c7327301 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/transformer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import transformers, { Transformer, TransformerConfig } from '../transformers'; import { lang } from '../locale'; import { ChartRendererProps } from '../renderer'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts index a431da1556..f8d81c9802 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useDateVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useMemoizedFn } from 'ahooks'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts index 4a7308d649..3073161aa7 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useUserVariable.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { Schema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts index 2c3dbc2026..a75a06ba68 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/useVariableOptions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { useCurrentUserVariable, useDatetimeVariable } from '@nocobase/client'; import { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx index 3d83086d58..e60525731a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { ChartV2Block, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts index 41d32c5da3..6bb8289038 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx index 60e67f021a..913d96f5d2 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRenderer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { GeneralSchemaDesigner, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx index 1e2881a357..a4485c8091 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/ChartRendererProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { CollectionManagerProvider, diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts index ba8115370f..54bd67d528 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/renderer/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './ChartRenderer'; export * from './ChartRendererProvider'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/transformers.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/transformers.ts index 9161ef42a7..2d63d81d79 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/transformers.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/transformers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import dayjs from 'dayjs'; export type Transformer = (val: any, ...args: any[]) => string | number; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts index 60b73e6723..c8b09b5495 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/react'; import { uid } from '@formily/shared'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts index d95b966c1e..9bfeca5aab 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/api.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import compose from 'koa-compose'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts index 7c96f75042..1f6d8e3e83 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/formatter.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { formatter } from '../actions/formatter'; describe('formatter', () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts index c2f7a5509a..44919a942d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/__tests__/query.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import compose from 'koa-compose'; import { vi } from 'vitest'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts index 6ed732e1b7..e69e3fda96 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/formatter.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const dateFormatFn = (sequelize: any, dialect: string, field: string, format: string) => { switch (dialect) { case 'sqlite': diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts index b2ef4392f7..b67e18aec8 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/actions/query.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Field, FilterParser, snakeCase } from '@nocobase/database'; import { formatter } from './formatter'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts index 0765b866a9..4f920b757c 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/migrations/20230926211750-rename-charttype.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts index f981c89ebe..e34b70cf9d 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { InstallOptions, Plugin } from '@nocobase/server'; import { query } from './actions/query'; diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts index 8a00381c2e..b385bf1693 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Data visualization plugin', diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts b/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts index 85c9163c9d..5c3236f4d8 100644 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-disable-pm-add/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginDisablePmAddClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts b/packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts +++ b/packages/plugins/@nocobase/plugin-disable-pm-add/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts b/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts index 89b7fc6ca7..f2acf6052d 100644 --- a/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-disable-pm-add/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginDisablePmAddServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts b/packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts index 799b36e4b5..8f883c3183 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginErrorHandlerClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/index.ts b/packages/plugins/@nocobase/plugin-error-handler/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/index.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/middleware.test.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/middleware.test.ts index 76ea056a17..d30fb7498e 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/middleware.test.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/middleware.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import Plugin from '..'; diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts index 6b65053ee6..b83f1a6bf8 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/__tests__/render-error.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts index 1d9b4d4660..23c37ced17 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/error-handler.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export class ErrorHandler { handlers = []; diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts index fbb76acdea..52bf01e67b 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { PluginErrorHandlerServer as default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts index b248d9b0cd..6c0cf9c4d1 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/en_US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'unique violation': '{{field}} must be unique', 'notNull violation': 'notNull violation', diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts index 81ac5606ca..c98a843845 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/es-ES.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "unique violation": "{{field}} debe ser único", "notNull violation": "notNull violación", diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts index 10463d83d9..fc54c4461a 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/fr_FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'unique violation': '{{field}} doit être unique', 'notNull violation': 'Violation de contrainte notNull', diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts index ffd51b9844..19919066c1 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/ja_JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'unique violation': '{{field}} は一意でなくてはなりません', 'notNull Violation': '{{field}} はNullにできません', diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts index 6ee8e7caab..eedf896c63 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'unique violation': '{{field}} deve ser único', 'notNull violation': 'violação de não nulo', diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts index 1849dd4dc4..05f5f8d907 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/locale/zh_CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'unique violation': '{{field}} 字段值是唯一的', 'notNull violation': '{{field}} 字段不能为空', diff --git a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts b/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts index 1bcfebd5f0..efa4d6a3f5 100644 --- a/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-error-handler/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Schema } from '@formily/json-schema'; import { BaseError } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/client/ChinaRegionProvider.tsx b/packages/plugins/@nocobase/plugin-field-china-region/src/client/ChinaRegionProvider.tsx index af8ba1aae6..c7b044a2ca 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/client/ChinaRegionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/client/ChinaRegionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { useField } from '@formily/react'; import { useAPIClient, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/client/index.tsx b/packages/plugins/@nocobase/plugin-field-china-region/src/client/index.tsx index a360246b1c..f2fc1076a3 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { useChinaRegionDataSource, useChinaRegionLoadData } from './ChinaRegionProvider'; diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/index.ts b/packages/plugins/@nocobase/plugin-field-china-region/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/index.ts +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/server/__tests__/action.test.ts b/packages/plugins/@nocobase/plugin-field-china-region/src/server/__tests__/action.test.ts index 43cc80de68..cf8fd64448 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/server/__tests__/action.test.ts +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/server/__tests__/action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/server/collections/chinaRegions.ts b/packages/plugins/@nocobase/plugin-field-china-region/src/server/collections/chinaRegions.ts index d84ead5ccb..1fafa3cb99 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/server/collections/chinaRegions.ts +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/server/collections/chinaRegions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-field-china-region/src/server/index.ts b/packages/plugins/@nocobase/plugin-field-china-region/src/server/index.ts index f98747d36e..a789982644 100644 --- a/packages/plugins/@nocobase/plugin-field-china-region/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-field-china-region/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/FormulaComponentFieldSettings.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/FormulaComponentFieldSettings.tsx index 796c7f52bd..8fffd6b060 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/FormulaComponentFieldSettings.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/FormulaComponentFieldSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { SchemaSettings, SchemaSettingsNumberFormat, useColumnSchema, useIsFieldReadPretty } from '@nocobase/client'; import { useTargetCollectionField } from './components/Formula/Result'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/form-create.test.ts b/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/form-create.test.ts index 2d8c35afb9..08669fb348 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/form-create.test.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/form-create.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { T3879 } from './utils'; import { test, expect } from '@nocobase/test/e2e'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/utils.ts index ab7ee2bdf5..ed51607922 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PageConfig } from '@nocobase/test/e2e'; export const T3879: PageConfig = { diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Expression.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Expression.tsx index 613cd27669..591c5bcfd0 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Expression.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Expression.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollectionManager_deprecated, useCompile, Variable } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Result.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Result.tsx index 823f89593a..a0b0f374b1 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Result.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/Result.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFormValuesChange } from '@formily/core'; import { useField, useFieldSchema, useFormEffects } from '@formily/react'; import { toJS } from '@formily/reactive'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/demos/demo2.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/demos/demo2.tsx index d809f9afa9..c8d8cb3ffe 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/demos/demo2.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /** * title: Formula */ diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/index.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/index.tsx index 2673304560..7e29cdc7c4 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/Formula/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect } from '@formily/react'; import Expression from './Expression'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/index.ts b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/index.ts index 490875c2c7..0fc1531be9 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/components/index.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/components/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { Formula } from './Formula'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/index.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/index.tsx index a670335624..1fcb59f752 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { Formula } from './components'; import { renderExpressionDescription } from './scopes'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/interfaces/formula.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/interfaces/formula.tsx index c9be2c2c4a..a3a74fbe7e 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/interfaces/formula.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/interfaces/formula.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface, i18n, interfacesProperties } from '@nocobase/client'; import { Evaluator, evaluators } from '@nocobase/evaluators/client'; import { lodash, Registry } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-field-formula/src/client/locale/index.ts index 8c03607878..1c9127527f 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/client/scopes.tsx b/packages/plugins/@nocobase/plugin-field-formula/src/client/scopes.tsx index 06dacd7b33..cb0d119ca2 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/client/scopes.tsx +++ b/packages/plugins/@nocobase/plugin-field-formula/src/client/scopes.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, i18n } from '@nocobase/client'; import { Evaluator, evaluators } from '@nocobase/evaluators/client'; import { Registry } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/index.ts b/packages/plugins/@nocobase/plugin-field-formula/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/index.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/__tests__/formula-field.test.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/__tests__/formula-field.test.ts index c61c1a8c4c..4a28f2f3d5 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/__tests__/formula-field.test.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/__tests__/formula-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, mockDatabase } from '@nocobase/database'; import { FormulaField } from '../formula-field'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/formula-field.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/formula-field.ts index da7144e2d9..2006bbf4ab 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/formula-field.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/formula-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseFieldOptions, DataTypes, Field } from '@nocobase/database'; import { evaluators } from '@nocobase/evaluators'; import { toDbType } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/index.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20230213161904-alter-field.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20230213161904-alter-field.ts index 2ea174586e..3d1895bc50 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20230213161904-alter-field.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20230213161904-alter-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20240425222058-change-locale-module.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20240425222058-change-locale-module.ts index 6f66e2f60c..8b6da8401c 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20240425222058-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/migrations/20240425222058-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-field-formula/src/server/plugin.ts index cfe1d27e5d..b1b0dcb0b7 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; import { FormulaField } from './formula-field'; diff --git a/packages/plugins/@nocobase/plugin-field-formula/src/utils/index.ts b/packages/plugins/@nocobase/plugin-field-formula/src/utils/index.ts index 51cfa2d129..c0dc020f7d 100644 --- a/packages/plugins/@nocobase/plugin-field-formula/src/utils/index.ts +++ b/packages/plugins/@nocobase/plugin-field-formula/src/utils/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const DataTypeTransformers = { boolean: Boolean, integer: { diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Display.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Display.tsx index cdabb38735..474c15d0d7 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Display.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Display.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { useField } from '@formily/react'; import { withDynamicSchemaProps } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Edit.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Edit.tsx index 7240f62f7b..c4d4b78bc9 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Edit.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/Edit.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useApp, withDynamicSchemaProps } from '@nocobase/client'; import React, { useEffect, useLayoutEffect, useRef } from 'react'; import Vditor from 'vditor'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/const.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/const.ts index 0d02033e82..19c7243d89 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/const.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/const.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { usePlugin } from '@nocobase/client'; import { PluginFieldMarkdownVditorClient } from '../'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/index.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/index.tsx index 1d988f8cc7..d0a0599747 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { withDynamicSchemaProps } from '@nocobase/client'; import { Display } from './Display'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/style.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/style.ts index 6362855af4..1d9651a76c 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/style.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/components/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { genStyleHook } from '@nocobase/client'; export default genStyleHook('nb-field-markdown-vditor', (token) => { diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/index.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/index.tsx index 974cc0ce8c..20b37e86b6 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import 'vditor/dist/index.css'; import { MarkdownVditor } from './components'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx index 2e4d1b8ffe..48c3d0a8a4 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; import { generateNTemplate } from '../locale'; import { ISchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/locale/index.ts index 3527fecf3d..bf5e0cf890 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { tval } from '@nocobase/client'; const NAMESPACE = 'field-markdown-vditor'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/utils/index.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/utils/index.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/utils/index.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/utils/index.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/index.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/index.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/en-US.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/en-US.ts index d58eac3704..93effc0a46 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Vditor": "Markdown(Vditor)", "File collection": "File collection", diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/ko_KR.ts index 3794bb9391..d91dec0d02 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/ko_KR.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/ko_KR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Vditor": "Markdown(Vditor)", "File collection": "파일 데이터 테이블", diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/zh-CN.ts index 4786181dbe..950f83117e 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Vditor": "Markdown(Vditor)", "File collection": "文件数据表", diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/index.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/markdown-vditor-field.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/markdown-vditor-field.ts index c53ca92410..66ec15aee6 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/markdown-vditor-field.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/markdown-vditor-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes, Field } from '@nocobase/database'; export class MarkdownVditorField extends Field { diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/plugin.ts index d6c05326cf..373f580b49 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; export class PluginFieldMarkdownVditorServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/client/SequenceFieldProvider.tsx b/packages/plugins/@nocobase/plugin-field-sequence/src/client/SequenceFieldProvider.tsx index 434e23575c..e0f534e9df 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/client/SequenceFieldProvider.tsx +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/client/SequenceFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { FC } from 'react'; import { SchemaComponentOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/client/index.tsx b/packages/plugins/@nocobase/plugin-field-sequence/src/client/index.tsx index 27e57364dc..0f0f8d0956 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { SequenceFieldProvider } from './SequenceFieldProvider'; import { SequenceFieldInterface } from './sequence'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/client/locale/index.ts index c1f957378f..b9af58f76d 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/client/sequence.tsx b/packages/plugins/@nocobase/plugin-field-sequence/src/client/sequence.tsx index 20474c03ed..df8d4af4c5 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/client/sequence.tsx +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/client/sequence.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayTable, FormButtonGroup, FormDrawer, FormLayout, Submit } from '@formily/antd-v5'; import { onFieldValueChange } from '@formily/core'; import { ISchema, SchemaOptionsContext, useForm, useFormEffects } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/index.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/index.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/Plugin.ts index e64467a136..0e4ed59f87 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { randomInt } from 'crypto'; import path from 'path'; import { promisify } from 'util'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/__tests__/sequence-field.test.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/__tests__/sequence-field.test.ts index e5615ce41f..c2866f9817 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/__tests__/sequence-field.test.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/__tests__/sequence-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/collections/sequences.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/collections/sequences.ts index a74e24a1fb..3bf67a094c 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/collections/sequences.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/collections/sequences.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/fields/sequence-field.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/fields/sequence-field.ts index 21f621403f..e596362766 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/fields/sequence-field.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/fields/sequence-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, DataTypes, diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/index.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/index.ts index 07f7c2a4d6..fe8230fda9 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './fields/sequence-field'; export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20221207022250-sequence-field-key.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20221207022250-sequence-field-key.ts index acb11116bb..ab58dd880c 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20221207022250-sequence-field-key.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20221207022250-sequence-field-key.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20240425225438-change-locale-module.ts b/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20240425225438-change-locale-module.ts index 4395f0a608..ee22a3aebc 100644 --- a/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20240425225438-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-field-sequence/src/server/migrations/20240425225438-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx index d086862219..c047db7272 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React, { FC } from 'react'; import * as hooks from './hooks'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx index 850e50e542..4c62df0881 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined, DownOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx index c57c6407b2..4bff41647a 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/StorageOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { observer, RecursionField, Schema, useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/block.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/block.test.ts index 9b36800743..23c135d480 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/block.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/block.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableWithFileCollection } from './templates'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts index b3a73e704b..4793cde5ae 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/createLocalStorage.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; import { CreateLocalStorage } from './pageobject/localStorage'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts index ebcfe6b6dc..ee4a1a8e62 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { dayjs } from '@nocobase/utils'; import { CreateLocalStorage, EditLocalStorage } from './pageobject/localStorage'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts index cdb0fad131..13ae3b273f 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/pageobject/localStorage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Locator, Page } from '@nocobase/test/e2e'; export class CreateLocalStorage { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/templates.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/templates.ts index 57ab5a9d29..bdbc036e10 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/templates.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const oneTableWithFileCollection = { collections: [ { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts index a0c57839d2..9ab20c272d 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useUploadFiles'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts index 0156f4fa80..a6a128abab 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/hooks/useUploadFiles.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecordPickerContext, useActionContext, diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx index 1c17a5fbff..8a68eda8e0 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, useCollection_deprecated } from '@nocobase/client'; import { FileManagerProvider } from './FileManagerProvider'; import { FileStoragePane } from './FileStorage'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx index 289a171d35..9aafd63ff7 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/UploadActionInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionInitializer, useCollection_deprecated } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts index d74460701e..080ebe78c1 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/initializers/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './UploadActionInitializer'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts index 3967b36ee3..f2b94b7401 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts index 45b4aa40bd..76e58ed260 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'file-manager'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts index e99e14351e..45f255ba55 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts index f24540b6fd..e85fb2eb3b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/ali-oss.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NAMESPACE } from '../../locale'; export default { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts index 34653078d3..9824fc17f1 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import aliOss from './ali-oss'; import local from './local'; import s3 from './s3'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts index 0d4cf62838..a8c082f68b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/local.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NAMESPACE } from '../../locale'; export default { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts index 0a53f5bd53..db4792fe2f 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/s3.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NAMESPACE } from '../../locale'; export default { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts index 9b477a1d74..fd35019a5e 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/schemas/storageTypes/tx-cos.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NAMESPACE } from '../../locale'; export default { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts index 94e8211761..2c0a64c065 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionTemplate, getConfigurableProperties } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts index 706b0d2288..4c90abdfd0 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './file'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts index c73090bdb9..17c99adad3 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/FileModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; export class FileModel extends Model { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts index c3506d1826..9f15cab9c2 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { promises as fs } from 'fs'; import path from 'path'; import { getApp } from '.'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts index 8c529eb704..7e5b94e90c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/attachment.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { getApp } from '.'; describe('attachment', () => { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts index dcfc440244..81bf8a17ca 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import send from 'koa-send'; import path from 'path'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts index 52b3ebaa38..58d3e7ffab 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/ali-oss.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { MockServer } from '@nocobase/test'; import aliossStorage from '../../storages/ali-oss'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts index 4d2e29e85f..bd292641b1 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/s3.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { MockServer } from '@nocobase/test'; import s3Storage from '../../storages/s3'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts index 5fd101570d..22b0c8489d 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/storages/tx-cos.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { MockServer } from '@nocobase/test'; import txStorage from '../../storages/tx-cos'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts index 67c6303d40..afdb4cfe71 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/__tests__/tables/users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts index 491c8a3a3b..e1c785e240 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/attachments.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { koaMulter as multer } from '@nocobase/utils'; import path from 'path'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts index f6f6fb137c..3edef8851c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import actions from '@nocobase/actions'; import { createMiddleware, destroyMiddleware } from './attachments'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts index d3887cb7c1..b6dafd0f19 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/attachments.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts index d88b5aad31..602d515223 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/collections/storages.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts index 32fa6df221..c7f2678cde 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const FILE_FIELD_NAME = 'file'; export const LIMIT_FILES = 1; export const DEFAULT_MAX_FILE_SIZE = 1024 * 1024 * 1024; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts index 0d3c193d07..57fc6472a1 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './constants'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts index d186249abb..9528facab2 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20230831160742-fix-attachment-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op, Repository } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts index ae3ffb10b3..289b7aebed 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20231120142523-fix-storage.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts index 08afc02b26..e06af03564 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/migrations/20240306223006-update-target.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Repository } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts index 9fcb2e1c7c..38b245c4a2 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as mimetype } from './mimetype'; // TODO(feature): 提供注册新规则的方法,规则可动态添加 diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts index 46569c9fb3..f04004595b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/rules/mimetype.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import match from 'mime-match'; export default function (file, options: string | string[] = '*'): boolean { diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts index 59eb66f456..95b9343c03 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { resolve } from 'path'; import { FileModel } from './FileModel'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts index b1a6aeb9dd..c6550a6522 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/ali-oss.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AttachmentModel } from '.'; import { STORAGE_TYPE_ALI_OSS } from '../constants'; import { cloudFilenameGetter } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts index ee90f5a5aa..5f8e5cdd6e 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { StorageEngine } from 'multer'; import Application from '@nocobase/server'; import { Registry } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts index 2a4a0e1131..188450d921 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/local.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import fs from 'fs/promises'; import mkdirp from 'mkdirp'; import multer from 'multer'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts index 66f89d8019..b66398f92c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/s3.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AttachmentModel } from '.'; import { STORAGE_TYPE_S3 } from '../constants'; import { cloudFilenameGetter } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts index ecb3cc434a..57de71e94c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/storages/tx-cos.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { promisify } from 'util'; import { AttachmentModel } from '.'; diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts index 9cb5163d00..fc992c9c02 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import crypto from 'crypto'; import path from 'path'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx index 194575b26c..9d728e28d1 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, useCollection_deprecated, useSchemaTemplate } from '@nocobase/client'; import React from 'react'; export const GanttDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx index 88af785e95..d86d5a9fd9 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/Gantt.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { SchemaSettings, diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx index d381c102db..60778f5d51 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx index 041cc2a223..811cb40dcf 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx index 907233d133..1068ce9b75 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/GanttBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts index c054f0d15d..40c8085318 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/drag.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneEmptyGantt } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts index 96eff08288..914e12e332 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { generalWithDatetimeFields, oneEmptyGantt } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts index 8db3544bad..86ded76a09 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { getYmd } from '../helpers/other-helper'; import { oneEmptyGantt } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts index de81821fda..4819419c2e 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts index bd0be7a813..49df9679bf 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/createGanttBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createGanttBlockUISchema } from '../createGanttBlockUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx index 4742c36804..c39d174e6f 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/__tests__/date-helper.test.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { seedDates, addToDate, getWeekNumberISO8601 } from '../helpers/date-helper'; import { ViewMode } from '../types/public-types'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx index e8f4a10e96..ec81615d9f 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/calendar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React, { ReactChild } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx index b69905b1c1..b222628f6f 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; import { createStyles } from 'antd-style'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx index 293076377a..035a89fded 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/calendar/top-part-of-calendar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx index 4550041bad..5e08c41e85 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/Event.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx index 239a397314..d9c67f9955 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/gantt.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { RecursionField, Schema, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx index 3b1492b4fd..6969d0faad 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx index 39581a92c5..482bf281c0 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt-content.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect, useState } from 'react'; import { EventOption } from '../../types/public-types'; import { BarTask } from '../../types/bar-task'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx index 24bafbbbf3..3226372347 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/gantt/task-gantt.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { forwardRef, useEffect, useRef } from 'react'; import { Calendar, CalendarProps } from '../calendar/calendar'; import { Grid, GridProps } from '../grid/grid'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx index f5f5cdec5c..a3d3041e4d 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid-body.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import { uid } from '@nocobase/utils/client'; import React, { ReactChild } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx index 63ab7049c8..5873b5b81b 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/grid.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { GridBody, GridBodyProps } from './grid-body'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx index 81bf78d4fc..98574f94f2 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/grid/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx index e21fb10e31..0279f5f852 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/arrow.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { BarTask } from '../../types/bar-task'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx index 00c1724332..e61262d584 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/horizontal-scroll.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { SyntheticEvent, useEffect, useRef } from 'react'; import { cx } from '@emotion/css'; import useStyles from './style'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx index 10680a63e6..bf9fe42553 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx index 2b2624b0b2..1be3c06e4d 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/tooltip.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React, { useEffect, useRef, useState } from 'react'; import { getYmd } from '../../helpers/other-helper'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx index 0177d79412..0dd84b201b 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/other/vertical-scroll.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React, { SyntheticEvent, useEffect, useRef } from 'react'; import useStyles from './style'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx index fef7311114..93cd2d5959 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-date-handle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; type BarDateHandleProps = { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx index 3e3ce858f9..bf2ae70329 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-display.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React from 'react'; import { barBackground } from './style'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx index 7c1a051189..e37a18182a 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-progress-handle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; type BarProgressHandleProps = { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx index 22e19df5c0..b1c4e274b7 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar-small.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React from 'react'; import { getProgressPoint } from '../../../helpers/bar-helper'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx index 4b39fcfee2..5a66ad7475 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/bar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React from 'react'; import { getProgressPoint } from '../../../helpers/bar-helper'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx index d9ee06479f..016dd1c62a 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/bar/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; export const barWrapper = css` diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx index 5c24c40dce..f6918ef339 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/milestone.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { cx } from '@emotion/css'; import { TaskItemProps } from '../task-item'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx index 87aabb5f50..48c3a9fbd9 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/milestone/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; export const milestoneWrapper = css` diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx index 65e635c4fa..f684000bea 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/project.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React from 'react'; import { TaskItemProps } from '../task-item'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx index 3d1fb2c144..e87455c3b1 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/project/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; export const projectWrapper = css` diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx index 2d526efcc7..bc7114bf6b 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx index fe97c2313b..838f5a1241 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/components/task-item/task-item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx } from '@emotion/css'; import React, { useEffect, useRef, useState } from 'react'; import { getYmd } from '../../helpers/other-helper'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/context.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/context.ts index 71dbb24b79..4df46827aa 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/context.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext, useContext } from 'react'; // export const GanttToolbarContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx index 9443700dc5..3ba57b2395 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/createGanttBlockUISchema.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx index 1f70e9aaab..f87d7365a1 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/demos/demo1.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Gantt, SchemaComponent, SchemaComponentProvider, useGanttBlockProps } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts index 91fe48f667..dc0eb9e616 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/bar-helper.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BarTask, TaskTypeInternal } from '../types/bar-task'; import { BarMoveAction } from '../types/gantt-task-actions'; import { Task } from '../types/public-types'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts index 8b478d3aad..27f53b6f84 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/date-helper.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Task, ViewMode } from '../types/public-types'; const DateTimeFormat = Intl.DateTimeFormat; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts index f79b9612c8..33646775e4 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/helpers/other-helper.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BarTask } from '../types/bar-task'; import { Task } from '../types/public-types'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx index a8806282bf..be6fa9c065 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionBar, Plugin, SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { GanttDesigner } from './Gantt.Designer'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts index c3689ebbf0..a74d35be7f 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/types/bar-task.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Task, TaskType } from './public-types'; export interface BarTask extends Task { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts index 6630530102..e904e4816b 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/types/date-setup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ViewMode } from './public-types'; export interface DateSetup { diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts index 8d4a202b71..902512c59a 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/types/gantt-task-actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BarTask } from './bar-task'; export type BarMoveAction = 'progress' | 'end' | 'start' | 'move'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts b/packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts index 845387443d..a160af86d4 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/types/public-types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export enum ViewMode { Hour = 'hour', QuarterDay = 'quarterDay', diff --git a/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx index 43949db230..be011ba1c3 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-gantt/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollection_deprecated, useCompile } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/index.ts b/packages/plugins/@nocobase/plugin-gantt/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/index.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/server/index.ts b/packages/plugins/@nocobase/plugin-gantt/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts index 57c95c5777..f27cf4aca8 100644 --- a/packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-gantt/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginGanttServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx index 6ada1fcb6f..0eb60c4065 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphCollectionShortcut.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import { css, SchemaComponent, useActionContext, useRequest } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx index 7d6297fe4d..b7d2d31f5a 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/GraphDrawPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ApartmentOutlined } from '@ant-design/icons'; import { Graph } from '@antv/x6'; import { MiniMap } from '@antv/x6-plugin-minimap'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx index 6ea1e57e40..3659fc24fe 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/action-hooks.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm } from '@formily/react'; import { action } from '@formily/reactive'; import { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx index a94131ce2e..f0c977864d 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { AddCollection } from '@nocobase/client'; import { Button } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx index 6e5e936847..d5937080ba 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/AddFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { AddFieldAction as AddCollectionFieldAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx index 23c0ffd572..0fb771bb46 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/CollectionNodeProvder.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createContext } from 'react'; interface CollectionNodeOptions { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx index 7a23fdca92..eff4d60e42 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectAssociationAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Button } from 'antd'; import { BranchesOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx index 7502bdd3fe..99fb4a2267 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectChildAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Tooltip } from 'antd'; import { FallOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx index abb03126f7..046e282d37 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectParentAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Tooltip } from 'antd'; import { RiseOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx index 31b9c71ca1..3420256c16 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ConnectorAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ShareAltOutlined } from '@ant-design/icons'; import { Menu, Popover, Button } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx index 783b5878ce..a14acce5f7 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DeleteCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined } from '@ant-design/icons'; import { DeleteCollection } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx index 8f500a164f..6caea8188e 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/DirectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Popover, Button, Menu } from 'antd'; import { css } from '@emotion/css'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx index d885b36b65..99b94faaa8 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EditOutlined } from '@ant-design/icons'; import { EditCollection } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx index 19a9cf9cf2..e663e9a608 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/EditFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EditOutlined } from '@ant-design/icons'; import { EditFieldAction as EditCollectionFieldAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx index 8eed3429ed..deb8eb5a10 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/Entity.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, DownOutlined, EditOutlined, UpOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx index 12a4e29d8f..2ec04f9fef 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FieldSummary.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; import { css, useCollectionManager_deprecated, useCompile } from '@nocobase/client'; import { Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx index 20f3f5e3a2..e7a7fb235a 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/FullScreenAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { forwardRef } from 'react'; import { Tooltip, Button } from 'antd'; import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx index 8d75e9806a..737b54b26c 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/LocateCollectionAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState, useContext } from 'react'; import { Input, Menu, Popover, Button } from 'antd'; import { css } from '@emotion/css'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx index 7791debc07..118930083a 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/OverrideFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CopyOutlined } from '@ant-design/icons'; import { OverridingFieldAction as OverridingCollectionFieldAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx index 37dbdc22da..d5ffdd8a62 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/SelectCollectionsAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useMemo } from 'react'; import { CollapsedContext } from '../GraphDrawPage'; import { Select, useCompile } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx index 3a3ee49068..b6403e5fac 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewFieldAction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { EyeOutlined } from '@ant-design/icons'; import { ViewFieldAction as ViewCollectionFieldAction } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx index d4bf7d67b7..c360429643 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/components/ViewNode.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { NodeView } from '@antv/x6'; export class SimpleNodeView extends NodeView { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx index 1886fdcf90..b42cba319b 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { GraphCollectionPane } from './GraphCollectionShortcut'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts index c55f40d36e..210d5231ea 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/locale/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const NAMESPACE = 'graph-collection-manager'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx index cef2e842f1..c90268eabd 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx index 543ea816aa..73e9dbed5d 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import lodash from 'lodash'; import { useTranslation } from 'react-i18next'; import { CollectionOptions } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts index 4635d5fb90..abd7cef97d 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts index 143a59b957..79a6626728 100644 --- a/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-graph-collection-manager/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; export class PluginGraphCollectionManagerServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx index 453584333b..0794c17a64 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/CreateAndSelectSort/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext, useField } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx index c0269d99b5..374bffcf99 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { ISchema, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx index cc382fc78a..b9687e23eb 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@emotion/css'; import { FormLayout } from '@formily/antd-v5'; import { observer, RecursionField, useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx index 99fea76b5f..8f975d70e5 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.CardViewer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer } from '@formily/react'; export const KanbanCardViewer: any = observer( diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx index ee90ca3ce3..2748133c42 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useCollection_deprecated, GeneralSchemaDesigner, useSchemaTemplate } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx index bd654df144..6b1bb53dee 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { useFormBlockContext, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx index c456264522..c1d1b87c0b 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { observer, RecursionField, useField, useFieldSchema, useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx index 2216ddbd8d..22aa940314 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase/client'; /** diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx index 409a14fe02..04b5ab1d9f 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx index 22c891b18e..ef7f02f613 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/KanbanBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayField } from '@formily/core'; import { Schema, useField, useFieldSchema } from '@formily/react'; import { Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts index 41d026aecd..4b76d07e83 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaInitailizer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { generalWithSingleSelect, oneEmptyKanbanBlock } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts index 97f332502e..910b89ada7 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneEmptyKanbanBlock } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts index 22dcb9ef3c..44ee18f6f9 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/__e2e__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionSetting, PageConfig } from '@nocobase/test/e2e'; /** diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts index b88a77030f..c744efa040 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/__tests__/createKanbanBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createKanbanBlockUISchema } from '../createKanbanBlockUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx index 03a8c2d06d..d40c9c8996 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Board.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { forwardRef, useState } from 'react'; import { DragDropContext } from 'react-beautiful-dnd'; import Column from './Column'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx index a069304265..d25695a497 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Card.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Draggable } from 'react-beautiful-dnd'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx index b452d5ae0b..84c7d3fc5c 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardAdder.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; import CardForm from './CardForm'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx index 348ba54341..ec067ead02 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/CardForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useRef } from 'react'; import { when } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx index fd28f61587..3503801109 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Column.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { forwardRef, useState } from 'react'; import { Draggable } from 'react-beautiful-dnd'; import { useKanbanBlockContext } from '../KanbanBlockProvider'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx index 4f0445676a..70898050f9 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnAdder.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; import ColumnForm from './ColumnForm'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx index c17ba0254f..defc117a3f 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/ColumnForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { createRef } from 'react'; import { when } from './utils'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx index 16d9d6ac05..49650020e6 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; function DefaultCard({ children: card, dragging, allowRemoveCard, onCardRemove }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx index 358f906233..74978f6727 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/DefaultColumnHeader.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; function ColumnTitle({ allowRenameColumn, onClick, children: title }) { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx index 257d63a22f..52d55d49c7 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/Kanban.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import '@asseinfo/react-kanban/dist/styles.css'; import { Button } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx index a0e8d346f0..ed1e3730bd 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/demos/demo2.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Board } from '@nocobase/client'; import { Button, Card } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts index 8cc20c5808..1d862c4b4f 100755 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/helpers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { addInArrayAtPosition, changeElementOfPositionInArray, diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts index ae60d9afac..d6b98bf742 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as Board } from './Board'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts index 3204971a9b..be36a79f68 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/services.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + function getCoordinates(event, board) { if (event.destination === null) return {}; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts index ed3102a833..c735a28f37 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ css, token }) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts index a8ccaa1b2e..91895addf0 100755 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + function compose(...fns) { return (arg) => fns.reduce((acc, fn) => fn(acc), arg); } diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx index a79bded742..bea6fb6fb7 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/board/withDroppable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Droppable } from 'react-beautiful-dnd'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/context.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/context.ts index 87b6f74529..fa2684e59b 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/context.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/context.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createContext } from 'react'; export const KanbanCardContext = createContext(null); diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts index 74c2451997..25577123ef 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/createKanbanBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx index 8802f03af6..a201d5f783 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Action, Plugin, SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { Kanban } from './Kanban'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts index b3d73c6802..33c7034402 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx index e487a498fd..c680c62717 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; export const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-kanban/src/index.ts b/packages/plugins/@nocobase/plugin-kanban/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/index.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/server/index.ts b/packages/plugins/@nocobase/plugin-kanban/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts index ba3739ae8d..ab06397787 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-kanban/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class PluginKanbanServer extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-localization/src/client/Localization.tsx b/packages/plugins/@nocobase/plugin-localization/src/client/Localization.tsx index e255914768..b4846417f0 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/client/Localization.tsx +++ b/packages/plugins/@nocobase/plugin-localization/src/client/Localization.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SyncOutlined } from '@ant-design/icons'; import { Form, createForm } from '@formily/core'; import { Field, useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/client/index.tsx b/packages/plugins/@nocobase/plugin-localization/src/client/index.tsx index 69ab0c2e70..10e4bc6351 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-localization/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { Localization } from './Localization'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-localization/src/client/locale/index.ts index 5910d3a231..a799d72e6a 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'localization'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/client/schemas/localization.tsx b/packages/plugins/@nocobase/plugin-localization/src/client/schemas/localization.tsx index 5ca04509ed..0c51956c0e 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/client/schemas/localization.tsx +++ b/packages/plugins/@nocobase/plugin-localization/src/client/schemas/localization.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; const collection = { diff --git a/packages/plugins/@nocobase/plugin-localization/src/index.ts b/packages/plugins/@nocobase/plugin-localization/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/index.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/actions.test.ts index b6c07afbd0..5742932503 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Repository } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/middleware.test.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/middleware.test.ts index 5be7a245aa..710fe7d611 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/middleware.test.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/middleware.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import PluginLocalizationServer from '../plugin'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/migrations/delete-pkg-name.test.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/migrations/delete-pkg-name.test.ts index 463b97c263..c0d68a57ac 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/migrations/delete-pkg-name.test.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/migrations/delete-pkg-name.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; import Migration from '../../migrations/20240426123538-delete-pkg-name-ns'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/resources.test.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/resources.test.ts index b83ff1dd3d..e63da24c6a 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/resources.test.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/resources.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CacheManager } from '@nocobase/cache'; import Resources from '../resources'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/sync.test.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/sync.test.ts index 8e8e9dddda..561ec4fe6b 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/sync.test.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/sync.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/utils.ts b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/utils.ts index 1bf057f07d..392ff34bae 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/utils.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/__tests__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getMenuSchema = (title: string, hook = false) => ({ _isJSONSchemaObject: true, version: '2.0', diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/actions/localization.ts b/packages/plugins/@nocobase/plugin-localization/src/server/actions/localization.ts index 6d9f67ed4a..9595513519 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/actions/localization.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/actions/localization.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { Database, Model, Op } from '@nocobase/database'; import { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/actions/localizationTexts.ts b/packages/plugins/@nocobase/plugin-localization/src/server/actions/localizationTexts.ts index 191663c9d0..3686c337aa 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/actions/localizationTexts.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/actions/localizationTexts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next, DEFAULT_PAGE, DEFAULT_PER_PAGE } from '@nocobase/actions'; import { Cache } from '@nocobase/cache'; import { Database, Model, Op } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-texts.ts b/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-texts.ts index 7dc0164644..5608720d01 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-texts.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-texts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-translations.ts b/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-translations.ts index 9495f6a3c8..99edf470ca 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-translations.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/collections/localization-translations.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/constans.ts b/packages/plugins/@nocobase/plugin-localization/src/server/constans.ts index a774448c6b..459fab33dd 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/constans.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/constans.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const CACHE_KEY = 'localization:texts'; export const NAMESPACE_PREFIX = 'lm-'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/index.ts b/packages/plugins/@nocobase/plugin-localization/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20230706200900-roles-add-translation.ts b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20230706200900-roles-add-translation.ts index cd8d6a599d..5764a0faa1 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20230706200900-roles-add-translation.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20230706200900-roles-add-translation.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class AddTranslationToRoleTitleMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20231206161851-fix-module.ts b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20231206161851-fix-module.ts index 8e1aff81e3..287183ab43 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20231206161851-fix-module.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20231206161851-fix-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Op } from '@nocobase/database'; import { Migration } from '@nocobase/server'; import { getTextsFromDB, getTextsFromMenu } from '../actions/localization'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240425224508-change-locale-module.ts b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240425224508-change-locale-module.ts index 8124f23b78..f496f944e6 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240425224508-change-locale-module.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240425224508-change-locale-module.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240426123538-delete-pkg-name-ns.ts b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240426123538-delete-pkg-name-ns.ts index 649a090585..3f83252dfe 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240426123538-delete-pkg-name-ns.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/migrations/20240426123538-delete-pkg-name-ns.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration, OFFICIAL_PLUGIN_PREFIX } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts index a48cbd709c..31e014dd36 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import PluginUISchemaStorageServer from '@nocobase/plugin-ui-schema-storage'; import { InstallOptions, OFFICIAL_PLUGIN_PREFIX, Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/resources.ts b/packages/plugins/@nocobase/plugin-localization/src/server/resources.ts index 7304277e69..9da2d38dc5 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/resources.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/resources.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { Database, Transaction } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/utils.ts b/packages/plugins/@nocobase/plugin-localization/src/server/utils.ts index 47d86f4c38..ed3470971e 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/utils.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const compile = (title: string) => (title || '').replace(/{{\s*t\(["|'|`](.*)["|'|`]\)\s*}}/g, '$1'); /* istanbul ignore next -- @preserve */ diff --git a/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx b/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx index a91c9718a0..e73454eda8 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx +++ b/packages/plugins/@nocobase/plugin-logger/src/client/LogsDownloader.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useRequest } from '@nocobase/client'; import React, { useCallback, useMemo } from 'react'; import { Tree, Card, Alert, Typography, Input, Button, theme, Empty } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx b/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx index 67881a11d1..c047e5ae20 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-logger/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/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/@nocobase/plugin-logger/src/client/locale/index.ts index cf7e7243b2..13c979b616 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/index.ts b/packages/plugins/@nocobase/plugin-logger/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/index.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts b/packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts index 1808bd019b..64d70dab40 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Logger: 'Logger', Search: 'Search', diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts b/packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts index 1bc6aaaf29..c9b4cbe6a2 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/locale/ko_KR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "Logger": "기록기", "Search": "검색", diff --git a/packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts index 6b155dfe5b..9898718bff 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { Logger: '日志', Search: '搜索', diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/index.ts b/packages/plugins/@nocobase/plugin-logger/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts index a849182144..47b5b9a14a 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import logger from './resourcer/logger'; diff --git a/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts b/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts index cf1eea23dd..54635edd04 100644 --- a/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts +++ b/packages/plugins/@nocobase/plugin-logger/src/server/resourcer/logger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, Next } from '@nocobase/actions'; import { getLoggerFilePath } from '@nocobase/logger'; import { readdir } from 'fs/promises'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts index 1b40dc9496..8a662f3bfb 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, test } from '@nocobase/test/e2e'; import { oneTableWithMap } from './templates'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts index 5bcf61b316..20e6efff85 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { expect, expectSettingsMenu, test } from '@nocobase/test/e2e'; import { oneMapUsedToTestSettings } from './templates'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/templates.ts b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/templates.ts index 1ed610c755..0f2fabf0a8 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/templates.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/templates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const oneTableWithMap = { collections: [ { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts b/packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts index dbc3df9e3f..2c7eb40003 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__tests__/block/createMapBlockSchema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMapBlockUISchema } from '../../block/createMapBlockUISchema'; vi.mock('@formily/shared', () => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx index 19d5a33628..4393bd4c36 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapActionInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, useCollection_deprecated } from '@nocobase/client'; /** diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx index dac7a78c82..acc5b164ba 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, useField, useFieldSchema } from '@formily/react'; import { FilterBlockType, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx index 8fdae6c83f..1915fa44a4 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollection_deprecated, useCollectionManager_deprecated, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx index f1157b94e1..439fc61baf 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, useCollection, useSchemaTemplate } from '@nocobase/client'; import React from 'react'; export const MapBlockDesigner = () => { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx index f12504113a..32dc969ad7 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { SchemaOptionsContext } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx index 23de587cd7..c16bd88f77 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { BlockProvider, FixedBlockWrapper, SchemaComponentOptions, useBlockRequestContext } from '@nocobase/client'; import React, { createContext, useContext, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts b/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts index 611fa717c2..008918a293 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/createMapBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx index 250c32ccf5..7d668afce2 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { MapBlock } from './MapBlock'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts b/packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts index 33aeeea541..54b2b556a6 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const findNestedOption = (value: string[] | string, options = []) => { if (typeof value === 'string') { value = [value]; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx index 806a4e74d7..6f9c9106ac 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Block.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; import { RecursionField, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx index 7c4551ae77..6f5046a3d8 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Map.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import AMapLoader from '@amap/amap-jsapi-loader'; import '@amap/amap-jsapi-types'; import { SyncOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx index b063f46578..5f4468eca1 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/Search.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { useDebounceFn } from 'ahooks'; import { message, Select } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts index 8440c742b9..5de2ed4ba9 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/AMap/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Block'; export * from './Map'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx index 6e5f868ecc..81adc5d8f8 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/Configuration.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useCompile } from '@nocobase/client'; import { useBoolean } from 'ahooks'; import { Button, Card, Form, Input, Tabs, message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx index 5498f5f1ca..bdb7abcd1c 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Field } from '@formily/core'; import { ISchema, useField, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx index dfcab67c5c..634add8489 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Block.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckOutlined, EnvironmentOutlined, ExpandOutlined } from '@ant-design/icons'; import { RecursionField, Schema, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx index ef6fd74732..540fdf6442 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Map.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SyncOutlined } from '@ant-design/icons'; import { useFieldSchema } from '@formily/react'; import { Loader } from '@googlemaps/js-api-loader'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx index 28edced259..50ef2cddf5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/Search.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { useDebounceFn } from 'ahooks'; import { message, Select } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts index 8440c742b9..5de2ed4ba9 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Block'; export * from './Map'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts index 39b3ce2b86..ee20ed9d65 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/GoogleMaps/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getIcon = (url) => { return { url, diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx index 1eee2880e5..33b940900b 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/Map.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { css } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx index 278b66ea1b..2fcc0d6fd2 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/MapBlock.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useMapTranslation } from '../locale'; import { AMapBlock } from './AMap'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx index 846f5d901d..a5bf4a71d8 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/MapComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo } from 'react'; import { useMapTranslation } from '../locale'; import { AMapComponent } from './AMap'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx b/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx index f6aa236ba6..f331418a2e 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/ReadPretty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema, useForm } from '@formily/react'; import { EllipsisWithTooltip, useCollection_deprecated, useFieldTitle } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/components/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/components/index.ts index e999c21cbc..5dfcec08e5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/components/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './AMap'; export * from './Configuration'; export * from './GoogleMaps'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/constants.ts b/packages/plugins/@nocobase/plugin-map/src/client/constants.ts index 62dfdf0a91..405294187d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/constants.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from './locale'; export const MapTypes = [ diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts index 32acefa5a7..7852e5511a 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/circle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../locale'; import { CommonSchema } from './schema'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts index ca9abe26cc..dbb272fba0 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CircleFieldInterface } from './circle'; import { LineStringFieldInterface } from './lineString'; import { PointFieldInterface } from './point'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts index 55bc4f6e9a..b9194292d3 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/lineString.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../locale'; import { CommonSchema } from './schema'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts index c709e31d3d..d943ecb244 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/point.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../locale'; import { CommonSchema } from './schema'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts index 2bf2dbe7d7..2365983be5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/polygon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../locale'; import { CommonSchema } from './schema'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts b/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts index d739a6f93c..14f899ac88 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/fields/schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; import { MapTypes } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts index c20cc12336..ab903e0da5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/hooks/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useMapConfiguration'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts b/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts index b5784f92e3..eec8ccefa1 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/hooks/useMapConfiguration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useRequest } from '@nocobase/client'; import { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/index.tsx b/packages/plugins/@nocobase/plugin-map/src/client/index.tsx index b05969a62e..374733e226 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { MapBlockOptions } from './block'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts index 08ab5a2ad0..b55cea27c2 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/types.ts b/packages/plugins/@nocobase/plugin-map/src/client/types.ts index 0ffb87f8ca..0580a38bd4 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/types.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/types.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export type MapEditorType = 'point' | 'polygon' | 'lineString' | 'circle'; diff --git a/packages/plugins/@nocobase/plugin-map/src/client/utils.ts b/packages/plugins/@nocobase/plugin-map/src/client/utils.ts index bdfab319af..e20921c8a4 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getSource = (data: Record, fields?: string[], type?: string) => { const res = fields?.reduce((obj, field, index) => { if (index === fields.length - 1 && (type === 'o2m' || type === 'm2m')) { diff --git a/packages/plugins/@nocobase/plugin-map/src/index.ts b/packages/plugins/@nocobase/plugin-map/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-map/src/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts b/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts index 985227d742..41b68d6e45 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/__tests__/fields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { mockDatabase } from '@nocobase/test'; import { CircleField, LineStringField, PointField, PolygonField } from '../fields'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts index 4f78a0b203..18ec406f87 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { MapConfigurationCollectionName } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts b/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts index a9fc64a087..7031a0ef59 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/collections/mapConfiguration.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; import { MapConfigurationCollectionName } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/constants.ts b/packages/plugins/@nocobase/plugin-map/src/server/constants.ts index 67f2b06e26..9a6e057a1a 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/constants.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/constants.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const MapConfigurationCollectionName = 'mapConfiguration'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts b/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts index 92ccb2aaa4..125f1d2248 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/fields/circle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@nocobase/database'; import { isPg, toValue } from '../helpers'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts b/packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts index aeeab09b0e..0f8df8bb57 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/fields/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './point'; export * from './lineString'; export * from './polygon'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts b/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts index c2439d37f1..ea208709bf 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/fields/lineString.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@nocobase/database'; import { isMysql, isPg, joinComma, toValue } from '../helpers'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts b/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts index 25e42efe82..fb17b39929 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/fields/point.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@nocobase/database'; import { isMysql, isPg, joinComma, toValue } from '../helpers'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts b/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts index b72fe536f5..4212e4eb7e 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/fields/polygon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@nocobase/database'; import { isMysql, isPg, joinComma, toValue } from '../helpers'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts b/packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts index 74519ce203..889fe26490 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/helpers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const joinComma = (value: any[]) => { if (!value) return null; return `(${value.join(',')})`; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/index.ts b/packages/plugins/@nocobase/plugin-map/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts index 415ba2bbbd..1831226a6e 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import path from 'path'; import { getConfiguration, setConfiguration } from './actions'; diff --git a/packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts b/packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts index 920dd8143b..ea81029ce5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/server/value-parsers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseValueParser } from '@nocobase/database'; export class PointValueParser extends BaseValueParser { diff --git a/packages/plugins/@nocobase/plugin-map/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-map/src/swagger/index.ts index 5dded09483..513b686af5 100644 --- a/packages/plugins/@nocobase/plugin-map/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-map/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Map plugin', diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx index e72464ed56..346dc25393 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/MobileClientProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { isJSBridge } from './core/bridge'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx index 2e1b576e88..55f69a2db2 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/App.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useApp } from '@nocobase/client'; import { Card, Form, Input } from 'antd'; import React, { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx index 12901da98a..0adf58ad4e 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/Interface.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { InterfaceRouter } from '../router'; import { MobileDevice } from '../devices'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts index ccc2dcdd86..d773b8dbf2 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/configuration/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './App'; export * from './Interface'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts index 4cae9d3a1b..6c4d0397dd 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import './native-call'; export * from './injects'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts index 6b7a7d93ce..15cbb4d483 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/injects.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + interface InvokeFunction { (params: { action: 'scan' }, cb: (data: { url: string }) => void): void; (params: { action: 'moveTaskToBack' }, cb?: () => void): void; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts index 327b8fd2a7..24f66e4bfc 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/bridge/native-call.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { invoke } from './injects'; /** diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx index c8597ef2f4..99d6fcb956 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts index c3a84df745..9de5a4d84a 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './page'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts index e2de8d88a5..f265f3da61 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/common/page.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const PageSchema = { type: 'void', 'x-component': 'MPage', diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx index ffc3948652..b606f92334 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { useField, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx index f5d7265059..0af54c24f2 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/Container.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { cx, SchemaComponent, SortableItem, useDesigner, useToken } from '@nocobase/client'; import React, { useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts index 8a1103ffa4..36cf957747 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Container'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts index f03c480ba8..2d76f01ada 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/container/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx index 32966885f6..69b8fcd922 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Switch } from '@formily/antd-v5'; import { useField } from '@formily/react'; import { GeneralSchemaDesigner, SchemaSettingsModalItem } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx index c66cf59371..47295561a1 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/Header.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField } from '@formily/react'; import { cx, SortableItem, useCompile, useDesigner, useDocumentTitle, useToken } from '@nocobase/client'; import { NavBar, NavBarProps } from 'antd-mobile'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts index 266dec8a1b..1a97e0553f 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/header/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Header'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts index 3289ab9882..9f98968fa9 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './menu'; export * from './container'; export * from './tab-bar'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx index 1e7d620bb6..34d2f8877c 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { useField, useFieldSchema } from '@formily/react'; import { SchemaSettingsDropdown, SchemaSettingsRemove, useDesignable } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx index d9d0d3298c..cd79f52a4d 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.Item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { GeneralSchemaDesigner, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx index c8ff04119a..ae54a73655 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/Menu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { cx, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx index 6e7b254a25..a9b6a5d411 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/MenuBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { MenuOutlined } from '@ant-design/icons'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts index 1037cb5e51..c0198f406e 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './MenuBlockInitializer'; export * from './Menu'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts index 12a43b8179..cca6f5323e 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { generateNTemplate } from '../../../../locale'; export const menuItemSchema = { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts index 4ba46e9b25..4d73b224e6 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/menu/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx index 6105490e53..13363d1361 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuOutlined } from '@ant-design/icons'; import { useField, useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx index 87d9bc5a93..bcd2fc08aa 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/Page.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { RecursionField, useField, useFieldSchema } from '@formily/react'; import { ActionBarProvider, SortableItem, TabsContextProvider, css, cx, useDesigner } from '@nocobase/client'; import { TabsProps } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts index d9925d7520..d239958e50 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Page'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts index 6625d0654c..48339b3842 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/page/style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ token, css }) => { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx index f8f60cf82f..846bb39406 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.Designer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { GeneralSchemaDesigner, SchemaSettingsRemove } from '@nocobase/client'; import React from 'react'; import { useTranslation } from '../../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx index 60ed61c113..b5aacec9ba 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx, SettingsMenu, SortableItem, useDesigner } from '@nocobase/client'; import React from 'react'; import { SettingsDesigner } from './Settings.Designer'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx index 668e985f54..cf4b138c52 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/SettingsBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SettingOutlined } from '@ant-design/icons'; import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts index 85f0b88026..d4a27c8845 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/settings/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Settings'; export * from './SettingsBlockInitializer'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx index 0f06ef7e8a..250d2a3c76 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.Item.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { css, diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx index 62a1131e56..90e233e64f 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/TabBar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts index 832e14a54b..1b81d16ef1 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './TabBar'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts index e0f503c547..67fdac4b7c 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/components/tab-bar/schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const tabItemSchema = { properties: { title: { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts index 3e629d64ed..52abc94ee7 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/helpers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema, Schema } from '@formily/react'; import { uid } from '@formily/shared'; export const gridItemWrap = (schema: ISchema) => { diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts index 414110151a..f23f6b05ae 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useSchemaPatch'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts index 6ac432f538..58aa5e8721 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/hooks/useSchemaPatch.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useFieldSchema } from '@formily/react'; import { useDesignable } from '@nocobase/client'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts index 3ea8346c4e..bdd8f1ce85 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './initializers'; export * from './components'; export * from './scopes'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts index d3908f25c3..70f781b3e4 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/BlockInitializers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, gridRowColWrap } from '@nocobase/client'; import { generateNTemplate } from '../../../locale'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts index 2421a851c8..4f9c779da4 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/initializers/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './BlockInitializers'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts index e87973fa94..79c5b72ab9 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/grid-card.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { useInterfaceContext } from '../../../router/InterfaceProvider'; import { PaginationProps } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts index e4f68f226e..c9fb566f8a 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/core/schema/scopes/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './grid-card'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx index e898f58b99..2a2a4dab75 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/iOS6.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx index 71bf3ad354..b348558951 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/devices/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@nocobase/client'; import React from 'react'; import { useLocation } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx index 6914f94d5d..3f20cd6934 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createRouterManager, Plugin, RouterManager, RouteSchemaComponent } from '@nocobase/client'; import React from 'react'; import { Navigate, Outlet } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts index ac61689397..faef1d78af 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation as useT } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx index 08817e66c8..e4d3652856 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/Application.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ActionContextProvider, AdminProvider, css, cx, RemoteSchemaComponent, useViewport } from '@nocobase/client'; import { DrawerProps, ModalProps } from 'antd'; import React, { useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx index 2ad8157d4b..c31783b7e9 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext } from 'react'; export const InterfaceContext = React.createContext(null); diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx index 1fe1af5cec..ddd336a9ea 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/InterfaceRouter.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, usePlugin } from '@nocobase/client'; import React from 'react'; import { PluginMobileClient } from '../index'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx index 56b3d1b732..a402fe59f9 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/OpenInNewTab.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { LinkOutlined } from '@ant-design/icons'; import { css, useApp } from '@nocobase/client'; import { Button } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts index 009581c3e0..45cd1da160 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/client/router/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './InterfaceRouter'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts index b01332afc5..003cb5ab68 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20230620203218-mobile-ui-schema-uid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts index 650d542bd6..47e1781cc3 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/server/migrations/20231215215233-mobile-container-uid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts index 91197d090e..26d9044afc 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts b/packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts index dafca09888..a0e72d13ef 100644 --- a/packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts +++ b/packages/plugins/@nocobase/plugin-mobile-client/src/server/routes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const routes = [ { type: 'route', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts index 68b95abd45..d771955e29 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; export default class PluginMockCollectionsClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts index f76b6a935b..254f1a88c3 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/collection-templates/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { calendar: (options) => { return { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts index 423444bd9f..d79f244315 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/association.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts index 6f23d0fb19..2eb7484662 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/attachment.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { uid } from '@nocobase/utils'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts index 4dde2f9c41..66a44e3567 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkbox.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const checkbox = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts index b6119c7112..95d54a9194 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/checkboxGroup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts index 85ac97324b..210796b317 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/chinaRegion.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@nocobase/utils'; export const chinaRegion = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts index 146d1019f7..a81767b51c 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/circle.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const circle = { options: () => ({ type: 'circle', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts index 975dbb46e1..65b013f517 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const collection = { options: (options) => ({ type: 'string', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts index 21624e25e9..33e0782f67 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/color.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const color = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts index 1e4dc86706..94ada6a0cb 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdAt.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const createdAt = { options: (options) => ({ type: 'date', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts index 14d08ea1f8..0df2ac45a5 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/createdBy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const createdBy = { options: (options) => ({ type: 'belongsTo', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts index f8f213b321..4f1f74037a 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/datetime.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const datetime = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts index f293994c3b..ddbe96e19c 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/email.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts index e8f65120b8..f5a10745bb 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/formula.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const formula = { options: () => ({ type: 'formula', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts index abe683de2d..8b4a16dc16 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/icon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const icon = { options: () => ({ type: 'string', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts index 36b65b2992..db6c74889f 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/id.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const id = { options: () => ({ name: 'id', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts index f53d61cd5b..4c8f19c1a9 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './association'; export * from './attachment'; export * from './checkbox'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts index e9583ffeca..b4b6d38eb8 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/input.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const input = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts index bb2df396b9..8c8f17bfd6 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/integer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const integer = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx index d61c43267e..00cb0636f3 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/json.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const json = { options: () => ({ type: 'json', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts index a48f42f2ff..b18f036527 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/lineString.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const lineString = { options: () => ({ type: 'lineString', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts index 0834512a92..c379beb6e6 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/markdown.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const markdown = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts index f990fcb413..c83ae8aeea 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/multipleSelect.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts index 2f8758d2ed..4bfd0f5418 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/number.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const number = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts index 3596faa7f2..83bb741dcd 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/password.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const password = { options: () => ({ type: 'password', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts index efbb4acb26..983ac350d0 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/percent.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const percent = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts index 4597160d9d..e4e052599c 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/phone.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const phone = { options: () => ({ type: 'string', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts index 81dee0e4bd..3bdf48b760 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/point.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const point = { options: () => ({ type: 'point', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts index a83d9d428a..1afabbfe77 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/polygon.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const polygon = { options: () => ({ type: 'polygon', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts index 3c6be1765a..a11bcc475f 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/radioGroup.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts index 8da3f83e46..e4bbdcf311 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/richText.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const richText = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts index c0f1c2bbb7..b789816b27 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/select.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts index 7b8a7a3021..19cd67e2ec 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sequence.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { randomInt } from 'crypto'; export const sequence = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts index 0aa059a22f..a8f6b921ae 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/snapshot.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const snapshot = { options: () => ({ type: 'snapshot', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts index 52ed32c62f..7da2a0d835 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/sort.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const sort = { options: () => ({ type: 'sort', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts index e8ff5cb74b..08c33d0275 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/tableoid.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const tableoid = { options: () => ({ name: '__collection', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts index 35cdfee430..2fde58e9e5 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/textarea.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; export const textarea = { diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts index 2b0b999505..885a16b3e5 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/time.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { dayjs } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts index 80ab694ec0..1f5638e275 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedAt.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const updatedAt = { options: () => ({ type: 'date', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts index 2b9215324d..6ecb3d1fc3 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/updatedBy.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const updatedBy = { options: () => ({ type: 'belongsTo', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts index ec0ff42e3e..f2c4f64017 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/field-interfaces/url.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const url = { options: () => ({ type: 'string', diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts index 05e3ed73da..cd5ed2ea14 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection, Repository } from '@nocobase/database'; import { CollectionRepository } from '@nocobase/plugin-data-source-main'; import { InstallOptions, Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppManager.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppManager.tsx index e614705c33..fc97e0058b 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppManager.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent, useApp, useRecord } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx index a510267208..0158231f45 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/AppNameInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty } from '@formily/react'; import { useApp } from '@nocobase/client'; import { Input as AntdInput } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.style.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.style.ts index fcd0dcf450..0ebb0fee8e 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.style.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.style.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ token }) => { diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.tsx index 162788b846..9102fa7705 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/MultiAppManagerProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Icon, PinnedPluginListProvider, SchemaComponentOptions, useApp, useRequest } from '@nocobase/client'; import { Button, Dropdown } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/Settings.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/Settings.tsx index 87e34371e8..51da571ba9 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/Settings.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/Settings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/index.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/index.ts index 35f13d8092..d6320277be 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { MultiAppManagerProvider } from './MultiAppManagerProvider'; import { AppManager } from './AppManager'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts index d79625abd4..23278302fe 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { uid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/utils.tsx index ab990af2db..62754cdb65 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const usePluginUtils = () => { diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/index.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/locale/index.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/locale/index.ts index 38903a58fc..9190b7f784 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/locale/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const NAMESPACE = 'multi-app-manager'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/gateway.test.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/gateway.test.ts index 311cab8aab..a84ade5e39 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/gateway.test.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/gateway.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppSupervisor, Gateway } from '@nocobase/server'; import { MockServer, createMockServer, createWsClient, startServerWithRandomPort, waitSecond } from '@nocobase/test'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/mock-get-schema.test.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/mock-get-schema.test.ts index 6c6e51dbfe..f016f6c7d2 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/mock-get-schema.test.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/mock-get-schema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppSupervisor, Plugin, PluginManager } from '@nocobase/server'; import { createMockServer } from '@nocobase/test'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/multiple-apps.test.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/multiple-apps.test.ts index 1f66d96453..d60a7e3044 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/multiple-apps.test.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/__tests__/multiple-apps.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { AppSupervisor, Gateway } from '@nocobase/server'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/collections/applications.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/collections/applications.ts index 482175df20..4f863437a3 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/collections/applications.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/collections/applications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/index.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/index.ts index 25fa8016b5..43af9544f7 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ApplicationModel, registerAppOptions } from './models/application'; export { PluginMultiAppManagerServer as default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/models/application.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/models/application.ts index 27dc4983bf..abfce7f809 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/models/application.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/models/application.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Transactionable } from '@nocobase/database'; import { Application } from '@nocobase/server'; import { AppOptionsFactory } from '../server'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/server.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/server.ts index c689d0af2a..ce0b1c013f 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, IDatabaseOptions, Transactionable } from '@nocobase/database'; import Application, { AppSupervisor, Gateway, Plugin } from '@nocobase/server'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/swagger/index.ts index c48a388a25..989a92c38f 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Multi-app manager plugin', diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx index ec34171054..cd889d0e9a 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { useActionContext, useAPIClient, useRecord } from '@nocobase/client'; import { tableActionColumnSchema } from '@nocobase/plugin-multi-app-manager/client'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx index f1b10280a7..56f150aa01 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/TableTransfer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect } from '@formily/react'; import { css, useCollectionManager_deprecated, useRecord, useRequest, useToken } from '@nocobase/client'; import { CollectionsGraph, lodash } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx index 736bb7aeb7..8326fc6506 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { MultiAppShareCollectionProvider } from './MultiAppShareCollectionProvider'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx index 4f6abf560b..e2da91c1ae 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/utils.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const usePluginUtils = () => { diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts index ffac7825ef..f7601f4041 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/collection-sync.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyRepository, Database } from '@nocobase/database'; import { AppSupervisor } from '@nocobase/server'; import { MockServer, createMockServer, isPg } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts index af329dece9..f965544dea 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer } from '@nocobase/test'; export async function createApp(options = {}) { diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts index 69850d567b..66b90dfcbf 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/applications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts index 69413f5add..f66fb195c4 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/collections/collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts index 53cbb03ef5..acf15646e5 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/migrations/20230319111111-update-apps-collections.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { CollectionsGraph } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts index d3a8f6c4b5..37035d24b0 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import PluginMultiAppManager from '@nocobase/plugin-multi-app-manager'; import { Application, AppSupervisor, Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/client/index.ts b/packages/plugins/@nocobase/plugin-notifications/src/client/index.ts index 7d9f465ed0..1f6cd6c576 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginNotificationClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-notifications/src/index.ts b/packages/plugins/@nocobase/plugin-notifications/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/index.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts index f1f5320770..5b2d516a68 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/__tests__/notifications.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { createMockServer } from '@nocobase/test'; import nodemailerMock from 'nodemailer-mock'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts index 6f517f779d..c31e6c216b 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_logs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; import { NotificationLog } from '../models'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts index d7fbedd762..bef60fc12f 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notification_services.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; import { NotificationService } from '../models'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts index b218c013cd..6f1c863bc7 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/collections/notifications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; import { Notification } from '../models'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/index.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts index fe44dfd6a4..20ee66c69b 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/models/Notification.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Model } from '@nocobase/database'; import lodash from 'lodash'; import { NotificationService } from './NotificationService'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts index 8e845dbc38..9b95b8f412 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationLog.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; export class NotificationLog extends Model {} diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts index db4de94ef5..37c1ab1c67 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/models/NotificationService.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import nodemailer from 'nodemailer'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts index 190994a9d4..216691b479 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/models/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Notification'; export * from './NotificationLog'; export * from './NotificationService'; diff --git a/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts b/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts index c34f57b151..ae05319348 100644 --- a/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-notifications/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import path from 'path'; diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx b/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx index 4e86e06b50..349456c830 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-sample-hello/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import { Plugin, SchemaInitializerItem, SchemaSettings, useSchemaInitializer } from '@nocobase/client'; import { Card } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/index.ts b/packages/plugins/@nocobase/plugin-sample-hello/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/src/index.ts +++ b/packages/plugins/@nocobase/plugin-sample-hello/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts b/packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts index 8eae593ecc..58af25dd20 100644 --- a/packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-sample-hello/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; export class HelloPlugin extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx index 0943946964..2625baf9fd 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializers.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CompatibleSchemaInitializer, gridRowColWrap } from '@nocobase/client'; import { NAMESPACE } from '../../locale'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx index 78fcb096d4..e80a179adf 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockInitializers/SnapshotBlockInitializersDetailItem.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { FormOutlined } from '@ant-design/icons'; import { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx index eb4e4431b4..ace1d3333e 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotBlock/SnapshotBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { useField } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx index f130498b55..0aa821c0d1 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotFieldProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionHistoryProvider, SchemaComponentOptions } from '@nocobase/client'; import React from 'react'; import { SnapshotOwnerCollectionFieldsSelect } from './components/SnapshotOwnerCollectionFieldsSelect'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx index 465d53ad19..d792708b1c 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotHistoryCollectionProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionManagerProvider_deprecated, ExtendCollectionsProvider, diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx index 36d683e953..37b1457a25 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/SnapshotRecordPicker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { connect, mapReadPretty, useFieldSchema } from '@formily/react'; import { ReadPrettyRecordPicker, useCollection_deprecated } from '@nocobase/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx index dd841427f7..ff65899975 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/components/SnapshotOwnerCollectionFieldsSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollectionManager_deprecated, useCompile } from '@nocobase/client'; import { Select, SelectProps } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx index 60aea3d8d2..c4ef4d9cc4 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { SnapshotFieldProvider } from './SnapshotFieldProvider'; import { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts index 0767296a05..95b003df59 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Field } from '@formily/core'; import { ISchema, useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts index 87cd973165..d291ff1b39 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_linkto.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_linkto.ts index 61b3bc3a4b..f1d257b069 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_linkto.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_linkto.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const field_linkto = { name: 'field_linkto', type: 'belongsToMany', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_m2m.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_m2m.ts index cbbeb085a1..e65bf217ef 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_m2m.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_m2m.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const field_m2m = { foreignKey: 'fk_table_b', otherKey: 'fk_table_a', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2m.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2m.ts index b53c950767..e5a2a6a5d0 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2m.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2m.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const field_o2m = { foreignKey: 'fk_table_b', onDelete: 'SET NULL', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2o.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2o.ts index c2bb3785ff..bf047c9da7 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2o.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/field_o2o.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const field_o2o = { foreignKey: 'fk_table_b', onDelete: 'SET NULL', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_linkto.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_linkto.ts index e45a90c516..52cfc87233 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_linkto.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_linkto.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const snap_linkto = { name: 'snap_linkto', type: 'snapshot', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_m2m.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_m2m.ts index f9e60cb938..71be822033 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_m2m.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_m2m.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const snap_m2m = { name: 'snap_m2m', type: 'snapshot', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2m.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2m.ts index 7d1a81167b..fcc3d6284c 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2m.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2m.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const snap_o2m = { name: 'snap_o2m', type: 'snapshot', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2o.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2o.ts index f85c14eea5..411dbb17eb 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2o.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/snap_o2o.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const snap_o2o = { name: 'snap_o2o', type: 'snapshot', diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_a.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_a.ts index 2baedb247e..5940ae2e4d 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_a.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_a.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const table_a = { logging: true, autoGenId: true, diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_b.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_b.ts index ac505779fa..87a115a67c 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_b.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_b.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const table_b = { logging: true, autoGenId: true, diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_m2m.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_m2m.ts index d1efa13c19..bc3d8f5814 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_m2m.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/data/table_m2m.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const table_m2m = { logging: true, autoGenId: true, diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/fieldsHistory.test.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/fieldsHistory.test.ts index cdba2038c5..4cf166665b 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/fieldsHistory.test.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/fieldsHistory.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, MockServer } from '@nocobase/test'; describe('actions', () => { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/snapshots.test.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/snapshots.test.ts index 39b2d1e8e6..d0e1407e63 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/snapshots.test.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/__tests__/snapshots.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createMockServer, MockServer } from '@nocobase/test'; import { field_linkto } from './data/field_linkto'; import { field_m2m } from './data/field_m2m'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts index 5ddabde1f1..1c40ee8653 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/collectionsHistory.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts index 159ead8ebe..6a0a29882b 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/collections/fieldsHistory.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts index ff3432d641..dac37a85e9 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/fields/snapshot-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseColumnFieldOptions, CreateOptions, DataTypes, Field, Model } from '@nocobase/database'; export class SnapshotField extends Field { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts index 5a2a1c79fc..1ece68667b 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts index bc249c7351..ad92e7b040 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { info: { title: 'NocoBase API - Snapshot field plugin', diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/client/index.ts b/packages/plugins/@nocobase/plugin-system-settings/src/client/index.ts index 5e286846c6..3a5f93832d 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginSystemSettingClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/index.ts b/packages/plugins/@nocobase/plugin-system-settings/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/index.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/server/collections/systemSettings.ts b/packages/plugins/@nocobase/plugin-system-settings/src/server/collections/systemSettings.ts index ccfaa744b6..4bc7d0aa02 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/server/collections/systemSettings.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/server/collections/systemSettings.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/server/index.ts b/packages/plugins/@nocobase/plugin-system-settings/src/server/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/server/migrations/20220714204714-update-enabled-languages.ts b/packages/plugins/@nocobase/plugin-system-settings/src/server/migrations/20220714204714-update-enabled-languages.ts index d33d0bfe63..0389ff80fc 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/server/migrations/20220714204714-update-enabled-languages.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/server/migrations/20220714204714-update-enabled-languages.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-system-settings/src/server/server.ts b/packages/plugins/@nocobase/plugin-system-settings/src/server/server.ts index 9e3ebdc575..326271631c 100644 --- a/packages/plugins/@nocobase/plugin-system-settings/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-system-settings/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import { resolve } from 'path'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx index 9259083269..5df23d4961 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPanel.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { InputProps } from 'antd'; import { ConfigProvider, Input, InputNumber, Select, theme } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx index cf32fd68d4..10870cb85e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ColorPreview.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import classNames from 'classnames'; import type { FC } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx index a94759f272..51f6fa9721 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/FilterPanel.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Segmented, Tag } from 'antd'; import classNames from 'classnames'; import useMergedState from 'rc-util/lib/hooks/useMergedState'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx index 89599ffc14..86954266e4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/IconSwitch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import classNames from 'classnames'; import React from 'react'; import makeStyle from './utils/makeStyle'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx index 0ae4c777f5..278f932d07 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/PreviewDemo.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { FC } from 'react'; import React from 'react'; import { antdComponents } from './component-panel'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx index 74d763ded5..a230aba804 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeEditor.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { DerivativeFunc } from '@ant-design/cssinjs'; import classNames from 'classnames'; import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx index f76aa3684e..6997ad5b8c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/ThemeSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Dropdown, Menu } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx index 8492dbb419..0371804c13 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/TokenInput.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Dropdown, Input, InputNumber } from 'antd'; import classNames from 'classnames'; import type { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx index ea0e603373..38aa535d29 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/alert.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Space } 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/alert/error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx index 76949f4891..0e04e710e1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Space } 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/alert/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts index 3398808cc6..0e4bd922aa 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './alert'; import error from './error'; import info from './info'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx index e1f9f82b80..b8a4a46d93 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Space } 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/alert/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx index 11a0e39efc..9bcbc0092a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Space } 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/alert/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx index 718197d286..19b1bf29c5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/alert/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Space } 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/anchor/anchor.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx index 57912939b8..e394f61ae0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchor.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Anchor } 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/anchor/anchorInLayout.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx index 3aef016ef9..283abbe2ef 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/anchorInLayout.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Anchor, theme } 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/anchor/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts index 19a68f804c..e5597593a3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/anchor/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './anchor'; import AnchorLayout from './anchorInLayout'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx index 6e02c83a6a..cc67291e82 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/auto-complete.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AutoComplete } from 'antd'; import React, { useState } from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts index e0d56f8cc4..fb6bf0a66c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/autoComplete/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './auto-complete'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx index 208a741dc7..3783e2aa79 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/avatar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UserOutlined } from '@ant-design/icons'; import { Avatar, Space } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx index 2e05f5804a..5a919da5fa 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/avatar/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import Default from './avatar'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx index 149774a3e7..c522779ac9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/badge.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ClockCircleFilled } from '@ant-design/icons'; import { Avatar, Badge, Space, theme } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts index 16336d29af..ada8fed465 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './badge'; import Progress from './progress'; import success from './success'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx index c3d8ce222e..0b1ce1b376 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/progress.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Badge, Space } 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/badge/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx index 3d473201be..17b8f48cd0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Badge, Space } 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/badge/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx index dbd5f0e06f..6b24b146c0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/badge/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Badge, Space } 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/breadcrumb/breadcrumb.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx index 97d2645d7f..01a32f8593 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/breadcrumb.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Breadcrumb } 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/breadcrumb/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts index d0832e3725..1b22a60a4f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/breadcrumb/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './breadcrumb'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx index 5575cca67a..52cb0657a1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button-icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SearchOutlined } from '@ant-design/icons'; import { Button, Space, Tooltip } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx index c241f3f461..0a047c2655 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/button.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Space } 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/dangerButton.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx index e2f7c8a1b1..311a419465 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/dangerButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Space } 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/defaultButton.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx index 2bed319018..cf2d7dbb13 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/defaultButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx index 13b3bbf2b5..315d271615 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Space } 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/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts index d9d05ef3a3..3fe1a712b8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/button/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './button'; import ButtonIconDemo from './button-icon'; import DangerButton from './dangerButton'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx index 9647ca972d..63f8c7574d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/calendar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Calendar } 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/calendar/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx index 8ebfc87d71..641ef27cc9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Calendar } 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/calendar/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts index 29f387a7f5..635f4dd11a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/calendar/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './calendar'; import disabled from './disabled'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx index df369259db..b73f50840b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/card.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card, Space } 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/card/cardGrid.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx index bcd529abb7..66688e3f2c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/cardGrid.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card } from 'antd'; import type { CSSProperties } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts index 1e5cb46bf8..761d855d82 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './card'; import cardGrid from './cardGrid'; import inner from './inner'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx index 0c75c9ab41..6009f38c5c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/card/inner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card, Space } 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/carousel/carousel.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx index 1e2b0d748b..26712dad73 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/carousel.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Carousel } from 'antd'; import type { CSSProperties } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts index 98fbb6d52a..cd860c3eca 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/carousel/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './carousel'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx index d98dabb276..c1c608249e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/cascader.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cascader } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts index 8ed4640e5c..fd602739c8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/data.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const options = [ { value: 'zhejiang', diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx index efe34fb9b2..a5e3eeb710 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/disable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cascader } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx index 4d043d3623..159a03cce2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/highlight.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cascader as _Cascader } 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/cascader/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts index 315f1bbc05..b104e4fd2a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/cascader/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './cascader'; import disable from './disable'; import HighLight from './highlight'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx index b2db307569..db190d5b16 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/checkbox.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Checkbox, Space } 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/checkbox/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx index c635b329ec..d6c28790ce 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Checkbox } 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/checkbox/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts index 55573f8545..b889d34f30 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/checkbox/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './checkbox'; import disabled from './disabled'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx index da2648f479..5777722306 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/collapse.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collapse } 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/collapse/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts index 9fac5c9c9d..01dd353f0c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/collapse/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './collapse'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx index f0fabc2921..370cf48aaa 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DatePicker } 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/datePicker/date-picker.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx index dc797a8f05..0417fcd461 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/date-picker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DatePicker, Space } 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/datePicker/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx index 5227e264b6..2a67237283 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DatePicker, Space } 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/datePicker/icon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx index 775be0870e..1a3c7cdb1a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DatePicker } 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/datePicker/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts index 54c87de73d..98777627a4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import Default from './date-picker'; import disabled from './disabled'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx index 023fd3ef75..5c4bbcfbdc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/datePicker/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DatePicker } 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/descriptions/descriptions.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx index 6b8ffa8540..9082d31334 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/descriptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Descriptions } 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/descriptions/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts index 159669a097..b832f033ba 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/descriptions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './descriptions'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx index cebc65bc57..4b11de260f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/divider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Divider } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts index 78f04999ec..b5851322b7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/divider/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './divider'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx index 0dde0f53e4..b5491513d7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/drawer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Drawer } from 'antd'; import React, { useState } from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts index 1bd2be5b61..071ece6a6f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/drawer/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './drawer'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx index 85cc1bd6ab..6f08fb7925 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdown.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined } from '@ant-design/icons'; import { Dropdown } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx index 36d555e968..9d13e6d556 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/dropdownError.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined } from '@ant-design/icons'; import { Dropdown, Typography } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts index e675109d0e..f35addde8d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './dropdown'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx index dd6902c591..bb599b5151 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/dropdown/menu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DownOutlined } from '@ant-design/icons'; import { Menu } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx index 6b4347d7e3..4ed4ec0a29 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/empty.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Empty } 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/empty/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts index eb21052ea0..cee75438ea 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/empty/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './empty'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx index 2ffaf20f70..19285e6ced 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form, Input } 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/form/form.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx index 6cda6b340e..05865689ff 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/form.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Checkbox, Form, Input } 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/form/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx index bd4d669934..21fa476388 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './form'; import danger from './danger'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx index 50dce7da75..dbfebaf3f3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/form/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Form, Input } 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/grid/grid.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx index 51d0e4b59c..0bd1bbb899 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/grid.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Col, Row } from 'antd'; import classNames from 'classnames'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts index c1fa7d4dcc..1fb77cc8e1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/grid/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './grid'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx index 7c22221bf0..a3b039f987 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { HomeOutlined, LoadingOutlined, SettingFilled, SmileOutlined, SyncOutlined } from '@ant-design/icons'; import { Space } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts index 1cdf4d9355..4eb3e73043 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/icon/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './icon'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx index f7b17d9182..81f9281bfe 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Image } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx index 47a20269f3..77494a894f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/image.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Image } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts index 19f4cd2f67..0c4f0998c2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/image/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import disabled from './disabled'; import Default from './image'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts index fcb7995d28..13c146fca7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Alert from './alert'; import Anchor from './anchor'; import AutoComplete from './autoComplete'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx index 103f7fcf81..d962de9a21 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/clearIcon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx index 5d984b866f..80df5fdae2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } 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/input/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx index 0ee97e72fd..5f965e050e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } 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/input/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts index 20cbe055ed..9f76cf8ca9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import clearIcon from './clearIcon'; import danger from './danger'; import disabled from './disabled'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx index 97f956a1c4..38d80b9b62 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/input.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } 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/input/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx index bc1ed290ad..f1f79cb43b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckCircleFilled } from '@ant-design/icons'; import { Input, theme } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx index 76a7b28308..becb40652c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } 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/input/withAddon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx index 87348f1cbe..f87a3c6e6c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/input/withAddon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Input } 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/inputNumber/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx index c37ea27366..eade17e96b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InputNumber } 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/inputNumber/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx index 01ef83ace8..443323ca47 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InputNumber } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts index 4c16337916..85f3fd2714 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import disabled from './disabled'; import Default from './inputNumber'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx index f94f58890f..3a60da3f65 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/inputNumber.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InputNumber } 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/inputNumber/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx index d0742be97b..d1817bf6e9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/inputNumber/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InputNumber } 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/list/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts index 091778a660..85d119b110 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './list'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx index 14c777c257..7a1b1129be 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/list/list.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Avatar, List } 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/mentions/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx index e8aef84fd4..2fff43bbab 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Mentions } 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/mentions/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx index d1e05869f9..cae9f489bc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Mentions } 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/mentions/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts index 37b0b450e1..b0fe97660a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import disabled from './disabled'; import Default from './mentions'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx index 1d63452c02..e9f00f7c63 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/mentions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Mentions } 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/mentions/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx index efe1a437de..4f306589d0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/mentions/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Mentions } 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/menu/data.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx index 1d6bbd1f5d..f3ed52ba01 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/data.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons'; import type { MenuProps } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts index 3c6531279a..fcdd25aee7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './menu'; import danger from './menuDanger'; import MenuInLayout from './menuInLayout'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx index 4f4c8fde7e..054229efda 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menu.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { MenuProps } from 'antd'; import { Menu } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx index 501d62e8fb..05a6278e51 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuDanger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { MenuProps } from 'antd'; import { Menu } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx index 70848210dc..54dda0348b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/menu/menuInLayout.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Menu, theme } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx index 524b19d673..4403023f4f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } 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/message/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts index ce45f6fa4f..cd1932fd8d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import error from './error'; import info from './info'; import Default from './message'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx index 33d4aaa710..5c3a7e98f5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } 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/message/message.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx index 47fc303751..22fc6a0dc1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/message.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx index d9eb2a031b..6135ec65bd 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } 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/message/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx index 069f2a7ac5..955ec77465 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/message/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { message } 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/modal/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts index 006c76b44b..165ffa9e57 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import info from './info'; import Default from './modal'; import withButton from './modalWithButton'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx index 65231fb45b..82e381a30f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal } 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/modal/modal.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx index ad75c3a739..559fd6949f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modal.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx index 0f6c455fd2..5e23202fae 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/modalWithButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Modal } from 'antd'; import React, { useState } from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx index 96e06e024f..49a195247c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx index 31ffa7e8c8..7dd1153beb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/modal/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Modal } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx index 11a3b5234a..b6966844c3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } 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/notification/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts index 0b4e5a5b85..3016b66904 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import error from './error'; import info from './info'; import Demo from './notification'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx index a759cb8804..5fa9bad073 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } 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/notification/notification.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx index 983848357d..ef45fe57cf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/notification.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } 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/notification/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx index f99e0e66ad..999daa4051 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } 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/notification/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx index 2d9c54d1b0..a061afe30b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/notification/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { notification } 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/pagination/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx index a4bcb59092..204bde9b5a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Pagination } 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/pagination/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx index 6552d3c471..fe3af4e466 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import disabled from './disabled'; import outline from './outline'; import Demo from './pagination'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx index 327002c869..a76ca57061 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/outline.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Pagination, Space } 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/pagination/pagination.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx index 5402d2fbe1..ce541c89f4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/pagination/pagination.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Pagination, Space } 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/popconfirm/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts index 9fac303745..6a737b9d9b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './popconfirm'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx index b60b66c849..6efc648388 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popconfirm/popconfirm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Popconfirm, message } 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/popover/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts index 147db6bb0f..05d3323056 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './popover'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx index ce350a37a8..e654f39bdb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/popover/popover.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Popover } 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/progress/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx index 2c07318d5e..66cad34437 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Flexbox } from '@arvinxu/layout-kit'; import { Progress } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts index 015fb8a418..74284448c7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import info from './info'; import Demo from './progress'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx index 156a7a7694..2b92100003 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Progress } 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/progress/progress.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx index 8bb0c0e147..97738c6ae4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progress.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Progress } 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/progress/progressInBg.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx index dcbf199929..faf4b70ab2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/progressInBg.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Progress, theme } 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/progress/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx index 51e28786ae..19735bbd9b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/progress/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Flexbox } from '@arvinxu/layout-kit'; import { Progress } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx index 2e3cc250c9..0f1ec81d05 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/button.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Radio, Space } 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/radio/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx index 9e7088078b..0962e48d2b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Radio } 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/radio/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts index 0c52146ada..d1c4c4913e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Button from './button'; import disabled from './disabled'; import Default from './radio'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx index 4da9ff34b5..9f920295c0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/radio/radio.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Radio } 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/rate/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts index 313c9da2d7..d1d0765a3a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './rate'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx index 0943a5d84d..ec032ac4b3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/rate/rate.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Rate } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx index 8d9edd2954..711122063b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } 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/result/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts index edc830b745..1ad884e5e2 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import info from './info'; import Demo from './result'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx index f9ee9dff65..6ae6502158 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } 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/result/result.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx index f54679c2c3..73b481c34b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/result.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Result } 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/result/resultWithDesc.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx index 015e933fb1..a21536649c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/resultWithDesc.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } 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/result/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx index 11b32cd54a..ad6114e020 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } 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/result/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx index 7ee44eefc8..16bdb06871 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/result/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Result } 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/segmented/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts index e9fc8e4379..989ee253c0 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './segmented'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx index 14b8cd9e03..684a403b7e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/segmented/segmented.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Segmented } 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/select/_internal.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts index 5e65603d3b..37569cf4b8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/_internal.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Select } from 'antd'; export default Select._InternalPanelDoNotUseOrYouWillBeFired; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx index fc8047eed2..ef8b479137 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Select from './_internal'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts index 1741f6ff86..8e4256a76c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/data.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { SelectProps } from 'antd'; const options: SelectProps['options'] = []; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx index a732243e0e..2789ce1b15 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Select from './_internal'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx index f7f959e7de..fee21e7d66 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/icon.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Select from './_internal'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts index a6c222f24c..e1603ef0e5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import disabled from './disabled'; import icon from './icon'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx index 7e3bc27aa0..2592562aa6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/select.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Select as _Select, Space } 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/select/selectTag.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx index 028f7e4085..c15d8d249f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/selectTag.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Select from './_internal'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx index eb868723ba..8e60f7051b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/select/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Select from './_internal'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts index 16f1d8dd29..587227dcf6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './skeleton'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx index 2d75d6b701..fbec3bb07b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/skeleton/skeleton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Skeleton } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts index 367112ba37..f90ba36ee7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './slider'; import SliderInBg from './sliderInBg'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx index aea31ac2ae..6938d637a8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/slider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Slider } 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/slider/sliderInBg.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx index b2374404a0..cfd8bb1c62 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/slider/sliderInBg.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Slider, theme } 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/space/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts index 78f5baf391..22159121d1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './space'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx index ea1aea9971..947ab08e5f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/space/space.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UploadOutlined } from '@ant-design/icons'; import { Button, Popconfirm, Space, Upload } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts index 221ad346d4..8b9cdbd4bb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Default from './spin'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx index 9302b3ec18..f94a9503e1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/spin/spin.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Spin } 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/statistic/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts index 1ce48cd325..3b20313a20 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './statistic'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx index c7b8967951..44a8a125fb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/statistic/statistic.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Col, Row, Statistic } 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/steps/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx index 00a6225297..67c1cf7d03 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Steps } 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/steps/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts index 56b40fa6b3..b0a3b9669a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import Demo from './steps'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx index 06715d3041..14a4ba684c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/steps/steps.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Steps } 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/switch/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts index 811e0d669b..92c2ca677b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './switch'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx index 498de9a835..f9ee12eede 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/switch/switch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Switch } 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/table/filterTable.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx index a9fd447b0c..2b654ca57e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/filterTable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { TableProps } from 'antd'; import { Table } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts index 847fb2e4a9..0639d8e338 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Filter from './filterTable'; import Default from './table'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx index 787df1f247..615c811bd9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/table/table.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Space, Table, Tag } 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/tabs/cardTabs.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx index 927ae84d4a..a5e57cb9ce 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/cardTabs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tabs } 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/tabs/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts index ca2c356a75..385226fb02 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import card from './cardTabs'; import Default from './tabs'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx index f25a216f95..aa2b4a091f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tabs/tabs.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tabs } 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/tag/closable.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx index deb04617e5..95e71c1843 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/closable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/tag/error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx index d26a8e3639..0fe8120097 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/tag/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts index 2d85282b55..4f9c1f29e1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import closable from './closable'; import error from './error'; import info from './info'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx index b3b2259724..ddb00b417e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/info.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/tag/multiTags.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx index 5a2f471b7f..29ab2ac1fa 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/multiTags.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/tag/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx index 22849fcdec..504063947f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/tag/tag.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx index c13303390f..3f2c8c0f68 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/tag.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Divider, Space, Tag, theme } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx index a2193d9c71..56f8d38f23 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tag/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tag } 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/timePicker/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts index 37503face1..dc6590cf5a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './time-picker'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx index e644f668db..a78da9a28f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timePicker/time-picker.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TimePicker } 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/timeline/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx index e808d121db..7942777843 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Timeline } 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/timeline/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts index 4a15010d9b..99ed473e92 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import success from './success'; import Default from './timeline'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx index 217397acc1..fb891443fe 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Timeline } 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/timeline/timeline.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx index 3543e3c741..16fcd609a4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/timeline/timeline.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Timeline } 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/tooltip/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts index 80c4f07c8e..c21786298d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Demo from './tooltip'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx index 7a31a099c9..4d0c74513c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tooltip/tooltip.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/transfer/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx index 4f2247de2c..bb68b47091 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transfer } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts index 67a662b8ad..cbdda7511d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/data.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const mockData: any[] = []; for (let i = 0; i < 20; i++) { mockData.push({ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx index b3fd8d46b0..854ddab011 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transfer } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts index 638849be25..cf0ca77f15 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import danger from './danger'; import disabled from './disabled'; import Default from './transfer'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx index 671c645eef..9f54e8fd1a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/transfer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transfer } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx index f3c9c3df40..e5ec6ac03d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/transfer/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transfer } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx index b0f73b99b3..030959e492 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tree } 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/tree/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts index 621ea3052b..de46f07463 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import disabled from './disabled'; import Demo from './tree'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx index 6412dfc10b..c63f0fb149 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/tree/tree.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tree } 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/treeSelect/disabled.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx index 5bfb0e16a0..0c8527a300 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/disabled.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TreeSelect as _TreeSelect } from 'antd'; import React, { useState } from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts index f71eea448e..0cdefdc558 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import disabled from './disabled'; import Default from './tree-select'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx index 739726f6e2..fb905065ad 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/treeSelect/tree-select.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TreeSelect as _TreeSelect } from 'antd'; import React, { useState } from 'react'; import type { ComponentDemo } from '../../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx index 26bb1cf7bd..3953476f07 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/Heading4.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx index 5154507095..1c86e22b9d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx index d36dfd7a4a..c7afd10a69 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Heading4 from './Heading4'; import error from './error'; import success from './success'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx index 3236d673de..f5253f4515 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/typography.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx index 6fce5e3e99..5563a1200d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typography.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/typographyFull.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx index 91a5df2a62..f962e88fd5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/typographyFull.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Divider, Typography } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx index 8a7eecbf02..8c503dcbb8 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/warningText.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx index aa1a2f0dee..d169f92044 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningText.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/typography/warningTitle.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx index 894ddb2127..62ca447d12 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/typography/warningTitle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { 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/upload/avatar.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx index c57a479f3e..2044831226 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/avatar.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { Upload } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx index df4c62fffc..79a518d21b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/danger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UploadOutlined } from '@ant-design/icons'; import { Button, Upload } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts index a685a3327e..30ec015cb3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import avatar from './avatar'; import danger from './danger'; import Default from './upload'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx index ab3a24ca78..08116be498 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-demos/upload/upload.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload, message } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx index 70e14f2cf5..0b929dda1d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CardProps } from 'antd'; import { Card } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx index 7ecddac628..fc50cfa90b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentDemoGroup.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ConfigProvider, Tooltip } from 'antd'; import classNames from 'classnames'; import type { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx index 1a50192fcd..20dcdde5f7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTokenDrawer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BuildOutlined, CarOutlined } from '@ant-design/icons'; import { ConfigProvider, Drawer, Empty, Tag, Tooltip, theme as antdTheme } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx index 39c6af46e4..6892e1812d 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/ComponentTree.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SearchOutlined } from '@ant-design/icons'; import { Badge, Input, Tree } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx index 57682bd3fb..c2f6f394bc 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/component-panel/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons'; import { Breadcrumb, Segmented, Switch } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx index fd29d5527a..db88a2cd67 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/hooks/useControlledTheme.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { DerivativeFunc } from '@ant-design/cssinjs'; import { theme as antTheme } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js index 1b0bacf397..1e43e29aa3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Arrow.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Arrow(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Brush.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index cfa57b2f28..bd910ffd2e 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Brush(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js index e69a5abd30..af2bfb6136 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Compact.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Compact(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js index 0a617c1086..af45588677 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Control.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Control(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Dark.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index 35819cc4ca..0bb53e1acf 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Dark(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Light.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index a6b205a5a8..eb786964a8 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Light(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Margin.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index 67af933352..141dd22a67 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Margin(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Motion.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index ca902fa83b..e51c539d74 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Motion(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/Pick.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index 6f15233766..42a50f961d 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function Pick(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js index 74a5b9f9aa..d50c2f5d23 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/SearchDropdown.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function SearchDropdown(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/ShapeLine.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; 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 index 6ccd5f7ee6..53a707007d 100644 --- 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 @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function ShapeLine(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts index a693093dad..4652d2830e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; declare const res: React.FC>; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js index 996cee0c85..c3d5fefcc1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/TokenPanel.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as React from 'react'; function TokenPanel(props) { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts index 2d9fac1414..e2c7bf184f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.d.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as Arrow } from './Arrow.js'; export { default as Brush } from './Brush.js'; export { default as CompactTheme } from './Compact.js'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js index 2d9fac1414..e2c7bf184f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/icons/index.js @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as Arrow } from './Arrow.js'; export { default as Brush } from './Brush.js'; export { default as CompactTheme } from './Compact.js'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx index bd8ca2c58a..0c248f74bf 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as PreviewDemo } from './PreviewDemo'; export type { PreviewDemoProps } from './PreviewDemo'; export { default as ThemeEditor } from './ThemeEditor'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts index eefa6dceb9..ef10627b1c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ThemeConfig } from '@nocobase/client'; import type { ReactElement } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx index bc5fde777a..0032c71247 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/context.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import type { Locale } from './interface'; import zhCN from './zh-CN'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts index af8160e2f8..09320df71a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Locale } from './interface'; const locale: Locale = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts index 3defd37d19..a7ce6d7e29 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/fr-FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Locale } from './interface'; const locale: Locale = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts index b800380a55..377159312a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { LocaleContext, useLocale } from './context'; export { default as enUS } from './en-US'; export type { Locale } from './interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx index 877d2a8dbc..be1c27e9a9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/interface.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export type Locale = { _lang: string; followPrimary: string; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts index d969874bdc..a974d7714c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { Locale } from './interface'; const locale: Locale = { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts index 52f2b90e99..bffe8de555 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/TokenRelation.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { AliasToken, MapToken, SeedToken } from 'antd/es/theme/interface'; import defaultMap from 'antd/es/theme/themes/default'; import seedToken from 'antd/es/theme/themes/seed'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts index 33ed910e43..04ec2621e6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { AliasToken } from '../interface'; import type { TokenTree } from './interface'; import { seedRelatedAlias, seedRelatedMap } from './TokenRelation'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts index b9dd300577..fc4dc5e2fb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as tokenCategory } from './category'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts index 0dfd8df718..08cb97a501 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ComponentTokenMap } from 'antd/es/theme/interface'; export interface TokenMeta { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx index 69955e4f1a..3bdd89b35c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Error.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Flexbox } from '@arvinxu/layout-kit'; import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx index d6614f9223..2b2fc3549c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Primary.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card, Space } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx index a339e547e0..a55160c3b7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Success.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx index e9bd6a9ea6..040fee8002 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/Warning.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Card } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts index 628e8317cf..202ae95922 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/overviews/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './Error'; export * from './Primary'; export * from './Success'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx index 6900d4e54f..c629ea706e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/previewer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Button, Layout, theme as antdTheme, message } from 'antd'; import classNames from 'classnames'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx index a547969d10..b2b375eb04 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/AliasPanel.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CaretRightOutlined, QuestionCircleOutlined, RightOutlined, ShrinkOutlined } from '@ant-design/icons'; import { Button, Collapse, Empty, Tooltip } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx index d94da0aa87..f7b749b8f1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/ComponentDemoPro.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ConfigProvider, Segmented, Space, theme as antdTheme } from 'antd'; import type { FC } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx index 68ab4bf94c..31f4705f86 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/InputNumberPlus.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InputNumber, Slider } from 'antd'; import type { FC } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx index cff835901a..cc16726011 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenContent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CaretRightOutlined, ExpandOutlined, QuestionCircleOutlined } from '@ant-design/icons'; import type { ThemeConfig } from '@nocobase/client'; import { StablePopover } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx index 4683910f32..4f3614e991 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenDetail.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tooltip } from 'antd'; import classNames from 'classnames'; import type { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx index 6c813515e5..c442bfc152 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/TokenPreview.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ThemeConfig } from 'antd/es/config-provider/context'; import type { FC } from 'react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts index e6c84a65b8..4ab61d831b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/calcCustomToken.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TinyColor } from '@ctrl/tinycolor'; const calcCustomToken = (name: string, value: any) => { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx index 660e878c1b..fc71f9f4ea 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Tabs } from 'antd'; import classNames from 'classnames'; import type { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx index 554ff480d7..583b2418e1 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CheckOutlined } from '@ant-design/icons'; import { Dropdown, Input, Menu, Switch, theme as antdTheme } from 'antd'; import classNames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx index a819884f4c..2424c189a4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-card/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { AlignLeftOutlined, BgColorsOutlined, diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx index 8a3a087eb1..5c40d9cd2f 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel/token-item/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CaretRightOutlined } from '@ant-design/icons'; import { Collapse, Space } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts index 9de015ffa0..59b5b3a3da 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/classifyToken.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { GlobalToken } from 'antd/es/theme/interface'; import type { TokenValue } from '../interface'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts index 9e0c888898..a2bd472811 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/deepUpdateObj.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const deepUpdateObj = (obj: any, path: string[], value: any): any => { if (path.length === 0) { return obj; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts index c90b4e3283..b66e5dfb8e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getColorBgImg.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + const getColorBgImg = (dark?: boolean) => { return dark ? 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACPTkDJAAAAZUlEQVRIDe2VMQoAMAgDa9/g/1/oIzrpZBCh2dLFkkoDF0Fz99OdiOjks+2/7S8fRRmMMIVoRGSoYzvvqF8ZIMKlC1GhQBc6IkPzq32QmdAzkEGihpWOSPsAss8HegYySNSw0hE9WQ4StafZFqkAAAAASUVORK5CYII=)' diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts index 917683e462..61aae364a5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getDesignToken.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ThemeConfig } from 'antd/es/config-provider/context'; import type { GlobalToken, MapToken } from 'antd/es/theme/interface'; import defaultMap from 'antd/es/theme/themes/default'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts index aa98af4dcc..4549d18251 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/getValueByPath.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default function getValueByPath(obj: any, path: string[]): any { if (!obj) { return undefined; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts index e43cdfca05..d3256ee028 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/isColor.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default function isColor(str: string) { return str.startsWith('rgb') || str.startsWith('#'); } diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx index 4bba1e6f04..c29baf6e3a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/makeStyle.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { CSSInterpolation } from '@ant-design/cssinjs'; import { useStyleRegister } from '@ant-design/cssinjs'; import { ConfigProvider, theme as antdTheme } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts index ff6e3f12fc..d303f2c067 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/utils/statistic.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import tokenStatistic from 'antd/es/version/token.json'; const tokenRelatedComponents: { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx index b8b503e524..e924608656 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/InitializeTheme.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defaultTheme as presetTheme, useAPIClient, useCurrentUserContext, useGlobalTheme } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; import { Spin } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx index d333a85c31..e139fe2b2e 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeCard.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DeleteOutlined, EditOutlined, EllipsisOutlined } from '@ant-design/icons'; import { compatOldTheme, useAPIClient, useCurrentUserContext, useGlobalTheme, useToken } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx index 19ad246a67..32990527e4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeEditorProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; const ThemeEditorContext = React.createContext<{ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx index 424e7c7fd4..7ca27eef1a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeList.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useToken } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; import { Space } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx index 8951840d0c..25fe966c46 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ThemeListProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ReturnTypeOfUseRequest, useRequest } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; import React, { createContext, useMemo } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx index 36ddc1a5dc..3d9f22b77b 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/ToEditTheme.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PlusOutlined } from '@ant-design/icons'; import { compatOldTheme, defaultTheme, useGlobalTheme, useToken } from '@nocobase/client'; import { App, Button, Space } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx index 75007bcdc3..60e2673f42 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/components/theme-editor/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, cx } from '@emotion/css'; import { createStyles, useAPIClient, useGlobalTheme } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx index 7f565ab7a2..bbfc376208 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useThemeSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SelectWithTitle, useAPIClient, useCurrentUserContext, useSystemSettings } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; import { MenuProps } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx index d4113928a4..a77dd00cb4 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/hooks/useUpdateThemeSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useAPIClient, useCurrentUserContext, useSystemSettings } from '@nocobase/client'; import { error } from '@nocobase/utils/client'; import { useCallback } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx index b196a2574c..d43cd299ee 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, createStyles, defaultTheme, useCurrentUserSettingsMenu, useGlobalTheme } from '@nocobase/client'; import { ConfigProvider } from 'antd'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts index 5528dddd84..fd65ab54b3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation as useT } from 'react-i18next'; export const NAMESPACE = 'theme-editor'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx index 1a432bf4ee..a0a84e9326 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromFunctionToString.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { theme as antdTheme } from 'antd'; import _ from 'lodash'; import { ThemeConfig } from '../../types'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx b/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx index 26f97be5a7..778d3de3d6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/utils/changeAlgorithmFromStringToFunction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + 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/@nocobase/plugin-theme-editor/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts index 43e80d385d..e21c27acc7 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ThemeItem } from '../types'; /** antd 默认主题 */ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts index 6e229d7be0..1c157dc3ca 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/collections/theme-config.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts index b68aea57f9..be989de7c3 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './plugin'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts index 446cdb0f7b..9a2cc9127c 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/202307250853-theme-editor.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; import { Migration } from '@nocobase/server'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts index 1931db8b56..fffc5344e9 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/migrations/20231210132610-add-default-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts index e21eb823bd..14d8926ecb 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/server/plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { InstallOptions, Plugin } from '@nocobase/server'; import path, { resolve } from 'path'; import { compact, compactDark, dark, defaultTheme } from './builtinThemes'; diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts index d1620519b9..f974b74dd5 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.2', info: { diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts index 0d4a752e6a..32bff76b0a 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/types.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import type { ThemeConfig as Config } from '@nocobase/client'; import type { ReactElement } from 'react'; export type ThemeConfig = Config; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts index a4e84f60ac..52dbe9d66b 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; class PluginUISchemaStorageClient extends Plugin { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts index 8a8327a7a2..b55b24919a 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; import { PluginUISchemaStorageServer } from './server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts index ff03c89a33..9b6f34b37b 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/action.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts index 964096a6f3..48f1922b4c 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/data.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { _isJSONSchemaObject: true, version: '2.0', diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts index d084c50817..546107415a 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/fixtures/simple-schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'root-name', 'x-uid': 'root', diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts index 4adcd35f0d..3c0650ecf7 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/migrations/20230330214649-filter-form-block.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Migration from '../../migrations/20230330214649-filter-form-block'; import { Database } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts index 7ba54d5e59..041edc4c33 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook-impl.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToManyRepository, Database } from '@nocobase/database'; import UiSchemaStoragePlugin, { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts index 7bffd92221..1cf1b4adda 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/server-hook.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/database'; import UiSchemaStoragePlugin, { UiSchemaRepository } from '@nocobase/plugin-ui-schema-storage'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts index 3ef246f16c..89dc21e885 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-model.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import { UiSchemaRepository } from '..'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts index 6b085f366b..f0e8f0c0be 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository-with-cache.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { Database } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts index 53b73202a5..b717398330 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema-repository.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Database } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import { SchemaNode } from '../dao/ui_schema_node_dao'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts index 59478e813b..8160016d25 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/__tests__/ui-schema.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/json-schema'; import { Database } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts index 9938a1002d..76e13d8eb0 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/actions/ui-schema-action.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context } from '@nocobase/actions'; import { ActionParams } from '@nocobase/resourcer'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts index bac2cf370f..14e82a3f26 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaServerHooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts index be05000911..880925b2e8 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTemplates.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts index 9504112fda..5614261b54 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemaTreePath.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts index 723147a15c..814f7df7cb 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/collections/uiSchemas.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts index 2bd6c6389c..c3bb53e566 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/dao/ui_schema_node_dao.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export interface TargetPosition { type: 'before' | 'after'; target: string; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/helper.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts index 14323dc3f8..5fcfd49ea9 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { PluginUISchemaStorageServer } 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/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts index 673df8f623..53113131b6 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230330214649-filter-form-block.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts index 4a4b9a1c5e..f958978b68 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509221649-association-select.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts index d3abc103d5..7a02526b81 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230509235247-record-picker.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts index 0ddddb418f..f39acbfbf2 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230510235247-form-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Schema } from '@formily/json-schema'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts index e401526ed6..7741ba4892 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20230522231231-association-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; 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/@nocobase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts index 1c86b57794..7b170dee16 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/migrations/20231015125000-support-filter-blocks-in-select-record-drawer.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + /* istanbul ignore file -- @preserve */ import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts index 63f9697307..256b8e4e96 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MagicAttributeModel } from '@nocobase/database'; import { HookType } from './server-hooks'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts index ea1a334a86..71e2a8a1ba 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/repository.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Cache } from '@nocobase/cache'; import { Repository, Transaction, Transactionable } from '@nocobase/database'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts index 65f85c9532..46da018132 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/bind-menu-to-role.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export async function bindMenuToRole({ schemaInstance, db, options }) { const { transaction } = options; const addNewMenuRoles = await db.getRepository('roles').find({ diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts index 6f886ca5c7..1d83681f86 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/factory.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { HookType } from '../index'; export function hookFactory(hookType: HookType, hookName: string, hookFunc) { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts index 432295eb09..340515612d 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { bindMenuToRole } from './bind-menu-to-role'; import { hookFactory } from './factory'; import { removeParentsIfNoChildren } from './remove-parents-if-no-children'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts index ed1be93d9b..f3e84af547 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-parents-if-no-children.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UiSchemaRepository } from '../../repository'; export async function removeParentsIfNoChildren({ schemaInstance, db, options, params }) { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts index c529a66471..8b560c92ef 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/hooks/remove-schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UiSchemaRepository } from '../../repository'; export async function removeSchema({ schemaInstance, options, db, params }) { diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts index 0a5635e193..f0b882d6fb 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database } from '@nocobase/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/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/model.ts index c95f4db131..8eff6b8bec 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/model.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server-hooks/model.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; export class ServerHookModel extends Model {} diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts index 3efed06462..b55743c6db 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MagicAttributeModel } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts index 05a89c23cb..034ed538e6 100644 --- a/packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-ui-schema-storage/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.2', info: { diff --git a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx index 3e5f434cba..2ca8aa6696 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect } from 'react'; import { Input, Row, Col, Button } from 'antd'; import { Password, useActionContext } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx b/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx index db0b56876f..61840d6335 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/RoleUsersManager.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useEffect, useMemo, useRef } from 'react'; import { App } from 'antd'; import { diff --git a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx b/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx index a9e2788658..3a5aae684c 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/UserRolesField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useField, Schema } from '@formily/react'; import { Field } from '@formily/core'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx b/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx index b1876aa88b..c5a3bb5dab 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx +++ b/packages/plugins/@nocobase/plugin-users/src/client/UsersManagement.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent, SchemaComponentContext, useSchemaComponentContext } from '@nocobase/client'; import React from 'react'; import { usersSchema } from './schemas/users'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts b/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts index 766fbec70a..c5956c2e0f 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/hooks.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionContext, useFilterFieldOptions, diff --git a/packages/plugins/@nocobase/plugin-users/src/client/index.ts b/packages/plugins/@nocobase/plugin-users/src/client/index.ts index 9929c22474..22b161cd2c 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, tval } from '@nocobase/client'; import { UsersManagement } from './UsersManagement'; import ACLPlugin from '@nocobase/plugin-acl/client'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/locale.ts b/packages/plugins/@nocobase/plugin-users/src/client/locale.ts index b4cdc0a0c6..8ab365958f 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/locale.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/locale.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export function useUsersTranslation() { diff --git a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts index 87467e6a54..25bf19fac2 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { useActionContext, useCollectionRecord, useRecord, useRequest } from '@nocobase/client'; import { useEffect } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-users/src/client/utils.ts b/packages/plugins/@nocobase/plugin-users/src/client/utils.ts index 1d2e844c5b..aedfe4f8e6 100644 --- a/packages/plugins/@nocobase/plugin-users/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-users/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const generatePassword = (length = 10) => { const uppercaseLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; const lowercaseLetters = 'abcdefghijklmnopqrstuvwxyz'; diff --git a/packages/plugins/@nocobase/plugin-users/src/index.ts b/packages/plugins/@nocobase/plugin-users/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-users/src/index.ts +++ b/packages/plugins/@nocobase/plugin-users/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts index 9ce676dae3..592a504947 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/actions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts index 9bfaccdab5..05e6b2d758 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/fields.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { Collection as DBCollection } from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts index fb7317af9b..8883f9f8fb 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/model.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { createMockServer, MockServer } from '@nocobase/test'; import { UserModel } from '../models/UserModel'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts index 5bb0589abf..5fdd261f02 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/role-users.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, Repository } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts index d856926c68..6a302d320e 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/__tests__/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { UserPluginConfig } from '../server'; export const userPluginConfig: UserPluginConfig = { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts b/packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts index be3ea0410c..1c475ba68b 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/actions/users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, DEFAULT_PAGE, DEFAULT_PER_PAGE, Next } from '@nocobase/actions'; import _ from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts b/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts index b584177c62..5eccf34a0c 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/collections/users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-users/src/server/index.ts b/packages/plugins/@nocobase/plugin-users/src/server/index.ts index 7125a31242..5ce572c582 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { name } from '../../package.json'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts index 8da957a8b4..a5780ac09c 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/en-US.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'The email is incorrect, please re-enter', 'Please fill in your email address': 'Please fill in your email address', diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts index d5c3193377..ef5994a5ca 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/es-ES.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { "The email is incorrect, please re-enter": "El correo electrónico es incorrecto, por favor vuelva a introducirlo", "Please fill in your email address": "Por favor, introduzca su dirección de correo electrónico", diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts index 4dfacf6b7c..2252b19b81 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/fr-FR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': "L'adresse e-mail est incorrecte, veuillez la saisir à nouveau", 'Please fill in your email address': 'Veuillez remplir votre adresse e-mail', diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts index 03bcd4fced..29e1be6c80 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as enUS } from './en-US'; export { default as zhCN } from './zh-CN'; export { default as ptBR } from './pt-BR'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts index 5af98b70f1..63406d55ce 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/ja-JP.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Please fill in your email address': 'メールアドレスを入力してください', 'The password is incorrect, please re-enter': 'パスワードが正しくありません。再度入力してください。', diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts index d6b5f77ec1..6da802d81d 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/pt-BR.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': 'O e-mail está incorreto, por favor, digite novamente', 'Please fill in your email address': 'Por favor, preencha o seu endereço de e-mail', diff --git a/packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts index a8650e64b8..dc3fe23d23 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'The email is incorrect, please re-enter': '邮箱有误,请重新输入', 'Please fill in your email address': '请填写邮箱', diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts index 770306b749..b338b6f2a8 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone-constraint.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts index 9eb68debde..6178105794 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20220818072639-add-users-phone.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class AddUsersPhoneMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts index f5977d2887..42c9e5259d 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username-constraint.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts index 4053d9753b..bb0ddc1a47 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802170800-add-username.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class AddUserNameMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts index 22db9bd39e..cf894cae3a 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230802183100-update-username.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class UpdateUserNameMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts index 01ce9656e2..b4dba1cabe 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20230908164036-update-username-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class UpdateUserNameInterfaceMigration extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240410152410-update-phone-interface.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240410152410-update-phone-interface.ts index fab2f71d5a..7a9cdc98dd 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240410152410-update-phone-interface.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240410152410-update-phone-interface.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240418101937-update-system-fields.ts b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240418101937-update-system-fields.ts index 1968e10f67..a7ccd91ba4 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240418101937-update-system-fields.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/migrations/20240418101937-update-system-fields.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts b/packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts index 93575c9dc1..0e0a8699db 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/models/UserModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; export class UserModel extends Model { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/server.ts b/packages/plugins/@nocobase/plugin-users/src/server/server.ts index 56f67317b3..f8339eb791 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/server.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Collection, Op } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; import { parse } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx b/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx index 79f5c842fd..f64fc71595 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx +++ b/packages/plugins/@nocobase/plugin-verification/src/client/ProviderOptions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { Field } from '@formily/core'; import { RecursionField, Schema, observer, useField, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx b/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx index 7c3690efa6..bbf8b9b1a2 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx +++ b/packages/plugins/@nocobase/plugin-verification/src/client/VerificationProviders.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaComponent } from '@nocobase/client'; import React from 'react'; import { Card } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx b/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx index 66766071f0..f7c2c481c3 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-verification/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import { VerificationProviders } from './VerificationProviders'; import { NAMESPACE } from './locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts index 7a79087b8d..74c437f61c 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts index bfd73ca57f..bbe4753a0c 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { Registry } from '@nocobase/utils/client'; import SMSAliyun from './sms-aliyun'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts index 4bd65067cd..e124ff484f 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-aliyun.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts index 4e9868780e..131cefe310 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/providerTypes/sms-tencent.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ISchema } from '@formily/react'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts index 0549ab362d..f87231e58d 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { uid } from '@formily/shared'; import { useActionContext, useRequest } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/index.ts b/packages/plugins/@nocobase/plugin-verification/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts index f2c2cb6599..6589949a52 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { Context } from '@nocobase/actions'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts index f99f7675df..685c5d7bbc 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/Plugin.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts index ab6dbdb8f8..d1aebf9708 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/collections/authors.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts index f2e469a9c8..1664d04ef7 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/__tests__/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer, createMockServer } from '@nocobase/test'; import path from 'path'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts index 62567dd8a4..37b642627f 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as verifications from './verifications'; function make(name, mod) { diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts b/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts index 816a7b813c..a3ed398ba8 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/actions/verifications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import actions, { Context, Next } from '@nocobase/actions'; import { Op } from '@nocobase/database'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts b/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts index c5c14182a5..416d8ed232 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts b/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts index 037503b4cd..2391868f7b 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/collections/verifications_providers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/constants.ts b/packages/plugins/@nocobase/plugin-verification/src/server/constants.ts index 5d4c030a85..f1cd537d01 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/constants.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const PROVIDER_TYPE_SMS_ALIYUN = 'sms-aliyun'; export const PROVIDER_TYPE_SMS_TENCENT = 'sms-tencent'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/index.ts b/packages/plugins/@nocobase/plugin-verification/src/server/index.ts index a15c2101f8..2ad1ba8bc3 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + // @ts-ignore import { name } from '../../package.json'; export { Interceptor, default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts b/packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts index e854ecb6ba..a5186b9a2e 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/locale/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default as zhCN } from './zh-CN'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts b/packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts index eb4a7b6c29..557e6103dc 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/locale/zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { 'Verification send failed, please try later or contact to administrator': '验证码发送失败,请稍后重试或联系管理员', 'Not a valid cellphone number, please re-enter': '不是有效的手机号,请重新输入', diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts b/packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts index 30a4beebe3..83c7117ae1 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/providers/Provider.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Plugin from '../Plugin'; export class Provider { diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts b/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts index bf07e5a7eb..ad10dd86fe 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/providers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Plugin from '../Plugin'; import { PROVIDER_TYPE_SMS_ALIYUN, PROVIDER_TYPE_SMS_TENCENT } from '../constants'; import { Provider } from './Provider'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts b/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts index 6a865f953c..1a3a7d9325 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-aliyun.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import DysmsApi, { SendSmsRequest } from '@alicloud/dysmsapi20170525'; import * as OpenApi from '@alicloud/openapi-client'; import { RuntimeOptions } from '@alicloud/tea-util'; diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts b/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts index 8649e72181..eb471c2a44 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/providers/sms-tencent.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as tencentcloud from 'tencentcloud-sdk-nodejs'; import { Provider } from './Provider'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx index 538fc704f1..63e4bfb0df 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/ActionTrigger.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts index 8c2024354c..41e4d877e3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { FormEventTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts index 279a03177d..7740a48112 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CreateWorkFlow, diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts index f7263e8acf..513b492cc1 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, SchemaInitializerItemType } from '@nocobase/client'; import WorkflowPlugin, { useRecordTriggerWorkflowsActionProps, diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts index 5854192357..0fc847a7a5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-action-trigger'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts index d271153126..4e787ce0e3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { get } from 'lodash'; import { BelongsTo, HasOne } from 'sequelize'; import { Model, modelAssociationByKey } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts index 1c03fb7bc4..a8949e49f5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts index 2b0e6a867d..47bb72c9a4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/__tests__/trigger.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts index 51251ce361..fdfcb4356c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx index 5d63cb5cd3..4c4a539730 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/AggregateInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { Cascader } from 'antd'; import React, { useCallback, useEffect, useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts index aca22522ac..24bf7bd1b5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { AggregateNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts index eae3ba7427..7e37e668b6 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts index 4c2c1a3e9d..8c556b49a2 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-aggregate'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts index f5d5fc79df..30cbe93243 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/AggregateInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseCollectionName } from '@nocobase/data-source-manager'; import { DataTypes } from '@nocobase/database'; import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts index e518083a4a..3993e98f7d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import WorkflowPlugin from '@nocobase/plugin-workflow'; import { Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts index 712822afa4..0efcc8bfcd 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx index e090964cf3..9ffcf50f5f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { InputNumber, Select } from 'antd'; import { css, useCompile, usePlugin } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts index 2a705c4746..cee0751258 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts index c8f617e676..c002b306f7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-delay'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts index 9d761bd5a4..a4d476a6a2 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/DelayInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import WorkflowPlugin, { Processor, Instruction, diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts index e4685b6c1b..c6c49bc685 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts index 1197183749..464d572cab 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx index 2e267c46f7..a5569fd2b7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicCalculation.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaInitializerItemType, Variable, useCollectionManager_deprecated } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx index 217bf661f3..71d36ad5bf 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/DynamicExpression.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFieldInputValueChange, onFormInitialValuesChange } from '@formily/core'; import { connect, mapReadPretty, observer, useField, useForm, useFormEffects } from '@formily/react'; import { Tag } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx index 25ebf8fccb..1e9402488c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/expression.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionFieldInterface, interfacesProperties } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts index 3441c008a3..c184491a6a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts index 42335720f7..9fe7ce2e87 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-dynamic-calculation'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts index 5b9d92ac78..00f493ec1e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/DynamicCalculation.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parse } from '@nocobase/utils'; import { FlowNodeModel, Instruction, JOB_STATUS, Processor } from '@nocobase/plugin-workflow'; import evaluators, { Evaluator } from '@nocobase/evaluators'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts index 3fd33dcf1a..4bc7f56546 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts index 5368f7af27..01a012fc03 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/collections/categories.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts index e18caf16fe..243a7830dd 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { MockDatabase } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts index 427dcbaebd..8f4e5b80f7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/expression-field.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BaseFieldOptions, DataTypes, Field } from '@nocobase/database'; export interface ExpressionFieldOptions extends BaseFieldOptions { diff --git a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-dynamic-calculation/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx index 505fc30558..1de609447a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/client/LoopInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ArrowUpOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts index be17207859..d3269903f5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts index 9cb8329df6..94ee93fc63 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-loop'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts index cf39993084..b40e949d98 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/LoopInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '@nocobase/plugin-workflow'; function getTargetLength(target) { diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts index 98dfb4a2b8..1c77bc422c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import { default as WorkflowPlugin } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts index 1c4f1002ad..a9a72e7322 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-loop/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx index bcc35bb91b..f2bd8cd60c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodo.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useField, useFieldSchema, useForm } from '@formily/react'; import { Space, Spin, Tag } from 'antd'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx index 18f3bcc95e..f257f14160 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/WorkflowTodoBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { TableOutlined } from '@ant-design/icons'; import React, { FC } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts index e69de29bb2..d3436f53a5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/assignees.test.ts @@ -0,0 +1,9 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts index c2a78f0ed7..e81d5d428c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts index 1c3f25bc25..6cccf7686d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts index 895c76ffe8..258f3548ea 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { AggregateNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts index f6d79970a0..fa62317d7c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts index a93881f5cc..1347ea99a9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts index 9832405e1c..05cd7d105c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx index 8a42b4a4c7..42e5c0f4ac 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/AssigneesSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { RemoteSelect, Variable } from '@nocobase/client'; import { useWorkflowVariableOptions } from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx index 19bd06e43a..b7615f07a6 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx index 001583f8f1..543bd32684 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/FormBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createForm } from '@formily/core'; import { useField, useFieldSchema } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx index 682755cac1..c466a19a03 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/ModeConfig.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { QuestionCircleOutlined } from '@ant-design/icons'; import { FormLayout } from '@formily/antd-v5'; import { Form, Radio, Tooltip } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx index 9d5554e1e8..704891f25a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/SchemaConfig.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { FormLayout } from '@formily/antd-v5'; import { createForm } from '@formily/core'; import { FormProvider, ISchema, Schema, useFieldSchema, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts index 98841991f0..19837a6b2d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/createManualFormBlockUISchema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createFormBlockSchema } from '@nocobase/client'; export function createManualFormBlockUISchema(options) { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx index 113193eebd..979a244121 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/create.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo, useState } from 'react'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx index 0fbdabb520..0f28d15546 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/custom.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useMemo, useState } from 'react'; import { ArrayTable } from '@formily/antd-v5'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx index 7aff33af85..48e6b5b2e9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/forms/update.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import React, { useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx index 7167e8e174..4c78cffaf8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializerItemType, useCollectionManager_deprecated, useCompile, usePlugin } from '@nocobase/client'; import WorkflowPlugin, { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts index 6ce1a9b524..e32ce024e7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/instruction/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function findSchema(schema, filter, onlyLeaf = false) { const result = []; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts index 735d9b449a..d01355e888 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-manual'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts index 998ac5a8cb..9e69687934 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/ManualInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Registry } from '@nocobase/utils'; import WorkflowPlugin, { Processor, JOB_STATUS, Instruction } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts index 96bf044b8e..12002dbff7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import actions from '@nocobase/actions'; import { HandlerType } from '@nocobase/resourcer'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/assignees.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/assignees.test.ts index d8b7015e18..ca986c1f33 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/assignees.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/assignees.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts index 1c73e2e435..ada24adda9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/categories.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts index 30494fae05..d13ca07de9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/comments.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts index 7e8e98db5d..73dfef96bf 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/posts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts index 46c877e443..4ab6844bb0 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/replies.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'replies', fields: [ diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts index 433688e1b6..abd194e964 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/collections/tags.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts index e92dc9cdb8..2831e8d333 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/data-source.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts index 9824bc6060..37d3422b4a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/form.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts index 8ea37def45..6acbd6b950 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/mode.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts index 1323bb09e1..fcb1b9b679 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/actions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, utils } from '@nocobase/actions'; import WorkflowPlugin, { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts index be6fbee6ca..46a9aef836 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/1-users_jobs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { defineCollection } from '@nocobase/database'; export default defineCollection({ diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts index 4f8679316e..21aa49c44f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/2-jobs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts index 6e8c0362a5..94f0377c24 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/collections/3-users.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { extendCollection } from '@nocobase/database'; export default extendCollection({ diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts index 9afc9b7607..7c8d5bb896 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/create.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor } from '@nocobase/plugin-workflow'; import ManualInstruction from '../ManualInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts index 2648db4549..ba767fd059 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor } from '@nocobase/plugin-workflow'; import ManualInstruction from '../ManualInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts index 83adfe3b89..5a807a9f40 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/forms/update.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor } from '@nocobase/plugin-workflow'; import ManualInstruction from '../ManualInstruction'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts index ebb4f86056..a0d779846d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20240325213145-fix-schema.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; function findSchema(root, filter, onlyLeaf = false) { diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx index ff81623b48..1a72976203 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/ParallelInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; import { Button, Tooltip } from 'antd'; import { PlusOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts index 89421bd759..edc03743cc 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts index 930e0c71f1..df5cae5cf8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts index 5bc45d6429..3a313fcb0b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-parallel'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts index 938be32b14..5c0b7144d1 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor, Instruction, JOB_STATUS, FlowNodeModel, JobModel } from '@nocobase/plugin-workflow'; export const PARALLEL_MODE = { diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts index 327020117f..c5bc1adfca 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts index 01de43a8b0..38b63638db 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx index 836e40f417..784da4a239 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts index 6667a51983..49884e8099 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts index 2726967b40..f8c3f063b9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = 'workflow-request'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts index 2c79ad4e54..670e63688a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts index d337fb9777..de20689008 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/server/RequestInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import axios, { AxiosRequestConfig } from 'axios'; import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts index 61f5892801..52afd5f2f8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Server } from 'http'; import jwt from 'jsonwebtoken'; import Koa from 'koa'; diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx index 63ae601c89..90a2f5f512 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/SQLInstruction.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DEFAULT_DATA_SOURCE_KEY, css } from '@nocobase/client'; import { Instruction, WorkflowVariableRawTextArea, defaultFieldNames } from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts index 3f916c33d6..7264c53fe5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts index d8b01547c6..e5d24dfba0 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; import WorkflowPlugin from '@nocobase/plugin-workflow/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts index 5cbbb5bab5..e4466d0c3e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useTranslation } from 'react-i18next'; export const NAMESPACE = '@nocobase/plugin-workflow-sql'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts index 6cafd98bbf..d211da43bc 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/server'; import WorkflowPlugin from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts index d47a0bfbb7..8adb390374 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/SQLInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Processor, Instruction, JOB_STATUS, FlowNodeModel } from '@nocobase/plugin-workflow'; export default class extends Instruction { diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts index 39bb2acb49..723dde4210 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/__tests__/instruction.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database, { fn } from '@nocobase/database'; import { Application } from '@nocobase/server'; import { EXECUTION_STATUS, JOB_STATUS } from '@nocobase/plugin-workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts index 3b60b3bee9..90811e8850 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/server/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts index 30c93b8ab1..9be4deb4fc 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin } from '@nocobase/client'; export default class extends Plugin {} diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts index 687b64c8d9..10709e0ae7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eCollectionModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { dayjs } from '@nocobase/utils'; import { lowerCase } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts index 8f744651a9..ffcfa10d50 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2ePageObjectModel.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Locator, Page } from '@nocobase/test/e2e'; export class CreateWorkFlow { readonly page: Page; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts index 4d39877ebb..1cda17fc9b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { request, Page } from '@nocobase/test/e2e'; const PORT = process.env.APP_PORT || 20000; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts index 726e40a739..96ca417c61 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './e2eCollectionModel'; export * from './e2ePageObjectModel'; export { default } from './e2ePageObjectModel'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts index 1c73e2e435..ada24adda9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/categories.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts index 30494fae05..d13ca07de9 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/comments.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts index 7e8e98db5d..73dfef96bf 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/posts.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts index 46c877e443..4ab6844bb0 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/replies.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { name: 'replies', fields: [ diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts index 433688e1b6..abd194e964 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/collections/tags.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts index f5765c7e56..2d90155582 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/functions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { no1: () => 1, }; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts index 85116ef5b4..e292352e98 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import { ApplicationOptions, Plugin } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts index f92f077961..772bb68e1b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/instructions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { lodash } from '@nocobase/utils'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts index 844e125b91..5406606dba 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { syncTrigger: class { constructor(public readonly workflow) {} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx index 410565939e..48b93cb2ac 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback, useMemo } from 'react'; import { Button, Dropdown, MenuProps } from 'antd'; import { PlusOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx index 4b1b488c2e..35b44040a4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/Branch.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { CloseOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx index 13a984f9a7..fbb8cd2bf9 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/CanvasContent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Alert, Slider } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx index 3383bae5c5..da1923f6a5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionCanvas.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback, useEffect, useState } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { Breadcrumb, Button, Dropdown, message, Modal, Result, Space, Spin, Tag, Tooltip } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx index c89274893c..35904b1560 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionContextProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { SchemaComponentOptions, usePlugin } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx index 922d804a58..ad31191821 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionLink.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx index e49ee00adf..0726a290d4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx, SchemaComponent } from '@nocobase/client'; import React from 'react'; import { useParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx index 5bf24ad5b8..b7799d5d2d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/ExecutionResourceProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ResourceActionProvider, useRecord } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx index 0c4eb3cd57..78d44e704c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/FlowContext.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext } from 'react'; export const FlowContext = React.createContext({}); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx index 6603c6c309..d9b7aaf57c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowCanvas.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Link, useNavigate } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx index 16cb9e8885..fbc8b16029 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowLink.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx index 8def8f4413..f18e210a71 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPage.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { cx, SchemaComponent } from '@nocobase/client'; import React from 'react'; import { useParams } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx index 7e80f69562..45513e2e20 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/WorkflowPane.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useContext, useEffect } from 'react'; import { Card, Tooltip } from 'antd'; import { onFieldChange } from '@formily/core'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts index 5da945bf48..218a3b5cdd 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ScheduleTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts index f3ccd73027..3f3471f3b9 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CreateWorkFlow, EditWorkFlow, apiCreateWorkflow, apiDeleteWorkflow } from '@nocobase/plugin-workflow-test/e2e'; import { expect, test } from '@nocobase/test/e2e'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts index 3aae8f6ae7..7821397e66 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { AggregateNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts index 710d97b1e6..47944c53c5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { AggregateNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts index c74c1310b9..3041affd0e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts index 099fc67c33..d04d444e4e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts index 98d7379e07..feda6c9ae6 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts index 74caa9a8ed..a560b8b304 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts index f456e8b4e1..0a7015a0fa 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts index 8713a3b1bf..25ab90da07 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts index 3a917faf5d..ea4a465fcf 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts index d4947b87cb..0ad846db04 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { ClculationNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts index 21cdb3de6a..6b512c94dc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts index c43bb7018e..efde90609b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts index 2ef724a9a1..09a8b792cc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts index ebbcd1c2ef..244f768337 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts index 9fb74ace6e..4ad0cb950d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { faker } from '@faker-js/faker'; import { CollectionTriggerNode, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx index 32af5ee7f6..ee739050b7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CheckboxGroupWithTooltip.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { QuestionCircleOutlined } from '@ant-design/icons'; import { css, useCompile } from '@nocobase/client'; import { Checkbox, Space, Tooltip } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx index 424cc8f98b..089cdaa223 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionBlockInitializer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { uid } from '@formily/shared'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx index 3c9d7bd3a5..8412f2faff 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/CollectionFieldset.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleOutlined, PlusOutlined } from '@ant-design/icons'; import { observer, useField, useForm } from '@formily/react'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx index b378de71c7..07e5bb37e6 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DetailsBlockProvider.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useMemo, useRef } from 'react'; import { createForm } from '@formily/core'; import { useField } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx index 23aa425f60..ef27cb9dd5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerDescription.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles, cx } from '@nocobase/client'; import { Tag } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx index a48c6f76f1..b6ebc75f47 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/DrawerForm.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback, useMemo, useState } from 'react'; import { cloneDeep } from 'lodash'; import { createForm } from '@formily/core'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx index 148e10ffc4..7d2965b686 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback } from 'react'; import { Button, Modal, Select, Tag, Tooltip, message } from 'antd'; import { ExclamationCircleFilled, StopOutlined } from '@ant-design/icons'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx index c8b684e96e..30494e7513 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/FieldsSelect.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { observer, useForm } from '@formily/react'; import { Select } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx index 5706f27d48..5dffedd14c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/FilterDynamicComponent.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Variable } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx index 7b2506dffe..49d4991666 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/OpenDrawer.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useState } from 'react'; import { useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx index 9663d13283..29cf39b3a4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { QuestionCircleOutlined } from '@ant-design/icons'; import { css, useCompile } from '@nocobase/client'; import { Radio, Space, Tooltip } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx index e724d3ad2f..5b4014a910 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/SimpleDesigner.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { useFieldSchema } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx index 1651f367f3..a2665f214c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/StatusButton.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Button, Tag } from 'antd'; import classnames from 'classnames'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/TriggerOptionRender.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/TriggerOptionRender.tsx index baddf76ec0..e56db2c225 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/TriggerOptionRender.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/TriggerOptionRender.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Space, Tag, Typography } from 'antd'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx index 5362859f95..3b46b23c34 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ValueBlock.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { css, SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from '@nocobase/client'; import { parse } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts index 46bcfaebc1..e2653ed999 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './CollectionBlockInitializer'; export * from './DetailsBlockProvider'; export * from './FieldsSelect'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx index 351a8e3cdf..0382c8746c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/renderEngineReference.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css, i18n } from '@nocobase/client'; import { evaluators } from '@nocobase/evaluators/client'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx index 3300682bf3..e45b2410fc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/constants.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { CloseOutlined, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts index d4291040f3..c43c8733bc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './useGetAriaLabelOfAddButton'; export * from './useTriggerWorkflowActionProps'; export * from './useWorkflowExecuted'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts index 5fa3a94afd..5e1c32a399 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useGetAriaLabelOfAddButton.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCallback } from 'react'; export const useGetAriaLabelOfAddButton = ( diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useRefreshActionProps.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useRefreshActionProps.ts index b255a2f9cd..06dfd74198 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useRefreshActionProps.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useRefreshActionProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useResourceActionContext } from '@nocobase/client'; export function useRefreshActionProps() { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts index 9d5ddaa829..96ee15d725 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useTriggerWorkflowActionProps.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useNavigate } from 'react-router-dom'; import { App, message } from 'antd'; import { useField, useFieldSchema, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts index e69ebd0c12..afeff2b607 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/hooks/useWorkflowExecuted.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFlowContext } from '../FlowContext'; export function useWorkflowExecuted() { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx index e6a35a9465..1af7d72668 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Plugin } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts index 4e50acef9c..b798eb0643 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/locale/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { i18n } from '@nocobase/client'; import { useTranslation } from 'react-i18next'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx index 31494a4732..3e06b505e5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/calculation.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializerItemType } from '@nocobase/client'; import { Evaluator, evaluators, getOptions } from '@nocobase/evaluators/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx index 97616a0260..af852b8c0a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/condition.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseCircleOutlined } from '@ant-design/icons'; import { css, cx, useCompile, Variable } from '@nocobase/client'; import { evaluators } from '@nocobase/evaluators/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx index d3a0c0e287..0bdffcf994 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/create.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializerItemType, useCollectionDataSource, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx index 4dd404d31e..b318acc57c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/destroy.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useCollectionDataSource } from '@nocobase/client'; import { isValidFilter } from '@nocobase/utils/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx index 160fcaeebc..614cf69240 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/end.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Instruction } from '.'; import { NAMESPACE } from '../locale'; import { JOB_STATUS } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx index 5db33d02be..921d3e3b1d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CloseOutlined, DeleteOutlined } from '@ant-design/icons'; import { createForm } from '@formily/core'; import { ISchema, useForm } from '@formily/react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx index d86a94b392..957bf1906f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/query.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { ArrayItems } from '@formily/antd-v5'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx index f682ff282e..f8c2e9f29e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useField, useForm } from '@formily/react'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts index a7fdaa8707..a52dcaee6f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useForm } from '@formily/react'; import { css, parseCollectionName, useCollectionFilterOptions } from '@nocobase/client'; import { NAMESPACE } from '../locale'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx index f1c13001be..7951fbea44 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/executions.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ISchema } from '@formily/react'; import { Link } from 'react-router-dom'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts index 0b01456cd0..31d1184818 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { ISchema, useForm } from '@formily/react'; import { useActionContext, useRecord, useResourceActionContext, useResourceContext } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx index 2576ea9cc5..af1439d656 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/settings/customizeSubmitToWorkflowActionSettings.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { useFieldSchema } from '@formily/react'; import { isValid } from '@formily/shared'; import { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx index c2ed96e9d1..23ddaf00b0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { createStyles } from '@nocobase/client'; const useStyles = createStyles(({ css, token }) => { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx index 50dff1d04c..11e2908cb9 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/collection.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializerItemType, useCollectionDataSource, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx index 6fc255b7d7..8bf1c79628 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { Button, Input, Tag, message } from 'antd'; import { cloneDeep } from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx index 6d2fff3273..40c455affe 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/EndsByField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { DatePicker, Select } from 'antd'; import dayjs from 'dayjs'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx index 7ed5197c13..6d6de7f130 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/OnField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { InputNumber, Select } from 'antd'; import React, { useState } from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx index fabcbee5b4..2036a1196c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/RepeatField.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { css } from '@nocobase/client'; import { InputNumber, Select } from 'antd'; import React from 'react'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx index 7cd999c88f..e10aca2cf3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/ScheduleConfig.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { onFieldValueChange } from '@formily/core'; import { useForm, useFormEffects, ISchema } from '@formily/react'; import { css, SchemaComponent } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts index 28d2f59b77..319f7a819a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const SCHEDULE_MODE = { STATIC: 0, DATE_FIELD: 1, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx index ad5c1edf7d..d1ba09ce79 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/index.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { SchemaInitializerItemType, useCollectionDataSource, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts index b8e496cc18..d72f9b3558 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/triggers/schedule/locale/Cron.zh-CN.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { everyText: '每', emptyMonths: '每月', diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts index 355888bb11..2577eb2b7f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export function linkNodes(nodes): void { const nodesMap = new Map(); nodes.forEach((item) => nodesMap.set(item.id, item)); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx index db1abeeba2..ddf786e2bf 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/variable.tsx @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import React from 'react'; import { Variable, parseCollectionName, useCompile, usePlugin } from '@nocobase/client'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/index.ts index 7e74612df8..be99a2ff1a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/index.ts @@ -1,2 +1,11 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './server'; export { default } from './server'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts index 9b4cde69c2..f71c2adbf5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import path from 'path'; import LRUCache from 'lru-cache'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts index c9e997d386..ecbb88d4ff 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Processor.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Transaction, Transactionable } from '@nocobase/database'; import { appendArrayColumn } from '@nocobase/evaluators'; import { Logger } from '@nocobase/logger'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts index 6483429806..3322baa647 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Plugin.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts index 53a209a319..3e6b20e94e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/Processor.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockDatabase } from '@nocobase/database'; import { MockServer } from '@nocobase/test'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts index 5cc9b2210f..56ce16c6c5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/executions.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts index 1c2d806647..45ee5f3c3f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/nodes.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts index 50bc92abca..8a0018c1f1 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/actions/workflows.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts index e9ed0c5f9f..d552ec9c93 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/calculation.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts index f42ea76951..1889a3459b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/condition.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Database from '@nocobase/database'; import { Application } from '@nocobase/server'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts index 16b77cd153..db67c99631 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/create.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts index b3fbae436c..7e74ee2123 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/destroy.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts index 2474d32c78..1ffc5df05d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/end.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts index 5366e1fcbe..a22b3362dd 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/query.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application } from '@nocobase/server'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts index db5ac49537..b850665153 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/instructions/update.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockDatabase } from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts index e8ca8f52a6..7b25211d38 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/collection.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockDatabase } from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; import { MockServer } from '@nocobase/test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts index 41c38df1e4..b8e1170a2a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-date-field.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; import { getApp, sleep } from '@nocobase/plugin-workflow-test'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts index 8be1efcefa..ef0cce22f7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/__tests__/triggers/schedule/mode-static.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { scryptSync } from 'crypto'; import { MockServer } from '@nocobase/test'; import Database from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts index 9ed81cb200..842daa7e3a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/executions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import actions, { Context } from '@nocobase/actions'; import { Op } from '@nocobase/database'; import { EXECUTION_STATUS, JOB_STATUS } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts index 3f1fb5da3f..2c4d9e1bbc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import * as workflows from './workflows'; import * as nodes from './nodes'; import * as executions from './executions'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts index 82bb32122a..1c635b0606 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/nodes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Context, utils } from '@nocobase/actions'; import { MultipleRelationRepository, Op, Repository } from '@nocobase/database'; import type { WorkflowModel } from '../types'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts index f6bf94d75b..27932f44f7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import actions, { Context, utils } from '@nocobase/actions'; import { Op, Repository } from '@nocobase/database'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts index c46d0bfe27..503c8e079b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/executions.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts index ffb70cf1d3..e68e4d837f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/flow_nodes.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts index bb2deeb5ed..891b0ea8a8 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/jobs.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts index 64465ad952..0cd5abfa4f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/collections/workflows.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { CollectionOptions } from '@nocobase/database'; export default function () { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts index 5195bd7247..de0244ffef 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/constants.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const EXECUTION_STATUS = { QUEUEING: null, STARTED: 0, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts index ec0de60f30..48a596a4f5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/functions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Plugin from '..'; import type { ExecutionModel, FlowNodeModel } from '../types'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/index.ts index 5a5c6f40a3..9403e535eb 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export * from './utils'; export * from './constants'; export * from './instructions'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts index b790c5fb7b..6512cc4a3b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CalculationInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Evaluator, evaluators } from '@nocobase/evaluators'; import { parse } from '@nocobase/utils'; import { Instruction } from '.'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts index fb84f92e03..ab40352377 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/ConditionInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { evaluators } from '@nocobase/evaluators'; import { Registry } from '@nocobase/utils'; import { Instruction } from '.'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts index 6173bb393d..84be0cfa38 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/CreateInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseCollectionName } from '@nocobase/data-source-manager'; import { JOB_STATUS } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts index a93e486175..fea1104c59 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/DestroyInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseCollectionName } from '@nocobase/data-source-manager'; import { Instruction } from '.'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts index f0cd103d39..90abe18fdc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/EndInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import Instruction from '.'; import Processor from '../Processor'; import { JOB_STATUS } from '../constants'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts index 332aceb1e6..9a3096fcf4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/QueryInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DEFAULT_PAGE, DEFAULT_PER_PAGE, utils } from '@nocobase/actions'; import { parseCollectionName } from '@nocobase/data-source-manager'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts index 95e352d3d3..953d3ee9b3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/UpdateInstruction.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { parseCollectionName } from '@nocobase/data-source-manager'; import type Processor from '../Processor'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts index b8a08c97d6..bd208b4ce0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/instructions/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transactionable } from '@nocobase/database'; import type Plugin from '../Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts index 3d38146d59..5cb9909999 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20221129153547-calculation-variables.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; const VTypes = { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts index b76d75f7e1..55667ae5c3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221032941-change-request-body-type.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; const EJS_RE = /"?<%=\s*(ctx|node)([\w\.\[\]-]+)\s*.*%>"?/; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts index 299ff9bc77..2d3a102885 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221071831-calculation-expression.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; function addQuote(v) { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts index cf957ddc6d..7672cf501e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221121203-condition-calculation.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; const calculatorsMap = { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts index f988698106..fb36a2850c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230221162902-jsonb-to-json.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { DataTypes } from '@nocobase/database'; import { Migration } from '@nocobase/server'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts index ad5d59f435..d2905db453 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230411034722-manual-multi-form.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { uid } from '@nocobase/utils'; import lodash from 'lodash'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts index e1e97cddc4..6ce114e310 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230612021134-manual-collection-block.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { uid } from '@nocobase/utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts index 230215bebc..c2613124d8 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230710115902-manual-action-values.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; function findSchema(root, filter, onlyLeaf = false) { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts index 5b58d0e59e..6d8b4f748f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20230809113132-workflow-options.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts index 44a6bd94e4..be36104b93 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231024172342-add-node-key.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; import { uid } from '@nocobase/utils'; import { DataTypes } from 'sequelize'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts index 298c0f4ff2..5be4c7cc4e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20231122143143-split-to-plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts index 2287eb21d8..ff718b6011 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/migrations/20240115220721-add-node-key-to-job.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts index b891dfd150..44f28797f5 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/CollectionTrigger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model, Transactionable } from '@nocobase/database'; import Trigger from '.'; import { toJSON } from '../utils'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts index 1340ce2690..ce300642b3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { fn, literal, Op, Transactionable, where } from '@nocobase/database'; import parser from 'cron-parser'; import type Plugin from '../../Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts index 13436660df..7e1771db62 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/StaticScheduleTrigger.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import parser from 'cron-parser'; import type Plugin from '../../Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts index 7f11b42ab1..d233654339 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transactionable } from 'sequelize'; import Trigger from '..'; import type Plugin from '../../Plugin'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts index b13a5a6eeb..d36ebe9928 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const SCHEDULE_MODE = { STATIC: 0, DATE_FIELD: 1, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts index 1737c3c90f..d8c17222aa 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Transactionable } from '@nocobase/database'; import type Plugin from '../Plugin'; import type { WorkflowModel } from '../types'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts index 52db181e0d..c6fec16339 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Execution.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToGetAssociationMixin, Database, HasManyGetAssociationsMixin, Model } from '@nocobase/database'; import JobModel from './Job'; import WorkflowModel from './Workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts index dc080baf44..8d447072ba 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/types/FlowNode.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToGetAssociationMixin, Database, Model } from '@nocobase/database'; import WorkflowModel from './Workflow'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts index f97380a731..83465df43f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Job.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { BelongsToGetAssociationMixin, Model } from '@nocobase/database'; import FlowNodeModel from './FlowNode'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts index 2171779e44..4a184eff57 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/types/Workflow.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Database, HasManyCountAssociationsMixin, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts index 247248e3e0..60d0e48ec4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/types/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export type { default as WorkflowModel } from './Workflow'; export type { default as FlowNodeModel } from './FlowNode'; export type { default as ExecutionModel } from './Execution'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts index aa41be5575..212a3e6b37 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/utils.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Model } from '@nocobase/database'; export function toJSON(data: any): any { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts index 1073d2f194..f52868250e 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/swagger/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export default { openapi: '3.0.2', info: { diff --git a/packages/presets/nocobase/src/client/index.ts b/packages/presets/nocobase/src/client/index.ts index 96555ff7ae..933c2f4c6f 100644 --- a/packages/presets/nocobase/src/client/index.ts +++ b/packages/presets/nocobase/src/client/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Application, NocoBaseBuildInPlugin, Plugin } from '@nocobase/client'; function offsetToTimeZone(offset) { diff --git a/packages/presets/nocobase/src/index.ts b/packages/presets/nocobase/src/index.ts index 7ddad58145..c251dd8671 100644 --- a/packages/presets/nocobase/src/index.ts +++ b/packages/presets/nocobase/src/index.ts @@ -1 +1,10 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export { default } from './server'; diff --git a/packages/presets/nocobase/src/server/__tests__/migrations/pro-plugins-detect.test.ts b/packages/presets/nocobase/src/server/__tests__/migrations/pro-plugins-detect.test.ts index 8af533e1eb..2900569f64 100644 --- a/packages/presets/nocobase/src/server/__tests__/migrations/pro-plugins-detect.test.ts +++ b/packages/presets/nocobase/src/server/__tests__/migrations/pro-plugins-detect.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import Migration from '../../migrations/20240424125531-pro-plugins-detect'; diff --git a/packages/presets/nocobase/src/server/__tests__/migrations/rename.test.ts b/packages/presets/nocobase/src/server/__tests__/migrations/rename.test.ts index ce6ec55f92..407d4589b0 100644 --- a/packages/presets/nocobase/src/server/__tests__/migrations/rename.test.ts +++ b/packages/presets/nocobase/src/server/__tests__/migrations/rename.test.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Repository } from '@nocobase/database'; import { MockServer, createMockServer } from '@nocobase/test'; import Migration from '../../migrations/20240424131556-rename'; diff --git a/packages/presets/nocobase/src/server/index.ts b/packages/presets/nocobase/src/server/index.ts index bfd5be1af7..2e1fcae9d7 100644 --- a/packages/presets/nocobase/src/server/index.ts +++ b/packages/presets/nocobase/src/server/index.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Plugin, PluginManager } from '@nocobase/server'; import _ from 'lodash'; diff --git a/packages/presets/nocobase/src/server/migrations/20230829160015-set-audit-local.ts b/packages/presets/nocobase/src/server/migrations/20230829160015-set-audit-local.ts index 0a79d33f17..1c6d2726b8 100644 --- a/packages/presets/nocobase/src/server/migrations/20230829160015-set-audit-local.ts +++ b/packages/presets/nocobase/src/server/migrations/20230829160015-set-audit-local.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class SetAuditPluginAsLocalMigration extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20230829160015-set-charts-local.ts b/packages/presets/nocobase/src/server/migrations/20230829160015-set-charts-local.ts index 8e7bfde97c..fc2fcbb49b 100644 --- a/packages/presets/nocobase/src/server/migrations/20230829160015-set-charts-local.ts +++ b/packages/presets/nocobase/src/server/migrations/20230829160015-set-charts-local.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240106014312-update-plugins.ts b/packages/presets/nocobase/src/server/migrations/20240106014312-update-plugins.ts index 42de45025b..6e559ccf59 100644 --- a/packages/presets/nocobase/src/server/migrations/20240106014312-update-plugins.ts +++ b/packages/presets/nocobase/src/server/migrations/20240106014312-update-plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240106090440-remove-unused-plugins.ts b/packages/presets/nocobase/src/server/migrations/20240106090440-remove-unused-plugins.ts index 8fb050353b..07cfd25d7d 100644 --- a/packages/presets/nocobase/src/server/migrations/20240106090440-remove-unused-plugins.ts +++ b/packages/presets/nocobase/src/server/migrations/20240106090440-remove-unused-plugins.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240116154734-remove-sample-hello.ts b/packages/presets/nocobase/src/server/migrations/20240116154734-remove-sample-hello.ts index 9d9f2edfee..7054615c95 100644 --- a/packages/presets/nocobase/src/server/migrations/20240116154734-remove-sample-hello.ts +++ b/packages/presets/nocobase/src/server/migrations/20240116154734-remove-sample-hello.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240307184120-set-sms-local.ts b/packages/presets/nocobase/src/server/migrations/20240307184120-set-sms-local.ts index 21df38adf0..2803f367fd 100644 --- a/packages/presets/nocobase/src/server/migrations/20240307184120-set-sms-local.ts +++ b/packages/presets/nocobase/src/server/migrations/20240307184120-set-sms-local.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts b/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts index 83ddb9bb3a..6490bdec26 100644 --- a/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts +++ b/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/migrations/20240424125531-pro-plugins-detect.ts b/packages/presets/nocobase/src/server/migrations/20240424125531-pro-plugins-detect.ts index 5e8b2b14ff..8a47633494 100644 --- a/packages/presets/nocobase/src/server/migrations/20240424125531-pro-plugins-detect.ts +++ b/packages/presets/nocobase/src/server/migrations/20240424125531-pro-plugins-detect.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration, PluginManager } from '@nocobase/server'; import { getAutoDeletePluginsWarning, getNotExistsEnabledPluginsError } from '../wording'; diff --git a/packages/presets/nocobase/src/server/migrations/20240424131556-rename.ts b/packages/presets/nocobase/src/server/migrations/20240424131556-rename.ts index a4c4b36f6c..6b3fc72ac8 100644 --- a/packages/presets/nocobase/src/server/migrations/20240424131556-rename.ts +++ b/packages/presets/nocobase/src/server/migrations/20240424131556-rename.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + import { Migration } from '@nocobase/server'; export default class extends Migration { diff --git a/packages/presets/nocobase/src/server/wording.ts b/packages/presets/nocobase/src/server/wording.ts index 2aee9311c0..e38d218fa2 100644 --- a/packages/presets/nocobase/src/server/wording.ts +++ b/packages/presets/nocobase/src/server/wording.ts @@ -1,3 +1,12 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + export const getAutoDeletePluginsWarning = (plugins: string[]) => { return `The following plugins have been automatically removed from the database as they no longer exist and are not enabled: ${plugins.join( ',',