diff --git a/services/frontend/src/components/Modal/service/Build.tsx b/services/frontend/src/components/Modal/service/Build.tsx new file mode 100644 index 0000000..11ad356 --- /dev/null +++ b/services/frontend/src/components/Modal/service/Build.tsx @@ -0,0 +1,147 @@ +import { styled } from "@mui/joy"; +import TextField from "../../global/FormElements/TextField"; +import Records from "../../Records"; + +const Root = styled("div")` + display: flex; + flex-direction: column; + row-gap: ${({ theme }) => theme.spacing(1)}; +`; + +const Build = () => { + return ( + + + + + + + + + + + + [ + { + name: `build.arguments[${index}].key`, + placeholder: "Key", + required: true, + type: "text" + }, + { + name: `build.arguments[${index}].value`, + placeholder: "Value", + type: "text" + } + ]} + newValue={{ + key: "", + value: "" + }} + /> + + [ + { + name: `build.labels[${index}].key`, + placeholder: "Key", + required: true, + type: "text" + }, + { + name: `build.labels[${index}].value`, + placeholder: "Value", + type: "text" + } + ]} + newValue={{ key: "", value: "" }} + /> + + [ + { + name: `build.sshAuthentications[${index}].id`, + placeholder: "ID", + required: true, + type: "text" + }, + { + name: `build.sshAuthentications[${index}].path`, + placeholder: "Path", + type: "text" + } + ]} + newValue={{ + id: "", + path: "" + }} + /> + + [ + { + name: `build.cacheFrom[${index}]`, + placeholder: "Location", + required: true, + type: "text" + } + ]} + newValue={""} + /> + + [ + { + name: `build.cacheTo[${index}]`, + placeholder: "Location", + required: true, + type: "text" + } + ]} + newValue={""} + /> + + [ + { + name: `build.extraHosts[${index}].hostName`, + placeholder: "Host name", + required: true, + type: "text" + }, + { + name: `build.extraHosts[${index}].ipAddress`, + placeholder: "IP address", + required: true, + type: "text" + } + ]} + newValue={{ + hostName: "", + ipAddress: "" + }} + /> + + ); +}; + +export default Build;