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 @@ + + + + {{ this.task.name }} + + + + + + + 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 @@ + + + + + + + + + + No tasks found + + + + + + +