-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from ZyqGitHub1/dev
delete sexually obscene content
- Loading branch information
Showing
14 changed files
with
444 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<q-toolbar> | ||
<q-toolbar-title> | ||
<q-avatar | ||
square | ||
size="24px" | ||
color="orange" | ||
>H</q-avatar> | ||
</q-toolbar-title> | ||
<q-space></q-space> | ||
<q-btn | ||
v-if="canUpdate" | ||
color="orange" | ||
icon="cloud_upload" | ||
label="发现新版本,点击查看" | ||
@click="visitRelease" | ||
/> | ||
</q-toolbar> | ||
</template> | ||
|
||
<script> | ||
import { mapState } from 'vuex'; | ||
import semver from 'semver'; | ||
export default { | ||
name: 'FooterContent', | ||
computed: { | ||
...mapState({ | ||
currentVersion: state => state.app.currentVersion, | ||
latestVersion: state => state.app.latestVersion, | ||
}), | ||
canUpdate() { | ||
return ( | ||
this.latestVersion !== '0.0.0' | ||
&& semver.gt(this.latestVersion, this.currentVersion) | ||
); | ||
}, | ||
}, | ||
methods: { | ||
visitRelease() { | ||
const { shell } = this.$q.electron; | ||
shell.openExternal('https://github.com/ZyqGitHub1/h-player-v2/releases'); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style> | ||
</style> |
Oops, something went wrong.