nexus33rd commited on
Commit
ea4fab5
·
verified ·
1 Parent(s): 8c69ca5

Upload 20 files

Browse files
Files changed (3) hide show
  1. app.py +28 -22
  2. static/app.js +77 -102
  3. 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
- "dlspeed": format_speed(torrent_dlspeed),
450
- "upspeed": format_speed(torrent_upspeed),
451
- "display_speed": display_speed,
452
- "display_speed_label": display_speed_label,
453
- "display_speed_meta": display_speed_meta,
 
 
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
- summaryDownloading: document.getElementById("summary-downloading"),
26
  summarySeeding: document.getElementById("summary-seeding"),
27
  summaryPaused: document.getElementById("summary-paused"),
28
- summaryUploading: document.getElementById("summary-uploading"),
 
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
- downloading: 0,
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
- if (torrent.gofile_uploading) {
147
- counts.uploading += 1;
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 primaryRate = escapeHtml(torrent.display_speed || "-");
355
- const downRate = torrent.display_speed_label === "Download" ? primaryRate : (normalizeStateLabel(torrent.state_label).includes("download") ? primaryRate : "-");
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.92),rgba(10,12,19,0.9))] 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)]">
369
- <div class="hidden items-center gap-4 lg:grid lg:grid-cols-[minmax(0,3fr)_90px_120px_130px_90px_90px_140px]">
370
- <div class="min-w-0">
371
- <div class="flex items-start gap-3">
372
- <div class="mt-1 flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl ${normalizeStateLabel(torrent.state_label).includes("seed") ? "bg-lime/10 text-lime" : normalizeStateLabel(torrent.state_label).includes("download") ? "bg-neon/10 text-neon" : torrent.gofile_uploading ? "bg-violet/10 text-violet" : "bg-white/[0.04] text-stone-300"}">
373
- <i class="fa-solid ${normalizeStateLabel(torrent.state_label).includes("seed") ? "fa-arrow-up" : normalizeStateLabel(torrent.state_label).includes("download") ? "fa-arrow-down" : torrent.gofile_uploading ? "fa-cloud-arrow-up" : "fa-circle"}"></i>
374
- </div>
375
  <div class="min-w-0">
376
- <div class="flex flex-wrap items-center gap-2">
377
- <h3 class="truncate text-sm font-semibold text-white xl:text-base">${escapeHtml(torrent.name)}</h3>
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
- <span class="text-xs text-stone-500">${escapeHtml(torrent.downloaded)} / ${escapeHtml(torrent.total_size)}</span>
385
- ${speedMeta}
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
- <div class="font-mono text-xs text-stone-300">${escapeHtml(torrent.total_size)}</div>
401
- <div>
402
- <div class="font-mono text-sm text-white">${progress}%</div>
403
- <div class="text-[11px] text-stone-500">${escapeHtml(torrent.eta)}</div>
 
 
404
  </div>
405
- <div>
406
- <div class="text-sm ${tone.text}">${escapeHtml(torrent.state_label || tone.label)}</div>
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:hidden">
415
- <div class="flex items-start gap-3">
416
- <div class="mt-1 flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl ${normalizeStateLabel(torrent.state_label).includes("seed") ? "bg-lime/10 text-lime" : normalizeStateLabel(torrent.state_label).includes("download") ? "bg-neon/10 text-neon" : torrent.gofile_uploading ? "bg-violet/10 text-violet" : "bg-white/[0.04] text-stone-300"}">
417
- <i class="fa-solid ${normalizeStateLabel(torrent.state_label).includes("seed") ? "fa-arrow-up" : normalizeStateLabel(torrent.state_label).includes("download") ? "fa-arrow-down" : torrent.gofile_uploading ? "fa-cloud-arrow-up" : "fa-circle"}"></i>
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
- ${statusMessage}
435
- <div class="mt-4">
436
- <div class="mb-2 flex items-center justify-between text-[11px] uppercase tracking-[0.22em] text-stone-500">
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="mt-4 grid grid-cols-2 gap-3">
445
- <div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
446
- <div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Down</div>
447
- <div class="mt-2 font-mono text-sm text-neon">${downRate}</div>
448
- </div>
449
- <div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
450
- <div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Up</div>
451
- <div class="mt-2 font-mono text-sm text-lime">${upRate}</div>
452
- </div>
453
- <div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
454
- <div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Seeds</div>
455
- <div class="mt-2 text-sm text-white">${escapeHtml(torrent.num_seeds)}</div>
456
- </div>
457
- <div class="rounded-2xl border border-white/10 bg-black/20 px-3 py-3">
458
- <div class="text-[11px] uppercase tracking-[0.22em] text-stone-500">Peers</div>
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.summaryDownloading.textContent = String(stats.downloading ?? counts.downloading);
491
- elements.summarySeeding.textContent = String(counts.seeding);
492
  elements.summaryPaused.textContent = String(counts.paused);
493
- elements.summaryUploading.textContent = String(counts.uploading);
 
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-[1480px] px-4 py-5 sm:px-6 lg:px-8">
53
- <section class="grid gap-5 xl:grid-cols-[minmax(0,1.7fr)_380px]">
54
- <div class="space-y-5">
55
- <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">
56
- <div class="flex flex-col gap-4">
57
- <div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
58
- <div class="flex items-center gap-4">
59
- <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">
60
- <i class="fa-solid fa-download"></i>
61
- </div>
62
- <div>
63
- <div class="flex flex-wrap items-center gap-3">
64
- <h1 class="text-lg font-bold tracking-tight text-white sm:text-xl">qbit neon panel</h1>
65
- <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">
66
- v<span id="version-value">{{ stats.version }}</span>
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
- <div class="flex items-center gap-3 self-start lg:self-auto">
74
- <div class="flex items-center gap-3 rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-3">
75
- <div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
76
- <i class="fa-solid fa-wave-square"></i>
77
- </div>
78
- <div>
79
- <div class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Connection</div>
80
- <div id="connection-status" class="text-sm font-semibold {% if stats.connected %}text-emerald-300{% else %}text-rose-300{% endif %}">
81
- {% if stats.connected %}Online{% else %}Offline{% endif %}
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
- <div id="event-list" class="space-y-3">
100
- {% for event in events %}
101
- <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 %}">
102
- {{ event.message }}
103
- </div>
104
- {% endfor %}
105
  </div>
 
106
 
107
- <section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-5">
108
- <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">
109
- <div class="flex items-center justify-between">
110
- <div>
111
- <p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Total</p>
112
- <p id="summary-total" class="mt-2 text-3xl font-bold text-white">{{ stats.torrent_count }}</p>
113
- </div>
114
- <div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-200">
115
- <i class="fa-solid fa-square"></i>
116
- </div>
117
- </div>
118
- </article>
119
- <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">
120
- <div class="flex items-center justify-between">
121
- <div>
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
- </article>
152
- <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 sm:col-span-2 xl:col-span-1">
153
- <div class="flex items-center justify-between">
154
- <div>
155
- <p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Remote Upload</p>
156
- <p id="summary-uploading" class="mt-2 text-3xl font-bold text-violet">{{ torrents|selectattr("gofile_uploading")|list|length }}</p>
157
- </div>
158
- <div class="flex h-11 w-11 items-center justify-center rounded-2xl bg-violet/10 text-violet">
159
- <i class="fa-solid fa-cloud-arrow-up"></i>
160
- </div>
161
  </div>
162
- </article>
163
- </section>
164
-
165
- <section class="rounded-[30px] border border-white/10 bg-[linear-gradient(180deg,rgba(15,18,28,0.94),rgba(9,11,18,0.92))] shadow-halo backdrop-blur-xl">
166
- <div class="flex flex-col gap-4 border-b border-white/5 px-4 py-4 sm:px-5 lg:flex-row lg:items-center lg:justify-between">
167
- <div>
168
- <div class="flex items-center gap-3">
169
- <h2 class="text-lg font-semibold text-white sm:text-xl">Torrent Queue</h2>
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
- <div id="filter-tabs" class="flex gap-2 overflow-x-auto pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
178
- <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>
179
- <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>
180
- <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>
181
- <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>
182
- <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>
183
- <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>
184
  </div>
185
  </div>
 
 
186
 
187
- <div class="hidden grid-cols-[minmax(0,3fr)_90px_120px_130px_90px_90px_140px] gap-4 border-b border-white/5 px-5 py-3 text-[11px] uppercase tracking-[0.25em] text-stone-500 lg:grid">
188
- <div>Name</div>
189
- <div>Size</div>
190
- <div>Progress</div>
191
- <div>Status</div>
192
- <div>Down</div>
193
- <div>Up</div>
194
- <div>Actions</div>
195
- </div>
 
196
 
197
- <div id="torrent-list" class="space-y-3 p-3 sm:p-4">
198
- {% if not torrents %}
199
- <div class="rounded-[26px] border border-dashed border-white/10 bg-black/20 px-6 py-14 text-center">
200
- <div class="mx-auto flex h-16 w-16 items-center justify-center rounded-3xl bg-white/[0.04] text-2xl text-neon">
201
- <i class="fa-solid fa-wave-square"></i>
202
- </div>
203
- <h3 class="mt-5 text-lg font-semibold text-white">Belum ada torrent aktif</h3>
204
- <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  </div>
206
- {% endif %}
207
- </div>
208
- </section>
209
- </div>
 
 
210
 
211
- <aside class="space-y-5">
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 xl: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
- </aside>
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