Skip to content

Commit

Permalink
🐛 Fix generator form
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinbreiz committed Mar 21, 2024
1 parent 9c82408 commit 1b0cec6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 31 deletions.
31 changes: 1 addition & 30 deletions src/components/dashboard/Others.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,8 @@ const Others = () => {
</Grid>
</Grid>
<Grid container spacing={2} mb={3} direction="row">
{/* General Configuration */}
<Grid item xs={6}>
<Typography variant="h6" mb={2}>{t('configGenerator.generalConfiguration')}</Typography>
<Grid container spacing={2} direction="column" alignItems="stretch">
<Grid item>
<TextField
type="text"
variant="outlined"
label={t('configGenerator.subnetLabel')}
value={subnet}
onChange={(e) => setSubnet(e.target.value)}
fullWidth
sx={getTextFieldStyles(isNightMode)}
/>
</Grid>
<Grid item>
<TextField
type="text"
variant="outlined"
label={t('configGenerator.dockerfilePathLabel')}
value={dockerPath}
onChange={(e) => setDockerPath(e.target.value)}
fullWidth
sx={getTextFieldStyles(isNightMode)}
/>
</Grid>
</Grid>
</Grid>
{/* Services Configuration */}
<Grid item xs={6}>
<Grid item xs={12}>
<Typography variant="h6" mb={2}>{t('configGenerator.services')}</Typography>
<Grid container spacing={2} direction="column" alignItems="stretch">
<Grid item>
Expand All @@ -175,7 +147,6 @@ const Others = () => {
onChange={(e) => setDummyPcIPAddresses(e.target.value)}
fullWidth
sx={getTextFieldStyles(isNightMode)}
helperText={t('configGenerator.ipAddressesForDummyPCsHelp')}
/>
</Grid>
<Grid item>
Expand Down
1 change: 1 addition & 0 deletions src/locales/ch/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"dockerfilePathLabel": "Dockerfile 路径",
"numberOfDummyPCLabel": "假 PC 数量",
"ipAddressForDummyPCLabel": "假 PC 的 IP 地址",
"ipAddressesForDummyPCsLabel": "假冒 PC 的 IP 地址",
"ipAddressForFTPLabel": "FTP 的 IP 地址",
"portForFTPLabel": "FTP 端口",
"downloadConfiguration": "应用配置",
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"subnetLabel": "Subnet",
"dockerfilePathLabel": "Dockerfile path",
"numberOfDummyPCLabel": "Number of dummy PC",
"ipAddressesForDummyPCsLabel": "IP addresses for dummy PCs",
"ipAddressForDummyPCLabel": "IP Address for dummy PC",
"ipAddressForFTPLabel": "IP Address for FTP",
"portForFTPLabel": "Port for FTP",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"subnetLabel": "Subred",
"dockerfilePathLabel": "Ruta del archivo Docker",
"numberOfDummyPCLabel": "Número de PC falsas",
"ipAddressForDummyPCLabel": "Dirección IP de la PC falsa",
"ipAddressesForDummyPCsLabel": "IP para PC falsos",
"ipAddressForDummyPCLabel": "IP de la PC falsa",
"ipAddressForFTPLabel": "Dirección IP para FTP",
"portForFTPLabel": "Puerto para FTP",
"downloadConfiguration": "Aplicar configuración",
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"subnetLabel": "Sous-réseau",
"dockerfilePathLabel": "Chemin du Dockerfile",
"numberOfDummyPCLabel": "Nombre de faux PC",
"ipAddressesForDummyPCsLabel": "Adresses IP pour les faux PC",
"ipAddressForDummyPCLabel": "Adresse IP pour le faux PC",
"ipAddressForFTPLabel": "Adresse IP pour le FTP",
"portForFTPLabel": "Port pour le FTP",
Expand Down

0 comments on commit 1b0cec6

Please sign in to comment.