Feature: Tagebuch-Import (NoteStation .nsx + CSV) + Transponder in Gesundheitsdaten

- Import-Endpoint für Synology NoteStation (.nsx): HTML→Text, GPS, Bilder, Unix-Timestamp→Datum
- Import-Endpoint für CSV (Komma/Semikolon, BOM-safe, DE-Datumsformat)
- Import-Modal im Tagebuch mit Format-Auswahl-Karten und Ergebnis-Anzeige
- Transpondernummer in Gesundheitsdaten: Anzeige + Inline-Edit via Modal
- SW-Cache by-v142
This commit is contained in:
rene 2026-04-17 15:17:56 +02:00
parent 6fcf841594
commit 94e0ed3daa
7 changed files with 505 additions and 5 deletions

View file

@ -408,6 +408,21 @@ const API = (() => {
resetToken: () => del('/webcal/token'),
};
const importData = {
notestation(dogId, file) {
const fd = new FormData();
fd.append('dog_id', dogId);
fd.append('file', file);
return upload('/import/notestation', fd);
},
csv(dogId, file) {
const fd = new FormData();
fd.append('dog_id', dogId);
fd.append('file', file);
return upload('/import/csv', fd);
},
};
// ----------------------------------------------------------
// ERROR-KLASSE
// ----------------------------------------------------------
@ -425,7 +440,7 @@ const API = (() => {
get, post, put, patch, del, upload,
auth, dogs, diary, health, tieraerzte, poison,
places, routes, walks, events, sitting, forum, lost, knigge, weather, push,
friends, chat, webcal,
friends, chat, webcal, importData,
subscribeToPush, getLocation,
APIError,
};