update
This commit is contained in:
@@ -171,7 +171,7 @@ export const deleteTheme = async (id: number): Promise<boolean> => {
|
||||
* 初始化预设主题 (如果不存在)
|
||||
*/
|
||||
export const initializePresetThemes = async () => {
|
||||
const defaultPresetName = '默认暗色'; // Default Dark
|
||||
const defaultPresetName = '默认'; // Default Light
|
||||
const themeDataJson = JSON.stringify(defaultXtermTheme);
|
||||
const now = Date.now();
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ export class StatusMonitorService {
|
||||
* @returns Promise<ServerStatus> 服务器状态信息
|
||||
*/
|
||||
private async fetchServerStatus(sshClient: Client, sessionId: string): Promise<ServerStatus> {
|
||||
console.debug(`[StatusMonitor ${sessionId}] Fetching server status...`);
|
||||
// console.debug(`[StatusMonitor ${sessionId}] Fetching server status...`);
|
||||
const timestamp = Date.now();
|
||||
let status: Partial<ServerStatus> = { timestamp };
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { ITheme } from 'xterm';
|
||||
*/
|
||||
export interface TerminalTheme {
|
||||
_id?: string; // NeDB 自动生成的 ID
|
||||
name: string; // 主题名称,例如 "默认暗色", "Solarized Light"
|
||||
name: string; // 主题名称,例如 "默认", "Solarized Light"
|
||||
themeData: ITheme; // xterm.js 的 ITheme 对象
|
||||
isPreset: boolean; // 是否为系统预设主题
|
||||
isSystemDefault?: boolean; // (可选) 是否为系统默认主题
|
||||
|
||||
Reference in New Issue
Block a user