Изменение заголовков в разделах с узлами и точками доступа

This commit is contained in:
parent 950a09d18b
commit 060f4de175
6 changed files with 9 additions and 9 deletions

View file

@ -100,7 +100,7 @@ const DeviceCard: React.FC<DeviceCardProps> = ({ device, status }) => {
<CardContent isExpanded={isExpanded}> <CardContent isExpanded={isExpanded}>
<InfoRow> <InfoRow>
<Label>Имя:</Label> <Label>Имя:</Label>
<Value>{device.hostname || 'Неизвестно'}</Value> <Value>{device.hostname || device.ip}</Value>
</InfoRow> </InfoRow>
<InfoRow> <InfoRow>

View file

@ -87,7 +87,7 @@ const TableScanner = ({devices}:TableScannerProps) => {
{devices.map((item, i) => ( {devices.map((item, i) => (
<TableRow key={i}> <TableRow key={i}>
<TableCell><StatusBadge status={item.status}></StatusBadge></TableCell> <TableCell><StatusBadge status={item.status}></StatusBadge></TableCell>
<TableCell>{item.hostname || 'Неизвестен'}</TableCell> <TableCell>{item.hostname || item.ip}</TableCell>
<TableCell>{item.vendor}</TableCell> <TableCell>{item.vendor}</TableCell>
<TableCell>{item.ip}</TableCell> <TableCell>{item.ip}</TableCell>
<TableCell>{item.open_ports.join(', ') || '-'}</TableCell> <TableCell>{item.open_ports.join(', ') || '-'}</TableCell>

View file

@ -31,7 +31,7 @@ const ListUsers = ({loading, handleScan, devices, scanInitiated}: ListUsersProps
return ( return (
<> <>
<ScanBtn onClick={handleScan} disabled={loading}> <ScanBtn onClick={handleScan} disabled={loading}>
{devices.length > 0 ? 'Обновить список' : 'Сканировать сеть'} {devices.length > 0 ? 'Обновить список' : 'Сканировать узлы подсети'}
</ScanBtn> </ScanBtn>
{devices.length > 0 ? ( {devices.length > 0 ? (

View file

@ -30,7 +30,7 @@ const ListUsers = ({loading, handleScan, devices, scanInitiated}: ListUsersProps
return ( return (
<> <>
<ScanBtn onClick={handleScan} disabled={loading}> <ScanBtn onClick={handleScan} disabled={loading}>
{devices.length > 0 ? 'Обновить список' : 'Сканировать сеть'} {devices.length > 0 ? 'Обновить список' : 'Сканировать узлы подсети'}
</ScanBtn> </ScanBtn>
{devices.length > 0 ? ( {devices.length > 0 ? (

View file

@ -163,7 +163,7 @@ export default function UserScanner() {
return ( return (
<Wrapper scanInitiated={scanInitiated} loading={loading}> <Wrapper scanInitiated={scanInitiated} loading={loading}>
{(!scanInitiated || loading) && (<TitleWrapper>Сканирование пользователей в сети</TitleWrapper>)} {(!scanInitiated || loading) && (<TitleWrapper>Сканирование узлов в подсети</TitleWrapper>)}
<UserLocate loading={loading} scanInitiated={scanInitiated}> <UserLocate loading={loading} scanInitiated={scanInitiated}>
<span className="center"></span> <span className="center"></span>
<span className="ring1"></span> <span className="ring1"></span>
@ -177,7 +177,7 @@ export default function UserScanner() {
{loading ? ( {loading ? (
<LoadingText> <LoadingText>
Сканирование сети<ScanningText /> Сканирование узлов в подсети<ScanningText />
</LoadingText> </LoadingText>
) : selectedView.value == 1 ? ( ) : selectedView.value == 1 ? (
<TableUsers loading={loading} handleScan={handleScan} devices={devices} scanInitiated={scanInitiated} /> <TableUsers loading={loading} handleScan={handleScan} devices={devices} scanInitiated={scanInitiated} />

View file

@ -161,7 +161,7 @@ export function WifiScanner() {
return ( return (
<Wrapper scanInitiated={scanInitiated} loading={loading}> <Wrapper scanInitiated={scanInitiated} loading={loading}>
<TitleWrapper>Сканирование Wi-Fi сети</TitleWrapper> <TitleWrapper>Сканирование точек доступа Wi-Fi</TitleWrapper>
<UserLocate loading={loading} scanInitiated={scanInitiated}> <UserLocate loading={loading} scanInitiated={scanInitiated}>
<span className="center circel"></span> <span className="center circel"></span>
@ -186,11 +186,11 @@ export function WifiScanner() {
{loading ? ( {loading ? (
<LoadingText> <LoadingText>
Сканирование сети <ScanningText/> Сканирование точек доступа <ScanningText/>
</LoadingText> </LoadingText>
) : ( ) : (
<ScanBtn onClick={handleScan} disabled={loading} scanInitiated={wifiNetworks.length > 0 }> <ScanBtn onClick={handleScan} disabled={loading} scanInitiated={wifiNetworks.length > 0 }>
{wifiNetworks.length > 0 ? 'Обновить список' : 'Сканировать сеть'} {wifiNetworks.length > 0 ? 'Обновить список' : 'Сканировать точки доступа'}
</ScanBtn> </ScanBtn>
)} )}
</Wrapper> </Wrapper>