Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +515 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: net
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,515 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Network Dashboard</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.map-container {
|
| 11 |
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iNjAwIiBvcGFjaXR5PSIwLjA1Ij48cmVjdCB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0iIzAwMCIvPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjYwMCIgeTI9IjYwMCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEiLz48bGluZSB4MT0iNjAwIiB5MT0iMCIgeDI9IjAiIHkyPSI2MDAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZ0h0aD0iMSIvPjwvc3ZnPg==');
|
| 12 |
+
background-size: 40px 40px;
|
| 13 |
+
position: relative;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.device-marker {
|
| 17 |
+
position: absolute;
|
| 18 |
+
width: 24px;
|
| 19 |
+
height: 24px;
|
| 20 |
+
border-radius: 50%;
|
| 21 |
+
display: flex;
|
| 22 |
+
align-items: center;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
color: white;
|
| 25 |
+
font-size: 12px;
|
| 26 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
| 27 |
+
transform: translate(-50%, -50%);
|
| 28 |
+
transition: all 0.3s ease;
|
| 29 |
+
cursor: pointer;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.device-marker:hover {
|
| 33 |
+
transform: translate(-50%, -50%) scale(1.2);
|
| 34 |
+
z-index: 10;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.connection-line {
|
| 38 |
+
position: absolute;
|
| 39 |
+
height: 2px;
|
| 40 |
+
background-color: rgba(75, 85, 99, 0.3);
|
| 41 |
+
transform-origin: left center;
|
| 42 |
+
z-index: 1;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.signal-strength {
|
| 46 |
+
position: absolute;
|
| 47 |
+
bottom: -5px;
|
| 48 |
+
right: -5px;
|
| 49 |
+
width: 12px;
|
| 50 |
+
height: 12px;
|
| 51 |
+
border-radius: 50%;
|
| 52 |
+
border: 2px solid white;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.signal-excellent { background-color: #10B981; }
|
| 56 |
+
.signal-good { background-color: #3B82F6; }
|
| 57 |
+
.signal-fair { background-color: #F59E0B; }
|
| 58 |
+
.signal-weak { background-color: #EF4444; }
|
| 59 |
+
|
| 60 |
+
.animate-pulse {
|
| 61 |
+
animation: pulse 2s infinite;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
@keyframes pulse {
|
| 65 |
+
0% { opacity: 1; }
|
| 66 |
+
50% { opacity: 0.5; }
|
| 67 |
+
100% { opacity: 1; }
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.tooltip {
|
| 71 |
+
visibility: hidden;
|
| 72 |
+
position: absolute;
|
| 73 |
+
z-index: 100;
|
| 74 |
+
background-color: #1F2937;
|
| 75 |
+
color: white;
|
| 76 |
+
padding: 8px 12px;
|
| 77 |
+
border-radius: 6px;
|
| 78 |
+
font-size: 14px;
|
| 79 |
+
white-space: nowrap;
|
| 80 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
| 81 |
+
pointer-events: none;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.device-marker:hover .tooltip {
|
| 85 |
+
visibility: visible;
|
| 86 |
+
}
|
| 87 |
+
</style>
|
| 88 |
+
</head>
|
| 89 |
+
<body class="bg-gray-100 text-gray-800 font-sans">
|
| 90 |
+
<div class="flex h-screen overflow-hidden">
|
| 91 |
+
<!-- Sidebar -->
|
| 92 |
+
<div class="w-64 bg-gray-800 text-gray-100 flex flex-col">
|
| 93 |
+
<div class="p-4 flex items-center border-b border-gray-700">
|
| 94 |
+
<i class="fas fa-network-wired text-blue-400 text-2xl mr-3"></i>
|
| 95 |
+
<h1 class="text-xl font-bold">Network Dashboard</h1>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<nav class="flex-1 p-4 space-y-2">
|
| 99 |
+
<a href="#" class="flex items-center p-2 rounded bg-gray-700 text-white">
|
| 100 |
+
<i class="fas fa-tachometer-alt mr-3"></i>
|
| 101 |
+
Dashboard
|
| 102 |
+
</a>
|
| 103 |
+
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 text-gray-300">
|
| 104 |
+
<i class="fas fa-map-marked-alt mr-3"></i>
|
| 105 |
+
Network Map
|
| 106 |
+
</a>
|
| 107 |
+
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 text-gray-300">
|
| 108 |
+
<i class="fas fa-desktop mr-3"></i>
|
| 109 |
+
Devices
|
| 110 |
+
</a>
|
| 111 |
+
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 text-gray-300">
|
| 112 |
+
<i class="fas fa-wifi mr-3"></i>
|
| 113 |
+
Wireless
|
| 114 |
+
</a>
|
| 115 |
+
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 text-gray-300">
|
| 116 |
+
<i class="fas fa-shield-alt mr-3"></i>
|
| 117 |
+
Security
|
| 118 |
+
</a>
|
| 119 |
+
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 text-gray-300">
|
| 120 |
+
<i class="fas fa-cog mr-3"></i>
|
| 121 |
+
Settings
|
| 122 |
+
</a>
|
| 123 |
+
</nav>
|
| 124 |
+
|
| 125 |
+
<div class="p-4 border-t border-gray-700">
|
| 126 |
+
<div class="flex items-center">
|
| 127 |
+
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold mr-2">AD</div>
|
| 128 |
+
<div>
|
| 129 |
+
<div class="text-sm font-medium">Admin User</div>
|
| 130 |
+
<div class="text-xs text-gray-400">Administrator</div>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<!-- Main Content -->
|
| 137 |
+
<div class="flex-1 flex flex-col overflow-hidden">
|
| 138 |
+
<!-- Top Bar -->
|
| 139 |
+
<header class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
|
| 140 |
+
<div class="flex items-center">
|
| 141 |
+
<h2 class="text-xl font-semibold">Network Map</h2>
|
| 142 |
+
<span class="ml-2 px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Live</span>
|
| 143 |
+
</div>
|
| 144 |
+
|
| 145 |
+
<div class="flex items-center space-x-4">
|
| 146 |
+
<div class="relative">
|
| 147 |
+
<i class="fas fa-search absolute left-3 top-2 text-gray-400"></i>
|
| 148 |
+
<input type="text" placeholder="Search devices..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
| 149 |
+
</div>
|
| 150 |
+
<button class="p-2 rounded-full hover:bg-gray-100">
|
| 151 |
+
<i class="fas fa-bell text-gray-600"></i>
|
| 152 |
+
<span class="absolute top-3 right-3 w-2 h-2 bg-red-500 rounded-full"></span>
|
| 153 |
+
</button>
|
| 154 |
+
</div>
|
| 155 |
+
</header>
|
| 156 |
+
|
| 157 |
+
<!-- Content Area -->
|
| 158 |
+
<main class="flex-1 overflow-auto p-6 bg-gray-50">
|
| 159 |
+
<!-- Stats Cards -->
|
| 160 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
| 161 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 162 |
+
<div class="flex items-center justify-between">
|
| 163 |
+
<div>
|
| 164 |
+
<p class="text-gray-500 text-sm font-medium">Total Devices</p>
|
| 165 |
+
<h3 class="text-2xl font-bold mt-1">24</h3>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
| 168 |
+
<i class="fas fa-network-wired text-xl"></i>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
<div class="mt-2 text-sm text-green-600 font-medium">
|
| 172 |
+
<i class="fas fa-arrow-up mr-1"></i> 2 new today
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 177 |
+
<div class="flex items-center justify-between">
|
| 178 |
+
<div>
|
| 179 |
+
<p class="text-gray-500 text-sm font-medium">Online Devices</p>
|
| 180 |
+
<h3 class="text-2xl font-bold mt-1">22</h3>
|
| 181 |
+
</div>
|
| 182 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
| 183 |
+
<i class="fas fa-check-circle text-xl"></i>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
<div class="mt-2 text-sm text-gray-500 font-medium">
|
| 187 |
+
92% availability
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
|
| 191 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 192 |
+
<div class="flex items-center justify-between">
|
| 193 |
+
<div>
|
| 194 |
+
<p class="text-gray-500 text-sm font-medium">Network Traffic</p>
|
| 195 |
+
<h3 class="text-2xl font-bold mt-1">45 Mbps</h3>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
| 198 |
+
<i class="fas fa-tachometer-alt text-xl"></i>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="mt-2 text-sm text-red-600 font-medium">
|
| 202 |
+
<i class="fas fa-arrow-down mr-1"></i> 10% from peak
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 207 |
+
<div class="flex items-center justify-between">
|
| 208 |
+
<div>
|
| 209 |
+
<p class="text-gray-500 text-sm font-medium">Alerts</p>
|
| 210 |
+
<h3 class="text-2xl font-bold mt-1">3</h3>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="p-3 rounded-full bg-red-100 text-red-600">
|
| 213 |
+
<i class="fas fa-exclamation-triangle text-xl"></i>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
<div class="mt-2 text-sm text-gray-500 font-medium">
|
| 217 |
+
1 critical, 2 warnings
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<!-- Network Map -->
|
| 223 |
+
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
|
| 224 |
+
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
|
| 225 |
+
<h3 class="font-semibold text-lg">Network Topology</h3>
|
| 226 |
+
<div class="flex space-x-2">
|
| 227 |
+
<button class="px-3 py-1 bg-gray-100 hover:bg-gray-200 rounded text-sm">
|
| 228 |
+
<i class="fas fa-sync-alt mr-1"></i> Refresh
|
| 229 |
+
</button>
|
| 230 |
+
<button class="px-3 py-1 bg-blue-50 hover:bg-blue-100 text-blue-600 rounded text-sm">
|
| 231 |
+
<i class="fas fa-cog mr-1"></i> Settings
|
| 232 |
+
</button>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
|
| 236 |
+
<div class="p-4">
|
| 237 |
+
<div class="map-container rounded-lg border border-gray-200 h-96 w-full relative" id="networkMap">
|
| 238 |
+
<!-- Devices will be placed here by JavaScript -->
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
|
| 243 |
+
<!-- Recent Activity -->
|
| 244 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 245 |
+
<div class="bg-white rounded-lg shadow col-span-2">
|
| 246 |
+
<div class="p-4 border-b border-gray-200">
|
| 247 |
+
<h3 class="font-semibold text-lg">Recent Activity</h3>
|
| 248 |
+
</div>
|
| 249 |
+
<div class="divide-y divide-gray-200">
|
| 250 |
+
<div class="p-4 flex items-start hover:bg-gray-50">
|
| 251 |
+
<div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-3">
|
| 252 |
+
<i class="fas fa-plus"></i>
|
| 253 |
+
</div>
|
| 254 |
+
<div class="flex-1">
|
| 255 |
+
<p class="text-sm font-medium">New device connected</p>
|
| 256 |
+
<p class="text-xs text-gray-500">iPhone 13 Pro joined the network</p>
|
| 257 |
+
</div>
|
| 258 |
+
<div class="text-xs text-gray-400">2 min ago</div>
|
| 259 |
+
</div>
|
| 260 |
+
<div class="p-4 flex items-start hover:bg-gray-50">
|
| 261 |
+
<div class="p-2 rounded-full bg-green-100 text-green-600 mr-3">
|
| 262 |
+
<i class="fas fa-wifi"></i>
|
| 263 |
+
</div>
|
| 264 |
+
<div class="flex-1">
|
| 265 |
+
<p class="text-sm font-medium">Access point rebooted</p>
|
| 266 |
+
<p class="text-xs text-gray-500">AP-Office-1 completed reboot</p>
|
| 267 |
+
</div>
|
| 268 |
+
<div class="text-xs text-gray-400">15 min ago</div>
|
| 269 |
+
</div>
|
| 270 |
+
<div class="p-4 flex items-start hover:bg-gray-50">
|
| 271 |
+
<div class="p-2 rounded-full bg-yellow-100 text-yellow-600 mr-3">
|
| 272 |
+
<i class="fas fa-exclamation-triangle"></i>
|
| 273 |
+
</div>
|
| 274 |
+
<div class="flex-1">
|
| 275 |
+
<p class="text-sm font-medium">High bandwidth usage</p>
|
| 276 |
+
<p class="text-xs text-gray-500">Conference Room PC using 85 Mbps</p>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="text-xs text-gray-400">32 min ago</div>
|
| 279 |
+
</div>
|
| 280 |
+
<div class="p-4 flex items-start hover:bg-gray-50">
|
| 281 |
+
<div class="p-2 rounded-full bg-red-100 text-red-600 mr-3">
|
| 282 |
+
<i class="fas fa-times"></i>
|
| 283 |
+
</div>
|
| 284 |
+
<div class="flex-1">
|
| 285 |
+
<p class="text-sm font-medium">Device disconnected</p>
|
| 286 |
+
<p class="text-xs text-gray-500">Printer in Accounting went offline</p>
|
| 287 |
+
</div>
|
| 288 |
+
<div class="text-xs text-gray-400">1 hour ago</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<!-- Device Status -->
|
| 294 |
+
<div class="bg-white rounded-lg shadow">
|
| 295 |
+
<div class="p-4 border-b border-gray-200">
|
| 296 |
+
<h3 class="font-semibold text-lg">Device Status</h3>
|
| 297 |
+
</div>
|
| 298 |
+
<div class="p-4">
|
| 299 |
+
<div class="space-y-4">
|
| 300 |
+
<div>
|
| 301 |
+
<div class="flex justify-between text-sm mb-1">
|
| 302 |
+
<span>Access Points (4)</span>
|
| 303 |
+
<span class="text-green-600">100% Online</span>
|
| 304 |
+
</div>
|
| 305 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 306 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
|
| 307 |
+
</div>
|
| 308 |
+
</div>
|
| 309 |
+
<div>
|
| 310 |
+
<div class="flex justify-between text-sm mb-1">
|
| 311 |
+
<span>Switches (2)</span>
|
| 312 |
+
<span class="text-green-600">100% Online</span>
|
| 313 |
+
</div>
|
| 314 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 315 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
<div>
|
| 319 |
+
<div class="flex justify-between text-sm mb-1">
|
| 320 |
+
<span>Clients (18)</span>
|
| 321 |
+
<span class="text-yellow-600">89% Online</span>
|
| 322 |
+
</div>
|
| 323 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 324 |
+
<div class="bg-yellow-500 h-2 rounded-full" style="width: 89%"></div>
|
| 325 |
+
</div>
|
| 326 |
+
</div>
|
| 327 |
+
</div>
|
| 328 |
+
|
| 329 |
+
<div class="mt-6">
|
| 330 |
+
<h4 class="font-medium text-sm mb-2">Device Types</h4>
|
| 331 |
+
<div class="grid grid-cols-2 gap-4">
|
| 332 |
+
<div class="flex items-center">
|
| 333 |
+
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
|
| 334 |
+
<span class="text-xs">Computers (8)</span>
|
| 335 |
+
</div>
|
| 336 |
+
<div class="flex items-center">
|
| 337 |
+
<div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
|
| 338 |
+
<span class="text-xs">Phones (6)</span>
|
| 339 |
+
</div>
|
| 340 |
+
<div class="flex items-center">
|
| 341 |
+
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
|
| 342 |
+
<span class="text-xs">IoT (3)</span>
|
| 343 |
+
</div>
|
| 344 |
+
<div class="flex items-center">
|
| 345 |
+
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
|
| 346 |
+
<span class="text-xs">Printers (2)</span>
|
| 347 |
+
</div>
|
| 348 |
+
<div class="flex items-center">
|
| 349 |
+
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
|
| 350 |
+
<span class="text-xs">Servers (2)</span>
|
| 351 |
+
</div>
|
| 352 |
+
<div class="flex items-center">
|
| 353 |
+
<div class="w-3 h-3 rounded-full bg-indigo-500 mr-2"></div>
|
| 354 |
+
<span class="text-xs">Other (3)</span>
|
| 355 |
+
</div>
|
| 356 |
+
</div>
|
| 357 |
+
</div>
|
| 358 |
+
</div>
|
| 359 |
+
</div>
|
| 360 |
+
</div>
|
| 361 |
+
</main>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
|
| 365 |
+
<script>
|
| 366 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 367 |
+
const networkMap = document.getElementById('networkMap');
|
| 368 |
+
const mapWidth = networkMap.offsetWidth;
|
| 369 |
+
const mapHeight = networkMap.offsetHeight;
|
| 370 |
+
|
| 371 |
+
// Sample network devices data
|
| 372 |
+
const devices = [
|
| 373 |
+
{ id: 'router', name: 'Main Router', type: 'router', x: 50, y: 50, status: 'online', ip: '192.168.1.1', mac: '00:1A:2B:3C:4D:5E' },
|
| 374 |
+
{ id: 'switch1', name: 'Switch 1', type: 'switch', x: 50, y: 200, status: 'online', ip: '192.168.1.2', mac: '00:1A:2B:3C:4D:5F' },
|
| 375 |
+
{ id: 'switch2', name: 'Switch 2', type: 'switch', x: 50, y: 350, status: 'online', ip: '192.168.1.3', mac: '00:1A:2B:3C:4D:60' },
|
| 376 |
+
{ id: 'ap1', name: 'AP Office', type: 'access-point', x: 200, y: 100, status: 'online', ip: '192.168.1.4', mac: '00:1A:2B:3C:4D:61', signal: 'excellent' },
|
| 377 |
+
{ id: 'ap2', name: 'AP Meeting Room', type: 'access-point', x: 200, y: 250, status: 'online', ip: '192.168.1.5', mac: '00:1A:2B:3C:4D:62', signal: 'good' },
|
| 378 |
+
{ id: 'ap3', name: 'AP Lobby', type: 'access-point', x: 200, y: 400, status: 'online', ip: '192.168.1.6', mac: '00:1A:2B:3C:4D:63', signal: 'fair' },
|
| 379 |
+
{ id: 'server1', name: 'File Server', type: 'server', x: 350, y: 50, status: 'online', ip: '192.168.1.10', mac: '00:1A:2B:3C:4D:64' },
|
| 380 |
+
{ id: 'server2', name: 'Backup Server', type: 'server', x: 350, y: 150, status: 'online', ip: '192.168.1.11', mac: '00:1A:2B:3C:4D:65' },
|
| 381 |
+
{ id: 'pc1', name: 'Workstation 1', type: 'computer', x: 350, y: 250, status: 'online', ip: '192.168.1.20', mac: '00:1A:2B:3C:4D:66' },
|
| 382 |
+
{ id: 'pc2', name: 'Workstation 2', type: 'computer', x: 350, y: 350, status: 'offline', ip: '192.168.1.21', mac: '00:1A:2B:3C:4D:67' },
|
| 383 |
+
{ id: 'printer1', name: 'Office Printer', type: 'printer', x: 500, y: 100, status: 'online', ip: '192.168.1.30', mac: '00:1A:2B:3C:4D:68' },
|
| 384 |
+
{ id: 'phone1', name: 'iPhone 13', type: 'phone', x: 500, y: 200, status: 'online', ip: '192.168.1.31', mac: '00:1A:2B:3C:4D:69', signal: 'excellent' },
|
| 385 |
+
{ id: 'phone2', name: 'Samsung S22', type: 'phone', x: 500, y: 300, status: 'online', ip: '192.168.1.32', mac: '00:1A:2B:3C:4D:70', signal: 'good' },
|
| 386 |
+
{ id: 'iot1', name: 'Smart TV', type: 'iot', x: 500, y: 400, status: 'online', ip: '192.168.1.40', mac: '00:1A:2B:3C:4D:71' }
|
| 387 |
+
];
|
| 388 |
+
|
| 389 |
+
// Connections between devices
|
| 390 |
+
const connections = [
|
| 391 |
+
{ from: 'router', to: 'switch1' },
|
| 392 |
+
{ from: 'router', to: 'switch2' },
|
| 393 |
+
{ from: 'switch1', to: 'ap1' },
|
| 394 |
+
{ from: 'switch1', to: 'ap2' },
|
| 395 |
+
{ from: 'switch2', to: 'ap3' },
|
| 396 |
+
{ from: 'switch1', to: 'server1' },
|
| 397 |
+
{ from: 'switch1', to: 'server2' },
|
| 398 |
+
{ from: 'switch1', to: 'pc1' },
|
| 399 |
+
{ from: 'switch2', to: 'pc2' },
|
| 400 |
+
{ from: 'ap1', to: 'printer1' },
|
| 401 |
+
{ from: 'ap1', to: 'phone1' },
|
| 402 |
+
{ from: 'ap2', to: 'phone2' },
|
| 403 |
+
{ from: 'ap3', to: 'iot1' }
|
| 404 |
+
];
|
| 405 |
+
|
| 406 |
+
// Draw connections first (so they appear behind devices)
|
| 407 |
+
connections.forEach(conn => {
|
| 408 |
+
const fromDevice = devices.find(d => d.id === conn.from);
|
| 409 |
+
const toDevice = devices.find(d => d.id === conn.to);
|
| 410 |
+
|
| 411 |
+
if (fromDevice && toDevice) {
|
| 412 |
+
const line = document.createElement('div');
|
| 413 |
+
line.className = 'connection-line';
|
| 414 |
+
|
| 415 |
+
// Calculate line position and length
|
| 416 |
+
const x1 = (fromDevice.x / 100) * mapWidth;
|
| 417 |
+
const y1 = (fromDevice.y / 100) * mapHeight;
|
| 418 |
+
const x2 = (toDevice.x / 100) * mapWidth;
|
| 419 |
+
const y2 = (toDevice.y / 100) * mapHeight;
|
| 420 |
+
|
| 421 |
+
const length = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
|
| 422 |
+
const angle = Math.atan2(y2 - y1, x2 - x1) * 180 / Math.PI;
|
| 423 |
+
|
| 424 |
+
line.style.width = `${length}px`;
|
| 425 |
+
line.style.left = `${x1}px`;
|
| 426 |
+
line.style.top = `${y1}px`;
|
| 427 |
+
line.style.transform = `rotate(${angle}deg)`;
|
| 428 |
+
|
| 429 |
+
networkMap.appendChild(line);
|
| 430 |
+
}
|
| 431 |
+
});
|
| 432 |
+
|
| 433 |
+
// Create device markers
|
| 434 |
+
devices.forEach(device => {
|
| 435 |
+
const marker = document.createElement('div');
|
| 436 |
+
marker.className = `device-marker ${device.status === 'offline' ? 'bg-gray-400' : getDeviceColor(device.type)}`;
|
| 437 |
+
|
| 438 |
+
if (device.status === 'offline') {
|
| 439 |
+
marker.classList.add('opacity-60');
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
// Position the marker
|
| 443 |
+
const left = (device.x / 100) * mapWidth;
|
| 444 |
+
const top = (device.y / 100) * mapHeight;
|
| 445 |
+
|
| 446 |
+
marker.style.left = `${left}px`;
|
| 447 |
+
marker.style.top = `${top}px`;
|
| 448 |
+
|
| 449 |
+
// Add icon based on device type
|
| 450 |
+
const icon = document.createElement('i');
|
| 451 |
+
icon.className = getDeviceIcon(device.type);
|
| 452 |
+
marker.appendChild(icon);
|
| 453 |
+
|
| 454 |
+
// Add signal strength indicator for wireless devices
|
| 455 |
+
if (device.signal) {
|
| 456 |
+
const signal = document.createElement('div');
|
| 457 |
+
signal.className = `signal-strength signal-${device.signal}`;
|
| 458 |
+
marker.appendChild(signal);
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
// Add pulsating effect for online devices
|
| 462 |
+
if (device.status === 'online') {
|
| 463 |
+
marker.classList.add('animate-pulse');
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
// Add tooltip
|
| 467 |
+
const tooltip = document.createElement('div');
|
| 468 |
+
tooltip.className = 'tooltip';
|
| 469 |
+
tooltip.style.top = '-40px';
|
| 470 |
+
tooltip.innerHTML = `
|
| 471 |
+
<div class="font-bold">${device.name}</div>
|
| 472 |
+
<div class="text-xs">${device.ip}</div>
|
| 473 |
+
<div class="text-xs">${device.mac}</div>
|
| 474 |
+
<div class="text-xs mt-1 ${device.status === 'online' ? 'text-green-500' : 'text-red-500'}">
|
| 475 |
+
${device.status === 'online' ? 'Online' : 'Offline'}
|
| 476 |
+
</div>
|
| 477 |
+
`;
|
| 478 |
+
marker.appendChild(tooltip);
|
| 479 |
+
|
| 480 |
+
networkMap.appendChild(marker);
|
| 481 |
+
});
|
| 482 |
+
|
| 483 |
+
// Function to get device color based on type
|
| 484 |
+
function getDeviceColor(type) {
|
| 485 |
+
switch(type) {
|
| 486 |
+
case 'router': return 'bg-red-500';
|
| 487 |
+
case 'switch': return 'bg-blue-500';
|
| 488 |
+
case 'access-point': return 'bg-purple-500';
|
| 489 |
+
case 'server': return 'bg-indigo-500';
|
| 490 |
+
case 'computer': return 'bg-green-500';
|
| 491 |
+
case 'phone': return 'bg-yellow-500';
|
| 492 |
+
case 'printer': return 'bg-pink-500';
|
| 493 |
+
case 'iot': return 'bg-teal-500';
|
| 494 |
+
default: return 'bg-gray-500';
|
| 495 |
+
}
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
// Function to get device icon based on type
|
| 499 |
+
function getDeviceIcon(type) {
|
| 500 |
+
switch(type) {
|
| 501 |
+
case 'router': return 'fas fa-router';
|
| 502 |
+
case 'switch': return 'fas fa-ethernet';
|
| 503 |
+
case 'access-point': return 'fas fa-wifi';
|
| 504 |
+
case 'server': return 'fas fa-server';
|
| 505 |
+
case 'computer': return 'fas fa-desktop';
|
| 506 |
+
case 'phone': return 'fas fa-mobile-alt';
|
| 507 |
+
case 'printer': return 'fas fa-print';
|
| 508 |
+
case 'iot': return 'fas fa-lightbulb';
|
| 509 |
+
default: return 'fas fa-network-wired';
|
| 510 |
+
}
|
| 511 |
+
}
|
| 512 |
+
});
|
| 513 |
+
</script>
|
| 514 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=W3cgymnott/net" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 515 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
can you create a networking dashbord that visualze devices in maps like in unifi system dashboards
|