perf: virtualize remaining long result views

Reduce DOM growth across resource, history, workflow, share, downloading, and message views so large datasets stay responsive while scrolling.
This commit is contained in:
jxxghp
2026-05-09 17:28:23 +08:00
parent 96d655155a
commit 62e0d8e9dc
11 changed files with 236 additions and 189 deletions

View File

@@ -0,0 +1,13 @@
import { reactive } from 'vue'
const downloadedTorrentMap = reactive<Record<string, boolean>>({})
export function markTorrentDownloaded(url?: string | null) {
if (!url) {
return
}
downloadedTorrentMap[url] = true
}
export { downloadedTorrentMap }