From e792ed39c9b800eaeee1e5fd245ce9e6f0ea8347 Mon Sep 17 00:00:00 2001 From: flfeders Date: Thu, 21 Dec 2023 16:04:52 +0100 Subject: [PATCH] Changed Tasks List Created Time creation Added VueDatepicker Package --- spaces/app.vue | 52 +++++--- spaces/nuxt.config.ts | 3 + spaces/package.json | 3 +- spaces/pages/login.vue | 2 +- spaces/pages/tasks.vue | 216 ++++++++++++++-------------------- spaces/pages/timetracking.vue | 127 ++++++++++++++++---- 6 files changed, 234 insertions(+), 169 deletions(-) diff --git a/spaces/app.vue b/spaces/app.vue index 185cbeb..546e862 100644 --- a/spaces/app.vue +++ b/spaces/app.vue @@ -57,25 +57,41 @@ const navLinks = [ ] }, { - label: "Aufgaben", - to: "/tasks", - icon: "i-heroicons-rectangle-stack" + label: "Aufträge", + icon: "i-heroicons-square-3-stack-3d", + children: [ + { + label: "Projekte", + to: "/projects", + icon: "i-heroicons-clipboard-document-check" + }, + { + label: "Jobs", + to: "/jobs", + icon: "i-heroicons-square-3-stack-3d" + }, + { + label: "Verträge", + to: "/contracts", + icon: "i-heroicons-clipboard-document" + }, + ] }, { - label: "Plantafel", - to: "/planningBoard", - icon: "i-heroicons-calendar-days" - }, - - { - label: "Projekte", - to: "/projects", - icon: "i-heroicons-clipboard-document-check" - }, - { - label: "Jobs", - to: "/jobs", - icon: "i-heroicons-square-3-stack-3d" + label: "Planung", + icon: "i-heroicons-square-3-stack-3d", + children: [ + { + label: "Aufgaben", + to: "/tasks", + icon: "i-heroicons-rectangle-stack" + }, + { + label: "Plantafel", + to: "/planningBoard", + icon: "i-heroicons-calendar-days" + }, + ] }, { label: "Dokumente", @@ -219,7 +235,7 @@ const items = [ /> Logo Dunkel diff --git a/spaces/nuxt.config.ts b/spaces/nuxt.config.ts index f2e3bd4..0e43e18 100644 --- a/spaces/nuxt.config.ts +++ b/spaces/nuxt.config.ts @@ -7,6 +7,9 @@ export default defineNuxtConfig({ extends: [ '@nuxt/ui-pro' ], + build: { + transpile: ['@vuepic/vue-datepicker'] + }, modules: [ '@pinia/nuxt', '@nuxt/ui', diff --git a/spaces/package.json b/spaces/package.json index f1fb9ef..737354b 100644 --- a/spaces/package.json +++ b/spaces/package.json @@ -34,6 +34,7 @@ "@pinia/nuxt": "^0.5.1", "@popperjs/core": "^2.11.8", "@vicons/ionicons5": "^0.12.0", + "@vuepic/vue-datepicker": "^7.4.0", "@zip.js/zip.js": "^2.7.32", "axios": "^1.6.2", "buffer": "^6.0.3", @@ -45,6 +46,6 @@ "pinia": "^2.1.7", "socket.io-client": "^4.7.2", "uuidv4": "^6.2.13", - "v-calendar": "^3.1.2", + "v-calendar": "^3.1.2" } } diff --git a/spaces/pages/login.vue b/spaces/pages/login.vue index f81538b..a8d39a8 100644 --- a/spaces/pages/login.vue +++ b/spaces/pages/login.vue @@ -23,7 +23,7 @@ const onSubmit = async () => { alert(error.toString()) } else { console.log("Login Successful") - await fetchData() + fetchData() router.push("/") diff --git a/spaces/pages/tasks.vue b/spaces/pages/tasks.vue index 54ad196..9e89bbf 100644 --- a/spaces/pages/tasks.vue +++ b/spaces/pages/tasks.vue @@ -86,148 +86,126 @@ /> + + + + + + -