mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 08:26:43 +00:00
feat: preview support for .webp extension, webhooks doc reference quick link
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
const imageExt = ['jpeg', 'gif', 'png', 'png', 'svg', 'bmp', 'ico', 'jpg']
|
||||
const imageExt = [
|
||||
"jpeg",
|
||||
"gif",
|
||||
"png",
|
||||
"png",
|
||||
"svg",
|
||||
"bmp",
|
||||
"ico",
|
||||
"jpg",
|
||||
"webp",
|
||||
];
|
||||
|
||||
export default imageExt
|
||||
export default imageExt;
|
||||
|
||||
const isImage = (name) => {
|
||||
return imageExt.some(e => name.toLowerCase().endsWith(`.${e}`))
|
||||
}
|
||||
return imageExt.some((e) => name.toLowerCase().endsWith(`.${e}`));
|
||||
};
|
||||
|
||||
export {
|
||||
isImage
|
||||
}
|
||||
export { isImage };
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user