@open-slide/core 1.15.2 → 1.15.3
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-CTCrO_M-.js → build-DaL4Gjn-.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-HXg3KTTo.js → config-CCHio3pk.js} +39 -11
- package/dist/{config-CE2sKgqH.d.ts → config-DIvIP8vY.d.ts} +1 -1
- package/dist/{dev-2FgsKkoD.js → dev-DLRQoCkT.js} +1 -1
- package/dist/{format-afijk371.js → format-CxmsgcBh.js} +8 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{preview-Bdzz3PTc.js → preview-D3qVGc0S.js} +1 -1
- package/dist/{types-GA4ekcYB.d.ts → types-Di7nvL8V.d.ts} +2 -0
- package/dist/vite/index.d.ts +2 -2
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
- package/src/app/routes/presenter.tsx +75 -17
- package/src/locale/en.ts +2 -0
- package/src/locale/ja.ts +2 -0
- package/src/locale/types.ts +2 -0
- package/src/locale/zh-cn.ts +2 -0
- package/src/locale/zh-tw.ts +2 -0
package/dist/cli/bin.js
CHANGED
|
@@ -57,15 +57,15 @@ async function run(argv) {
|
|
|
57
57
|
program.name("open-slide").description("Author slides — we handle the Vite/React stack.").version(version, "-v, --version", "print version").helpOption("-h, --help", "show help").showHelpAfterError(chalk.dim("(run `open-slide --help` for usage)"));
|
|
58
58
|
program.command("dev").description("Start the dev server").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").option("--no-skills-check", "skip the built-in skills drift check").action(async (flags) => {
|
|
59
59
|
if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
|
|
60
|
-
const { dev } = await import("../dev-
|
|
60
|
+
const { dev } = await import("../dev-DLRQoCkT.js");
|
|
61
61
|
await dev(flags);
|
|
62
62
|
});
|
|
63
63
|
program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
|
|
64
|
-
const { build } = await import("../build-
|
|
64
|
+
const { build } = await import("../build-DaL4Gjn-.js");
|
|
65
65
|
await build(flags);
|
|
66
66
|
});
|
|
67
67
|
program.command("preview").description("Preview the production build").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").action(async (flags) => {
|
|
68
|
-
const { preview } = await import("../preview-
|
|
68
|
+
const { preview } = await import("../preview-D3qVGc0S.js");
|
|
69
69
|
await preview(flags);
|
|
70
70
|
});
|
|
71
71
|
program.command("sync:skills").description("Sync built-in skills from @open-slide/core into this workspace").option("--dry-run", "show what would change without writing").action(async (flags) => {
|
|
@@ -3616,6 +3616,26 @@ function locTagsPlugin(opts) {
|
|
|
3616
3616
|
};
|
|
3617
3617
|
}
|
|
3618
3618
|
|
|
3619
|
+
//#endregion
|
|
3620
|
+
//#region src/vite/recent-writes.ts
|
|
3621
|
+
const recentWrites = new Map();
|
|
3622
|
+
const RECENT_WRITE_WINDOW_MS = 1500;
|
|
3623
|
+
/** Record that `file` was just written by us. */
|
|
3624
|
+
function recordWrite(file, now = Date.now()) {
|
|
3625
|
+
recentWrites.set(file, now);
|
|
3626
|
+
}
|
|
3627
|
+
/**
|
|
3628
|
+
* True if `file` was recorded within the recent-write window. Expired entries
|
|
3629
|
+
* are pruned so a stale path can no longer suppress a later genuine edit.
|
|
3630
|
+
*/
|
|
3631
|
+
function hasRecentWrite(file, now = Date.now()) {
|
|
3632
|
+
const ts = recentWrites.get(file);
|
|
3633
|
+
if (ts == null) return false;
|
|
3634
|
+
if (now - ts < RECENT_WRITE_WINDOW_MS) return true;
|
|
3635
|
+
recentWrites.delete(file);
|
|
3636
|
+
return false;
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3619
3639
|
//#endregion
|
|
3620
3640
|
//#region src/vite/notes-plugin.ts
|
|
3621
3641
|
function parseSource(source) {
|
|
@@ -3735,17 +3755,11 @@ function applyNotesEdit(source, index, text) {
|
|
|
3735
3755
|
function notesPlugin(opts) {
|
|
3736
3756
|
const userCwd = opts.userCwd;
|
|
3737
3757
|
const slidesDir = opts.slidesDir ?? "slides";
|
|
3738
|
-
const recentWrites = new Map();
|
|
3739
|
-
const RECENT_WRITE_WINDOW_MS = 1500;
|
|
3740
3758
|
return {
|
|
3741
3759
|
name: "open-slide:notes",
|
|
3742
3760
|
apply: "serve",
|
|
3743
3761
|
handleHotUpdate(ctx) {
|
|
3744
|
-
|
|
3745
|
-
if (ts != null && Date.now() - ts < RECENT_WRITE_WINDOW_MS) {
|
|
3746
|
-
recentWrites.delete(ctx.file);
|
|
3747
|
-
return [];
|
|
3748
|
-
}
|
|
3762
|
+
if (hasRecentWrite(ctx.file)) return [];
|
|
3749
3763
|
return void 0;
|
|
3750
3764
|
},
|
|
3751
3765
|
configureServer(server) {
|
|
@@ -3772,7 +3786,7 @@ function notesPlugin(opts) {
|
|
|
3772
3786
|
if (!result.ok) return json(res, result.status, { error: result.error });
|
|
3773
3787
|
const changed = result.source !== source;
|
|
3774
3788
|
if (changed) {
|
|
3775
|
-
|
|
3789
|
+
recordWrite(file);
|
|
3776
3790
|
await fs.writeFile(file, result.source, "utf8");
|
|
3777
3791
|
}
|
|
3778
3792
|
return json(res, 200, {
|
|
@@ -3877,8 +3891,9 @@ function parseCreatedAtMs(iso) {
|
|
|
3877
3891
|
const ms = Date.parse(iso);
|
|
3878
3892
|
return Number.isFinite(ms) ? ms : null;
|
|
3879
3893
|
}
|
|
3894
|
+
const warnedInvalidSlideIds = new Set();
|
|
3880
3895
|
async function generateSlidesModule(files, slidesRoot, isDev) {
|
|
3881
|
-
const
|
|
3896
|
+
const scanned = await Promise.all(files.map(async (abs) => {
|
|
3882
3897
|
const id = toId(abs, slidesRoot);
|
|
3883
3898
|
const importPath = isDev ? `@fs/${normalizePath(abs).replace(/^\/+/, "")}` : abs;
|
|
3884
3899
|
const meta = await readSlideMeta(abs);
|
|
@@ -3889,6 +3904,8 @@ async function generateSlidesModule(files, slidesRoot, isDev) {
|
|
|
3889
3904
|
createdAt: parseCreatedAtMs(meta.createdAt)
|
|
3890
3905
|
};
|
|
3891
3906
|
}));
|
|
3907
|
+
const entries = scanned.filter((e) => SLIDE_ID_RE.test(e.id));
|
|
3908
|
+
const ignored = scanned.filter((e) => !SLIDE_ID_RE.test(e.id)).map((e) => e.id);
|
|
3892
3909
|
const ids = JSON.stringify(entries.map((e) => e.id).sort());
|
|
3893
3910
|
const themesMap = {};
|
|
3894
3911
|
const createdAtMap = {};
|
|
@@ -3915,7 +3932,7 @@ if (import.meta.hot) {
|
|
|
3915
3932
|
const importExpr = isDev ? `import(/* @vite-ignore */ import.meta.env.BASE_URL + ${JSON.stringify(`${e.importPath}?t=`)} + slideImportTokens[${JSON.stringify(e.id)}])` : `import(${JSON.stringify(e.importPath)})`;
|
|
3916
3933
|
return ` case ${JSON.stringify(e.id)}: return ${importExpr};`;
|
|
3917
3934
|
}).join("\n");
|
|
3918
|
-
|
|
3935
|
+
const code = `// virtual:open-slide/slides — generated
|
|
3919
3936
|
export const slideIds = ${ids};
|
|
3920
3937
|
export const slideThemes = ${themesJson};
|
|
3921
3938
|
export const slideCreatedAt = ${createdAtJson};
|
|
@@ -3928,6 +3945,10 @@ ${cases}
|
|
|
3928
3945
|
}
|
|
3929
3946
|
}
|
|
3930
3947
|
`;
|
|
3948
|
+
return {
|
|
3949
|
+
code,
|
|
3950
|
+
ignored
|
|
3951
|
+
};
|
|
3931
3952
|
}
|
|
3932
3953
|
function openSlidePlugin(opts) {
|
|
3933
3954
|
const { userCwd, config, coreVersion } = opts;
|
|
@@ -3976,7 +3997,13 @@ function openSlidePlugin(opts) {
|
|
|
3976
3997
|
async load(id) {
|
|
3977
3998
|
if (id === resolved$1(SLIDES_VMOD)) {
|
|
3978
3999
|
const files = await findSlides(userCwd, slidesDir);
|
|
3979
|
-
|
|
4000
|
+
const { code, ignored } = await generateSlidesModule(files, slidesRoot, isDev);
|
|
4001
|
+
for (const slideId of ignored) {
|
|
4002
|
+
if (warnedInvalidSlideIds.has(slideId)) continue;
|
|
4003
|
+
warnedInvalidSlideIds.add(slideId);
|
|
4004
|
+
this.warn(`Ignoring slide folder "${slideId}": slide ids must match ${SLIDE_ID_RE} (lowercase/uppercase letters, digits, "-", "_"). Rename the folder under "${slidesDir}/" to a kebab-case id so it appears in the browser and can be moved into folders.`);
|
|
4005
|
+
}
|
|
4006
|
+
return code;
|
|
3980
4007
|
}
|
|
3981
4008
|
if (id === resolved$1(CONFIG_VMOD)) {
|
|
3982
4009
|
const userBuild = config.build ?? {};
|
|
@@ -4005,6 +4032,7 @@ function openSlidePlugin(opts) {
|
|
|
4005
4032
|
handleHotUpdate(ctx) {
|
|
4006
4033
|
const slideId = slideIdForEntry(ctx.file);
|
|
4007
4034
|
if (!slideId) return;
|
|
4035
|
+
if (hasRecentWrite(ctx.file)) return [];
|
|
4008
4036
|
queueSlideChanged(ctx.server, slideId);
|
|
4009
4037
|
return [];
|
|
4010
4038
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./design-cpzS8aud.js";
|
|
2
|
-
import { DEV_SUPERVISED_ENV, RESTART_EXIT_CODE, createViteConfig } from "./config-
|
|
2
|
+
import { DEV_SUPERVISED_ENV, RESTART_EXIT_CODE, createViteConfig } from "./config-CCHio3pk.js";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
@@ -140,6 +140,8 @@ const en = {
|
|
|
140
140
|
lastSlide: "Last slide",
|
|
141
141
|
endOfDeck: "End of deck",
|
|
142
142
|
speakerNotes: "Speaker notes",
|
|
143
|
+
notesTextSmaller: "Make notes text smaller",
|
|
144
|
+
notesTextLarger: "Make notes text larger",
|
|
143
145
|
noNotesPrefix: "No speaker notes for this slide. Add ",
|
|
144
146
|
noNotesSuffix: " to your slide module to see notes here.",
|
|
145
147
|
blackScreen: "Black screen",
|
|
@@ -575,6 +577,8 @@ const ja = {
|
|
|
575
577
|
lastSlide: "最後のスライド",
|
|
576
578
|
endOfDeck: "デッキの終わり",
|
|
577
579
|
speakerNotes: "発表者ノート",
|
|
580
|
+
notesTextSmaller: "ノートの文字を小さく",
|
|
581
|
+
notesTextLarger: "ノートの文字を大きく",
|
|
578
582
|
noNotesPrefix: "このスライドには発表者ノートがありません。スライドモジュールに ",
|
|
579
583
|
noNotesSuffix: " を追加するとここに表示されます。",
|
|
580
584
|
blackScreen: "黒い画面",
|
|
@@ -1010,6 +1014,8 @@ const zhCN = {
|
|
|
1010
1014
|
lastSlide: "最后一张",
|
|
1011
1015
|
endOfDeck: "演示结束",
|
|
1012
1016
|
speakerNotes: "演讲备注",
|
|
1017
|
+
notesTextSmaller: "缩小备注文字",
|
|
1018
|
+
notesTextLarger: "放大备注文字",
|
|
1013
1019
|
noNotesPrefix: "该幻灯片没有演讲备注。在你的幻灯片模块中添加 ",
|
|
1014
1020
|
noNotesSuffix: " 即可在此查看备注。",
|
|
1015
1021
|
blackScreen: "黑屏",
|
|
@@ -1445,6 +1451,8 @@ const zhTW = {
|
|
|
1445
1451
|
lastSlide: "最後一張",
|
|
1446
1452
|
endOfDeck: "簡報結束",
|
|
1447
1453
|
speakerNotes: "演講備忘",
|
|
1454
|
+
notesTextSmaller: "縮小備忘文字",
|
|
1455
|
+
notesTextLarger: "放大備忘文字",
|
|
1448
1456
|
noNotesPrefix: "此投影片沒有演講備忘。在你的投影片模組中加入 ",
|
|
1449
1457
|
noNotesSuffix: " 即可在此查看備忘。",
|
|
1450
1458
|
blackScreen: "黑屏",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Locale, Plural } from "./types-
|
|
2
|
-
import { OpenSlideConfig } from "./config-
|
|
1
|
+
import { Locale, Plural } from "./types-Di7nvL8V.js";
|
|
2
|
+
import { OpenSlideConfig } from "./config-DIvIP8vY.js";
|
|
3
3
|
import { CSSProperties, ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
6
|
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
5
7
|
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
6
|
-
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
7
|
-
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/app/components/image-placeholder.d.ts
|
|
10
10
|
type ImagePlaceholderProps = {
|
|
@@ -21,7 +21,7 @@ declare function ImagePlaceholder({
|
|
|
21
21
|
style,
|
|
22
22
|
className,
|
|
23
23
|
...rest
|
|
24
|
-
}: ImagePlaceholderProps):
|
|
24
|
+
}: ImagePlaceholderProps): react_jsx_runtime0.JSX.Element;
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/app/components/shared-element.d.ts
|
|
@@ -36,7 +36,7 @@ declare function unstable_SharedElement({
|
|
|
36
36
|
children,
|
|
37
37
|
className,
|
|
38
38
|
style
|
|
39
|
-
}: unstable_SharedElementProps):
|
|
39
|
+
}: unstable_SharedElementProps): react_jsx_runtime1.JSX.Element;
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/app/lib/design.d.ts
|
|
@@ -117,7 +117,7 @@ declare const CANVAS_HEIGHT = 1080;
|
|
|
117
117
|
type StepsProps = PropsWithChildren;
|
|
118
118
|
declare function Steps({
|
|
119
119
|
children
|
|
120
|
-
}: StepsProps):
|
|
120
|
+
}: StepsProps): react_jsx_runtime4.JSX.Element;
|
|
121
121
|
type StepProps = PropsWithChildren<{
|
|
122
122
|
duration?: number;
|
|
123
123
|
}>;
|
|
@@ -128,7 +128,7 @@ declare function Step({
|
|
|
128
128
|
children,
|
|
129
129
|
duration,
|
|
130
130
|
_revealed
|
|
131
|
-
}: InternalStepProps):
|
|
131
|
+
}: InternalStepProps): react_jsx_runtime5.JSX.Element;
|
|
132
132
|
|
|
133
133
|
//#endregion
|
|
134
134
|
export { CANVAS_HEIGHT, CANVAS_WIDTH, DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, ImagePlaceholder, ImagePlaceholderProps, Locale, OpenSlideConfig, Page, Plural, SharedElementTransition, SlideMeta, SlideModule, SlideTransition, Step, StepProps, Steps, StepsProps, TransitionPhase, cssVarsToString, defaultDesign, designToCssVars, unstable_SharedElement, unstable_SharedElementProps, useSlidePageNumber };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en, ja, zhCN, zhTW } from "./format-
|
|
1
|
+
import { en, ja, zhCN, zhTW } from "./format-CxmsgcBh.js";
|
|
2
2
|
import { cssVarsToString, defaultDesign, designToCssVars } from "./design-cpzS8aud.js";
|
|
3
3
|
import { Children, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { toast } from "sonner";
|
package/dist/locale/index.d.ts
CHANGED
package/dist/locale/index.js
CHANGED
package/dist/vite/index.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AArrowDown,
|
|
3
|
+
AArrowUp,
|
|
4
|
+
ChevronLeft,
|
|
5
|
+
ChevronRight,
|
|
6
|
+
RotateCcw,
|
|
7
|
+
Square,
|
|
8
|
+
Sun,
|
|
9
|
+
} from 'lucide-react';
|
|
2
10
|
import { type ReactNode, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
11
|
import { useParams } from 'react-router-dom';
|
|
4
12
|
import { Button } from '@/components/ui/button';
|
|
@@ -221,22 +229,7 @@ export function Presenter() {
|
|
|
221
229
|
</div>
|
|
222
230
|
</div>
|
|
223
231
|
|
|
224
|
-
<
|
|
225
|
-
<SectionLabel>{t.presenter.speakerNotes}</SectionLabel>
|
|
226
|
-
<div className="min-h-0 flex-1 overflow-y-auto rounded-[6px] border border-border bg-card p-3 text-[13.5px] leading-relaxed whitespace-pre-wrap text-card-foreground">
|
|
227
|
-
{note?.trim() ? (
|
|
228
|
-
note
|
|
229
|
-
) : (
|
|
230
|
-
<span className="text-muted-foreground">
|
|
231
|
-
{t.presenter.noNotesPrefix}
|
|
232
|
-
<code className="rounded-[3px] bg-muted px-1 py-0.5 font-mono text-[12px]">
|
|
233
|
-
export const notes = […]
|
|
234
|
-
</code>
|
|
235
|
-
{t.presenter.noNotesSuffix}
|
|
236
|
-
</span>
|
|
237
|
-
)}
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
232
|
+
<SpeakerNotes note={note} />
|
|
240
233
|
|
|
241
234
|
<PresenterJumpControl total={total} current={index} onJump={goTo} />
|
|
242
235
|
</aside>
|
|
@@ -350,6 +343,71 @@ function PresenterBottomBar({
|
|
|
350
343
|
);
|
|
351
344
|
}
|
|
352
345
|
|
|
346
|
+
const NOTES_FONT_SIZES = [11, 12, 13.5, 15, 17, 20, 24, 28];
|
|
347
|
+
const NOTES_FONT_SIZE_DEFAULT_INDEX = 2;
|
|
348
|
+
const NOTES_FONT_SIZE_STORAGE_KEY = 'open-slide:presenter-notes-font-size';
|
|
349
|
+
|
|
350
|
+
function SpeakerNotes({ note }: { note: string | undefined }) {
|
|
351
|
+
const t = useLocale();
|
|
352
|
+
const [sizeIndex, setSizeIndex] = useState(() => {
|
|
353
|
+
if (typeof window === 'undefined') return NOTES_FONT_SIZE_DEFAULT_INDEX;
|
|
354
|
+
const stored = Number(window.localStorage.getItem(NOTES_FONT_SIZE_STORAGE_KEY));
|
|
355
|
+
return NOTES_FONT_SIZES.includes(stored)
|
|
356
|
+
? NOTES_FONT_SIZES.indexOf(stored)
|
|
357
|
+
: NOTES_FONT_SIZE_DEFAULT_INDEX;
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
useEffect(() => {
|
|
361
|
+
window.localStorage.setItem(NOTES_FONT_SIZE_STORAGE_KEY, String(NOTES_FONT_SIZES[sizeIndex]));
|
|
362
|
+
}, [sizeIndex]);
|
|
363
|
+
|
|
364
|
+
return (
|
|
365
|
+
<div className="flex min-h-0 flex-1 flex-col gap-2">
|
|
366
|
+
<div className="flex items-center justify-between">
|
|
367
|
+
<SectionLabel>{t.presenter.speakerNotes}</SectionLabel>
|
|
368
|
+
<div className="flex items-center gap-1">
|
|
369
|
+
<Button
|
|
370
|
+
variant="ghost"
|
|
371
|
+
size="icon-xs"
|
|
372
|
+
onClick={() => setSizeIndex((i) => Math.max(0, i - 1))}
|
|
373
|
+
disabled={sizeIndex === 0}
|
|
374
|
+
title={t.presenter.notesTextSmaller}
|
|
375
|
+
aria-label={t.presenter.notesTextSmaller}
|
|
376
|
+
>
|
|
377
|
+
<AArrowDown className="size-4" />
|
|
378
|
+
</Button>
|
|
379
|
+
<Button
|
|
380
|
+
variant="ghost"
|
|
381
|
+
size="icon-xs"
|
|
382
|
+
onClick={() => setSizeIndex((i) => Math.min(NOTES_FONT_SIZES.length - 1, i + 1))}
|
|
383
|
+
disabled={sizeIndex === NOTES_FONT_SIZES.length - 1}
|
|
384
|
+
title={t.presenter.notesTextLarger}
|
|
385
|
+
aria-label={t.presenter.notesTextLarger}
|
|
386
|
+
>
|
|
387
|
+
<AArrowUp className="size-4" />
|
|
388
|
+
</Button>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
<div
|
|
392
|
+
className="min-h-0 flex-1 overflow-y-auto rounded-[6px] border border-border bg-card p-3 leading-relaxed whitespace-pre-wrap text-card-foreground"
|
|
393
|
+
style={{ fontSize: NOTES_FONT_SIZES[sizeIndex] }}
|
|
394
|
+
>
|
|
395
|
+
{note?.trim() ? (
|
|
396
|
+
note
|
|
397
|
+
) : (
|
|
398
|
+
<span className="text-muted-foreground">
|
|
399
|
+
{t.presenter.noNotesPrefix}
|
|
400
|
+
<code className="rounded-[3px] bg-muted px-1 py-0.5 font-mono text-[0.9em]">
|
|
401
|
+
export const notes = […]
|
|
402
|
+
</code>
|
|
403
|
+
{t.presenter.noNotesSuffix}
|
|
404
|
+
</span>
|
|
405
|
+
)}
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
|
|
353
411
|
function PresenterJumpControl({
|
|
354
412
|
total,
|
|
355
413
|
current,
|
package/src/locale/en.ts
CHANGED
|
@@ -150,6 +150,8 @@ export const en: Locale = {
|
|
|
150
150
|
lastSlide: 'Last slide',
|
|
151
151
|
endOfDeck: 'End of deck',
|
|
152
152
|
speakerNotes: 'Speaker notes',
|
|
153
|
+
notesTextSmaller: 'Make notes text smaller',
|
|
154
|
+
notesTextLarger: 'Make notes text larger',
|
|
153
155
|
noNotesPrefix: 'No speaker notes for this slide. Add ',
|
|
154
156
|
noNotesSuffix: ' to your slide module to see notes here.',
|
|
155
157
|
blackScreen: 'Black screen',
|
package/src/locale/ja.ts
CHANGED
|
@@ -150,6 +150,8 @@ export const ja: Locale = {
|
|
|
150
150
|
lastSlide: '最後のスライド',
|
|
151
151
|
endOfDeck: 'デッキの終わり',
|
|
152
152
|
speakerNotes: '発表者ノート',
|
|
153
|
+
notesTextSmaller: 'ノートの文字を小さく',
|
|
154
|
+
notesTextLarger: 'ノートの文字を大きく',
|
|
153
155
|
noNotesPrefix: 'このスライドには発表者ノートがありません。スライドモジュールに ',
|
|
154
156
|
noNotesSuffix: ' を追加するとここに表示されます。',
|
|
155
157
|
blackScreen: '黒い画面',
|
package/src/locale/types.ts
CHANGED
package/src/locale/zh-cn.ts
CHANGED
|
@@ -148,6 +148,8 @@ export const zhCN: Locale = {
|
|
|
148
148
|
lastSlide: '最后一张',
|
|
149
149
|
endOfDeck: '演示结束',
|
|
150
150
|
speakerNotes: '演讲备注',
|
|
151
|
+
notesTextSmaller: '缩小备注文字',
|
|
152
|
+
notesTextLarger: '放大备注文字',
|
|
151
153
|
noNotesPrefix: '该幻灯片没有演讲备注。在你的幻灯片模块中添加 ',
|
|
152
154
|
noNotesSuffix: ' 即可在此查看备注。',
|
|
153
155
|
blackScreen: '黑屏',
|
package/src/locale/zh-tw.ts
CHANGED
|
@@ -148,6 +148,8 @@ export const zhTW: Locale = {
|
|
|
148
148
|
lastSlide: '最後一張',
|
|
149
149
|
endOfDeck: '簡報結束',
|
|
150
150
|
speakerNotes: '演講備忘',
|
|
151
|
+
notesTextSmaller: '縮小備忘文字',
|
|
152
|
+
notesTextLarger: '放大備忘文字',
|
|
151
153
|
noNotesPrefix: '此投影片沒有演講備忘。在你的投影片模組中加入 ',
|
|
152
154
|
noNotesSuffix: ' 即可在此查看備忘。',
|
|
153
155
|
blackScreen: '黑屏',
|