From 5a1cf2bb527bb21438f15ac11bd9d2d7b049690f Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Thu, 15 Feb 2024 13:46:22 +0100 Subject: [PATCH] Final commit, done Still a lot of room for improvement, however for now it's time to move on, it's nice for now :D --- .gitignore | 7 +++++++ README.md | 10 ++-------- image.png | Bin 0 -> 22909 bytes src/components/NavBar.vue | 21 ++++++++++++++------- src/instances/Task.vue | 26 +++++++++++++++++++++++++- src/views/ProjectsView.vue | 13 +++++++++++-- src/views/TasksView.vue | 35 +++++++++++++++++++++++++++++++---- 7 files changed, 90 insertions(+), 22 deletions(-) create mode 100644 image.png diff --git a/.gitignore b/.gitignore index 8ee54e8..0b3b8e9 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,14 @@ coverage /cypress/videos/ /cypress/screenshots/ +public +public/ +public/* + + # Editor directories and files +.vscode +.vscode/ .vscode/* !.vscode/extensions.json .idea diff --git a/README.md b/README.md index acd524a..a528774 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,8 @@ # odin-todo-vue -This template should help get you started developing with Vue 3 in Vite. +![preview](image.png) -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). +using vue, vue-modal dialogs, vue dropdown, vue 3 date picker, tailwind, etc... ## Project Setup diff --git a/image.png b/image.png new file mode 100644 index 0000000000000000000000000000000000000000..aef31b8e3cb1ae90b50b849f37881474e04eaca0 GIT binary patch literal 22909 zcmdSBby$>9)Gs<%NC*M~(g+A5-O?&8rGRt@2q@hR11eo2AkBy%DGW#sDc#-O3_WxY z+&zBhe7C;m-t*k&{BbVNgYPi&&VF~Sz1DC2)^8i~T1D<2E+sAm0=cIkFRccF+>n4k zuomy$0q?9ax0->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NZy*x6#l@_QVPSW@2bGeOi`|#Mt8z&B z=l30_WcW~JRC~-Yh`{JcjEtoGcC-JelRnz}BKZa;!+r@~c_Cp;5$_d`T z6J3!!U!Pl*CVQLpkUZkRan0v5!sZn+M}SZ0s^vscMpo-rx1bA3JPg3O_oa=Ul@VmO zmuny)V+EwwQq&k=EOXcAM1XpmDB;d@r{^LkD9*=TYn5VJFgYf;nzgCi>T2qopfinN z-$Dat#49qPmF0ys=IPUs?Y*RU68eSHOAULPeJIqgcT4N*Z<0TB3t`v*$>y*4t-e4x z%kl7Qjm23b7-ZY4u%VIw##{~6?8pJ~DRZ30Y~ zw(FNd?19#~q}PFA>R>5`okM2ZNq8T$DF5=Mg$FuM1aR&9vVcV{#OVIp)5S^)2M*)L z|L%n-!4tD`EPlS= zjxbW4Z|(nP9`Pl~o0#MNeTUuqwi3@nP;LGq0^;iY&BP%*eN@IhRfE~d#h)ix&W6U( zKFe~!X@4$^Q=#;!!08t;x zKi0fLMN#oVEgml+Hg1hBdp5}K?a;t}6Z{Y1iEQ8B-&_d$8zBC#4ol}Gqv*y+S*|}R QfEpR1`bbl$T)`srKUGc5w*UYD literal 0 HcmV?d00001 diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 8823a79..5d60706 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,24 +1,31 @@ diff --git a/src/instances/Task.vue b/src/instances/Task.vue index 0e8823e..86e04fa 100644 --- a/src/instances/Task.vue +++ b/src/instances/Task.vue @@ -19,6 +19,7 @@ const props = defineProps(['item', 'remove', 'currentProject', 'rename']) const parsedDate = parseISO(props.item.dueDate ?? ''); const isValidDate = isDateValid(parsedDate); // const formattedDate = formatDate(parsedDate, 'dd-MM-yyyy'); +const showModalDeleteTask = ref(false); const dateEnabled = ref(isValidDate); @@ -30,6 +31,12 @@ function editMe(event) { setTimeout(() => showModalEdit.value = false, 1); } +function removeMe(e) { + e.preventDefault(); + props.remove(props.item); + setTimeout(() => showModalDeleteTask.value = false, 1); +} + + + + + + \ No newline at end of file diff --git a/src/views/TasksView.vue b/src/views/TasksView.vue index 6fdec85..9cc37ed 100644 --- a/src/views/TasksView.vue +++ b/src/views/TasksView.vue @@ -33,7 +33,24 @@ function newTask(event) { let form = new FormData(event.srcElement); let values = form.values(); let item = toRaw(currentProject.value).newTask(values.next().value); - item.changeDescription(values.next().value.trim()); + let desc = values.next().value.trim(); + if (desc != "") { + item.changeDescription(desc); + } else { + item.changeDescription(null); + } + values.next(); + + + let dateDate = values.next().value; + if (dateDate) { + let testDate = new Date(dateDate).toISOString(); + item.changeDueDate(testDate); + console.log(testDate); + } else { + item.changeDueDate(null); + } + setTimeout(() => showModalAddTask.value = false, 1); refreshTasks(); } @@ -64,9 +81,9 @@ function editTask(event, item) { function removeTask(item) { console.log(toRaw(item)) - if (confirm(`Are you sure you want to remove task ${toRaw(item).name}?`)) { - toRaw(item).remove(); - } + // if (confirm(`Are you sure you want to remove task ${toRaw(item).name}?`)) { + toRaw(item).remove(); + // } refreshTasks(); } @@ -100,6 +117,10 @@ function checkIfAtLeastOneDone() { } +const dateEnabled = ref(false); + +const dateE = ref(null); +