messages.js (1029B)
1 export const MSG = { 2 NOT_FOUND: 'Document not found.', 3 EXPIRED: 'This link has expired.', 4 INVALID_MODE: 'Invalid mode. Use markdown or org.', 5 INVALID_CONTENT: 'Invalid content.', 6 CONTENT_TOO_LARGE: 'Document is larger than 1 MB.', 7 INVALID_EXPIRES_IN: 'Invalid validity. Use 1h, 24h, 7d, 30d, or never.', 8 INVALID_CLIENT: 'clientId is required.', 9 INVALID_REQUEST: 'clientId and lockToken are required.', 10 DOCUMENT_LOCKED: 'This document is being edited by someone else.', 11 LOCK_INVALID: 'Edit lock not found or expired.', 12 LOCK_REQUIRED: 'You need an active edit lock to save.', 13 RATE_LIMIT: 'Too many requests. Try again in a minute.', 14 INVALID_JSON: 'Invalid JSON in request body.', 15 INTERNAL_ERROR: 'Internal server error.', 16 ORIGIN_NOT_ALLOWED: 17 'Document creation is only allowed from the Snow Editor website.', 18 VERSION_NOT_FOUND: 'Version not found.', 19 }; 20 21 export const APP_VERSION = '0.0.1'; 22 export const MAX_VERSIONS_PER_DOCUMENT = 50; 23 24 export const DEFAULT_DOCUMENT_TITLE = 'Untitled document';