chore: more scaffolding

This commit is contained in:
2023-05-04 13:03:57 +02:00
parent 965467d129
commit 2c5d9cf543
10 changed files with 336 additions and 19 deletions
+13
View File
@@ -0,0 +1,13 @@
import d3 from 'd3'
// export const Plot = ({ samples }) => {
// const mountElement = el => {
// d3.select(el).append('svg')
// }
// return <div class="d3-plot" ref={mountElement}></div>
// }
export const Plot = ({ samples }) => {
return <div class="d3-plot">Work in progress...</div>
}
+1
View File
@@ -3,6 +3,7 @@ import { route } from 'preact-router'
import { render } from 'preact'
import { useEffect } from 'preact/hooks'
import { DashboardPage, JobsPage } from './pages.jsx'
const Redirect = ({ to }) => {
useEffect(() => {
+6
View File
@@ -0,0 +1,6 @@
export const DashboardPage = ({}) => {
return <>Dashboard Page</>
}
export const JobsPage = ({}) => {
return <>Jobs Page</>
}