From 30e1df0dd86cf767929d4cf5acde1a017589bd94 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 22 Jan 2026 12:39:24 +0100 Subject: [PATCH] Enhance deployment scripts and frontend components for improved functionality and styling - Added dependency installation step in deploy-frontend.sh and update-frontend.sh to ensure all required packages are available before building the frontend. - Updated AppNavigation.vue to change background color for better visual appeal. - Refactored FamilyView.vue to include 3D character models for both the user and their relationships, enhancing the visual representation of family dynamics. - Modified OverviewView.vue to switch from 3D character rendering to a 2D avatar display, improving loading performance and user experience. --- deploy-frontend.sh | 10 ++ frontend/src/components/AppNavigation.vue | 6 +- frontend/src/views/falukant/FamilyView.vue | 103 ++++++++++++++++++- frontend/src/views/falukant/OverviewView.vue | 20 ++-- update-frontend.sh | 12 +++ 5 files changed, 136 insertions(+), 15 deletions(-) diff --git a/deploy-frontend.sh b/deploy-frontend.sh index 7cde2b0..3ad9b70 100755 --- a/deploy-frontend.sh +++ b/deploy-frontend.sh @@ -34,6 +34,16 @@ echo "VITE_API_BASE_URL=$VITE_API_BASE_URL" echo "VITE_DAEMON_SOCKET=$VITE_DAEMON_SOCKET" echo "VITE_CHAT_WS_URL=$VITE_CHAT_WS_URL" +# 5a. Dependencies installieren +echo "Installiere Dependencies..." +npm install + +if [ $? -ne 0 ]; then + echo "❌ npm install fehlgeschlagen!" + exit 1 +fi + +# 5b. Frontend neu bauen npm run build if [ $? -ne 0 ]; then diff --git a/frontend/src/components/AppNavigation.vue b/frontend/src/components/AppNavigation.vue index a1b8bf3..9950b0f 100644 --- a/frontend/src/components/AppNavigation.vue +++ b/frontend/src/components/AppNavigation.vue @@ -295,7 +295,7 @@ nav, nav > ul { display: flex; justify-content: space-between; - background-color: #FF6B35; + background-color: #FF8C5A; color: #000; padding: 0; margin: 0; @@ -364,7 +364,7 @@ a { .submenu1 { position: absolute; border: 1px solid #5D4037; - background-color: #FF6B35; + background-color: #FF8C5A; left: 0; top: 2.5em; max-height: 0; @@ -419,7 +419,7 @@ a { .submenu2 { position: absolute; - background-color: #FF6B35; + background-color: #FF8C5A; left: 100%; top: 0; border: 1px solid #5D4037; diff --git a/frontend/src/views/falukant/FamilyView.vue b/frontend/src/views/falukant/FamilyView.vue index 2ba237d..8f9c391 100644 --- a/frontend/src/views/falukant/FamilyView.vue +++ b/frontend/src/views/falukant/FamilyView.vue @@ -1,13 +1,28 @@