Skip to content

Commit 7224cd8

Browse files
committed
File manager placeholder
1 parent 1769d19 commit 7224cd8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import useRouter from 'use-react-router';
3+
import queryString from 'query-string';
4+
5+
export default () => {
6+
const { location: { search } } = useRouter();
7+
const values = queryString.parse(search);
8+
9+
return (
10+
<div className={'my-10'}>
11+
<textarea className={'rounded bg-black h-32 w-full text-neutral-100'}>
12+
13+
</textarea>
14+
</div>
15+
);
16+
};

resources/scripts/routers/ServerRouter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Provider } from 'react-redux';
1010
import DatabasesContainer from '@/components/server/databases/DatabasesContainer';
1111
import FileManagerContainer from '@/components/server/files/FileManagerContainer';
1212
import { CSSTransition } from 'react-transition-group';
13+
import FileEditContainer from '@/components/server/files/FileEditContainer';
1314

1415
const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>) => {
1516
const server = ServerContext.useStoreState(state => state.server.data);
@@ -50,6 +51,7 @@ const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>)
5051
<Switch location={location}>
5152
<Route path={`${match.path}`} component={ServerConsole} exact/>
5253
<Route path={`${match.path}/files`} component={FileManagerContainer} exact/>
54+
<Route path={`${match.path}/files/edit`} component={FileEditContainer} exact/>
5355
<Route path={`${match.path}/databases`} component={DatabasesContainer}/>
5456
</Switch>
5557
</React.Fragment>

0 commit comments

Comments
 (0)