From c0cbfb5cb21926b8a606409ee670a486b2e16a86 Mon Sep 17 00:00:00 2001 From: Dr_rOot Date: Mon, 10 Jun 2019 11:35:48 +0800 Subject: [PATCH] refactor: preferences lab protocol client settings --- src/renderer/components/Preference/Lab.vue | 16 ++++++++++++---- src/shared/locales/en-US/preferences.js | 3 +++ src/shared/locales/zh-CN/preferences.js | 3 +++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/Preference/Lab.vue b/src/renderer/components/Preference/Lab.vue index f1b6e2f7e..07c2f7536 100644 --- a/src/renderer/components/Preference/Lab.vue +++ b/src/renderer/components/Preference/Lab.vue @@ -17,10 +17,18 @@ + {{ $t('preferences.protocols-default-client') }} + + + + @@ -58,10 +66,10 @@ const initialForm = (config) => { const { - enableEggFeatures + protocols } = config const result = { - enableEggFeatures + protocols } return result } diff --git a/src/shared/locales/en-US/preferences.js b/src/shared/locales/en-US/preferences.js index e89e89e8b..c5d9b1588 100644 --- a/src/shared/locales/en-US/preferences.js +++ b/src/shared/locales/en-US/preferences.js @@ -49,6 +49,9 @@ export default { 'lab-warning': '⚠️ Enabling lab features may result in app crash or data loss, decide at you own risk!', 'download-protocol': 'Protocols', 'support-more-download-protocols': 'Enable support for more download protocols', + 'protocols-default-client': 'Set as the default client for the following protocols', + 'protocols-magnet': 'Magnet [ magnet:// ]', + 'protocols-thunder': 'Thunder [ thunder:// ]', 'browser-extensions': 'Extensions', 'baidu-exporter': 'BaiduExporter', 'browser-extensions-tips': 'Provided by the community, ', diff --git a/src/shared/locales/zh-CN/preferences.js b/src/shared/locales/zh-CN/preferences.js index 36b182566..df99d5423 100644 --- a/src/shared/locales/zh-CN/preferences.js +++ b/src/shared/locales/zh-CN/preferences.js @@ -49,6 +49,9 @@ export default { 'lab-warning': '⚠️启用实验特性可能造成应用崩溃或数据丢失,请自行决定!', 'download-protocol': '下载协议', 'support-more-download-protocols': '支持更多下载协议', + 'protocols-default-client': '设置为以下协议的默认客户端', + 'protocols-magnet': '磁力链接 [ magnet:// ]', + 'protocols-thunder': '迅雷链接 [ thunder:// ]', 'browser-extensions': '浏览器扩展', 'baidu-exporter': '百度网盘助手', 'browser-extensions-tips': '社区提供的浏览器扩展「不保证可用性」,',