zen-gitsync 2.11.2 → 2.11.4
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/README.md +1 -1
- package/package.json +1 -1
- package/src/config.js +20 -0
- package/src/ui/public/assets/index-ByZIPrdG.css +1 -0
- package/src/ui/public/assets/index-C9dA2Gmn.js +108 -0
- package/src/ui/public/assets/{vendor-B12x6pMa.js → vendor-BSAE54oX.js} +233 -240
- package/src/ui/public/assets/vendor-COoKXBNX.css +1 -0
- package/src/ui/public/index.html +4 -4
- package/src/ui/server/routes/config.js +31 -0
- package/src/ui/server/routes/fileOpen.js +57 -5
- package/src/ui/server/routes/fs.js +51 -1
- package/src/ui/public/assets/index-C4_PwIYq.js +0 -108
- package/src/ui/public/assets/index-CeUTujBp.css +0 -1
- package/src/ui/public/assets/vendor-BeS3b13U.css +0 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ start /min cmd /k "g -y --path=你要同步的文件夹 --interval"
|
|
|
76
76
|
```shell
|
|
77
77
|
start /min cmd /k "g --cmd=\"echo hello\" --cmd-interval=5" # 每5秒执行一次echo hello
|
|
78
78
|
start /min cmd /k "g --cmd=\"echo at-time\" --at=23:59" # 在23:59执行一次echo at-time
|
|
79
|
-
start /min cmd /k "g --cmd=\"echo daily\" --at=23:59 --daily" # 每天23:59执行一次echo daily
|
|
79
|
+
start /min cmd /k "g --cmd=\"echo daily\" --at=23:59 --daily" # 每天23:59执行一次echo daily
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
#### 不显示git diff内容
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -32,6 +32,12 @@ const defaultConfig = {
|
|
|
32
32
|
refId: ''
|
|
33
33
|
},
|
|
34
34
|
currentDirectory: '',
|
|
35
|
+
// 提交设置
|
|
36
|
+
isStandardCommit: true,
|
|
37
|
+
skipHooks: false,
|
|
38
|
+
autoQuickPushOnEnter: false,
|
|
39
|
+
autoSetDefaultMessage: false,
|
|
40
|
+
autoClosePushModal: false,
|
|
35
41
|
// 通用设置
|
|
36
42
|
theme: 'light', // 主题: light | dark | auto
|
|
37
43
|
locale: 'zh-CN' // 语言: zh-CN | en-US
|
|
@@ -254,6 +260,19 @@ async function saveRecentDirectory(dirPath) {
|
|
|
254
260
|
return list;
|
|
255
261
|
}
|
|
256
262
|
|
|
263
|
+
async function removeRecentDirectory(dirPath) {
|
|
264
|
+
if (!dirPath || typeof dirPath !== 'string') return;
|
|
265
|
+
const state = await safeLoadRaw();
|
|
266
|
+
if (!state.ok) return [];
|
|
267
|
+
const raw = state.obj;
|
|
268
|
+
let list = Array.isArray(raw.recentDirectories) ? raw.recentDirectories.slice() : [];
|
|
269
|
+
const normalized = normalizeProjectPath(dirPath);
|
|
270
|
+
list = list.filter(p => normalizeProjectPath(p) !== normalized);
|
|
271
|
+
raw.recentDirectories = list;
|
|
272
|
+
await writeRawConfigFile(raw);
|
|
273
|
+
return list;
|
|
274
|
+
}
|
|
275
|
+
|
|
257
276
|
// 添加配置管理函数
|
|
258
277
|
async function handleConfigCommands() {
|
|
259
278
|
if (process.argv.includes('get-config')) {
|
|
@@ -284,6 +303,7 @@ export default {
|
|
|
284
303
|
getLockedFiles,
|
|
285
304
|
getRecentDirectories,
|
|
286
305
|
saveRecentDirectory,
|
|
306
|
+
removeRecentDirectory,
|
|
287
307
|
readRawConfigFile,
|
|
288
308
|
writeRawConfigFile
|
|
289
309
|
};
|