diff options
Diffstat (limited to 'renderer')
| -rw-r--r-- | renderer/index.html | 17 | ||||
| -rw-r--r-- | renderer/src/main.tsx | 4 | ||||
| -rw-r--r-- | renderer/tsconfig.json | 8 |
3 files changed, 29 insertions, 0 deletions
diff --git a/renderer/index.html b/renderer/index.html new file mode 100644 index 0000000..8bce8a6 --- /dev/null +++ b/renderer/index.html | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | <!doctype html> | ||
| 2 | <html> | ||
| 3 | <head> | ||
| 4 | <meta charset="utf-8" /> | ||
| 5 | <meta | ||
| 6 | http-equiv="Content-Security-Policy" | ||
| 7 | content="default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self' ws: http://localhost:5173" | ||
| 8 | /> | ||
| 9 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| 10 | <title>minimal</title> | ||
| 11 | </head> | ||
| 12 | <body> | ||
| 13 | <div id="root"></div> | ||
| 14 | <!-- Use a **relative** entry so it still works after base='./' rewrites --> | ||
| 15 | <script type="module" src="src/main.tsx"></script> | ||
| 16 | </body> | ||
| 17 | </html> \ No newline at end of file | ||
diff --git a/renderer/src/main.tsx b/renderer/src/main.tsx new file mode 100644 index 0000000..9a6b03b --- /dev/null +++ b/renderer/src/main.tsx | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | import React from 'react' | ||
| 2 | import { createRoot } from 'react-dom/client' | ||
| 3 | |||
| 4 | createRoot(document.getElementById('root')!).render(<main>hi</main>) | ||
diff --git a/renderer/tsconfig.json b/renderer/tsconfig.json new file mode 100644 index 0000000..2302bb9 --- /dev/null +++ b/renderer/tsconfig.json | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | { | ||
| 2 | "extends": "../tsconfig.json", | ||
| 3 | "compilerOptions": { | ||
| 4 | "jsx": "react-jsx", | ||
| 5 | "types": ["vite/client"] | ||
| 6 | }, | ||
| 7 | "include": ["src", "index.html"] | ||
| 8 | } \ No newline at end of file | ||
