refactor: refactor sur server et les pages qui commencer à faire beaucoup trop de ligne
This commit is contained in:
1 parent
609ddc777f
commit
bf2274b761
25 files changed
+2769
-2725
No files matched your search
@@ -0,0 +1,12 @@
|
||||
export interface OrganizeNotif {
|
||||
hash: string; name: string; done: number; skipped: number; errors: number
|
||||
errorFiles: { file: string; error: string }[]; at: string
|
||||
}
|
||||
|
||||
export const recentOrganized: OrganizeNotif[] = []
|
||||
const MAX_NOTIFS = 20
|
||||
|
||||
export function pushNotif(n: OrganizeNotif) {
|
||||
recentOrganized.unshift(n)
|
||||
if (recentOrganized.length > MAX_NOTIFS) recentOrganized.pop()
|
||||
}
|
||||
Reference in new issue
Block a user