mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 14:14:06 +08:00
1280f96f37
* feat: implement space and workspace icons - Create reusable AvatarUploader component supporting avatars, space icons, and workspace icons - Add Sharp package for server-side image resizing and optimization - Create reusable AvatarUploader component supporting avatars, space icons, and workspace icons - Support removing icons * add workspace logo support - add upload loader - add white background to transparent image - other fixes and enhancements * dark mode * fixes * cleanup
19 lines
339 B
TypeScript
19 lines
339 B
TypeScript
export enum AttachmentType {
|
|
Avatar = 'avatar',
|
|
WorkspaceIcon = 'workspace-icon',
|
|
SpaceIcon = 'space-icon',
|
|
File = 'file',
|
|
}
|
|
|
|
export const validImageExtensions = ['.jpg', '.png', '.jpeg'];
|
|
export const MAX_AVATAR_SIZE = '10MB';
|
|
|
|
export const inlineFileExtensions = [
|
|
'.jpg',
|
|
'.png',
|
|
'.jpeg',
|
|
'.pdf',
|
|
'.mp4',
|
|
'.mov',
|
|
];
|