feat: initialize Electron dashboard with basic structure
This commit is contained in:
16
dashboard/src/renderer/index.html
Normal file
16
dashboard/src/renderer/index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>OpenWall</title>
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
</html>
|
9
dashboard/src/renderer/src/App.jsx
Normal file
9
dashboard/src/renderer/src/App.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const App = () => {
|
||||
return (
|
||||
<>
|
||||
<h1>Not implemented yet</h1>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default App;
|
9
dashboard/src/renderer/src/main.jsx
Normal file
9
dashboard/src/renderer/src/main.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import App from './App'
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>
|
||||
)
|
Reference in New Issue
Block a user