@yorha2b-lab/autodev 5.3.0 → 5.3.1

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/bin/autodev.js CHANGED
@@ -7,7 +7,7 @@ const { program } = require('commander')
7
7
  const { local, matrixEffect, bootSequence } = require('../src/utils/ux')
8
8
 
9
9
  const dialogs = require('../src/bootstrap/registry')({ dir: path.join(__dirname, '../src/dialogs') })
10
- const dialog = dialogs[local]
10
+ const dialog = dialogs[local] ?? dialogs['EN-US']
11
11
 
12
12
  program
13
13
  .version(pkg.version)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "基于视觉大模型的前端(react+Antd)全自动 CRUD 代码生成器",
5
5
  "bin": {
6
6
  "autodev": "bin/autodev.js"
@@ -31,9 +31,9 @@ module.exports = {
31
31
  bridgeProtocolComplete: (count, time) => `Semantic bridge protocol complete. Corrected ${count} field deviations. Elapsed: ${time}s`,
32
32
  },
33
33
  bunker: {
34
- exit: 'Signal Lost',
35
- envCopy: '.env storage complete',
34
+ exit: 'Signal Lost...',
36
35
  envCheck: '.env already exists',
36
+ envCopy: '.env storage complete',
37
37
  systemStandby: 'System is STANDBY',
38
38
  configCheck: 'config.js already exists',
39
39
  configCopy: 'config.js storage complete',
@@ -31,7 +31,7 @@ module.exports = {
31
31
  bridgeProtocolComplete: (count, time) => `语义桥接协议执行完毕。已物理修正 ${count} 处字段偏差。耗时: ${time}s`,
32
32
  },
33
33
  bunker: {
34
- exit: '系统信号已丢失',
34
+ exit: '系统信号已丢失...',
35
35
  envCopy: '.env 存储完毕',
36
36
  argDesc: '指定前端框架模板',
37
37
  systemStandby: '系统待机中...',
@@ -38,9 +38,9 @@ const onTabChange = key => {
38
38
  {{#if hasExpandable}}
39
39
  const onExpand = async (expanded, record) => {
40
40
  if (expanded) {
41
- setExpandedRowKeys(prev=>[...prev, record.key])
41
+ setExpandedRowKeys(prev=>[...prev, record[rowKey])
42
42
  } else {
43
- setExpandedRowKeys(prev=>prev.filter(item => item !== record.key))
43
+ setExpandedRowKeys(prev=>prev.filter(item => item !== record[rowKey]))
44
44
  }
45
45
  }
46
46
 
package/src/utils/ux.js CHANGED
@@ -90,7 +90,7 @@ const matrixEffect = async (duration = 1500, dialog) => {
90
90
  console.log(chalk.yellow(dialog.bunker.isLegendary(isLegendary, currentTotal, threshold)))
91
91
  }
92
92
  console.log(chalk.cyan(dialog.bunker.star))
93
- console.log(chalk.cyan(dialog.bunker.exit))
93
+ console.log(chalk.gray(dialog.bunker.exit))
94
94
  process.exit(0)
95
95
  return
96
96
  }