better diagrams

This commit is contained in:
2026-01-07 15:57:25 +01:00
parent 8e58ab4249
commit 8da054bbef
3 changed files with 93 additions and 31 deletions

View File

@@ -1,5 +1,9 @@
@startuml "Frontend Klassendiagramm"
scale 0.9
skinparam dpi 600
skinparam backgroundColor #FFAB40
skinparam packageStyle rectangle
skinparam classAttributeIconSize 0
skinparam classFontSize 10
@@ -24,6 +28,9 @@ package "Screens" #87CEEB {
' ===== COMPONENTS =====
package "Components" #FFA07A {
class BaseBackground
class Header
class EventCardBase
class EventCard
class ProposedEventCard
class EventConfirmDialog
@@ -37,9 +44,27 @@ package "Services" #90EE90 {
+put()
+delete()
}
class AuthService
class EventService
class ChatService
class AuthService {
+login()
+register()
+logout()
+refresh()
}
class EventService {
+getAll()
+getById()
+getByDateRange()
+create()
+update()
+delete()
}
class ChatService {
+sendMessage()
+confirmEvent()
+rejectEvent()
+getConversations()
+getConversation()
}
}
' ===== STORES =====
@@ -47,12 +72,23 @@ package "Stores" #FFD700 {
class AuthStore {
' +user
' +token
' +isAuthenticated
' +login()
' +logout()
' +setToken()
}
class EventsStore {
' +events
' +setEvents()
' +addEvent()
' +updateEvent()
' +deleteEvent()
}
class ChatStore {
' +messages
' +addMessage()
' +updateMessage()
' +clearMessages()
}
}
@@ -75,6 +111,8 @@ NoteScreen --> EventService
CalendarScreen --> EventCard
ChatScreen --> ProposedEventCard
ChatScreen --> EventConfirmDialog
EventCard --> EventCardBase
ProposedEventCard --> EventCardBase
' Services -> ApiClient
AuthService --> ApiClient