Add storage page

This commit is contained in:
Nick Mowen 2022-07-01 11:40:15 -06:00
parent 2b71be0d34
commit 8986dc3f5b
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import { h, Fragment } from 'preact';
import ActivityIndicator from '../components/ActivityIndicator';
import Button from '../components/Button';
import Heading from '../components/Heading';
import Link from '../components/Link';
import { useMqtt } from '../api/mqtt';
import useSWR from 'swr';
import { Table, Tbody, Thead, Tr, Th, Td } from '../components/Table';
import { useCallback } from 'preact/hooks';
export default function () {
const { data: storage } = useSWR('recordings/storage');
return (
<div className="space-y-4 p-2 px-4">
<Heading>
Storage
</Heading>
</div>
);
}

View File

@ -33,6 +33,11 @@ export async function getSystem(_url, _cb, _props) {
return module.default;
}
export async function getStorage(_url, _cb, _props) {
const module = await import('./Storage.jsx');
return module.default;
}
export async function getStyleGuide(_url, _cb, _props) {
const module = await import('./StyleGuide.jsx');
return module.default;