feat: Implement initial Noteflow application UI, foundational notes management, and mobile notes page.

This commit is contained in:
Michael committed 2025-12-08 09:00:59 +01:00
1 parent ad3f415469
commit 4ba078bf4e
4 files changed
+416 -363

No files matched your search

+17
View File
@@ -63,6 +63,23 @@ class NotesService {
}
}
async getCounts(): Promise<{ active: number; archived: number }> {
try {
const response = await fetch("/api/notes/counts", {
headers: AuthService.getHeaders()
});
if (!response.ok) {
throw new Error("Erreur lors de la récupération des compteurs");
}
return await response.json();
} catch (error) {
console.error("Erreur compteur:", error);
return { active: 0, archived: 0 };
}
}
async createNote(title: string, content: string = ""): Promise<Note | null> {
try {
const response = await fetch("/api/notes", {