Compare commits
2 Commits
7c081787fe
...
c8aba94879
| Author | SHA1 | Date | |
|---|---|---|---|
| c8aba94879 | |||
| 2c0d4254ca |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
node_modules
|
||||
*.tsbuildinfo
|
||||
docs/praesi_2_context.md
|
||||
docs/*.png
|
||||
|
||||
@@ -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 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user