Files
Momento/memento-mobile/lib/config.ts
Antigravity 0fa8978395
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m32s
CI / Deploy production (on server) (push) Has been skipped
feat: mobile app complet + flashcards fixes + drag handle améliorations
Mobile app:
- Révision flashcards : liste decks, session flip-card SM-2, couleurs harmonisées web
- Génération flashcards depuis note (FlashcardSheet + route /api/mobile/flashcards/generate)
- Audio Whisper : hook useAudioRecorder reécrit, MicButton avec erreurs
- IA : AISheet (améliorer/clarifier/résumer), TitleSheet (titre automatique)
- Suppression note (soft delete + confirmation Alert)
- Note du jour : titre lisible + HTML (plus JSON TipTap brut)
- Parser TipTap→HTML côté mobile (tipTapToHtml)
- Icône 🎓 dans header note → génération flashcards
- Endpoint flashcardGenerate dans config.ts

Web fixes:
- Bug flashcards groupées par carnet → deck par note (migration + schema)
- Bug filtre 'cartes dues' ignoré (suppression fallback buildSessionQueue)
- Suppression UI création deck manuelle (inutile)
- Fix setViewType is not defined dans home-client.tsx

Drag handle menu:
- Fix : clearNodes() avant transformation (heading→liste/code/citation)
- Ajout : option 'Texte' (paragraphe) dans Transformer en
- Ajout : Monter / Descendre le bloc
- Ajout : Copier le contenu du bloc
- Fix : sous-menu hover stable (délai 200ms)
- Fix : Supprimer en rouge via classe --danger (plus :first-child)
- i18n : nouvelles clés dans 15 locales

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-29 18:49:40 +00:00

27 lines
1.1 KiB
TypeScript

// API base URL — change for dev/prod
export const API_URL = __DEV__
? 'http://192.168.1.83:3000' // serveur de dev local
: 'https://memento-note.com'
export const ENDPOINTS = {
login: `${API_URL}/api/mobile/auth/login`,
logout: `${API_URL}/api/mobile/auth/logout`,
me: `${API_URL}/api/mobile/auth/me`,
notebooks: `${API_URL}/api/mobile/notebooks`,
notes: (notebookId?: string) =>
notebookId
? `${API_URL}/api/mobile/notes?notebookId=${notebookId}`
: `${API_URL}/api/mobile/notes`,
note: (id: string) => `${API_URL}/api/mobile/notes/${id}`,
createNote: `${API_URL}/api/mobile/notes`,
search: `${API_URL}/api/mobile/search`,
dailyNote: `${API_URL}/api/mobile/notes/daily`,
aiImprove: `${API_URL}/api/mobile/ai/improve`,
aiTitle: `${API_URL}/api/mobile/ai/title`,
aiTranscribe: `${API_URL}/api/mobile/ai/transcribe`,
flashcardDecks: `${API_URL}/api/mobile/flashcards/decks`,
flashcardSession: (deckId: string) => `${API_URL}/api/mobile/flashcards/session?deckId=${deckId}`,
flashcardReview: `${API_URL}/api/mobile/flashcards/review`,
flashcardGenerate: `${API_URL}/api/mobile/flashcards/generate`,
}