Files
kubectl-gui/frontend/index.html
T
Jiří Stachandaider a0bf943601 feat: add pagination and click selection to resource list
Co-authored-by: aider (openrouter/thinkingmachines/inkling-small:free) <aider@aider.chat>
2026-10-09 17:04:32 +02:00

61 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kubectl Web GUI</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Kubectl Web GUI</h1>
</header>
<main>
<section id="selectors">
<label for="context">Context:</label>
<select id="context"><option>Loading...</option></select>
<label for="namespace">Namespace:</label>
<select id="namespace"><option>default</option></select>
<label for="resource-type">Resource:</label>
<select id="resource-type">
<option value="pods">Pods</option>
<option value="nodes">Nodes</option>
<option value="pvcs">PVCs</option>
</select>
<button id="set-default">Set as default</button>
</section>
<section id="search">
<input type="text" id="search-input" placeholder="Search by name..." />
<button id="search-btn">Search / Refresh</button>
</section>
<section id="resources">
<h2 id="resource-title">Pods</h2>
<ul id="resource-list"><li>Loading...</li></ul>
<div id="pagination" style="margin-top:1rem; display:flex; gap:0.5rem; align-items:center;">
<button id="prev-page">Prev</button>
<span id="page-info">Page 1</span>
<button id="next-page">Next</button>
</div>
</section>
<section id="actions">
<h2>Actions</h2>
<div>
<label>Resource name:</label>
<input type="text" id="action-name" placeholder="name" />
<button id="btn-describe">Describe</button>
<button id="btn-logs">Logs</button>
<button id="btn-delete" class="danger">Delete</button>
</div>
<pre id="action-output"></pre>
</section>
</main>
<script src="app.js"></script>
</body>
</html>