feat: 添加终端回滚行数设置

This commit is contained in:
Baobhan Sith
2025-05-05 17:06:10 +08:00
parent d3cae06c63
commit 4c983945db
8 changed files with 136 additions and 5 deletions
@@ -268,6 +268,7 @@ export const ensureDefaultSettingsExist = async (db: sqlite3.Database): Promise<
[SIDEBAR_CONFIG_KEY]: JSON.stringify(defaultSidebarPanesStructure),
[CAPTCHA_CONFIG_KEY]: JSON.stringify(defaultCaptchaSettings),
timezone: 'UTC', // NEW: 添加时区默认值
terminalScrollbackLimit: '5000', // NEW: 添加终端回滚行数默认值
};
const nowSeconds = Math.floor(Date.now() / 1000);
const sqlInsertOrIgnore = `INSERT OR IGNORE INTO settings (key, value, created_at, updated_at) VALUES (?, ?, ?, ?)`;