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:
Hawtim Zhang 2020-10-22 21:44:34 +08:00 committed by GitHub
parent 56fe497db9
commit c042faa001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 1755 additions and 1445 deletions

View file

@ -1,9 +1,7 @@
<template>
<div class="home" v-show="show">
<div class="index-row">
<div class="title">
by Apple Music
</div>
<div class="title"> by Apple Music </div>
<CoverRow
:type="'playlist'"
:items="byAppleMusic"
@ -70,36 +68,36 @@ export default {
newReleasesAlbum: { items: [] },
topList: {
items: [],
ids: [19723756, 180106, 60198, 3812895, 60131]
ids: [19723756, 180106, 60198, 3812895, 60131],
},
recommendArtists: {
items: [],
indexs: []
}
indexs: [],
},
};
},
computed: {
byAppleMusic() {
return byAppleMusic;
}
},
},
methods: {
loadData() {
if (!this.show) NProgress.start();
recommendPlaylist({
limit: 10
}).then(data => {
limit: 10,
}).then((data) => {
this.recommendPlaylist.items = data.result;
NProgress.done();
this.show = true;
});
newAlbums({
area: "EA",
limit: 10
}).then(data => {
limit: 10,
}).then((data) => {
this.newReleasesAlbum.items = data.albums;
});
toplistOfArtists(2).then(data => {
toplistOfArtists(2).then((data) => {
let indexs = [];
while (indexs.length < 5) {
let tmp = ~~(Math.random() * 100);
@ -110,16 +108,16 @@ export default {
indexs.includes(index)
);
});
toplists().then(data => {
this.topList.items = data.list.filter(l =>
toplists().then((data) => {
this.topList.items = data.list.filter((l) =>
this.topList.ids.includes(l.id)
);
});
}
},
},
activated() {
this.loadData();
}
},
};
</script>