Rewrite frontend in React + Vite (organised component tree)
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.
This commit is contained in:
1 parent
0c237f96dc
commit
7e1d27b218
49 files changed
+3014
-2014
No files matched your search
@@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Manually download the exercise images (JPG) and animations (GIF).
|
||||
# Manually download the exercise images (JPG) and animations (GIF) into ./media.
|
||||
# You normally DON'T need this — `docker compose up` fetches them automatically.
|
||||
# Use it only if you run the app without Docker. Source: hasaneyldrm/exercises-dataset (CC).
|
||||
# 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 app/img app/gif
|
||||
cp "$tmp"/images/*.jpg app/img/
|
||||
cp "$tmp"/videos/*.gif app/gif/
|
||||
echo "✓ $(ls app/img | wc -l) images, $(ls app/gif | wc -l) GIFs"
|
||||
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"
|
||||
Reference in new issue
Block a user