From 8bf92e65988ac5e6151ca3724fddcda2cf298806 Mon Sep 17 00:00:00 2001 From: eduard256 Date: Fri, 21 Nov 2025 22:40:38 +0300 Subject: [PATCH] Add mock mode for web UI development and testing - Add mock data module with simulated camera search and stream discovery - Enable mock mode via ?mock=true URL parameter - Show MOCK MODE indicator when enabled - Remove statistics cards from discovery screen, keep only progress bar - Mock mode works independently from Go backend for easier UI testing --- webui/web/index.html | 15 -- webui/web/js/api/camera-search.js | 11 +- webui/web/js/api/stream-discovery.js | 15 +- webui/web/js/main.js | 34 ++++- webui/web/js/mock/mock-data.js | 209 +++++++++++++++++++++++++++ 5 files changed, 265 insertions(+), 19 deletions(-) create mode 100644 webui/web/js/mock/mock-data.js diff --git a/webui/web/index.html b/webui/web/index.html index 021137a..2e915be 100644 --- a/webui/web/index.html +++ b/webui/web/index.html @@ -207,21 +207,6 @@

Starting scan...

-
-
- 0 - Tested -
-
- 0 - Found -
-
- 0 - Remaining -
-
-