First iteration of a file manager

This commit is contained in:
Dane Everitt 2019-10-12 15:29:45 -07:00
parent ac52810ef6
commit 2e32df98ea
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 169 additions and 28 deletions

View file

@ -12,8 +12,8 @@ import TitledGreyBox from '@/components/elements/TitledGreyBox';
type PowerAction = 'start' | 'stop' | 'restart' | 'kill';
const ChunkedConsole = lazy(() => import('@/components/server/Console'));
const ChunkedStatGraphs = lazy(() => import('@/components/server/StatGraphs'));
const ChunkedConsole = lazy(() => import(/* webpackChunkName: "console" */'@/components/server/Console'));
const ChunkedStatGraphs = lazy(() => import(/* webpackChunkName: "graphs" */'@/components/server/StatGraphs'));
const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
const [ clicked, setClicked ] = useState(false);