56c06dfa98
- 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)
15 lines
356 B
Bash
Executable File
15 lines
356 B
Bash
Executable File
#!/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
|