From 2803d40dd1263c308b30167e1ac71bd60a5c7095 Mon Sep 17 00:00:00 2001 From: alger Date: Wed, 14 May 2025 21:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=94=B6=E8=97=8F=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=B7=BB=E5=8A=A0=E5=8D=87=E5=BA=8F=E9=99=8D=E5=BA=8F?= =?UTF-8?q?=E6=8E=92=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/en-US/favorite.ts | 4 +- src/i18n/lang/zh-CN/favorite.ts | 4 +- src/renderer/views/favorite/index.vue | 1072 +++++++++++++------------ 3 files changed, 578 insertions(+), 502 deletions(-) diff --git a/src/i18n/lang/en-US/favorite.ts b/src/i18n/lang/en-US/favorite.ts index 7137862..8f0d6fe 100644 --- a/src/i18n/lang/en-US/favorite.ts +++ b/src/i18n/lang/en-US/favorite.ts @@ -11,5 +11,7 @@ export default { downloadSuccess: 'Download completed', downloadFailed: 'Download failed', downloading: 'Downloading, please wait...', - selectSongsFirst: 'Please select songs to download first' + selectSongsFirst: 'Please select songs to download first', + descending: 'Descending', + ascending: 'Ascending' }; diff --git a/src/i18n/lang/zh-CN/favorite.ts b/src/i18n/lang/zh-CN/favorite.ts index 4ff1874..74c3c75 100644 --- a/src/i18n/lang/zh-CN/favorite.ts +++ b/src/i18n/lang/zh-CN/favorite.ts @@ -7,5 +7,7 @@ export default { downloadSuccess: '下载完成', downloadFailed: '下载失败', downloading: '正在下载中,请稍候...', - selectSongsFirst: '请先选择要下载的歌曲' + selectSongsFirst: '请先选择要下载的歌曲', + descending: '降', + ascending: '升' }; diff --git a/src/renderer/views/favorite/index.vue b/src/renderer/views/favorite/index.vue index 139e413..085af93 100644 --- a/src/renderer/views/favorite/index.vue +++ b/src/renderer/views/favorite/index.vue @@ -1,551 +1,623 @@ - + {{ t('favorite.batchDownload') }} + +
+ - - {{ t('favorite.download', { count: selectedSongs.length }) }} - - - {{ t('common.cancel') }} - - + {{ t('common.selectAll') }} + + + + + {{ t('favorite.download', { count: selectedSongs.length }) }} + + + {{ t('common.cancel') }} + + +
- -
- -
- -
-
- -
- {{ t('common.viewMore') }} +
+ +
+
+
+ +
+ {{ t('common.viewMore') }} +
-
- +
+ +
+ +
{{ t('common.noMore') }}
- -
{{ t('common.noMore') }}
-
-
+ +
-
- + - - - + + .loading-wrapper { + @apply flex justify-center items-center py-20; + } + + .no-more-tip { + @apply text-center py-4 text-sm; + @apply text-gray-500 dark:text-gray-400; + } + + .mobile { + .favorite-page { + @apply p-4; + + .favorite-header { + @apply mb-4; + + h2 { + @apply text-xl; + } + } + } + } +