Duffer Derek
function getOffset(currentPage = 1, listPerPage) {
return (currentPage - 1) * [listPerPage];
}
function emptyOrRows(rows) {
if (!rows) {
return [];
}
return rows;
}
export default {
getOffset,
emptyOrRows,
};
export const extensionToMime = {
jpeg: "image/jpeg",
jpg: "image/jpeg",
png: "image/png",
gif: "image/gif",
bmp: "image/bmp",
svg: "image/svg+xml",
tiff: "image/tiff",
mp4: "video/mp4",
avi: "video/avi",
mpeg: "video/mpeg",
MOV: "video/quicktime",
mov: "video/quicktime",
pdf: "application/pdf",
doc: "application/msword",
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
xls: "application/vnd.ms-excel",
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
ppt: "application/vnd.ms-powerpoint",
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
zip: "application/zip",
gz: "application/x-gzip",
txt: "text/plain",
csv: "text/csv",
};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists