@ibiz-template/full-code-template 0.7.41-rc.1 → 0.7.41-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ibiz-template/full-code-template",
3
- "version": "0.7.41-rc.1",
3
+ "version": "0.7.41-rc.10",
4
4
  "description": "vue3全代码模版包,根据包内容生成项目代码。",
5
- "publicPath": "https://gitee.com/api/v5/repos/iBizModeling/ibiz-fullcode-resources/raw/0.7.41-rc.1.zip?ref=main",
5
+ "publicPath": "https://gitee.com/api/v5/repos/iBizModeling/ibiz-fullcode-resources/raw/0.7.41-rc.10.zip?ref=main",
6
6
  "bin": {
7
7
  "code-generator": "src/index.js"
8
8
  },
@@ -17,7 +17,7 @@
17
17
  "author": "ibiz",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@ibizlab/cli": "^0.2.30",
20
+ "@ibizlab/cli": "^0.2.31",
21
21
  "axios": "^1.13.2",
22
22
  "commander": "^12.0.0",
23
23
  "extract-zip": "^2.0.1",
package/src/index.js CHANGED
@@ -67,21 +67,24 @@ async function main() {
67
67
  const targetPublicPath = path.resolve(path.join(__dirname, '../static/public'));
68
68
  const templatePath = path.resolve(path.join(__dirname, '../template'));
69
69
 
70
- // 从项目的 package.json 中获取 publicPath 字段,下载并解压至 static/public 目录
71
- let sourcePublicPath;
72
- try {
73
- const data = fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8');
74
- const projectPackageJson = JSON.parse(data);
75
- sourcePublicPath = projectPackageJson.publicPath;
76
- } catch (error) {
77
- console.error('获取项目package.json出错:', error);
78
- exit(1);
79
- }
80
- if (!sourcePublicPath) {
81
- console.error('package.json文件无publicPath属性定义');
82
- exit(1);
70
+ // 不存在才去下载public目录资源
71
+ if (!fs.existsSync(targetPublicPath)) {
72
+ // 从项目的 package.json 中获取 publicPath 字段,下载并解压至 static/public 目录
73
+ let sourcePublicPath;
74
+ try {
75
+ const data = fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8');
76
+ const projectPackageJson = JSON.parse(data);
77
+ sourcePublicPath = projectPackageJson.publicPath;
78
+ } catch (error) {
79
+ console.error('获取项目package.json出错:', error);
80
+ exit(1);
81
+ }
82
+ if (!sourcePublicPath) {
83
+ console.error('package.json文件无publicPath属性定义');
84
+ exit(1);
85
+ }
86
+ await downloadAndExtractZip(`${sourcePublicPath}&access_token=${readonlyToken}`, targetPublicPath);
83
87
  }
84
- await downloadAndExtractZip(`${sourcePublicPath}&access_token=${readonlyToken}`, targetPublicPath);
85
88
 
86
89
  program
87
90
  .option('-m, --model <model-path>', '模型目录')
@@ -12,6 +12,7 @@
12
12
  - 修复视图上一条,下一条切换异常问题
13
13
  - 修复项目应用无appUtils资源时启动报错的问题
14
14
  - 修复列表导航栏和表格导航栏绘制异常
15
+ - 修复抽屉打开视图宽高丢失
15
16
 
16
17
  ### PackageUpgrade
17
18
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ibiz-template/full-code-template",
3
3
  "private": true,
4
- "version": "0.7.41-rc.1",
4
+ "version": "0.7.41-rc.10",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -10,7 +10,8 @@
10
10
  "lint": "eslint 'src/**/*.tsx' 'src/**/*.ts' 'src/**/*.vue'",
11
11
  "lint:style": "stylelint 'src/**/*.scss'",
12
12
  "pub:temp": "publish -p .",
13
- "pub:code": "generate -m /home/zpc/workspace/project/quickstart/model -o ./ --app web -tv 0.7.41-rc.1 --local-mode",
13
+ "pub:dev": "ibizlab pub -m /home/zpc/workspace/project/quickstart/model -t ./template -o ./src/publish --app web && npm run prettier",
14
+ "pub:code": "generate -m /home/zpc/workspace/project/quickstart/model -o ./ --app web -tv 0.7.41-rc.10 --local-mode",
14
15
  "compute:pkg": "ibiz-temp compute-pkg -m /home/zpc/workspace/project/quickstart/model --app web",
15
16
  "download:pkg": "ibiz-temp download-pkg",
16
17
  "prettier": "prettier --ignore-path '' 'src/publish/**/*.(ts|vue|tsx)' -w",
@@ -20,17 +21,17 @@
20
21
  "@antv/x6": "^2.18.1",
21
22
  "@floating-ui/dom": "^1.5.3",
22
23
  "@ibiz-template-plugin/bi-report": "0.0.32",
23
- "@ibiz-template-plugin/data-view": "0.0.6",
24
- "@ibiz-template/core": "0.7.41-alpha.63",
24
+ "@ibiz-template-plugin/data-view": "0.0.7",
25
+ "@ibiz-template/core": "0.7.41-alpha.101",
25
26
  "@ibiz-template/devtool": "0.0.14",
26
- "@ibiz-template/model-helper": "0.7.41-alpha.71",
27
- "@ibiz-template/runtime": "0.7.41-alpha.71",
27
+ "@ibiz-template/model-helper": "0.7.41-alpha.102",
28
+ "@ibiz-template/runtime": "0.7.41-alpha.102",
28
29
  "@ibiz-template/theme": "0.7.39",
29
- "@ibiz-template/vue3-components": "0.7.41-alpha.66",
30
- "@ibiz-template/vue3-util": "0.7.41-alpha.71",
31
- "@ibiz-template/web-theme": "3.11.0",
32
- "@ibiz/model-core": "^0.1.84",
33
- "@ibiz/rt-model-api": "^0.2.82",
30
+ "@ibiz-template/vue3-components": "0.7.41-alpha.95",
31
+ "@ibiz-template/vue3-util": "0.7.41-alpha.102",
32
+ "@ibiz-template/web-theme": "3.12.0",
33
+ "@ibiz/model-core": "^0.1.86",
34
+ "@ibiz/rt-model-api": "^0.2.84",
34
35
  "@imengyu/vue3-context-menu": "^1.3.5",
35
36
  "@wangeditor/editor": "^5.1.23",
36
37
  "@wangeditor/editor-for-vue": "^5.1.12",
@@ -59,8 +60,8 @@
59
60
  "@commitlint/cli": "^17.8.0",
60
61
  "@commitlint/config-conventional": "^17.8.0",
61
62
  "@ibiz-template/cli": "^0.3.30",
62
- "@ibiz-template/full-code-generator": "^0.0.8",
63
- "@ibizlab/cli": "^0.2.30",
63
+ "@ibiz-template/full-code-generator": "^0.0.10",
64
+ "@ibizlab/cli": "^0.2.31",
64
65
  "@types/lodash-es": "^4.17.10",
65
66
  "@types/node": "^20.8.7",
66
67
  "@types/nprogress": "^0.2.2",