zen-gitsync 2.8.9 → 2.8.11
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 +82 -82
- package/src/ui/public/assets/{index-vQAz4_T8.css → index-CIjgAiBf.css} +1 -1
- package/src/ui/public/assets/index-DX9W2QPB.js +79 -0
- package/src/ui/public/assets/vendor-B1z91bUn.css +1 -1
- package/src/ui/public/assets/{vendor-CPodnCl9.js → vendor-UpIEuUJk.js} +102 -102
- package/src/ui/public/index.html +3 -3
- package/src/ui/server/index.js +19 -0
- package/src/ui/public/assets/index-hnpr4m_T.js +0 -79
package/src/ui/public/index.html
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>Zen GitSync</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-DX9W2QPB.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-UpIEuUJk.js">
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/vendor-B1z91bUn.css">
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CIjgAiBf.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="app"></div>
|
package/src/ui/server/index.js
CHANGED
|
@@ -1438,6 +1438,25 @@ async function startUIServer(noOpen = false, savePort = false) {
|
|
|
1438
1438
|
try {
|
|
1439
1439
|
// console.log('获取配置中。。。')
|
|
1440
1440
|
const config = await configManager.loadConfig()
|
|
1441
|
+
|
|
1442
|
+
// 兼容旧数据:补齐自定义命令 id,避免前端编辑/删除/编排引用异常
|
|
1443
|
+
if (Array.isArray(config.customCommands)) {
|
|
1444
|
+
let changed = false
|
|
1445
|
+
config.customCommands = config.customCommands.map((cmd) => {
|
|
1446
|
+
if (cmd && typeof cmd === 'object' && !cmd.id) {
|
|
1447
|
+
changed = true
|
|
1448
|
+
return {
|
|
1449
|
+
...cmd,
|
|
1450
|
+
id: `cmd_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
return cmd
|
|
1454
|
+
})
|
|
1455
|
+
if (changed) {
|
|
1456
|
+
await configManager.saveConfig(config)
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1441
1460
|
// console.log('获取配置成功')
|
|
1442
1461
|
res.json(config)
|
|
1443
1462
|
} catch (error) {
|