Port hijack frontend finished

This commit is contained in:
DomySh
2022-08-12 18:51:50 +00:00
parent a8330a9516
commit 354770279b
8 changed files with 137 additions and 95 deletions

View File

@@ -71,7 +71,7 @@ function AddNewService({ opened, onClose }:{ opened:boolean, onClose:()=>void })
<PortInput
fullWidth
label="Public Service port"
others={form.getInputProps('port')}
{...form.getInputProps('port')}
/>
{form.values.chosenInternalPort?<>
@@ -79,7 +79,7 @@ function AddNewService({ opened, onClose }:{ opened:boolean, onClose:()=>void })
<PortInput
fullWidth
label="Internal Proxy Port"
others={form.getInputProps('internalPort')}
{...form.getInputProps('internalPort')}
/>
<Space h="sm" />
</>:null}

View File

@@ -1,4 +1,4 @@
import { Button, Group, NumberInput, Space, Notification, Modal, Center, Title } from '@mantine/core';
import { Button, Group, Space, Notification, Modal, Center, Title } from '@mantine/core';
import { useForm } from '@mantine/hooks';
import React, { useEffect, useState } from 'react';
import { ImCross } from "react-icons/im"
@@ -62,7 +62,7 @@ function ChangePortModal({ service, opened, onClose }:{ service:Service, opened:
<PortInput
fullWidth
label="Internal Proxy Port"
others={form.getInputProps('internalPort')}
{...form.getInputProps('internalPort')}
/>
<Space h="xl" />
@@ -71,7 +71,7 @@ function ChangePortModal({ service, opened, onClose }:{ service:Service, opened:
<PortInput
fullWidth
label="Public Service Port"
others={form.getInputProps('port')}
{...form.getInputProps('port')}
/>
<Space h="xl" />