Spaces:
Paused
Paused
Upload 20 files
Browse files- static/app.js +1 -1
- templates/index.html +41 -37
static/app.js
CHANGED
|
@@ -496,7 +496,7 @@
|
|
| 496 |
elements.connectionStatus.innerHTML = isConnected
|
| 497 |
? '<span class="h-2 w-2 rounded-full bg-emerald-300"></span>Online'
|
| 498 |
: '<span class="h-2 w-2 rounded-full bg-rose-300"></span>Offline';
|
| 499 |
-
elements.versionValue.textContent = versionText || "-";
|
| 500 |
}
|
| 501 |
|
| 502 |
function updateSystemInfo(system) {
|
|
|
|
| 496 |
elements.connectionStatus.innerHTML = isConnected
|
| 497 |
? '<span class="h-2 w-2 rounded-full bg-emerald-300"></span>Online'
|
| 498 |
: '<span class="h-2 w-2 rounded-full bg-rose-300"></span>Offline';
|
| 499 |
+
elements.versionValue.textContent = String(versionText || "-").replace(/^v/i, "");
|
| 500 |
}
|
| 501 |
|
| 502 |
function updateSystemInfo(system) {
|
templates/index.html
CHANGED
|
@@ -36,42 +36,46 @@
|
|
| 36 |
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap" rel="stylesheet" />
|
| 37 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" />
|
| 38 |
</head>
|
| 39 |
-
<body class="min-h-screen overflow-x-hidden bg-[#
|
| 40 |
<script id="initial-dashboard-data" type="application/json">{{ {"torrents": torrents, "stats": stats, "events": events, "system": system_info}|tojson }}</script>
|
| 41 |
|
| 42 |
<div class="pointer-events-none fixed inset-0">
|
| 43 |
-
<div class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(32,230,192,0.
|
| 44 |
-
<div class="absolute inset-0 opacity-
|
| 45 |
-
<div class="absolute -left-24 top-
|
| 46 |
-
<div class="absolute right-0 top-0 h-[
|
| 47 |
-
<div class="absolute bottom-0 left-1/3 h-80 w-80 rounded-full bg-emerald-400/10 blur-3xl"></div>
|
| 48 |
</div>
|
| 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 |
-
<
|
| 53 |
-
<
|
| 54 |
-
<
|
| 55 |
-
<div class="flex
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
</div>
|
| 62 |
-
|
| 63 |
-
<div class="flex flex-wrap items-center gap-2 sm:gap-3">
|
| 64 |
-
<span id="connection-status" class="inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.04] px-3 py-2 text-sm font-medium {% if stats.connected %}text-emerald-300{% else %}text-rose-300{% endif %}">
|
| 65 |
-
<span class="h-2 w-2 rounded-full {% if stats.connected %}bg-emerald-300{% else %}bg-rose-300{% endif %}"></span>
|
| 66 |
-
{% if stats.connected %}Online{% else %}Offline{% endif %}
|
| 67 |
-
</span>
|
| 68 |
-
<span class="inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.04] px-3 py-2 font-mono text-[11px] uppercase tracking-[0.22em] text-stone-400">
|
| 69 |
-
v<span id="version-value">{{ stats.version }}</span>
|
| 70 |
-
</span>
|
| 71 |
-
</div>
|
| 72 |
</div>
|
| 73 |
-
</
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
<div id="event-list" class="space-y-3">
|
| 76 |
{% for event in events %}
|
| 77 |
<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 %}">
|
|
@@ -81,7 +85,7 @@
|
|
| 81 |
</div>
|
| 82 |
|
| 83 |
<section class="grid grid-cols-2 gap-3 lg:grid-cols-4">
|
| 84 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 85 |
<div class="flex items-center justify-between">
|
| 86 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Total</p>
|
| 87 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
|
@@ -91,7 +95,7 @@
|
|
| 91 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-white/12 to-transparent"></div>
|
| 92 |
<p id="summary-total" class="mt-3 text-2xl font-bold text-white sm:text-3xl">{{ stats.torrent_count }}</p>
|
| 93 |
</article>
|
| 94 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 95 |
<div class="flex items-center justify-between">
|
| 96 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Leech</p>
|
| 97 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-neon/10 text-neon">
|
|
@@ -101,7 +105,7 @@
|
|
| 101 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-neon/30 to-transparent"></div>
|
| 102 |
<p id="summary-leech" class="mt-3 text-2xl font-bold text-neon sm:text-3xl">{{ stats.total_leechs or 0 }}</p>
|
| 103 |
</article>
|
| 104 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 105 |
<div class="flex items-center justify-between">
|
| 106 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Seed</p>
|
| 107 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-lime/10 text-lime">
|
|
@@ -111,7 +115,7 @@
|
|
| 111 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-lime/30 to-transparent"></div>
|
| 112 |
<p id="summary-seeding" class="mt-3 text-2xl font-bold text-lime sm:text-3xl">{{ stats.total_seeds or 0 }}</p>
|
| 113 |
</article>
|
| 114 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 115 |
<div class="flex items-center justify-between">
|
| 116 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Paused</p>
|
| 117 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
|
@@ -124,17 +128,17 @@
|
|
| 124 |
</section>
|
| 125 |
|
| 126 |
<section class="grid gap-3 sm:grid-cols-2">
|
| 127 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 128 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Down</p>
|
| 129 |
<p id="summary-all-time-download" class="mt-3 text-3xl font-bold text-neon">{{ stats.all_time_download or '0 B' }}</p>
|
| 130 |
</article>
|
| 131 |
-
<article class="rounded-[26px] border border-white/10 bg-[
|
| 132 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Up</p>
|
| 133 |
<p id="summary-all-time-upload" class="mt-3 text-3xl font-bold text-lime">{{ stats.all_time_upload or '0 B' }}</p>
|
| 134 |
</article>
|
| 135 |
</section>
|
| 136 |
|
| 137 |
-
<section class="rounded-[30px] border border-white/10 bg-[
|
| 138 |
<div id="filter-tabs" class="flex justify-start gap-2 overflow-x-auto pb-1 sm:justify-center [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
|
| 139 |
<button id="open-add-modal" type="button" class="shrink-0 inline-flex items-center gap-2 rounded-2xl border border-neon/30 bg-neon/12 px-4 py-2 text-sm font-semibold text-neon transition hover:bg-neon/20">
|
| 140 |
<i class="fa-solid fa-plus"></i>
|
|
@@ -151,7 +155,7 @@
|
|
| 151 |
|
| 152 |
<label class="relative block">
|
| 153 |
<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>
|
| 154 |
-
<input id="search-input" type="search" placeholder="Search torrents..." class="w-full rounded-2xl border border-white/10 bg-[
|
| 155 |
</label>
|
| 156 |
|
| 157 |
<section>
|
|
@@ -169,7 +173,7 @@
|
|
| 169 |
</section>
|
| 170 |
|
| 171 |
<section class="grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
| 172 |
-
<section class="rounded-[30px] border border-white/10 bg-[
|
| 173 |
<div class="flex items-center justify-between gap-3">
|
| 174 |
<div>
|
| 175 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Save Path</p>
|
|
@@ -182,7 +186,7 @@
|
|
| 182 |
<p id="save-path" class="mt-4 break-all rounded-2xl border border-white/10 bg-black/20 px-4 py-4 font-mono text-xs text-stone-300">{{ stats.download_path }}</p>
|
| 183 |
</section>
|
| 184 |
|
| 185 |
-
<section class="rounded-[30px] border border-white/10 bg-[
|
| 186 |
<div class="flex items-center justify-between gap-3">
|
| 187 |
<div>
|
| 188 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Server Telemetry</p>
|
|
|
|
| 36 |
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap" rel="stylesheet" />
|
| 37 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" />
|
| 38 |
</head>
|
| 39 |
+
<body class="min-h-screen overflow-x-hidden bg-[#090c12] font-sans text-stone-100 [color-scheme:dark]">
|
| 40 |
<script id="initial-dashboard-data" type="application/json">{{ {"torrents": torrents, "stats": stats, "events": events, "system": system_info}|tojson }}</script>
|
| 41 |
|
| 42 |
<div class="pointer-events-none fixed inset-0">
|
| 43 |
+
<div class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(32,230,192,0.08),transparent_24%),radial-gradient(circle_at_top_right,rgba(90,110,160,0.10),transparent_28%),linear-gradient(180deg,#090c12_0%,#0a0e16_48%,#090c12_100%)]"></div>
|
| 44 |
+
<div class="absolute inset-0 opacity-20 [background-image:linear-gradient(rgba(255,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.02)_1px,transparent_1px)] [background-size:72px_72px] [mask-image:radial-gradient(circle_at_center,black_42%,transparent_100%)]"></div>
|
| 45 |
+
<div class="absolute -left-24 top-8 h-80 w-80 rounded-full bg-cyan-400/6 blur-3xl"></div>
|
| 46 |
+
<div class="absolute right-0 top-0 h-[24rem] w-[24rem] rounded-full bg-slate-400/8 blur-3xl"></div>
|
|
|
|
| 47 |
</div>
|
| 48 |
|
| 49 |
<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>
|
| 50 |
|
| 51 |
+
<header class="relative w-full border-b border-white/8 bg-[#0b0f17]/95 backdrop-blur-xl">
|
| 52 |
+
<div class="mx-auto flex w-full max-w-[1380px] items-center justify-between gap-4 px-4 py-4 sm:px-6 lg:px-8">
|
| 53 |
+
<div class="flex items-center gap-4">
|
| 54 |
+
<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 font-bold text-ink shadow-neon">
|
| 55 |
+
Q
|
| 56 |
+
</div>
|
| 57 |
+
<div class="min-w-0">
|
| 58 |
+
<h1 class="truncate text-lg font-bold tracking-tight text-white sm:text-xl">qbit neon panel</h1>
|
| 59 |
+
<p class="text-sm text-stone-500">Torrent board</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
</div>
|
| 61 |
+
</div>
|
| 62 |
|
| 63 |
+
<div class="flex flex-wrap items-center justify-end gap-2 sm:gap-3">
|
| 64 |
+
<span id="connection-status" class="inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.04] px-3 py-2 text-sm font-medium {% if stats.connected %}text-emerald-300{% else %}text-rose-300{% endif %}">
|
| 65 |
+
<span class="h-2 w-2 rounded-full {% if stats.connected %}bg-emerald-300{% else %}bg-rose-300{% endif %}"></span>
|
| 66 |
+
{% if stats.connected %}Online{% else %}Offline{% endif %}
|
| 67 |
+
</span>
|
| 68 |
+
<span class="inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.04] px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em] text-stone-300">
|
| 69 |
+
<span class="flex h-5 w-5 items-center justify-center rounded-full bg-neon/12 font-sans text-[10px] font-bold text-neon">Q</span>
|
| 70 |
+
<span class="text-stone-500">qbit</span>
|
| 71 |
+
<span id="version-value">{{ stats.version }}</span>
|
| 72 |
+
</span>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
</header>
|
| 76 |
+
|
| 77 |
+
<main class="relative mx-auto w-full max-w-[1380px] px-4 py-5 sm:px-6 lg:px-8">
|
| 78 |
+
<section class="space-y-5">
|
| 79 |
<div id="event-list" class="space-y-3">
|
| 80 |
{% for event in events %}
|
| 81 |
<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 %}">
|
|
|
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<section class="grid grid-cols-2 gap-3 lg:grid-cols-4">
|
| 88 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-4 py-4 shadow-halo sm:px-5">
|
| 89 |
<div class="flex items-center justify-between">
|
| 90 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Total</p>
|
| 91 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
|
|
|
| 95 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-white/12 to-transparent"></div>
|
| 96 |
<p id="summary-total" class="mt-3 text-2xl font-bold text-white sm:text-3xl">{{ stats.torrent_count }}</p>
|
| 97 |
</article>
|
| 98 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-4 py-4 shadow-halo sm:px-5">
|
| 99 |
<div class="flex items-center justify-between">
|
| 100 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Leech</p>
|
| 101 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-neon/10 text-neon">
|
|
|
|
| 105 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-neon/30 to-transparent"></div>
|
| 106 |
<p id="summary-leech" class="mt-3 text-2xl font-bold text-neon sm:text-3xl">{{ stats.total_leechs or 0 }}</p>
|
| 107 |
</article>
|
| 108 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-4 py-4 shadow-halo sm:px-5">
|
| 109 |
<div class="flex items-center justify-between">
|
| 110 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Seed</p>
|
| 111 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-lime/10 text-lime">
|
|
|
|
| 115 |
<div class="mt-3 h-px bg-gradient-to-r from-transparent via-lime/30 to-transparent"></div>
|
| 116 |
<p id="summary-seeding" class="mt-3 text-2xl font-bold text-lime sm:text-3xl">{{ stats.total_seeds or 0 }}</p>
|
| 117 |
</article>
|
| 118 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-4 py-4 shadow-halo sm:px-5">
|
| 119 |
<div class="flex items-center justify-between">
|
| 120 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Paused</p>
|
| 121 |
<div class="flex h-10 w-10 items-center justify-center rounded-2xl bg-white/[0.04] text-stone-300">
|
|
|
|
| 128 |
</section>
|
| 129 |
|
| 130 |
<section class="grid gap-3 sm:grid-cols-2">
|
| 131 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-5 py-4 shadow-halo">
|
| 132 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Down</p>
|
| 133 |
<p id="summary-all-time-download" class="mt-3 text-3xl font-bold text-neon">{{ stats.all_time_download or '0 B' }}</p>
|
| 134 |
</article>
|
| 135 |
+
<article class="rounded-[26px] border border-white/10 bg-[#0d121b]/95 px-5 py-4 shadow-halo">
|
| 136 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">All-Time Up</p>
|
| 137 |
<p id="summary-all-time-upload" class="mt-3 text-3xl font-bold text-lime">{{ stats.all_time_upload or '0 B' }}</p>
|
| 138 |
</article>
|
| 139 |
</section>
|
| 140 |
|
| 141 |
+
<section class="rounded-[30px] border border-white/10 bg-[#0c1119]/95 px-4 py-4 shadow-halo backdrop-blur-xl sm:px-5">
|
| 142 |
<div id="filter-tabs" class="flex justify-start gap-2 overflow-x-auto pb-1 sm:justify-center [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
|
| 143 |
<button id="open-add-modal" type="button" class="shrink-0 inline-flex items-center gap-2 rounded-2xl border border-neon/30 bg-neon/12 px-4 py-2 text-sm font-semibold text-neon transition hover:bg-neon/20">
|
| 144 |
<i class="fa-solid fa-plus"></i>
|
|
|
|
| 155 |
|
| 156 |
<label class="relative block">
|
| 157 |
<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>
|
| 158 |
+
<input id="search-input" type="search" placeholder="Search torrents..." class="w-full rounded-2xl border border-white/10 bg-[#0c1119]/95 py-3 pl-11 pr-4 text-sm text-white outline-none transition placeholder:text-stone-500 focus:border-neon/40 focus:bg-[#0a0f17]" />
|
| 159 |
</label>
|
| 160 |
|
| 161 |
<section>
|
|
|
|
| 173 |
</section>
|
| 174 |
|
| 175 |
<section class="grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
| 176 |
+
<section class="rounded-[30px] border border-white/10 bg-[#0c1119]/95 p-5 shadow-halo backdrop-blur-xl">
|
| 177 |
<div class="flex items-center justify-between gap-3">
|
| 178 |
<div>
|
| 179 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Save Path</p>
|
|
|
|
| 186 |
<p id="save-path" class="mt-4 break-all rounded-2xl border border-white/10 bg-black/20 px-4 py-4 font-mono text-xs text-stone-300">{{ stats.download_path }}</p>
|
| 187 |
</section>
|
| 188 |
|
| 189 |
+
<section class="rounded-[30px] border border-white/10 bg-[#0c1119]/95 p-5 shadow-halo backdrop-blur-xl">
|
| 190 |
<div class="flex items-center justify-between gap-3">
|
| 191 |
<div>
|
| 192 |
<p class="text-[11px] uppercase tracking-[0.25em] text-stone-500">Server Telemetry</p>
|