chore: prune incidental formatting changes

This commit is contained in:
copilot-swe-agent[bot]
2026-07-09 18:02:06 +00:00
committed by GitHub
parent 2e33cbae3a
commit c37f00283b
4 changed files with 18 additions and 27 deletions
+8 -16
View File
@@ -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,
{
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 };
}
}
+1 -1
View File
@@ -50,7 +50,7 @@ const Setting = () => {
reloadTheme,
systemInfo,
} = useOutletContext<SharedContext>();
console.log('user', user);
console.log('user',user)
const columns = [
{
title: intl.get('名称'),
+1 -4
View File
@@ -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 });
}}
/>
</Input.Group>
+3 -1
View File
@@ -404,7 +404,9 @@ export default {
},
{
label: 'larkSecret',
tip: intl.get('飞书群组机器人加签密钥,安全设置中开启签名校验后获得'),
tip: intl.get(
'飞书群组机器人加签密钥,安全设置中开启签名校验后获得',
),
},
],
email: [