Skip to content

Commit 201c2b4

Browse files
hi-ogawaOpenCode (gpt-5.6-sol)
andcommitted
refactor: render external audio controls with React
Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@opencode.ai>
1 parent e80ecdb commit 201c2b4

7 files changed

Lines changed: 245 additions & 198 deletions

File tree

packages/youtube-external-audio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ follows the resulting media events.
3737

3838
The YouTube content-script integration patterns are adapted from
3939
[Zamak (ytsub-v5)](https://github.com/hi-ogawa/ytsub-v5), as documented next
40-
to the adapted lifecycle code in `src/content.ts`.
40+
to the adapted lifecycle code in `src/content.tsx`.

packages/youtube-external-audio/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77
"build": "vite build && cd dist/extension && zip -r ../extension.zip .",
88
"typecheck": "tsc --noEmit",
99
"lint": "pnpm typecheck",
10-
"test": "vitest run",
10+
"test": "vitest run src",
1111
"test-e2e": "playwright test"
1212
},
13+
"dependencies": {
14+
"react": "^19.2.3",
15+
"react-dom": "^19.2.3"
16+
},
1317
"devDependencies": {
1418
"@playwright/test": "^1.61.1",
1519
"@types/node": "^26.1.1",
20+
"@types/react": "^19.2.14",
21+
"@types/react-dom": "^19.2.3",
22+
"@vitejs/plugin-react": "^6.0.3",
1623
"typescript": "^7.0.2",
1724
"vite": "^8.1.4",
1825
"vitest": "^4.1.10"

packages/youtube-external-audio/src/content.ts

Lines changed: 0 additions & 195 deletions
This file was deleted.

0 commit comments

Comments
 (0)