@lemonriver/core 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-RlcGG-Ve.js → build-CKwrex8y.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-BJT87wE9.js → config-B1_gk0sy.js} +1641 -60
- package/dist/{dev-DR-j_xda.js → dev-DZ2Yzl2p.js} +1 -1
- package/dist/{preview-BTAhTb5B.js → preview-hMDcuHfP.js} +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
- package/src/app/lemonriver/chrome/app-chrome.tsx +12 -1
- package/src/app/lemonriver/features.test.ts +5 -0
- package/src/app/lemonriver/features.ts +2 -1
- package/src/app/lemonriver/feedback/pending-toast.ts +7 -2
- package/src/app/lemonriver/home/deck-card.tsx +10 -1
- package/src/app/lemonriver/home/home-page.tsx +52 -1
- package/src/app/lemonriver/share/capture.ts +76 -0
- package/src/app/lemonriver/share/client.ts +162 -0
- package/src/app/lemonriver/share/codes.test.ts +49 -0
- package/src/app/lemonriver/share/codes.ts +30 -0
- package/src/app/lemonriver/share/compare.test.ts +199 -0
- package/src/app/lemonriver/share/compare.ts +367 -0
- package/src/app/lemonriver/share/drop.ts +84 -0
- package/src/app/lemonriver/share/folder.test.ts +42 -0
- package/src/app/lemonriver/share/folder.ts +29 -0
- package/src/app/lemonriver/share/freeze.ts +51 -0
- package/src/app/lemonriver/share/guide.test.ts +78 -0
- package/src/app/lemonriver/share/guide.ts +222 -0
- package/src/app/lemonriver/share/import-dialog.tsx +391 -0
- package/src/app/lemonriver/share/import-entry.tsx +106 -0
- package/src/app/lemonriver/share/model.ts +150 -0
- package/src/app/lemonriver/share/naming.test.ts +59 -0
- package/src/app/lemonriver/share/naming.ts +71 -0
- package/src/app/lemonriver/share/paths.test.ts +75 -0
- package/src/app/lemonriver/share/paths.ts +181 -0
- package/src/app/lemonriver/share/pdf.test.ts +79 -0
- package/src/app/lemonriver/share/pdf.ts +169 -0
- package/src/app/lemonriver/share/share-dialog.tsx +286 -0
- package/src/app/lemonriver/share/summary.ts +47 -0
- package/src/app/lemonriver/slide-extensions.tsx +69 -23
- package/src/app/lemonriver/templates/library-page.tsx +5 -2
- package/src/app/lemonriver/text/en.ts +67 -0
- package/src/app/lemonriver/text/es.ts +67 -0
- package/src/app/lemonriver/text/ja.ts +67 -0
- package/src/app/lemonriver/text/types.ts +78 -0
- package/src/app/lemonriver/text/zh-cn.ts +62 -0
- package/src/app/lemonriver/text/zh-tw.ts +62 -0
|
@@ -473,4 +473,71 @@ export const ja: LrText = {
|
|
|
473
473
|
followClient: 'クライアント設定',
|
|
474
474
|
followClientHint: '{provider} で設定したモデルと思考の強さを使います。',
|
|
475
475
|
},
|
|
476
|
+
share: {
|
|
477
|
+
open: 'Share',
|
|
478
|
+
menuItem: 'Share',
|
|
479
|
+
dialogTitle: 'Share “{title}”',
|
|
480
|
+
dialogDescription:
|
|
481
|
+
'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
|
|
482
|
+
attachPdf: 'Attach a PDF so anyone can read it',
|
|
483
|
+
estimate: 'About {n} pages, takes {s} seconds',
|
|
484
|
+
generate: 'Create package',
|
|
485
|
+
capturing: 'Drawing page {k} of {n}',
|
|
486
|
+
preparing: 'Packing…',
|
|
487
|
+
done: 'Package ready: {name} ({size} MB)',
|
|
488
|
+
reveal: 'Show in Finder',
|
|
489
|
+
finish: 'Done',
|
|
490
|
+
warnings: 'Notes',
|
|
491
|
+
failed: 'Could not create the package',
|
|
492
|
+
moreFiles: 'and {n} more',
|
|
493
|
+
importTitle: 'Import package',
|
|
494
|
+
importAction: 'Import',
|
|
495
|
+
dropHint: 'Drop to import',
|
|
496
|
+
notAPackage: 'This is not a LemonRiver package',
|
|
497
|
+
madeWith: 'Made with LemonRiver {version}',
|
|
498
|
+
keepBoth: 'Keep both',
|
|
499
|
+
replaceExisting: 'Replace “{title}” on my computer (the old one goes to the trash)',
|
|
500
|
+
securityNotice:
|
|
501
|
+
'A deck is program code that runs on your computer once imported. Only import packages from people you trust.',
|
|
502
|
+
importedToast: 'Imported “{title}”',
|
|
503
|
+
openAction: 'Open',
|
|
504
|
+
pageCount: '{n} pages',
|
|
505
|
+
pageOf: 'Page {n}',
|
|
506
|
+
earlier: 'Previous',
|
|
507
|
+
later: 'Next',
|
|
508
|
+
compareTitle: 'Compared with your copy',
|
|
509
|
+
compareSame: 'Same as your copy — nothing to import.',
|
|
510
|
+
compareUnreadable:
|
|
511
|
+
'This deck cannot be compared page by page; only the overall change is visible.',
|
|
512
|
+
compareChanged: 'Pages changed: {pages}',
|
|
513
|
+
compareAdded: 'Pages added: {n}',
|
|
514
|
+
compareRemoved: 'Pages removed: {n}',
|
|
515
|
+
compareMoved: 'Page order changed',
|
|
516
|
+
compareNotesOnly: 'Speaker notes only: page {pages}',
|
|
517
|
+
compareShared: 'Shared parts (styles, template pieces) changed too, so every page may differ',
|
|
518
|
+
compareAssets: 'Assets: {added} added, {changed} changed, {removed} removed',
|
|
519
|
+
compareExpand: 'Show pages',
|
|
520
|
+
compareCollapse: 'Hide pages',
|
|
521
|
+
statusSame: 'same',
|
|
522
|
+
statusChanged: 'changed',
|
|
523
|
+
statusAdded: 'added',
|
|
524
|
+
statusRemoved: 'removed',
|
|
525
|
+
statusMoved: 'moved',
|
|
526
|
+
unknownVersion: 'unknown version',
|
|
527
|
+
errors: {
|
|
528
|
+
notAPackage: 'This is not a LemonRiver package, or the package is damaged.',
|
|
529
|
+
badManifest: 'This is not a LemonRiver package, or the package is damaged.',
|
|
530
|
+
newerVersion:
|
|
531
|
+
'This package was made by a newer LemonRiver ({version}). Update first, then import.',
|
|
532
|
+
badPath: 'The package contains files it should not, so nothing was imported.',
|
|
533
|
+
blockedFile: 'The package contains files it should not, so nothing was imported.',
|
|
534
|
+
checksum:
|
|
535
|
+
'Files in the package were changed or are missing. Ask the sender to share it again.',
|
|
536
|
+
missingFile:
|
|
537
|
+
'Files in the package were changed or are missing. Ask the sender to share it again.',
|
|
538
|
+
extraFile: 'The package contains files it should not, so nothing was imported.',
|
|
539
|
+
tooLarge: 'The package is too large and was not imported.',
|
|
540
|
+
tooManyFiles: 'The package is too large and was not imported.',
|
|
541
|
+
},
|
|
542
|
+
},
|
|
476
543
|
};
|
|
@@ -520,4 +520,82 @@ export type LrText = {
|
|
|
520
520
|
/** template: "Uses the model and effort set in {provider}" */
|
|
521
521
|
followClientHint: string;
|
|
522
522
|
};
|
|
523
|
+
share: {
|
|
524
|
+
open: string;
|
|
525
|
+
menuItem: string;
|
|
526
|
+
/** template: "Share “{title}”" */
|
|
527
|
+
dialogTitle: string;
|
|
528
|
+
dialogDescription: string;
|
|
529
|
+
attachPdf: string;
|
|
530
|
+
/** template: "About {n} pages, takes {s} seconds" */
|
|
531
|
+
estimate: string;
|
|
532
|
+
generate: string;
|
|
533
|
+
/** template: "Drawing page {k} of {n}" */
|
|
534
|
+
capturing: string;
|
|
535
|
+
/** template: "Drawing page {k} of {n}" */
|
|
536
|
+
preparing: string;
|
|
537
|
+
/** template: "The package is ready: {name} ({size} MB)" */
|
|
538
|
+
done: string;
|
|
539
|
+
reveal: string;
|
|
540
|
+
finish: string;
|
|
541
|
+
warnings: string;
|
|
542
|
+
failed: string;
|
|
543
|
+
/** template: "… and {n} more" */
|
|
544
|
+
moreFiles: string;
|
|
545
|
+
importAction: string;
|
|
546
|
+
importTitle: string;
|
|
547
|
+
dropHint: string;
|
|
548
|
+
notAPackage: string;
|
|
549
|
+
/** template: "Made with LemonRiver {version}" */
|
|
550
|
+
madeWith: string;
|
|
551
|
+
keepBoth: string;
|
|
552
|
+
/** template: "Replace “{title}” on my computer (the old one goes to the trash)" */
|
|
553
|
+
replaceExisting: string;
|
|
554
|
+
securityNotice: string;
|
|
555
|
+
/** template: "Imported “{title}”" */
|
|
556
|
+
importedToast: string;
|
|
557
|
+
openAction: string;
|
|
558
|
+
/** template: "{n} pages" */
|
|
559
|
+
pageCount: string;
|
|
560
|
+
/** template: "Page {n}" */
|
|
561
|
+
pageOf: string;
|
|
562
|
+
earlier: string;
|
|
563
|
+
later: string;
|
|
564
|
+
unknownVersion: string;
|
|
565
|
+
compareTitle: string;
|
|
566
|
+
compareSame: string;
|
|
567
|
+
compareUnreadable: string;
|
|
568
|
+
/** template: "Changed pages {pages}" */
|
|
569
|
+
compareChanged: string;
|
|
570
|
+
/** template: "Added {n} pages" */
|
|
571
|
+
compareAdded: string;
|
|
572
|
+
/** template: "Removed {n} pages" */
|
|
573
|
+
compareRemoved: string;
|
|
574
|
+
compareMoved: string;
|
|
575
|
+
/** template: "Speaker notes only: page {pages}" */
|
|
576
|
+
compareNotesOnly: string;
|
|
577
|
+
compareShared: string;
|
|
578
|
+
/** template: "Assets: {added} added, {changed} changed, {removed} removed" */
|
|
579
|
+
compareAssets: string;
|
|
580
|
+
compareExpand: string;
|
|
581
|
+
compareCollapse: string;
|
|
582
|
+
statusSame: string;
|
|
583
|
+
statusChanged: string;
|
|
584
|
+
statusAdded: string;
|
|
585
|
+
statusRemoved: string;
|
|
586
|
+
statusMoved: string;
|
|
587
|
+
errors: {
|
|
588
|
+
notAPackage: string;
|
|
589
|
+
badManifest: string;
|
|
590
|
+
/** template: "This package was made by a newer LemonRiver ({version}). Update first, then import." */
|
|
591
|
+
newerVersion: string;
|
|
592
|
+
badPath: string;
|
|
593
|
+
blockedFile: string;
|
|
594
|
+
checksum: string;
|
|
595
|
+
missingFile: string;
|
|
596
|
+
extraFile: string;
|
|
597
|
+
tooLarge: string;
|
|
598
|
+
tooManyFiles: string;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
523
601
|
};
|
|
@@ -462,4 +462,66 @@ export const zhCN: LrText = {
|
|
|
462
462
|
followClient: '客户端设置',
|
|
463
463
|
followClientHint: '使用 {provider} 里自己设的模型和思考强度。',
|
|
464
464
|
},
|
|
465
|
+
share: {
|
|
466
|
+
open: '分享',
|
|
467
|
+
menuItem: '分享',
|
|
468
|
+
dialogTitle: '分享「{title}」',
|
|
469
|
+
dialogDescription:
|
|
470
|
+
'打包成一个压缩包,用微信、邮件、网盘发给对方。对方没装 LemonRiver 也能看 PDF。',
|
|
471
|
+
attachPdf: '附带 PDF(方便没装的人直接看)',
|
|
472
|
+
estimate: '约 {n} 页,生成要 {s} 秒',
|
|
473
|
+
generate: '生成分享包',
|
|
474
|
+
capturing: '正在画第 {k} / {n} 页',
|
|
475
|
+
preparing: '正在打包…',
|
|
476
|
+
done: '分享包已生成:{name}({size} MB)',
|
|
477
|
+
reveal: '在访达里显示',
|
|
478
|
+
finish: '完成',
|
|
479
|
+
warnings: '提示',
|
|
480
|
+
failed: '没能生成分享包',
|
|
481
|
+
moreFiles: '还有 {n} 个',
|
|
482
|
+
importTitle: '导入分享包',
|
|
483
|
+
importAction: '导入',
|
|
484
|
+
dropHint: '松手导入',
|
|
485
|
+
notAPackage: '这不是 LemonRiver 的分享包',
|
|
486
|
+
madeWith: '用 LemonRiver {version} 制作',
|
|
487
|
+
keepBoth: '另存一份',
|
|
488
|
+
replaceExisting: '替换我电脑上的「{title}」(旧的会移进回收站)',
|
|
489
|
+
securityNotice: '演示是程序代码,导入后会在你的电脑上运行。只导入你信任的人发来的。',
|
|
490
|
+
importedToast: '已导入「{title}」',
|
|
491
|
+
openAction: '打开',
|
|
492
|
+
pageCount: '{n} 页',
|
|
493
|
+
pageOf: '第 {n} 页',
|
|
494
|
+
earlier: '上一页',
|
|
495
|
+
later: '下一页',
|
|
496
|
+
compareTitle: '和你电脑上的那份比',
|
|
497
|
+
compareSame: '和你电脑上的那份一样,不用导入。',
|
|
498
|
+
compareUnreadable: '这份演示的写法没法按页比较,只能看出整体改过。',
|
|
499
|
+
compareChanged: '改了第 {pages} 页',
|
|
500
|
+
compareAdded: '新加 {n} 页',
|
|
501
|
+
compareRemoved: '删了 {n} 页',
|
|
502
|
+
compareMoved: '页序有调整',
|
|
503
|
+
compareNotesOnly: '第 {pages} 页只改了讲稿',
|
|
504
|
+
compareShared: '页面共用的部分(样式、模板部件)也改了,可能影响每一页',
|
|
505
|
+
compareAssets: '素材:新加 {added} 个,改了 {changed} 个,删了 {removed} 个',
|
|
506
|
+
compareExpand: '展开',
|
|
507
|
+
compareCollapse: '收起',
|
|
508
|
+
statusSame: '没变',
|
|
509
|
+
statusChanged: '改了',
|
|
510
|
+
statusAdded: '新加',
|
|
511
|
+
statusRemoved: '删了',
|
|
512
|
+
statusMoved: '挪了位置',
|
|
513
|
+
unknownVersion: '未知版本',
|
|
514
|
+
errors: {
|
|
515
|
+
notAPackage: '这不是 LemonRiver 的分享包,或者包已经损坏。',
|
|
516
|
+
badManifest: '这不是 LemonRiver 的分享包,或者包已经损坏。',
|
|
517
|
+
newerVersion: '这个包是用更新的 LemonRiver({version})做的,先更新再导入。',
|
|
518
|
+
badPath: '包里有不该出现的文件,为了安全没有导入。',
|
|
519
|
+
blockedFile: '包里有不该出现的文件,为了安全没有导入。',
|
|
520
|
+
checksum: '包里的文件被改动过或者缺了,请对方重新分享一次。',
|
|
521
|
+
missingFile: '包里的文件被改动过或者缺了,请对方重新分享一次。',
|
|
522
|
+
extraFile: '包里有不该出现的文件,为了安全没有导入。',
|
|
523
|
+
tooLarge: '包太大了,没有导入。',
|
|
524
|
+
tooManyFiles: '包太大了,没有导入。',
|
|
525
|
+
},
|
|
526
|
+
},
|
|
465
527
|
};
|
|
@@ -462,4 +462,66 @@ export const zhTW: LrText = {
|
|
|
462
462
|
followClient: '客戶端設定',
|
|
463
463
|
followClientHint: '使用 {provider} 裡自己設的模型和思考強度。',
|
|
464
464
|
},
|
|
465
|
+
share: {
|
|
466
|
+
open: '分享',
|
|
467
|
+
menuItem: '分享',
|
|
468
|
+
dialogTitle: '分享「{title}」',
|
|
469
|
+
dialogDescription:
|
|
470
|
+
'打包成一個壓縮檔,用微信、郵件、網盤寄給對方。對方沒裝 LemonRiver 也能看 PDF。',
|
|
471
|
+
attachPdf: '附帶 PDF(方便沒裝的人直接看)',
|
|
472
|
+
estimate: '約 {n} 頁,生成要 {s} 秒',
|
|
473
|
+
generate: '生成分享包',
|
|
474
|
+
capturing: '正在畫第 {k} / {n} 頁',
|
|
475
|
+
preparing: '正在打包…',
|
|
476
|
+
done: '分享包已生成:{name}({size} MB)',
|
|
477
|
+
reveal: '在 Finder 裡顯示',
|
|
478
|
+
finish: '完成',
|
|
479
|
+
warnings: '提示',
|
|
480
|
+
failed: '沒能生成分享包',
|
|
481
|
+
moreFiles: '還有 {n} 個',
|
|
482
|
+
importTitle: '匯入分享包',
|
|
483
|
+
importAction: '匯入',
|
|
484
|
+
dropHint: '鬆手匯入',
|
|
485
|
+
notAPackage: '這不是 LemonRiver 的分享包',
|
|
486
|
+
madeWith: '用 LemonRiver {version} 製作',
|
|
487
|
+
keepBoth: '另存一份',
|
|
488
|
+
replaceExisting: '替換我電腦上的「{title}」(舊的會移進回收筒)',
|
|
489
|
+
securityNotice: '演示是程式碼,匯入後會在你的電腦上執行。只匯入你信任的人寄來的。',
|
|
490
|
+
importedToast: '已匯入「{title}」',
|
|
491
|
+
openAction: '打開',
|
|
492
|
+
pageCount: '{n} 頁',
|
|
493
|
+
pageOf: '第 {n} 頁',
|
|
494
|
+
earlier: '上一頁',
|
|
495
|
+
later: '下一頁',
|
|
496
|
+
compareTitle: '和你電腦上的那份比',
|
|
497
|
+
compareSame: '和你電腦上的那份一樣,不用匯入。',
|
|
498
|
+
compareUnreadable: '這份演示的寫法沒法按頁比較,只能看出整體改過。',
|
|
499
|
+
compareChanged: '改了第 {pages} 頁',
|
|
500
|
+
compareAdded: '新加 {n} 頁',
|
|
501
|
+
compareRemoved: '刪了 {n} 頁',
|
|
502
|
+
compareMoved: '頁序有調整',
|
|
503
|
+
compareNotesOnly: '第 {pages} 頁只改了講稿',
|
|
504
|
+
compareShared: '頁面共用的部分(樣式、模板部件)也改了,可能影響每一頁',
|
|
505
|
+
compareAssets: '素材:新加 {added} 個,改了 {changed} 個,刪了 {removed} 個',
|
|
506
|
+
compareExpand: '展開',
|
|
507
|
+
compareCollapse: '收起',
|
|
508
|
+
statusSame: '沒變',
|
|
509
|
+
statusChanged: '改了',
|
|
510
|
+
statusAdded: '新加',
|
|
511
|
+
statusRemoved: '刪了',
|
|
512
|
+
statusMoved: '挪了位置',
|
|
513
|
+
unknownVersion: '未知版本',
|
|
514
|
+
errors: {
|
|
515
|
+
notAPackage: '這不是 LemonRiver 的分享包,或者包已經損壞。',
|
|
516
|
+
badManifest: '這不是 LemonRiver 的分享包,或者包已經損壞。',
|
|
517
|
+
newerVersion: '這個包是用更新的 LemonRiver({version})做的,先更新再匯入。',
|
|
518
|
+
badPath: '包裡有不該出現的檔案,為了安全沒有匯入。',
|
|
519
|
+
blockedFile: '包裡有不該出現的檔案,為了安全沒有匯入。',
|
|
520
|
+
checksum: '包裡的檔案被改動過或缺了,請對方重新分享一次。',
|
|
521
|
+
missingFile: '包裡的檔案被改動過或缺了,請對方重新分享一次。',
|
|
522
|
+
extraFile: '包裡有不該出現的檔案,為了安全沒有匯入。',
|
|
523
|
+
tooLarge: '包太大了,沒有匯入。',
|
|
524
|
+
tooManyFiles: '包太大了,沒有匯入。',
|
|
525
|
+
},
|
|
526
|
+
},
|
|
465
527
|
};
|