1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 09:32:29 +01:00

File manager placeholder

This commit is contained in:
Dane Everitt 2019-08-17 11:40:51 -07:00
parent 1769d191d2
commit 7224cd8db3
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import React from 'react';
import useRouter from 'use-react-router';
import queryString from 'query-string';
export default () => {
const { location: { search } } = useRouter();
const values = queryString.parse(search);
return (
<div className={'my-10'}>
<textarea className={'rounded bg-black h-32 w-full text-neutral-100'}>
</textarea>
</div>
);
};

View File

@ -10,6 +10,7 @@ import { Provider } from 'react-redux';
import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
import FileManagerContainer from '@/components/server/files/FileManagerContainer';
import { CSSTransition } from 'react-transition-group';
import FileEditContainer from '@/components/server/files/FileEditContainer';
const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>) => {
const server = ServerContext.useStoreState(state => state.server.data);
@ -50,6 +51,7 @@ const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>)
<Switch location={location}>
<Route path={`${match.path}`} component={ServerConsole} exact/>
<Route path={`${match.path}/files`} component={FileManagerContainer} exact/>
<Route path={`${match.path}/files/edit`} component={FileEditContainer} exact/>
<Route path={`${match.path}/databases`} component={DatabasesContainer}/>
</Switch>
</React.Fragment>