nexus33rd commited on
Commit
d3c84da
·
verified ·
1 Parent(s): bdb45aa

Upload 20 files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. static/app.js +2 -2
app.py CHANGED
@@ -401,7 +401,7 @@ def effective_state_label(torrent, state_entry: dict | None = None) -> str:
401
  if raw_state in {"uploading", "forcedUP"}:
402
  return "Seeding"
403
  if raw_state == "stalledUP":
404
- return "Stalled"
405
  if raw_state == "pausedUP":
406
  return "Paused"
407
  if raw_state == "queuedUP":
 
401
  if raw_state in {"uploading", "forcedUP"}:
402
  return "Seeding"
403
  if raw_state == "stalledUP":
404
+ return "Seeding"
405
  if raw_state == "pausedUP":
406
  return "Paused"
407
  if raw_state == "queuedUP":
static/app.js CHANGED
@@ -557,7 +557,7 @@
557
  ? "fa-arrow-up"
558
  : "fa-arrow-down";
559
  const activeSpeed = torrent.display_speed && torrent.display_speed !== "-"
560
- ? `<span class="inline-flex items-center gap-2 text-sm font-semibold ${tone.text}"><i class="fa-solid ${speedIcon} text-[11px]"></i><span>${escapeHtml(torrent.display_speed_label || "Speed")}</span><span class="font-mono">${escapeHtml(torrent.display_speed)}</span></span>`
561
  : "";
562
  const statusIconName = torrent.gofile_uploading
563
  ? "fa-cloud-arrow-up"
@@ -601,7 +601,7 @@
601
  <span class="h-2 w-2 shrink-0 rounded-full ${tone.dotClass || ""}" style="${tone.dotStyle || ""}"></span>
602
  <span class="leading-none">${escapeHtml(tone.label)}</span>
603
  </span>
604
- ${activeSpeed ? `<span class="inline-flex min-h-[2.25rem] items-center justify-center rounded-full px-3 py-1.5 text-xs ${tone.pillClass}" style="background-color: rgba(10, 14, 22, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);">${activeSpeed}</span>` : ""}
605
  ${endpointMeta}
606
  </div>
607
  </div>
 
557
  ? "fa-arrow-up"
558
  : "fa-arrow-down";
559
  const activeSpeed = torrent.display_speed && torrent.display_speed !== "-"
560
+ ? `<span class="inline-flex items-center gap-2 whitespace-nowrap text-sm font-semibold ${tone.text}"><i class="fa-solid ${speedIcon} shrink-0 text-[11px]"></i><span class="whitespace-nowrap">${escapeHtml(torrent.display_speed_label || "Speed")}</span><span class="whitespace-nowrap font-mono">${escapeHtml(torrent.display_speed)}</span></span>`
561
  : "";
562
  const statusIconName = torrent.gofile_uploading
563
  ? "fa-cloud-arrow-up"
 
601
  <span class="h-2 w-2 shrink-0 rounded-full ${tone.dotClass || ""}" style="${tone.dotStyle || ""}"></span>
602
  <span class="leading-none">${escapeHtml(tone.label)}</span>
603
  </span>
604
+ ${activeSpeed ? `<span class="inline-flex min-h-[2.25rem] items-center justify-center rounded-full px-3 py-1.5 text-xs ${tone.pillClass} whitespace-nowrap" style="background-color: rgba(10, 14, 22, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);">${activeSpeed}</span>` : ""}
605
  ${endpointMeta}
606
  </div>
607
  </div>