feature: new estimate time calculation

move getters to printer/getters

Signed-off-by: meteyou <meteyou@gmail.com>
This commit is contained in:
meteyou committed 2020-11-19 00:29:59 +01:00
1 parent f068a2ef21
commit e9179e5bcd
11 files changed
+214 -272

No files matched your search

+10
View File
@@ -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;
}