feature: new estimate time calculation
move getters to printer/getters Signed-off-by: meteyou <meteyou@gmail.com>
This commit is contained in:
1 parent
f068a2ef21
commit
e9179e5bcd
11 files changed
+214
-272
No files matched your search
@@ -10,4 +10,14 @@ export function findDirectory (folder, dirArray) {
|
||||
} else return parent.childrens;
|
||||
} else return folder;
|
||||
}
|
||||
}
|
||||
|
||||
export function caseInsensitiveNameSort(a, b) {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user