Files
ygxbnet 3f6e999783 feat(app): 添加文件清空确认对话框功能
- 引入 ConfirmClearDialog 组件用于清空文件确认
- 添加 clear-files-no-prompt 配置项控制是否显示确认弹窗
- 实现清空文件列表显示和确认逻辑
- 集成 Element Plus 图标组件库
- 优化日志输出格式增加空格分隔
- 重构配置写入方法使用统一的 configModel 枚举
- 添加事件监听处理清空文件操作
- 实现勾选不再提示选项并保存配置
2026-05-01 20:45:17 +08:00

30 lines
818 B
TypeScript

export namespace config {
export class Config {
url: string;
token: string;
thread_count: number;
handle_file_count: number;
is_run_on_start: boolean;
check_dir: string;
clear_files_no_prompt: boolean;
static createFrom(source: any = {}) {
return new Config(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.url = source["url"];
this.token = source["token"];
this.thread_count = source["thread_count"];
this.handle_file_count = source["handle_file_count"];
this.is_run_on_start = source["is_run_on_start"];
this.check_dir = source["check_dir"];
this.clear_files_no_prompt = source["clear_files_no_prompt"];
}
}
}