mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-04 19:16:13 +00:00
* fix: add supported extension of image * fix: display of select options when no typing * chore: focus end when cell input actived * fix: modified checklist keyboard event
10 lines
290 B
TypeScript
10 lines
290 B
TypeScript
export const MAX_IMAGE_SIZE = 10 * 1024 * 1024; // 10MB
|
|
export const ALLOWED_IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'svg', 'webp'];
|
|
export const IMAGE_DIR = 'images';
|
|
|
|
export function getFileName(url: string) {
|
|
const [...parts] = url.split('/');
|
|
|
|
return parts.pop() ?? url;
|
|
}
|