From 63daa7b14f9e278bec4d0c7c52edaacb77ac7c54 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Wed, 6 Jan 2021 15:50:21 -0700 Subject: [PATCH] admin(ui): add blank edit views --- .../admin/databases/DatabaseEditContainer.tsx | 8 ++++ .../admin/locations/LocationEditContainer.tsx | 8 ++++ .../admin/mounts/MountEditContainer.tsx | 8 ++++ .../admin/nests/NestEditContainer.tsx | 8 ++++ .../admin/nodes/NodeEditContainer.tsx | 8 ++++ .../admin/servers/ServerEditContainer.tsx | 8 ++++ .../admin/users/UserEditContainer.tsx | 8 ++++ resources/scripts/routers/AdminRouter.tsx | 43 +++++++++++++++++++ 8 files changed, 99 insertions(+) create mode 100644 resources/scripts/components/admin/databases/DatabaseEditContainer.tsx create mode 100644 resources/scripts/components/admin/locations/LocationEditContainer.tsx create mode 100644 resources/scripts/components/admin/mounts/MountEditContainer.tsx create mode 100644 resources/scripts/components/admin/nests/NestEditContainer.tsx create mode 100644 resources/scripts/components/admin/nodes/NodeEditContainer.tsx create mode 100644 resources/scripts/components/admin/servers/ServerEditContainer.tsx create mode 100644 resources/scripts/components/admin/users/UserEditContainer.tsx diff --git a/resources/scripts/components/admin/databases/DatabaseEditContainer.tsx b/resources/scripts/components/admin/databases/DatabaseEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/databases/DatabaseEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/locations/LocationEditContainer.tsx b/resources/scripts/components/admin/locations/LocationEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/locations/LocationEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/mounts/MountEditContainer.tsx b/resources/scripts/components/admin/mounts/MountEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/mounts/MountEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/nests/NestEditContainer.tsx b/resources/scripts/components/admin/nests/NestEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/nests/NestEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/nodes/NodeEditContainer.tsx b/resources/scripts/components/admin/nodes/NodeEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/nodes/NodeEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/servers/ServerEditContainer.tsx b/resources/scripts/components/admin/servers/ServerEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/servers/ServerEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/components/admin/users/UserEditContainer.tsx b/resources/scripts/components/admin/users/UserEditContainer.tsx new file mode 100644 index 000000000..c541988b3 --- /dev/null +++ b/resources/scripts/components/admin/users/UserEditContainer.tsx @@ -0,0 +1,8 @@ +import React from 'react'; + +export default () => { + return ( + <> + + ); +}; diff --git a/resources/scripts/routers/AdminRouter.tsx b/resources/scripts/routers/AdminRouter.tsx index b53ce409d..138d82f25 100644 --- a/resources/scripts/routers/AdminRouter.tsx +++ b/resources/scripts/routers/AdminRouter.tsx @@ -11,17 +11,24 @@ import SettingsContainer from '@/components/admin/settings/SettingsContainer'; import ApiKeysContainer from '@/components/admin/api/ApiKeysContainer'; import DatabasesContainer from '@/components/admin/databases/DatabasesContainer'; import NewDatabaseContainer from '@/components/admin/databases/NewDatabaseContainer'; +import DatabaseEditContainer from '@/components/admin/databases/DatabaseEditContainer'; import NodesContainer from '@/components/admin/nodes/NodesContainer'; import NewNodeContainer from '@/components/admin/nodes/NewNodeContainer'; +import NodeEditContainer from '@/components/admin/nodes/NodeEditContainer'; import LocationsContainer from '@/components/admin/locations/LocationsContainer'; +import LocationEditContainer from '@/components/admin/locations/LocationEditContainer'; import ServersContainer from '@/components/admin/servers/ServersContainer'; import NewServerContainer from '@/components/admin/servers/NewServerContainer'; +import ServerEditContainer from '@/components/admin/servers/ServerEditContainer'; import UsersContainer from '@/components/admin/users/UsersContainer'; import NewUserContainer from '@/components/admin/users/NewUserContainer'; +import UserEditContainer from '@/components/admin/users/UserEditContainer'; import RolesContainer from '@/components/admin/roles/RolesContainer'; import RoleEditContainer from '@/components/admin/roles/RoleEditContainer'; import NestsContainer from '@/components/admin/nests/NestsContainer'; +import NestEditContainer from '@/components/admin/nests/NestEditContainer'; import MountsContainer from '@/components/admin/mounts/MountsContainer'; +import MountEditContainer from '@/components/admin/mounts/MountEditContainer'; const Sidebar = styled.div<{ collapsed?: boolean }>` ${tw`fixed h-screen flex flex-col items-center flex-shrink-0 bg-neutral-900 overflow-x-hidden transition-all duration-250 ease-linear`}; @@ -178,17 +185,42 @@ const AdminRouter = ({ location, match }: RouteComponentProps) => { + + + + + { /> + + +