Spaces:
Paused
Paused
Upload 20 files
Browse files- app.py +28 -22
- static/app.js +77 -102
- templates/index.html +121 -142
app.py
CHANGED
|
@@ -438,19 +438,21 @@ def serialize_torrent(torrent, state_entry: dict | None = None) -> dict:
|
|
| 438 |
and not gofile_uploading
|
| 439 |
)
|
| 440 |
|
| 441 |
-
return {
|
| 442 |
-
"hash": torrent.hash,
|
| 443 |
-
"name": torrent.name,
|
| 444 |
-
"state": torrent.state,
|
| 445 |
-
"state_label": effective_state_label(torrent, state_entry),
|
| 446 |
-
"state_badge": effective_status_badge(torrent, state_entry),
|
| 447 |
-
"total_size": format_size(getattr(torrent, "total_size", 0)),
|
| 448 |
-
"downloaded": format_size(getattr(torrent, "downloaded", 0)),
|
| 449 |
-
"
|
| 450 |
-
"
|
| 451 |
-
"
|
| 452 |
-
"
|
| 453 |
-
"
|
|
|
|
|
|
|
| 454 |
"progress": display_progress,
|
| 455 |
"progress_label": progress_label,
|
| 456 |
"num_seeds": getattr(torrent, "num_seeds", 0),
|
|
@@ -925,15 +927,19 @@ def get_dashboard_data() -> tuple[list[dict], dict]:
|
|
| 925 |
save_monitor_state(state)
|
| 926 |
raw_torrents = list(client.torrents_info(sort="added_on", reverse=True))
|
| 927 |
|
| 928 |
-
version = client.app.version
|
| 929 |
-
torrents = [serialize_torrent(torrent, state.get("torrents", {}).get(torrent.hash)) for torrent in raw_torrents]
|
| 930 |
-
stats = {
|
| 931 |
-
"connected": True,
|
| 932 |
-
"download_path": DOWNLOAD_PATH,
|
| 933 |
-
"version": version,
|
| 934 |
-
"torrent_count": len(torrents),
|
| 935 |
-
"downloading": sum(1 for item in raw_torrents if item.state in ACTIVE_DOWNLOAD_STATES),
|
| 936 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 937 |
system_info = get_system_info()
|
| 938 |
return torrents, {
|
| 939 |
"stats": stats,
|
|
|
|
| 438 |
and not gofile_uploading
|
| 439 |
)
|
| 440 |
|
| 441 |
+
return {
|
| 442 |
+
"hash": torrent.hash,
|
| 443 |
+
"name": torrent.name,
|
| 444 |
+
"state": torrent.state,
|
| 445 |
+
"state_label": effective_state_label(torrent, state_entry),
|
| 446 |
+
"state_badge": effective_status_badge(torrent, state_entry),
|
| 447 |
+
"total_size": format_size(getattr(torrent, "total_size", 0)),
|
| 448 |
+
"downloaded": format_size(getattr(torrent, "downloaded", 0)),
|
| 449 |
+
"uploaded": format_size(getattr(torrent, "uploaded", 0)),
|
| 450 |
+
"ratio": f"{float(getattr(torrent, 'ratio', 0) or 0):.2f}",
|
| 451 |
+
"dlspeed": format_speed(torrent_dlspeed),
|
| 452 |
+
"upspeed": format_speed(torrent_upspeed),
|
| 453 |
+
"display_speed": display_speed,
|
| 454 |
+
"display_speed_label": display_speed_label,
|
| 455 |
+
"display_speed_meta": display_speed_meta,
|
| 456 |
"progress": display_progress,
|
| 457 |
"progress_label": progress_label,
|
| 458 |
"num_seeds": getattr(torrent, "num_seeds", 0),
|
|
|
|
| 927 |
save_monitor_state(state)
|
| 928 |
raw_torrents = list(client.torrents_info(sort="added_on", reverse=True))
|
| 929 |
|
| 930 |
+
version = client.app.version
|
| 931 |
+
torrents = [serialize_torrent(torrent, state.get("torrents", {}).get(torrent.hash)) for torrent in raw_torrents]
|
| 932 |
+
stats = {
|
| 933 |
+
"connected": True,
|
| 934 |
+
"download_path": DOWNLOAD_PATH,
|
| 935 |
+
"version": version,
|
| 936 |
+
"torrent_count": len(torrents),
|
| 937 |
+
"downloading": sum(1 for item in raw_torrents if item.state in ACTIVE_DOWNLOAD_STATES),
|
| 938 |
+
"total_seeds": sum(int(getattr(item, "num_seeds", 0) or 0) for item in raw_torrents),
|
| 939 |
+
"total_leechs": sum(int(getattr(item, "num_leechs", 0) or 0) for item in raw_torrents),
|
| 940 |
+
"all_time_download": format_size(sum(int(getattr(item, "downloaded", 0) or 0) for item in raw_torrents)),
|
| 941 |
+
"all_time_upload": format_size(sum(int(getattr(item, "uploaded", 0) or 0) for item in raw_torrents)),
|
| 942 |
+
}
|
| 943 |
system_info = get_system_info()
|
| 944 |
return torrents, {
|
| 945 |
"stats": stats,
|
static/app.js
CHANGED
|
@@ -22,10 +22,11 @@
|
|
| 22 |
searchInput: document.getElementById("search-input"),
|
| 23 |
filterTabs: document.getElementById("filter-tabs"),
|
| 24 |
summaryTotal: document.getElementById("summary-total"),
|
| 25 |
-
|
| 26 |
summarySeeding: document.getElementById("summary-seeding"),
|
| 27 |
summaryPaused: document.getElementById("summary-paused"),
|
| 28 |
-
|
|
|
|
| 29 |
openAddModal: document.getElementById("open-add-modal"),
|
| 30 |
addModal: document.getElementById("add-modal"),
|
| 31 |
addModalClose: document.getElementById("add-modal-close"),
|
|
@@ -134,24 +135,16 @@
|
|
| 134 |
function getTorrentCounts(torrents) {
|
| 135 |
const counts = {
|
| 136 |
total: torrents.length,
|
| 137 |
-
|
| 138 |
seeding: 0,
|
| 139 |
paused: 0,
|
| 140 |
-
uploading: 0,
|
| 141 |
completed: 0,
|
| 142 |
};
|
| 143 |
|
| 144 |
torrents.forEach((torrent) => {
|
| 145 |
const label = normalizeStateLabel(torrent.state_label);
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
}
|
| 149 |
-
if (label.includes("download")) {
|
| 150 |
-
counts.downloading += 1;
|
| 151 |
-
}
|
| 152 |
-
if (label.includes("seed")) {
|
| 153 |
-
counts.seeding += 1;
|
| 154 |
-
}
|
| 155 |
if (label.includes("pause")) {
|
| 156 |
counts.paused += 1;
|
| 157 |
}
|
|
@@ -351,116 +344,97 @@
|
|
| 351 |
const progressClass = torrent.gofile_uploading
|
| 352 |
? "h-2 rounded-full bg-[linear-gradient(90deg,rgba(155,140,255,0.95),rgba(32,230,192,0.92))] shadow-[0_0_18px_rgba(155,140,255,0.16)] transition-all duration-700"
|
| 353 |
: "h-2 rounded-full bg-[linear-gradient(90deg,rgba(32,230,192,0.95),rgba(156,247,166,0.95))] shadow-[0_0_18px_rgba(32,230,192,0.18)] transition-all duration-700";
|
| 354 |
-
const
|
| 355 |
-
const
|
| 356 |
-
const upRate = torrent.display_speed_label === "Seed Upload" ? primaryRate : (normalizeStateLabel(torrent.state_label).includes("seed") ? primaryRate : "-");
|
| 357 |
const statusMessage = torrent.status_message
|
| 358 |
? `<div class="mt-3 rounded-2xl border border-amber/20 bg-amber/10 px-3 py-2 text-xs text-amber-100">${escapeHtml(torrent.status_message)}</div>`
|
| 359 |
: "";
|
| 360 |
-
const speedMeta = torrent.display_speed_meta
|
| 361 |
-
? `<span class="font-mono text-[11px] uppercase tracking-[0.22em] text-stone-500">${escapeHtml(torrent.display_speed_meta)}</span>`
|
| 362 |
-
: "";
|
| 363 |
const endpointMeta = torrent.gofile_endpoint
|
| 364 |
? `<span class="rounded-full border border-white/10 bg-white/[0.04] px-2 py-1 font-mono text-[10px] uppercase tracking-[0.2em] text-stone-400">${escapeHtml(torrent.gofile_endpoint)}</span>`
|
| 365 |
: "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
|
| 367 |
return `
|
| 368 |
-
<article class="rounded-[28px] border border-white/10 bg-[linear-gradient(180deg,rgba(17,20,31,0.
|
| 369 |
-
<div class="
|
| 370 |
-
<div class="
|
| 371 |
-
<
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
<div class="min-w-0">
|
| 376 |
-
<
|
| 377 |
-
|
| 378 |
-
${endpointMeta}
|
| 379 |
-
</div>
|
| 380 |
-
<div class="mt-2 flex flex-wrap items-center gap-3">
|
| 381 |
<span class="inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[11px] uppercase tracking-[0.22em] ${tone.pill}">
|
| 382 |
<span class="h-2 w-2 rounded-full ${tone.dot}"></span>${escapeHtml(tone.label)}
|
| 383 |
</span>
|
| 384 |
-
|
| 385 |
-
${
|
| 386 |
-
</div>
|
| 387 |
-
${statusMessage}
|
| 388 |
-
<div class="mt-3">
|
| 389 |
-
<div class="mb-2 flex items-center justify-between text-[11px] uppercase tracking-[0.22em] text-stone-500">
|
| 390 |
-
<span>${escapeHtml(torrent.progress_label || "Progress")}</span>
|
| 391 |
-
<span class="font-mono text-stone-300">${progress}%</span>
|
| 392 |
-
</div>
|
| 393 |
-
<div class="h-2 rounded-full bg-white/8">
|
| 394 |
-
<div class="${progressClass} h-2 rounded-full transition-all duration-700" style="width:${progress}%"></div>
|
| 395 |
-
</div>
|
| 396 |
</div>
|
| 397 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
</div>
|
|
|
|
| 399 |
</div>
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
|
|
|
|
|
|
| 404 |
</div>
|
| 405 |
-
<div>
|
| 406 |
-
<div class="
|
| 407 |
-
<div class="mt-1 text-[11px] text-stone-500">Seeds ${escapeHtml(torrent.num_seeds)} / Peers ${escapeHtml(torrent.num_leechs)}</div>
|
| 408 |
</div>
|
| 409 |
-
<div class="font-mono text-xs text-neon">${downRate}</div>
|
| 410 |
-
<div class="font-mono text-xs text-lime">${upRate}</div>
|
| 411 |
-
<div class="flex flex-wrap gap-2">${actionButtons(torrent)}</div>
|
| 412 |
</div>
|
| 413 |
|
| 414 |
-
<div class="lg:
|
| 415 |
-
<div class="
|
| 416 |
-
<div class="
|
| 417 |
-
|
| 418 |
-
</div>
|
| 419 |
-
<div class="min-w-0 flex-1">
|
| 420 |
-
<div class="flex flex-wrap items-center justify-between gap-2">
|
| 421 |
-
<h3 class="min-w-0 flex-1 text-sm font-semibold text-white">${escapeHtml(torrent.name)}</h3>
|
| 422 |
-
<span class="inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[11px] uppercase tracking-[0.22em] ${tone.pill}">
|
| 423 |
-
<span class="h-2 w-2 rounded-full ${tone.dot}"></span>${escapeHtml(tone.label)}
|
| 424 |
-
</span>
|
| 425 |
-
</div>
|
| 426 |
-
<div class="mt-2 flex flex-wrap items-center gap-2 text-xs text-stone-500">
|
| 427 |
-
<span>${escapeHtml(torrent.downloaded)} / ${escapeHtml(torrent.total_size)}</span>
|
| 428 |
-
<span>•</span>
|
| 429 |
-
<span>${escapeHtml(torrent.eta)}</span>
|
| 430 |
-
${endpointMeta}
|
| 431 |
-
</div>
|
| 432 |
-
</div>
|
| 433 |
</div>
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
<div class="
|
| 437 |
-
<span>${escapeHtml(torrent.progress_label || "Progress")}</span>
|
| 438 |
-
<span class="font-mono text-stone-300">${progress}%</span>
|
| 439 |
-
</div>
|
| 440 |
-
<div class="h-2 rounded-full bg-white/8">
|
| 441 |
-
<div class="${progressClass} h-2 rounded-full transition-all duration-700" style="width:${progress}%"></div>
|
| 442 |
-
</div>
|
| 443 |
</div>
|
| 444 |
-
<div class="
|
| 445 |
-
<div class="
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
<div class="
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
<div class="
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
<div class="
|
| 458 |
-
|
| 459 |
-
<div class="mt-2 text-sm text-white">${escapeHtml(torrent.num_leechs)}</div>
|
| 460 |
-
</div>
|
| 461 |
</div>
|
| 462 |
-
<div class="mt-4 flex flex-wrap gap-2">${actionButtons(torrent)}</div>
|
| 463 |
</div>
|
|
|
|
|
|
|
| 464 |
${renderUploadBlock(torrent)}
|
| 465 |
</article>
|
| 466 |
`;
|
|
@@ -487,10 +461,11 @@
|
|
| 487 |
function updateSummary(stats, torrents) {
|
| 488 |
const counts = getTorrentCounts(torrents);
|
| 489 |
elements.summaryTotal.textContent = String(stats.torrent_count ?? counts.total);
|
| 490 |
-
elements.
|
| 491 |
-
elements.summarySeeding.textContent = String(counts.seeding);
|
| 492 |
elements.summaryPaused.textContent = String(counts.paused);
|
| 493 |
-
elements.
|
|
|
|
| 494 |
elements.torrentCount.textContent = `${filteredTorrents().length} item`;
|
| 495 |
}
|
| 496 |
|
|
|
|
| 22 |
searchInput: document.getElementById("search-input"),
|
| 23 |
filterTabs: document.getElementById("filter-tabs"),
|
| 24 |
summaryTotal: document.getElementById("summary-total"),
|
| 25 |
+
summaryLeech: document.getElementById("summary-leech"),
|
| 26 |
summarySeeding: document.getElementById("summary-seeding"),
|
| 27 |
summaryPaused: document.getElementById("summary-paused"),
|
| 28 |
+
summaryAllTimeDownload: document.getElementById("summary-all-time-download"),
|
| 29 |
+
summaryAllTimeUpload: document.getElementById("summary-all-time-upload"),
|
| 30 |
openAddModal: document.getElementById("open-add-modal"),
|
| 31 |
addModal: document.getElementById("add-modal"),
|
| 32 |
addModalClose: document.getElementById("add-modal-close"),
|
|
|
|
| 135 |
function getTorrentCounts(torrents) {
|
| 136 |
const counts = {
|
| 137 |
total: torrents.length,
|
| 138 |
+
leech: 0,
|
| 139 |
seeding: 0,
|
| 140 |
paused: 0,
|
|
|
|
| 141 |
completed: 0,
|
| 142 |
};
|
| 143 |
|
| 144 |
torrents.forEach((torrent) => {
|
| 145 |
const label = normalizeStateLabel(torrent.state_label);
|
| 146 |
+
counts.leech += Number(torrent.num_leechs || 0);
|
| 147 |
+
counts.seeding += Number(torrent.num_seeds || 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
if (label.includes("pause")) {
|
| 149 |
counts.paused += 1;
|
| 150 |
}
|
|
|
|
| 344 |
const progressClass = torrent.gofile_uploading
|
| 345 |
? "h-2 rounded-full bg-[linear-gradient(90deg,rgba(155,140,255,0.95),rgba(32,230,192,0.92))] shadow-[0_0_18px_rgba(155,140,255,0.16)] transition-all duration-700"
|
| 346 |
: "h-2 rounded-full bg-[linear-gradient(90deg,rgba(32,230,192,0.95),rgba(156,247,166,0.95))] shadow-[0_0_18px_rgba(32,230,192,0.18)] transition-all duration-700";
|
| 347 |
+
const downRate = escapeHtml(torrent.dlspeed || "-");
|
| 348 |
+
const upRate = escapeHtml(torrent.upspeed || "-");
|
|
|
|
| 349 |
const statusMessage = torrent.status_message
|
| 350 |
? `<div class="mt-3 rounded-2xl border border-amber/20 bg-amber/10 px-3 py-2 text-xs text-amber-100">${escapeHtml(torrent.status_message)}</div>`
|
| 351 |
: "";
|
|
|
|
|
|
|
|
|
|
| 352 |
const endpointMeta = torrent.gofile_endpoint
|
| 353 |
? `<span class="rounded-full border border-white/10 bg-white/[0.04] px-2 py-1 font-mono text-[10px] uppercase tracking-[0.2em] text-stone-400">${escapeHtml(torrent.gofile_endpoint)}</span>`
|
| 354 |
: "";
|
| 355 |
+
const activeSpeed = torrent.display_speed && torrent.display_speed !== "-"
|
| 356 |
+
? `<span class="text-sm font-semibold ${tone.text}">${escapeHtml(torrent.display_speed)}</span>`
|
| 357 |
+
: "";
|
| 358 |
+
const statusIconName = torrent.gofile_uploading
|
| 359 |
+
? "fa-cloud-arrow-up"
|
| 360 |
+
: normalizeStateLabel(torrent.state_label).includes("seed")
|
| 361 |
+
? "fa-arrow-up"
|
| 362 |
+
: normalizeStateLabel(torrent.state_label).includes("download")
|
| 363 |
+
? "fa-arrow-down"
|
| 364 |
+
: "fa-circle";
|
| 365 |
+
const statusIconTone = torrent.gofile_uploading
|
| 366 |
+
? "bg-violet/10 text-violet"
|
| 367 |
+
: normalizeStateLabel(torrent.state_label).includes("seed")
|
| 368 |
+
? "bg-lime/10 text-lime"
|
| 369 |
+
: normalizeStateLabel(torrent.state_label).includes("download")
|
| 370 |
+
? "bg-neon/10 text-neon"
|
| 371 |
+
: "bg-white/[0.04] text-stone-300";
|
| 372 |
|
| 373 |
return `
|
| 374 |
+
<article class="rounded-[28px] border border-white/10 bg-[linear-gradient(180deg,rgba(17,20,31,0.94),rgba(10,12,19,0.92))] p-4 shadow-[0_10px_34px_rgba(0,0,0,0.22)] transition duration-300 hover:border-neon/30 hover:shadow-[0_0_0_1px_rgba(32,230,192,0.08),0_18px_45px_rgba(0,0,0,0.28)] sm:p-5">
|
| 375 |
+
<div class="flex items-start gap-3">
|
| 376 |
+
<div class="mt-1 flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl ${statusIconTone}">
|
| 377 |
+
<i class="fa-solid ${statusIconName}"></i>
|
| 378 |
+
</div>
|
| 379 |
+
<div class="min-w-0 flex-1">
|
| 380 |
+
<div class="flex flex-wrap items-start justify-between gap-3">
|
| 381 |
<div class="min-w-0">
|
| 382 |
+
<h3 class="break-words text-base font-semibold leading-6 text-white">${escapeHtml(torrent.name)}</h3>
|
| 383 |
+
<div class="mt-2 flex flex-wrap items-center gap-2">
|
|
|
|
|
|
|
|
|
|
| 384 |
<span class="inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[11px] uppercase tracking-[0.22em] ${tone.pill}">
|
| 385 |
<span class="h-2 w-2 rounded-full ${tone.dot}"></span>${escapeHtml(tone.label)}
|
| 386 |
</span>
|
| 387 |
+
${endpointMeta}
|
| 388 |
+
${activeSpeed}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
</div>
|
| 390 |
</div>
|
| 391 |
+
<div class="text-right">
|
| 392 |
+
<div class="font-mono text-sm text-stone-300">${escapeHtml(torrent.total_size)}</div>
|
| 393 |
+
<div class="mt-1 text-xs text-stone-500">${escapeHtml(torrent.eta)}</div>
|
| 394 |
+
</div>
|
| 395 |
</div>
|
| 396 |
+
${statusMessage}
|
| 397 |
</div>
|
| 398 |
+
</div>
|
| 399 |
+
|
| 400 |
+
<div class="mt-4">
|
| 401 |
+
<div class="mb-2 flex items-center justify-between text-[11px] uppercase tracking-[0.22em] text-stone-500">
|
| 402 |
+
<span>${escapeHtml(torrent.progress_label || "Progress")}</span>
|
| 403 |
+
<span class="font-mono text-stone-300">${progress}%</span>
|
| 404 |
</div>
|
| 405 |
+
<div class="h-2 rounded-full bg-white/8">
|
| 406 |
+
<div class="${progressClass}" style="width:${progress}%"></div>
|
|
|
|
| 407 |
</div>
|
|
|
|
|
|
|
|
|
|
| 408 |
</div>
|
| 409 |
|
| 410 |
+
<div class="mt-4 grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-6">
|
| 411 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 412 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Done</div>
|
| 413 |
+
<div class="mt-2 text-sm text-white">${escapeHtml(torrent.downloaded)}</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
</div>
|
| 415 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 416 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Uploaded</div>
|
| 417 |
+
<div class="mt-2 text-sm text-white">${escapeHtml(torrent.uploaded || "-")}</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 418 |
</div>
|
| 419 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 420 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Down</div>
|
| 421 |
+
<div class="mt-2 font-mono text-sm text-neon">${downRate}</div>
|
| 422 |
+
</div>
|
| 423 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 424 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Up</div>
|
| 425 |
+
<div class="mt-2 font-mono text-sm text-lime">${upRate}</div>
|
| 426 |
+
</div>
|
| 427 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 428 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Seeds</div>
|
| 429 |
+
<div class="mt-2 text-sm text-white">${escapeHtml(torrent.num_seeds)}</div>
|
| 430 |
+
</div>
|
| 431 |
+
<div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
|
| 432 |
+
<div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Ratio</div>
|
| 433 |
+
<div class="mt-2 text-sm text-white">${escapeHtml(torrent.ratio || "-")}</div>
|
|
|
|
|
|
|
| 434 |
</div>
|
|
|
|
| 435 |
</div>
|
| 436 |
+
|
| 437 |
+
<div class="mt-4 flex flex-wrap gap-2">${actionButtons(torrent)}</div>
|
| 438 |
${renderUploadBlock(torrent)}
|
| 439 |
</article>
|
| 440 |
`;
|
|
|
|
| 461 |
function updateSummary(stats, torrents) {
|
| 462 |
const counts = getTorrentCounts(torrents);
|
| 463 |
elements.summaryTotal.textContent = String(stats.torrent_count ?? counts.total);
|
| 464 |
+
elements.summaryLeech.textContent = String(stats.total_leechs ?? counts.leech);
|
| 465 |
+
elements.summarySeeding.textContent = String(stats.total_seeds ?? counts.seeding);
|
| 466 |
elements.summaryPaused.textContent = String(counts.paused);
|
| 467 |
+
elements.summaryAllTimeDownload.textContent = String(stats.all_time_download ?? "0 B");
|
| 468 |
+
elements.summaryAllTimeUpload.textContent = String(stats.all_time_upload ?? "0 B");
|
| 469 |
elements.torrentCount.textContent = `${filteredTorrents().length} item`;
|
| 470 |
}
|
| 471 |
|
templates/index.html
CHANGED
|
@@ -49,166 +49,145 @@
|
|
| 49 |
|
| 50 |
<div id="toast-container" class="pointer-events-none fixed right-4 top-4 z-[80] flex w-[min(92vw,24rem)] flex-col gap-3"></div>
|
| 51 |
|
| 52 |
-
<main class="relative mx-auto w-full max-w-[
|
| 53 |
-
<section class="
|
| 54 |
-
<
|
| 55 |
-
<
|
| 56 |
-
<div class="flex flex-
|
| 57 |
-
<div class="flex
|
| 58 |
-
<div class="flex items-center
|
| 59 |
-
<
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
<div>
|
| 63 |
-
<
|
| 64 |
-
|
| 65 |
-
<span
|
| 66 |
-
|
| 67 |
-
</span>
|
| 68 |
-
</div>
|
| 69 |
-
<p class="mt-1 text-sm text-stone-400">Refactor dashboard torrent dengan dark neon control surface.</p>
|
| 70 |
</div>
|
|
|
|
| 71 |
</div>
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
</div>
|
| 83 |
</div>
|
| 84 |
</div>
|
| 85 |
-
<button id="open-add-modal" type="button" class="inline-flex items-center gap-2 rounded-2xl border border-neon/30 bg-neon/12 px-4 py-3 text-sm font-semibold text-neon transition hover:bg-neon/20">
|
| 86 |
-
<i class="fa-solid fa-plus"></i>
|
| 87 |
-
Add
|
| 88 |
-
</button>
|
| 89 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
</div>
|
| 91 |
-
|
| 92 |
-
<label class="relative block">
|
| 93 |
-
<i class="fa-solid fa-magnifying-glass pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-sm text-stone-500"></i>
|
| 94 |
-
<input id="search-input" type="search" placeholder="Search torrents..." class="w-full rounded-2xl border border-white/10 bg-black/25 py-3 pl-11 pr-4 text-sm text-white outline-none transition placeholder:text-stone-500 focus:border-neon/40 focus:bg-black/35" />
|
| 95 |
-
</label>
|
| 96 |
</div>
|
| 97 |
-
</header>
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
<
|
| 102 |
-
|
| 103 |
-
</div>
|
| 104 |
-
{% endfor %}
|
| 105 |
</div>
|
|
|
|
| 106 |
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
<
|
| 119 |
-
|
| 120 |
-
<div class="flex items-center justify-
|
| 121 |
-
<
|
| 122 |
-
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Downloading</p>
|
| 123 |
-
<p id="summary-downloading" class="mt-2 text-3xl font-bold text-neon">{{ stats.downloading }}</p>
|
| 124 |
-
</div>
|
| 125 |
-
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-neon/10 text-neon">
|
| 126 |
-
<i class="fa-solid fa-arrow-down"></i>
|
| 127 |
-
</div>
|
| 128 |
-
</div>
|
| 129 |
-
</article>
|
| 130 |
-
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 131 |
-
<div class="flex items-center justify-between">
|
| 132 |
-
<div>
|
| 133 |
-
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Seeding</p>
|
| 134 |
-
<p id="summary-seeding" class="mt-2 text-3xl font-bold text-lime">{{ torrents|selectattr("state_label", "equalto", "Seeding")|list|length }}</p>
|
| 135 |
-
</div>
|
| 136 |
-
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-lime/10 text-lime">
|
| 137 |
-
<i class="fa-solid fa-arrow-up"></i>
|
| 138 |
-
</div>
|
| 139 |
-
</div>
|
| 140 |
-
</article>
|
| 141 |
-
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 142 |
-
<div class="flex items-center justify-between">
|
| 143 |
-
<div>
|
| 144 |
-
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Paused</p>
|
| 145 |
-
<p id="summary-paused" class="mt-2 text-3xl font-bold text-stone-300">{{ torrents|selectattr("state_label", "equalto", "Paused")|list|length }}</p>
|
| 146 |
-
</div>
|
| 147 |
-
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
| 148 |
-
<i class="fa-solid fa-pause"></i>
|
| 149 |
-
</div>
|
| 150 |
</div>
|
| 151 |
-
</
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
<
|
| 159 |
-
<i class="fa-solid fa-cloud-arrow-up"></i>
|
| 160 |
-
</div>
|
| 161 |
</div>
|
| 162 |
-
</
|
| 163 |
-
</
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
<div class="
|
| 167 |
-
<
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
<span id="torrent-count" class="rounded-full border border-white/10 bg-white/[0.04] px-3 py-1 font-mono text-[11px] uppercase tracking-[0.25em] text-stone-400">
|
| 171 |
-
{{ stats.torrent_count }} item
|
| 172 |
-
</span>
|
| 173 |
-
</div>
|
| 174 |
-
<p class="mt-1 text-sm text-stone-500">Monitor progress, action control, dan remote upload dari satu status board.</p>
|
| 175 |
</div>
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
<
|
| 184 |
</div>
|
| 185 |
</div>
|
|
|
|
|
|
|
| 186 |
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
|
|
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
</div>
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
|
|
|
|
|
|
| 210 |
|
| 211 |
-
<
|
| 212 |
<section class="rounded-[30px] border border-white/10 bg-[linear-gradient(180deg,rgba(15,18,28,0.94),rgba(9,11,18,0.92))] p-5 shadow-halo backdrop-blur-xl">
|
| 213 |
<div class="flex items-center justify-between gap-3">
|
| 214 |
<div>
|
|
@@ -234,7 +213,7 @@
|
|
| 234 |
</button>
|
| 235 |
</div>
|
| 236 |
|
| 237 |
-
<div class="mt-5 grid gap-3 sm:grid-cols-2
|
| 238 |
<article class="rounded-2xl border border-white/10 bg-black/20 px-4 py-4">
|
| 239 |
<p class="text-[11px] uppercase tracking-[0.22em] text-stone-500">OS</p>
|
| 240 |
<p id="system-os" class="mt-2 text-sm leading-6 text-white">{{ system_info.os }}</p>
|
|
@@ -292,7 +271,7 @@
|
|
| 292 |
</div>
|
| 293 |
</div>
|
| 294 |
</section>
|
| 295 |
-
</
|
| 296 |
</section>
|
| 297 |
</main>
|
| 298 |
|
|
|
|
| 49 |
|
| 50 |
<div id="toast-container" class="pointer-events-none fixed right-4 top-4 z-[80] flex w-[min(92vw,24rem)] flex-col gap-3"></div>
|
| 51 |
|
| 52 |
+
<main class="relative mx-auto w-full max-w-[1100px] px-4 py-5 sm:px-6 lg:px-8">
|
| 53 |
+
<section class="space-y-5">
|
| 54 |
+
<header class="rounded-[30px] border border-white/10 bg-[linear-gradient(180deg,rgba(15,18,28,0.94),rgba(9,11,18,0.92))] p-4 shadow-halo backdrop-blur-xl sm:p-5">
|
| 55 |
+
<div class="flex flex-col gap-4">
|
| 56 |
+
<div class="flex flex-wrap items-center justify-between gap-3">
|
| 57 |
+
<div class="flex items-center gap-4">
|
| 58 |
+
<div class="flex h-12 w-12 items-center justify-center rounded-2xl bg-gradient-to-br from-neon/95 to-emerald-300/80 text-lg text-ink shadow-neon">
|
| 59 |
+
<i class="fa-solid fa-download"></i>
|
| 60 |
+
</div>
|
| 61 |
+
<div>
|
| 62 |
+
<div class="flex flex-wrap items-center gap-3">
|
| 63 |
+
<h1 class="text-lg font-bold tracking-tight text-white sm:text-xl">qbit neon panel</h1>
|
| 64 |
+
<span class="rounded-full border border-white/10 bg-white/[0.04] px-3 py-1 font-mono text-[11px] uppercase tracking-[0.22em] text-stone-400">
|
| 65 |
+
v<span id="version-value">{{ stats.version }}</span>
|
| 66 |
+
</span>
|
|
|
|
|
|
|
|
|
|
| 67 |
</div>
|
| 68 |
+
<p class="mt-1 text-sm text-stone-400">Monitor torrent, upload eksternal, dan telemetry dalam layout mobile-first.</p>
|
| 69 |
</div>
|
| 70 |
+
</div>
|
| 71 |
|
| 72 |
+
<div class="flex items-center gap-3">
|
| 73 |
+
<div class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-3">
|
| 74 |
+
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
| 75 |
+
<i class="fa-solid fa-wave-square"></i>
|
| 76 |
+
</div>
|
| 77 |
+
<div>
|
| 78 |
+
<div class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Connection</div>
|
| 79 |
+
<div id="connection-status" class="text-sm font-semibold {% if stats.connected %}text-emerald-300{% else %}text-rose-300{% endif %}">
|
| 80 |
+
{% if stats.connected %}Online{% else %}Offline{% endif %}
|
|
|
|
| 81 |
</div>
|
| 82 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</div>
|
| 84 |
+
<button id="open-add-modal" type="button" class="inline-flex items-center gap-2 rounded-2xl border border-neon/30 bg-neon/12 px-4 py-3 text-sm font-semibold text-neon transition hover:bg-neon/20">
|
| 85 |
+
<i class="fa-solid fa-plus"></i>
|
| 86 |
+
Add
|
| 87 |
+
</button>
|
| 88 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
</div>
|
|
|
|
| 90 |
|
| 91 |
+
<label class="relative block">
|
| 92 |
+
<i class="fa-solid fa-magnifying-glass pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-sm text-stone-500"></i>
|
| 93 |
+
<input id="search-input" type="search" placeholder="Search torrents..." class="w-full rounded-2xl border border-white/10 bg-black/25 py-3 pl-11 pr-4 text-sm text-white outline-none transition placeholder:text-stone-500 focus:border-neon/40 focus:bg-black/35" />
|
| 94 |
+
</label>
|
|
|
|
|
|
|
| 95 |
</div>
|
| 96 |
+
</header>
|
| 97 |
|
| 98 |
+
<div id="event-list" class="space-y-3">
|
| 99 |
+
{% for event in events %}
|
| 100 |
+
<div class="rounded-2xl border px-4 py-3 text-sm {% if event.level == 'error' %}border-rose-500/30 bg-rose-500/10 text-rose-100{% elif event.level == 'warning' %}border-amber-500/30 bg-amber-500/10 text-amber-100{% else %}border-emerald-500/30 bg-emerald-500/10 text-emerald-100{% endif %}">
|
| 101 |
+
{{ event.message }}
|
| 102 |
+
</div>
|
| 103 |
+
{% endfor %}
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<section class="grid gap-3 sm:grid-cols-2 lg:grid-cols-4">
|
| 107 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 108 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Total</p>
|
| 109 |
+
<div class="mt-3 flex items-center justify-between">
|
| 110 |
+
<p id="summary-total" class="text-3xl font-bold text-white">{{ stats.torrent_count }}</p>
|
| 111 |
+
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
| 112 |
+
<i class="fa-solid fa-hard-drive"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</article>
|
| 116 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 117 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Leech</p>
|
| 118 |
+
<div class="mt-3 flex items-center justify-between">
|
| 119 |
+
<p id="summary-leech" class="text-3xl font-bold text-neon">{{ stats.total_leechs or 0 }}</p>
|
| 120 |
+
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-neon/10 text-neon">
|
| 121 |
+
<i class="fa-solid fa-arrow-down"></i>
|
|
|
|
|
|
|
| 122 |
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</article>
|
| 125 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 126 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Seed</p>
|
| 127 |
+
<div class="mt-3 flex items-center justify-between">
|
| 128 |
+
<p id="summary-seeding" class="text-3xl font-bold text-lime">{{ stats.total_seeds or 0 }}</p>
|
| 129 |
+
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-lime/10 text-lime">
|
| 130 |
+
<i class="fa-solid fa-arrow-up"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</article>
|
| 134 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 135 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Paused</p>
|
| 136 |
+
<div class="mt-3 flex items-center justify-between">
|
| 137 |
+
<p id="summary-paused" class="text-3xl font-bold text-stone-300">{{ torrents|selectattr("state_label", "equalto", "Paused")|list|length }}</p>
|
| 138 |
+
<div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
| 139 |
+
<i class="fa-solid fa-pause"></i>
|
| 140 |
</div>
|
| 141 |
</div>
|
| 142 |
+
</article>
|
| 143 |
+
</section>
|
| 144 |
|
| 145 |
+
<section class="grid gap-3 sm:grid-cols-2">
|
| 146 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 147 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Down</p>
|
| 148 |
+
<p id="summary-all-time-download" class="mt-3 text-3xl font-bold text-neon">{{ stats.all_time_download or '0 B' }}</p>
|
| 149 |
+
</article>
|
| 150 |
+
<article class="rounded-[26px] border border-white/10 bg-[linear-gradient(180deg,rgba(16,18,28,0.95),rgba(9,11,18,0.92))] px-5 py-4 shadow-halo">
|
| 151 |
+
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Up</p>
|
| 152 |
+
<p id="summary-all-time-upload" class="mt-3 text-3xl font-bold text-lime">{{ stats.all_time_upload or '0 B' }}</p>
|
| 153 |
+
</article>
|
| 154 |
+
</section>
|
| 155 |
|
| 156 |
+
<section class="rounded-[30px] border border-white/10 bg-[linear-gradient(180deg,rgba(15,18,28,0.94),rgba(9,11,18,0.92))] px-4 py-5 shadow-halo backdrop-blur-xl sm:px-5">
|
| 157 |
+
<div class="text-center">
|
| 158 |
+
<h2 class="text-lg font-semibold text-white sm:text-xl">Torrent Status</h2>
|
| 159 |
+
<p class="mt-1 text-sm text-stone-500">Pilih status lalu telusuri torrent sebagai card terpisah.</p>
|
| 160 |
+
</div>
|
| 161 |
+
<div id="filter-tabs" class="mt-4 flex justify-start gap-2 overflow-x-auto pb-1 sm:justify-center [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
|
| 162 |
+
<button type="button" class="filter-chip rounded-2xl border border-neon/30 bg-neon/12 px-4 py-2 text-sm font-medium text-neon transition hover:bg-neon/20" data-filter="all" data-active="true">All</button>
|
| 163 |
+
<button type="button" class="filter-chip rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-2 text-sm font-medium text-stone-300 transition hover:border-white/20 hover:text-white" data-filter="downloading" data-active="false">Downloading</button>
|
| 164 |
+
<button type="button" class="filter-chip rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-2 text-sm font-medium text-stone-300 transition hover:border-white/20 hover:text-white" data-filter="seeding" data-active="false">Seeding</button>
|
| 165 |
+
<button type="button" class="filter-chip rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-2 text-sm font-medium text-stone-300 transition hover:border-white/20 hover:text-white" data-filter="paused" data-active="false">Paused</button>
|
| 166 |
+
<button type="button" class="filter-chip rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-2 text-sm font-medium text-stone-300 transition hover:border-white/20 hover:text-white" data-filter="completed" data-active="false">Completed</button>
|
| 167 |
+
<button type="button" class="filter-chip rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-2 text-sm font-medium text-stone-300 transition hover:border-white/20 hover:text-white" data-filter="uploading" data-active="false">Uploading</button>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="mt-4 flex justify-center">
|
| 170 |
+
<span id="torrent-count" class="rounded-full border border-white/10 bg-white/[0.04] px-3 py-1 font-mono text-[11px] uppercase tracking-[0.25em] text-stone-400">
|
| 171 |
+
{{ stats.torrent_count }} item
|
| 172 |
+
</span>
|
| 173 |
+
</div>
|
| 174 |
+
</section>
|
| 175 |
+
|
| 176 |
+
<section>
|
| 177 |
+
<div id="torrent-list" class="space-y-4">
|
| 178 |
+
{% if not torrents %}
|
| 179 |
+
<div class="rounded-[26px] border border-dashed border-white/10 bg-black/20 px-6 py-14 text-center">
|
| 180 |
+
<div class="mx-auto flex h-16 w-16 items-center justify-center rounded-3xl bg-white/[0.04] text-2xl text-neon">
|
| 181 |
+
<i class="fa-solid fa-wave-square"></i>
|
| 182 |
</div>
|
| 183 |
+
<h3 class="mt-5 text-lg font-semibold text-white">Belum ada torrent aktif</h3>
|
| 184 |
+
<p class="mx-auto mt-2 max-w-md text-sm text-stone-500">Gunakan tombol Add untuk menambahkan magnet link atau file torrent, lalu queue akan muncul di sini.</p>
|
| 185 |
+
</div>
|
| 186 |
+
{% endif %}
|
| 187 |
+
</div>
|
| 188 |
+
</section>
|
| 189 |
|
| 190 |
+
<section class="grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
| 191 |
<section class="rounded-[30px] border border-white/10 bg-[linear-gradient(180deg,rgba(15,18,28,0.94),rgba(9,11,18,0.92))] p-5 shadow-halo backdrop-blur-xl">
|
| 192 |
<div class="flex items-center justify-between gap-3">
|
| 193 |
<div>
|
|
|
|
| 213 |
</button>
|
| 214 |
</div>
|
| 215 |
|
| 216 |
+
<div class="mt-5 grid gap-3 sm:grid-cols-2">
|
| 217 |
<article class="rounded-2xl border border-white/10 bg-black/20 px-4 py-4">
|
| 218 |
<p class="text-[11px] uppercase tracking-[0.22em] text-stone-500">OS</p>
|
| 219 |
<p id="system-os" class="mt-2 text-sm leading-6 text-white">{{ system_info.os }}</p>
|
|
|
|
| 271 |
</div>
|
| 272 |
</div>
|
| 273 |
</section>
|
| 274 |
+
</section>
|
| 275 |
</section>
|
| 276 |
</main>
|
| 277 |
|