zen-gitsync 2.11.16 → 2.11.18
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 +1 -1
- package/src/ui/public/assets/index-BiJKdrnL.css +1 -0
- package/src/ui/public/assets/index-De_hyyUb.js +109 -0
- package/src/ui/public/assets/{vendor-B0E7kpbo.css → vendor-CKZkoBDj.css} +1 -1
- package/src/ui/public/assets/{vendor-CNQxajSy.js → vendor-Ih5RdUJO.js} +217 -217
- package/src/ui/public/index.html +4 -4
- package/src/ui/server/routes/config.js +26 -0
- package/src/ui/public/assets/index-CznTchnm.js +0 -109
- package/src/ui/public/assets/index-DKRuCE6_.css +0 -1
package/src/ui/public/index.html
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
11
11
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
12
12
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/vendor-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-De_hyyUb.js"></script>
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-Ih5RdUJO.js">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/vendor-CKZkoBDj.css">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BiJKdrnL.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="app"></div>
|
|
@@ -507,6 +507,32 @@ export function registerConfigRoutes({
|
|
|
507
507
|
}
|
|
508
508
|
})
|
|
509
509
|
|
|
510
|
+
// 置顶自定义命令(移到数组首位)
|
|
511
|
+
app.post('/api/config/pin-custom-command', express.json(), async (req, res) => {
|
|
512
|
+
try {
|
|
513
|
+
const { id } = req.body
|
|
514
|
+
|
|
515
|
+
if (!id) {
|
|
516
|
+
return res.status(400).json({ success: false, error: '缺少命令ID参数' })
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const config = await configManager.loadConfig()
|
|
520
|
+
|
|
521
|
+
if (Array.isArray(config.customCommands)) {
|
|
522
|
+
const index = config.customCommands.findIndex(cmd => cmd.id === id)
|
|
523
|
+
if (index > 0) {
|
|
524
|
+
const [cmd] = config.customCommands.splice(index, 1)
|
|
525
|
+
config.customCommands.unshift(cmd)
|
|
526
|
+
await configManager.saveConfig(config)
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
res.json({ success: true })
|
|
531
|
+
} catch (error) {
|
|
532
|
+
res.status(500).json({ success: false, error: error.message })
|
|
533
|
+
}
|
|
534
|
+
})
|
|
535
|
+
|
|
510
536
|
// 更新自定义命令
|
|
511
537
|
app.post('/api/config/update-custom-command', express.json(), async (req, res) => {
|
|
512
538
|
try {
|