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 vue-progress-bar
toast(ref='toast') toast(ref='toast')
footer 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> </template>
<script> <script>
@ -14,11 +17,16 @@
import Navigation from './components/Navigation.vue' import Navigation from './components/Navigation.vue'
import { version } from '../package.json'
export default { export default {
name: 'app', name: 'app',
components: { components: {
Navigation Navigation
}, },
data () {
return { version }
},
mounted () { mounted () {
this.$refs.toast.setOptions({ position: 'bottom right' }) this.$refs.toast.setOptions({ position: 'bottom right' })
}, },
@ -45,6 +53,9 @@ footer {
footer p { footer p {
margin: 0; margin: 0;
} }
a:link, a:visited {
color: #050;
}
.mpj-request-text { .mpj-request-text {
white-space: pre-line; white-space: pre-line;
} }