From afca6e9eb29493a69985fed746a911d1f6b15b0b Mon Sep 17 00:00:00 2001 From: tknkaa Date: Mon, 16 Nov 2026 16:28:55 +0900 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20=E4=BA=94=E6=9C=88=E7=A5=AD=E2=86=92?= =?UTF-8?q?=E9=A7=92=E5=A0=B4=E7=A5=AD=E3=80=81festival=E2=86=92kf77?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/GlobalHeader.tsx | 4 ++-- src/components/Dialogs/ClearDialog/index.tsx | 2 +- src/maze/template.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/GlobalHeader.tsx b/src/assets/GlobalHeader.tsx index 15f0aaa..9dfef91 100644 --- a/src/assets/GlobalHeader.tsx +++ b/src/assets/GlobalHeader.tsx @@ -43,10 +43,10 @@ export function GlobalHeader({ Hint, children }: Props) { transition="color 0.2s" colorScheme="green" onClick={() => { - window.location.href = "https://festival.utcode.net"; + window.location.href = "https://kf77.utcode.net"; }} > - 五月祭トップページへ + 駒場祭トップページへ @@ -80,14 +83,14 @@ export function TutorialDialog(props: TutorialDialogProps): JSX.Element { )} {(!props.isFirstView || selectedIndex === props.steps.length - 1) && ( - )} diff --git a/src/components/VariableList/index.tsx b/src/components/VariableList/index.tsx index 7953098..7a95a98 100644 --- a/src/components/VariableList/index.tsx +++ b/src/components/VariableList/index.tsx @@ -46,15 +46,19 @@ export default function VariableList({ variableNames.map((name) => ({ name, value: interpreter.getVariable( - ((javascriptGenerator as any).nameDB_ as Names).getName( + ( + javascriptGenerator as unknown as { + nameDB_: Names; + } + ).nameDB_.getName( // eslint-disable-line name, - Names.NameType.VARIABLE, - ), + Names.NameType.VARIABLE + ) // 空白文字を _ に置き換えたあと encodeURIComponent で UTF-8 に変換し、さらに % を _ に置き換え // encodeURIComponent(name.replace(/\s+/g, "_")).replace(/%/g, "_") ), - })), + })) ); }; interpreter.addListener("step", onStep); @@ -76,12 +80,22 @@ export default function VariableList({ {variables?.map(({ name, value }) => { let rendered: ReactNode = renderVariable?.(value); if (!rendered) { - if (typeof value === "string") rendered = {value.toString()}; - else if (typeof value === "number" || typeof value === "boolean") + if (typeof value === "string") + rendered = {value.toString()}; + else if ( + typeof value === "number" || + typeof value === "boolean" + ) rendered = {value.toString()}; - else if (value === null) rendered = null; - else if (value === undefined) rendered = 値がありません; - else throw new Error(`変数 ${name} の値 ${value} を表示できません。`, { cause: value }); + else if (value === null) + rendered = null; + else if (value === undefined) + rendered = 値がありません; + else + throw new Error( + `変数 ${name} の値 ${value} を表示できません。`, + { cause: value } + ); } return ( diff --git a/src/components/Video/index.tsx b/src/components/Video/index.tsx index 1e0f518..7573601 100644 --- a/src/components/Video/index.tsx +++ b/src/components/Video/index.tsx @@ -14,6 +14,7 @@ export function Video(props: { } = props; return ( + // eslint-disable-next-line jsx-a11y/media-has-caption