-
Notifications
You must be signed in to change notification settings - Fork 26
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
6204e0d
commit dd69b8a
Showing
7 changed files
with
281 additions
and
257 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 was deleted.
Oops, something went wrong.
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,55 @@ | ||
import { | ||
Bars3BottomLeftIcon, | ||
Bars3Icon, | ||
CubeIcon, | ||
} from "@heroicons/react/24/outline" | ||
import { useParams } from "react-router-dom" | ||
import { SideBarItem, SideNavBack } from "./side-nav" | ||
|
||
export function SideNavCompose() { | ||
const { nodeId, composeProjectId } = useParams() | ||
|
||
const baseUrl = `/nodes/${nodeId}/compose/${composeProjectId}` | ||
const items = [ | ||
{ | ||
title: "Actions", | ||
link: `${baseUrl}/actions`, | ||
icon: ( | ||
<Bars3BottomLeftIcon className="h-6 w-6 shrink-0" aria-hidden="true" /> | ||
), | ||
}, | ||
{ | ||
title: "Definition", | ||
link: `${baseUrl}/definition`, | ||
icon: ( | ||
<Bars3BottomLeftIcon className="h-6 w-6 shrink-0" aria-hidden="true" /> | ||
), | ||
}, | ||
{ | ||
title: "Containers", | ||
link: `${baseUrl}/containers`, | ||
icon: <CubeIcon className="h-6 w-6 shrink-0" aria-hidden="true" />, | ||
}, | ||
{ | ||
title: "Logs", | ||
link: `${baseUrl}/logs`, | ||
icon: <Bars3Icon className="h-6 w-6 shrink-0" aria-hidden="true" />, | ||
}, | ||
] | ||
|
||
return ( | ||
<> | ||
<SideNavBack to={`/nodes/${nodeId}/compose`} /> | ||
<ul role="list" className="-mx-2 space-y-1"> | ||
{items.map((item) => ( | ||
<li> | ||
<SideBarItem to={item.link}> | ||
{item.icon} | ||
{item.title} | ||
</SideBarItem> | ||
</li> | ||
))} | ||
</ul> | ||
</> | ||
) | ||
} |
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,29 @@ | ||
import { Bars3Icon, CommandLineIcon } from "@heroicons/react/24/outline" | ||
import { useParams } from "react-router-dom" | ||
import { SideBarItem, SideNavBack } from "./side-nav" | ||
|
||
export function SideNavContainer() { | ||
const { nodeId, containerId } = useParams() | ||
|
||
return ( | ||
<> | ||
<SideNavBack to={`/nodes/${nodeId}/containers`} /> | ||
<ul role="list" className="-mx-2 space-y-1"> | ||
<li> | ||
<SideBarItem to={`/nodes/${nodeId}/containers/${containerId}/logs`}> | ||
<Bars3Icon className="h-6 w-6 shrink-0" aria-hidden="true" /> | ||
Logs | ||
</SideBarItem> | ||
</li> | ||
<li> | ||
<SideBarItem | ||
to={`/nodes/${nodeId}/containers/${containerId}/terminal`} | ||
> | ||
<CommandLineIcon className="h-6 w-6 shrink-0" aria-hidden="true" /> | ||
Terminal | ||
</SideBarItem> | ||
</li> | ||
</ul> | ||
</> | ||
) | ||
} |
Oops, something went wrong.