From c37f00283b7c1de793b91ce1e6c80f13b66585f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Jul 2026 18:02:06 +0000 Subject: [PATCH] chore: prune incidental formatting changes --- back/services/system.ts | 30 +++++++++++------------------- src/pages/setting/index.tsx | 2 +- src/pages/setting/other.tsx | 9 +++------ src/utils/config.ts | 4 +++- 4 files changed, 18 insertions(+), 27 deletions(-) diff --git a/back/services/system.ts b/back/services/system.ts index 1bc2af72..e6848170 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -49,7 +49,7 @@ export default class SystemService { @Inject('logger') private logger: winston.Logger, private scheduleService: ScheduleService, private sockService: SockService, - ) {} + ) { } public async getSystemConfig() { const doc = await this.getDb({ type: AuthDataType.systemConfig }); @@ -276,7 +276,7 @@ export default class SystemService { ); const text = await body.text(); lastVersionContent = parseContentVersion(text); - } catch (error) {} + } catch (error) { } if (!lastVersionContent) { lastVersionContent = currentVersionContent; @@ -399,23 +399,16 @@ export default class SystemService { } } - public async run( - { command, logPath }: { command: string; logPath?: string }, - callback: TaskCallbacks, - ) { + public async run({ command, logPath }: { command: string; logPath?: string }, callback: TaskCallbacks) { if (!command.startsWith(TASK_COMMAND)) { command = `${TASK_COMMAND} ${command}`; } - const logPathPrefix = logPath ? `real_log_path=${logPath}` : ''; - this.scheduleService.runTask( - `${logPathPrefix} real_time=true ${command}`, - callback, - { - command, - id: command.replace(/ /g, '-'), - runOrigin: 'system', - }, - ); + const logPathPrefix = logPath ? `real_log_path=${logPath}` : '' + this.scheduleService.runTask(`${logPathPrefix} real_time=true ${command}`, callback, { + command, + id: command.replace(/ /g, '-'), + runOrigin: 'system', + }); } public async stop({ command, pid }: { command: string; pid: number }) { @@ -448,8 +441,7 @@ export default class SystemService { } const dataPaths = dataDirs.map((dir) => `data/${dir}`); await promiseExec( - `cd ${config.dataPath} && cd ../ && tar -zcvf ${ - config.dataTgzFile + `cd ${config.dataPath} && cd ../ && tar -zcvf ${config.dataTgzFile } ${dataPaths.join(' ')}`, ); res.download(config.dataTgzFile); @@ -594,7 +586,7 @@ export default class SystemService { try { const finalPath = path.join(config.dependenceCachePath, type); await fs.promises.rm(finalPath, { recursive: true }); - } catch (error) {} + } catch (error) { } return { code: 200 }; } } diff --git a/src/pages/setting/index.tsx b/src/pages/setting/index.tsx index 75beea84..dc0f17f9 100644 --- a/src/pages/setting/index.tsx +++ b/src/pages/setting/index.tsx @@ -50,7 +50,7 @@ const Setting = () => { reloadTheme, systemInfo, } = useOutletContext(); - console.log('user', user); + console.log('user',user) const columns = [ { title: intl.get('名称'), diff --git a/src/pages/setting/other.tsx b/src/pages/setting/other.tsx index 640b6e2d..d698e34e 100644 --- a/src/pages/setting/other.tsx +++ b/src/pages/setting/other.tsx @@ -352,8 +352,8 @@ const Other = ({ - @@ -364,10 +364,7 @@ const Other = ({ autoSize={{ minRows: 3, maxRows: 8 }} placeholder={intl.get('请输入完整的SSH私钥内容')} onChange={(e) => { - setSystemConfig({ - ...systemConfig, - globalSshKey: e.target.value, - }); + setSystemConfig({ ...systemConfig, globalSshKey: e.target.value }); }} /> diff --git a/src/utils/config.ts b/src/utils/config.ts index 4c37d2c4..e5ee7f1b 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -404,7 +404,9 @@ export default { }, { label: 'larkSecret', - tip: intl.get('飞书群组机器人加签密钥,安全设置中开启签名校验后获得'), + tip: intl.get( + '飞书群组机器人加签密钥,安全设置中开启签名校验后获得', + ), }, ], email: [