mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
feat(ui): note the idle eviction window on the stats page
The stats page now reads idle_ttl from the stats API. It shows "Cached items not requested for 7 days are removed." in an info alert. The note stays hidden when idle eviction is off.
This commit is contained in:
@@ -40,6 +40,8 @@ export interface Stats {
|
||||
scanned_packages: number
|
||||
vulnerable_packages: number
|
||||
blocked_packages: number
|
||||
/** Seconds a cached item can go unrequested before cleanup removes it; 0 means never. */
|
||||
idle_ttl?: number
|
||||
}
|
||||
|
||||
export const usePackageStore = defineStore('packages', () => {
|
||||
|
||||
Reference in New Issue
Block a user