mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-01 20:41:52 +08:00
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:
13
src/utils/torrentDownloadCache.ts
Normal file
13
src/utils/torrentDownloadCache.ts
Normal 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 }
|
||||
Reference in New Issue
Block a user