Add mock mode for WebUI development
- Add mock API classes for camera search and stream discovery - Add mock mode toggle via ?mock=true URL parameter - Add visual mock mode indicator badge - Add dev-server.sh script for local development - Mock data includes 10 diverse streams (FFMPEG, ONVIF, JPEG, MJPEG, HLS, HTTP_VIDEO)
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# Simple development server for Strix WebUI
|
||||
# This allows you to test the UI without running the Go backend
|
||||
|
||||
PORT=${1:-8080}
|
||||
|
||||
echo "Starting development server on port $PORT"
|
||||
echo "Open: http://localhost:$PORT?mock=true"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop"
|
||||
|
||||
# Use Python's built-in HTTP server
|
||||
cd "$(dirname "$0")"
|
||||
python3 -m http.server $PORT
|
||||
Reference in New Issue
Block a user