File
Blob: src/shared/constants.ts
| 1 | export const DEFAULT_PAGE_TITLE = "Untitled"; |
| 2 | export const YJS_PAGE_TITLE = "page-title"; |
| 3 | export const YJS_DOCUMENT_STORE = "document-store"; |
| 4 | export const YJS_CANVAS_ELEMENTS = "canvas-elements"; |
| 5 | export const YJS_CANVAS_APP_STATE = "canvas-app-state"; |
| 6 | export const YJS_CANVAS_FILE_REFS = "canvas-file-refs"; |
| 7 | export const MAX_TREE_DEPTH = 10; |
| 8 | export const MAX_PAGE_MENTION_BATCH = 100; |
| 9 | export const ALLOWED_UPLOAD_TYPES = [ |
| 10 | "image/jpeg", |
| 11 | "image/png", |
| 12 | "image/gif", |
| 13 | "image/webp", |
| 14 | "image/heic", |
| 15 | "application/pdf", |
| 16 | ] as const; |
| 17 | export const MAX_UPLOAD_SIZE = 10 * 1024 * 1024; // 10MB |
| 18 | export const UPLOAD_MIME_SET = new Set<string>(ALLOWED_UPLOAD_TYPES); |