From 3c4cc065b8819ad08922344ce5f1931f4228ddcb Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:54:22 +0800 Subject: [PATCH] feat: add more tooltips --- src/locales/en/messages.po | 101 +++++++++++++++---------- src/locales/en/messages.ts | 2 +- src/locales/zh-CN/messages.po | 101 +++++++++++++++---------- src/locales/zh-CN/messages.ts | 2 +- src/pages/PictureView/PictureView.tsx | 9 ++- src/pages/Player/Audio/Modern.tsx | 74 ++++++++++-------- src/pages/Player/PlayerControl.tsx | 27 ++++--- src/pages/Player/PlayerMenu.tsx | 10 ++- src/pages/Player/VideoPlayerTopbar.tsx | 37 ++++----- src/pages/Player/VolumeControl.tsx | 17 +---- 10 files changed, 211 insertions(+), 169 deletions(-) diff --git a/src/locales/en/messages.po b/src/locales/en/messages.po index 52cc574..43ac06c 100644 --- a/src/locales/en/messages.po +++ b/src/locales/en/messages.po @@ -25,20 +25,20 @@ msgstr "Account" msgid "Add account" msgstr "Add account" -#: src/components/CommonList/CommonMenu.tsx:256 -#: src/pages/Player/PlayerMenu.tsx:361 +#: src/components/CommonList/CommonMenu.tsx:257 +#: src/pages/Player/PlayerMenu.tsx:354 #: src/pages/SideBar/Playlists.tsx:52 msgid "Add playlist" msgstr "Add playlist" -#: src/components/CommonList/CommonMenu.tsx:160 +#: src/components/CommonList/CommonMenu.tsx:161 msgid "Add to play queue" msgstr "Add to play queue" -#: src/components/CommonList/CommonMenu.tsx:155 -#: src/components/CommonList/CommonMenu.tsx:230 -#: src/pages/Player/PlayerMenu.tsx:240 -#: src/pages/Player/PlayerMenu.tsx:335 +#: src/components/CommonList/CommonMenu.tsx:156 +#: src/components/CommonList/CommonMenu.tsx:231 +#: src/pages/Player/PlayerMenu.tsx:233 +#: src/pages/Player/PlayerMenu.tsx:328 msgid "Add to playlist" msgstr "Add to playlist" @@ -50,19 +50,19 @@ msgstr "Ascending" msgid "Auto" msgstr "Auto" -#: src/components/CommonList/CommonMenu.tsx:261 -#: src/pages/Player/PlayerMenu.tsx:366 -#: src/pages/Playlist/Playlist.tsx:216 -#: src/pages/Playlist/Playlist.tsx:239 +#: src/components/CommonList/CommonMenu.tsx:262 +#: src/pages/Player/PlayerMenu.tsx:359 +#: src/pages/Playlist/Playlist.tsx:217 +#: src/pages/Playlist/Playlist.tsx:240 #: src/pages/Setting.tsx:217 msgid "Cancel" msgstr "Cancel" -#: src/components/CommonList/CommonMenu.tsx:219 +#: src/components/CommonList/CommonMenu.tsx:220 msgid "Cancel select" msgstr "Cancel select" -#: src/pages/Player/PlayerMenu.tsx:292 +#: src/pages/Player/PlayerMenu.tsx:285 msgid "Classic" msgstr "Classic" @@ -70,9 +70,11 @@ msgstr "Classic" msgid "Clear" msgstr "Clear" -#: src/pages/Files/Files.tsx:177 -#~ msgid "Close" -#~ msgstr "Close" +#: src/pages/PictureView/PictureView.tsx:72 +#: src/pages/Player/Audio/Modern.tsx:154 +#: src/pages/Player/VideoPlayerTopbar.tsx:56 +msgid "Close" +msgstr "Close" #: src/pages/Setting.tsx:143 msgid "Color mode" @@ -94,7 +96,7 @@ msgstr "Dark" msgid "Data" msgstr "Data" -#: src/pages/Playlist/Playlist.tsx:190 +#: src/pages/Playlist/Playlist.tsx:191 msgid "Delete" msgstr "Delete" @@ -102,7 +104,7 @@ msgstr "Delete" msgid "Descending" msgstr "Descending" -#: src/pages/Playlist/Playlist.tsx:212 +#: src/pages/Playlist/Playlist.tsx:213 msgid "Enter new title" msgstr "Enter new title" @@ -114,6 +116,11 @@ msgstr "Files" msgid "Folders first" msgstr "Folders first" +#: src/pages/Player/Audio/Modern.tsx:204 +#: src/pages/Player/PlayerControl.tsx:318 +msgid "Fullscreen" +msgstr "Fullscreen" + #: src/pages/Search.tsx:182 msgid "Global" msgstr "Global" @@ -146,6 +153,10 @@ msgstr "List" msgid "Local metaData cache" msgstr "Local metaData cache" +#: src/pages/Player/Audio/Modern.tsx:187 +msgid "Lyrics" +msgstr "Lyrics" + #: src/pages/Setting.tsx:97 msgid "Manage" msgstr "Manage" @@ -154,13 +165,17 @@ msgstr "Manage" msgid "Media only" msgstr "Media only" -#: src/pages/Player/PlayerMenu.tsx:280 +#: src/pages/Player/PlayerMenu.tsx:163 +msgid "Menu" +msgstr "Menu" + +#: src/pages/Player/PlayerMenu.tsx:273 msgid "Modern" msgstr "Modern" #: src/components/CommonList/CommonListItem.tsx:39 #: src/components/CommonList/CommonListItemCard.tsx:88 -#: src/pages/Playlist/Playlist.tsx:156 +#: src/pages/Playlist/Playlist.tsx:157 msgid "More" msgstr "More" @@ -172,24 +187,24 @@ msgstr "Multicolumn list" msgid "Name" msgstr "Name" -#: src/components/CommonList/CommonMenu.tsx:70 -#: src/pages/Player/PlayerMenu.tsx:139 +#: src/components/CommonList/CommonMenu.tsx:71 +#: src/pages/Player/PlayerMenu.tsx:130 #: src/pages/SideBar/Playlists.tsx:19 msgid "New playlist" msgstr "New playlist" -#: src/components/Lyrics/Lyrics.tsx:75 -#: src/pages/Player/Audio/Modern.tsx:275 +#: src/components/Lyrics/Lyrics.tsx:78 +#: src/pages/Player/Audio/Modern.tsx:285 msgid "No lyrics" msgstr "No lyrics" -#: src/pages/Playlist/Playlist.tsx:223 -#: src/pages/Playlist/Playlist.tsx:240 +#: src/pages/Playlist/Playlist.tsx:224 +#: src/pages/Playlist/Playlist.tsx:241 msgid "OK" msgstr "OK" -#: src/components/CommonList/CommonMenu.tsx:167 -#: src/pages/Player/PlayerMenu.tsx:220 +#: src/components/CommonList/CommonMenu.tsx:168 +#: src/pages/Player/PlayerMenu.tsx:213 msgid "Open in folder" msgstr "Open in folder" @@ -197,16 +212,18 @@ msgstr "Open in folder" msgid "Open source dependencies" msgstr "Open source dependencies" -#: src/components/CommonList/CommonList.tsx:382 +#: src/components/CommonList/CommonList.tsx:383 msgid "Play all" msgstr "Play all" -#: src/pages/Player/PlayerMenu.tsx:228 +#: src/pages/Player/Audio/Modern.tsx:172 +#: src/pages/Player/PlayerControl.tsx:308 +#: src/pages/Player/PlayerMenu.tsx:221 msgid "Play queue" msgstr "Play queue" -#: src/pages/Player/PlayerMenu.tsx:207 -#: src/pages/Player/PlayerMenu.tsx:305 +#: src/pages/Player/PlayerMenu.tsx:200 +#: src/pages/Player/PlayerMenu.tsx:298 msgid "Playback rate" msgstr "Playback rate" @@ -215,16 +232,16 @@ msgstr "Playback rate" msgid "Please use Microsoft account authorization to log in" msgstr "Please use Microsoft account authorization to log in" -#: src/pages/Player/PlayerMenu.tsx:255 +#: src/pages/Player/PlayerMenu.tsx:248 msgid "Re-fetch metadata" msgstr "Re-fetch metadata" -#: src/components/CommonList/CommonMenu.tsx:185 +#: src/components/CommonList/CommonMenu.tsx:186 msgid "Remove" msgstr "Remove" -#: src/pages/Playlist/Playlist.tsx:184 -#: src/pages/Playlist/Playlist.tsx:202 +#: src/pages/Playlist/Playlist.tsx:185 +#: src/pages/Playlist/Playlist.tsx:203 msgid "Rename" msgstr "Rename" @@ -235,7 +252,7 @@ msgstr "Rename" msgid "Search" msgstr "Search" -#: src/components/CommonList/CommonMenu.tsx:198 +#: src/components/CommonList/CommonMenu.tsx:199 msgid "Select" msgstr "Select" @@ -243,7 +260,7 @@ msgstr "Select" msgid "Select account" msgstr "Select account" -#: src/components/CommonList/CommonMenu.tsx:208 +#: src/components/CommonList/CommonMenu.tsx:209 msgid "Select all" msgstr "Select all" @@ -267,16 +284,16 @@ msgstr "Sign out" msgid "Size" msgstr "Size" -#: src/pages/Player/PlayerMenu.tsx:248 +#: src/pages/Player/PlayerMenu.tsx:241 msgid "Switch fullscreen" msgstr "Switch fullscreen" -#: src/pages/Player/PlayerMenu.tsx:198 -#: src/pages/Player/PlayerMenu.tsx:268 +#: src/pages/Player/PlayerMenu.tsx:191 +#: src/pages/Player/PlayerMenu.tsx:261 msgid "Switch theme" msgstr "Switch theme" -#: src/pages/Playlist/Playlist.tsx:236 +#: src/pages/Playlist/Playlist.tsx:237 msgid "The playlist will be deleted" msgstr "The playlist will be deleted" diff --git a/src/locales/en/messages.ts b/src/locales/en/messages.ts index 0bb22b2..dc8e0fb 100644 --- a/src/locales/en/messages.ts +++ b/src/locales/en/messages.ts @@ -1 +1 @@ -/*eslint-disable*/import type{Messages}from"@lingui/core";export const messages=JSON.parse("{\"uyJsf6\":\"About\",\"AeXO77\":\"Account\",\"MPPZ54\":\"Add account\",\"uQ+CWJ\":\"Add playlist\",\"Vmuxgj\":\"Add to play queue\",\"gLfZlz\":\"Add to playlist\",\"nYD/Cq\":\"Ascending\",\"R9Khdg\":\"Auto\",\"dEgA5A\":\"Cancel\",\"JsViZF\":\"Cancel select\",\"1gUYFw\":\"Classic\",\"xCJdfg\":\"Clear\",\"yz7wBu\":\"Close\",\"YDWhuY\":\"Color mode\",\"Hp1l6f\":\"Current\",\"srRMnJ\":\"Customize\",\"pvnfJD\":\"Dark\",\"HKH+W+\":\"Data\",\"cnGeoo\":\"Delete\",\"Cko536\":\"Descending\",\"dVoWOX\":\"Enter new title\",\"sER+bs\":\"Files\",\"rvhCbi\":\"Folders first\",\"2GT3Hf\":\"Global\",\"CXDHcv\":\"Grid\",\"t3SPBU\":\"HD thumbnails\",\"0caMy7\":\"History\",\"x5DnMs\":\"Last modified\",\"1njn7W\":\"Light\",\"2BBAbc\":\"List\",\"2QFkSI\":\"Local metaData cache\",\"wckWOP\":\"Manage\",\"eK4SL/\":\"Media only\",\"IU7sBy\":\"Modern\",\"2FYpfJ\":\"More\",\"/u/nsV\":\"Multicolumn list\",\"6YtxFj\":\"Name\",\"dMizp8\":\"New playlist\",\"AZp7qF\":\"No lyrics\",\"zga9sT\":\"OK\",\"zAd2xF\":\"Open in folder\",\"OZNIzM\":\"Open source dependencies\",\"tVR7Hf\":\"Play all\",\"2ckL2r\":\"Play queue\",\"W7OEzk\":\"Playback rate\",\"2t5KJY\":\"Please use Microsoft account authorization to log in\",\"MjjKPY\":\"Re-fetch metadata\",\"t/YqKh\":\"Remove\",\"2wxgft\":\"Rename\",\"A1taO8\":\"Search\",\"rG3WVm\":\"Select\",\"+O3PfQ\":\"Select account\",\"wgNoIs\":\"Select all\",\"EFKJQT\":\"Setting\",\"ML96zX\":\"Shuffle all\",\"5lWFkC\":\"Sign in\",\"fcWrnU\":\"Sign out\",\"Cj2Gtd\":\"Size\",\"NG9Ghl\":\"Switch fullscreen\",\"dGrFyD\":\"Switch theme\",\"DLu3TH\":\"The playlist will be deleted\",\"lRkLr5\":\"Use album cover theme color\"}")as Messages; \ No newline at end of file +/*eslint-disable*/import type{Messages}from"@lingui/core";export const messages=JSON.parse("{\"uyJsf6\":\"About\",\"AeXO77\":\"Account\",\"MPPZ54\":\"Add account\",\"uQ+CWJ\":\"Add playlist\",\"Vmuxgj\":\"Add to play queue\",\"gLfZlz\":\"Add to playlist\",\"nYD/Cq\":\"Ascending\",\"R9Khdg\":\"Auto\",\"dEgA5A\":\"Cancel\",\"JsViZF\":\"Cancel select\",\"1gUYFw\":\"Classic\",\"xCJdfg\":\"Clear\",\"yz7wBu\":\"Close\",\"YDWhuY\":\"Color mode\",\"Hp1l6f\":\"Current\",\"srRMnJ\":\"Customize\",\"pvnfJD\":\"Dark\",\"HKH+W+\":\"Data\",\"cnGeoo\":\"Delete\",\"Cko536\":\"Descending\",\"dVoWOX\":\"Enter new title\",\"sER+bs\":\"Files\",\"rvhCbi\":\"Folders first\",\"3qkggm\":\"Fullscreen\",\"2GT3Hf\":\"Global\",\"CXDHcv\":\"Grid\",\"t3SPBU\":\"HD thumbnails\",\"0caMy7\":\"History\",\"x5DnMs\":\"Last modified\",\"1njn7W\":\"Light\",\"2BBAbc\":\"List\",\"2QFkSI\":\"Local metaData cache\",\"HzF5X6\":\"Lyrics\",\"wckWOP\":\"Manage\",\"eK4SL/\":\"Media only\",\"zucql+\":\"Menu\",\"IU7sBy\":\"Modern\",\"2FYpfJ\":\"More\",\"/u/nsV\":\"Multicolumn list\",\"6YtxFj\":\"Name\",\"dMizp8\":\"New playlist\",\"AZp7qF\":\"No lyrics\",\"zga9sT\":\"OK\",\"zAd2xF\":\"Open in folder\",\"OZNIzM\":\"Open source dependencies\",\"tVR7Hf\":\"Play all\",\"2ckL2r\":\"Play queue\",\"W7OEzk\":\"Playback rate\",\"2t5KJY\":\"Please use Microsoft account authorization to log in\",\"MjjKPY\":\"Re-fetch metadata\",\"t/YqKh\":\"Remove\",\"2wxgft\":\"Rename\",\"A1taO8\":\"Search\",\"rG3WVm\":\"Select\",\"+O3PfQ\":\"Select account\",\"wgNoIs\":\"Select all\",\"EFKJQT\":\"Setting\",\"ML96zX\":\"Shuffle all\",\"5lWFkC\":\"Sign in\",\"fcWrnU\":\"Sign out\",\"Cj2Gtd\":\"Size\",\"NG9Ghl\":\"Switch fullscreen\",\"dGrFyD\":\"Switch theme\",\"DLu3TH\":\"The playlist will be deleted\",\"lRkLr5\":\"Use album cover theme color\"}")as Messages; \ No newline at end of file diff --git a/src/locales/zh-CN/messages.po b/src/locales/zh-CN/messages.po index 153f36c..1cca326 100644 --- a/src/locales/zh-CN/messages.po +++ b/src/locales/zh-CN/messages.po @@ -25,20 +25,20 @@ msgstr "账户" msgid "Add account" msgstr "添加账户" -#: src/components/CommonList/CommonMenu.tsx:256 -#: src/pages/Player/PlayerMenu.tsx:361 +#: src/components/CommonList/CommonMenu.tsx:257 +#: src/pages/Player/PlayerMenu.tsx:354 #: src/pages/SideBar/Playlists.tsx:52 msgid "Add playlist" msgstr "新建播放列表" -#: src/components/CommonList/CommonMenu.tsx:160 +#: src/components/CommonList/CommonMenu.tsx:161 msgid "Add to play queue" msgstr "添加到播放队列" -#: src/components/CommonList/CommonMenu.tsx:155 -#: src/components/CommonList/CommonMenu.tsx:230 -#: src/pages/Player/PlayerMenu.tsx:240 -#: src/pages/Player/PlayerMenu.tsx:335 +#: src/components/CommonList/CommonMenu.tsx:156 +#: src/components/CommonList/CommonMenu.tsx:231 +#: src/pages/Player/PlayerMenu.tsx:233 +#: src/pages/Player/PlayerMenu.tsx:328 msgid "Add to playlist" msgstr "添加到播放列表" @@ -50,19 +50,19 @@ msgstr "正序" msgid "Auto" msgstr "自动" -#: src/components/CommonList/CommonMenu.tsx:261 -#: src/pages/Player/PlayerMenu.tsx:366 -#: src/pages/Playlist/Playlist.tsx:216 -#: src/pages/Playlist/Playlist.tsx:239 +#: src/components/CommonList/CommonMenu.tsx:262 +#: src/pages/Player/PlayerMenu.tsx:359 +#: src/pages/Playlist/Playlist.tsx:217 +#: src/pages/Playlist/Playlist.tsx:240 #: src/pages/Setting.tsx:217 msgid "Cancel" msgstr "取消" -#: src/components/CommonList/CommonMenu.tsx:219 +#: src/components/CommonList/CommonMenu.tsx:220 msgid "Cancel select" msgstr "取消选择" -#: src/pages/Player/PlayerMenu.tsx:292 +#: src/pages/Player/PlayerMenu.tsx:285 msgid "Classic" msgstr "经典" @@ -70,9 +70,11 @@ msgstr "经典" msgid "Clear" msgstr "清除" -#: src/pages/Files/Files.tsx:177 -#~ msgid "Close" -#~ msgstr "关闭" +#: src/pages/PictureView/PictureView.tsx:72 +#: src/pages/Player/Audio/Modern.tsx:154 +#: src/pages/Player/VideoPlayerTopbar.tsx:56 +msgid "Close" +msgstr "关闭" #: src/pages/Setting.tsx:143 msgid "Color mode" @@ -94,7 +96,7 @@ msgstr "深色" msgid "Data" msgstr "数据" -#: src/pages/Playlist/Playlist.tsx:190 +#: src/pages/Playlist/Playlist.tsx:191 msgid "Delete" msgstr "删除" @@ -102,7 +104,7 @@ msgstr "删除" msgid "Descending" msgstr "倒序" -#: src/pages/Playlist/Playlist.tsx:212 +#: src/pages/Playlist/Playlist.tsx:213 msgid "Enter new title" msgstr "输入新标题" @@ -114,6 +116,11 @@ msgstr "文件" msgid "Folders first" msgstr "文件夹优先" +#: src/pages/Player/Audio/Modern.tsx:204 +#: src/pages/Player/PlayerControl.tsx:318 +msgid "Fullscreen" +msgstr "全屏" + #: src/pages/Search.tsx:182 msgid "Global" msgstr "全局" @@ -146,6 +153,10 @@ msgstr "列表" msgid "Local metaData cache" msgstr "本地元数据缓存" +#: src/pages/Player/Audio/Modern.tsx:187 +msgid "Lyrics" +msgstr "歌词" + #: src/pages/Setting.tsx:97 msgid "Manage" msgstr "管理" @@ -154,13 +165,17 @@ msgstr "管理" msgid "Media only" msgstr "仅限媒体" -#: src/pages/Player/PlayerMenu.tsx:280 +#: src/pages/Player/PlayerMenu.tsx:163 +msgid "Menu" +msgstr "菜单" + +#: src/pages/Player/PlayerMenu.tsx:273 msgid "Modern" msgstr "现代" #: src/components/CommonList/CommonListItem.tsx:39 #: src/components/CommonList/CommonListItemCard.tsx:88 -#: src/pages/Playlist/Playlist.tsx:156 +#: src/pages/Playlist/Playlist.tsx:157 msgid "More" msgstr "更多" @@ -172,24 +187,24 @@ msgstr "多列列表" msgid "Name" msgstr "名称" -#: src/components/CommonList/CommonMenu.tsx:70 -#: src/pages/Player/PlayerMenu.tsx:139 +#: src/components/CommonList/CommonMenu.tsx:71 +#: src/pages/Player/PlayerMenu.tsx:130 #: src/pages/SideBar/Playlists.tsx:19 msgid "New playlist" msgstr "新播放列表" -#: src/components/Lyrics/Lyrics.tsx:75 -#: src/pages/Player/Audio/Modern.tsx:275 +#: src/components/Lyrics/Lyrics.tsx:78 +#: src/pages/Player/Audio/Modern.tsx:285 msgid "No lyrics" msgstr "无歌词" -#: src/pages/Playlist/Playlist.tsx:223 -#: src/pages/Playlist/Playlist.tsx:240 +#: src/pages/Playlist/Playlist.tsx:224 +#: src/pages/Playlist/Playlist.tsx:241 msgid "OK" msgstr "确定" -#: src/components/CommonList/CommonMenu.tsx:167 -#: src/pages/Player/PlayerMenu.tsx:220 +#: src/components/CommonList/CommonMenu.tsx:168 +#: src/pages/Player/PlayerMenu.tsx:213 msgid "Open in folder" msgstr "打开所在文件夹" @@ -197,16 +212,18 @@ msgstr "打开所在文件夹" msgid "Open source dependencies" msgstr "开源库" -#: src/components/CommonList/CommonList.tsx:382 +#: src/components/CommonList/CommonList.tsx:383 msgid "Play all" msgstr "全部播放" -#: src/pages/Player/PlayerMenu.tsx:228 +#: src/pages/Player/Audio/Modern.tsx:172 +#: src/pages/Player/PlayerControl.tsx:308 +#: src/pages/Player/PlayerMenu.tsx:221 msgid "Play queue" msgstr "播放队列" -#: src/pages/Player/PlayerMenu.tsx:207 -#: src/pages/Player/PlayerMenu.tsx:305 +#: src/pages/Player/PlayerMenu.tsx:200 +#: src/pages/Player/PlayerMenu.tsx:298 msgid "Playback rate" msgstr "播放速度" @@ -215,16 +232,16 @@ msgstr "播放速度" msgid "Please use Microsoft account authorization to log in" msgstr "请使用微软账户授权登录" -#: src/pages/Player/PlayerMenu.tsx:255 +#: src/pages/Player/PlayerMenu.tsx:248 msgid "Re-fetch metadata" msgstr "重新获取元数据" -#: src/components/CommonList/CommonMenu.tsx:185 +#: src/components/CommonList/CommonMenu.tsx:186 msgid "Remove" msgstr "移除" -#: src/pages/Playlist/Playlist.tsx:184 -#: src/pages/Playlist/Playlist.tsx:202 +#: src/pages/Playlist/Playlist.tsx:185 +#: src/pages/Playlist/Playlist.tsx:203 msgid "Rename" msgstr "重命名" @@ -235,7 +252,7 @@ msgstr "重命名" msgid "Search" msgstr "搜索" -#: src/components/CommonList/CommonMenu.tsx:198 +#: src/components/CommonList/CommonMenu.tsx:199 msgid "Select" msgstr "选择" @@ -243,7 +260,7 @@ msgstr "选择" msgid "Select account" msgstr "选择账户" -#: src/components/CommonList/CommonMenu.tsx:208 +#: src/components/CommonList/CommonMenu.tsx:209 msgid "Select all" msgstr "全选" @@ -267,16 +284,16 @@ msgstr "注销" msgid "Size" msgstr "大小" -#: src/pages/Player/PlayerMenu.tsx:248 +#: src/pages/Player/PlayerMenu.tsx:241 msgid "Switch fullscreen" msgstr "切换全屏" -#: src/pages/Player/PlayerMenu.tsx:198 -#: src/pages/Player/PlayerMenu.tsx:268 +#: src/pages/Player/PlayerMenu.tsx:191 +#: src/pages/Player/PlayerMenu.tsx:261 msgid "Switch theme" msgstr "切换主题" -#: src/pages/Playlist/Playlist.tsx:236 +#: src/pages/Playlist/Playlist.tsx:237 msgid "The playlist will be deleted" msgstr "播放列表将会被删除" diff --git a/src/locales/zh-CN/messages.ts b/src/locales/zh-CN/messages.ts index ff089a2..058d7dd 100644 --- a/src/locales/zh-CN/messages.ts +++ b/src/locales/zh-CN/messages.ts @@ -1 +1 @@ -/*eslint-disable*/import type{Messages}from"@lingui/core";export const messages=JSON.parse("{\"uyJsf6\":\"关于\",\"AeXO77\":\"账户\",\"MPPZ54\":\"添加账户\",\"uQ+CWJ\":\"新建播放列表\",\"Vmuxgj\":\"添加到播放队列\",\"gLfZlz\":\"添加到播放列表\",\"nYD/Cq\":\"正序\",\"R9Khdg\":\"自动\",\"dEgA5A\":\"取消\",\"JsViZF\":\"取消选择\",\"1gUYFw\":\"经典\",\"xCJdfg\":\"清除\",\"yz7wBu\":\"关闭\",\"YDWhuY\":\"颜色模式\",\"Hp1l6f\":\"当前\",\"srRMnJ\":\"定制\",\"pvnfJD\":\"深色\",\"HKH+W+\":\"数据\",\"cnGeoo\":\"删除\",\"Cko536\":\"倒序\",\"dVoWOX\":\"输入新标题\",\"sER+bs\":\"文件\",\"rvhCbi\":\"文件夹优先\",\"2GT3Hf\":\"全局\",\"CXDHcv\":\"网格\",\"t3SPBU\":\"高清缩略图\",\"0caMy7\":\"历史\",\"x5DnMs\":\"最后修改\",\"1njn7W\":\"浅色\",\"2BBAbc\":\"列表\",\"2QFkSI\":\"本地元数据缓存\",\"wckWOP\":\"管理\",\"eK4SL/\":\"仅限媒体\",\"IU7sBy\":\"现代\",\"2FYpfJ\":\"更多\",\"/u/nsV\":\"多列列表\",\"6YtxFj\":\"名称\",\"dMizp8\":\"新播放列表\",\"AZp7qF\":\"无歌词\",\"zga9sT\":\"确定\",\"zAd2xF\":\"打开所在文件夹\",\"OZNIzM\":\"开源库\",\"tVR7Hf\":\"全部播放\",\"2ckL2r\":\"播放队列\",\"W7OEzk\":\"播放速度\",\"2t5KJY\":\"请使用微软账户授权登录\",\"MjjKPY\":\"重新获取元数据\",\"t/YqKh\":\"移除\",\"2wxgft\":\"重命名\",\"A1taO8\":\"搜索\",\"rG3WVm\":\"选择\",\"+O3PfQ\":\"选择账户\",\"wgNoIs\":\"全选\",\"EFKJQT\":\"设置\",\"ML96zX\":\"全部随机播放\",\"5lWFkC\":\"登录\",\"fcWrnU\":\"注销\",\"Cj2Gtd\":\"大小\",\"NG9Ghl\":\"切换全屏\",\"dGrFyD\":\"切换主题\",\"DLu3TH\":\"播放列表将会被删除\",\"lRkLr5\":\"使用专辑封面主题色\"}")as Messages; \ No newline at end of file +/*eslint-disable*/import type{Messages}from"@lingui/core";export const messages=JSON.parse("{\"uyJsf6\":\"关于\",\"AeXO77\":\"账户\",\"MPPZ54\":\"添加账户\",\"uQ+CWJ\":\"新建播放列表\",\"Vmuxgj\":\"添加到播放队列\",\"gLfZlz\":\"添加到播放列表\",\"nYD/Cq\":\"正序\",\"R9Khdg\":\"自动\",\"dEgA5A\":\"取消\",\"JsViZF\":\"取消选择\",\"1gUYFw\":\"经典\",\"xCJdfg\":\"清除\",\"yz7wBu\":\"关闭\",\"YDWhuY\":\"颜色模式\",\"Hp1l6f\":\"当前\",\"srRMnJ\":\"定制\",\"pvnfJD\":\"深色\",\"HKH+W+\":\"数据\",\"cnGeoo\":\"删除\",\"Cko536\":\"倒序\",\"dVoWOX\":\"输入新标题\",\"sER+bs\":\"文件\",\"rvhCbi\":\"文件夹优先\",\"3qkggm\":\"全屏\",\"2GT3Hf\":\"全局\",\"CXDHcv\":\"网格\",\"t3SPBU\":\"高清缩略图\",\"0caMy7\":\"历史\",\"x5DnMs\":\"最后修改\",\"1njn7W\":\"浅色\",\"2BBAbc\":\"列表\",\"2QFkSI\":\"本地元数据缓存\",\"HzF5X6\":\"歌词\",\"wckWOP\":\"管理\",\"eK4SL/\":\"仅限媒体\",\"zucql+\":\"菜单\",\"IU7sBy\":\"现代\",\"2FYpfJ\":\"更多\",\"/u/nsV\":\"多列列表\",\"6YtxFj\":\"名称\",\"dMizp8\":\"新播放列表\",\"AZp7qF\":\"无歌词\",\"zga9sT\":\"确定\",\"zAd2xF\":\"打开所在文件夹\",\"OZNIzM\":\"开源库\",\"tVR7Hf\":\"全部播放\",\"2ckL2r\":\"播放队列\",\"W7OEzk\":\"播放速度\",\"2t5KJY\":\"请使用微软账户授权登录\",\"MjjKPY\":\"重新获取元数据\",\"t/YqKh\":\"移除\",\"2wxgft\":\"重命名\",\"A1taO8\":\"搜索\",\"rG3WVm\":\"选择\",\"+O3PfQ\":\"选择账户\",\"wgNoIs\":\"全选\",\"EFKJQT\":\"设置\",\"ML96zX\":\"全部随机播放\",\"5lWFkC\":\"登录\",\"fcWrnU\":\"注销\",\"Cj2Gtd\":\"大小\",\"NG9Ghl\":\"切换全屏\",\"dGrFyD\":\"切换主题\",\"DLu3TH\":\"播放列表将会被删除\",\"lRkLr5\":\"使用专辑封面主题色\"}")as Messages; \ No newline at end of file diff --git a/src/pages/PictureView/PictureView.tsx b/src/pages/PictureView/PictureView.tsx index b3b115b..9886576 100644 --- a/src/pages/PictureView/PictureView.tsx +++ b/src/pages/PictureView/PictureView.tsx @@ -1,9 +1,10 @@ import usePictureStore from '@/store/usePictureStore' import CloseRoundedIcon from '@mui/icons-material/CloseRounded' -import { Box, Dialog, IconButton } from '@mui/material' +import { Box, Dialog, IconButton, Tooltip } from '@mui/material' import PictureList from './PictureList' import { useEffect, useRef } from 'react' import { useShallow } from 'zustand/shallow' +import { t } from '@lingui/macro' const PictureView = () => { @@ -68,7 +69,11 @@ const PictureView = () => { }} > - + + + + + {currentPicture?.fileName} diff --git a/src/pages/Player/Audio/Modern.tsx b/src/pages/Player/Audio/Modern.tsx index 06f913a..480c513 100644 --- a/src/pages/Player/Audio/Modern.tsx +++ b/src/pages/Player/Audio/Modern.tsx @@ -1,4 +1,4 @@ -import { Box, CircularProgress, Container, IconButton, Slider, Tab, Tabs, Typography, useMediaQuery, useTheme } from '@mui/material' +import { Box, CircularProgress, Container, IconButton, Slider, Tab, Tabs, Tooltip, Typography, useMediaQuery, useTheme } from '@mui/material' import Grid from '@mui/material/Grid2' import useFullscreen from '@/hooks/ui/useFullscreen' import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded' @@ -151,9 +151,11 @@ const Modern = ({ player, styles }: { player: HTMLVideoElement | null, styles: { height: 'auto', }}> - updateAudioViewIsShow(!audioViewIsShow)}> - - + + updateAudioViewIsShow(!audioViewIsShow)}> + + + updatePlayQueueIsShow(true)} - className='app-region-no-drag' - > - - + + updatePlayQueueIsShow(true)} + className='app-region-no-drag' + > + + + } {!isMobile && } { !isMobile && + + updateLyricsIsShow(!lyricsIsShow)} + className='app-region-no-drag' + > + + + + } + + updateLyricsIsShow(!lyricsIsShow)} + aria-label="Full" + onClick={() => handleClickFullscreen()} className='app-region-no-drag' > - + { + fullscreen + ? + : + } - } - - handleClickFullscreen()} - className='app-region-no-drag' - > - { - fullscreen - ? - : - } - + diff --git a/src/pages/Player/PlayerControl.tsx b/src/pages/Player/PlayerControl.tsx index abe483d..5f9cd4f 100644 --- a/src/pages/Player/PlayerControl.tsx +++ b/src/pages/Player/PlayerControl.tsx @@ -1,4 +1,4 @@ -import { Box, ButtonBase, CircularProgress, Container, IconButton, Paper, Slider, Typography, useTheme } from '@mui/material' +import { Box, ButtonBase, CircularProgress, Container, IconButton, Paper, Slider, Tooltip, Typography, useTheme } from '@mui/material' import Grid from '@mui/material/Grid2' import CloseFullscreenRoundedIcon from '@mui/icons-material/CloseFullscreenRounded' import OpenInFullRoundedIcon from '@mui/icons-material/OpenInFullRounded' @@ -23,6 +23,7 @@ import VolumeControl from './VolumeControl' import { useEffect, useMemo } from 'react' import useControlHide from '@/hooks/ui/useControlHide' import { useShallow } from 'zustand/shallow' +import { t } from '@lingui/macro' const PlayerControl = ({ player }: { player: HTMLVideoElement | null }) => { @@ -304,21 +305,25 @@ const PlayerControl = ({ player }: { player: HTMLVideoElement | null }) => { pr={1} > - updatePlayQueueIsShow(!playQueueIsShow)} sx={{ display: { sm: 'inline-grid', xs: 'none' } }}> - - + + updatePlayQueueIsShow(!playQueueIsShow)} sx={{ display: { sm: 'inline-grid', xs: 'none' } }}> + + + - handleClickFullscreen()} sx={{ display: { sm: 'inline-grid', xs: 'none' } }} > - { - fullscreen - ? - : - } - + + handleClickFullscreen()} sx={{ display: { sm: 'inline-grid', xs: 'none' } }} > + { + fullscreen + ? + : + } + + diff --git a/src/pages/Player/PlayerMenu.tsx b/src/pages/Player/PlayerMenu.tsx index 704c64b..36f3521 100644 --- a/src/pages/Player/PlayerMenu.tsx +++ b/src/pages/Player/PlayerMenu.tsx @@ -12,7 +12,7 @@ import PlaylistPlayRoundedIcon from '@mui/icons-material/PlaylistPlayRounded' import CloseFullscreenRoundedIcon from '@mui/icons-material/CloseFullscreenRounded' import OpenInFullRoundedIcon from '@mui/icons-material/OpenInFullRounded' import CloudDownloadRoundedIcon from '@mui/icons-material/CloudDownloadRounded' -import { Box, Button, Dialog, DialogActions, DialogTitle, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem } from '@mui/material' +import { Box, Button, Dialog, DialogActions, DialogTitle, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem, Tooltip } from '@mui/material' import { useMemo, useState } from 'react' import { t } from '@lingui/macro' import usePlayQueueStore from '@/store/usePlayQueueStore' @@ -160,9 +160,11 @@ const PlayerMenu = ({ player }: { player: HTMLVideoElement | null }) => { return ( <> - handleClickMenu(event)}> - - + + handleClickMenu(event)}> + + + { @@ -52,23 +53,25 @@ const VideoPlayerTopbar = () => { }} className='app-region-no-drag' > - { - updateVideoViewIsShow(false) - updateControlIsShow(true) - }} - sx={{ - height: '100%', - borderRadius: '0.25rem', - '.MuiTouchRipple-ripple .MuiTouchRipple-child': { + + { + updateVideoViewIsShow(false) + updateControlIsShow(true) + }} + sx={{ + height: '100%', borderRadius: '0.25rem', - }, - aspectRatio: '1 / 1', - }} - > - - + '.MuiTouchRipple-ripple .MuiTouchRipple-child': { + borderRadius: '0.25rem', + }, + aspectRatio: '1 / 1', + }} + > + + + diff --git a/src/pages/Player/VolumeControl.tsx b/src/pages/Player/VolumeControl.tsx index e79944d..bf724bf 100644 --- a/src/pages/Player/VolumeControl.tsx +++ b/src/pages/Player/VolumeControl.tsx @@ -33,22 +33,7 @@ export default function VolumeControl() { return (
- + ) => setVolumeAnchorEl(event.currentTarget)} > { volume === 0