More task changes
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m3s

This commit is contained in:
2024-03-18 10:51:33 -04:00
parent 084aadccef
commit 435438aaa8
2 changed files with 26 additions and 17 deletions

View File

@@ -84,6 +84,15 @@ module.exports = configure(function (/* ctx */) {
// open: true, // opens browser window automatically // open: true, // opens browser window automatically
port: 4000, port: 4000,
strictport: true, strictport: true,
// This works around CORS problems when developing locally, using the Appwrite backend
proxy: {
'/api': {
target: 'https://apidev.bab.toal.ca/',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
// For reverse-proxying via haproxy // For reverse-proxying via haproxy
// hmr: { // hmr: {
// clientPort: 443, // clientPort: 443,

View File

@@ -2,29 +2,29 @@
<div class="q-pa-md" style="max-width: 350px"> <div class="q-pa-md" style="max-width: 350px">
<q-list> <q-list>
<q-item v-for="task in tasks" :key="task.id"> <q-item v-for="task in tasks" :key="task.id">
<q-item-section> <q-expansion-item
<q-item-label>{{ task.title }}</q-item-label> v-if="task.subtasks && task.subtasks.length"
<q-item-label caption lines="2">{{ task.description }} </q-item-label> expand-separator
</q-item-section> label="Subtasks"
default-opened
<q-item-section side top> >
<q-item-label caption>Due: {{ task.dueDate }}</q-item-label> {{ task }}
<q-icon name="star" color="yellow" />
</q-item-section>
<q-item-section>
<q-expansion-item <q-expansion-item
:header-inset-level="1" :header-inset-level="1"
expand-separator expand-separator
label="Subtasks" label="Subtasks"
default-opened default-opened
><TaskList >
v-if="task.subtasks && task.subtasks.length" <TaskList :tasks="task.subtasks" />
:tasks="task.subtasks" </q-expansion-item>
/> </q-expansion-item </q-expansion-item>
></q-item-section> <q-item-section v-else>
<q-item-label overline>{{ task.title }}</q-item-label>
<q-item-label caption lines="2">{{ task.description }} </q-item-label>
<q-item-label caption>Due: {{ task.dueDate }}</q-item-label>
<!-- TODO: Add date formatting Mixin? https://jerickson.net/how-to-format-dates-in-vue-3/ -->
</q-item-section>
</q-item> </q-item>
<q-separator spaced inset />
</q-list> </q-list>
</div> </div>
</template> </template>