From 9b4e172ec0c54aeaa5f7a212f7c1ac8b7da1ace7 Mon Sep 17 00:00:00 2001 From: Dustin Davis Date: Fri, 3 Dec 2021 09:42:35 -0700 Subject: [PATCH] Taskslist (#2) Show current notes tasks only --- client/src/App.vue | 16 ++++++++- client/src/components/Editor.vue | 35 +++++++++++++++++++- client/src/components/Header.vue | 17 +++------- client/src/components/TaskItem.vue | 52 ++++++++++++++++++++++++++++++ client/src/components/Tasks.vue | 44 +++++++++++++++++++++++++ 5 files changed, 149 insertions(+), 15 deletions(-) create mode 100644 client/src/components/TaskItem.vue create mode 100644 client/src/components/Tasks.vue diff --git a/client/src/App.vue b/client/src/App.vue index b1820d4..a15f20a 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -13,8 +13,22 @@ export default { mounted: function() { SharedBuefy.notifications = this.$buefy.toast; SharedBuefy.dialog = this.$buefy.dialog; + }, + provide() { + const global = {}; + Object.defineProperty(global, "taskList", { + enumerable: true, + get: () => this.taskList + }); + return { global }; + }, + data() { + return { + global: {}, + taskList: [] + }; } -} +}; \ No newline at end of file + diff --git a/client/src/components/TaskItem.vue b/client/src/components/TaskItem.vue new file mode 100644 index 0000000..030cdc5 --- /dev/null +++ b/client/src/components/TaskItem.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/client/src/components/Tasks.vue b/client/src/components/Tasks.vue new file mode 100644 index 0000000..b4da2c1 --- /dev/null +++ b/client/src/components/Tasks.vue @@ -0,0 +1,44 @@ + + + + +