@lemonriver/core 1.1.0 → 1.2.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 (92) hide show
  1. package/dist/{build-Dm7gVRhb.js → build-CSkdswfd.js} +1 -1
  2. package/dist/cli/bin.js +5 -5
  3. package/dist/{config-CubOIzrs.js → config-C5-myPY6.js} +129 -2
  4. package/dist/{dev-DgLeXPqp.js → dev-DHtYH8sw.js} +2 -2
  5. package/dist/{mcp-CjYDzcJa.js → mcp-B2UeO1un.js} +1 -1
  6. package/dist/{preview-CxXQpPk5.js → preview-C1B6-umF.js} +1 -1
  7. package/dist/{update-b1dSg_FW.js → update-DzL8fpcI.js} +1 -1
  8. package/dist/vite/index.js +1 -1
  9. package/package.json +5 -2
  10. package/release-notes.json +19 -0
  11. package/src/app/lemonriver/chrome/app-chrome.tsx +52 -0
  12. package/src/app/lemonriver/chrome/sidebar-extras.tsx +8 -1
  13. package/src/app/lemonriver/feedback/dialog.tsx +222 -0
  14. package/src/app/lemonriver/feedback/export.ts +21 -2
  15. package/src/app/lemonriver/feedback/first-success.ts +30 -0
  16. package/src/app/lemonriver/feedback/install.ts +18 -0
  17. package/src/app/lemonriver/feedback/model.ts +88 -0
  18. package/src/app/lemonriver/help/help-page.tsx +16 -1
  19. package/src/app/lemonriver/links.ts +16 -0
  20. package/src/app/lemonriver/settings/backup-section.tsx +13 -0
  21. package/src/app/lemonriver/settings/settings-page.tsx +20 -0
  22. package/src/app/lemonriver/share/editor-share.tsx +6 -3
  23. package/src/app/lemonriver/share/share-dialog.tsx +2 -0
  24. package/src/app/lemonriver/text/en.ts +45 -0
  25. package/src/app/lemonriver/text/es.ts +42 -0
  26. package/src/app/lemonriver/text/ja.ts +41 -0
  27. package/src/app/lemonriver/text/types.ts +44 -0
  28. package/src/app/lemonriver/text/zh-cn.ts +45 -0
  29. package/src/app/lemonriver/text/zh-tw.ts +45 -0
  30. package/src/app/lemonriver/theme/pages.ts +4 -0
  31. package/src/app/lemonriver/update/release-notes.ts +22 -0
  32. package/src/app/lemonriver/update/update-prompt.tsx +28 -4
  33. package/src/app/components/note-markdown.test.tsx +0 -42
  34. package/src/app/components/thumbnail-rail-scroll.test.ts +0 -60
  35. package/src/app/lemonriver/agent-prefs/prefs.test.ts +0 -173
  36. package/src/app/lemonriver/backup/guide.test.ts +0 -45
  37. package/src/app/lemonriver/backup/model.test.ts +0 -108
  38. package/src/app/lemonriver/backup/places.test.ts +0 -154
  39. package/src/app/lemonriver/board/blocks/classify.test.ts +0 -209
  40. package/src/app/lemonriver/board/layout.test.ts +0 -245
  41. package/src/app/lemonriver/board/model/agent-tasks.test.ts +0 -200
  42. package/src/app/lemonriver/board/model/apply-prompt.test.ts +0 -121
  43. package/src/app/lemonriver/board/model/cards.test.ts +0 -332
  44. package/src/app/lemonriver/board/model/changes.test.ts +0 -244
  45. package/src/app/lemonriver/board/model/filter.test.ts +0 -50
  46. package/src/app/lemonriver/board/model/history.test.ts +0 -71
  47. package/src/app/lemonriver/board/model/restructure.test.ts +0 -205
  48. package/src/app/lemonriver/board/model/self-check.test.ts +0 -329
  49. package/src/app/lemonriver/board/model/structure.test.ts +0 -350
  50. package/src/app/lemonriver/board/model/timing.test.ts +0 -113
  51. package/src/app/lemonriver/features.test.ts +0 -49
  52. package/src/app/lemonriver/feedback/pending-toast.test.ts +0 -44
  53. package/src/app/lemonriver/feedback/upload.test.ts +0 -26
  54. package/src/app/lemonriver/help/model.test.ts +0 -179
  55. package/src/app/lemonriver/home/brief.test.ts +0 -38
  56. package/src/app/lemonriver/home/drafts.test.ts +0 -23
  57. package/src/app/lemonriver/home/sorting.test.ts +0 -24
  58. package/src/app/lemonriver/home/time.test.ts +0 -33
  59. package/src/app/lemonriver/outline/files.test.ts +0 -90
  60. package/src/app/lemonriver/outline/model.test.ts +0 -751
  61. package/src/app/lemonriver/public-links.test.ts +0 -32
  62. package/src/app/lemonriver/routes.test.tsx +0 -54
  63. package/src/app/lemonriver/share/codes.test.ts +0 -49
  64. package/src/app/lemonriver/share/compare.test.ts +0 -199
  65. package/src/app/lemonriver/share/folder.test.ts +0 -42
  66. package/src/app/lemonriver/share/guide.test.ts +0 -78
  67. package/src/app/lemonriver/share/naming.test.ts +0 -70
  68. package/src/app/lemonriver/share/paths.test.ts +0 -116
  69. package/src/app/lemonriver/share/pdf.test.ts +0 -79
  70. package/src/app/lemonriver/templates/knobs.test.ts +0 -62
  71. package/src/app/lemonriver/templates/model.test.ts +0 -175
  72. package/src/app/lemonriver/templates/preview-content.test.ts +0 -117
  73. package/src/app/lemonriver/templates/recommend.test.ts +0 -71
  74. package/src/app/lemonriver/text/text.test.ts +0 -90
  75. package/src/app/lemonriver/theme/pages.test.ts +0 -74
  76. package/src/app/lemonriver/theme/themes.test.ts +0 -18
  77. package/src/app/lemonriver/trash/api.test.ts +0 -19
  78. package/src/app/lemonriver/update/prompt.test.ts +0 -84
  79. package/src/app/lemonriver/update/version.test.ts +0 -14
  80. package/src/app/lib/asset-filter.test.ts +0 -176
  81. package/src/app/lib/inspector/fiber.test.ts +0 -154
  82. package/src/app/lib/inspector/geometry.test.ts +0 -324
  83. package/src/app/lib/inspector/text-edit-timeline.test.ts +0 -121
  84. package/src/app/lib/note-markdown.test.ts +0 -147
  85. package/src/app/lib/pptx/css.test.ts +0 -205
  86. package/src/app/lib/pptx/ooxml.test.ts +0 -199
  87. package/src/app/lib/pptx/text-lines.test.ts +0 -82
  88. package/src/app/lib/print-ready.test.ts +0 -32
  89. package/src/app/lib/sdk.test.ts +0 -13
  90. package/src/app/lib/transition.test.ts +0 -31
  91. package/src/app/lib/use-document-title.test.ts +0 -14
  92. package/src/app/lib/utils.test.ts +0 -49
@@ -0,0 +1,30 @@
1
+ const ASKED_KEY = 'lemonriver:feedback-asked';
2
+
3
+ export function feedbackAsked(): boolean {
4
+ try {
5
+ return localStorage.getItem(ASKED_KEY) === '1';
6
+ } catch {
7
+ return true;
8
+ }
9
+ }
10
+
11
+ export function markFeedbackAsked(): void {
12
+ try {
13
+ localStorage.setItem(ASKED_KEY, '1');
14
+ } catch {}
15
+ }
16
+
17
+ type Listener = () => void;
18
+ let listener: Listener | null = null;
19
+
20
+ /** AppChrome owns the toast; everything that finishes an export just pings it. */
21
+ export function onFirstSuccess(notify: Listener): () => void {
22
+ listener = notify;
23
+ return () => {
24
+ if (listener === notify) listener = null;
25
+ };
26
+ }
27
+
28
+ export function noteSuccess(): void {
29
+ listener?.();
30
+ }
@@ -0,0 +1,18 @@
1
+ import type { InstallKind } from './model';
2
+
3
+ export type WorkspaceSignals = { install: InstallKind; os: string | null };
4
+
5
+ /** What the dev server can tell about this machine; the browser cannot. */
6
+ export async function workspaceSignals(): Promise<WorkspaceSignals> {
7
+ try {
8
+ const res = await fetch('/__lr/workspace');
9
+ if (!res.ok) return { install: 'unknown', os: null };
10
+ const body = (await res.json()) as { install?: unknown; os?: unknown };
11
+ return {
12
+ install: body.install === 'app' || body.install === 'cli' ? body.install : 'unknown',
13
+ os: typeof body.os === 'string' && body.os !== '' ? body.os : null,
14
+ };
15
+ } catch {
16
+ return { install: 'unknown', os: null };
17
+ }
18
+ }
@@ -0,0 +1,88 @@
1
+ import type { LrPage } from '../theme/pages';
2
+
3
+ export type FeedbackCategory = 'issue' | 'idea' | 'other';
4
+
5
+ export type FeedbackErrorKind = 'export' | 'update' | 'backup';
6
+
7
+ export type InstallKind = 'app' | 'cli' | 'unknown';
8
+
9
+ export type FeedbackPageKind =
10
+ | 'home'
11
+ | 'editor'
12
+ | 'board'
13
+ | 'outline'
14
+ | 'settings'
15
+ | 'help'
16
+ | 'other';
17
+
18
+ export type FeedbackRequest = {
19
+ category?: FeedbackCategory;
20
+ errorKind?: FeedbackErrorKind | null;
21
+ };
22
+
23
+ export type FeedbackInput = {
24
+ version: string;
25
+ /** The macOS label read from the browser, or null when it could not be read. */
26
+ os: string | null;
27
+ install: InstallKind;
28
+ page: LrPage;
29
+ errorKind: FeedbackErrorKind | null;
30
+ /**
31
+ * Whatever the failure carried. Never written into the text: it may hold a
32
+ * file path or a slide title, so only the kind above reaches the copy.
33
+ */
34
+ error?: unknown;
35
+ };
36
+
37
+ export type FeedbackLabels = {
38
+ fields: { version: string; os: string; install: string; page: string; error: string };
39
+ separator: string;
40
+ unknown: string;
41
+ installs: Record<InstallKind, string>;
42
+ pages: Record<FeedbackPageKind, string>;
43
+ errors: Record<FeedbackErrorKind, string>;
44
+ };
45
+
46
+ const PAGE_KINDS: Readonly<Record<string, FeedbackPageKind>> = {
47
+ home: 'home',
48
+ editor: 'editor',
49
+ board: 'board',
50
+ outline: 'outline',
51
+ settings: 'settings',
52
+ help: 'help',
53
+ };
54
+
55
+ export function feedbackPageKind(page: LrPage): FeedbackPageKind {
56
+ return PAGE_KINDS[page] ?? 'other';
57
+ }
58
+
59
+ /** The label for the version the dev server read; null drops to "unknown". */
60
+ export function osLabelFor(version: string | null): string | null {
61
+ return version === null || version === '' ? null : `macOS ${version}`;
62
+ }
63
+
64
+ /**
65
+ * The only description of a failure the feedback ever carries: which kind it
66
+ * was. Whatever else sits on the error (messages, paths, titles) is ignored.
67
+ */
68
+ export function errorKindOf(errorKind: FeedbackErrorKind | null | undefined): FeedbackErrorKind {
69
+ return errorKind === 'update' || errorKind === 'backup' ? errorKind : 'export';
70
+ }
71
+
72
+ export function buildFeedbackInfo(input: FeedbackInput, labels: FeedbackLabels): string {
73
+ const sep = labels.separator;
74
+ const lines = [
75
+ `${labels.fields.version}${sep}${input.version}`,
76
+ `${labels.fields.os}${sep}${input.os ?? labels.unknown}`,
77
+ `${labels.fields.install}${sep}${labels.installs[input.install]}`,
78
+ `${labels.fields.page}${sep}${labels.pages[feedbackPageKind(input.page)]}`,
79
+ ];
80
+ if (input.errorKind) {
81
+ lines.push(`${labels.fields.error}${sep}${labels.errors[input.errorKind]}`);
82
+ }
83
+ return lines.join('\n');
84
+ }
85
+
86
+ export function mailtoHref(email: string, subject: string, body: string): string {
87
+ return `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
88
+ }
@@ -4,6 +4,7 @@ import { Link, useLocation } from 'react-router-dom';
4
4
  import { format } from '@/lib/use-locale';
5
5
  import { cn } from '@/lib/utils';
6
6
  import { markGuideSeen } from '../guide/state';
7
+ import { SUPPORT_URL } from '../links';
7
8
  import { useLrText } from '../text';
8
9
  import { useReduceMotionSetting } from '../theme/motion';
9
10
  import {
@@ -192,6 +193,17 @@ function Index({ help }: { help: HelpContent }) {
192
193
  );
193
194
  }
194
195
 
196
+ /** Appends the support line to the guide's last section, only when there is somewhere to go. */
197
+ function withSupport(sections: HelpSection[], text: string): HelpSection[] {
198
+ if (SUPPORT_URL === '') return sections;
199
+ const lastGuide = [...sections].reverse().find((section) => section.parent === 'guide');
200
+ if (!lastGuide) return sections;
201
+ const block: HelpBlock = { kind: 'p', text: `${text} ${SUPPORT_URL}` };
202
+ return sections.map((section) =>
203
+ section === lastGuide ? { ...section, blocks: [...section.blocks, block] } : section,
204
+ );
205
+ }
206
+
195
207
  export function HelpPage() {
196
208
  const lr = useLrText();
197
209
  const help = lr.help;
@@ -200,7 +212,10 @@ export function HelpPage() {
200
212
  const [query, setQuery] = useState('');
201
213
  const [highlight, setHighlight] = useState<string | null>(null);
202
214
 
203
- const sections = useMemo(() => filterHelpSections(help.sections, query), [help.sections, query]);
215
+ const sections = useMemo(
216
+ () => filterHelpSections(withSupport(help.sections, lr.settings.supportText), query),
217
+ [help.sections, query, lr.settings.supportText],
218
+ );
204
219
  const searching = query.trim() !== '';
205
220
 
206
221
  const anchor = location.hash.replace(/^#/, '');
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The only place the feedback and support destinations live. Empty means the
3
+ * matching control stays hidden; filling it in needs no other change.
4
+ *
5
+ * Dev builds also read `window.__lrLinks` so the browser tests can try both the
6
+ * set and the empty state without a rebuild. Production ignores it.
7
+ */
8
+ function link(key: 'form' | 'email' | 'support', fallback: string): string {
9
+ if (!import.meta.env.DEV) return fallback;
10
+ const overrides = (globalThis as { __lrLinks?: Record<string, string | undefined> }).__lrLinks;
11
+ return overrides?.[key] ?? fallback;
12
+ }
13
+
14
+ export const FEEDBACK_FORM_URL = link('form', 'https://wj.qq.com/s2/28661011/5ixj');
15
+ export const FEEDBACK_EMAIL = link('email', 'lemonriver.slide@gmail.com');
16
+ export const SUPPORT_URL = link('support', '');
@@ -32,6 +32,7 @@ import {
32
32
  type PrefsSnapshot,
33
33
  } from '../backup/model';
34
34
  import { placeLabel } from '../backup/places';
35
+ import { openFeedback } from '../feedback/dialog';
35
36
  import { helpAnchorForPlace } from '../help/model';
36
37
  import { useLrText } from '../text';
37
38
  import { useReduceMotionSetting } from '../theme/motion';
@@ -417,6 +418,18 @@ export function BackupSection() {
417
418
  {b.reveal}
418
419
  </button>
419
420
  )}
421
+
422
+ {!running && last && !last.ok && (
423
+ <Button
424
+ type="button"
425
+ variant="outline"
426
+ size="sm"
427
+ data-lr-feedback-this
428
+ onClick={() => openFeedback({ category: 'issue', errorKind: 'backup' })}
429
+ >
430
+ {lr.feedback.feedbackThis}
431
+ </Button>
432
+ )}
420
433
  </div>
421
434
 
422
435
  {notice !== '' && (
@@ -9,6 +9,7 @@ import { AgentProvidersSection } from '../agent-providers/section';
9
9
  import { HelperMascot, type HelperRole } from '../brand/mascot';
10
10
  import { isFeatureEnabled } from '../features';
11
11
  import { GUIDE_SEEN_KEY } from '../guide/state';
12
+ import { SUPPORT_URL } from '../links';
12
13
  import { useLrText } from '../text';
13
14
  import { setReduceMotionSetting, useReduceMotionSetting } from '../theme/motion';
14
15
  import { LR_THEME_CHOICES, type LrThemeChoice } from '../theme/themes';
@@ -279,6 +280,25 @@ export function SettingsPage() {
279
280
  </button>
280
281
  </section>
281
282
  )}
283
+
284
+ {SUPPORT_URL !== '' && (
285
+ <section
286
+ data-lr-settings-support
287
+ className="mt-5 rounded-[16px] border border-border bg-card px-6 py-5 shadow-[var(--lr-shadow-1)]"
288
+ >
289
+ <h2 className="text-[16px] font-semibold">{lr.settings.supportTitle}</h2>
290
+ <p className="mt-1 text-[14px] text-muted-foreground">{lr.settings.supportText}</p>
291
+ <a
292
+ data-lr-settings-support-link
293
+ href={SUPPORT_URL}
294
+ target="_blank"
295
+ rel="noreferrer"
296
+ className="mt-3 inline-block rounded-[10px] border border-border bg-card px-3 py-1.5 text-[13px] font-medium outline-none hover:border-[var(--lr-text-3)] focus-visible:ring-2 focus-visible:ring-ring/40"
297
+ >
298
+ {lr.settings.supportButton}
299
+ </a>
300
+ </section>
301
+ )}
282
302
  </div>
283
303
  );
284
304
  }
@@ -37,13 +37,16 @@ export function ShareHeaderButton({ onOpen }: { onOpen: () => void }) {
37
37
  render={
38
38
  <Button
39
39
  size="sm"
40
- variant="outline"
40
+ variant="ghost"
41
41
  aria-keyshortcuts="S"
42
+ aria-label={lr.share.open}
42
43
  onClick={onOpen}
43
- className="border-[var(--lr-accent)] bg-[var(--lr-accent-soft)] text-[var(--lr-on-secondary)] hover:border-[var(--lr-accent)] hover:bg-[var(--lr-accent-soft)]"
44
44
  >
45
45
  <Share2 className="size-3.5" />
46
- {lr.share.open}
46
+ <span className="hidden lg:inline">{lr.share.open}</span>
47
+ <kbd className="ml-1 hidden rounded-[3px] bg-foreground/10 px-1 font-mono text-[9.5px] tracking-[0.04em] lg:inline">
48
+ S
49
+ </kbd>
47
50
  </Button>
48
51
  }
49
52
  />
@@ -15,6 +15,7 @@ import { format, useLocale } from '@/lib/use-locale';
15
15
  import { CANVAS_HEIGHT, CANVAS_WIDTH, type SlideModule } from '../../lib/sdk';
16
16
  import { loadSlide } from '../../lib/slides';
17
17
  import { isFeatureEnabled } from '../features';
18
+ import { noteSuccess } from '../feedback/first-success';
18
19
  import { useLrText } from '../text';
19
20
  import { CaptureCancelled, captureDeck, toBase64 } from './capture';
20
21
  import { appVersion, packShare, revealShared } from './client';
@@ -153,6 +154,7 @@ export function ShareDialog({
153
154
  workFiles: packed.workFiles,
154
155
  });
155
156
  setPhase('done');
157
+ noteSuccess();
156
158
  } catch (err) {
157
159
  if (err instanceof CaptureCancelled || controller.signal.aborted) {
158
160
  setPhase('idle');
@@ -221,6 +221,10 @@ export const enHelp: LrText['help'] = {
221
221
  strong: 'My comments did nothing',
222
222
  text: ': comments are only notes until you tell the agent to “apply comments”.',
223
223
  },
224
+ {
225
+ strong: 'I want to suggest something or something went wrong',
226
+ text: ': choose “Feedback” in the sidebar.',
227
+ },
224
228
  ],
225
229
  },
226
230
  ],
@@ -954,6 +958,9 @@ export const en: LrText = {
954
958
  workspaceCopied: 'Copied',
955
959
  workspaceReveal: 'Show in Finder',
956
960
  workspaceCopiedToast: 'Workspace folder path copied',
961
+ supportTitle: 'Support LemonRiver',
962
+ supportText: 'LemonRiver is free to use. If it helps you, you can buy us a coffee.',
963
+ supportButton: 'Buy Me a Coffee',
957
964
  },
958
965
  agents: {
959
966
  title: 'Agents',
@@ -977,6 +984,42 @@ export const en: LrText = {
977
984
  uploadTooLargeHint: 'Compress the image or pick a smaller file, then upload again.',
978
985
  confirmWho: 'Lemon needs your call',
979
986
  confirmReview: 'Review needs your call',
987
+ sidebar: 'Feedback',
988
+ title: 'Feedback',
989
+ intro: 'These details go along with it. Your slides and file locations never do.',
990
+ categoryIssue: 'Something went wrong',
991
+ categoryIdea: 'A feature I want',
992
+ categoryOther: 'Something else',
993
+ fieldVersion: 'Version',
994
+ fieldOs: 'System',
995
+ fieldInstall: 'Installed with',
996
+ fieldPage: 'Page',
997
+ fieldError: 'Error',
998
+ separator: ': ',
999
+ unknown: 'Unknown',
1000
+ installApp: 'Installer',
1001
+ installCli: 'Command line',
1002
+ pageHome: 'Home',
1003
+ pageEditor: 'Editor',
1004
+ pageBoard: 'Story board',
1005
+ pageOutline: 'Outline',
1006
+ pageSettings: 'Settings',
1007
+ pageHelp: 'Help',
1008
+ pageOther: 'Another page',
1009
+ errorExport: 'Export failed',
1010
+ errorUpdate: 'Update failed',
1011
+ errorBackup: 'Backup failed',
1012
+ openForm: 'Open the form',
1013
+ sendEmail: 'Send email',
1014
+ copyInfo: 'Copy these details',
1015
+ copied: 'Copied. Paste it into the form.',
1016
+ noChannel: 'Feedback is not open yet.',
1017
+ mailSubject: 'LemonRiver feedback: {category}',
1018
+ mailBodyPlaceholder: '(Write your feedback here)',
1019
+ feedbackThis: 'Report this problem',
1020
+ firstSuccessTitle: 'Did that go smoothly?',
1021
+ smooth: 'Smooth',
1022
+ notSmooth: 'Not quite',
980
1023
  },
981
1024
  prefs: {
982
1025
  title: 'Agent preferences',
@@ -1041,6 +1084,8 @@ export const en: LrText = {
1041
1084
  'Restart the server now. Until you do, pages you have not opened yet may not open.',
1042
1085
  updatedManual:
1043
1086
  'Run the start command again. Until you do, pages you have not opened yet may not open.',
1087
+ releaseNotes: 'This version: {first}',
1088
+ releaseNotesMore: 'This version: {first} and {n} more',
1044
1089
  restartNeeded: 'LemonRiver has updated. Restart the server to open this page.',
1045
1090
  restart: 'Restart server',
1046
1091
  failed: "The update didn't go through",
@@ -299,6 +299,9 @@ export const es: LrText = {
299
299
  workspaceCopied: 'Copiado',
300
300
  workspaceReveal: 'Mostrar en Finder',
301
301
  workspaceCopiedToast: 'Ruta de la carpeta del espacio de trabajo copiada',
302
+ supportTitle: 'Apoya a LemonRiver',
303
+ supportText: 'LemonRiver es gratis. Si te resulta útil, invítanos a un café.',
304
+ supportButton: 'Buy Me a Coffee',
302
305
  },
303
306
  agents: {
304
307
  title: 'Agentes',
@@ -323,6 +326,43 @@ export const es: LrText = {
323
326
  uploadTooLargeHint: 'Comprime la imagen o elige un archivo más pequeño y súbelo de nuevo.',
324
327
  confirmWho: 'Lemon necesita tu decisión',
325
328
  confirmReview: 'Revisión necesita tu decisión',
329
+ sidebar: 'Comentarios',
330
+ title: 'Comentarios',
331
+ intro:
332
+ 'Se envían estos datos. Nunca el contenido de tus diapositivas ni dónde están los archivos.',
333
+ categoryIssue: 'Algo ha fallado',
334
+ categoryIdea: 'Una función que quiero',
335
+ categoryOther: 'Otro',
336
+ fieldVersion: 'Versión',
337
+ fieldOs: 'Sistema',
338
+ fieldInstall: 'Instalación',
339
+ fieldPage: 'Página',
340
+ fieldError: 'Error',
341
+ separator: ': ',
342
+ unknown: 'Desconocido',
343
+ installApp: 'Instalador',
344
+ installCli: 'Línea de comandos',
345
+ pageHome: 'Inicio',
346
+ pageEditor: 'Editor',
347
+ pageBoard: 'Tablero de la historia',
348
+ pageOutline: 'Esquema',
349
+ pageSettings: 'Ajustes',
350
+ pageHelp: 'Ayuda',
351
+ pageOther: 'Otra página',
352
+ errorExport: 'Error al exportar',
353
+ errorUpdate: 'Error al actualizar',
354
+ errorBackup: 'Error al copiar',
355
+ openForm: 'Abrir el formulario',
356
+ sendEmail: 'Enviar correo',
357
+ copyInfo: 'Copiar estos datos',
358
+ copied: 'Copiado. Pégalo en el formulario.',
359
+ noChannel: 'Los comentarios aún no están abiertos.',
360
+ mailSubject: 'Comentarios sobre LemonRiver: {category}',
361
+ mailBodyPlaceholder: '(Escribe aquí tus comentarios)',
362
+ feedbackThis: 'Informar de este problema',
363
+ firstSuccessTitle: '¿Ha ido bien?',
364
+ smooth: 'Sí',
365
+ notSmooth: 'No',
326
366
  },
327
367
  prefs: {
328
368
  title: 'Preferencias del agente',
@@ -387,6 +427,8 @@ export const es: LrText = {
387
427
  'Reinicia el servidor ahora. Hasta entonces, puede que las páginas que aún no has abierto no se abran.',
388
428
  updatedManual:
389
429
  'Vuelve a ejecutar el comando de inicio. Hasta entonces, puede que las páginas que aún no has abierto no se abran.',
430
+ releaseNotes: 'Esta versión: {first}',
431
+ releaseNotesMore: 'Esta versión: {first} y {n} más',
390
432
  restartNeeded: 'LemonRiver se ha actualizado. Reinicia el servidor para abrir esta página.',
391
433
  restart: 'Reiniciar servidor',
392
434
  failed: 'La actualización no se completó',
@@ -296,6 +296,9 @@ export const ja: LrText = {
296
296
  workspaceCopied: 'コピーしました',
297
297
  workspaceReveal: 'Finder で表示',
298
298
  workspaceCopiedToast: 'ワークスペースフォルダのパスをコピーしました',
299
+ supportTitle: 'LemonRiver を応援',
300
+ supportText: 'LemonRiver は無料で使えます。役に立ったら、コーヒーをおごってください。',
301
+ supportButton: 'Buy Me a Coffee',
299
302
  },
300
303
  agents: {
301
304
  title: 'エージェント',
@@ -320,6 +323,42 @@ export const ja: LrText = {
320
323
  '画像を圧縮するか小さいファイルを選んで、もう一度アップロードしてください。',
321
324
  confirmWho: 'Lemon が確認したいこと',
322
325
  confirmReview: 'チェックが確認したいこと',
326
+ sidebar: 'フィードバック',
327
+ title: 'フィードバック',
328
+ intro: '次の情報を一緒に送ります。スライドの内容やファイルの場所は送りません。',
329
+ categoryIssue: '困ったこと',
330
+ categoryIdea: 'ほしい機能',
331
+ categoryOther: 'その他',
332
+ fieldVersion: 'LemonRiver のバージョン',
333
+ fieldOs: 'システム',
334
+ fieldInstall: 'インストール方法',
335
+ fieldPage: 'ページ',
336
+ fieldError: 'エラー',
337
+ separator: ':',
338
+ unknown: '不明',
339
+ installApp: 'インストーラー',
340
+ installCli: 'コマンドライン',
341
+ pageHome: 'ホーム',
342
+ pageEditor: 'エディター',
343
+ pageBoard: 'ストーリーボード',
344
+ pageOutline: 'アウトライン',
345
+ pageSettings: '設定',
346
+ pageHelp: 'ヘルプ',
347
+ pageOther: 'その他のページ',
348
+ errorExport: 'エクスポート失敗',
349
+ errorUpdate: '更新失敗',
350
+ errorBackup: 'バックアップ失敗',
351
+ openForm: 'フォームを開く',
352
+ sendEmail: 'メールを送る',
353
+ copyInfo: 'この情報をコピー',
354
+ copied: 'コピーしました。フォームに貼り付けてください。',
355
+ noChannel: 'フィードバックの窓口はまだ開いていません。',
356
+ mailSubject: 'LemonRiver へのフィードバック:{category}',
357
+ mailBodyPlaceholder: '(ここにフィードバックを書いてください)',
358
+ feedbackThis: 'この問題を報告',
359
+ firstSuccessTitle: 'うまくいきましたか?',
360
+ smooth: 'うまくいった',
361
+ notSmooth: 'うまくいかなかった',
323
362
  },
324
363
  prefs: {
325
364
  title: 'Agent の設定',
@@ -384,6 +423,8 @@ export const ja: LrText = {
384
423
  '今すぐサーバーを再起動してください。再起動するまで、まだ開いていないページが開けないことがあります。',
385
424
  updatedManual:
386
425
  '起動コマンドをもう一度実行してください。それまでは、まだ開いていないページが開けないことがあります。',
426
+ releaseNotes: 'このバージョン:{first}',
427
+ releaseNotesMore: 'このバージョン:{first} ほか {n} 件',
387
428
  restartNeeded: 'LemonRiver を更新しました。このページを開くにはサーバーを再起動してください。',
388
429
  restart: 'サーバーを再起動',
389
430
  failed: '更新できませんでした',
@@ -318,6 +318,9 @@ export type LrText = {
318
318
  workspaceCopied: string;
319
319
  workspaceReveal: string;
320
320
  workspaceCopiedToast: string;
321
+ supportTitle: string;
322
+ supportText: string;
323
+ supportButton: string;
321
324
  };
322
325
  agents: {
323
326
  title: string;
@@ -341,6 +344,43 @@ export type LrText = {
341
344
  uploadTooLargeHint: string;
342
345
  confirmWho: string;
343
346
  confirmReview: string;
347
+ sidebar: string;
348
+ title: string;
349
+ intro: string;
350
+ categoryIssue: string;
351
+ categoryIdea: string;
352
+ categoryOther: string;
353
+ fieldVersion: string;
354
+ fieldOs: string;
355
+ fieldInstall: string;
356
+ fieldPage: string;
357
+ fieldError: string;
358
+ separator: string;
359
+ unknown: string;
360
+ installApp: string;
361
+ installCli: string;
362
+ pageHome: string;
363
+ pageEditor: string;
364
+ pageBoard: string;
365
+ pageOutline: string;
366
+ pageSettings: string;
367
+ pageHelp: string;
368
+ pageOther: string;
369
+ errorExport: string;
370
+ errorUpdate: string;
371
+ errorBackup: string;
372
+ openForm: string;
373
+ sendEmail: string;
374
+ copyInfo: string;
375
+ copied: string;
376
+ noChannel: string;
377
+ /** template: "LemonRiver feedback: {category}" */
378
+ mailSubject: string;
379
+ mailBodyPlaceholder: string;
380
+ feedbackThis: string;
381
+ firstSuccessTitle: string;
382
+ smooth: string;
383
+ notSmooth: string;
344
384
  };
345
385
  prefs: {
346
386
  title: string;
@@ -407,6 +447,10 @@ export type LrText = {
407
447
  updated: string;
408
448
  updatedHint: string;
409
449
  updatedManual: string;
450
+ /** template: "This version: {first}" */
451
+ releaseNotes: string;
452
+ /** template: "This version: {first} and {n} more" */
453
+ releaseNotesMore: string;
410
454
  restartNeeded: string;
411
455
  restart: string;
412
456
  failed: string;
@@ -218,6 +218,10 @@ export const zhCN: LrText = {
218
218
  strong: '评论没生效',
219
219
  text: ':评论只是记下来,要跟 Agent 说「应用评论」才会改。',
220
220
  },
221
+ {
222
+ strong: '想提意见或遇到问题',
223
+ text: ':点侧栏的「反馈」。',
224
+ },
221
225
  ],
222
226
  },
223
227
  ],
@@ -914,6 +918,9 @@ export const zhCN: LrText = {
914
918
  workspaceCopied: '已复制',
915
919
  workspaceReveal: '在访达里显示',
916
920
  workspaceCopiedToast: '已复制工作区文件夹地址',
921
+ supportTitle: '支持 LemonRiver',
922
+ supportText: 'LemonRiver 免费使用。觉得好用的话,可以请我们喝杯咖啡。',
923
+ supportButton: 'Buy Me a Coffee',
917
924
  },
918
925
  agents: {
919
926
  title: 'Agent',
@@ -935,6 +942,42 @@ export const zhCN: LrText = {
935
942
  uploadTooLargeHint: '压缩图片或者换一个小一点的文件,再重新上传。',
936
943
  confirmWho: '柠檬需要你拿主意',
937
944
  confirmReview: '核对需要你拿主意',
945
+ sidebar: '反馈',
946
+ title: '反馈',
947
+ intro: '会一起带上下面这些信息,不带你的幻灯片内容和文件位置。',
948
+ categoryIssue: '遇到问题',
949
+ categoryIdea: '想要的功能',
950
+ categoryOther: '其它',
951
+ fieldVersion: 'LemonRiver 版本',
952
+ fieldOs: '系统',
953
+ fieldInstall: '安装方式',
954
+ fieldPage: '页面',
955
+ fieldError: '出错',
956
+ separator: ':',
957
+ unknown: '未知',
958
+ installApp: '安装包',
959
+ installCli: '命令行',
960
+ pageHome: '首页',
961
+ pageEditor: '编辑页',
962
+ pageBoard: '故事看板',
963
+ pageOutline: '大纲',
964
+ pageSettings: '设置',
965
+ pageHelp: '帮助',
966
+ pageOther: '其它页面',
967
+ errorExport: '导出失败',
968
+ errorUpdate: '更新失败',
969
+ errorBackup: '备份失败',
970
+ openForm: '填在线表单',
971
+ sendEmail: '发邮件',
972
+ copyInfo: '复制这些信息',
973
+ copied: '信息已复制,粘贴到表单里就行',
974
+ noChannel: '反馈渠道还没开通',
975
+ mailSubject: 'LemonRiver 反馈:{category}',
976
+ mailBodyPlaceholder: '(在这里写你的反馈)',
977
+ feedbackThis: '反馈这个问题',
978
+ firstSuccessTitle: '这次顺利吗?',
979
+ smooth: '顺利',
980
+ notSmooth: '不顺利',
938
981
  },
939
982
  prefs: {
940
983
  title: 'Agent 偏好',
@@ -995,6 +1038,8 @@ export const zhCN: LrText = {
995
1038
  updated: '已更新到 {version}',
996
1039
  updatedHint: '现在重启服务。重启之前,还没打开过的页面可能打不开。',
997
1040
  updatedManual: '重新运行启动命令。在那之前,还没打开过的页面可能打不开。',
1041
+ releaseNotes: '这一版:{first}',
1042
+ releaseNotesMore: '这一版:{first} 等 {n} 项',
998
1043
  restartNeeded: 'LemonRiver 已更新,重启服务后才能打开这一页',
999
1044
  restart: '重启服务',
1000
1045
  failed: '更新没成功',