From 47181ce084dd3928faf88c694a860224e38a60f2 Mon Sep 17 00:00:00 2001 From: Hiram <> Date: Tue, 16 Apr 2024 18:41:17 +0800 Subject: [PATCH] fix i18 special characters error && failed to load in different languages iframe && optimize logic && css fix --- src/renderer/src/config/platform.ts | 21 +++-- .../src/locales/lang/en_US/pages/analyze.ts | 2 +- .../src/locales/lang/zh_CN/pages/analyze.ts | 2 +- .../src/pages/analyze/DialogSearch.vue | 77 ++++++++++--------- 4 files changed, 55 insertions(+), 47 deletions(-) diff --git a/src/renderer/src/config/platform.ts b/src/renderer/src/config/platform.ts index ee781fdcc..9ed4664cf 100644 --- a/src/renderer/src/config/platform.ts +++ b/src/renderer/src/config/platform.ts @@ -10,49 +10,56 @@ export default { site: [ { url: 'https://www.iqiyi.com/', - name: 'iqiyi', + id: 'iqiyi', + name: '爱奇艺', img: logoIqiyi, show: true, search: 'https://so.iqiyi.com/so/q_', }, { url: 'https://v.qq.com/', - name: 'tencent', + id: 'tencent', + name: '腾讯视频', img: logoVqq, show: true, search: 'https://v.qq.com/x/search/?q=', }, { url: 'https://youku.com/', - name: 'youku', + id: 'youku', + name: '优酷视频', img: logoYouku, show: true, search: 'https://so.youku.com/search_video/q_', }, { url: 'https://www.mgtv.com/', - name: 'mgtv', + id: 'mgtv', + name: '芒果tv', img: logoMgtv, show: true, search: 'https://so.mgtv.com/so?k=', }, { url: 'https://www.le.com/', - name: 'letv', + id: 'letv', + name: '乐视视频', img: logoLe, show: true, search: 'https://so.le.com/s?wd=', }, { url: 'https://tv.sohu.com/', - name: 'sohu', + id: 'sohu', + name: '搜狐视频', img: logoSohu, show: true, search: 'https://so.tv.sohu.com/mts?wd=', }, { url: 'https://www.pptv.com/', - name: 'pptv', + id: 'pptv', + name: 'pp视频', img: logoPptv, show: true, search: 'https://sou.pptv.com/s_video?kw=', diff --git a/src/renderer/src/locales/lang/en_US/pages/analyze.ts b/src/renderer/src/locales/lang/en_US/pages/analyze.ts index 8b410446f..062006189 100644 --- a/src/renderer/src/locales/lang/en_US/pages/analyze.ts +++ b/src/renderer/src/locales/lang/en_US/pages/analyze.ts @@ -18,7 +18,7 @@ export default { search: { input: 'Enter keyword to search', clear: 'Clear', - tip: 'Enter@to quickly specify the search source, for example', + tip: 'Enter {0} to quickly search source, for example', watch: 'watch all about', content: 'content', iqiyi: 'iqiyi', diff --git a/src/renderer/src/locales/lang/zh_CN/pages/analyze.ts b/src/renderer/src/locales/lang/zh_CN/pages/analyze.ts index f38243587..df9e0bf1e 100644 --- a/src/renderer/src/locales/lang/zh_CN/pages/analyze.ts +++ b/src/renderer/src/locales/lang/zh_CN/pages/analyze.ts @@ -18,7 +18,7 @@ export default { search: { input: '输入关键词搜索', clear: '清空', - tip: '输入@快速指定搜索源,例如', + tip: '输入 {0} 快速指定搜索源, 例如', watch: '查看', content: '的所有内容', iqiyi: '爱奇艺', diff --git a/src/renderer/src/pages/analyze/DialogSearch.vue b/src/renderer/src/pages/analyze/DialogSearch.vue index 607b1959e..4dbd1e19d 100644 --- a/src/renderer/src/pages/analyze/DialogSearch.vue +++ b/src/renderer/src/pages/analyze/DialogSearch.vue @@ -9,13 +9,15 @@ >