diff --git a/src/renderer/views/set/SettingItem.vue b/src/renderer/views/set/SettingItem.vue new file mode 100644 index 0000000..3b244f7 --- /dev/null +++ b/src/renderer/views/set/SettingItem.vue @@ -0,0 +1,79 @@ + + + + + + {{ title }} + + + {{ description }} + + + + + + + + + + + + + + + diff --git a/src/renderer/views/set/SettingNav.vue b/src/renderer/views/set/SettingNav.vue new file mode 100644 index 0000000..765ad64 --- /dev/null +++ b/src/renderer/views/set/SettingNav.vue @@ -0,0 +1,47 @@ + + + + {{ section.title }} + + + + + diff --git a/src/renderer/views/set/SettingSection.vue b/src/renderer/views/set/SettingSection.vue new file mode 100644 index 0000000..f104e71 --- /dev/null +++ b/src/renderer/views/set/SettingSection.vue @@ -0,0 +1,42 @@ + + + + + {{ title }} + + + + + + + + + + diff --git a/src/renderer/views/set/index.vue b/src/renderer/views/set/index.vue index 450730d..3fdaade 100644 --- a/src/renderer/views/set/index.vue +++ b/src/renderer/views/set/index.vue @@ -1,37 +1,35 @@ - + - - - {{ t(`settings.sections.${section.id}`) }} - - + - - + + - - {{ t('settings.sections.basic') }} - - - - {{ t('settings.basic.themeMode') }} - {{ t('settings.basic.themeModeDesc') }} - - + (sectionRefs.basic = el as HTMLElement | null)" + > + + + + - + {{ setData.autoTheme ? t('settings.basic.autoTheme') @@ -48,52 +46,49 @@ - + + - - - - {{ t('settings.basic.language') }} - {{ t('settings.basic.languageDesc') }} - - - + + + + - - - - {{ t('settings.basic.tabletMode') }} - - {{ t('settings.basic.tabletModeDesc') }} - - - - - - - + + + + + + + - - - {{ t('settings.translationEngine') }} - {{ t('settings.translationEngine') }} - - - + + + + - - - {{ t('settings.basic.font') }} - {{ t('settings.basic.fontDesc') }} - - + + + + {{ t('settings.basic.fontScope.global') @@ -108,51 +103,47 @@ filterable multiple placeholder="选择字体" - style="width: 300px" + class="w-[300px] max-md:w-full" :render-label="renderFontLabel" + /> + + + + + + + + {{ t('settings.basic.fontPreview.title') }} + + + + + {{ t(`settings.basic.fontPreview.${preview.key}`) }} + + - - - - - - {{ t('settings.basic.fontPreview.title') }} - - - {{ t('settings.basic.fontPreview.chinese') }} - {{ t('settings.basic.fontPreview.chineseText') }} - - - {{ t('settings.basic.fontPreview.english') }} - {{ t('settings.basic.fontPreview.englishText') }} - - - {{ t('settings.basic.fontPreview.japanese') }} - {{ t('settings.basic.fontPreview.japaneseText') }} - - - {{ t('settings.basic.fontPreview.korean') }} - {{ t('settings.basic.fontPreview.koreanText') }} + {{ t(`settings.basic.fontPreview.${preview.key}Text`) }} + - - - - {{ t('settings.basic.tokenManagement') }} - - - {{ t('settings.basic.tokenStatus') }}: - {{ - currentToken ? t('settings.basic.tokenSet') : t('settings.basic.tokenNotSet') - }} - - - {{ currentToken.substring(0, 50) }}... - - + + + + + {{ t('settings.basic.tokenStatus') }}: + {{ currentToken ? t('settings.basic.tokenSet') : t('settings.basic.tokenNotSet') }} + + {{ currentToken.substring(0, 50) }}... + + + {{ @@ -163,302 +154,264 @@ {{ t('settings.basic.clearToken') }} - + + - - - {{ t('settings.basic.animation') }} - - - - {{ t('common.off') }} - {{ t('common.on') }} - - {{ t('settings.basic.animationDesc') }} - - - + + + - + {{ t('common.off') }} + {{ t('common.on') }} + + {{ t('settings.basic.animationDesc') }} + + + + + {{ setData.animationSpeed }}x - - - - - + + + - + + - - - - {{ t('settings.basic.gpuAcceleration') }} - - - {{ t('settings.basic.gpuAccelerationDesc') }} - - - - {{ t('settings.basic.gpuAccelerationRestart') }} - - + + + + + {{ t('settings.basic.gpuAccelerationDesc') }} - - - - - - - + + + {{ t('settings.basic.gpuAccelerationRestart') }} + + + + + + + + - - {{ t('settings.sections.playback') }} - - - - - {{ t('settings.playback.quality') }} - - {{ t('settings.playback.qualityDesc') }} - - - - - - - 大家还是需要支持正版,本软件只做开源探讨 - 各大音乐会员购买链接 - - 网易云音乐会员 - QQ音乐会员 - 酷狗音乐会员 - - - - - - {{ t('settings.playback.musicSources') }} - - - - {{ t('common.on') }} - {{ t('common.off') }} - - {{ t('settings.playback.musicUnblockEnableDesc') }} - - - - {{ - t('settings.playback.selectedMusicSources') - }} - - {{ musicSources.join(', ') }} - - - {{ t('settings.playback.noMusicSources') }} - - - - - - (sectionRefs.playback = el as HTMLElement | null)" + > + + + + + + + + 大家还是需要支持正版,本软件只做开源探讨 + 各大音乐会员购买链接 + + - {{ t('settings.playback.configureMusicSources') }} - - - - - - {{ t('settings.playback.showStatusBar') }} - - {{ t('settings.playback.showStatusBarContent') }} - - - - {{ t('common.on') }} - {{ t('common.off') }} - - - - - - {{ t('settings.playback.autoPlay') }} - {{ t('settings.playback.autoPlayDesc') }} - - - {{ t('common.on') }} - {{ t('common.off') }} - + {{ link.name }} + - + + + + + + + {{ t('common.on') }} + {{ t('common.off') }} + + {{ t('settings.playback.musicUnblockEnableDesc') }} + + + {{ t('settings.playback.selectedMusicSources') }} + {{ + musicSources.join(', ') + }} + {{ + t('settings.playback.noMusicSources') + }} + + + + {{ t('settings.playback.configureMusicSources') }} + + + + + + + {{ t('common.on') }} + {{ t('common.off') }} + + + + + + + {{ t('common.on') }} + {{ t('common.off') }} + + + - - {{ t('settings.sections.application') }} - - - - {{ t('settings.application.closeAction') }} - {{ t('settings.application.closeActionDesc') }} - - - + (sectionRefs.application = el as HTMLElement | null)" + > + + + + - - - {{ t('settings.application.shortcut') }} - {{ t('settings.application.shortcutDesc') }} - - {{ - t('common.configure') - }} - + + + {{ + t('common.configure') + }} + - - - {{ t('settings.application.download') }} - - - {{ t('common.show') }} - {{ t('common.hide') }} - - {{ t('settings.application.downloadDesc') }} - - - - - {{ t('settings.application.download') }} - - - + + + + + {{ t('common.show') }} + {{ t('common.hide') }} + + {{ t('settings.application.downloadDesc') }} + + + {{ t('settings.application.download') }} + + - - - {{ t('settings.application.unlimitedDownload') }} - - - {{ t('common.on') }} - {{ t('common.off') }} - - {{ t('settings.application.unlimitedDownloadDesc') }} - - - + + + + + {{ t('common.on') }} + {{ t('common.off') }} + + {{ t('settings.application.unlimitedDownloadDesc') }} + + - - - {{ t('settings.application.downloadPath') }} - - {{ setData.downloadPath || t('settings.application.downloadPathDesc') }} - - + + + + {{ + setData.downloadPath || t('settings.application.downloadPathDesc') + }} + + {{ t('common.open') }} {{ t('common.modify') }} - + + - - - {{ t('settings.application.remoteControl') }} - - {{ t('settings.application.remoteControlDesc') }} - - - {{ - t('common.configure') - }} - - - + + + {{ + t('common.configure') + }} + + - - {{ t('settings.sections.network') }} - - - - {{ t('settings.network.apiPort') }} - {{ t('settings.network.apiPortDesc') }} - - - + (sectionRefs.network = el as HTMLElement | null)" + > + + + + - - - {{ t('settings.network.proxy') }} - {{ t('settings.network.proxyDesc') }} - + + + {{ t('common.on') }} @@ -468,14 +421,16 @@ t('common.configure') }} - + + - - - {{ t('settings.network.realIP') }} - {{ t('settings.network.realIPDesc') }} - - + + + + {{ t('common.on') }} {{ t('common.off') }} @@ -484,57 +439,56 @@ v-if="setData.enableRealIP" v-model:value="setData.realIP" placeholder="realIP" - style="width: 200px" + class="w-[200px] max-md:w-full" @blur="validateAndSaveRealIP" /> - - - + + + - - {{ t('settings.sections.system') }} - - - - {{ t('settings.system.cache') }} - {{ t('settings.system.cacheDesc') }} - - - {{ t('settings.system.cacheDesc') }} - - + (sectionRefs.system = el as HTMLElement | null)" + > + + + {{ + t('settings.system.cacheDesc') + }} + - - - {{ t('settings.system.restart') }} - {{ t('settings.system.restartDesc') }} - - {{ - t('settings.system.restart') - }} - - - + + + {{ t('settings.system.restart') }} + + - - {{ t('settings.sections.about') }} - - - - {{ t('settings.about.version') }} - - {{ updateInfo.currentVersion }} - - - {{ t('settings.about.hasUpdate') }} {{ updateInfo.latestVersion }} - - - - - + (sectionRefs.about = el as HTMLElement | null)" + > + + + + {{ updateInfo.currentVersion }} + + {{ t('settings.about.hasUpdate') }} {{ updateInfo.latestVersion }} + + + + {{ checking ? t('settings.about.checking') : t('settings.about.checkUpdate') }} @@ -542,76 +496,62 @@ {{ t('settings.about.gotoUpdate') }} - + + - - - - {{ t('settings.about.author') }} - {{ t('settings.about.authorDesc') }} - - - - - {{ t('settings.about.gotoGithub') }} - - - - - + + + + {{ t('settings.about.gotoGithub') }} + + + - - {{ t('settings.sections.donation') }} - - - - {{ t('settings.sections.donation') }} - {{ t('donation.message') }} - - - - - - {{ isDonationListVisible ? t('common.hide') : t('common.show') }} - - - - - + (sectionRefs.donation = el as HTMLElement | null)" + > + + + + + + {{ isDonationListVisible ? t('common.hide') : t('common.show') }} + + + + + - - - - - - - - - - @@ -619,12 +559,11 @@