Initial commit: KiddOs v3 React kiosk
- React 18 + Vite 5 hot-reload OS (800x480 Nord theme) - 7 apps: Journal, Calculator, Drawing, CodeLab, Clock, Files, Scratch - Cage + Cog Wayland kiosk, offline localStorage - Scripts: dev.sh, run-kiosk.sh, run-prod.sh
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Dev helper: run both vite + quick test
|
||||
set -e
|
||||
cd "$(dirname "$0")/../webapp"
|
||||
echo "Checking vite build..."
|
||||
npm run build
|
||||
echo "Build ok -> dist/"
|
||||
echo ""
|
||||
echo "Preview static build on http://localhost:4173 to test without HMR"
|
||||
npm run preview -- --host 0.0.0.0 --port 4173 &
|
||||
PREVIEW_PID=$!
|
||||
echo "Preview PID $PREVIEW_PID"
|
||||
sleep 2
|
||||
echo ""
|
||||
echo "Try kiosk with prod file:"
|
||||
echo "cage -s -- cog --platform=wl file://$PWD/dist/index.html --bg-color=#2E3440"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop preview"
|
||||
wait $PREVIEW_PID
|
||||
Reference in New Issue
Block a user