diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 16badf9..7f75653 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -85,7 +85,7 @@ const routes: RouteRecordRaw[] = [ { path: '/settings', name: 'Settings', - component: () => import('../views/Settings.vue'), + component: () => import('../views/setting/index.vue'), meta: { title: '设置' }, }, { diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue deleted file mode 100644 index 34b47ca..0000000 --- a/frontend/src/views/Settings.vue +++ /dev/null @@ -1,1754 +0,0 @@ - - - - - - 设置 - - - - - - - - - - 外观配置 - - - - - - 主题模式 - - - - - - - - - - - 主题色 - - - - - - - - - {{ option.label }} - - - - - - - - - - - 系统托盘 - - - - - - 常态显示托盘图标 - - - - - handleSettingChange('UI', 'IfShowTray', checked)" - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 最小化到托盘 - - - - - handleSettingChange('UI', 'IfToTray', checked)" - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - - - - - - 功能设置 - - - - - - 历史记录保留时间 - - - - - - handleSettingChange('Function', 'HistoryRetentionTime', value) - " - :options="historyRetentionOptions" - size="large" - style="width: 100%" - /> - - - - - - 运行时阻止系统休眠 - - - - - handleSettingChange('Function', 'IfAllowSleep', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - 静默模式 - - - - - handleSettingChange('Function', 'IfSilence', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 模拟器老板键 - - - - - - - - - - - - - 托管Bilibili游戏隐私政策 - - - - - 开启本项即代表您已完整阅读并同意以下协议,并授权本程序在其认定需要时以其认定合适的方法替您处理相关弹窗: - - - - - 《哔哩哔哩弹幕网用户使用协议》 - - - - - 《哔哩哔哩隐私政策》 - - - - - 《哔哩哔哩游戏中心用户协议》 - - - - - - - - - - handleSettingChange('Function', 'IfAgreeBilibili', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 屏蔽MuMu启动广告 - - - - - - handleSettingChange('Function', 'IfSkipMumuSplashAds', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - - - - - - 通知内容 - - - - - - 推送任务结果时机 - - - - - handleSettingChange('Notify', 'SendTaskResultTime', value) - " - :options="sendTaskResultTimeOptions" - size="large" - style="width: 100%" - /> - - - - - - 推送统计信息 - - - - - handleSettingChange('Notify', 'IfSendStatistic', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 推送公招高资喜报 - - - - - handleSettingChange('Notify', 'IfSendSixStar', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - 系统通知 - - - - - - 启用系统通知 - - - - - handleSettingChange('Notify', 'IfPushPlyer', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - 邮件通知 - - 文档 - - - - - - - 启用邮件通知 - - - - - handleSettingChange('Notify', 'IfSendMail', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - SMTP服务器地址 - - - - - - - - - - - - - 发信邮箱地址 - - - - - - - - - - - 发信邮箱授权码 - - - - - - - - - - - - - 收信邮箱地址 - - - - - - - - - - - - - Server酱通知 - - 文档 - - - - - - - 启用Server酱通知 - - - 使用Server酱推送通知 - - - - - handleSettingChange('Notify', 'IfServerChan', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - Server酱Key - - - Server酱的SendKey,请自行查看文档以获取 - - - - - - - - - - - - - 企业微信机器人通知 - - 文档 - - - - - - - 启用企业微信机器人通知 - - - - - - handleSettingChange('Notify', 'IfCompanyWebHookBot', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - Webhook URL - - - - - - - - - - - - - 通知测试 - - - - - 发送测试通知 - - - - - - - - - - - - - 更新配置 - - - - - - - 检查更新 - - - - - - - 自动检查更新 - - - - - handleSettingChange('Update', 'IfAutoUpdate', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 更新类型 - - - - - handleSettingChange('Update', 'UpdateType', value)" - :options="updateTypeOptions" - size="large" - style="width: 100%" - /> - - - - - - 更新源 - - - - - handleSettingChange('Update', 'Source', value)" - :options="updateSourceOptions" - size="large" - style="width: 100%" - /> - - - - - - - - 网络代理地址 - - - - - - - - - - - Mirror酱 CDK - - - - Mirror酱CDK是使用Mirror源进行高速下载的凭证,可前往 - - Mirror酱官网 - - 获取 - - - - - - - - - - - - - - - - - - - 启动配置 - - - - - - 开机自启 - - - - - handleSettingChange('Start', 'IfSelfStart', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 启动后直接最小化 - - - - - - handleSettingChange('Start', 'IfMinimizeDirectly', checked) - " - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - - - - - - - - 语音配置 - - - - - - 启用音效 - - - - - handleSettingChange('Voice', 'Enabled', checked)" - size="large" - style="width: 100%" - > - 是 - 否 - - - - - - - 音效模式 - - - - - handleSettingChange('Voice', 'Type', value)" - :options="voiceTypeOptions" - :disabled="!settings.Voice.Enabled" - size="large" - style="width: 100%" - /> - - - - - - - - - - - - - 开发者选项 - - - - - 查看日志 - 打开开发者工具 - - - - - - - - - - - - - 镜像站配置 - - 管理下载站和加速站配置,支持从云端自动更新最新的镜像站列表 - - - - - - - - 配置状态 - - - - - {{ mirrorConfigStatus.source === 'cloud' ? '云端配置' : '本地兜底配置' }} - - - - {{ mirrorConfigStatus.version }} - - - {{ new Date(mirrorConfigStatus.lastUpdated).toLocaleString() }} - - - - - - - - - - - 配置管理 - - - - 更新云端最新配置 - - - - - - - - - 测试页面 - - - - - - - - - - - 说明 - - - - - 应用启动时会自动尝试从云端拉取最新的镜像站配置 - 可以手动点击"刷新云端配置"按钮获取最新配置 - - - - - - - - - - - - - - - - 项目链接 - - - - - - - - - 软件官网 - 查看最新版本和功能介绍 - - 访问官网 - - - - - - - - - - - GitHub仓库 - 查看源代码、提交issue和贡献 - - 访问仓库 - - - - - - - - - - - 用户QQ群 - 加入社区,获取帮助和交流 - - 加入群聊 - - - - - - - - - - 应用信息 - - - - - 软件名称: - AUTO-MAS - - - 许可证: - GPL-3.0 license - - - - - 开发者: - AUTO-MAS Team - - - - - - - - - - - - 当前前端版本: - {{ version }} - - - 当前后端哈希值: - {{ backendUpdateInfo?.current_hash }} - - - - - 当前后端版本: - {{ backendUpdateInfo?.current_version }} - - - 后端更新时间: - {{ backendUpdateInfo?.current_time }} - - - - - - - - - - - - - - diff --git a/frontend/src/views/setting/TabAdvanced.vue b/frontend/src/views/setting/TabAdvanced.vue new file mode 100644 index 0000000..7cd84a3 --- /dev/null +++ b/frontend/src/views/setting/TabAdvanced.vue @@ -0,0 +1,20 @@ + + + + + + 开发者选项 + + + + + 查看日志 + 打开开发者工具 + + + + + + diff --git a/frontend/src/views/setting/TabBasic.vue b/frontend/src/views/setting/TabBasic.vue new file mode 100644 index 0000000..57ca14d --- /dev/null +++ b/frontend/src/views/setting/TabBasic.vue @@ -0,0 +1,134 @@ + + + + + + + 外观配置 + + + + + + 主题模式 + + + + + + + + + + + 主题色 + + + + + + + + + {{ option.label }} + + + + + + + + + + + 系统托盘 + + + + + + 常态显示托盘图标 + + + + + handleSettingChange('UI', 'IfShowTray', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + 最小化到托盘 + + + + + handleSettingChange('UI', 'IfToTray', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + diff --git a/frontend/src/views/setting/TabFunction.vue b/frontend/src/views/setting/TabFunction.vue new file mode 100644 index 0000000..e6dd1cf --- /dev/null +++ b/frontend/src/views/setting/TabFunction.vue @@ -0,0 +1,151 @@ + + + + + + 功能设置 + + + + + + 历史记录保留时间 + + + + + handleSettingChange('Function', 'HistoryRetentionTime', value)" + :options="historyRetentionOptions" + size="large" + style="width: 100%" + /> + + + + + + 运行时阻止系统休眠 + + + + + handleSettingChange('Function', 'IfAllowSleep', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + + + 静默模式 + + + + + handleSettingChange('Function', 'IfSilence', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + 模拟器老板键 + + + + + + + + + + + + + 托管Bilibili游戏隐私政策 + + + + 开启本项即代表您已完整阅读并同意以下协议,并授权本程序在其认定需要时以其认定合适的方法替您处理相关弹窗: + + + 《哔哩哔哩弹幕网用户使用协议》 + + + 《哔哩哔哩隐私政策》 + + + 《哔哩哔哩游戏中心用户协议》 + + + + + + + + handleSettingChange('Function', 'IfAgreeBilibili', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + 屏蔽MuMu启动广告 + + + + + handleSettingChange('Function', 'IfSkipMumuSplashAds', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + diff --git a/frontend/src/views/setting/TabMirrors.vue b/frontend/src/views/setting/TabMirrors.vue new file mode 100644 index 0000000..dd738b1 --- /dev/null +++ b/frontend/src/views/setting/TabMirrors.vue @@ -0,0 +1,72 @@ + + + + + + 镜像站配置 + 管理下载站和加速站配置,支持从云端自动更新最新的镜像站列表 + + + + + + 配置状态 + + + + + {{ mirrorConfigStatus.source === 'cloud' ? '云端配置' : '本地兜底配置' }} + + + + {{ mirrorConfigStatus.version }} + + + {{ new Date(mirrorConfigStatus.lastUpdated).toLocaleString() }} + + + + + + + + + + + 配置管理 + + + 更新云端最新配置 + 测试页面 + + + + + + + + + + 说明 + + + + + 应用启动时会自动尝试从云端拉取最新的镜像站配置 + 可以手动点击"刷新云端配置"按钮获取最新配置 + + + + + + + + + diff --git a/frontend/src/views/setting/TabNotify.vue b/frontend/src/views/setting/TabNotify.vue new file mode 100644 index 0000000..1dc8e70 --- /dev/null +++ b/frontend/src/views/setting/TabNotify.vue @@ -0,0 +1,335 @@ + + + + + + 通知内容 + + + + + + 推送任务结果时机 + + + + + handleSettingChange('Notify', 'SendTaskResultTime', value)" + :options="sendTaskResultTimeOptions" + size="large" + style="width: 100%" + /> + + + + + + 推送统计信息 + + + + + handleSettingChange('Notify', 'IfSendStatistic', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + 推送公招高资喜报 + + + + + handleSettingChange('Notify', 'IfSendSixStar', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + + + 系统通知 + + + + + + 启用系统通知 + + + + + handleSettingChange('Notify', 'IfPushPlyer', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + + + 邮件通知 + + 文档 + + + + + + + 启用邮件通知 + + + + + handleSettingChange('Notify', 'IfSendMail', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + SMTP服务器地址 + + + + + + + + + + + + + 发信邮箱地址 + + + + + + + + + + + 发信邮箱授权码 + + + + + + + + + + + + + 收信邮箱地址 + + + + + + + + + + + + + Server酱通知 + + 文档 + + + + + + + 启用Server酱通知 + + + 使用Server酱推送通知 + + + + + handleSettingChange('Notify', 'IfServerChan', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + Server酱Key + + + Server酱的SendKey,请自行查看文档以获取 + + + + + + + + + + + + + 企业微信机器人通知 + + 文档 + + + + + + + 启用企业微信机器人通知 + + + + + handleSettingChange('Notify', 'IfCompanyWebHookBot', checked)" + size="large" + style="width: 100%" + > + 是 + 否 + + + + + + + Webhook URL + + + + + + + + + + + + + 通知测试 + + + + + 发送测试通知 + + + + + + diff --git a/frontend/src/views/setting/TabOthers.vue b/frontend/src/views/setting/TabOthers.vue new file mode 100644 index 0000000..fc1353c --- /dev/null +++ b/frontend/src/views/setting/TabOthers.vue @@ -0,0 +1,76 @@ + + + + + + 项目链接 + + + + + + + 软件官网 + 查看最新版本和功能介绍 + 访问官网 + + + + + + + + GitHub仓库 + 查看源代码、提交issue和贡献 + 访问仓库 + + + + + + + + 用户QQ群 + 加入社区,获取帮助和交流 + 加入群聊 + + + + + + + + + 应用信息 + + + + 软件名称:AUTO-MAS + 许可证:GPL-3.0 license + + + 开发者:AUTO-MAS Team + + + + + + 当前前端版本:{{ version }} + 当前后端哈希值:{{ backendUpdateInfo?.current_hash }} + + + 当前后端版本:{{ backendUpdateInfo?.current_version }} + 后端更新时间:{{ backendUpdateInfo?.current_time }} + + + + + diff --git a/frontend/src/views/setting/TabStart.vue b/frontend/src/views/setting/TabStart.vue new file mode 100644 index 0000000..2f995f8 --- /dev/null +++ b/frontend/src/views/setting/TabStart.vue @@ -0,0 +1,58 @@ + + + + + + 启动配置 + + + + + + 开机自启 + + + + + handleSettingChange('Start', 'IfSelfStart', checked)" + size="large" + style="width:100%" + > + 是 + 否 + + + + + + + 启动后直接最小化 + + + + + handleSettingChange('Start', 'IfMinimizeDirectly', checked)" + size="large" + style="width:100%" + > + 是 + 否 + + + + + + + diff --git a/frontend/src/views/setting/TabUpdate.vue b/frontend/src/views/setting/TabUpdate.vue new file mode 100644 index 0000000..11b64af --- /dev/null +++ b/frontend/src/views/setting/TabUpdate.vue @@ -0,0 +1,126 @@ + + + + + + 更新配置 + + + + + + + 检查更新 + + + + + + + 自动检查更新 + + + + + handleSettingChange('Update', 'IfAutoUpdate', checked)" + size="large" + style="width:100%" + > + 是 + 否 + + + + + + + 更新类型 + + + + + handleSettingChange('Update', 'UpdateType', value)" + :options="updateTypeOptions" + size="large" + style="width:100%" + /> + + + + + + 更新源 + + + + + handleSettingChange('Update', 'Source', value)" + :options="updateSourceOptions" + size="large" + style="width:100%" + /> + + + + + + + + 网络代理地址 + + + + + + + + + + + Mirror酱 CDK + + + + Mirror酱CDK是使用Mirror源进行高速下载的凭证,可前往 + Mirror酱官网 + 获取 + + + + + + + + + + + + diff --git a/frontend/src/views/setting/TabVoice.vue b/frontend/src/views/setting/TabVoice.vue new file mode 100644 index 0000000..70f2372 --- /dev/null +++ b/frontend/src/views/setting/TabVoice.vue @@ -0,0 +1,58 @@ + + + + + + 语音配置 + + + + + + 启用音效 + + + + + handleSettingChange('Voice', 'Enabled', checked)" + size="large" + style="width:100%" + > + 是 + 否 + + + + + + + 音效模式 + + + + + handleSettingChange('Voice', 'Type', value)" + :options="voiceTypeOptions" + :disabled="!settings.Voice.Enabled" + size="large" + style="width:100%" + /> + + + + + + diff --git a/frontend/src/views/setting/index.vue b/frontend/src/views/setting/index.vue new file mode 100644 index 0000000..8ffc4b7 --- /dev/null +++ b/frontend/src/views/setting/index.vue @@ -0,0 +1,377 @@ + + + + + 设置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- 开启本项即代表您已完整阅读并同意以下协议,并授权本程序在其认定需要时以其认定合适的方法替您处理相关弹窗: -
- 管理下载站和加速站配置,支持从云端自动更新最新的镜像站列表 -
查看最新版本和功能介绍
查看源代码、提交issue和贡献
加入社区,获取帮助和交流
开启本项即代表您已完整阅读并同意以下协议,并授权本程序在其认定需要时以其认定合适的方法替您处理相关弹窗:
管理下载站和加速站配置,支持从云端自动更新最新的镜像站列表