Get version from package.json (#10)

...that was easy.
This commit is contained in:
Daniel J. Summers 2017-10-19 15:11:51 -05:00
parent b8f1708012
commit a1ce40ee83

View File

@ -6,7 +6,10 @@
vue-progress-bar
toast(ref='toast')
footer
p.text-right: i myPrayerJournal v0.8.4
p.text-right.text-muted: i.
myPrayerJournal v{{ version }} •
#[a(href='https://github.com/danieljsummers/myprayerjournal') Developed] and hosted by
#[a(href='https://bitbadger.solutions') Bit Badger Solutions]
</template>
<script>
@ -14,11 +17,16 @@
import Navigation from './components/Navigation.vue'
import { version } from '../package.json'
export default {
name: 'app',
components: {
Navigation
},
data () {
return { version }
},
mounted () {
this.$refs.toast.setOptions({ position: 'bottom right' })
},
@ -45,6 +53,9 @@ footer {
footer p {
margin: 0;
}
a:link, a:visited {
color: #050;
}
.mpj-request-text {
white-space: pre-line;
}