-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f9a002
commit 66609e3
Showing
10 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
resources/scripts/components/admin/servers/overview/ServerOverviewContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
import ServerContentBlock from '@/components/admin/servers/ServerContentBlock' | ||
import Button from '@/components/elements/Button' | ||
import { AdminServerContext } from '@/state/admin/server' | ||
import { Link } from 'react-router-dom' | ||
|
||
const ServerOverviewContainer = () => { | ||
return <ServerContentBlock title={'Overview'}></ServerContentBlock> | ||
const server = AdminServerContext.useStoreState(state => state.server.data!) | ||
|
||
return ( | ||
<ServerContentBlock title={'Overview'}> | ||
<Link to={`/servers/${server.id}`}> | ||
<Button className='inline-flex items-center' as={'a'}> | ||
Enter Server Console | ||
</Button> | ||
</Link> | ||
</ServerContentBlock> | ||
) | ||
} | ||
|
||
export default ServerOverviewContainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
resources/scripts/components/servers/overview/ServerAdminBlock.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Button from '@/components/elements/Button' | ||
import Card from '@/components/elements/Card' | ||
import { ServerContext } from '@/state/server' | ||
import { Link } from 'react-router-dom' | ||
|
||
const ServerAdminBlock = () => { | ||
const serverId = ServerContext.useStoreState(state => state.server.data!.id) | ||
|
||
return ( | ||
<Card className='flex flex-col col-span-10 md:col-span-5 relative'> | ||
<h5 className='h5'>Configure This Server</h5> | ||
<p className='description-small mt-1'> | ||
You are an administrator! You can click below to visit this server's build configuration and swiftly | ||
make edits. | ||
</p> | ||
<div className='flex mt-auto justify-end'> | ||
<Link to={`/admin/servers/${serverId}`}> | ||
<Button className='inline-flex items-center' as={'a'}> | ||
Configure Server | ||
</Button> | ||
</Link> | ||
</div> | ||
</Card> | ||
) | ||
} | ||
|
||
export default ServerAdminBlock |
4 changes: 4 additions & 0 deletions
4
resources/scripts/components/servers/overview/ServerOverviewContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters