From 96d0c2f834da3ac97d18db3cea1a9d41e1266e01 Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Tue, 25 Nov 2025 21:52:22 +0100 Subject: [PATCH] added demo mode banners for online demo --- backend/main.py | 1 + frontend/index.html | 15 +++++++++++++++ frontend/login.html | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/backend/main.py b/backend/main.py index 215d330..8b2539e 100644 --- a/backend/main.py +++ b/backend/main.py @@ -489,6 +489,7 @@ async def get_config(): "tagline": config['app']['tagline'], "version": config['app']['version'], "searchEnabled": config['search']['enabled'], + "demoMode": DEMO_MODE, # Expose demo mode flag to frontend "authentication": { "enabled": config.get('authentication', {}).get('enabled', False) } diff --git a/frontend/index.html b/frontend/index.html index c53670d..0e890c5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1168,6 +1168,13 @@

+ +
+ + + + DEMO MODE: Multiple users may edit simultaneously. Changes might be lost if others save at the same time. +
@@ -1374,6 +1381,14 @@ ✓ Saved + +
+ + + + DEMO MODE: Multiple users may edit simultaneously. Changes might be lost if others save at the same time. +
+
diff --git a/frontend/login.html b/frontend/login.html index 5935307..2b7cf9a 100644 --- a/frontend/login.html +++ b/frontend/login.html @@ -211,6 +211,14 @@