1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat!: adds services and stacks to fuzzy search. Note labels will no longer be searchable due to a bug on sorting. (#2999)

This commit is contained in:
Amir Raminfar
2024-05-30 09:47:20 -07:00
committed by GitHub
parent 4edac1174c
commit 3a30c27c9a
7 changed files with 106 additions and 24 deletions

View File

@@ -10,6 +10,10 @@ export class Stack {
service.stack = this;
}
}
get updatedAt() {
return this.containers.map((c) => c.created).reduce((acc, date) => (date > acc ? date : acc), new Date(0));
}
}
export class Service {
@@ -19,4 +23,8 @@ export class Service {
) {}
stack?: Stack;
get updatedAt() {
return this.containers.map((c) => c.created).reduce((acc, date) => (date > acc ? date : acc), new Date(0));
}
}