settings frontend bugfix + refactoring

This commit is contained in:
2024-04-12 11:36:30 +02:00
parent 3888e7fcde
commit b274cd4ad2
11 changed files with 217 additions and 126 deletions

View File

@@ -109,7 +109,12 @@ const isInt = (value) => {
!isNaN(parseInt(value, 10));
}
const parseBool = (v) => v !== undefined &&
(v === true || v === 1 || ["true", "1", "yes"].includes(v.toString().toLowerCase()));
export { humanReadableSize, removeParameter, getParameter, getCookie,
encodeText, decodeText, getBaseUrl,
formatDate, formatDateTime, formatDistance,
upperFirstChars, isInt, createDownload };
upperFirstChars, isInt, parseBool, createDownload };