Spaces:
Runtime error
Runtime error
Create index.html
Browse files- public/index.html +103 -0
public/index.html
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Dashboard - Bot Hosting Panel</title>
|
| 7 |
+
<link rel="stylesheet" href="/css/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="app-container">
|
| 11 |
+
<!-- Sidebar -->
|
| 12 |
+
<aside class="sidebar">
|
| 13 |
+
<div class="sidebar-header">
|
| 14 |
+
<h2>Bot Panel</h2>
|
| 15 |
+
</div>
|
| 16 |
+
<nav class="sidebar-nav">
|
| 17 |
+
<a href="/" class="nav-item active">
|
| 18 |
+
<svg viewBox="0 0 24 24"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>
|
| 19 |
+
<span>Dashboard</span>
|
| 20 |
+
</a>
|
| 21 |
+
<a href="/filemanager" class="nav-item">
|
| 22 |
+
<svg viewBox="0 0 24 24"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/></svg>
|
| 23 |
+
<span>File Manager</span>
|
| 24 |
+
</a>
|
| 25 |
+
<a href="#" class="nav-item" onclick="logout()">
|
| 26 |
+
<svg viewBox="0 0 24 24"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>
|
| 27 |
+
<span>Logout</span>
|
| 28 |
+
</a>
|
| 29 |
+
</nav>
|
| 30 |
+
</aside>
|
| 31 |
+
|
| 32 |
+
<!-- Main Content -->
|
| 33 |
+
<main class="main-content">
|
| 34 |
+
<header class="top-bar">
|
| 35 |
+
<h1>Dashboard</h1>
|
| 36 |
+
<div class="upload-area">
|
| 37 |
+
<button class="btn btn-primary" onclick="showUploadModal()">
|
| 38 |
+
<svg viewBox="0 0 24 24" width="18" height="18"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
| 39 |
+
New Bot
|
| 40 |
+
</button>
|
| 41 |
+
</div>
|
| 42 |
+
</header>
|
| 43 |
+
|
| 44 |
+
<div class="dashboard-content">
|
| 45 |
+
<div id="botsContainer" class="bots-grid">
|
| 46 |
+
<div class="loading">Loading bots...</div>
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
</main>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<!-- Upload Modal -->
|
| 53 |
+
<div id="uploadModal" class="modal">
|
| 54 |
+
<div class="modal-content">
|
| 55 |
+
<div class="modal-header">
|
| 56 |
+
<h2>Upload New Bot</h2>
|
| 57 |
+
<button class="close-btn" onclick="closeUploadModal()">×</button>
|
| 58 |
+
</div>
|
| 59 |
+
<div class="modal-body">
|
| 60 |
+
<form id="uploadForm">
|
| 61 |
+
<div class="form-group">
|
| 62 |
+
<label for="botName">Bot Name</label>
|
| 63 |
+
<input type="text" id="botName" name="name" placeholder="my-awesome-bot" required>
|
| 64 |
+
</div>
|
| 65 |
+
<div class="form-group">
|
| 66 |
+
<label for="botFile">Bot ZIP File</label>
|
| 67 |
+
<div class="file-upload-area" id="dropZone">
|
| 68 |
+
<input type="file" id="botFile" name="bot" accept=".zip" required>
|
| 69 |
+
<p>Drag & drop ZIP file here or click to browse</p>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
<div class="upload-progress" id="uploadProgress" style="display:none;">
|
| 73 |
+
<div class="progress-bar">
|
| 74 |
+
<div class="progress-fill"></div>
|
| 75 |
+
</div>
|
| 76 |
+
<p class="progress-text">Uploading...</p>
|
| 77 |
+
</div>
|
| 78 |
+
<button type="submit" class="btn btn-primary btn-block">Upload Bot</button>
|
| 79 |
+
</form>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<!-- Console Modal -->
|
| 85 |
+
<div id="consoleModal" class="modal">
|
| 86 |
+
<div class="modal-content console-modal">
|
| 87 |
+
<div class="modal-header">
|
| 88 |
+
<h2 id="consoleTitle">Console</h2>
|
| 89 |
+
<div class="console-actions">
|
| 90 |
+
<button class="btn btn-small" onclick="clearConsole()">Clear</button>
|
| 91 |
+
<button class="close-btn" onclick="closeConsoleModal()">×</button>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="modal-body">
|
| 95 |
+
<pre id="consoleOutput" class="console-output"></pre>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<script src="/socket.io/socket.io.js"></script>
|
| 101 |
+
<script src="/js/app.js"></script>
|
| 102 |
+
</body>
|
| 103 |
+
</html>
|