Compare commits

...

2 Commits

Author SHA1 Message Date
c8aba94879 updated diagrams and gitignore 2026-01-04 22:12:59 +01:00
2c0d4254ca fix API base URL for Android emulator 2026-01-04 17:48:39 +01:00
8 changed files with 32 additions and 6 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
node_modules
*.tsbuildinfo
docs/praesi_2_context.md
docs/*.png

View File

@@ -1,5 +1,11 @@
import { Platform } from "react-native";
const API_BASE_URL =
process.env.EXPO_PUBLIC_API_URL || "http://localhost:3001/api";
process.env.EXPO_PUBLIC_API_URL ||
Platform.select({
android: "http://10.0.2.2:3001/api",
default: "http://localhost:3001/api",
});
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

View File

@@ -142,6 +142,15 @@ package "Utils" #DDA0DD {
' +hash()
' +compare()
}
class RecurrenceExpander {
' +expandRecurringEvents()
}
class EventFormatters {
' +getWeeksOverview()
' +getMonthOverview()
}
}
' Controller -> Service
@@ -161,4 +170,8 @@ EventService --> EventRepository
AuthService --> JWT
AuthService --> Password
' Event/Chat uses Utils
EventService --> RecurrenceExpander
ChatService --> EventFormatters
@enduml

View File

@@ -26,13 +26,14 @@ package "apps/client (Expo React Native)" #87CEEB {
package "Components" {
[EventCard] as EventCard
[ChatBubble] as ChatBubble
[ProposedEventCard] as ProposedEventCard
[ConfirmDialog] as ConfirmDialog
}
package "Stores" {
[Auth Store] as AuthStore
[Events Store] as EventsStore
[Chat Store] as ChatStore
}
}
@@ -90,6 +91,7 @@ ClientChat --> ApiClient
ApiClient --> AuthStore
ClientEvent --> EventsStore
ClientChat --> ChatStore
' Frontend -> Shared
ApiClient ..> SharedDTOs

View File

@@ -25,9 +25,8 @@ package "Screens" #87CEEB {
' ===== COMPONENTS =====
package "Components" #FFA07A {
class EventCard
class ChatBubble
class ProposedEventCard
class EventConfirmDialog
class MonthSelector
}
' ===== SERVICES =====
@@ -52,6 +51,9 @@ package "Stores" #FFD700 {
class EventsStore {
' +events
}
class ChatStore {
' +messages
}
}
' ===== MODELS =====
@@ -71,7 +73,7 @@ NoteScreen --> EventService
' Screens -> Components
CalendarScreen --> EventCard
ChatScreen --> ChatBubble
ChatScreen --> ProposedEventCard
ChatScreen --> EventConfirmDialog
' Services -> ApiClient
@@ -79,8 +81,9 @@ AuthService --> ApiClient
EventService --> ApiClient
ChatService --> ApiClient
' Services -> Stores
' Services/Screens -> Stores
AuthService --> AuthStore
EventService --> EventsStore
ChatScreen --> ChatStore
@enduml