mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: prettier task supported (#40)
* feat: add config to resolve path alias. * feat: use vue-i18n for language switch * feat: add .editorconfig for ide * fix: add no-referrer to avoid CROB * fix: setCookie and fix typo * feat: integrate vue-i18n * feat: player component i18n support * fix: duplicate key warning in explore page * fix: like songs number changed in library page * fire: remove todo * fix: same text search on enter will cause error * fix: scrobble error params type * feat: prettier task supported * fix: prettier ignore config update * fix: conflict
This commit is contained in:
parent
56fe497db9
commit
c042faa001
44 changed files with 1755 additions and 1445 deletions
|
|
@ -6,9 +6,9 @@ export function getArtist(id) {
|
|||
url: "/artists",
|
||||
method: "get",
|
||||
params: {
|
||||
id
|
||||
}
|
||||
}).then(data => {
|
||||
id,
|
||||
},
|
||||
}).then((data) => {
|
||||
data.hotSongs = mapTrackPlayableStatus(data.hotSongs);
|
||||
return data;
|
||||
});
|
||||
|
|
@ -21,7 +21,7 @@ export function getArtistAlbum(params) {
|
|||
return request({
|
||||
url: "/artist/album",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -35,8 +35,8 @@ export function toplistOfArtists(type = null) {
|
|||
url: "/toplist/artist",
|
||||
method: "get",
|
||||
params: {
|
||||
type
|
||||
}
|
||||
type,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ export function artistMv(id) {
|
|||
url: "/artist/mv",
|
||||
method: "get",
|
||||
params: {
|
||||
id
|
||||
}
|
||||
id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export function recommendPlaylist(params) {
|
|||
return request({
|
||||
url: "/personalized",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
export function dailyRecommendPlaylist(params) {
|
||||
|
|
@ -14,7 +14,7 @@ export function dailyRecommendPlaylist(params) {
|
|||
return request({
|
||||
url: "/recommend/resource",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -24,8 +24,8 @@ export function getPlaylistDetail(id, noCache = false) {
|
|||
return request({
|
||||
url: "/playlist/detail",
|
||||
method: "get",
|
||||
params
|
||||
}).then(data => {
|
||||
params,
|
||||
}).then((data) => {
|
||||
data.playlist.tracks = mapTrackPlayableStatus(data.playlist.tracks);
|
||||
return data;
|
||||
});
|
||||
|
|
@ -38,7 +38,7 @@ export function highQualityPlaylist(params) {
|
|||
return request({
|
||||
url: "/top/playlist/highquality",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -50,21 +50,21 @@ export function topPlaylist(params) {
|
|||
return request({
|
||||
url: "/top/playlist",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
export function playlistCatlist() {
|
||||
return request({
|
||||
url: "/playlist/catlist",
|
||||
method: "get"
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
export function toplists() {
|
||||
return request({
|
||||
url: "/toplist",
|
||||
method: "get"
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -74,6 +74,6 @@ export function subscribePlaylist(params) {
|
|||
return request({
|
||||
url: "/playlist/subscribe",
|
||||
method: "get",
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue