1/** 2 * Constants - å ¨å±å ä½ä¸å¯¼åºåæ° 3 */ 4 5// é¢è§ç»å¸çåºç¡å°ºå¯¸ (3:4 æ¯ä¾) 6export const PREVIEW_WIDTH = 500; 7export const PREVIEW_HEIGHT = 667; 8 9export const PAGE_SIZE_PRESETS = { 10 xhsLong: { label: 'å°çº¢ä¹¦é¿æ', width: 500, height: 750, hint: 'æ´æ¥è¿é¿æå¡ç' }, 11 xhs: { label: 'å°çº¢ä¹¦ 3:4', width: 500, height: 667, hint: 'éåæ®é徿ç¬è®°' }, 12 video: { label: 'çè§é¢ 9:16', width: 500, height: 889, hint: 'éåæé³/è§é¢å·ç«ç' } 13}; 14 15export const DEFAULT_CONTENT_TEMPLATE_ID = 'minimalist-magazine'; 16export const DEFAULT_PAGE_SIZE_ID = 'xhsLong'; 17export const DEFAULT_COVER_TEMPLATE_ID = 'basic'; 18 19// è¾åºå¾çç髿¸ 尺寸 (çæ¯æ¾å¤§) 20export const OUTPUT_WIDTH = 1242; 21export const OUTPUT_HEIGHT = 1656; 22 23// é»è®¤ææ¡ 24export const DEFAULT_BRAND_TEXT = 'æå®¢ç'; 25export const DEFAULT_WATERMARK_OPACITY = 0.1; 26export const DEFAULT_DEBOUNCE_DELAY = 300; 27 28 29export const DEFAULT_COVER_IMAGE = 'https://fastly.picsum.photos/id/718/1000/1334.jpg?hmac=OZSv3X37ToDSUpw8VlxLrA9QoZT3PYWHf0_mCqvf7MU'; 30 31export const DEFAULT_COVER_CONFIG = Object.freeze({ 32 hasCover: false, 33 coverTemplateId: DEFAULT_COVER_TEMPLATE_ID, 34 coverImage: DEFAULT_COVER_IMAGE, 35 coverFontSize: 48, 36 coverLineHeight: 1.4, 37 hasSocialIcons: false, 38 selectedSocialIcons: [], 39 socialIconPosition: 'top-right' 40}); 41 42export const DEFAULT_DOCUMENT_CONFIG = Object.freeze({ 43 pageSizeId: DEFAULT_PAGE_SIZE_ID 44}); 45 46export function createDefaultSharedConfig() { 47 return { 48 ...DEFAULT_DOCUMENT_CONFIG, 49 }; 50} 51 52export function createDefaultCoverConfig() { 53 return { 54 ...DEFAULT_COVER_CONFIG, 55 }; 56} 57 58/** 59 * çæ¬æ´æ°æ¥å¿ 60 * version: è¯ä¹åçæ¬å·ï¼localStorage ç¨æ¤å¼å¤æç¨æ·æ¯å¦å·²è¯» 61 * items: æ´æ°æ¡ç®å表 62 */ 63export const CHANGELOG = { 64 version: '2026.05.25', 65 items: [ 66 { icon: 'fa-file-pdf', text: 'æ°å¢ PDF 导åºï¼ä¸é®å°ææé¡µé¢å并为 PDF æä»¶' }, 67 { icon: 'fa-image', text: 'å é¡µèæ¯å¾ï¼ç©ºç½ãæç®æå¿ãæçç¬è®°æ¨¡æ¿æ¯æèªå®ä¹å ¨å±èæ¯' }, 68 { icon: 'fa-list-ol', text: 'ç©ºç½æ¨¡æ¿ç§»è³æ¨¡æ¿å表é¦ä½ï¼æ´æéæ©' }, 69 ] 70};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.