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).
41 lines
2.0 KiB
HTML
41 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html data-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Linux_post_install</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css">
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.3/dist/htmx.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar is-fixed-top" role="navigation">
|
|
<div class="navbar-brand">
|
|
<a class="navbar-item has-text-weight-bold" href="/dashboard">
|
|
Linux_post_install
|
|
</a>
|
|
<button class="navbar-burger" data-target="sidebar">
|
|
<span></span><span></span><span></span>
|
|
</button>
|
|
</div>
|
|
</nav>
|
|
<div class="columns is-gapless" id="main">
|
|
<aside class="column is-2 sidebar" id="sidebar">
|
|
<ul class="menu-list">
|
|
<li><a class="{{ 'is-active' if active == 'dashboard' else '' }}" href="/dashboard">Dashboard</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'install' else '' }}" href="/install">Install</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'compose' else '' }}" href="/compose">Docker Compose</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'network' else '' }}" href="/network">Network</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'vbox' else '' }}" href="/vbox">VBox</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'system' else '' }}" href="/system/firewall">Firewall</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'media' else '' }}" href="/media">Media</a></li>
|
|
<li><a class="{{ 'is-active' if active == 'ssh' else '' }}" href="/ssh">SSH</a></li>
|
|
</ul>
|
|
</aside>
|
|
<main class="column main-content">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|