diff --git a/app/layout.tsx b/app/layout.tsx index 53e50cc..73e0a8a 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -24,7 +24,7 @@ export default function RootLayout({ }: Readonly<{ children: ReactNode }>) { return ( - + {/* mocha.css がbodyに背景色などを設定してしまうので、それを上書きしている */} diff --git a/app/terminal/page.tsx b/app/terminal/page.tsx index 4f57ac9..ad02bd3 100644 --- a/app/terminal/page.tsx +++ b/app/terminal/page.tsx @@ -23,7 +23,7 @@ export default function RuntimeTestPage() { REPLとコード実行のサンプル {/* name of each tab group should be unique */} -
+
{Object.entries(sampleConfig).map(([lang, config]) => ( -
+
@@ -57,7 +57,7 @@ interface SampleConfig { const sampleConfig: Record = { python: { repl: true, - replInitContent: '>>> print("Hello, World!")\x1b[0m\nHello, World!', + replInitContent: '>>> print("Hello, World!")\nHello, World!', editor: { "main.py": 'print("Hello, World!")', }, @@ -66,7 +66,7 @@ const sampleConfig: Record = { ruby: { repl: true, replInitContent: - 'irb(main):001:0> puts "Hello, World!"\x1b[0m\nHello, World!', + 'irb(main):001:0> puts "Hello, World!"\nHello, World!', editor: { "main.rb": 'puts "Hello, World!"', }, @@ -74,7 +74,7 @@ const sampleConfig: Record = { }, javascript: { repl: true, - replInitContent: '> console.log("Hello, World!");\x1b[0m\nHello, World!', + replInitContent: '> console.log("Hello, World!");\nHello, World!', editor: { "main.js": 'console.log("Hello, World!");', }, @@ -84,7 +84,7 @@ const sampleConfig: Record = { repl: false, editor: { "main.ts": - 'function greet(name: string): void {\x1b[0m\n console.log("Hello, " + name + "!");\x1b[0m\n}\x1b[0m\n\x1b[0m\ngreet("World");', + 'function greet(name: string): void {\n console.log("Hello, " + name + "!");\n}\n\ngreet("World");', }, exec: ["main.ts"], }, @@ -268,7 +268,7 @@ function MochaTest() { )}

-
+
); } diff --git a/package-lock.json b/package-lock.json index 46bb386..8158e22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,7 +51,7 @@ "@types/react": "^19", "@types/react-dom": "^19", "@types/react-syntax-highlighter": "^15.5.13", - "daisyui": "^5.0.50", + "daisyui": "^5.5.5", "drizzle-kit": "^0.31.5", "eslint": "^9", "eslint-config-next": "<15.4", @@ -14073,9 +14073,9 @@ "license": "MIT" }, "node_modules/daisyui": { - "version": "5.0.50", - "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.0.50.tgz", - "integrity": "sha512-c1PweK5RI1C76q58FKvbS4jzgyNJSP6CGTQ+KkZYzADdJoERnOxFoeLfDHmQgxLpjEzlYhFMXCeodQNLCC9bow==", + "version": "5.5.5", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.5.5.tgz", + "integrity": "sha512-ekvI93ZkWIJoCOtDl0D2QMxnWvTejk9V5nWBqRv+7t0xjiBXqAK5U6o6JE2RPvlIC3EqwNyUoIZSdHX9MZK3nw==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 5f50b18..0b0670b 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@types/react": "^19", "@types/react-dom": "^19", "@types/react-syntax-highlighter": "^15.5.13", - "daisyui": "^5.0.50", + "daisyui": "^5.5.5", "drizzle-kit": "^0.31.5", "eslint": "^9", "eslint-config-next": "<15.4",