mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
背景壁纸增加自定义API
This commit is contained in:
@@ -1069,9 +1069,12 @@ export default {
|
|||||||
bing: 'Bing Daily Wallpaper',
|
bing: 'Bing Daily Wallpaper',
|
||||||
mediaserver: 'Media Server',
|
mediaserver: 'Media Server',
|
||||||
none: 'No Wallpaper',
|
none: 'No Wallpaper',
|
||||||
|
customize: 'Customize',
|
||||||
},
|
},
|
||||||
mb: 'MB',
|
mb: 'MB',
|
||||||
hour: 'hour',
|
hour: 'hour',
|
||||||
|
customizeWallpaperApi: 'Customize Wallpaper Api',
|
||||||
|
customizeWallpaperApiRequired: 'Required field; please enter Wallpaper API',
|
||||||
},
|
},
|
||||||
site: {
|
site: {
|
||||||
siteSync: 'Site Synchronization',
|
siteSync: 'Site Synchronization',
|
||||||
|
|||||||
@@ -1060,9 +1060,12 @@ export default {
|
|||||||
bing: 'Bing每日壁纸',
|
bing: 'Bing每日壁纸',
|
||||||
mediaserver: '媒体服务器',
|
mediaserver: '媒体服务器',
|
||||||
none: '无壁纸',
|
none: '无壁纸',
|
||||||
|
customize: '自定义',
|
||||||
},
|
},
|
||||||
mb: 'MB',
|
mb: 'MB',
|
||||||
hour: '小时',
|
hour: '小时',
|
||||||
|
customizeWallpaperApi: '自定义壁纸API',
|
||||||
|
customizeWallpaperApiRequired: '必填项;请输入自定义壁纸API',
|
||||||
},
|
},
|
||||||
site: {
|
site: {
|
||||||
siteSync: '站点同步',
|
siteSync: '站点同步',
|
||||||
|
|||||||
@@ -1062,9 +1062,12 @@ export default {
|
|||||||
bing: 'Bing每日壁紙',
|
bing: 'Bing每日壁紙',
|
||||||
mediaserver: '媒體服務器',
|
mediaserver: '媒體服務器',
|
||||||
none: '無壁紙',
|
none: '無壁紙',
|
||||||
|
customize: '自定義',
|
||||||
},
|
},
|
||||||
mb: 'MB',
|
mb: 'MB',
|
||||||
hour: '小時',
|
hour: '小時',
|
||||||
|
customizeWallpaperApi: '自定義壁紙API',
|
||||||
|
customizeWallpaperApiRequired: '必填項;請輸出自定義壁紙API',
|
||||||
},
|
},
|
||||||
site: {
|
site: {
|
||||||
siteSync: '站點同步',
|
siteSync: '站點同步',
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ const SystemSettings = ref<any>({
|
|||||||
RECOGNIZE_SOURCE: 'themoviedb',
|
RECOGNIZE_SOURCE: 'themoviedb',
|
||||||
GITHUB_TOKEN: null,
|
GITHUB_TOKEN: null,
|
||||||
OCR_HOST: null,
|
OCR_HOST: null,
|
||||||
|
CUSTOMIZE_WALLPAPER_API_URL: null,
|
||||||
},
|
},
|
||||||
// 高级系统设置
|
// 高级系统设置
|
||||||
Advanced: {
|
Advanced: {
|
||||||
@@ -253,6 +254,7 @@ const wallpaperItems = [
|
|||||||
{ title: t('setting.system.wallpaperItems.tmdb'), value: 'tmdb' },
|
{ title: t('setting.system.wallpaperItems.tmdb'), value: 'tmdb' },
|
||||||
{ title: t('setting.system.wallpaperItems.bing'), value: 'bing' },
|
{ title: t('setting.system.wallpaperItems.bing'), value: 'bing' },
|
||||||
{ title: t('setting.system.wallpaperItems.mediaserver'), value: 'mediaserver' },
|
{ title: t('setting.system.wallpaperItems.mediaserver'), value: 'mediaserver' },
|
||||||
|
{ title: t('setting.system.wallpaperItems.customize'), value: 'customize' },
|
||||||
{ title: t('setting.system.wallpaperItems.none'), value: '' },
|
{ title: t('setting.system.wallpaperItems.none'), value: '' },
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -408,14 +410,30 @@ onDeactivated(() => {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VSelect
|
<VRow>
|
||||||
v-model="SystemSettings.Basic.WALLPAPER"
|
<VCol cols="12" :md="SystemSettings.Basic.WALLPAPER === 'customize' ? 6 : 12">
|
||||||
:label="t('setting.system.wallpaper')"
|
<VSelect
|
||||||
:hint="t('setting.system.wallpaperHint')"
|
v-model="SystemSettings.Basic.WALLPAPER"
|
||||||
persistent-hint
|
:label="t('setting.system.wallpaper')"
|
||||||
:items="wallpaperItems"
|
:hint="t('setting.system.wallpaperHint')"
|
||||||
/>
|
persistent-hint
|
||||||
|
:items="wallpaperItems"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
|
||||||
|
<VCol v-if="SystemSettings.Basic.WALLPAPER === 'customize'" cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="SystemSettings.Basic.CUSTOMIZE_WALLPAPER_API_URL"
|
||||||
|
:label="t('setting.system.customizeWallpaperApi')"
|
||||||
|
:hint="t('setting.system.customizeWallpaperApi')"
|
||||||
|
:placeholder="t('setting.system.customizeWallpaperApi')"
|
||||||
|
persistent-hint
|
||||||
|
:rules="[v => !!v || t('setting.system.customizeWallpaperApiRequired')]"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VSelect
|
<VSelect
|
||||||
|
|||||||
Reference in New Issue
Block a user