Dashboard Add top-right user dropdown using Syncfusion DropDownButton: shows username + role; menu entries “Profil” and “Abmelden”. Replace custom dropdown logic with Syncfusion component; position at header’s right edge. Update /logout page to call backend logout and redirect to /login (reliable user switching). Build/Config Add @syncfusion/ej2-react-splitbuttons and @syncfusion/ej2-splitbuttons dependencies. Update Vite optimizeDeps.include to pre-bundle splitbuttons and avoid import-analysis errors. Docs README: Rework Architecture Overview with clearer data flow: Listener consumes MQTT (discovery/heartbeats) and updates API. Scheduler reads from API and publishes events via MQTT to clients. Clients send via MQTT and receive via MQTT. Worker receives commands directly from API and reports results back (no MQTT). Explicit note: MariaDB is accessed exclusively by the API Server; Dashboard never talks to DB directly. README: Add SplitButtons to “Syncfusion Components Used”; add troubleshooting steps for @syncfusion/ej2-react-splitbuttons import issues (optimizeDeps + volume reset). Copilot instructions: Document header user menu and splitbuttons technical notes (deps, optimizeDeps, dev-container node_modules volume). Program info Bump to 2025.1.0-alpha.10 with changelog: UI: Header user menu (DropDownButton with username/role; Profil/Abmelden). Frontend: Syncfusion SplitButtons integration + Vite pre-bundling config. Fix: Added README guidance for splitbuttons import errors. No breaking changes.
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# Copy this file to .env and fill in values as needed for local development.
|
|
# NOTE: No secrets should be committed. Use placeholders below.
|
|
|
|
# General
|
|
ENV=development
|
|
|
|
# Flask
|
|
# IMPORTANT: Generate a secure random key for production
|
|
# e.g., python -c 'import secrets; print(secrets.token_hex(32))'
|
|
FLASK_SECRET_KEY=dev-secret-key-change-in-production
|
|
|
|
# Database (used if DB_CONN not provided)
|
|
DB_USER=your_user
|
|
DB_PASSWORD=your_password
|
|
DB_NAME=infoscreen_by_taa
|
|
DB_HOST=db
|
|
# Preferred connection string for services (overrides the above if set)
|
|
# DB_CONN=mysql+pymysql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}
|
|
|
|
# MQTT
|
|
MQTT_BROKER_HOST=mqtt
|
|
MQTT_BROKER_PORT=1883
|
|
# MQTT_USER=your_mqtt_user
|
|
# MQTT_PASSWORD=your_mqtt_password
|
|
MQTT_KEEPALIVE=60
|
|
|
|
# Dashboard
|
|
# Used when building the production dashboard image
|
|
# VITE_API_URL=https://your.api.example.com/api
|
|
|
|
# Groups alive windows (seconds)
|
|
HEARTBEAT_GRACE_PERIOD_DEV=15
|
|
HEARTBEAT_GRACE_PERIOD_PROD=180
|
|
|
|
# Scheduler
|
|
# Optional: force periodic republish even without changes
|
|
# REFRESH_SECONDS=0
|
|
|
|
# Default superadmin bootstrap (server/init_defaults.py)
|
|
# REQUIRED: Must be set for superadmin creation
|
|
DEFAULT_SUPERADMIN_USERNAME=superadmin
|
|
DEFAULT_SUPERADMIN_PASSWORD=your_secure_password_here
|