start webui
This commit is contained in:
31
templates/base.html
Normal file
31
templates/base.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>MetaProxy Dashboard</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="/dash/config">Configuration</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dash/stats">Statistics</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dash/logs">Error Logs</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
26
templates/config.html
Normal file
26
templates/config.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="tab-pane fade show active">
|
||||
<h2>Configuration</h2>
|
||||
<form method="POST" action="/dash/config">
|
||||
<div class="form-group">
|
||||
<label for="excluded_countries">Excluded Countries</label>
|
||||
<input type="text" class="form-control" id="excluded_countries" name="excluded_countries" value="{{ excluded_countries }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="preferred_protocols">Preferred Protocols</label>
|
||||
<input type="text" class="form-control" id="preferred_protocols" name="preferred_protocols" value="{{ preferred_protocols }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="preferred_types">Preferred Types</label>
|
||||
<input type="text" class="form-control" id="preferred_types" name="preferred_types" value="{{ preferred_types }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="min_preference">Minimum Preference</label>
|
||||
<input type="text" class="form-control" id="min_preference" name="min_preference" value="{{ min_preference }}">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/logs.html
Normal file
8
templates/logs.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="tab-pane fade show active">
|
||||
<h2>Error Logs</h2>
|
||||
<p>Error logs content goes here.</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
templates/stats.html
Normal file
8
templates/stats.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="tab-pane fade show active">
|
||||
<h2>Statistics</h2>
|
||||
<p>Statistics content goes here.</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user