admin e066ff7420 Migrate app.py from Directus to snakkimo API
- Replace all db_* routes with snakkimo API equivalents
- Stub out Llama AI functions (generate_details, generate_sentence) with 501 error
- Map field names: user_notes↔notes, picture↔picture_link, level↔difficulty_level, statement_de↔positive_sentence_de
- Use word_id as junction_id for M2M deletes (snakkimo uses resource IDs not junction row IDs)
- Normalize db-pictures response to include picture/blurhash/status/design
- Extract unique design values from pictures table for design-options endpoint
- Pair DELETE now also deletes linked statement and question
- FLAG: question words, distractor_words, objects.parent not supported in snakkimo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 15:31:48 +02:00
2026-04-23 22:10:45 +02:00
2026-04-23 22:10:45 +02:00
2026-04-23 22:10:45 +02:00
2026-04-23 22:10:45 +02:00

Bild-Ausschnitt-Tool

Kurzes Web-Tool, um ein lokales Bild aus dem Ordner pictures im Browser anzuzeigen, einen Rechteck-Ausschnitt mit der Maus zu wählen und den Ausschnitt in objects_image zu speichern.

Installation

  1. In den Projektordner wechseln:
cd /Users/tim/SynologyDrive/LanguageParent/content_mentor
  1. (Optional, empfohlen) Virtuelle Umgebung anlegen/aktivieren und Abhängigkeiten installieren:
python -m venv .venv
source .venv/bin/activate  # macOS / Linux
pip install -r requirements.txt
  1. Lege deine Quellbilder in den Ordner pictures neben dieser Datei.

Starten

python app.py

Dann im Browser aufrufen:

http://localhost:5000

Den Port kannst du in app.py im app.run(...)-Aufruf anpassen und später per Nginx/Reverse-Proxy von außen erreichbar machen.

Description
No description provided
Readme 1.2 MiB
Languages
TypeScript 48.3%
Python 21%
CSS 14.3%
JavaScript 12.5%
HTML 3.4%
Other 0.5%