Spaces:
Running
Running
File size: 19,995 Bytes
85cfaf5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pipeline Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<style>
.sidebar {
transition: all 0.3s;
}
.chart-container {
position: relative;
height: 400px;
width: 100%;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.file-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-indigo-800 text-white w-64 flex-shrink-0">
<div class="p-4 border-b border-indigo-700">
<h1 class="text-xl font-bold flex items-center">
<i data-feather="activity" class="mr-2"></i>
Pipeline Dashboard
</h1>
</div>
<nav class="p-4">
<div class="mb-6">
<h3 class="text-xs uppercase tracking-wider text-indigo-300 mb-2">Environment</h3>
<select id="envSelect" class="w-full bg-indigo-700 text-white rounded p-2 text-sm">
<option value="daily">Daily</option>
<option value="weekend">Weekend</option>
</select>
</div>
<div class="mb-6">
<h3 class="text-xs uppercase tracking-wider text-indigo-300 mb-2">Type</h3>
<select id="typeSelect" class="w-full bg-indigo-700 text-white rounded p-2 text-sm">
<option value="VAL">VAL</option>
<option value="OPE">OPE</option>
</select>
</div>
<div>
<h3 class="text-xs uppercase tracking-wider text-indigo-300 mb-2">Navigation</h3>
<ul>
<li class="mb-1">
<a href="#" class="tab-link block px-3 py-2 rounded hover:bg-indigo-700" data-tab="dashboard">
<i data-feather="home" class="inline mr-2 w-4 h-4"></i> Dashboard
</a>
</li>
<li class="mb-1">
<a href="#" class="tab-link block px-3 py-2 rounded hover:bg-indigo-700" data-tab="timeline">
<i data-feather="clock" class="inline mr-2 w-4 h-4"></i> Timeline Charts
</a>
</li>
<li class="mb-1">
<a href="#" class="tab-link block px-3 py-2 rounded hover:bg-indigo-700" data-tab="reports">
<i data-feather="file-text" class="inline mr-2 w-4 h-4"></i> Reports
</a>
</li>
<li class="mb-1">
<a href="#" class="tab-link block px-3 py-2 rounded hover:bg-indigo-700" data-tab="categorized">
<i data-feather="folder" class="inline mr-2 w-4 h-4"></i> Categorized Data
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm p-4 border-b">
<div class="flex justify-between items-center">
<h2 id="currentTabTitle" class="text-xl font-semibold text-gray-800">Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" id="datePicker" class="bg-gray-100 border-0 rounded-lg py-2 px-4 w-40" placeholder="Select date">
<i data-feather="calendar" class="absolute right-3 top-2.5 text-gray-500"></i>
</div>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition">
<i data-feather="refresh-cw" class="inline mr-2 w-4 h-4"></i> Refresh
</button>
</div>
</div>
</header>
<!-- Tab Contents -->
<main class="p-6">
<!-- Dashboard Tab -->
<div id="dashboard" class="tab-content active">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
<div class="bg-white rounded-xl shadow p-6">
<h3 class="text-lg font-medium text-gray-700 mb-4">Latest Timeline Chart</h3>
<div class="chart-container">
<canvas id="timelineChart"></canvas>
</div>
<div class="mt-4 flex justify-between">
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="maximize" class="inline mr-1 w-4 h-4"></i> View Fullscreen
</button>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="download" class="inline mr-1 w-4 h-4"></i> Download PNG
</button>
</div>
</div>
<div class="bg-white rounded-xl shadow p-6">
<h3 class="text-lg font-medium text-gray-700 mb-4">Latest Overlap Chart</h3>
<div class="chart-container">
<canvas id="overlapChart"></canvas>
</div>
<div class="mt-4 flex justify-between">
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="maximize" class="inline mr-1 w-4 h-4"></i> View Fullscreen
</button>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="download" class="inline mr-1 w-4 h-4"></i> Download PNG
</button>
</div>
</div>
<div class="bg-white rounded-xl shadow p-6">
<h3 class="text-lg font-medium text-gray-700 mb-4">Latest Report</h3>
<div class="bg-gray-50 rounded-lg p-4 h-64 overflow-auto">
<pre class="text-xs text-gray-700 whitespace-pre-wrap" id="latestReportContent">Loading latest report...</pre>
</div>
<div class="mt-4">
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="download" class="inline mr-1 w-4 h-4"></i> Download TXT
</button>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow p-6">
<h3 class="text-lg font-medium text-gray-700 mb-4">Recent Files</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="file-card bg-gray-50 rounded-lg p-4 border border-gray-200 transition cursor-pointer hover:border-indigo-300">
<div class="flex items-start">
<div class="bg-indigo-100 p-2 rounded-lg mr-3">
<i data-feather="file-text" class="text-indigo-600"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">MMEDIS_report_25.263.txt</h4>
<p class="text-xs text-gray-500 mt-1">Today, 06:00:00</p>
</div>
</div>
</div>
<div class="file-card bg-gray-50 rounded-lg p-4 border border-gray-200 transition cursor-pointer hover:border-indigo-300">
<div class="flex items-start">
<div class="bg-indigo-100 p-2 rounded-lg mr-3">
<i data-feather="image" class="text-indigo-600"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">timeline_chart_263.png</h4>
<p class="text-xs text-gray-500 mt-1">Today, 06:00:00</p>
</div>
</div>
</div>
<div class="file-card bg-gray-50 rounded-lg p-4 border border-gray-200 transition cursor-pointer hover:border-indigo-300">
<div class="flex items-start">
<div class="bg-indigo-100 p-2 rounded-lg mr-3">
<i data-feather="clock" class="text-indigo-600"></i>
</div>
<div>
<h4 class="font-medium text-gray-800">overlap_chart_263.html</h4>
<p class="text-xs text-gray-500 mt-1">Today, 06:00:00</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Timeline Charts Tab -->
<div id="timeline" class="tab-content">
<div class="bg-white rounded-xl shadow p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium text-gray-700">Timeline Charts</h3>
<div class="flex space-x-2">
<button class="bg-indigo-100 text-indigo-700 px-3 py-1 rounded-lg text-sm">Timeline</button>
<button class="bg-gray-100 text-gray-700 px-3 py-1 rounded-lg text-sm">Overlap</button>
</div>
</div>
<div class="chart-container">
<canvas id="fullTimelineChart"></canvas>
</div>
<div class="mt-4 flex justify-between">
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="maximize" class="inline mr-1 w-4 h-4"></i> View Fullscreen
</button>
<div>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium mr-4">
<i data-feather="download" class="inline mr-1 w-4 h-4"></i> Download PNG
</button>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="code" class="inline mr-1 w-4 h-4"></i> View HTML
</button>
</div>
</div>
</div>
</div>
<!-- Reports Tab -->
<div id="reports" class="tab-content">
<div class="bg-white rounded-xl shadow p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium text-gray-700">Reports</h3>
<div class="flex space-x-2">
<button class="bg-indigo-100 text-indigo-700 px-3 py-1 rounded-lg text-sm">MMEDIS</button>
<button class="bg-gray-100 text-gray-700 px-3 py-1 rounded-lg text-sm">MMEDAC</button>
</div>
</div>
<div class="bg-gray-50 rounded-lg p-4 h-96 overflow-auto">
<pre class="text-xs text-gray-700 whitespace-pre-wrap">Loading report content...</pre>
</div>
<div class="mt-4">
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
<i data-feather="download" class="inline mr-1 w-4 h-4"></i> Download TXT
</button>
</div>
</div>
</div>
<!-- Categorized Data Tab -->
<div id="categorized" class="tab-content">
<div class="bg-white rounded-xl shadow p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium text-gray-700">Categorized Data</h3>
<div class="flex items-center space-x-4">
<select class="bg-gray-100 border-0 rounded-lg py-2 px-4 text-sm">
<option>2025</option>
<option>2024</option>
</select>
<select class="bg-gray-100 border-0 rounded-lg py-2 px-4 text-sm">
<option>Day of Year: 263</option>
<option>262</option>
<option>261</option>
</select>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-gray-50 rounded-lg p-6">
<h4 class="font-medium text-gray-800 mb-4">L0 Products</h4>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="clock" class="text-indigo-600 mr-3"></i>
<span>timeline_chart.html</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="layers" class="text-indigo-600 mr-3"></i>
<span>overlap_chart.html</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="image" class="text-indigo-600 mr-3"></i>
<span>timeline_chart.png</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="download" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<div class="bg-gray-50 rounded-lg p-6">
<h4 class="font-medium text-gray-800 mb-4">L1L2 Products</h4>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="clock" class="text-indigo-600 mr-3"></i>
<span>timeline_chart.html</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="layers" class="text-indigo-600 mr-3"></i>
<span>overlap_chart.html</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200">
<div class="flex items-center">
<i data-feather="image" class="text-indigo-600 mr-3"></i>
<span>timeline_chart.png</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="download" class="w-4 h-4"></i>
</button>
</div>
</div> |