Spaces:
Runtime error
Runtime error
Create filemanager.html
Browse files- views/filemanager.html +65 -0
views/filemanager.html
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>File Manager - Bot Hosting Panel</title>
|
| 7 |
+
<link rel="stylesheet" href="/css/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="app-container">
|
| 11 |
+
<aside class="sidebar">
|
| 12 |
+
<div class="sidebar-header">
|
| 13 |
+
<h2>Bot Panel</h2>
|
| 14 |
+
</div>
|
| 15 |
+
<nav class="sidebar-nav">
|
| 16 |
+
<a href="/" class="nav-item">
|
| 17 |
+
<svg viewBox="0 0 24 24"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>
|
| 18 |
+
<span>Dashboard</span>
|
| 19 |
+
</a>
|
| 20 |
+
<a href="/filemanager" class="nav-item active">
|
| 21 |
+
<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>
|
| 22 |
+
<span>File Manager</span>
|
| 23 |
+
</a>
|
| 24 |
+
<a href="#" class="nav-item" onclick="logout()">
|
| 25 |
+
<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>
|
| 26 |
+
<span>Logout</span>
|
| 27 |
+
</a>
|
| 28 |
+
</nav>
|
| 29 |
+
</aside>
|
| 30 |
+
<main class="main-content">
|
| 31 |
+
<header class="top-bar">
|
| 32 |
+
<h1>File Manager</h1>
|
| 33 |
+
</header>
|
| 34 |
+
<div class="file-manager-container">
|
| 35 |
+
<div class="file-manager-sidebar">
|
| 36 |
+
<h3>Bots</h3>
|
| 37 |
+
<ul id="botList" class="bot-file-list">
|
| 38 |
+
<li>Loading bots...</li>
|
| 39 |
+
</ul>
|
| 40 |
+
</div>
|
| 41 |
+
<div class="file-manager-main">
|
| 42 |
+
<div class="file-toolbar">
|
| 43 |
+
<div class="breadcrumb" id="breadcrumb">
|
| 44 |
+
<span>/</span>
|
| 45 |
+
</div>
|
| 46 |
+
<div class="file-actions">
|
| 47 |
+
<button class="btn btn-small" onclick="createDirectory()">New Folder</button>
|
| 48 |
+
<button class="btn btn-small btn-primary" onclick="uploadFile()">Upload File</button>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
<div id="fileList" class="file-list">
|
| 52 |
+
<p>Select a bot to view files</p>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</main>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<!-- Hidden file upload input -->
|
| 60 |
+
<input type="file" id="fileUploadInput" style="display:none" multiple>
|
| 61 |
+
|
| 62 |
+
<script src="/socket.io/socket.io.js"></script>
|
| 63 |
+
<script src="/js/app.js"></script>
|
| 64 |
+
</body>
|
| 65 |
+
</html>
|