From 90f240fbd3aa4cfa8df31e4ea7619942c8ffd1ba Mon Sep 17 00:00:00 2001 From: haasentimo Date: Fri, 11 Oct 2024 16:50:44 +0200 Subject: [PATCH 1/4] Added a Dialog with the basic input fields for a defect. --- src/pages/defects.vue | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/src/pages/defects.vue b/src/pages/defects.vue index 621adea..f3d38ae 100644 --- a/src/pages/defects.vue +++ b/src/pages/defects.vue @@ -35,6 +35,64 @@ + + + + + Add Defect + + + + + + + + Add New Defect + + + + + + + + + + + + + + + + + + + + + + *indicates required field + + + + + + + Cancel + Save + + + @@ -42,9 +100,14 @@ - defineProps({ - msg: String, - descr: String, - }) + diff --git a/src/pages/defects.vue b/src/pages/defects.vue index f3d38ae..afda96e 100644 --- a/src/pages/defects.vue +++ b/src/pages/defects.vue @@ -6,33 +6,17 @@ Defects - - + - - {{ defect.name }} - - - {{ defect.location }} - - - - + :defect="defect" + /> + + - - Refresh - + Refresh @@ -110,7 +94,7 @@ function refetch () { loading.value = true - fetch('http://localhost:8080/defects') + fetch('http://localhost:8080/v1/defects') .then(response => response.json()) .then(data => { defects.value = data From 2bd65f23a5442d3511e8e0e435eefeb898ea52af Mon Sep 17 00:00:00 2001 From: lars buerger Date: Sat, 12 Oct 2024 15:02:11 +0200 Subject: [PATCH 3/4] feat: Fixes bug with expansion-panels --- src/components/Defect.vue | 40 +++++++++++++++++++-------------------- src/pages/defects.vue | 8 +++++--- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/components/Defect.vue b/src/components/Defect.vue index 51fb0c5..fd9fdc0 100644 --- a/src/components/Defect.vue +++ b/src/components/Defect.vue @@ -1,31 +1,29 @@ diff --git a/src/pages/defects.vue b/src/pages/defects.vue index afda96e..80aa167 100644 --- a/src/pages/defects.vue +++ b/src/pages/defects.vue @@ -7,11 +7,13 @@
- + + :defect="defect" + /> +
From e61e6542f497a9644bd54da60a98d7185db99f7d Mon Sep 17 00:00:00 2001 From: lars buerger Date: Sat, 12 Oct 2024 15:21:47 +0200 Subject: [PATCH 4/4] feat: adds color theme --- src/main.ts | 3 +++ src/plugins/vuetify.ts | 43 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index c8fc172..97b7c66 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,9 +12,12 @@ import App from './App.vue' // Composables import { createApp } from 'vue' +import vuetify from './plugins/vuetify' const app = createApp(App) registerPlugins(app) +app.use(vuetify) + app.mount('#app') diff --git a/src/plugins/vuetify.ts b/src/plugins/vuetify.ts index 7652788..cecf084 100644 --- a/src/plugins/vuetify.ts +++ b/src/plugins/vuetify.ts @@ -9,11 +9,48 @@ import '@mdi/font/css/materialdesignicons.css' import 'vuetify/styles' // Composables +// Imports import { createVuetify } from 'vuetify' +import 'vuetify/styles' + +// Vuetify icons (optional) +import { aliases, mdi } from 'vuetify/iconsets/mdi' -// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides -export default createVuetify({ +// Create Vuetify theme configuration +const vuetify = createVuetify({ theme: { - defaultTheme: 'dark', + themes: { + light: { + colors: { + primary: '#1976D2', // Blue + secondary: '#424242', // Dark gray + accent: '#82B1FF', // Light blue + error: '#FF5252', // Red + info: '#2196F3', // Blue + success: '#4CAF50', // Green + warning: '#FB8C00' // Orange + }, + }, + dark: { + colors: { + primary: '#BB86FC', // Purple + secondary: '#03DAC6', // Teal + accent: '#82B1FF', + error: '#CF6679', // Pinkish-red + info: '#2196F3', + success: '#03DAC6', // Teal + warning: '#FBC02D' // Yellow + }, + }, + }, + }, + icons: { + defaultSet: 'mdi', + aliases, + sets: { + mdi, + }, }, }) + +export default vuetify