From c257e11ee375e6ca0317fdb4215e16e8307a14ba Mon Sep 17 00:00:00 2001 From: qiaoyun680 <549653222@qq.com> Date: Wed, 14 May 2025 20:28:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=A3=81=E7=BA=B8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.ts | 3 ++ src/locales/zh-CN.ts | 3 ++ src/locales/zh-TW.ts | 3 ++ src/views/setting/AccountSettingSystem.vue | 32 +++++++++++++++++----- 4 files changed, 34 insertions(+), 7 deletions(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index d01c9d40..7547d1f6 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1069,9 +1069,12 @@ export default { bing: 'Bing Daily Wallpaper', mediaserver: 'Media Server', none: 'No Wallpaper', + customize: 'Customize', }, mb: 'MB', hour: 'hour', + customizeWallpaperApi: 'Customize Wallpaper Api', + customizeWallpaperApiRequired: 'Required field; please enter Wallpaper API', }, site: { siteSync: 'Site Synchronization', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index a069138e..9eaa0e81 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1060,9 +1060,12 @@ export default { bing: 'Bing每日壁纸', mediaserver: '媒体服务器', none: '无壁纸', + customize: '自定义', }, mb: 'MB', hour: '小时', + customizeWallpaperApi: '自定义壁纸API', + customizeWallpaperApiRequired: '必填项;请输入自定义壁纸API', }, site: { siteSync: '站点同步', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 8518c95c..d2b9e592 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -1062,9 +1062,12 @@ export default { bing: 'Bing每日壁紙', mediaserver: '媒體服務器', none: '無壁紙', + customize: '自定義', }, mb: 'MB', hour: '小時', + customizeWallpaperApi: '自定義壁紙API', + customizeWallpaperApiRequired: '必填項;請輸出自定義壁紙API', }, site: { siteSync: '站點同步', diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index 1fb97def..757f085c 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -26,6 +26,7 @@ const SystemSettings = ref({ RECOGNIZE_SOURCE: 'themoviedb', GITHUB_TOKEN: null, OCR_HOST: null, + CUSTOMIZE_WALLPAPER_API_URL: null, }, // 高级系统设置 Advanced: { @@ -253,6 +254,7 @@ const wallpaperItems = [ { title: t('setting.system.wallpaperItems.tmdb'), value: 'tmdb' }, { title: t('setting.system.wallpaperItems.bing'), value: 'bing' }, { title: t('setting.system.wallpaperItems.mediaserver'), value: 'mediaserver' }, + { title: t('setting.system.wallpaperItems.customize'), value: 'customize' }, { title: t('setting.system.wallpaperItems.none'), value: '' }, ] @@ -408,14 +410,30 @@ onDeactivated(() => { persistent-hint /> + - + + + + + + + + + Date: Wed, 14 May 2025 20:52:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=A3=81=E7=BA=B8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89API=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BE=93=E5=85=A5=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.ts | 2 ++ src/locales/zh-CN.ts | 1 + src/locales/zh-TW.ts | 1 + src/views/setting/AccountSettingSystem.vue | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 7547d1f6..77cb3424 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1074,6 +1074,8 @@ export default { mb: 'MB', hour: 'hour', customizeWallpaperApi: 'Customize Wallpaper Api', + customizeWallpaperApiHint: + 'It will get the image file extension format images that are allowed in all the settings in the content returned by the API.', customizeWallpaperApiRequired: 'Required field; please enter Wallpaper API', }, site: { diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 9eaa0e81..9c524985 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1065,6 +1065,7 @@ export default { mb: 'MB', hour: '小时', customizeWallpaperApi: '自定义壁纸API', + customizeWallpaperApiHint: '会获取API返回内容中所有设置中允许的图片文件后缀格式图片', customizeWallpaperApiRequired: '必填项;请输入自定义壁纸API', }, site: { diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index d2b9e592..487f7bee 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -1067,6 +1067,7 @@ export default { mb: 'MB', hour: '小時', customizeWallpaperApi: '自定義壁紙API', + customizeWallpaperApiHint: '會獲取 API 返回內容中所有設置中允許的圖片文件後綴格式圖片', customizeWallpaperApiRequired: '必填項;請輸出自定義壁紙API', }, site: { diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index 757f085c..eb8819ad 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -427,7 +427,7 @@ onDeactivated(() => {