-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Version number and changelog are now displayed inside the app
- Loading branch information
1 parent
ab5da76
commit ecba3ae
Showing
11 changed files
with
341 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
const fs = require('fs'); | ||
const packageJson = require('../package.json'); | ||
const version = packageJson.version; | ||
|
||
const stream = fs.createWriteStream("src/version.json"); | ||
stream.once('open', function() { | ||
stream.write('{\n'); | ||
stream.write(` "version": "${version}"\n`); | ||
stream.write('}\n'); | ||
stream.end(); | ||
}); |
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
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,46 @@ | ||
<template> | ||
<div class="footer"> | ||
<b-text class="version" @click.native="openModal('changelog-modal')">v{{ version }}</b-text> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapActions } from 'vuex'; | ||
import versionFile from '../version.json'; | ||
export default { | ||
name: 'MainWindowFooter', | ||
data() { | ||
return { | ||
version: versionFile.version, | ||
}; | ||
}, | ||
methods: { | ||
...mapActions('app', [ | ||
'openModal', | ||
]), | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.footer { | ||
height: 30px; | ||
margin-top: auto; | ||
margin-bottom: 10px; | ||
box-sizing: border-box; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.version { | ||
color: var(--spotify-green); | ||
font-weight: bold; | ||
font-size: 14px; | ||
padding: 10px; | ||
cursor: pointer; | ||
} | ||
</style> |
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
Oops, something went wrong.