App changes: * Move to Vue Material for UI components * Convert request cards to true material design cards, separating the "pray" button from the others and improved highlighting of the current request * Centralize Auth0 integration in one place; modify the Vuex store to rely on it entirely, and add a Vue mixin to make it accessible by any component API changes: * Change backing data store to RavenDB * Evolve domain models (using F# discriminated unions, and JSON converters for storage) to make invalid states unrepresentable * Incorporate the FunctionalCuid library * Create a functional pipeline for app configuration instead of chaining `IWebHostBuilder` calls Bug fixes: * Set showAfter to 0 for immediately recurring requests (#26)
29 lines
506 B
Vue
29 lines
506 B
Vue
<template lang="pug">
|
|
h1(v-if='!hideOnPage'
|
|
v-html='title').md-title
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'page-title',
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
hideOnPage: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
watch: {
|
|
title () {
|
|
document.title = `${this.title.replace('’', "'")} « myPrayerJournal`
|
|
}
|
|
},
|
|
created () {
|
|
document.title = `${this.title.replace('’', "'")} « myPrayerJournal`
|
|
}
|
|
}
|
|
</script>
|