From 93fcba0205dad90a6313bf18293047316b378c4b Mon Sep 17 00:00:00 2001 From: chilingling <26962197+chilingling@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:45:10 -0800 Subject: [PATCH 1/6] feat(generate-vue): change generate vue code location (#201) * feat(generate-vue): change generate vue code location * fix(generate-vue): fix generate route did not export --- .../toolbars/generate-vue/src/generateCode.js | 40 +++++++++++++------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/packages/toolbars/generate-vue/src/generateCode.js b/packages/toolbars/generate-vue/src/generateCode.js index 54d3b1416..ed3016162 100644 --- a/packages/toolbars/generate-vue/src/generateCode.js +++ b/packages/toolbars/generate-vue/src/generateCode.js @@ -22,8 +22,8 @@ const basePaths = { blocks: 'src/components/', utils: 'src/lowcode/utils.js', dataSource: 'src/lowcode/dataSource.json', - router: 'src/lowcode/routes.js', - store: 'src/lowcode/stores.js' + router: 'src/router/index.js', + store: 'src/stores/' } const FILE_TYPES = { @@ -82,7 +82,10 @@ function generateStores({ globalState }) { } const filePath = basePaths.store - let result = "import { defineStore } from 'pinia'\n\n" + const result = "import { defineStore } from 'pinia'\n\n" + + const res = [] + const storeIds = [] const getStoreFnStrs = (getters = {}) => Object.values(getters) @@ -90,6 +93,7 @@ function generateStores({ globalState }) { .join(',\n') globalState.forEach(({ id, state, getters, actions }) => { + storeIds.push(id) const storeCode = `export const ${id} = defineStore({ id: '${id}', state: () => (${JSON.stringify(state)}), @@ -101,16 +105,20 @@ function generateStores({ globalState }) { } })\n` - result += storeCode + res.push({ + filePath: `${filePath}${id}.js`, + fileType: FILE_TYPES.Store, + fileContent: formatScript(`${result}\n${storeCode}`) + }) }) - return [ - { - filePath, - fileType: FILE_TYPES.Store, - fileContent: formatScript(result) - } - ] + res.push({ + filePath: `${filePath}index.js`, + fileType: FILE_TYPES.Store, + fileContent: formatScript(storeIds.map((id) => `export { ${id} } from './${id}'`).join('\n')) + }) + + return res } function generatePageFiles(codeList, pagePath = '') { @@ -335,9 +343,12 @@ export function generateRouter(pages) { } const routes = generateRoutes(pages) + const importRoutes = "import { createRouter, createWebHashHistory } from 'vue-router'\n" const content = ` - export const routes = [ + ${importRoutes} + + const routes = [ ${routes .map( ({ fileName, path, redirect, filePath }) => `{ @@ -347,6 +358,11 @@ export function generateRouter(pages) { ) .join(',')} ] + + export default createRouter({ + history: createWebHashHistory(), + routes + }) ` const codeStr = formatScript(content) From e8b2e58c0057d1ac42ca6bc0deb2256b1b59c1ee Mon Sep 17 00:00:00 2001 From: wenmine Date: Fri, 29 Dec 2023 00:51:27 -0800 Subject: [PATCH 2/6] =?UTF-8?q?feat(docs):=20=E5=A2=9E=E5=8A=A0=E8=B7=9F?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=90=8E=E7=AB=AF=E7=9B=B4=E8=BF=9E=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=A1=88=20(#208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(readme): 增加后端的启动描述 --- README.md | 11 +++++++++++ README.zh-CN.md | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index 47e55b3f8..aeaa2765e 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,17 @@ $ pnpm install $ pnpm dev ``` +## Local development, directly connected to the local tiny-engine-webservice server + +1. Start tiny-engine-data-center + +2. Start tiny-engine-webservice + +3. Modify the origin value in `vite.config.js` in the `packages/design-core/` directory of the tiny-engine project to be the address port of your local webService project (the webService port defaults to 7011), such as: + +Modify port + + ### Materials Synchronization [Solution](https://opentiny.design/tiny-engine#/help-center/course/engine/56) ```sh diff --git a/README.zh-CN.md b/README.zh-CN.md index 907a1719f..d0209b216 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -37,6 +37,17 @@ $ pnpm install $ pnpm dev ``` +### 本地开发,直连本地的tiny-engine-webservice服务端 + +1. 启动 tiny-engine-data-center + +2. 启动 tiny-engine-webservice + +3. 修改 tiny-engine 项目 `packages/design-core/` 目录下 `vite.config.js` 中origin的值为自己本地webService项目的地址端口(webService端口默认为7011),如: + +修改端口 + + ### 物料同步[方案](https://opentiny.design/tiny-engine#/help-center/course/engine/56) ```sh From 467d5a223a4b14165f2ebf1ba718dc04a2d4ca93 Mon Sep 17 00:00:00 2001 From: chilingling <26962197+chilingling@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:44:29 -0800 Subject: [PATCH 3/6] feat(chore): change dependencies type to workspace:* (#216) --- packages/canvas/package.json | 10 +-- packages/common/package.json | 10 +-- packages/controller/package.json | 8 +- packages/design-core/package.json | 86 ++++++++++---------- packages/http/package.json | 4 +- packages/i18n/package.json | 2 +- packages/plugins/block/package.json | 10 +-- packages/plugins/bridge/package.json | 8 +- packages/plugins/data/package.json | 10 +-- packages/plugins/datasource/package.json | 10 +-- packages/plugins/help/package.json | 6 +- packages/plugins/i18n/package.json | 8 +- packages/plugins/materials/package.json | 8 +- packages/plugins/page/package.json | 8 +- packages/plugins/robot/package.json | 8 +- packages/plugins/schema/package.json | 8 +- packages/plugins/script/package.json | 8 +- packages/plugins/tree/package.json | 8 +- packages/plugins/tutorial/package.json | 6 +- packages/settings/design/package.json | 2 +- packages/settings/events/package.json | 8 +- packages/settings/props/package.json | 6 +- packages/settings/styles/package.json | 10 +-- packages/toolbars/breadcrumb/package.json | 4 +- packages/toolbars/clean/package.json | 4 +- packages/toolbars/collaboration/package.json | 2 +- packages/toolbars/fullscreen/package.json | 2 +- packages/toolbars/generate-vue/package.json | 8 +- packages/toolbars/lang/package.json | 2 +- packages/toolbars/lock/package.json | 6 +- packages/toolbars/logo/package.json | 6 +- packages/toolbars/media/package.json | 4 +- packages/toolbars/preview/package.json | 6 +- packages/toolbars/redoundo/package.json | 2 +- packages/toolbars/refresh/package.json | 4 +- packages/toolbars/save/package.json | 8 +- packages/toolbars/setting/package.json | 4 +- 37 files changed, 157 insertions(+), 157 deletions(-) diff --git a/packages/canvas/package.json b/packages/canvas/package.json index 50205d607..ef274c9c6 100644 --- a/packages/canvas/package.json +++ b/packages/canvas/package.json @@ -27,11 +27,11 @@ "homepage": "https://opentiny.design/tiny-engine", "dependencies": { "@babel/core": "7.18.13", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-i18n-host": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", - "@opentiny/tiny-engine-webcomponent-core": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-i18n-host": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", + "@opentiny/tiny-engine-webcomponent-core": "workspace:*", "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", diff --git a/packages/common/package.json b/packages/common/package.json index 06b2c4053..0a05f6e79 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -32,11 +32,11 @@ "@babel/generator": "7.18.13", "@babel/parser": "7.18.13", "@babel/traverse": "7.18.13", - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-i18n-host": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-i18n-host": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@opentiny/vue-locale": "~3.10.0", diff --git a/packages/controller/package.json b/packages/controller/package.json index 195ef2baa..d801d7a6a 100644 --- a/packages/controller/package.json +++ b/packages/controller/package.json @@ -29,10 +29,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", diff --git a/packages/design-core/package.json b/packages/design-core/package.json index 4766f8ff1..e496a1073 100644 --- a/packages/design-core/package.json +++ b/packages/design-core/package.json @@ -34,49 +34,49 @@ "@babel/generator": "7.18.13", "@babel/parser": "7.18.13", "@babel/traverse": "7.18.13", - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-i18n-host": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-block": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-bridge": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-data": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-datasource": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-help": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-i18n": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-materials": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-page": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-robot": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-schema": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-script": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-tree": "workspace:^1.0.0", - "@opentiny/tiny-engine-plugin-tutorial": "workspace:^1.0.0", - "@opentiny/tiny-engine-setting-design": "workspace:^1.0.0", - "@opentiny/tiny-engine-setting-events": "workspace:^1.0.0", - "@opentiny/tiny-engine-setting-props": "workspace:^1.0.0", - "@opentiny/tiny-engine-setting-styles": "workspace:^1.0.0", - "@opentiny/tiny-engine-svgs": "workspace:^1.0.0", - "@opentiny/tiny-engine-theme-dark": "workspace:^1.0.0", - "@opentiny/tiny-engine-theme-light": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-breadcrumb": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-checkinout": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-clean": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-collaboration": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-fullscreen": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-generate-vue": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-lang": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-layout": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-logo": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-logout": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-media": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-preview": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-redoundo": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-refresh": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-save": "workspace:^1.0.0", - "@opentiny/tiny-engine-toolbar-setting": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", - "@opentiny/tiny-engine-webcomponent-core": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-i18n-host": "workspace:*", + "@opentiny/tiny-engine-plugin-block": "workspace:*", + "@opentiny/tiny-engine-plugin-bridge": "workspace:*", + "@opentiny/tiny-engine-plugin-data": "workspace:*", + "@opentiny/tiny-engine-plugin-datasource": "workspace:*", + "@opentiny/tiny-engine-plugin-help": "workspace:*", + "@opentiny/tiny-engine-plugin-i18n": "workspace:*", + "@opentiny/tiny-engine-plugin-materials": "workspace:*", + "@opentiny/tiny-engine-plugin-page": "workspace:*", + "@opentiny/tiny-engine-plugin-robot": "workspace:*", + "@opentiny/tiny-engine-plugin-schema": "workspace:*", + "@opentiny/tiny-engine-plugin-script": "workspace:*", + "@opentiny/tiny-engine-plugin-tree": "workspace:*", + "@opentiny/tiny-engine-plugin-tutorial": "workspace:*", + "@opentiny/tiny-engine-setting-design": "workspace:*", + "@opentiny/tiny-engine-setting-events": "workspace:*", + "@opentiny/tiny-engine-setting-props": "workspace:*", + "@opentiny/tiny-engine-setting-styles": "workspace:*", + "@opentiny/tiny-engine-svgs": "workspace:*", + "@opentiny/tiny-engine-theme-dark": "workspace:*", + "@opentiny/tiny-engine-theme-light": "workspace:*", + "@opentiny/tiny-engine-toolbar-breadcrumb": "workspace:*", + "@opentiny/tiny-engine-toolbar-checkinout": "workspace:*", + "@opentiny/tiny-engine-toolbar-clean": "workspace:*", + "@opentiny/tiny-engine-toolbar-collaboration": "workspace:*", + "@opentiny/tiny-engine-toolbar-fullscreen": "workspace:*", + "@opentiny/tiny-engine-toolbar-generate-vue": "workspace:*", + "@opentiny/tiny-engine-toolbar-lang": "workspace:*", + "@opentiny/tiny-engine-toolbar-layout": "workspace:*", + "@opentiny/tiny-engine-toolbar-logo": "workspace:*", + "@opentiny/tiny-engine-toolbar-logout": "workspace:*", + "@opentiny/tiny-engine-toolbar-media": "workspace:*", + "@opentiny/tiny-engine-toolbar-preview": "workspace:*", + "@opentiny/tiny-engine-toolbar-redoundo": "workspace:*", + "@opentiny/tiny-engine-toolbar-refresh": "workspace:*", + "@opentiny/tiny-engine-toolbar-save": "workspace:*", + "@opentiny/tiny-engine-toolbar-setting": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", + "@opentiny/tiny-engine-webcomponent-core": "workspace:*", "@opentiny/vue": "~3.11.0", "@opentiny/vue-design-smb": "~3.11.0", "@opentiny/vue-renderless": "~3.11.0", diff --git a/packages/http/package.json b/packages/http/package.json index 507b98f09..ffbee017d 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@vueuse/core": "^9.6.0", "axios": "^0.27.2", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index cad6531a4..cad03db17 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -29,7 +29,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-webcomponent-core": "workspace:^1.0.0", + "@opentiny/tiny-engine-webcomponent-core": "workspace:*", "vue": "^3.2.1", "vue-i18n": "^9.2.0-beta.32" }, diff --git a/packages/plugins/block/package.json b/packages/plugins/block/package.json index a8ec6d637..ab3b50cab 100644 --- a/packages/plugins/block/package.json +++ b/packages/plugins/block/package.json @@ -24,11 +24,11 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", diff --git a/packages/plugins/bridge/package.json b/packages/plugins/bridge/package.json index 71ab9b10a..0e9325190 100644 --- a/packages/plugins/bridge/package.json +++ b/packages/plugins/bridge/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "vue": "3.2.45" diff --git a/packages/plugins/data/package.json b/packages/plugins/data/package.json index 79aa2e307..16bafb656 100644 --- a/packages/plugins/data/package.json +++ b/packages/plugins/data/package.json @@ -24,11 +24,11 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "monaco-editor": "0.33.0", diff --git a/packages/plugins/datasource/package.json b/packages/plugins/datasource/package.json index 7fb7142d8..b0d31226d 100644 --- a/packages/plugins/datasource/package.json +++ b/packages/plugins/datasource/package.json @@ -24,11 +24,11 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", diff --git a/packages/plugins/help/package.json b/packages/plugins/help/package.json index aa72bf169..d53acb215 100644 --- a/packages/plugins/help/package.json +++ b/packages/plugins/help/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/plugins/i18n/package.json b/packages/plugins/i18n/package.json index 91f2d7223..28d826e64 100644 --- a/packages/plugins/i18n/package.json +++ b/packages/plugins/i18n/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "vue": "3.2.45", diff --git a/packages/plugins/materials/package.json b/packages/plugins/materials/package.json index 2eb6091ca..771892ebe 100644 --- a/packages/plugins/materials/package.json +++ b/packages/plugins/materials/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/plugins/page/package.json b/packages/plugins/page/package.json index 917e7b307..d7e5c144f 100644 --- a/packages/plugins/page/package.json +++ b/packages/plugins/page/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", "vue": "3.2.45" diff --git a/packages/plugins/robot/package.json b/packages/plugins/robot/package.json index 44782feb6..35a02f483 100644 --- a/packages/plugins/robot/package.json +++ b/packages/plugins/robot/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", "vue": "3.2.45" diff --git a/packages/plugins/schema/package.json b/packages/plugins/schema/package.json index e7607c504..4bdc193cb 100644 --- a/packages/plugins/schema/package.json +++ b/packages/plugins/schema/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/plugins/script/package.json b/packages/plugins/script/package.json index 684050667..ed7a7c26f 100644 --- a/packages/plugins/script/package.json +++ b/packages/plugins/script/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", "vue": "3.2.45" diff --git a/packages/plugins/tree/package.json b/packages/plugins/tree/package.json index 3df06a54b..56d42443d 100644 --- a/packages/plugins/tree/package.json +++ b/packages/plugins/tree/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", diff --git a/packages/plugins/tutorial/package.json b/packages/plugins/tutorial/package.json index 0b69eabe0..77cf1a5ba 100644 --- a/packages/plugins/tutorial/package.json +++ b/packages/plugins/tutorial/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "marked": "^4.0.17", "vue": "3.2.45" diff --git a/packages/settings/design/package.json b/packages/settings/design/package.json index 946a53d37..644bd9212 100644 --- a/packages/settings/design/package.json +++ b/packages/settings/design/package.json @@ -24,7 +24,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", "@opentiny/vue": "~3.10.0", "sortablejs": "^1.14.0", "vue": "3.2.45" diff --git a/packages/settings/events/package.json b/packages/settings/events/package.json index 4c9213a53..51708694c 100644 --- a/packages/settings/events/package.json +++ b/packages/settings/events/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "vue": "3.2.45" diff --git a/packages/settings/props/package.json b/packages/settings/props/package.json index 5c2108ee6..6052787c8 100644 --- a/packages/settings/props/package.json +++ b/packages/settings/props/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@vueuse/core": "^9.6.0", diff --git a/packages/settings/styles/package.json b/packages/settings/styles/package.json index 4432befe2..f4f91f2f0 100644 --- a/packages/settings/styles/package.json +++ b/packages/settings/styles/package.json @@ -24,11 +24,11 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", "@vueuse/core": "^9.6.0", diff --git a/packages/toolbars/breadcrumb/package.json b/packages/toolbars/breadcrumb/package.json index 4062fea6b..1d773322e 100644 --- a/packages/toolbars/breadcrumb/package.json +++ b/packages/toolbars/breadcrumb/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/clean/package.json b/packages/toolbars/clean/package.json index 25474a0bf..4654d2f32 100644 --- a/packages/toolbars/clean/package.json +++ b/packages/toolbars/clean/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/collaboration/package.json b/packages/toolbars/collaboration/package.json index 6dda4ac01..01f6a8e58 100644 --- a/packages/toolbars/collaboration/package.json +++ b/packages/toolbars/collaboration/package.json @@ -24,7 +24,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/fullscreen/package.json b/packages/toolbars/fullscreen/package.json index b90a717ce..3046879bf 100644 --- a/packages/toolbars/fullscreen/package.json +++ b/packages/toolbars/fullscreen/package.json @@ -24,7 +24,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/generate-vue/package.json b/packages/toolbars/generate-vue/package.json index 2ceda0275..9f500fceb 100644 --- a/packages/toolbars/generate-vue/package.json +++ b/packages/toolbars/generate-vue/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "prettier": "2.7.1", "vue": "3.2.45" diff --git a/packages/toolbars/lang/package.json b/packages/toolbars/lang/package.json index 5089ec8af..206b433f7 100644 --- a/packages/toolbars/lang/package.json +++ b/packages/toolbars/lang/package.json @@ -24,7 +24,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "@vueuse/core": "^9.6.0", "vue": "3.2.45" diff --git a/packages/toolbars/lock/package.json b/packages/toolbars/lock/package.json index 21aff041e..2a2a10134 100644 --- a/packages/toolbars/lock/package.json +++ b/packages/toolbars/lock/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/logo/package.json b/packages/toolbars/logo/package.json index 55a5fb054..dba4bc185 100644 --- a/packages/toolbars/logo/package.json +++ b/packages/toolbars/logo/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-http": "workspace:^1.0.0", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/media/package.json b/packages/toolbars/media/package.json index a4847d155..b52c0e55b 100644 --- a/packages/toolbars/media/package.json +++ b/packages/toolbars/media/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "vue": "3.2.45" diff --git a/packages/toolbars/preview/package.json b/packages/toolbars/preview/package.json index 79677624d..322262138 100644 --- a/packages/toolbars/preview/package.json +++ b/packages/toolbars/preview/package.json @@ -24,9 +24,9 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/redoundo/package.json b/packages/toolbars/redoundo/package.json index afbe5bb9c..c95a70566 100644 --- a/packages/toolbars/redoundo/package.json +++ b/packages/toolbars/redoundo/package.json @@ -24,7 +24,7 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/refresh/package.json b/packages/toolbars/refresh/package.json index 6f50f069e..fc998c775 100644 --- a/packages/toolbars/refresh/package.json +++ b/packages/toolbars/refresh/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/save/package.json b/packages/toolbars/save/package.json index 2be27b4f4..79c0821fe 100644 --- a/packages/toolbars/save/package.json +++ b/packages/toolbars/save/package.json @@ -24,10 +24,10 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-canvas": "workspace:^1.0.0", - "@opentiny/tiny-engine-common": "workspace:^1.0.0", - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-canvas": "workspace:*", + "@opentiny/tiny-engine-common": "workspace:*", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, diff --git a/packages/toolbars/setting/package.json b/packages/toolbars/setting/package.json index acbe60fee..614afc028 100644 --- a/packages/toolbars/setting/package.json +++ b/packages/toolbars/setting/package.json @@ -24,8 +24,8 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { - "@opentiny/tiny-engine-controller": "workspace:^1.0.0", - "@opentiny/tiny-engine-utils": "workspace:^1.0.0", + "@opentiny/tiny-engine-controller": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.10.0", "vue": "3.2.45" }, From 919f06e89dc79426979c4821dc772935750208d0 Mon Sep 17 00:00:00 2001 From: Hexqi Date: Wed, 3 Jan 2024 11:15:57 +0800 Subject: [PATCH 4/6] chore: add code review action (#215) --- .github/workflows/ai-code-review.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ai-code-review.yml diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml new file mode 100644 index 000000000..29777ff3f --- /dev/null +++ b/.github/workflows/ai-code-review.yml @@ -0,0 +1,23 @@ +name: AI Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + review: + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + LANGUAGE: Chinese + OPENAI_API_ENDPOINT: https://api.openai.com/v1 + MODEL: gpt-3.5-turbo + MAX_TOKENS: 4096 + MAX_PATCH_LENGTH: 10000 From 47be96756c4089303c1c8393a27c7b9b3219cc94 Mon Sep 17 00:00:00 2001 From: chilingling <26962197+chilingling@users.noreply.github.com> Date: Thu, 4 Jan 2024 03:39:28 -0800 Subject: [PATCH 5/6] chore(release): publish (#219) * chore(release): publish - @opentiny/tiny-engine-mock@1.0.1 - @opentiny/tiny-engine-block-build@1.0.0 - @opentiny/tiny-engine-builtin-component@1.0.0 - @opentiny/tiny-engine-canvas@1.0.1 - @opentiny/tiny-engine-common@1.0.1 - @opentiny/tiny-engine-controller@1.0.1 - @opentiny/tiny-engine@1.0.0-beta.2 - @opentiny/tiny-engine-http@1.0.1 - @opentiny/tiny-engine-i18n-host@1.0.1 - @opentiny/tiny-engine-plugin-block@1.0.2 - @opentiny/tiny-engine-plugin-bridge@1.0.2 - @opentiny/tiny-engine-plugin-data@1.0.2 - @opentiny/tiny-engine-plugin-datasource@1.0.2 - @opentiny/tiny-engine-plugin-help@1.0.2 - @opentiny/tiny-engine-plugin-i18n@1.0.2 - @opentiny/tiny-engine-plugin-materials@1.0.2 - @opentiny/tiny-engine-plugin-page@1.0.2 - @opentiny/tiny-engine-plugin-robot@1.0.2 - @opentiny/tiny-engine-plugin-schema@1.0.2 - @opentiny/tiny-engine-plugin-script@1.0.2 - @opentiny/tiny-engine-plugin-tree@1.0.2 - @opentiny/tiny-engine-plugin-tutorial@1.0.2 - @opentiny/tiny-engine-setting-design@1.0.2 - @opentiny/tiny-engine-setting-events@1.0.2 - @opentiny/tiny-engine-setting-props@1.0.2 - @opentiny/tiny-engine-setting-styles@1.0.2 - @opentiny/tiny-engine-svgs@1.0.2 - @opentiny/tiny-engine-theme-dark@1.0.2 - @opentiny/tiny-engine-theme-light@1.0.3 - @opentiny/tiny-engine-toolbar-breadcrumb@1.0.2 - @opentiny/tiny-engine-toolbar-clean@1.0.2 - @opentiny/tiny-engine-toolbar-collaboration@1.0.2 - @opentiny/tiny-engine-toolbar-fullscreen@1.0.2 - @opentiny/tiny-engine-toolbar-generate-vue@1.0.2 - @opentiny/tiny-engine-toolbar-lang@1.0.2 - @opentiny/tiny-engine-toolbar-layout@1.0.2 - @opentiny/tiny-engine-toolbar-checkinout@1.0.2 - @opentiny/tiny-engine-toolbar-logo@1.0.2 - @opentiny/tiny-engine-toolbar-logout@1.0.2 - @opentiny/tiny-engine-toolbar-media@1.0.2 - @opentiny/tiny-engine-toolbar-preview@1.0.2 - @opentiny/tiny-engine-toolbar-redoundo@1.0.2 - @opentiny/tiny-engine-toolbar-refresh@1.0.2 - @opentiny/tiny-engine-toolbar-save@1.0.2 - @opentiny/tiny-engine-toolbar-setting@1.0.2 - @opentiny/tiny-engine-utils@1.0.2 - @opentiny/tiny-engine-dsl-vue@1.0.2 - @opentiny/tiny-engine-webcomponent-core@1.0.2 * chore(release): publish - @opentiny/tiny-engine-mock@1.0.2 - @opentiny/tiny-engine-block-build@1.0.1 - @opentiny/tiny-engine-builtin-component@1.0.0 - @opentiny/tiny-engine-canvas@1.0.2 - @opentiny/tiny-engine-common@1.0.1 - @opentiny/tiny-engine-controller@1.0.2 - @opentiny/tiny-engine@1.0.0-beta.3 - @opentiny/tiny-engine-http@1.0.1 - @opentiny/tiny-engine-i18n-host@1.0.2 - @opentiny/tiny-engine-plugin-block@1.0.2 - @opentiny/tiny-engine-plugin-bridge@1.0.2 - @opentiny/tiny-engine-plugin-data@1.0.2 - @opentiny/tiny-engine-plugin-datasource@1.0.2 - @opentiny/tiny-engine-plugin-help@1.0.2 - @opentiny/tiny-engine-plugin-i18n@1.0.2 - @opentiny/tiny-engine-plugin-materials@1.0.2 - @opentiny/tiny-engine-plugin-page@1.0.2 - @opentiny/tiny-engine-plugin-robot@1.0.2 - @opentiny/tiny-engine-plugin-schema@1.0.2 - @opentiny/tiny-engine-plugin-script@1.0.2 - @opentiny/tiny-engine-plugin-tree@1.0.2 - @opentiny/tiny-engine-plugin-tutorial@1.0.2 - @opentiny/tiny-engine-setting-design@1.0.2 - @opentiny/tiny-engine-setting-events@1.0.2 - @opentiny/tiny-engine-setting-props@1.0.2 - @opentiny/tiny-engine-setting-styles@1.0.2 - @opentiny/tiny-engine-svgs@1.0.3 - @opentiny/tiny-engine-theme-dark@1.0.3 - @opentiny/tiny-engine-theme-light@1.0.4 - @opentiny/tiny-engine-toolbar-breadcrumb@1.0.2 - @opentiny/tiny-engine-toolbar-clean@1.0.2 - @opentiny/tiny-engine-toolbar-collaboration@1.0.2 - @opentiny/tiny-engine-toolbar-fullscreen@1.0.2 - @opentiny/tiny-engine-toolbar-generate-vue@1.0.2 - @opentiny/tiny-engine-toolbar-lang@1.0.3 - @opentiny/tiny-engine-toolbar-layout@1.0.3 - @opentiny/tiny-engine-toolbar-checkinout@1.0.2 - @opentiny/tiny-engine-toolbar-logo@1.0.2 - @opentiny/tiny-engine-toolbar-logout@1.0.3 - @opentiny/tiny-engine-toolbar-media@1.0.2 - @opentiny/tiny-engine-toolbar-preview@1.0.2 - @opentiny/tiny-engine-toolbar-redoundo@1.0.2 - @opentiny/tiny-engine-toolbar-refresh@1.0.2 - @opentiny/tiny-engine-toolbar-save@1.0.2 - @opentiny/tiny-engine-toolbar-setting@1.0.2 - @opentiny/tiny-engine-utils@1.0.3 - @opentiny/tiny-engine-dsl-vue@1.0.2 - @opentiny/tiny-engine-webcomponent-core@1.0.3 --- mockServer/package.json | 4 ++-- packages/blockToWebComponentTemplate/package.json | 2 +- packages/builtinComponent/package.json | 5 ++++- packages/canvas/package.json | 4 ++-- packages/common/package.json | 2 +- packages/controller/package.json | 4 ++-- packages/design-core/package.json | 4 ++-- packages/http/package.json | 2 +- packages/i18n/package.json | 2 +- packages/plugins/block/package.json | 2 +- packages/plugins/bridge/package.json | 2 +- packages/plugins/data/package.json | 2 +- packages/plugins/datasource/package.json | 2 +- packages/plugins/help/package.json | 2 +- packages/plugins/i18n/package.json | 2 +- packages/plugins/materials/package.json | 2 +- packages/plugins/page/package.json | 2 +- packages/plugins/robot/package.json | 2 +- packages/plugins/schema/package.json | 2 +- packages/plugins/script/package.json | 2 +- packages/plugins/tree/package.json | 2 +- packages/plugins/tutorial/package.json | 2 +- packages/settings/design/package.json | 2 +- packages/settings/events/package.json | 2 +- packages/settings/props/package.json | 2 +- packages/settings/styles/package.json | 2 +- packages/svgs/package.json | 2 +- packages/theme/dark/package.json | 2 +- packages/theme/light/package.json | 2 +- packages/toolbars/breadcrumb/package.json | 2 +- packages/toolbars/clean/package.json | 2 +- packages/toolbars/collaboration/package.json | 2 +- packages/toolbars/fullscreen/package.json | 2 +- packages/toolbars/generate-vue/package.json | 2 +- packages/toolbars/lang/package.json | 2 +- packages/toolbars/layout/package.json | 2 +- packages/toolbars/lock/package.json | 2 +- packages/toolbars/logo/package.json | 2 +- packages/toolbars/logout/package.json | 2 +- packages/toolbars/media/package.json | 2 +- packages/toolbars/preview/package.json | 2 +- packages/toolbars/redoundo/package.json | 2 +- packages/toolbars/refresh/package.json | 2 +- packages/toolbars/save/package.json | 2 +- packages/toolbars/setting/package.json | 2 +- packages/utils/package.json | 2 +- packages/vue-generator/package.json | 2 +- packages/webcomponent/package.json | 2 +- 48 files changed, 55 insertions(+), 52 deletions(-) diff --git a/mockServer/package.json b/mockServer/package.json index 53e074838..37eb3f294 100644 --- a/mockServer/package.json +++ b/mockServer/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-mock", - "version": "1.0.0", + "version": "1.0.2", "publishConfig": { "access": "public" }, @@ -25,7 +25,7 @@ "lint": "eslint --fix ." }, "dependencies": { - "@opentiny/tiny-engine-dsl-vue": "~1.0.0", + "@opentiny/tiny-engine-dsl-vue": "1.0.2", "@seald-io/nedb": "^4.0.2", "fs-extra": "^11.1.1", "glob": "^10.3.4", diff --git a/packages/blockToWebComponentTemplate/package.json b/packages/blockToWebComponentTemplate/package.json index 6e560f38a..456894130 100644 --- a/packages/blockToWebComponentTemplate/package.json +++ b/packages/blockToWebComponentTemplate/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-block-build", - "version": "0.0.1-alpha.0", + "version": "1.0.1", "description": "translate block to webcomponent template", "main": "./dist/web-components.es.js", "scripts": { diff --git a/packages/builtinComponent/package.json b/packages/builtinComponent/package.json index 9ca16bed9..e808afa72 100644 --- a/packages/builtinComponent/package.json +++ b/packages/builtinComponent/package.json @@ -1,9 +1,12 @@ { "name": "@opentiny/tiny-engine-builtin-component", - "version": "0.1.0", + "version": "1.0.0", "description": "", "main": "dist/index.js", "module": "dist/index.js", + "publishConfig": { + "access": "public" + }, "files": [ "dist" ], diff --git a/packages/canvas/package.json b/packages/canvas/package.json index ef274c9c6..d733eb627 100644 --- a/packages/canvas/package.json +++ b/packages/canvas/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-canvas", - "version": "1.0.0", + "version": "1.0.2", "publishConfig": { "access": "public" }, @@ -27,12 +27,12 @@ "homepage": "https://opentiny.design/tiny-engine", "dependencies": { "@babel/core": "7.18.13", + "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/tiny-engine-common": "workspace:*", "@opentiny/tiny-engine-controller": "workspace:*", "@opentiny/tiny-engine-i18n-host": "workspace:*", "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/tiny-engine-webcomponent-core": "workspace:*", - "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-icon": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", diff --git a/packages/common/package.json b/packages/common/package.json index 0a05f6e79..1d9818bf9 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-common", - "version": "1.0.0", + "version": "1.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/controller/package.json b/packages/controller/package.json index d801d7a6a..5715983de 100644 --- a/packages/controller/package.json +++ b/packages/controller/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-controller", - "version": "1.0.0", + "version": "1.0.2", "publishConfig": { "access": "public" }, @@ -29,11 +29,11 @@ "license": "MIT", "homepage": "https://opentiny.design/tiny-engine", "dependencies": { + "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/tiny-engine-canvas": "workspace:*", "@opentiny/tiny-engine-common": "workspace:*", "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/tiny-engine-utils": "workspace:*", - "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/vue": "~3.10.0", "@opentiny/vue-renderless": "~3.10.0", "@vue/shared": "^3.3.4", diff --git a/packages/design-core/package.json b/packages/design-core/package.json index e496a1073..56381b58d 100644 --- a/packages/design-core/package.json +++ b/packages/design-core/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine", - "version": "1.0.0", + "version": "1.0.0-beta.3", "description": "TinyEngine enables developers to customize low-code platforms, build low-bit platforms online in real time, and support secondary development or integration of low-bit platform capabilities.", "homepage": "https://opentiny.design/tiny-engine", "keywords": [ @@ -98,10 +98,10 @@ "xlsx": "^0.18.5" }, "devDependencies": { - "@opentiny/tiny-engine-i18n-host": "workspace:*", "@babel/eslint-parser": "^7.21.3", "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@esbuild-plugins/node-modules-polyfill": "^0.2.2", + "@opentiny/tiny-engine-i18n-host": "workspace:*", "@types/node": "^18.0.0", "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^1.3.2", diff --git a/packages/http/package.json b/packages/http/package.json index ffbee017d..707879ad7 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-http", - "version": "1.0.0", + "version": "1.0.1", "publishConfig": { "access": "public" }, diff --git a/packages/i18n/package.json b/packages/i18n/package.json index cad03db17..65001344c 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-i18n-host", - "version": "1.0.0", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/block/package.json b/packages/plugins/block/package.json index ab3b50cab..d43cb3a60 100644 --- a/packages/plugins/block/package.json +++ b/packages/plugins/block/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-block", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/bridge/package.json b/packages/plugins/bridge/package.json index 0e9325190..e36a48674 100644 --- a/packages/plugins/bridge/package.json +++ b/packages/plugins/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-bridge", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/data/package.json b/packages/plugins/data/package.json index 16bafb656..a6d969950 100644 --- a/packages/plugins/data/package.json +++ b/packages/plugins/data/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-data", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/datasource/package.json b/packages/plugins/datasource/package.json index b0d31226d..0d7a11d77 100644 --- a/packages/plugins/datasource/package.json +++ b/packages/plugins/datasource/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-datasource", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/help/package.json b/packages/plugins/help/package.json index d53acb215..eb215d067 100644 --- a/packages/plugins/help/package.json +++ b/packages/plugins/help/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-help", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/i18n/package.json b/packages/plugins/i18n/package.json index 28d826e64..fc674a83f 100644 --- a/packages/plugins/i18n/package.json +++ b/packages/plugins/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-i18n", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/materials/package.json b/packages/plugins/materials/package.json index 771892ebe..84fa02483 100644 --- a/packages/plugins/materials/package.json +++ b/packages/plugins/materials/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-materials", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/page/package.json b/packages/plugins/page/package.json index d7e5c144f..05bbb70c1 100644 --- a/packages/plugins/page/package.json +++ b/packages/plugins/page/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-page", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/robot/package.json b/packages/plugins/robot/package.json index 35a02f483..7b3355069 100644 --- a/packages/plugins/robot/package.json +++ b/packages/plugins/robot/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-robot", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/schema/package.json b/packages/plugins/schema/package.json index 4bdc193cb..0658e3f2c 100644 --- a/packages/plugins/schema/package.json +++ b/packages/plugins/schema/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-schema", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/script/package.json b/packages/plugins/script/package.json index ed7a7c26f..1608f6d03 100644 --- a/packages/plugins/script/package.json +++ b/packages/plugins/script/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-script", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/tree/package.json b/packages/plugins/tree/package.json index 56d42443d..7cb77aa54 100644 --- a/packages/plugins/tree/package.json +++ b/packages/plugins/tree/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-tree", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugins/tutorial/package.json b/packages/plugins/tutorial/package.json index 77cf1a5ba..148ef70ad 100644 --- a/packages/plugins/tutorial/package.json +++ b/packages/plugins/tutorial/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-plugin-tutorial", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/settings/design/package.json b/packages/settings/design/package.json index 644bd9212..cde3e3e4a 100644 --- a/packages/settings/design/package.json +++ b/packages/settings/design/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-setting-design", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/settings/events/package.json b/packages/settings/events/package.json index 51708694c..d62960900 100644 --- a/packages/settings/events/package.json +++ b/packages/settings/events/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-setting-events", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/settings/props/package.json b/packages/settings/props/package.json index 6052787c8..59290d029 100644 --- a/packages/settings/props/package.json +++ b/packages/settings/props/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-setting-props", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/settings/styles/package.json b/packages/settings/styles/package.json index f4f91f2f0..583594442 100644 --- a/packages/settings/styles/package.json +++ b/packages/settings/styles/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-setting-styles", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/svgs/package.json b/packages/svgs/package.json index 4df058490..804537f07 100644 --- a/packages/svgs/package.json +++ b/packages/svgs/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-svgs", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/theme/dark/package.json b/packages/theme/dark/package.json index 116c99cab..3b0663d80 100644 --- a/packages/theme/dark/package.json +++ b/packages/theme/dark/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-theme-dark", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/theme/light/package.json b/packages/theme/light/package.json index 579785523..74adbb81e 100644 --- a/packages/theme/light/package.json +++ b/packages/theme/light/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-theme-light", - "version": "1.0.2", + "version": "1.0.4", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/breadcrumb/package.json b/packages/toolbars/breadcrumb/package.json index 1d773322e..9b93c4e27 100644 --- a/packages/toolbars/breadcrumb/package.json +++ b/packages/toolbars/breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-breadcrumb", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/clean/package.json b/packages/toolbars/clean/package.json index 4654d2f32..3c33d66b7 100644 --- a/packages/toolbars/clean/package.json +++ b/packages/toolbars/clean/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-clean", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/collaboration/package.json b/packages/toolbars/collaboration/package.json index 01f6a8e58..0c9c2399c 100644 --- a/packages/toolbars/collaboration/package.json +++ b/packages/toolbars/collaboration/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-collaboration", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/fullscreen/package.json b/packages/toolbars/fullscreen/package.json index 3046879bf..a55a3d9e6 100644 --- a/packages/toolbars/fullscreen/package.json +++ b/packages/toolbars/fullscreen/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-fullscreen", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/generate-vue/package.json b/packages/toolbars/generate-vue/package.json index 9f500fceb..8bc1310ff 100644 --- a/packages/toolbars/generate-vue/package.json +++ b/packages/toolbars/generate-vue/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-generate-vue", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/lang/package.json b/packages/toolbars/lang/package.json index 206b433f7..567e9bf91 100644 --- a/packages/toolbars/lang/package.json +++ b/packages/toolbars/lang/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-lang", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/layout/package.json b/packages/toolbars/layout/package.json index f6c142813..89b9f3612 100644 --- a/packages/toolbars/layout/package.json +++ b/packages/toolbars/layout/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-layout", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/lock/package.json b/packages/toolbars/lock/package.json index 2a2a10134..ff066db43 100644 --- a/packages/toolbars/lock/package.json +++ b/packages/toolbars/lock/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-checkinout", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/logo/package.json b/packages/toolbars/logo/package.json index dba4bc185..bef5a8b07 100644 --- a/packages/toolbars/logo/package.json +++ b/packages/toolbars/logo/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-logo", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/logout/package.json b/packages/toolbars/logout/package.json index 9aa150017..91ad7a546 100644 --- a/packages/toolbars/logout/package.json +++ b/packages/toolbars/logout/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-logout", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/media/package.json b/packages/toolbars/media/package.json index b52c0e55b..4340b895d 100644 --- a/packages/toolbars/media/package.json +++ b/packages/toolbars/media/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-media", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/preview/package.json b/packages/toolbars/preview/package.json index 322262138..802601acf 100644 --- a/packages/toolbars/preview/package.json +++ b/packages/toolbars/preview/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-preview", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/redoundo/package.json b/packages/toolbars/redoundo/package.json index c95a70566..fbcf4d5ec 100644 --- a/packages/toolbars/redoundo/package.json +++ b/packages/toolbars/redoundo/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-redoundo", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/refresh/package.json b/packages/toolbars/refresh/package.json index fc998c775..b9789cf8d 100644 --- a/packages/toolbars/refresh/package.json +++ b/packages/toolbars/refresh/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-refresh", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/save/package.json b/packages/toolbars/save/package.json index 79c0821fe..c7ebf8bef 100644 --- a/packages/toolbars/save/package.json +++ b/packages/toolbars/save/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-save", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/toolbars/setting/package.json b/packages/toolbars/setting/package.json index 614afc028..0619718a6 100644 --- a/packages/toolbars/setting/package.json +++ b/packages/toolbars/setting/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-toolbar-setting", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 7a7d5dce3..540ecdd0c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-utils", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/vue-generator/package.json b/packages/vue-generator/package.json index 742c1b98b..a16fac182 100644 --- a/packages/vue-generator/package.json +++ b/packages/vue-generator/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-dsl-vue", - "version": "1.0.1", + "version": "1.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/webcomponent/package.json b/packages/webcomponent/package.json index c94d87975..4e6ce37c6 100644 --- a/packages/webcomponent/package.json +++ b/packages/webcomponent/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-engine-webcomponent-core", - "version": "1.0.1", + "version": "1.0.3", "publishConfig": { "access": "public" }, From fe477ad74c178f7c2b7e3fd4c116c997697550ae Mon Sep 17 00:00:00 2001 From: yaoyun8 <142570291+yaoyun8@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:46:55 +0800 Subject: [PATCH 6/6] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90mock=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E8=87=B4=20(#?= =?UTF-8?q?211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复数据源mock数据不一致 * fix:修复构建物料资产包重复组件 --- .../get/app-center/v1/apps/schema/918.json | 669 +++++++++++++++++- scripts/buildMaterials.mjs | 24 +- 2 files changed, 680 insertions(+), 13 deletions(-) diff --git a/mockServer/src/mock/get/app-center/v1/apps/schema/918.json b/mockServer/src/mock/get/app-center/v1/apps/schema/918.json index 92e937621..24abb5191 100644 --- a/mockServer/src/mock/get/app-center/v1/apps/schema/918.json +++ b/mockServer/src/mock/get/app-center/v1/apps/schema/918.json @@ -15,7 +15,674 @@ "gmt_modified": "2023-08-23 10:22:28" }, "dataSource": { - "list": [], + "list": [ + { + "id": 132, + "name": "getAllComponent", + "data": { + "data": [], + "type": "array" + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-06-28T06:26:26.000Z", + "updated_at": "2022-06-28T07:02:30.000Z" + }, + { + "id": 133, + "name": "getAllList", + "data": { + "columns": [ + { + "name": "test", + "title": "测试", + "field": "test", + "type": "string", + "format": {} + }, + { + "name": "test1", + "title": "测试1", + "field": "test1", + "type": "string", + "format": {} + } + ], + "type": "array", + "data": [ + { + "test": "test1", + "test1": "test1", + "_id": "341efc48" + }, + { + "test": "test2", + "test1": "test1", + "_id": "b86b516c" + }, + { + "test": "test3", + "test1": "test1", + "_id": "f680cd78" + } + ], + "options": { + "uri": "", + "method": "GET" + }, + "dataHandler": { + "type": "JSFunction", + "value": "function dataHandler(data) { \n return data \n}" + }, + "willFetch": { + "type": "JSFunction", + "value": "function willFetch(option) {\n return option \n}" + }, + "shouldFetch": { + "type": "JSFunction", + "value": "function shouldFetch(option) {\n return true \n}" + }, + "errorHandler": { + "type": "JSFunction", + "value": "function errorHandler(err) {}" + } + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-06-28T07:32:16.000Z", + "updated_at": "2023-01-19T03:29:11.000Z" + }, + { + "id": 135, + "name": "getAllMaterialList", + "data": { + "columns": [ + { + "name": "id", + "title": "id", + "field": "id", + "type": "string", + "format": {} + }, + { + "name": "name", + "title": "name", + "field": "name", + "type": "string", + "format": {} + }, + { + "name": "framework", + "title": "framework", + "field": "framework", + "type": "string", + "format": { + "required": true + } + }, + { + "name": "components", + "title": "components", + "field": "components", + "type": "string", + "format": {} + }, + { + "name": "content", + "title": "content", + "field": "content", + "type": "string", + "format": {} + }, + { + "name": "url", + "title": "url", + "field": "url", + "type": "string", + "format": {} + }, + { + "name": "published_at", + "title": "published_at", + "field": "published_at", + "type": "string", + "format": {} + }, + { + "name": "created_at", + "title": "created_at", + "field": "created_at", + "type": "string", + "format": {} + }, + { + "name": "updated_at", + "title": "updated_at", + "field": "updated_at", + "type": "string", + "format": {} + }, + { + "name": "published", + "title": "published", + "field": "published", + "type": "string", + "format": {} + }, + { + "name": "last_build_info", + "title": "last_build_info", + "field": "last_build_info", + "type": "string", + "format": {} + }, + { + "name": "tenant", + "title": "tenant", + "field": "tenant", + "type": "string", + "format": {} + }, + { + "name": "version", + "title": "version", + "field": "version", + "type": "string", + "format": {} + }, + { + "name": "description", + "title": "description", + "field": "description", + "type": "string", + "format": {} + } + ], + "type": "array", + "data": [ + { + "id": "f37123ec", + "url": "", + "name": "ng-material", + "tenant": "", + "content": "", + "version": "1.0.0", + "framework": "Angular", + "published": "", + "components": "", + "created_at": "2021-11-02T11:32:22.000Z", + "updated_at": "2021-11-02T11:32:22.000Z", + "description": "angular组件库物料", + "published_at": "2021-11-02T11:32:22.000Z", + "last_build_info": "", + "_id": "2a23e653" + }, + { + "id": "f37123ec", + "url": "", + "name": "ng-material", + "tenant": "", + "content": "", + "version": "1.0.0", + "framework": "Angular", + "published": "", + "components": "", + "created_at": "2021-11-02T11:32:22.000Z", + "updated_at": "2021-11-02T11:32:22.000Z", + "description": "angular组件库物料", + "published_at": "2021-11-02T11:32:22.000Z", + "last_build_info": "", + "_id": "06b253be" + }, + { + "id": "f37123ec", + "url": "", + "name": "ng-material", + "tenant": "", + "content": "", + "version": "1.0.0", + "framework": "Angular", + "published": "", + "components": "", + "created_at": "2021-11-02T11:32:22.000Z", + "updated_at": "2021-11-02T11:32:22.000Z", + "description": "angular组件库物料", + "published_at": "2021-11-02T11:32:22.000Z", + "last_build_info": "", + "_id": "c55a41ed" + }, + { + "id": "f37123ec", + "url": "", + "name": "ng-material", + "tenant": "", + "content": "", + "version": "1.0.0", + "framework": "Angular", + "published": "", + "components": "", + "created_at": "2021-11-02T11:32:22.000Z", + "updated_at": "2021-11-02T11:32:22.000Z", + "description": "angular组件库物料", + "published_at": "2021-11-02T11:32:22.000Z", + "last_build_info": "", + "_id": "f37123ec" + }, + { + "id": "7a63c1a2", + "url": "", + "name": "tiny-vue", + "tenant": "", + "content": "Tiny Vue物料", + "version": "1.0.0", + "framework": "Vue", + "published": "", + "components": "", + "created_at": "", + "updated_at": "", + "description": "Tiny Vue物料", + "published_at": "", + "last_build_info": "", + "_id": "7a63c1a2" + } + ], + "options": { + "uri": "", + "method": "GET" + }, + "willFetch": { + "type": "JSFunction", + "value": "function willFetch(option) {\n return option \n}" + }, + "dataHandler": { + "type": "JSFunction", + "value": "function dataHandler(data) { \n return data \n}" + }, + "shouldFetch": { + "type": "JSFunction", + "value": "function shouldFetch(option) {\n return true \n}" + }, + "errorHandler": { + "type": "JSFunction", + "value": "function errorHandler(err) {}" + } + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-06-29T00:57:50.000Z", + "updated_at": "2023-05-15T02:37:12.000Z" + }, + { + "id": 139, + "name": "treedata", + "data": { + "data": [ + { + "label": "level111", + "value": "111", + "id": "f6609643", + "pid": "", + "_RID": "row_4" + }, + { + "label": "level1-son", + "value": "111-1", + "id": "af1f937f", + "pid": "f6609643", + "_RID": "row_5" + }, + { + "label": "level222", + "value": "222", + "id": "28e3709c", + "pid": "", + "_RID": "row_6" + }, + { + "label": "level2-son", + "value": "222-1", + "id": "6b571bef", + "pid": "28e3709c", + "_RID": "row_5" + }, + { + "id": "6317c2cc", + "pid": "fdfa", + "label": "fsdfaa", + "value": "fsadf", + "_RID": "row_6" + }, + { + "id": "9cce369f", + "pid": "test", + "label": "test1", + "value": "001" + } + ], + "type": "tree" + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-06-30T06:13:57.000Z", + "updated_at": "2022-07-29T03:14:55.000Z" + }, + { + "id": 150, + "name": "componentList", + "data": { + "data": [ + { + "_RID": "row_1", + "name": "表单", + "isSelected": "true", + "description": "由按钮、输入框、选择器、单选框、多选框等控件组成,用以收集、校验、提交数据" + }, + { + "name": "按钮", + "isSelected": "false", + "description": "常用的操作按钮,提供包括默认按钮、图标按钮、图片按钮、下拉按钮等类型" + }, + { + "id": "490f8a00", + "_RID": "row_3", + "name": "表单项", + "framework": "", + "materials": "", + "description": "Form 组件下的 FormItem 配置" + }, + { + "id": "c259b8b3", + "_RID": "row_4", + "name": "开关", + "framework": "", + "materials": "", + "description": "关闭或打开" + }, + { + "id": "083ed9c7", + "_RID": "row_5", + "name": "互斥按钮组", + "framework": "", + "materials": "", + "description": "以按钮组的方式出现,常用于多项类似操作" + }, + { + "id": "09136cea", + "_RID": "row_6", + "name": "提示框", + "framework": "", + "materials": "", + "description": "Popover可通过对一个触发源操作触发弹出框,支持自定义弹出内容,延迟触发和渐变动画" + }, + { + "id": "a63b57d5", + "_RID": "row_7", + "name": "文字提示框", + "framework": "", + "materials": "", + "description": "动态显示提示信息,一般通过鼠标事件进行响应;提供 warning、error、info、success 四种类型显示不同类别的信" + }, + { + "id": "a0f6e8a3", + "_RID": "row_8", + "name": "树", + "framework": "", + "materials": "", + "description": "可进行展示有父子层级的数据,支持选择,异步加载等功能。但不推荐用它来展示菜单,展示菜单推荐使用树菜单" + }, + { + "id": "d1aa18fc", + "_RID": "row_9", + "name": "分页", + "framework": "", + "materials": "", + "description": "当数据量过多时,使用分页分解数据,常用于 Grid 和 Repeater 组件" + }, + { + "id": "ca49cc52", + "_RID": "row_10", + "name": "表格", + "framework": "", + "materials": "", + "description": "提供了非常强大数据表格功能,可以展示数据列表,可以对数据列表进行选择、编辑等" + }, + { + "id": "4e20ecc9", + "name": "搜索框", + "framework": "", + "materials": "", + "description": "指定条件对象进行搜索数据" + }, + { + "id": "6b093ee5", + "name": "折叠面板", + "framework": "", + "materials": "", + "description": "内容区可指定动态页面或自定义 html 等,支持展开收起操作" + }, + { + "id": "0a09abc0", + "name": "对话框", + "framework": "", + "materials": "", + "description": "模态对话框,在浮层中显示,引导用户进行相关操作" + }, + { + "id": "f814b901", + "name": "标签页签项", + "framework": "", + "materials": "", + "description": "tab页签" + }, + { + "id": "c5ae797c", + "name": "单选", + "framework": "", + "materials": "", + "description": "用于配置不同场景的选项,在一组备选项中进行单选" + }, + { + "id": "33d0c590", + "_RID": "row_13", + "name": "弹出编辑", + "framework": "", + "materials": "", + "description": "该组件只能在弹出的面板中选择数据,不能手动输入数据;弹出面板中显示为 Tree 组件或者 Grid 组件" + }, + { + "id": "16711dfa", + "_RID": "row_14", + "name": "下拉框", + "framework": "", + "materials": "", + "description": "Select 选择器是一种通过点击弹出下拉列表展示数据并进行选择的 UI 组件" + }, + { + "id": "a9fd190a", + "_RID": "row_15", + "name": "折叠面板项", + "framework": "", + "materials": "", + "description": "内容区可指定动态页面或自定义 html 等,支持展开收起操作" + }, + { + "id": "a7dfa9ec", + "_RID": "row_16", + "name": "复选框", + "framework": "", + "materials": "", + "description": "用于配置不同场景的选项,提供用户可在一组选项中进行多选" + }, + { + "id": "d4bb8330", + "name": "输入框", + "framework": "", + "materials": "", + "description": "通过鼠标或键盘输入字符" + }, + { + "id": "ced3dc83", + "name": "时间线", + "framework": "", + "materials": "", + "description": "时间线" + } + ], + "type": "array", + "columns": [ + { + "name": "name", + "type": "string", + "field": "name", + "title": "name", + "format": { + "max": 0, + "min": 0, + "dateTime": false, + "required": false, + "stringType": "" + } + }, + { + "name": "description", + "type": "string", + "field": "description", + "title": "description", + "format": { + "max": 0, + "min": 0, + "dateTime": false, + "required": false, + "stringType": "" + } + }, + { + "name": "isSelected", + "type": "string", + "field": "isSelected", + "title": "isSelected", + "format": { + "max": 0, + "min": 0, + "dateTime": false, + "required": false, + "stringType": "" + } + } + ], + "options": { + "uri": "http://localhost:9090/assets/json/bundle.json", + "method": "GET" + }, + "willFetch": { + "type": "JSFunction", + "value": "function willFetch(option) {\n return option \n}" + }, + "dataHandler": { + "type": "JSFunction", + "value": "function dataHandler(data) { \n return data \n}" + }, + "shouldFetch": { + "type": "JSFunction", + "value": "function shouldFetch(option) {\n return true \n}" + }, + "errorHandler": { + "type": "JSFunction", + "value": "function errorHandler(err) {}" + } + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-07-04T02:20:07.000Z", + "updated_at": "2022-07-04T06:25:29.000Z" + }, + { + "id": 151, + "name": "selectedComponents", + "data": { + "columns": [ + { + "name": "name", + "title": "name", + "field": "name", + "type": "string", + "format": { + "required": false, + "stringType": "", + "min": 0, + "max": 0, + "dateTime": false + } + }, + { + "name": "description", + "title": "description", + "field": "description", + "type": "string", + "format": { + "required": false, + "stringType": "", + "min": 0, + "max": 0, + "dateTime": false + } + }, + { + "name": "isSelected", + "title": "isSelected", + "field": "isSelected", + "type": "string", + "format": { + "required": false, + "stringType": "", + "min": 0, + "max": 0, + "dateTime": false + } + } + ], + "type": "array", + "data": [ + { + "name": "标签页", + "description": "分隔内容上有关联但属于不同类别的数据集合", + "isSelected": "true", + "_RID": "row_2" + }, + { + "name": "布局列", + "description": "列配置信息", + "isSelected": "true", + "id": "76a7080a", + "_RID": "row_4" + }, + { + "name": "日期选择器", + "description": "用于设置/选择日期,包括年月/年月日/年月日时分/年月日时分秒日期格式", + "isSelected": "true", + "id": "76b20d73", + "_RID": "row_1" + }, + { + "name": "走马灯", + "description": "常用于一组图片或卡片轮播,当内容空间不足时,可以用走马灯的形式进行收纳,进行轮播展现", + "isSelected": "true", + "id": "4c884c3d" + } + ] + }, + "tpl": null, + "app": "918", + "desc": null, + "created_at": "2022-07-04T03:04:05.000Z", + "updated_at": "2022-07-04T03:43:40.000Z" + } + ], "dataHandler": { "type": "JSFunction", "value": "function dataHanlder(res){\n return res;\n}" diff --git a/scripts/buildMaterials.mjs b/scripts/buildMaterials.mjs index 10db7787f..63f861945 100644 --- a/scripts/buildMaterials.mjs +++ b/scripts/buildMaterials.mjs @@ -13,23 +13,13 @@ const bundlePath = path.join(process.cwd(), '/packages/design-core/public/mock/b // mockServer应用数据 const appInfoPath = path.join(process.cwd(), '/mockServer/src/services/appinfo.json') const appInfo = fsExtra.readJSONSync(appInfoPath) -const bundle = { - data: { - framework: 'Vue', - materials: { - components: [], - blocks: [], - snippets: [] - } - } -} const connection = new MysqlConnection() /** * 更新物料资产包和应用mock数据 */ -const write = () => { +const write = (bundle) => { fsExtra.outputJSONSync(bundlePath, bundle, { spaces: 2 }) fsExtra.outputJSONSync(appInfoPath, appInfo, { spaces: 2 }) } @@ -93,6 +83,16 @@ const generateComponents = () => { logger.warn('物料文件夹为空,请先执行`pnpm splitMaterials`命令拆分物料资产包') } + const bundle = { + data: { + framework: 'Vue', + materials: { + components: [], + blocks: [], + snippets: [] + } + } + } const { components = [], snippets = [], blocks = [] } = bundle.data.materials const componentsMap = [] const appInfoBlocksLabels = appInfo.blockHistories.map((item) => item.label) @@ -150,7 +150,7 @@ const generateComponents = () => { appInfo.materialHistory.components = componentsMap - write() + write(bundle) }) logger.success('构建物料资产包成功')