From 435438aaa806b19129ead451840f9446415ee4fd Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Mon, 18 Mar 2024 10:51:33 -0400 Subject: [PATCH] More task changes --- quasar.config.js | 9 ++++++ src/components/task/TaskListComponent.vue | 34 +++++++++++------------ 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/quasar.config.js b/quasar.config.js index aed1662..1fe131a 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -84,6 +84,15 @@ module.exports = configure(function (/* ctx */) { // open: true, // opens browser window automatically port: 4000, 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 // hmr: { // clientPort: 443, diff --git a/src/components/task/TaskListComponent.vue b/src/components/task/TaskListComponent.vue index cd2aec9..5db3271 100644 --- a/src/components/task/TaskListComponent.vue +++ b/src/components/task/TaskListComponent.vue @@ -2,29 +2,29 @@
- - {{ task.title }} - {{ task.description }} - - - - Due: {{ task.dueDate }} - - - + + {{ task }} + > + + + + + {{ task.title }} + {{ task.description }} + Due: {{ task.dueDate }} + + - -