diff --git a/fe/src/config/api-config.ts b/fe/src/config/api-config.ts
index 2f80e8e..e88ff90 100644
--- a/fe/src/config/api-config.ts
+++ b/fe/src/config/api-config.ts
@@ -2,7 +2,7 @@
export const API_VERSION = 'v1'
// API Base URL
-export const API_BASE_URL = (window as any).ENV?.VITE_API_URL || 'https://mitlistbe.mohamad.dev'
+export const API_BASE_URL = (window as any).ENV?.VITE_API_URL || 'http://localhost:8000'
// API Endpoints
export const API_ENDPOINTS = {
@@ -33,7 +33,6 @@ export const API_ENDPOINTS = {
BASE: '/lists',
BY_ID: (id: string) => `/lists/${id}`,
STATUS: (id: string) => `/lists/${id}/status`,
- STATUSES: '/lists/statuses',
ITEMS: (listId: string) => `/lists/${listId}/items`,
ITEM: (listId: string, itemId: string) => `/lists/${listId}/items/${itemId}`,
EXPENSES: (listId: string) => `/lists/${listId}/expenses`,
@@ -62,13 +61,15 @@ export const API_ENDPOINTS = {
SETTINGS: (groupId: string) => `/groups/${groupId}/settings`,
ROLES: (groupId: string) => `/groups/${groupId}/roles`,
ROLE: (groupId: string, roleId: string) => `/groups/${groupId}/roles/${roleId}`,
+ GENERATE_SCHEDULE: (groupId: string) => `/groups/${groupId}/chores/generate-schedule`,
+ CHORE_HISTORY: (groupId: string) => `/groups/${groupId}/chores/history`,
},
// Invites
INVITES: {
BASE: '/invites',
BY_ID: (id: string) => `/invites/${id}`,
- ACCEPT: '/invites/accept',
+ ACCEPT: (id: string) => `/invites/accept/${id}`,
DECLINE: (id: string) => `/invites/decline/${id}`,
REVOKE: (id: string) => `/invites/revoke/${id}`,
LIST: '/invites',
@@ -120,4 +121,12 @@ export const API_ENDPOINTS = {
METRICS: '/health/metrics',
LOGS: '/health/logs',
},
+
+ CHORES: {
+ BASE: '/chores',
+ BY_ID: (id: number) => `/chores/${id}`,
+ HISTORY: (id: number) => `/chores/${id}/history`,
+ ASSIGNMENTS: (choreId: number) => `/chores/${choreId}/assignments`,
+ ASSIGNMENT_BY_ID: (id: number) => `/chores/assignments/${id}`,
+ },
}
diff --git a/fe/src/i18n/de.json b/fe/src/i18n/de.json
index 31586fc..a084114 100644
--- a/fe/src/i18n/de.json
+++ b/fe/src/i18n/de.json
@@ -627,5 +627,15 @@
"sampleTodosHeader": "Beispiel-Todos (aus IndexPage-Daten)",
"totalCountLabel": "Gesamtzahl aus Meta:",
"noTodos": "Keine Todos zum Anzeigen."
+ },
+ "languageSelector": {
+ "title": "Sprache",
+ "languages": {
+ "en": "English",
+ "de": "Deutsch",
+ "nl": "Nederlands",
+ "fr": "Français",
+ "es": "Español"
+ }
}
}
\ No newline at end of file
diff --git a/fe/src/i18n/en.json b/fe/src/i18n/en.json
index 57abdd0..d81ccf4 100644
--- a/fe/src/i18n/en.json
+++ b/fe/src/i18n/en.json
@@ -555,5 +555,15 @@
"sampleTodosHeader": "Sample Todos (from IndexPage data)",
"totalCountLabel": "Total count from meta:",
"noTodos": "No todos to display."
+ },
+ "languageSelector": {
+ "title": "Language",
+ "languages": {
+ "en": "English",
+ "de": "Deutsch",
+ "nl": "Nederlands",
+ "fr": "Français",
+ "es": "Español"
+ }
}
}
\ No newline at end of file
diff --git a/fe/src/i18n/es.json b/fe/src/i18n/es.json
index d89c8d7..2398631 100644
--- a/fe/src/i18n/es.json
+++ b/fe/src/i18n/es.json
@@ -627,5 +627,15 @@
"sampleTodosHeader": "Tareas de ejemplo (de datos de IndexPage)",
"totalCountLabel": "Recuento total de meta:",
"noTodos": "No hay tareas para mostrar."
+ },
+ "languageSelector": {
+ "title": "Idioma",
+ "languages": {
+ "en": "English",
+ "de": "Deutsch",
+ "nl": "Nederlands",
+ "fr": "Français",
+ "es": "Español"
+ }
}
}
\ No newline at end of file
diff --git a/fe/src/i18n/fr.json b/fe/src/i18n/fr.json
index cc89b52..7554798 100644
--- a/fe/src/i18n/fr.json
+++ b/fe/src/i18n/fr.json
@@ -627,5 +627,15 @@
"sampleTodosHeader": "Exemples de tâches (depuis les données IndexPage)",
"totalCountLabel": "Nombre total depuis meta :",
"noTodos": "Aucune tâche à afficher."
+ },
+ "languageSelector": {
+ "title": "Langue",
+ "languages": {
+ "en": "English",
+ "de": "Deutsch",
+ "nl": "Nederlands",
+ "fr": "Français",
+ "es": "Español"
+ }
}
}
\ No newline at end of file
diff --git a/fe/src/i18n/nl.json b/fe/src/i18n/nl.json
index 4e017bb..ce065d1 100644
--- a/fe/src/i18n/nl.json
+++ b/fe/src/i18n/nl.json
@@ -627,5 +627,15 @@
"sampleTodosHeader": "Voorbeeldtaken (uit IndexPage-gegevens)",
"totalCountLabel": "Totaal aantal uit meta:",
"noTodos": "Geen taken om weer te geven."
+ },
+ "languageSelector": {
+ "title": "Taal",
+ "languages": {
+ "en": "English",
+ "de": "Deutsch",
+ "nl": "Nederlands",
+ "fr": "Français",
+ "es": "Español"
+ }
}
}
\ No newline at end of file
diff --git a/fe/src/layouts/MainLayout.vue b/fe/src/layouts/MainLayout.vue
index f5dda86..7a47c33 100644
--- a/fe/src/layouts/MainLayout.vue
+++ b/fe/src/layouts/MainLayout.vue
@@ -2,17 +2,40 @@