@lemonriver/core 1.0.2 → 1.1.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.
Files changed (39) hide show
  1. package/dist/{build-DYN-H65n.js → build-Dm7gVRhb.js} +1 -1
  2. package/dist/cli/bin.js +3 -3
  3. package/dist/{config-DW1wSoxa.js → config-CubOIzrs.js} +1950 -1429
  4. package/dist/{dev-_VDoRfAK.js → dev-DgLeXPqp.js} +1 -1
  5. package/dist/{preview-CYIGh3Z8.js → preview-CxXQpPk5.js} +1 -1
  6. package/dist/vite/index.js +1 -1
  7. package/package.json +1 -1
  8. package/src/app/components/command/slide-command-menu.tsx +0 -9
  9. package/src/app/lemonriver/backup/client.ts +25 -1
  10. package/src/app/lemonriver/backup/model.test.ts +19 -7
  11. package/src/app/lemonriver/backup/model.ts +63 -18
  12. package/src/app/lemonriver/board/board-page.tsx +2 -2
  13. package/src/app/lemonriver/help/model.test.ts +1 -1
  14. package/src/app/lemonriver/help/model.ts +1 -1
  15. package/src/app/lemonriver/home/drafts.test.ts +23 -0
  16. package/src/app/lemonriver/home/drafts.ts +57 -0
  17. package/src/app/lemonriver/home/home-page.tsx +94 -10
  18. package/src/app/lemonriver/home/organize-drafts.tsx +192 -0
  19. package/src/app/lemonriver/outline/outline-page.tsx +8 -1
  20. package/src/app/lemonriver/settings/backup-restore-dialog.tsx +15 -1
  21. package/src/app/lemonriver/settings/backup-section.tsx +146 -28
  22. package/src/app/lemonriver/settings/settings-page.tsx +3 -0
  23. package/src/app/lemonriver/settings/workspace-card.tsx +53 -0
  24. package/src/app/lemonriver/settings/workspace.ts +37 -0
  25. package/src/app/lemonriver/share/editor-share.tsx +55 -0
  26. package/src/app/lemonriver/share/import-dialog.tsx +14 -0
  27. package/src/app/lemonriver/share/naming.test.ts +11 -0
  28. package/src/app/lemonriver/share/naming.ts +6 -1
  29. package/src/app/lemonriver/slide-extensions.tsx +37 -53
  30. package/src/app/lemonriver/text/en.ts +46 -11
  31. package/src/app/lemonriver/text/es.ts +39 -6
  32. package/src/app/lemonriver/text/ja.ts +39 -6
  33. package/src/app/lemonriver/text/types.ts +45 -6
  34. package/src/app/lemonriver/text/zh-cn.ts +47 -11
  35. package/src/app/lemonriver/text/zh-tw.ts +47 -11
  36. package/src/app/lemonriver/update/beta-badge.tsx +69 -0
  37. package/src/app/lib/export-html.ts +5 -3
  38. package/src/app/lib/export-pptx.ts +5 -4
  39. package/src/app/routes/slide.tsx +6 -57
@@ -221,9 +221,12 @@ function ThumbViewer({
221
221
 
222
222
  export function ImportDialog({
223
223
  inspection,
224
+ folderId = null,
224
225
  onClose,
225
226
  }: {
226
227
  inspection: InspectOk;
228
+ /** The folder the home page is showing; imported decks land there. */
229
+ folderId?: string | null;
227
230
  onClose: () => void;
228
231
  }) {
229
232
  const t = useLocale();
@@ -255,6 +258,17 @@ export function ImportDialog({
255
258
  picked.map((deck) => ({ slideId: deck.slideId, mode: mode[deck.slideId] ?? 'copy' })),
256
259
  );
257
260
  const first = result.imported[0];
261
+ if (folderId) {
262
+ await Promise.all(
263
+ result.imported.map((deck) =>
264
+ fetch('/__folders/assign', {
265
+ method: 'PUT',
266
+ headers: { 'content-type': 'application/json' },
267
+ body: JSON.stringify({ slideId: deck.slideId, folderId }),
268
+ }),
269
+ ),
270
+ );
271
+ }
258
272
  const firstDeck = decks.find((deck) => deck.slideId === first?.from);
259
273
  savePendingToast({
260
274
  kind: 'imported',
@@ -1,6 +1,7 @@
1
1
  import { describe, expect, it } from 'vitest';
2
2
  import {
3
3
  dayStamp,
4
+ exportBaseName,
4
5
  freeImportSlideId,
5
6
  isValidExtraName,
6
7
  packageBaseName,
@@ -8,6 +9,16 @@ import {
8
9
  uniqueFileName,
9
10
  } from './naming.ts';
10
11
 
12
+ describe('export file names', () => {
13
+ it('uses the deck title with characters a file name cannot hold removed', () => {
14
+ expect(`${exportBaseName('季度经营汇报:Q3', 'draft-731')}.pptx`).toBe('季度经营汇报Q3.pptx');
15
+ });
16
+
17
+ it('uses the slide id when the deck has no title', () => {
18
+ expect(`${exportBaseName(undefined, 'draft-731')}.pptx`).toBe('draft-731.pptx');
19
+ });
20
+ });
21
+
11
22
  describe('package file names', () => {
12
23
  it('strips what Finder and Explorer refuse', () => {
13
24
  expect(safeFileName('Q3/经营:汇报*?"<>|', 'q3')).toBe('Q3经营汇报');
@@ -1,4 +1,4 @@
1
- const RESERVED = new Set(['/', '\\', ':', '*', '?', '"', '<', '>', '|']);
1
+ const RESERVED = new Set(['/', '\\', ':', ':', '*', '?', '"', '<', '>', '|']);
2
2
  const MAX_BASE = 80;
3
3
 
4
4
  function clean(raw: string): string {
@@ -29,6 +29,11 @@ export function dayStamp(now: number): string {
29
29
  return `${date.getFullYear()}-${two(date.getMonth() + 1)}-${two(date.getDate())}`;
30
30
  }
31
31
 
32
+ /** The deck's own name for an export, without its extension. */
33
+ export function exportBaseName(title: string | undefined, slideId: string): string {
34
+ return safeFileName(title ?? '', slideId);
35
+ }
36
+
32
37
  /** One deck is named after itself; a set of them is a backup with a date. */
33
38
  export function packageBaseName(decks: { title: string; slideId: string }[], now: number): string {
34
39
  if (decks.length === 1) {
@@ -1,5 +1,5 @@
1
- import { Share2, Workflow } from 'lucide-react';
2
- import { useEffect, useState } from 'react';
1
+ import { Workflow } from 'lucide-react';
2
+ import { useCallback, useEffect, useState } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { useNavigate } from 'react-router-dom';
5
5
  import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
@@ -10,6 +10,7 @@ import { useSlot } from './chrome/use-slot';
10
10
  import { isFeatureEnabled } from './features';
11
11
  import { useNewDeckBrief } from './home/brief';
12
12
  import { PendingPages } from './outline/pending-pages';
13
+ import { ShareHeaderButton, useShareRequests } from './share/editor-share';
13
14
  import { ShareDialog } from './share/share-dialog';
14
15
  import { useLrText } from './text';
15
16
 
@@ -35,6 +36,7 @@ export function SlideExtensions({ slideId, overviewOpen }: Props) {
35
36
  const shareOn = isFeatureEnabled('share');
36
37
  const navigate = useNavigate();
37
38
  const slot = useSlot('data-lr-rail-actions', enabled);
39
+ const headerSlot = useSlot('data-lr-header-actions', shareOn);
38
40
  useNewDeckBrief(slideId);
39
41
  const lr = useLrText();
40
42
  const [sharing, setSharing] = useState(false);
@@ -52,8 +54,10 @@ export function SlideExtensions({ slideId, overviewOpen }: Props) {
52
54
  };
53
55
  }, [slideId]);
54
56
 
57
+ useShareRequests(useCallback(() => setSharing(true), []));
58
+
55
59
  useEffect(() => {
56
- if (!enabled) return;
60
+ if (!enabled && !shareOn) return;
57
61
  const onKey = (e: KeyboardEvent) => {
58
62
  if (
59
63
  isTypingTarget(e.target) ||
@@ -65,68 +69,48 @@ export function SlideExtensions({ slideId, overviewOpen }: Props) {
65
69
  return;
66
70
  if (hasModifier(e)) return;
67
71
  if (overviewOpen) return;
68
- if (e.key === 'b' || e.key === 'B') {
72
+ if (enabled && (e.key === 'b' || e.key === 'B')) {
69
73
  e.preventDefault();
70
74
  navigate(`/s/${encodeURIComponent(slideId)}/board`);
71
75
  }
76
+ if (shareOn && (e.key === 's' || e.key === 'S')) {
77
+ e.preventDefault();
78
+ setSharing(true);
79
+ }
72
80
  };
73
81
  window.addEventListener('keydown', onKey);
74
82
  return () => window.removeEventListener('keydown', onKey);
75
- }, [enabled, navigate, overviewOpen, slideId]);
83
+ }, [enabled, navigate, overviewOpen, shareOn, slideId]);
76
84
 
77
- if (!enabled) return null;
85
+ if (!enabled && !shareOn) return null;
78
86
 
79
87
  return (
80
88
  <>
89
+ {headerSlot &&
90
+ createPortal(<ShareHeaderButton onOpen={() => setSharing(true)} />, headerSlot)}
81
91
  {slot &&
82
92
  createPortal(
83
- <>
84
- {shareOn && (
85
- <Tooltip>
86
- <TooltipTrigger
87
- render={
88
- <button
89
- type="button"
90
- onClick={() => setSharing(true)}
91
- aria-label={lr.share.open}
92
- data-lr-share-open
93
- className={cn(
94
- 'flex size-5 items-center justify-center rounded-[3px] text-muted-foreground/70 outline-none',
95
- 'motion-safe:transition-colors hover:bg-muted hover:text-foreground',
96
- 'focus-visible:ring-1 focus-visible:ring-brand',
97
- )}
98
- >
99
- <Share2 className="size-3.5" strokeWidth={1.75} />
100
- </button>
101
- }
102
- />
103
- <TooltipContent side="bottom" sideOffset={6}>
104
- {lr.share.open}
105
- </TooltipContent>
106
- </Tooltip>
107
- )}
108
- <Tooltip>
109
- <TooltipTrigger
110
- render={
111
- <button
112
- type="button"
113
- onClick={() => navigate(`/s/${encodeURIComponent(slideId)}/board`)}
114
- aria-label={lr.board.openBoard}
115
- className={cn(
116
- 'flex size-5 items-center justify-center rounded-[3px] text-muted-foreground/70 outline-none',
117
- 'motion-safe:transition-colors hover:bg-muted hover:text-foreground',
118
- 'focus-visible:ring-1 focus-visible:ring-brand',
119
- )}
120
- >
121
- <Workflow className="size-3.5" strokeWidth={1.75} />
122
- </button>
123
- }
124
- />
125
- <TooltipContent side="bottom" sideOffset={6}>
126
- {lr.board.openBoard}
127
- </TooltipContent>
128
- </Tooltip>
129
- </>,
93
+ <Tooltip>
94
+ <TooltipTrigger
95
+ render={
96
+ <button
97
+ type="button"
98
+ onClick={() => navigate(`/s/${encodeURIComponent(slideId)}/board`)}
99
+ aria-label={lr.board.openBoard}
100
+ className={cn(
101
+ 'flex size-5 items-center justify-center rounded-[3px] text-muted-foreground/70 outline-none',
102
+ 'motion-safe:transition-colors hover:bg-muted hover:text-foreground',
103
+ 'focus-visible:ring-1 focus-visible:ring-brand',
104
+ )}
105
+ >
106
+ <Workflow className="size-3.5" strokeWidth={1.75} />
107
+ </button>
108
+ }
109
+ />
110
+ <TooltipContent side="bottom" sideOffset={6}>
111
+ {lr.board.openBoard}
112
+ </TooltipContent>
113
+ </Tooltip>,
130
114
  slot,
131
115
  )}
132
116
  {shareOn && (
@@ -13,7 +13,7 @@ export const enHelp: LrText['help'] = {
13
13
  import: 'Import',
14
14
  backupNow: 'Back up now',
15
15
  autoBackup: 'Back up every day',
16
- keep: 'Keep the latest',
16
+ skipVideos: 'Do not back up videos over 100 MB',
17
17
  restore: 'Restore from backup…',
18
18
  restoreGo: 'Restore',
19
19
  chooseOtherFile: 'Choose another backup file…',
@@ -343,7 +343,7 @@ export const enHelp: LrText['help'] = {
343
343
  text: 'Turn on “{autoBackup}”: one backup a day while LemonRiver is open. You can also choose “{backupNow}” at any time.',
344
344
  },
345
345
  {
346
- text: '“{keep}” decides how many backups stay; older ones are deleted. Only backups LemonRiver made are deleted; other files you put in the folder are never touched.',
346
+ text: 'Backups keep the last 30 days; older ones are deleted. Only what LemonRiver wrote into the folder is touched; other files you put there are never deleted.',
347
347
  },
348
348
  ],
349
349
  },
@@ -432,7 +432,7 @@ export const enHelp: LrText['help'] = {
432
432
  kind: 'list',
433
433
  items: [
434
434
  {
435
- text: 'Free iCloud is only 5GB, and one backup can be a few hundred MB. If space runs out, lower “{keep}” or buy more iCloud storage.',
435
+ text: 'Free iCloud is only 5GB, and the workspace backup can be a few hundred MB. If space runs out, turn on “{skipVideos}” in Settings, or buy more iCloud storage.',
436
436
  },
437
437
  {
438
438
  text: 'When restoring on a new computer, a cloud icon beside the backup means it is not downloaded yet: double-click it, wait for the download, then restore.',
@@ -496,7 +496,9 @@ export const enHelp: LrText['help'] = {
496
496
  },
497
497
  {
498
498
  kind: 'list',
499
- items: [{ text: 'Weiyun’s free space is small; setting “{keep}” to 3 is a good idea.' }],
499
+ items: [
500
+ { text: 'Weiyun’s free space is small; turning on “{skipVideos}” in Settings helps.' },
501
+ ],
500
502
  },
501
503
  ],
502
504
  },
@@ -627,7 +629,7 @@ export const enHelp: LrText['help'] = {
627
629
  },
628
630
  {
629
631
  strong: 'The drive is full.',
630
- text: 'Lower “{keep}”, or clean up old backups on the drive. The size of the last backup is shown after “Last backup”.',
632
+ text: 'How much backups take is shown in Settings. Turning on “{skipVideos}” frees up space.',
631
633
  },
632
634
  {
633
635
  strong: 'There are files like “conflicted copy”.',
@@ -905,6 +907,18 @@ export const en: LrText = {
905
907
  renameHint: 'The new name shows on the card and in exported file titles.',
906
908
  nameRequired: 'The name can’t be empty.',
907
909
  noMatchesHint: 'Try another word, or clear the search to see every slide.',
910
+ organizeDrafts: 'Tidy drafts',
911
+ /** template: "{n} drafts are still unfiled" */
912
+ draftReminder: '{n} drafts are still unfiled',
913
+ organizeTitle: 'Tidy drafts',
914
+ organizeStay: 'Leave in drafts',
915
+ organizeNew: 'New folder…',
916
+ organizeNamePlaceholder: 'Folder name',
917
+ /** template: "Move {n}" */
918
+ organizeMove: 'Move {n}',
919
+ /** template: "Filed the new deck in "{folder}"" */
920
+ newDeckFiled: 'Filed the new deck in “{folder}”',
921
+ organizeFailed: 'Some decks could not be moved',
908
922
  },
909
923
  trash: {
910
924
  title: 'Trash',
@@ -934,6 +948,12 @@ export const en: LrText = {
934
948
  helpTitle: 'Help',
935
949
  helpHint: 'How sharing, importing, backups and cloud drive setup work.',
936
950
  helpOpen: 'Open help',
951
+ workspaceTitle: 'Workspace folder',
952
+ workspaceHint: 'This is the folder your agent works in.',
953
+ workspaceCopy: 'Copy',
954
+ workspaceCopied: 'Copied',
955
+ workspaceReveal: 'Show in Finder',
956
+ workspaceCopiedToast: 'Workspace folder path copied',
937
957
  },
938
958
  agents: {
939
959
  title: 'Agents',
@@ -1151,7 +1171,8 @@ export const en: LrText = {
1151
1171
  },
1152
1172
  share: {
1153
1173
  open: 'Share',
1154
- menuItem: 'Share',
1174
+ openHint: 'Share (S)',
1175
+ menuItem: 'Share…',
1155
1176
  dialogTitle: 'Share “{title}”',
1156
1177
  dialogDescription:
1157
1178
  'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
@@ -1222,7 +1243,7 @@ export const en: LrText = {
1222
1243
  },
1223
1244
  backup: {
1224
1245
  title: 'Backup',
1225
- hint: 'Package the whole workspace on a schedule, so a new computer or a mistake does not lose it.',
1246
+ hint: 'Back up the whole workspace — every deck, asset and theme. How many decks there are does not matter.',
1226
1247
  location: 'Backup location',
1227
1248
  notSet: 'Not chosen yet',
1228
1249
  change: 'Change',
@@ -1239,12 +1260,26 @@ export const en: LrText = {
1239
1260
  },
1240
1261
  auto: 'Back up every day',
1241
1262
  autoHint: 'Once a day, while LemonRiver is open.',
1242
- keep: 'Keep the latest',
1243
- keepOption: '{n} backups',
1244
- keepSize: 'Each backup is about {size}; keeping {n} takes about {total}',
1263
+ retain: 'Kept for the last 30 days; every day’s changes can be brought back.',
1264
+ totalSize: 'Backups take {size}',
1265
+ biggestTitle: 'Largest files',
1266
+ biggestItem: '{name} · {size}',
1267
+ biggestItemDeck: '{name} · {size} · in “{deck}”',
1268
+ skipVideos: 'Do not back up videos over 100 MB',
1269
+ skipVideosHint: 'Saves cloud space. These videos stay on this computer.',
1270
+ skipped: '{n} large videos were not backed up',
1271
+ restoreSkipped: '{n} large videos are not in this backup',
1272
+ exportFull: 'Export a full backup…',
1273
+ exportTitle: 'Export a full backup',
1274
+ exportHint: 'Pick a day. The file opens with “Restore from backup…”.',
1275
+ exportDone: 'Saved {name} ({size})',
1276
+ exportFailed: 'Could not export this backup.',
1277
+ oldFormat: 'Old format',
1278
+ snapshotLine: '{decks} decks · {size} · {when}',
1279
+ zipLine: 'Old format · {size} · {when}',
1245
1280
  runNow: 'Back up now',
1246
1281
  running: 'Packing {done} / {total} files',
1247
- lastOk: 'Last backup: {when} · {size} · succeeded',
1282
+ lastOk: 'Last backup: {when} · {added} new · succeeded',
1248
1283
  lastFailed: 'Last backup failed: {error}',
1249
1284
  tooLarge:
1250
1285
  'The workspace is larger than 4 GB, which the current backup format cannot hold. Move large videos out of the asset library and back up again.',
@@ -249,6 +249,18 @@ export const es: LrText = {
249
249
  renameHint: 'El nuevo nombre aparece en la tarjeta y en los archivos exportados.',
250
250
  nameRequired: 'El nombre no puede estar vacío.',
251
251
  noMatchesHint: 'Prueba otra palabra o borra la búsqueda para ver todas.',
252
+ organizeDrafts: 'Ordenar borradores',
253
+ /** template: "Hay {n} borradores sin clasificar" */
254
+ draftReminder: 'Hay {n} borradores sin clasificar',
255
+ organizeTitle: 'Ordenar borradores',
256
+ organizeStay: 'Dejar en borradores',
257
+ organizeNew: 'Nueva carpeta…',
258
+ organizeNamePlaceholder: 'Nombre de la carpeta',
259
+ /** template: "Mover {n}" */
260
+ organizeMove: 'Mover {n}',
261
+ /** template: "Nueva presentación guardada en «{folder}»" */
262
+ newDeckFiled: 'Nueva presentación guardada en «{folder}»',
263
+ organizeFailed: 'No se pudieron mover algunas presentaciones',
252
264
  },
253
265
  trash: {
254
266
  title: 'Papelera',
@@ -281,6 +293,12 @@ export const es: LrText = {
281
293
  helpHint:
282
294
  'Cómo funcionan compartir, importar, las copias de seguridad y las unidades en la nube.',
283
295
  helpOpen: 'Abrir la ayuda',
296
+ workspaceTitle: 'Carpeta del espacio de trabajo',
297
+ workspaceHint: 'Tu agente trabaja en esta carpeta.',
298
+ workspaceCopy: 'Copiar',
299
+ workspaceCopied: 'Copiado',
300
+ workspaceReveal: 'Mostrar en Finder',
301
+ workspaceCopiedToast: 'Ruta de la carpeta del espacio de trabajo copiada',
284
302
  },
285
303
  agents: {
286
304
  title: 'Agentes',
@@ -498,7 +516,8 @@ export const es: LrText = {
498
516
  },
499
517
  share: {
500
518
  open: 'Share',
501
- menuItem: 'Share',
519
+ openHint: 'Share (S)',
520
+ menuItem: 'Share…',
502
521
  dialogTitle: 'Share “{title}”',
503
522
  dialogDescription:
504
523
  'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
@@ -569,7 +588,7 @@ export const es: LrText = {
569
588
  },
570
589
  backup: {
571
590
  title: 'Copia de seguridad',
572
- hint: 'Empaqueta todo el espacio de trabajo con regularidad, para no perderlo al cambiar de ordenador o por un error.',
591
+ hint: 'Se guarda todo el espacio de trabajo (todas las diapositivas, los recursos y los temas). No importa cuántas diapositivas haya.',
573
592
  location: 'Ubicación de la copia',
574
593
  notSet: 'Sin elegir',
575
594
  change: 'Cambiar',
@@ -586,12 +605,26 @@ export const es: LrText = {
586
605
  },
587
606
  auto: 'Copia automática cada día',
588
607
  autoHint: 'Una vez al día, mientras LemonRiver está abierto.',
589
- keep: 'Conservar las últimas',
590
- keepOption: '{n} copias',
591
- keepSize: 'Cada copia ocupa unos {size}; conservar {n} ocupa unos {total}',
608
+ retain: 'Se conservan los últimos 30 días; los cambios de cada día se pueden recuperar.',
609
+ totalSize: 'Las copias ocupan {size}',
610
+ biggestTitle: 'Archivos más grandes',
611
+ biggestItem: '{name} · {size}',
612
+ biggestItemDeck: '{name} · {size} · en «{deck}»',
613
+ skipVideos: 'No copiar vídeos de más de 100 MB',
614
+ skipVideosHint: 'Ahorra espacio en la nube. Estos vídeos se quedan en este ordenador.',
615
+ skipped: '{n} vídeos grandes no se copiaron',
616
+ restoreSkipped: 'Esta copia no incluye {n} vídeos grandes',
617
+ exportFull: 'Exportar una copia completa…',
618
+ exportTitle: 'Exportar una copia completa',
619
+ exportHint: 'Elige un día. El archivo se abre con «Restaurar desde una copia…».',
620
+ exportDone: 'Guardado {name} ({size})',
621
+ exportFailed: 'No se pudo exportar esta copia.',
622
+ oldFormat: 'Formato antiguo',
623
+ snapshotLine: '{decks} presentaciones · {size} · {when}',
624
+ zipLine: 'Formato antiguo · {size} · {when}',
592
625
  runNow: 'Hacer copia ahora',
593
626
  running: 'Empaquetados {done} de {total} archivos',
594
- lastOk: 'Última copia: {when} · {size} · correcta',
627
+ lastOk: 'Última copia: {when} · {added} nuevo · correcta',
595
628
  lastFailed: 'La última copia falló: {error}',
596
629
  tooLarge:
597
630
  'El espacio de trabajo supera los 4 GB y el formato de copia actual no puede contenerlo. Mueve los vídeos grandes fuera de la biblioteca de recursos y vuelve a intentarlo.',
@@ -249,6 +249,18 @@ export const ja: LrText = {
249
249
  renameHint: '新しい名前はカードと書き出したファイルに表示されます。',
250
250
  nameRequired: '名前を入力してください。',
251
251
  noMatchesHint: '別の言葉で試すか、検索をクリアしてすべて表示してください。',
252
+ organizeDrafts: '下書きを整理',
253
+ /** template: "下書きに {n} 件が未整理です" */
254
+ draftReminder: '下書きに {n} 件が未整理です',
255
+ organizeTitle: '下書きを整理',
256
+ organizeStay: '下書きに残す',
257
+ organizeNew: '新しいフォルダ…',
258
+ organizeNamePlaceholder: 'フォルダ名',
259
+ /** template: "{n} 件を移動" */
260
+ organizeMove: '{n} 件を移動',
261
+ /** template: "新しいスライドを「{folder}」に入れました" */
262
+ newDeckFiled: '新しいスライドを「{folder}」に入れました',
263
+ organizeFailed: '移動できなかったスライドがあります',
252
264
  },
253
265
  trash: {
254
266
  title: 'ゴミ箱',
@@ -278,6 +290,12 @@ export const ja: LrText = {
278
290
  helpTitle: 'ヘルプ',
279
291
  helpHint: '共有、読み込み、バックアップ、クラウドドライブの設定について',
280
292
  helpOpen: 'ヘルプを開く',
293
+ workspaceTitle: 'ワークスペースフォルダ',
294
+ workspaceHint: 'エージェントはこのフォルダで作業します。',
295
+ workspaceCopy: 'コピー',
296
+ workspaceCopied: 'コピーしました',
297
+ workspaceReveal: 'Finder で表示',
298
+ workspaceCopiedToast: 'ワークスペースフォルダのパスをコピーしました',
281
299
  },
282
300
  agents: {
283
301
  title: 'エージェント',
@@ -497,7 +515,8 @@ export const ja: LrText = {
497
515
  },
498
516
  share: {
499
517
  open: 'Share',
500
- menuItem: 'Share',
518
+ openHint: 'Share (S)',
519
+ menuItem: 'Share…',
501
520
  dialogTitle: 'Share “{title}”',
502
521
  dialogDescription:
503
522
  'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
@@ -568,7 +587,7 @@ export const ja: LrText = {
568
587
  },
569
588
  backup: {
570
589
  title: 'バックアップ',
571
- hint: 'ワークスペース全体を定期的にまとめておき、新しいパソコンや誤削除に備えます。',
590
+ hint: 'ワークスペース全体(すべてのスライド・アセット・テーマ)をバックアップします。スライドの数は関係ありません。',
572
591
  location: 'バックアップ先',
573
592
  notSet: '未設定',
574
593
  change: '変更',
@@ -585,12 +604,26 @@ export const ja: LrText = {
585
604
  },
586
605
  auto: '毎日自動でバックアップ',
587
606
  autoHint: 'LemonRiver を開いている間、1 日 1 回バックアップします。',
588
- keep: '保持する世代',
589
- keepOption: '{n} 個',
590
- keepSize: '1 回あたり約 {size}、{n} 個で約 {total}',
607
+ retain: '直近 30 日分を保持します。毎日の変更を戻せます。',
608
+ totalSize: 'バックアップの使用量は {size}',
609
+ biggestTitle: '大きいファイル',
610
+ biggestItem: '{name} · {size}',
611
+ biggestItemDeck: '{name} · {size} · 「{deck}」内',
612
+ skipVideos: '100MB を超える動画はバックアップしない',
613
+ skipVideosHint: 'クラウドの容量を節約します。動画はこのパソコンに残ります。',
614
+ skipped: '{n} 本の大きな動画はバックアップしていません',
615
+ restoreSkipped: 'このバックアップには {n} 本の大きな動画が含まれていません',
616
+ exportFull: '完全なバックアップを書き出す…',
617
+ exportTitle: '完全なバックアップを書き出す',
618
+ exportHint: '日付を選んでください。「バックアップから復元…」で開けるファイルになります。',
619
+ exportDone: '{name} を保存しました({size})',
620
+ exportFailed: 'このバックアップを書き出せませんでした。',
621
+ oldFormat: '旧形式',
622
+ snapshotLine: '{decks} 件 · {size} · {when}',
623
+ zipLine: '旧形式 · {size} · {when}',
591
624
  runNow: '今すぐバックアップ',
592
625
  running: '{total} ファイル中 {done} をまとめました',
593
- lastOk: '前回のバックアップ:{when} · {size} · 成功',
626
+ lastOk: '前回のバックアップ:{when} · 今回の追加 {added} · 成功',
594
627
  lastFailed: '前回のバックアップに失敗しました:{error}',
595
628
  tooLarge:
596
629
  'ワークスペースが 4GB を超えており、現在のバックアップ形式では収まりません。大きな動画を素材ライブラリから移動してから、もう一度バックアップしてください。',
@@ -269,6 +269,18 @@ export type LrText = {
269
269
  renameHint: string;
270
270
  nameRequired: string;
271
271
  noMatchesHint: string;
272
+ organizeDrafts: string;
273
+ /** template: "{n} drafts are still unfiled" */
274
+ draftReminder: string;
275
+ organizeTitle: string;
276
+ organizeStay: string;
277
+ organizeNew: string;
278
+ organizeNamePlaceholder: string;
279
+ /** template: "Move {n}" */
280
+ organizeMove: string;
281
+ /** template: "Filed the new deck in "{folder}"" */
282
+ newDeckFiled: string;
283
+ organizeFailed: string;
272
284
  };
273
285
  trash: {
274
286
  title: string;
@@ -300,6 +312,12 @@ export type LrText = {
300
312
  helpTitle: string;
301
313
  helpHint: string;
302
314
  helpOpen: string;
315
+ workspaceTitle: string;
316
+ workspaceHint: string;
317
+ workspaceCopy: string;
318
+ workspaceCopied: string;
319
+ workspaceReveal: string;
320
+ workspaceCopiedToast: string;
303
321
  };
304
322
  agents: {
305
323
  title: string;
@@ -540,6 +558,7 @@ export type LrText = {
540
558
  };
541
559
  share: {
542
560
  open: string;
561
+ openHint: string;
543
562
  menuItem: string;
544
563
  /** template: "Share “{title}”" */
545
564
  dialogTitle: string;
@@ -641,15 +660,35 @@ export type LrText = {
641
660
  };
642
661
  auto: string;
643
662
  autoHint: string;
644
- keep: string;
645
- /** template: "{n} backups" */
646
- keepOption: string;
647
- /** template: "Each backup is about {size}; keeping {n} takes about {total}" */
648
- keepSize: string;
663
+ retain: string;
664
+ /** template: "Backups take {size}" */
665
+ totalSize: string;
666
+ biggestTitle: string;
667
+ /** template: "{name} · {size}" */
668
+ biggestItem: string;
669
+ /** template: "{name} · {size} · in “{deck}”" */
670
+ biggestItemDeck: string;
671
+ skipVideos: string;
672
+ skipVideosHint: string;
673
+ /** template: "{n} large videos were not backed up" */
674
+ skipped: string;
675
+ /** template: "{n} large videos are not in this backup" */
676
+ restoreSkipped: string;
677
+ exportFull: string;
678
+ exportTitle: string;
679
+ exportHint: string;
680
+ /** template: "Saved {name} ({size})" */
681
+ exportDone: string;
682
+ exportFailed: string;
683
+ oldFormat: string;
684
+ /** template: "{decks} decks · {size} · {when}" */
685
+ snapshotLine: string;
686
+ /** template: "Old format · {size} · {when}" */
687
+ zipLine: string;
649
688
  runNow: string;
650
689
  /** template: "Packing {done} / {total} files" */
651
690
  running: string;
652
- /** template: "Last backup: {when} · {size} · succeeded" */
691
+ /** template: "Last backup: {when} · {added} new · succeeded" */
653
692
  lastOk: string;
654
693
  /** template: "Last backup failed: {error}" */
655
694
  lastFailed: string;