From 3acec3dc25f2630f863a492c099cf512fffe5543 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sun, 8 Oct 2017 19:19:24 -0500 Subject: [PATCH] Misc tweaks - Updated SFCs per Vue Style Guide guidelines - Added green gradient to header and off-white background color to body - Changed DJS Consulting to Bit Badger Solutions in the docs --- docs/index.md | 4 ++- src/app/src/App.vue | 13 ++++++--- src/app/src/components/Answered.vue | 22 ++++++++------- src/app/src/components/Home.vue | 3 ++- src/app/src/components/Journal.vue | 13 ++++----- src/app/src/components/Navigation.vue | 27 ++++++++++--------- src/app/src/components/common/PageTitle.vue | 16 ++++++++--- .../src/components/request/EditRequest.vue | 26 +++++++++++------- .../src/components/request/FullRequest.vue | 26 ++++++++++-------- src/app/src/components/request/NewRequest.vue | 22 +++++++++------ .../components/request/RequestListItem.vue | 5 +++- 11 files changed, 108 insertions(+), 69 deletions(-) diff --git a/docs/index.md b/docs/index.md index 5398b63..58fd614 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,8 @@ +# Documentation + ## Caveats -_myPrayerJournal is currently alpha software. There likely will be errors, the way things work may change, and parts of the application are unfinished or need polish. I **will** do my best to not lose any data, though; it is backed up the way other DJS Consulting sites have their data backed up. Throughout this document, current gotchas will be called out with italic text, like this notice._ +_myPrayerJournal is currently alpha software. There likely will be errors, the way things work may change, and parts of the application are unfinished or need polish. I **will** do my best to not lose any data, though; it is backed up the way other Bit Badger Solutions sites have their data backed up. Throughout this document, current gotchas will be called out with italic text, like this notice._ ## Finding the Site diff --git a/src/app/src/App.vue b/src/app/src/App.vue index 826df48..d3d171d 100644 --- a/src/app/src/App.vue +++ b/src/app/src/App.vue @@ -31,6 +31,9 @@ export default { diff --git a/src/app/src/components/Answered.vue b/src/app/src/components/Answered.vue index 5f9479a..2e65fd8 100644 --- a/src/app/src/components/Answered.vue +++ b/src/app/src/components/Answered.vue @@ -3,8 +3,10 @@ article page-title(title='Answered Requests') p(v-if='!loaded') Loading answered requests... div(v-if='loaded') - p.mpj-request-text(v-for='req in requests') - b-btn(@click='showFull(req.requestId)' size='sm' variant='outline-secondary') + p.mpj-request-text(v-for='req in requests' :key='req.requestId') + b-btn(@click='showFull(req.requestId)' + size='sm' + variant='outline-secondary') icon(name='search') |  View Full Request |     {{ req.text }}   @@ -24,6 +26,9 @@ import api from '@/api' export default { name: 'answered', + components: { + FullRequest + }, data () { return { eventBus: new Vue(), @@ -31,6 +36,11 @@ export default { loaded: false } }, + computed: { + toast () { + return this.$parent.$refs.toast + } + }, async mounted () { this.$Progress.start() try { @@ -45,14 +55,6 @@ export default { this.loaded = true } }, - components: { - FullRequest - }, - computed: { - toast () { - return this.$parent.$refs.toast - } - }, methods: { showFull (requestId) { this.eventBus.$emit('full', requestId) diff --git a/src/app/src/components/Home.vue b/src/app/src/components/Home.vue index 7f7400b..85f903f 100644 --- a/src/app/src/components/Home.vue +++ b/src/app/src/components/Home.vue @@ -1,6 +1,7 @@ @@ -32,17 +33,17 @@ import actions from '@/store/action-types' export default { name: 'journal', - data () { - return { - eventBus: new Vue() - } - }, components: { EditRequest, FullRequest, NewRequest, RequestListItem }, + data () { + return { + eventBus: new Vue() + } + }, computed: { title () { return `${this.user.given_name}'s Prayer Journal` diff --git a/src/app/src/components/Navigation.vue b/src/app/src/components/Navigation.vue index 23471a0..6871393 100644 --- a/src/app/src/components/Navigation.vue +++ b/src/app/src/components/Navigation.vue @@ -1,5 +1,8 @@ - - diff --git a/src/app/src/components/common/PageTitle.vue b/src/app/src/components/common/PageTitle.vue index ddcaf1d..d6bb6a1 100644 --- a/src/app/src/components/common/PageTitle.vue +++ b/src/app/src/components/common/PageTitle.vue @@ -1,5 +1,6 @@ + + diff --git a/src/app/src/components/request/EditRequest.vue b/src/app/src/components/request/EditRequest.vue index 24b9640..7482f12 100644 --- a/src/app/src/components/request/EditRequest.vue +++ b/src/app/src/components/request/EditRequest.vue @@ -1,25 +1,31 @@ \ No newline at end of file + diff --git a/src/app/src/components/request/NewRequest.vue b/src/app/src/components/request/NewRequest.vue index 2259d53..2d8f56a 100644 --- a/src/app/src/components/request/NewRequest.vue +++ b/src/app/src/components/request/NewRequest.vue @@ -3,19 +3,25 @@ div b-btn(@click='openDialog()' size='sm' variant='primary') icon(name='plus') |   Add a New Request - b-modal(title='Add a New Prayer Request' - v-model='showNewVisible' - size='lg' - header-bg-variant='dark' + b-modal(v-model='showNewVisible' + header-bg-variant='mpj' header-text-variant='light' + size='lg' + title='Add a New Prayer Request' @shown='focusRequestText') b-form - b-form-group(label='Prayer Request' label-for='request_text') - b-textarea#request_text(v-model='form.requestText' :rows='10' @blur='trimText()' ref='toFocus') + b-form-group(label='Prayer Request' + label-for='request_text') + b-textarea#request_text(ref='toFocus' + v-model='form.requestText' + :rows='10' + @blur='trimText()') div.w-100.text-right(slot='modal-footer') - b-btn(variant='primary' @click='saveRequest()') Save + b-btn(variant='primary' + @click='saveRequest()') Save |     - b-btn(variant='outline-secondary' @click='closeDialog()') Cancel + b-btn(variant='outline-secondary' + @click='closeDialog()') Cancel toast(ref='toast') diff --git a/src/app/src/components/request/RequestListItem.vue b/src/app/src/components/request/RequestListItem.vue index 65c6897..648a2e6 100644 --- a/src/app/src/components/request/RequestListItem.vue +++ b/src/app/src/components/request/RequestListItem.vue @@ -1,7 +1,10 @@