surge refill

This commit is contained in:
Mateusz Gruszczyński
2026-05-31 22:54:19 +02:00
parent 0477754249
commit 63c2a8f3ba
9 changed files with 291 additions and 15 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
export const smartQueueEventsSource = "$('smartRefillMode')?.addEventListener('change',updateSmartRefillControls); $('smartSaveBtn')?.addEventListener('click',saveSmartQueue); $('smartCheckBtn')?.addEventListener('click',async()=>{setBusy(true); try{const j=await post('/api/smart-queue/check',{}); if(j.queued){toastMessage('toast.smartQueueCheckQueued','success'); await loadJobs().catch(()=>{}); await loadSmartQueue(); return;} const r=j.result||{}; if(j.torrent_patch) patchRows(j.torrent_patch); toast(smartQueueToastMessage(r),'success'); await loadSmartQueue();}catch(e){toast(e.message,'danger');}finally{setBusy(false);}}); $('smartManager')?.addEventListener('click',async e=>{const h=e.target.closest('.smart-unexclude')?.dataset.hash; if(!h)return; await post('/api/smart-queue/exclusion',{hash:h,excluded:false}); await loadSmartQueue();}); ";
export const smartQueueEventsSource = "$('smartRefillMode')?.addEventListener('change',updateSmartRefillControls); $('smartSurgeRefillEnabled')?.addEventListener('change',updateSmartRefillControls); $('smartSaveBtn')?.addEventListener('click',saveSmartQueue); $('smartCheckBtn')?.addEventListener('click',async()=>{setBusy(true); try{const j=await post('/api/smart-queue/check',{}); if(j.queued){toastMessage('toast.smartQueueCheckQueued','success'); await loadJobs().catch(()=>{}); await loadSmartQueue(); return;} const r=j.result||{}; if(j.torrent_patch) patchRows(j.torrent_patch); toast(smartQueueToastMessage(r),'success'); await loadSmartQueue();}catch(e){toast(e.message,'danger');}finally{setBusy(false);}}); $('smartManager')?.addEventListener('click',async e=>{const h=e.target.closest('.smart-unexclude')?.dataset.hash; if(!h)return; await post('/api/smart-queue/exclusion',{hash:h,excluded:false}); await loadSmartQueue();}); ";
+24
View File
@@ -269,15 +269,26 @@ body {
letter-spacing: 0.2px;
}
.initial-loader-spinner {
display: flex;
align-items: center;
justify-content: center;
min-height: 220px;
margin: 1.4rem 0 1rem;
}
.initial-loader-easter-egg-image,
.initial-loader-prank img {
display: block;
width: auto;
max-width: min(100%, 320px);
height: auto;
max-height: 220px;
object-fit: contain;
border-radius: 14px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.initial-loader-easter-egg-image {
contain: layout paint;
}
.prank-click-image {
position: fixed;
z-index: 9500;
@@ -2967,6 +2978,19 @@ body.mobile-mode .mobile-filter-bar {
display: grid;
gap: 0.3rem;
}
.smart-surge-refill-card .smart-refill-controls {
grid-template-columns: minmax(84px, 0.6fr) minmax(110px, 1fr) minmax(110px, 1fr);
width: min(450px, 100%);
}
.smart-refill-switch {
align-content: end;
}
.smart-refill-switch .form-check-input {
margin: 0;
}
.disk-monitor-shell {
display: grid;
grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
-1
View File
@@ -1 +0,0 @@
../../data/tracker_favicons