mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-02-16 23:12:45 +08:00
fix: bugs
This commit is contained in:
parent
de7d008c0b
commit
967a7165ac
11
package.json
11
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "YesPlayMusic",
|
"name": "YesPlayMusic",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A third party music application for Netease Music",
|
"description": "A third party music application for Netease Music",
|
||||||
"author": "hawtim<hawtimzhang@gmail.com>",
|
"author": "hawtim<hawtimzhang@gmail.com>",
|
||||||
|
@ -8,10 +8,11 @@
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"electron:build": "vue-cli-service electron:build -mwl -p never",
|
"electron:build": "vue-cli-service electron:build -p never",
|
||||||
"electron:build-mac": "vue-cli-service electron:build -m -p never",
|
"electron:build-all": "vue-cli-service electron:build -p never -mwl",
|
||||||
"electron:build-win": "vue-cli-service electron:build -w -p never",
|
"electron:build-mac": "vue-cli-service electron:build -p never -m",
|
||||||
"electron:build-linux": "vue-cli-service electron:build -l -p never",
|
"electron:build-win": "vue-cli-service electron:build -p never -w",
|
||||||
|
"electron:build-linux": "vue-cli-service electron:build -p never -l",
|
||||||
"electron:serve": "vue-cli-service electron:serve",
|
"electron:serve": "vue-cli-service electron:serve",
|
||||||
"electron:buildicon": "electron-icon-builder --input=./build/icons/icon.png --output=build --flatten",
|
"electron:buildicon": "electron-icon-builder --input=./build/icons/icon.png --output=build --flatten",
|
||||||
"electron:publish": "vue-cli-service electron:build -mwl -p always",
|
"electron:publish": "vue-cli-service electron:build -mwl -p always",
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<Toast />
|
<Toast />
|
||||||
<ModalAddTrackToPlaylist v-if="isAccountLoggedIn" />
|
<ModalAddTrackToPlaylist v-if="isAccountLoggedIn" />
|
||||||
<ModalNewPlaylist v-if="isAccountLoggedIn" />
|
<ModalNewPlaylist v-if="isAccountLoggedIn" />
|
||||||
<transition name="slide-up">
|
<transition name="slide-up" v-if="this.$store.state.player.enabled">
|
||||||
<Lyrics v-show="this.$store.state.showLyrics" />
|
<Lyrics v-show="this.$store.state.showLyrics" />
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -50,9 +50,12 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
imageStyles() {
|
imageStyles() {
|
||||||
let styles = {};
|
let styles = {
|
||||||
|
objectFit: "cover",
|
||||||
|
};
|
||||||
if (this.fixedSize !== 0) {
|
if (this.fixedSize !== 0) {
|
||||||
styles.width = this.fixedSize + "px";
|
styles.width = this.fixedSize + "px";
|
||||||
|
styles.height = this.fixedSize + "px";
|
||||||
}
|
}
|
||||||
if (this.type === "artist") styles.borderRadius = "50%";
|
if (this.type === "artist") styles.borderRadius = "50%";
|
||||||
return styles;
|
return styles;
|
||||||
|
|
|
@ -150,7 +150,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
interval: null,
|
interval: null,
|
||||||
progress: 0,
|
progress: 0,
|
||||||
oldVolume: 0.5,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
@ -174,7 +174,20 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.loadData();
|
if (!this.data.likedSongPlaylistID) {
|
||||||
|
userPlaylist({
|
||||||
|
uid: this.data.user.userId,
|
||||||
|
limit: 1,
|
||||||
|
}).then((data) => {
|
||||||
|
this.updateData({
|
||||||
|
key: "likedSongPlaylistID",
|
||||||
|
value: data.playlist[0].id,
|
||||||
|
});
|
||||||
|
this.loadData();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.loadData();
|
||||||
|
}
|
||||||
dailyTask();
|
dailyTask();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -204,7 +217,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(["showToast"]),
|
...mapActions(["showToast"]),
|
||||||
...mapMutations(["updateModal"]),
|
...mapMutations(["updateModal", "updateData"]),
|
||||||
playLikedSongs() {
|
playLikedSongs() {
|
||||||
this.$store.state.player.playPlaylistByID(
|
this.$store.state.player.playPlaylistByID(
|
||||||
this.playlists[0].id,
|
this.playlists[0].id,
|
||||||
|
|
|
@ -95,7 +95,6 @@ import NProgress from "nprogress";
|
||||||
import { loginWithPhone, loginWithEmail } from "@/api/auth";
|
import { loginWithPhone, loginWithEmail } from "@/api/auth";
|
||||||
import md5 from "crypto-js/md5";
|
import md5 from "crypto-js/md5";
|
||||||
import { mapMutations } from "vuex";
|
import { mapMutations } from "vuex";
|
||||||
import { userPlaylist } from "@/api/user";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Login",
|
name: "Login",
|
||||||
|
@ -124,19 +123,6 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(["updateData"]),
|
...mapMutations(["updateData"]),
|
||||||
afterLogin() {
|
|
||||||
this.updateData({ key: "loginMode", value: "account" });
|
|
||||||
userPlaylist({
|
|
||||||
uid: this.$store.state.data.user.userId,
|
|
||||||
limit: 1,
|
|
||||||
}).then((data) => {
|
|
||||||
this.updateData({
|
|
||||||
key: "likedSongPlaylistID",
|
|
||||||
value: data.playlist[0].id,
|
|
||||||
});
|
|
||||||
this.$router.push({ path: "/library" });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
validatePhone() {
|
validatePhone() {
|
||||||
if (
|
if (
|
||||||
this.countryCode === "" ||
|
this.countryCode === "" ||
|
||||||
|
@ -198,7 +184,8 @@ export default {
|
||||||
}
|
}
|
||||||
if (data.code === 200) {
|
if (data.code === 200) {
|
||||||
this.updateData({ key: "user", value: data.profile });
|
this.updateData({ key: "user", value: data.profile });
|
||||||
this.afterLogin();
|
this.updateData({ key: "loginMode", value: "account" });
|
||||||
|
this.$router.push({ path: "/library" });
|
||||||
} else {
|
} else {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
alert(data.msg ?? data.message);
|
alert(data.msg ?? data.message);
|
||||||
|
|
|
@ -543,7 +543,7 @@ export default {
|
||||||
transition: all 0.5s ease;
|
transition: all 0.5s ease;
|
||||||
}
|
}
|
||||||
.slide-fade-leave-active {
|
.slide-fade-leave-active {
|
||||||
transition: all 0.5s cubic-bezier(1, 0.5, 0.8, 1);
|
transition: all 0.5s cubic-bezier(0.2, 0.2, 0, 1);
|
||||||
}
|
}
|
||||||
.slide-fade-enter,
|
.slide-fade-enter,
|
||||||
.slide-fade-leave-to {
|
.slide-fade-leave-to {
|
||||||
|
|
|
@ -68,16 +68,25 @@ module.exports = {
|
||||||
output: "dist_electron",
|
output: "dist_electron",
|
||||||
},
|
},
|
||||||
mac: {
|
mac: {
|
||||||
|
target: [
|
||||||
|
"dmg",
|
||||||
|
{
|
||||||
|
target: "zip",
|
||||||
|
// arch: ["x64", "arm64"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
|
||||||
category: "public.app-category.music",
|
category: "public.app-category.music",
|
||||||
darkModeSupport: true,
|
darkModeSupport: true,
|
||||||
},
|
},
|
||||||
win: {
|
win: {
|
||||||
|
target: ["nsis", "portable"],
|
||||||
publisherName: "YesPlayMusic",
|
publisherName: "YesPlayMusic",
|
||||||
icon: "build/icons/icon.ico",
|
icon: "build/icons/icon.ico",
|
||||||
publish: ["github"],
|
publish: ["github"],
|
||||||
},
|
},
|
||||||
linux: {
|
linux: {
|
||||||
target: ["AppImage", "tar.gz", "deb", "rpm", "snap"],
|
target: ["AppImage", "tar.gz", "deb", "rpm", "snap", "pacman"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
icon: "./build/icon.icns",
|
icon: "./build/icon.icns",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user