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

@ -102,7 +102,7 @@ export default {
email: "",
password: "",
smsCode: "",
inputFocus: ""
inputFocus: "",
};
},
created() {
@ -118,11 +118,11 @@ export default {
Cookies.set("loginMode", "account", { expires: 3650 });
userPlaylist({
uid: this.$store.state.settings.user.userId,
limit: 1
}).then(data => {
limit: 1,
}).then((data) => {
this.updateUserInfo({
key: "likedSongPlaylistID",
value: data.playlist[0].id
value: data.playlist[0].id,
});
this.$router.push({ path: "/library" });
});
@ -143,15 +143,15 @@ export default {
countrycode: this.countryCode.replace("+", "").replace(/\s/g, ""),
phone: this.phoneNumber.replace(/\s/g, ""),
password: "fakePassword",
md5_password: md5(this.password).toString()
md5_password: md5(this.password).toString(),
})
.then(data => {
.then((data) => {
if (data.code !== 502) {
this.updateUser(data.profile);
this.afterLogin();
}
})
.catch(error => {
.catch((error) => {
this.processing = false;
alert(error);
});
@ -169,21 +169,21 @@ export default {
loginWithEmail({
email: this.email.replace(/\s/g, ""),
password: "fakePassword",
md5_password: md5(this.password).toString()
md5_password: md5(this.password).toString(),
})
.then(data => {
.then((data) => {
if (data.code !== 502) {
this.updateUser(data.profile);
this.afterLogin();
}
})
.catch(error => {
.catch((error) => {
this.processing = false;
alert(error);
});
}
}
}
},
},
};
</script>