d01228a21e
- gui/main.py: FastAPI app with Jinja2 templates and static files - gui/state.py: shared application state (runner, template env) - gui/services/pos_runner.py: abstracted command execution layer with subprocess, SSE streaming, and sudo support - gui/routes/: 8 route modules (dashboard, install, compose, network, vbox, system, media, ssh) - gui/templates/: Bulma-based layout with sidebar navigation + section templates for all routes - gui/static/css/style.css: dark theme styling - gui/requirements.txt: fastapi, uvicorn, jinja2, python-multipart - 1- Start_GUI.sh: entry point with sudo cache, pip install, uvicorn launch Architecture: routes delegate to pos_runner which shells out to actual pos-* scripts — no logic duplication. SSE streaming for real-time output (install, compose up/down/logs, network scan, media).
20 lines
599 B
Python
20 lines
599 B
Python
from gui.routes.dashboard import router as dashboard_router
|
|
from gui.routes.install import router as install_router
|
|
from gui.routes.compose import router as compose_router
|
|
from gui.routes.network import router as network_router
|
|
from gui.routes.vbox import router as vbox_router
|
|
from gui.routes.system import router as system_router
|
|
from gui.routes.media import router as media_router
|
|
from gui.routes.ssh import router as ssh_router
|
|
|
|
routers = [
|
|
dashboard_router,
|
|
install_router,
|
|
compose_router,
|
|
network_router,
|
|
vbox_router,
|
|
system_router,
|
|
media_router,
|
|
ssh_router,
|
|
]
|