diff --git a/services/frontend/src/components/Modal/service/Deploy.tsx b/services/frontend/src/components/Modal/service/Deploy.tsx new file mode 100644 index 0000000..120bf39 --- /dev/null +++ b/services/frontend/src/components/Modal/service/Deploy.tsx @@ -0,0 +1,178 @@ +import { styled } from "@mui/joy"; +import { useParams } from "react-router-dom"; +import TextField from "../../global/FormElements/TextField"; +import Toggle from "../../global/FormElements/Toggle"; +import Records from "../../Records"; +import Accordion from "./Accordion"; + +const Root = styled("div")` + display: flex; + flex-direction: column; + row-gap: ${({ theme }) => theme.spacing(1)}; +`; + +const Group = styled("div")` + display: flex; + flex-direction: row; + @media (max-width: 640px) { + flex-direction: column; + } + column-gap: ${({ theme }) => theme.spacing(1)}; + width: 100%; +`; + +const Deploy = () => { + const { uuid } = useParams<{ uuid: string }>(); + return ( + + + + + + + + [ + { + name: `deploy.placement.constraints[${index}].key`, + placeholder: "Key", + required: true, + type: "text" + }, + { + name: `deploy.placement.constraints[${index}].value`, + placeholder: "Value", + type: "text" + } + ]} + newValue={{ + key: "", + value: "" + }} + /> + + [ + { + name: `deploy.placement.preferences[${index}].key`, + placeholder: "Key", + required: true, + type: "text" + }, + { + name: `deploy.placement.preferences[${index}].value`, + placeholder: "Value", + type: "text" + } + ]} + newValue={{ + key: "", + value: "" + }} + /> + + + + + + + + + + + + + + + + {/* TODO: devices */} + + + + + + + + + + + + [ + { + name: `deploy.labels[${index}].key`, + placeholder: "Key", + required: true, + type: "text" + }, + { + name: `deploy.labels[${index}].value`, + placeholder: "Value", + type: "text" + } + ]} + newValue={{ key: "", value: "" }} + /> + + ); +}; + +export default Deploy;