Prep for 0.8.2 release
- Adds ability to view answered requests (#3) - Fixes multi-line request display (#7) - Docs updated for 0.8.2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "my-prayer-journal-api",
|
||||
"private": true,
|
||||
"version": "0.8.1",
|
||||
"version": "0.8.2",
|
||||
"description": "Server API for myPrayerJournal",
|
||||
"main": "index.js",
|
||||
"author": "Daniel J. Summers <daniel@djs-consulting.com>",
|
||||
|
||||
@@ -40,11 +40,6 @@ export default function (checkJwt) {
|
||||
}
|
||||
await next()
|
||||
})
|
||||
// Get the least-recently-updated request (used for the "pray through the journal" feature)
|
||||
.get('/:id/oldest', checkJwt, async (ctx, next) => {
|
||||
ctx.body = await db.request.oldest(ctx.state.user.sub)
|
||||
await next()
|
||||
})
|
||||
.get('/answered', checkJwt, async (ctx, next) => {
|
||||
ctx.body = await db.request.answered(ctx.state.user.sub)
|
||||
ctx.response.status = 200
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "my-prayer-journal",
|
||||
"version": "0.8.1",
|
||||
"version": "0.8.2",
|
||||
"description": "myPrayerJournal - Front End",
|
||||
"author": "Daniel J. Summers <daniel@djs-consulting.com>",
|
||||
"private": true,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
vue-progress-bar
|
||||
toast(ref='toast')
|
||||
footer
|
||||
p.text-right: i myPrayerJournal v0.8.1
|
||||
p.text-right: i myPrayerJournal v0.8.2
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -46,4 +46,7 @@ footer p {
|
||||
border-bottom: solid 1px lightgray;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.mpj-request-text {
|
||||
white-space: pre-line;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -3,11 +3,13 @@ article
|
||||
page-title(title='Answered Requests')
|
||||
p(v-if='!loaded') Loading answered requests...
|
||||
div(v-if='loaded')
|
||||
p(v-for='req in requests')
|
||||
p.mpj-request-text(v-for='req in requests')
|
||||
b-btn(@click='showFull(req.requestId)' size='sm' variant='outline-secondary')
|
||||
icon(name='search')
|
||||
| View Full Request
|
||||
| {{ req.text }}
|
||||
| {{ req.text }}
|
||||
small.text-muted: em.
|
||||
(Answered #[date-from-now(:value='req.asOf')])
|
||||
full-request(:events='eventBus')
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template lang="pug">
|
||||
b-navbar(toggleable='sm' type='dark' variant='primary' fixed='top')
|
||||
b-navbar(toggleable='sm' type='dark' variant='mpj' fixed='top')
|
||||
b-nav-toggle(target='nav_collapse')
|
||||
b-navbar-brand(to='/')
|
||||
span(style='font-weight:100;') my
|
||||
@@ -40,3 +40,9 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bg-mpj {
|
||||
background-color: #1e7e34 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -3,7 +3,7 @@ div
|
||||
b-card-group.w-100(deck)
|
||||
b-card(v-for='(request, idx) in row' border-variant='dark' no-body)
|
||||
b-card-body.p-0
|
||||
p.card-text.request-card-text.mb-1.px-3.pt-3
|
||||
p.card-text.mpj-request-text.mb-1.px-3.pt-3
|
||||
| {{ request.text }}
|
||||
p.card-text.p-0.pr-1.text-right: small.text-muted: em
|
||||
= '(last activity '
|
||||
@@ -49,9 +49,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.request-card-text {
|
||||
white-space: pre-line;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user