feat: web application multipage support

This commit is contained in:
2025-08-16 19:05:24 +02:00
parent 7b652d6999
commit 84f7d41a84
38 changed files with 765 additions and 507 deletions
+18
View File
@@ -0,0 +1,18 @@
import sys
from pathlib import Path
import streamlit as st
# Add parent directory to Python path to access core modules
parent_dir = Path(__file__).parent.parent.parent
sys.path.insert(0, str(parent_dir))
from web.interfaces.configuration import Configuration
st.set_page_config(page_title="Configuration", page_icon="⚙️", layout="wide")
if "config" in st.session_state:
configuration = Configuration(st.session_state.config)
configuration.index()
else:
st.error("Please run the main app first to initialize the configuration.")
st.markdown("Go back to the [main page](/) to start the application.")