mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-24 05:45:58 -05:00
config justify
This commit is contained in:
@@ -57,6 +57,7 @@ const DeploymentTabs: Component<{}> = (p) => {
|
||||
<ConfigProvider deployment={deployment()!}>
|
||||
<Tabs
|
||||
containerClass="card tabs shadow"
|
||||
containerStyle={{ gap: "0.5rem" }}
|
||||
tabs={[
|
||||
{
|
||||
title: "config",
|
||||
|
||||
@@ -20,20 +20,24 @@ const Env: Component<{}> = (p) => {
|
||||
};
|
||||
return (
|
||||
<Grid class="config-item shadow">
|
||||
<Flex alignItems="center">
|
||||
<Flex alignItems="center" justifyContent="space-between">
|
||||
<h1>environment</h1>
|
||||
<Show
|
||||
when={!deployment.environment || deployment.environment.length === 0}
|
||||
>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
<Flex alignItems="center">
|
||||
<Show
|
||||
when={
|
||||
!deployment.environment || deployment.environment.length === 0
|
||||
}
|
||||
>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
</Flex>
|
||||
</Flex>
|
||||
<For each={deployment.environment}>
|
||||
{(_, index) => (
|
||||
<Flex justifyContent="center">
|
||||
<Flex justifyContent="space-between" alignItems="center">
|
||||
<Input
|
||||
placeholder="variable"
|
||||
value={deployment.environment![index()].variable}
|
||||
|
||||
@@ -18,18 +18,20 @@ const Ports: Component<{}> = (p) => {
|
||||
};
|
||||
return (
|
||||
<Grid class="config-item shadow">
|
||||
<Flex alignItems="center">
|
||||
<Flex alignItems="center" justifyContent="space-between">
|
||||
<h1>ports</h1>
|
||||
<Show when={!deployment.ports || deployment.ports.length === 0}>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
<Flex alignItems="center">
|
||||
<Show when={!deployment.ports || deployment.ports.length === 0}>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
</Flex>
|
||||
</Flex>
|
||||
<For each={deployment.ports}>
|
||||
{({ local, container }, index) => (
|
||||
<Flex justifyContent="center">
|
||||
<Flex justifyContent="space-between" alignItems="center">
|
||||
<Input
|
||||
placeholder="system"
|
||||
value={local}
|
||||
|
||||
@@ -18,18 +18,20 @@ const Volumes: Component<{}> = (p) => {
|
||||
};
|
||||
return (
|
||||
<Grid class="config-item shadow">
|
||||
<Flex alignItems="center">
|
||||
<Flex justifyContent="space-between" alignItems="center">
|
||||
<h1>volumes</h1>
|
||||
<Show when={!deployment.volumes || deployment.volumes.length === 0}>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
<Flex alignItems="center">
|
||||
<Show when={!deployment.volumes || deployment.volumes.length === 0}>
|
||||
<div>none</div>
|
||||
</Show>
|
||||
<button class="green" onClick={onAdd}>
|
||||
<Icon type="plus" />
|
||||
</button>
|
||||
</Flex>
|
||||
</Flex>
|
||||
<For each={deployment.volumes}>
|
||||
{({ local, container }, index) => (
|
||||
<Flex justifyContent="center">
|
||||
<Flex justifyContent="space-between" alignItems="center">
|
||||
<Input
|
||||
placeholder="system"
|
||||
value={local}
|
||||
|
||||
@@ -170,6 +170,7 @@ h1 {
|
||||
|
||||
.scroller::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user