Ersetzt die 1900-Zeilen-Vanilla-SPA durch eine strukturierte React-App: - frontend/src: views/ (9 Views), components/ (Modals, LineChart, Heatmap, TabBar, Media, Stepper, RestTimer, Toast), store/ (Zustand: State+Sync, UI), lib/ (format, history, exercises, api/WebAuthn, sound, nav) - React Router (Hash), Zustand-Store mit localStorage + Server-Sync - Reaktives DOM-Diffing löst das manuelle Re-Render-Ruckeln (GIF läuft beim Set-Abhaken flüssig weiter) Self-Hosting bleibt ein Befehl: web/ ist jetzt ein Multi-Stage-Dockerfile, das das Frontend IM Container baut und mit nginx ausliefert — keine lokale Node/Build-Kette nötig. Übungsmedien nach ./media ausgelagert. Voller Ablauf im Headless-Browser getestet (Login→Plan→Workout→Stats→ Library→Settings, Feature-Parität) und Standalone-Compose Ende-zu-Ende (React-Build im Docker, /api-Proxy, geforgter Passkey-Login) verifiziert.
14 lines
562 B
Bash
Executable File
14 lines
562 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Manually download the exercise images (JPG) and animations (GIF) into ./media.
|
|
# You normally DON'T need this — `docker compose up` fetches them automatically.
|
|
# Source: hasaneyldrm/exercises-dataset (CC).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
tmp="$(mktemp -d)"
|
|
trap 'rm -rf "$tmp"' EXIT
|
|
git clone --depth 1 https://github.com/hasaneyldrm/exercises-dataset "$tmp"
|
|
mkdir -p media/img media/gif
|
|
cp "$tmp"/images/*.jpg media/img/
|
|
cp "$tmp"/videos/*.gif media/gif/
|
|
echo "✓ $(ls media/img | wc -l) images, $(ls media/gif | wc -l) GIFs"
|