mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Add storage page
This commit is contained in:
parent
2b71be0d34
commit
8986dc3f5b
21
web/src/routes/Storage.jsx
Normal file
21
web/src/routes/Storage.jsx
Normal 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>
|
||||
);
|
||||
}
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user