Compare commits
2 Commits
7c081787fe
...
c8aba94879
| Author | SHA1 | Date | |
|---|---|---|---|
| c8aba94879 | |||
| 2c0d4254ca |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
docs/praesi_2_context.md
|
||||||
|
docs/*.png
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
import { Platform } from "react-native";
|
||||||
|
|
||||||
const API_BASE_URL =
|
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";
|
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()
|
' +hash()
|
||||||
' +compare()
|
' +compare()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class RecurrenceExpander {
|
||||||
|
' +expandRecurringEvents()
|
||||||
|
}
|
||||||
|
|
||||||
|
class EventFormatters {
|
||||||
|
' +getWeeksOverview()
|
||||||
|
' +getMonthOverview()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
' Controller -> Service
|
' Controller -> Service
|
||||||
@@ -161,4 +170,8 @@ EventService --> EventRepository
|
|||||||
AuthService --> JWT
|
AuthService --> JWT
|
||||||
AuthService --> Password
|
AuthService --> Password
|
||||||
|
|
||||||
|
' Event/Chat uses Utils
|
||||||
|
EventService --> RecurrenceExpander
|
||||||
|
ChatService --> EventFormatters
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|||||||
@@ -26,13 +26,14 @@ package "apps/client (Expo React Native)" #87CEEB {
|
|||||||
|
|
||||||
package "Components" {
|
package "Components" {
|
||||||
[EventCard] as EventCard
|
[EventCard] as EventCard
|
||||||
[ChatBubble] as ChatBubble
|
[ProposedEventCard] as ProposedEventCard
|
||||||
[ConfirmDialog] as ConfirmDialog
|
[ConfirmDialog] as ConfirmDialog
|
||||||
}
|
}
|
||||||
|
|
||||||
package "Stores" {
|
package "Stores" {
|
||||||
[Auth Store] as AuthStore
|
[Auth Store] as AuthStore
|
||||||
[Events Store] as EventsStore
|
[Events Store] as EventsStore
|
||||||
|
[Chat Store] as ChatStore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,6 +91,7 @@ ClientChat --> ApiClient
|
|||||||
|
|
||||||
ApiClient --> AuthStore
|
ApiClient --> AuthStore
|
||||||
ClientEvent --> EventsStore
|
ClientEvent --> EventsStore
|
||||||
|
ClientChat --> ChatStore
|
||||||
|
|
||||||
' Frontend -> Shared
|
' Frontend -> Shared
|
||||||
ApiClient ..> SharedDTOs
|
ApiClient ..> SharedDTOs
|
||||||
|
|||||||
@@ -25,9 +25,8 @@ package "Screens" #87CEEB {
|
|||||||
' ===== COMPONENTS =====
|
' ===== COMPONENTS =====
|
||||||
package "Components" #FFA07A {
|
package "Components" #FFA07A {
|
||||||
class EventCard
|
class EventCard
|
||||||
class ChatBubble
|
class ProposedEventCard
|
||||||
class EventConfirmDialog
|
class EventConfirmDialog
|
||||||
class MonthSelector
|
|
||||||
}
|
}
|
||||||
|
|
||||||
' ===== SERVICES =====
|
' ===== SERVICES =====
|
||||||
@@ -52,6 +51,9 @@ package "Stores" #FFD700 {
|
|||||||
class EventsStore {
|
class EventsStore {
|
||||||
' +events
|
' +events
|
||||||
}
|
}
|
||||||
|
class ChatStore {
|
||||||
|
' +messages
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
' ===== MODELS =====
|
' ===== MODELS =====
|
||||||
@@ -71,7 +73,7 @@ NoteScreen --> EventService
|
|||||||
|
|
||||||
' Screens -> Components
|
' Screens -> Components
|
||||||
CalendarScreen --> EventCard
|
CalendarScreen --> EventCard
|
||||||
ChatScreen --> ChatBubble
|
ChatScreen --> ProposedEventCard
|
||||||
ChatScreen --> EventConfirmDialog
|
ChatScreen --> EventConfirmDialog
|
||||||
|
|
||||||
' Services -> ApiClient
|
' Services -> ApiClient
|
||||||
@@ -79,8 +81,9 @@ AuthService --> ApiClient
|
|||||||
EventService --> ApiClient
|
EventService --> ApiClient
|
||||||
ChatService --> ApiClient
|
ChatService --> ApiClient
|
||||||
|
|
||||||
' Services -> Stores
|
' Services/Screens -> Stores
|
||||||
AuthService --> AuthStore
|
AuthService --> AuthStore
|
||||||
EventService --> EventsStore
|
EventService --> EventsStore
|
||||||
|
ChatScreen --> ChatStore
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|||||||
Reference in New Issue
Block a user