refactor: @hera/plugin-core @tachybase/schema, remove unused plugin-charts (#887)
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#887
This commit is contained in:
parent
d3a1a8c98e
commit
8c156c35d2
@ -30,4 +30,5 @@ storage
|
||||
benchmark
|
||||
packages/core/cli/src
|
||||
packages/core/cli/bin
|
||||
t.js
|
||||
# temp
|
||||
packages/plugins/@hera/plugin-core/src/client/features/departments/index.tsx
|
||||
|
@ -3,8 +3,3 @@
|
||||
TachyCode is a scalability-first, open-source no-code development platform.
|
||||
|
||||
It is based on the last Apache version fork of the open-source NocoBase.
|
||||
|
||||
## License
|
||||
|
||||
- [Core packages](https://github.com/nocobase/nocobase/tree/main/packages/core) are [Apache 2.0 licensed](./LICENSE-APACHE-2.0).
|
||||
- [Plugins packages](https://github.com/nocobase/nocobase/tree/main/packages/plugins) are [AGPL 3.0 licensed](./LICENSE-AGPL).
|
@ -96,8 +96,8 @@
|
||||
"@formily/reactive-react": "2.2.27",
|
||||
"@formily/shared": "2.2.27",
|
||||
"@formily/validator": "2.2.27",
|
||||
"@types/node": "^20.12.2"
|
||||
"@types/node": "^20.12.2",
|
||||
"dayjs": "1.11.10"
|
||||
}
|
||||
}
|
||||
},
|
||||
"licenses": "Apache-2.0"
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ const external = [
|
||||
'@nocobase/logger',
|
||||
'@nocobase/resourcer',
|
||||
'@nocobase/sdk',
|
||||
'@nocobase/schema',
|
||||
'@tachybase/schema',
|
||||
'@nocobase/server',
|
||||
'@nocobase/test',
|
||||
'@nocobase/utils',
|
||||
@ -124,7 +124,7 @@ const external = [
|
||||
'china-division',
|
||||
];
|
||||
const pluginPrefix = (
|
||||
process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@nocobase/plugin-pro-,@hera/plugin-'
|
||||
process.env.PLUGIN_PACKAGE_PREFIX || '@nocobase/plugin-,@tachybase/preset-,@tachybase/plugin-,@hera/plugin-'
|
||||
).split(',');
|
||||
|
||||
const target_dir = 'dist';
|
||||
@ -306,7 +306,7 @@ export async function buildPluginClient(cwd: string, userConfig: UserConfig, sou
|
||||
const outDir = path.join(cwd, target_dir, 'client');
|
||||
|
||||
const globals = excludePackages.reduce<Record<string, string>>((prev, curr) => {
|
||||
if (curr.startsWith('@nocobase') || curr.startsWith('@hera')) {
|
||||
if (curr.startsWith('@nocobase') || curr.startsWith('@hera') || curr.startsWith('@tachybase')) {
|
||||
prev[`${curr}/client`] = curr;
|
||||
}
|
||||
prev[curr] = curr;
|
||||
|
@ -243,7 +243,7 @@ export async function genTsConfigPaths() {
|
||||
paths[`${packageJsonName}/server`] = [`${relativePath}/src/server`];
|
||||
paths[`${packageJsonName}/e2e`] = [`${relativePath}/src/e2e`];
|
||||
}
|
||||
if (packageJsonName === '@nocobase/plugin-workflow-test') {
|
||||
if (packageJsonName === '@tachybase/plugin-workflow-test') {
|
||||
paths[`${packageJsonName}/e2e`] = [`${relativePath}/src/e2e`];
|
||||
}
|
||||
}),
|
||||
@ -322,7 +322,7 @@ export function initEnv() {
|
||||
SOCKET_PATH: 'storage/gateway.sock',
|
||||
NODE_MODULES_PATH: resolve(process.cwd(), 'node_modules'),
|
||||
PM2_HOME: resolve(process.cwd(), './storage/.pm2'),
|
||||
PLUGIN_PACKAGE_PREFIX: '@nocobase/plugin-,@nocobase/plugin-sample-,@tachybase/preset-,@hera/plugin-',
|
||||
PLUGIN_PACKAGE_PREFIX: '@nocobase/plugin-,@tachybase/plugin-,@tachybase/preset-,@hera/plugin-',
|
||||
SERVER_TSCONFIG_PATH: './tsconfig.server.json',
|
||||
PLAYWRIGHT_AUTH_FILE: resolve(process.cwd(), 'storage/playwright/.auth/admin.json'),
|
||||
CACHE_DEFAULT_STORE: 'memory',
|
||||
|
@ -20,9 +20,9 @@
|
||||
"@emotion/css": "^11.7.1",
|
||||
"@formily/antd-v5": "^1.1.9",
|
||||
"@nocobase/evaluators": "workspace:*",
|
||||
"@nocobase/schema": "workspace:*",
|
||||
"@nocobase/sdk": "workspace:*",
|
||||
"@nocobase/utils": "workspace:*",
|
||||
"@tachybase/schema": "workspace:*",
|
||||
"ahooks": "^3.7.2",
|
||||
"antd": "5.16.1",
|
||||
"antd-style": "3.4.5",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Field } from '@nocobase/schema';
|
||||
import { Schema, useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { Field } from '@tachybase/schema';
|
||||
import { Schema, useField, useFieldSchema } from '@tachybase/schema';
|
||||
import React, { createContext, useContext, useEffect } from 'react';
|
||||
import { Navigate } from 'react-router-dom';
|
||||
import { omit } from 'lodash';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Card } from 'antd';
|
||||
import React from 'react';
|
||||
import { SchemaComponent } from '../schema-component';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { onFieldChange } from '@nocobase/schema';
|
||||
import { connect } from '@nocobase/schema';
|
||||
import { onFieldChange } from '@tachybase/schema';
|
||||
import { connect } from '@tachybase/schema';
|
||||
import { Checkbox } from 'antd';
|
||||
import uniq from 'lodash/uniq';
|
||||
import React, { useContext } from 'react';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { FormItem, FormLayout } from '@formily/antd-v5';
|
||||
import { ArrayField } from '@nocobase/schema';
|
||||
import { connect, useField, useForm } from '@nocobase/schema';
|
||||
import { ArrayField } from '@tachybase/schema';
|
||||
import { connect, useField, useForm } from '@tachybase/schema';
|
||||
import { Checkbox, Table, Tag } from 'antd';
|
||||
import { isEmpty } from 'lodash';
|
||||
import React, { createContext } from 'react';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import React, { createContext, useContext, useMemo, useState } from 'react';
|
||||
import { FormProvider, SchemaComponent } from '../../schema-component';
|
||||
import { scopesSchema } from './schemas/scopes';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ArrayField } from '@nocobase/schema';
|
||||
import { connect, useField } from '@nocobase/schema';
|
||||
import { ArrayField } from '@tachybase/schema';
|
||||
import { connect, useField } from '@tachybase/schema';
|
||||
import { Checkbox, Select, Table, Tag } from 'antd';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import pick from 'lodash/pick';
|
||||
import { useEffect } from 'react';
|
||||
import { useRequest } from '../../../api-client';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { useContext, useEffect } from 'react';
|
||||
import { useFormBlockContext } from '../../../block-provider';
|
||||
import { useFilterOptions } from '../../../schema-component';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useForm } from '@nocobase/schema';
|
||||
import { useForm } from '@tachybase/schema';
|
||||
import { useActionContext, useAPIClient, useRecord, useResourceActionContext } from '../../../';
|
||||
|
||||
export const useSaveRoleResourceAction = () => {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { APIClient, APIClientProvider, useAPIClient, useRequest } from '@nocobase/client';
|
||||
import { Button, Input, Space, Table } from 'antd';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { merge } from '@nocobase/schema';
|
||||
import { merge } from '@tachybase/schema';
|
||||
import { useRequest as useReq, useSetState } from 'ahooks';
|
||||
import { Options, Result } from 'ahooks/es/useRequest/src/types';
|
||||
import { AxiosRequestConfig } from 'axios';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { define, observable } from '@nocobase/schema';
|
||||
import { define, observable } from '@tachybase/schema';
|
||||
import { APIClientOptions, getSubAppName } from '@nocobase/sdk';
|
||||
import { i18n as i18next } from 'i18next';
|
||||
import get from 'lodash/get';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { define, observable } from '@nocobase/schema';
|
||||
import { define, observable } from '@tachybase/schema';
|
||||
import { getSubAppName } from '@nocobase/sdk';
|
||||
import { Application } from './Application';
|
||||
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { fireEvent, render, screen, waitFor } from '@nocobase/test/client';
|
||||
import { SchemaToolbarProvider, useSchemaToolbar, useSchemaToolbarRender } from '../schema-toolbar';
|
||||
import { SchemaComponent, SchemaComponentProvider, SortableContext, SortableProvider } from '../../schema-component';
|
||||
import { useFieldSchema } from '@nocobase/schema';
|
||||
import { useFieldSchema } from '@tachybase/schema';
|
||||
import { Application, ApplicationContext } from '@nocobase/client';
|
||||
|
||||
describe('SchemaToolbar', () => {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer } from '@nocobase/schema';
|
||||
import { observer } from '@tachybase/schema';
|
||||
import React, { FC, useCallback, useEffect } from 'react';
|
||||
import { ErrorBoundary } from 'react-error-boundary';
|
||||
import type { Application } from '../Application';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useExpressionScope } from '@nocobase/schema';
|
||||
import { useExpressionScope } from '@tachybase/schema';
|
||||
import React, { ComponentType, useMemo } from 'react';
|
||||
import { useDesignable } from '../../schema-component';
|
||||
import _ from 'lodash';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useForm } from '@nocobase/schema';
|
||||
import { useForm } from '@tachybase/schema';
|
||||
import React, { FC, useCallback, useMemo } from 'react';
|
||||
import { useActionContext, SchemaComponent } from '../../../schema-component';
|
||||
import { useSchemaInitializerItem } from '../context';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import classNames from 'classnames';
|
||||
import React, { ReactNode, memo, useMemo } from 'react';
|
||||
import { Icon } from '../../../icon';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Icon, { RightOutlined } from '@ant-design/icons';
|
||||
import { css } from '@emotion/css';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Menu, MenuProps, theme } from 'antd';
|
||||
import React, { FC, ReactNode, useMemo } from 'react';
|
||||
import { useCompile } from '../../../schema-component';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema, observer } from '@nocobase/schema';
|
||||
import { ISchema, observer } from '@tachybase/schema';
|
||||
import { ConfigProvider, Popover, theme } from 'antd';
|
||||
import React, { ComponentType, useCallback, useMemo, useState } from 'react';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { ButtonProps, PopoverProps } from 'antd';
|
||||
import { ComponentType, ReactNode } from 'react';
|
||||
import type {
|
||||
|
@ -5,7 +5,7 @@ import { SchemaSettingsChildren } from './SchemaSettingsChildren';
|
||||
import { SchemaSettingsIcon } from './SchemaSettingsIcon';
|
||||
import React from 'react';
|
||||
import { useDesignable } from '../../../schema-component';
|
||||
import { useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { useField, useFieldSchema } from '@tachybase/schema';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
@ -4,8 +4,8 @@ import { SchemaSettingOptions } from '../types';
|
||||
import React from 'react';
|
||||
import { SchemaSettingsWrapper } from '../components';
|
||||
import { SchemaSettingsProps } from '../../../schema-settings';
|
||||
import { Schema } from '@nocobase/schema';
|
||||
import { GeneralField } from '@nocobase/schema';
|
||||
import { Schema } from '@tachybase/schema';
|
||||
import { GeneralField } from '@tachybase/schema';
|
||||
import { Designable } from '../../../schema-component';
|
||||
|
||||
type UseSchemaSettingsRenderOptions<T = {}> = Omit<SchemaSettingOptions<T>, 'name' | 'items'> &
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { useComponent, useDesignable } from '../../../schema-component';
|
||||
import { SchemaToolbar, SchemaToolbarProps } from '../../../schema-settings/GeneralSchemaDesigner';
|
||||
|
||||
|
@ -7,18 +7,18 @@ import * as dndKitSortable from '@dnd-kit/sortable';
|
||||
import * as dndKitUtilities from '@dnd-kit/utilities';
|
||||
import * as emotionCss from '@emotion/css';
|
||||
import * as formilyAntdV5 from '@formily/antd-v5';
|
||||
import * as formilyCore from '@nocobase/schema';
|
||||
import * as formilyJsonSchema from '@nocobase/schema';
|
||||
import * as formilyPath from '@nocobase/schema';
|
||||
import * as formilyReact from '@nocobase/schema';
|
||||
import * as formilyJsonReactive from '@nocobase/schema';
|
||||
import * as formilyReactiveReact from '@nocobase/schema';
|
||||
import * as formilyShared from '@nocobase/schema';
|
||||
import * as formilyValidator from '@nocobase/schema';
|
||||
import * as formilyCore from '@tachybase/schema';
|
||||
import * as formilyJsonSchema from '@tachybase/schema';
|
||||
import * as formilyPath from '@tachybase/schema';
|
||||
import * as formilyReact from '@tachybase/schema';
|
||||
import * as formilyJsonReactive from '@tachybase/schema';
|
||||
import * as formilyReactiveReact from '@tachybase/schema';
|
||||
import * as formilyShared from '@tachybase/schema';
|
||||
import * as formilyValidator from '@tachybase/schema';
|
||||
import * as nocobaseEvaluators from '@nocobase/evaluators/client';
|
||||
import * as nocobaseClientUtils from '@nocobase/utils/client';
|
||||
import * as nocobaseSDK from '@nocobase/sdk';
|
||||
import * as nocobaseSchema from '@nocobase/schema';
|
||||
import * as nocobaseSchema from '@tachybase/schema';
|
||||
import { dayjs } from '@nocobase/utils/client';
|
||||
import * as ahooks from 'ahooks';
|
||||
import * as antd from 'antd';
|
||||
@ -78,7 +78,7 @@ export function defineGlobalDeps(requirejs: RequireJS) {
|
||||
requirejs.define('@nocobase/evaluators', () => nocobaseEvaluators);
|
||||
requirejs.define('@nocobase/evaluators/client', () => nocobaseEvaluators);
|
||||
requirejs.define('@nocobase/sdk', () => nocobaseSDK);
|
||||
requirejs.define('@nocobase/schema', () => nocobaseSchema);
|
||||
requirejs.define('@tachybase/schema', () => nocobaseSchema);
|
||||
|
||||
// dnd-kit 相关
|
||||
requirejs.define('@dnd-kit/accessibility', () => dndKitAccessibility);
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { css } from '@emotion/css';
|
||||
import { Field, GeneralField } from '@nocobase/schema';
|
||||
import { RecursionField, useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { Field, GeneralField } from '@tachybase/schema';
|
||||
import { RecursionField, useField, useFieldSchema } from '@tachybase/schema';
|
||||
import { Col, Row } from 'antd';
|
||||
import merge from 'deepmerge';
|
||||
import template from 'lodash/template';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { useField } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { useField } from '@tachybase/schema';
|
||||
import { Spin } from 'antd';
|
||||
import _ from 'lodash';
|
||||
import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { RecursionField, Schema, useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { RecursionField, Schema, useField, useFieldSchema } from '@tachybase/schema';
|
||||
import { Spin } from 'antd';
|
||||
import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
||||
import { useCollection_deprecated } from '../collection-manager';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { createForm, onFormValuesChange } from '@nocobase/schema';
|
||||
import { useField } from '@nocobase/schema';
|
||||
import { autorun } from '@nocobase/schema';
|
||||
import { createForm, onFormValuesChange } from '@tachybase/schema';
|
||||
import { useField } from '@tachybase/schema';
|
||||
import { autorun } from '@tachybase/schema';
|
||||
import { forEach } from '@nocobase/utils/client';
|
||||
import { Spin } from 'antd';
|
||||
import React, { createContext, useContext, useEffect, useMemo } from 'react';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { FormContext, useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { FormContext, useField, useFieldSchema } from '@tachybase/schema';
|
||||
import React, { createContext, useContext, useMemo, useState } from 'react';
|
||||
import { useCollectionManager_deprecated } from '../collection-manager';
|
||||
import { FixedBlockWrapper, SchemaComponentOptions } from '../schema-component';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ArrayField, Field } from '@nocobase/schema';
|
||||
import { useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { ArrayField, Field } from '@tachybase/schema';
|
||||
import { useField, useFieldSchema } from '@tachybase/schema';
|
||||
import React, { createContext, useContext, useEffect } from 'react';
|
||||
import { APIClient } from '../api-client';
|
||||
import { BlockProvider, useBlockRequestContext } from './BlockProvider';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ArrayField } from '@nocobase/schema';
|
||||
import { Schema, useField, useFieldSchema } from '@nocobase/schema';
|
||||
import { ArrayField } from '@tachybase/schema';
|
||||
import { Schema, useField, useFieldSchema } from '@tachybase/schema';
|
||||
import _ from 'lodash';
|
||||
import uniq from 'lodash/uniq';
|
||||
import React, { createContext, useContext, useEffect, useState } from 'react';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Field, Form } from '@nocobase/schema';
|
||||
import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@nocobase/schema';
|
||||
import { untracked } from '@nocobase/schema';
|
||||
import { Field, Form } from '@tachybase/schema';
|
||||
import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@tachybase/schema';
|
||||
import { untracked } from '@tachybase/schema';
|
||||
import { isURL, parse } from '@nocobase/utils/client';
|
||||
import { App, message } from 'antd';
|
||||
import _ from 'lodash';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { reaction } from '@nocobase/schema';
|
||||
import { reaction } from '@tachybase/schema';
|
||||
import { flatten, getValuesByPath } from '@nocobase/utils/client';
|
||||
import _ from 'lodash';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ArrayField } from '@nocobase/schema';
|
||||
import { useField } from '@nocobase/schema';
|
||||
import { ArrayField } from '@tachybase/schema';
|
||||
import { useField } from '@tachybase/schema';
|
||||
import { error } from '@nocobase/utils/client';
|
||||
import React from 'react';
|
||||
import { SchemaComponentOptions } from '..';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { DownOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema, useField, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema, useField, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Button, Dropdown, MenuProps } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Button, Dropdown, MenuProps } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { useCallback, useMemo, useState } from 'react';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Button, Dropdown, MenuProps } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { DeleteOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||
import { css } from '@emotion/css';
|
||||
import { useForm } from '@nocobase/schema';
|
||||
import { useForm } from '@tachybase/schema';
|
||||
import { Button, message } from 'antd';
|
||||
import React, { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import omit from 'lodash/omit';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import omit from 'lodash/omit';
|
||||
import set from 'lodash/set';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import React, { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { omit, set } from 'lodash';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Button } from 'antd';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { useState } from 'react';
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { SyncOutlined } from '@ant-design/icons';
|
||||
import { FormLayout } from '@formily/antd-v5';
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { Button } from 'antd';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import set from 'lodash/set';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer } from '@nocobase/schema';
|
||||
import { observer } from '@tachybase/schema';
|
||||
import { Tag } from 'antd';
|
||||
import React from 'react';
|
||||
import { useCompile } from '../../../schema-component';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer } from '@nocobase/schema';
|
||||
import { observer } from '@tachybase/schema';
|
||||
import { Tag } from 'antd';
|
||||
import React from 'react';
|
||||
import { useCompile } from '../../../schema-component';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer } from '@nocobase/schema';
|
||||
import { observer } from '@tachybase/schema';
|
||||
import { Tag } from 'antd';
|
||||
import React from 'react';
|
||||
import { useCompile } from '../../../schema-component';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer } from '@nocobase/schema';
|
||||
import { observer } from '@tachybase/schema';
|
||||
import { Tag } from 'antd';
|
||||
import { useAntdToken } from 'antd-style';
|
||||
import React, { useMemo } from 'react';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Field } from '@nocobase/schema';
|
||||
import { observer, useField, useForm } from '@nocobase/schema';
|
||||
import { Field } from '@tachybase/schema';
|
||||
import { observer, useField, useForm } from '@tachybase/schema';
|
||||
import { Select, AutoComplete } from 'antd';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useRecord } from '../../../record-provider';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { registerValidateFormats } from '@nocobase/schema';
|
||||
import { registerValidateFormats } from '@tachybase/schema';
|
||||
|
||||
export * from './AddFieldAction';
|
||||
export * from './EditFieldAction';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useField } from '@nocobase/schema';
|
||||
import { useField } from '@tachybase/schema';
|
||||
import { Result } from 'ahooks/es/useRequest/src/types';
|
||||
import React, { createContext, useContext, useEffect } from 'react';
|
||||
import { useCollectionManager_deprecated } from '.';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { message } from 'antd';
|
||||
import _ from 'lodash';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { FormItem, Input } from '@formily/antd-v5';
|
||||
import { ISchema, observer, useForm } from '@nocobase/schema';
|
||||
import { ISchema, observer, useForm } from '@tachybase/schema';
|
||||
import {
|
||||
Action,
|
||||
CollectionField,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import {
|
||||
AntdSchemaComponentProvider,
|
||||
ExtendCollectionsProvider,
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { FormDrawer, FormLayout } from '@formily/antd-v5';
|
||||
import { createForm } from '@nocobase/schema';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { FormContext, SchemaOptionsContext } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { createForm } from '@tachybase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { FormContext, SchemaOptionsContext } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import {
|
||||
AntdSchemaComponentProvider,
|
||||
Application,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { action } from '@nocobase/schema';
|
||||
import { action } from '@tachybase/schema';
|
||||
|
||||
import { useCollectionManager_deprecated } from '.';
|
||||
import { useCompile } from '../../schema-component';
|
||||
|
@ -4,7 +4,7 @@ import { useCallback, useMemo, useState } from 'react';
|
||||
import { useCompile, useSchemaComponentContext } from '../../schema-component';
|
||||
import { CollectionFieldOptions_deprecated, CollectionOptions } from '../types';
|
||||
import { InheritanceCollectionMixin } from '../mixins/InheritanceCollectionMixin';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { useDataSourceManager } from '../../data-source/data-source/DataSourceManagerProvider';
|
||||
import { useDataSource } from '../../data-source/data-source/DataSourceProvider';
|
||||
import { DEFAULT_DATA_SOURCE_KEY } from '../../data-source/data-source/DataSourceManager';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { SchemaKey } from '@nocobase/schema';
|
||||
import { SchemaKey } from '@tachybase/schema';
|
||||
import { useAPIClient } from '../../api-client';
|
||||
import { InheritanceCollectionMixin } from '../mixins/InheritanceCollectionMixin';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { defaultProps, operators } from '../';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { dataSource, defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { collectionDataSource, defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { defaultProps, recordPickerViewer } from './properties';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { defaultProps, operators, unique } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { defaultProps, operators, unique, primaryKey } from './properties';
|
||||
import { i18n } from '../../i18n';
|
||||
import { registerValidateRules } from '@nocobase/schema';
|
||||
import { registerValidateRules } from '@tachybase/schema';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
registerValidateRules({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { registerValidateFormats } from '@nocobase/schema';
|
||||
import { registerValidateFormats } from '@tachybase/schema';
|
||||
import { i18n } from '../../i18n';
|
||||
import { defaultProps, operators, unique, autoIncrement, primaryKey } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { FormItem, FormLayout } from '@formily/antd-v5';
|
||||
import { registerValidateRules } from '@nocobase/schema';
|
||||
import { registerValidateRules } from '@tachybase/schema';
|
||||
import React from 'react';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { defaultProps } from './properties';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { getUniqueKeyFromCollection } from './o2m';
|
||||
import { defaultProps, relationshipType, reverseFieldProperties } from './properties';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { getUniqueKeyFromCollection } from './o2m';
|
||||
import { constraintsProps, relationshipType, reverseFieldProperties } from './properties';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { i18n } from '../../i18n';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { dataSource, defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { Collection } from '../../data-source';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { constraintsProps, relationshipType, reverseFieldProperties } from './properties';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { getUniqueKeyFromCollection } from './o2m';
|
||||
import { constraintsProps, relationshipType, reverseFieldProperties } from './properties';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { registerValidateRules } from '@nocobase/schema';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { registerValidateRules } from '@tachybase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { i18n } from '../../i18n';
|
||||
import { defaultProps, operators, unique } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Field } from '@nocobase/schema';
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { Field } from '@tachybase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
export * as operators from './operators';
|
||||
|
||||
export const type: ISchema = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { ISchema } from '@nocobase/schema';
|
||||
import type { ISchema } from '@tachybase/schema';
|
||||
import { i18n } from '../../i18n';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { dataSource, defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { uid } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { uid } from '@tachybase/schema';
|
||||
import { defaultProps } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { i18n } from '../../i18n';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
|
||||
interface IDefault {
|
||||
type: string;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
import { defaultProps, recordPickerViewer } from './properties';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ISchema } from '@nocobase/schema';
|
||||
import { ISchema } from '@tachybase/schema';
|
||||
import { defaultProps, operators } from './properties';
|
||||
import { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer, useForm } from '@nocobase/schema';
|
||||
import { observer, useForm } from '@tachybase/schema';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import React, { createContext, useContext, useState } from 'react';
|
||||
import {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { observer, useForm } from '@nocobase/schema';
|
||||
import { observer, useForm } from '@tachybase/schema';
|
||||
import { Table, Tag } from 'antd';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { Cascader, Input, Select, Spin, Table, Tag } from 'antd';
|
||||
import { last, omit } from 'lodash';
|
||||
import React, { useContext, useEffect, useState } from 'react';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { RecursionField, useForm } from '@nocobase/schema';
|
||||
import { RecursionField, useForm } from '@tachybase/schema';
|
||||
import { Spin, Table } from 'antd';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
@ -2,8 +2,8 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useAsyncData } from '../../../../async-data-provider';
|
||||
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { Alert, Cascader, Input, Select, Spin, Table, Tag } from 'antd';
|
||||
import { observer, useField, useForm } from '@nocobase/schema';
|
||||
import { ArrayField } from '@nocobase/schema';
|
||||
import { observer, useField, useForm } from '@tachybase/schema';
|
||||
import { ArrayField } from '@tachybase/schema';
|
||||
import { useFieldInterfaceOptions } from '../../../Configuration/interfaces';
|
||||
import { useCompile } from '../../../../schema-component';
|
||||
import { useCollectionManager_deprecated } from '../../../hooks';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useAsyncData } from '../../../../async-data-provider';
|
||||
import React, { useEffect } from 'react';
|
||||
import { Table } from 'antd';
|
||||
import { Schema, observer, useForm } from '@nocobase/schema';
|
||||
import { Schema, observer, useForm } from '@tachybase/schema';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const PreviewTable = observer(
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useField, useForm } from '@nocobase/schema';
|
||||
import { useField, useForm } from '@tachybase/schema';
|
||||
import { useAsyncData } from '../../../../async-data-provider';
|
||||
import React, { useEffect } from 'react';
|
||||
import { Input, SchemaComponent } from '../../../../schema-component';
|
||||
@ -6,7 +6,7 @@ import { css } from '@emotion/css';
|
||||
import { Button } from 'antd';
|
||||
import { EditOutlined, RightSquareOutlined } from '@ant-design/icons';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Field } from '@nocobase/schema';
|
||||
import { Field } from '@tachybase/schema';
|
||||
|
||||
export const SQLInput = ({ disabled }) => {
|
||||
const { t } = useTranslation();
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useAPIClient, useRequest } from '../../../../api-client';
|
||||
import { AsyncDataProvider } from '../../../../async-data-provider';
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useForm } from '@nocobase/schema';
|
||||
import { useForm } from '@tachybase/schema';
|
||||
import { useRecord } from '../../../../record-provider';
|
||||
|
||||
export const SQLRequestProvider: React.FC<{
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Field } from '@nocobase/schema';
|
||||
import { Field } from '@tachybase/schema';
|
||||
import { SQLInput, PreviewTable, FieldsConfigure, SQLRequestProvider } from './components/sql-collection';
|
||||
import { getConfigurableProperties } from './properties';
|
||||
import { i18n } from '../../i18n';
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user