From 5c464f60f0a747641132568339157b308f008dc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A0=E9=B1=BC=E9=B1=BC?=
<109492503+kazukokawagawa@users.noreply.github.com>
Date: Sat, 31 Jan 2026 07:36:38 +0000
Subject: [PATCH] Revert "Dev cy (#782)"
This reverts commit afc7f6987045a85e099ecde17b5c885b11768ae3.
---
components.d.ts | 2 -
electron/main/ipc/ipc-file.ts | 35 +-
src/components/Card/SongCard.vue | 18 +-
src/components/Card/SongDataCard.vue | 16 +-
src/components/Card/SongListCard.vue | 3 +-
src/components/List/ArtistList.vue | 31 +-
src/components/List/CommentList.vue | 16 +-
src/components/List/CoverList.vue | 56 +-
src/components/List/ListDetail.vue | 46 +-
src/components/List/SongList.vue | 2 +-
src/components/List/SongPlayList.vue | 25 +-
src/components/Modal/JumpArtist.vue | 7 +-
src/components/Modal/Setting/CoverManager.vue | 96 ----
.../Modal/Setting/PlaylistPageManager.vue | 63 ---
src/components/Player/FullPlayerMobile.vue | 2 +-
src/components/Player/MainPlayer.vue | 23 +-
.../Player/PlayerComponents/PersonalFM.vue | 55 +-
.../Player/PlayerComponents/PlayerComment.vue | 2 +-
.../Player/PlayerMeta/PlayerData.vue | 18 +-
src/components/Setting/AboutSetting.vue | 17 +-
src/components/Setting/MainSetting.vue | 73 +--
src/components/Setting/config/appearance.ts | 488 ------------------
src/components/Setting/config/general.ts | 447 +++++++++-------
src/components/Setting/config/local.ts | 2 +-
src/components/Setting/config/lyric.ts | 45 +-
src/components/Setting/config/other.ts | 291 +++++++++++
src/components/Setting/config/play.ts | 327 +++++++++---
src/components/Setting/config/streaming.ts | 40 ++
.../Setting/config/{network.ts => third.ts} | 184 +------
src/core/audio-player/AudioElementPlayer.ts | 25 +-
src/core/audio-player/IPlaybackEngine.ts | 6 -
src/core/player/AudioManager.ts | 8 -
src/core/player/LyricManager.ts | 192 -------
src/core/player/PlayerController.ts | 58 ---
src/stores/setting.ts | 84 +--
src/style/animate.scss | 71 ---
src/types/main.ts | 14 +-
src/utils/modal.ts | 32 --
src/views/Artist/layout.vue | 12 +-
src/views/Artist/videos.vue | 4 -
src/views/Discover/artists.vue | 10 +-
src/views/Discover/new.vue | 4 -
src/views/Discover/playlists.vue | 4 +-
src/views/Discover/toplists.vue | 23 +-
src/views/Home/HomeOnline.vue | 6 +-
src/views/Like/albums.vue | 10 +-
src/views/Like/artists.vue | 9 +-
src/views/Like/playlists.vue | 11 +-
src/views/Like/radios.vue | 10 +-
src/views/Like/videos.vue | 4 +-
src/views/Radio/hot.vue | 16 +-
src/views/Radio/type.vue | 16 +-
src/views/Search/videos.vue | 4 -
src/views/Song/wiki.vue | 34 +-
src/views/Streaming/layout.vue | 2 +-
src/views/Video.vue | 11 +-
56 files changed, 1047 insertions(+), 2063 deletions(-)
delete mode 100644 src/components/Modal/Setting/CoverManager.vue
delete mode 100644 src/components/Modal/Setting/PlaylistPageManager.vue
delete mode 100644 src/components/Setting/config/appearance.ts
create mode 100644 src/components/Setting/config/other.ts
create mode 100644 src/components/Setting/config/streaming.ts
rename src/components/Setting/config/{network.ts => third.ts} (70%)
diff --git a/components.d.ts b/components.d.ts
index d9247dcfe..05a460bd3 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -29,7 +29,6 @@ declare module 'vue' {
copy: typeof import('./src/components/Global/Provider copy.vue')['default']
CopyLyrics: typeof import('./src/components/Modal/CopyLyrics.vue')['default']
CoverList: typeof import('./src/components/List/CoverList.vue')['default']
- CoverManager: typeof import('./src/components/Modal/Setting/CoverManager.vue')['default']
CoverMenu: typeof import('./src/components/Menu/CoverMenu.vue')['default']
CreatePlaylist: typeof import('./src/components/Modal/CreatePlaylist.vue')['default']
CustomCode: typeof import('./src/components/Modal/Setting/CustomCode.vue')['default']
@@ -162,7 +161,6 @@ declare module 'vue' {
PlayerSlider: typeof import('./src/components/Player/PlayerComponents/PlayerSlider.vue')['default']
PlayerSpectrum: typeof import('./src/components/Player/PlayerComponents/PlayerSpectrum.vue')['default']
PlaylistAdd: typeof import('./src/components/Modal/PlaylistAdd.vue')['default']
- PlaylistPageManager: typeof import('./src/components/Modal/Setting/PlaylistPageManager.vue')['default']
PlaySetting: typeof import('./src/components/Setting/old/PlaySetting.vue')['default']
Provider: typeof import('./src/components/Global/Provider.vue')['default']
ProxyConfig: typeof import('./src/components/Setting/components/ProxyConfig.vue')['default']
diff --git a/electron/main/ipc/ipc-file.ts b/electron/main/ipc/ipc-file.ts
index 332dec0c0..649fc2f15 100644
--- a/electron/main/ipc/ipc-file.ts
+++ b/electron/main/ipc/ipc-file.ts
@@ -156,12 +156,6 @@ const initFileIpc = (): void => {
size: (size / (1024 * 1024)).toFixed(2),
path: fullPath,
quality: format.bitrate ?? 0,
- replayGain: {
- trackGain: common.replaygain_track_gain?.ratio,
- trackPeak: common.replaygain_track_peak?.ratio,
- albumGain: common.replaygain_album_gain?.ratio,
- albumPeak: common.replaygain_album_peak?.ratio,
- },
};
} catch (err) {
ipcLog.warn(`⚠️ Failed to parse file: ${fullPath}`, err);
@@ -199,12 +193,6 @@ const initFileIpc = (): void => {
format,
// md5
md5: await getFileMD5(filePath),
- replayGain: {
- trackGain: common.replaygain_track_gain?.ratio,
- trackPeak: common.replaygain_track_peak?.ratio,
- albumGain: common.replaygain_album_gain?.ratio,
- albumPeak: common.replaygain_album_peak?.ratio,
- },
};
} catch (error) {
ipcLog.error("❌ Error fetching music metadata:", error);
@@ -648,26 +636,9 @@ const initFileIpc = (): void => {
Id3v2Settings.defaultVersion = 3;
songFile.tag.title = songData?.name || "未知曲目";
- songFile.tag.album =
- (typeof songData?.album === "string" ? songData.album : songData?.album?.name) || "未知专辑";
- // 处理歌手信息(兼容字符串和数组格式)
- const getArtistNames = (artists: any): string[] => {
- if (Array.isArray(artists)) {
- return artists
- .map((ar: any) => (typeof ar === "string" ? ar : ar?.name || ""))
- .filter((name) => name && name.trim().length > 0);
- }
- if (typeof artists === "string" && artists.trim().length > 0) {
- return [artists];
- }
- return [];
- };
-
- const artistNames = getArtistNames(songData?.artists);
- const finalArtists = artistNames.length > 0 ? artistNames : ["未知艺术家"];
-
- songFile.tag.performers = finalArtists;
- songFile.tag.albumArtists = finalArtists;
+ songFile.tag.album = songData?.album?.name || "未知专辑";
+ songFile.tag.performers = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"];
+ songFile.tag.albumArtists = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"];
if (lyric && downloadLyric) songFile.tag.lyrics = lyric;
if (songCover && downloadCover) songFile.tag.pictures = [songCover];
// 保存元信息
diff --git a/src/components/Card/SongCard.vue b/src/components/Card/SongCard.vue
index 5dc66e46b..49ac0ead1 100644
--- a/src/components/Card/SongCard.vue
+++ b/src/components/Card/SongCard.vue
@@ -40,12 +40,12 @@
class="name-text"
>
{{
- settingStore.hideBracketedContent
+ settingStore.hideLyricBrackets
? removeBrackets(song?.name)
: song?.name || "未知曲目"
}}