diff --git a/packages/plugins/@nocobase/plugin-excel-formula-field/package.json b/packages/plugins/@nocobase/plugin-excel-formula-field/package.json deleted file mode 100644 index a2ee00351..000000000 --- a/packages/plugins/@nocobase/plugin-excel-formula-field/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@nocobase/plugin-excel-formula-field", - "version": "0.21.2-alpha.10", - "description": "", - "keywords": [ - "Fields" - ], - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@formulajs/formulajs": "^4.2.0", - "@nocobase/schema": "workspace:*", - "react": "^18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1" -} diff --git a/packages/plugins/@nocobase/plugin-excel-formula-field/src/client/ExcelFormula/index.ts b/packages/plugins/@nocobase/plugin-excel-formula-field/src/client/ExcelFormula/index.ts deleted file mode 100644 index 4c13a7b9e..000000000 --- a/packages/plugins/@nocobase/plugin-excel-formula-field/src/client/ExcelFormula/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { connect, observer } from '@nocobase/schema'; -import { Formula } from '@nocobase/client'; -import React from 'react'; -import { evaluate } from '../../utils/evaluate'; - -export const ExcelFormula: any = () => null; - -ExcelFormula.Result = observer( - (props) => - React.createElement(Formula.Result, { - ...props, - evaluate, - }), - { displayName: 'ExcelFormula.Result' }, -); - -ExcelFormula.Expression = connect((props) => { - return React.createElement(Formula.Expression, { - ...props, - evaluate, - }); -}); - -ExcelFormula.Expression.displayName = 'ExcelFormula.Expression'; diff --git a/packages/plugins/@nocobase/plugin-math-formula-field/package.json b/packages/plugins/@nocobase/plugin-math-formula-field/package.json deleted file mode 100644 index f718c1c47..000000000 --- a/packages/plugins/@nocobase/plugin-math-formula-field/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@nocobase/plugin-math-formula-field", - "displayName": "math formula field", - "version": "0.21.2-alpha.10", - "description": "A powerful mathematical formula field plugin designed to provide flexible mathematical and formula calculation capabilities for databases or data management systems. It seamlessly integrates with various database systems such as MySQL, PostgreSQL, and offers an intuitive user interface for defining and executing mathematical formula fields.", - "keywords": [ - "Fields" - ], - "license": "AGPL-3.0", - "main": "./dist/server/index.js", - "devDependencies": { - "@nocobase/schema": "workspace:*", - "mathjs": "^10.6.0", - "react": "~18.2.0", - "react-i18next": "^11.15.1" - }, - "peerDependencies": { - "@nocobase/client": "workspace:*", - "@nocobase/database": "workspace:*", - "@nocobase/server": "workspace:*", - "@nocobase/test": "workspace:*" - }, - "description.zh-CN": "一个功能强大的数学公式字段插件,旨在为数据库或数据管理系统提供灵活的数学计算和公式计算功能。它可以与各种数据库系统(如MySQL、PostgreSQL)无缝集成,并提供直观的用户界面来定义和执行数学公式字段。", - "displayName.zh-CN": "数学公式字段", - "gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1" -} diff --git a/packages/plugins/@nocobase/plugin-math-formula-field/src/client/MathFormula/index.tsx b/packages/plugins/@nocobase/plugin-math-formula-field/src/client/MathFormula/index.tsx deleted file mode 100644 index 8877d8581..000000000 --- a/packages/plugins/@nocobase/plugin-math-formula-field/src/client/MathFormula/index.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { connect, observer } from '@nocobase/schema'; -import { Formula } from '@nocobase/client'; -import React from 'react'; -import { evaluate } from '../../utils/evaluate'; - -export const MathFormula: any = () => null; - -MathFormula.Result = observer( - (props) => - React.createElement(Formula.Result, { - ...props, - evaluate, - }), - { displayName: 'MathFormula.Result' }, -); - -MathFormula.Expression = connect((props) => { - return React.createElement(Formula.Expression, { - ...props, - evaluate, - }); -});