import React from 'react';
import { Card, CardBody, Button, CardTitle, CardGroup, CardImg } from 'reactstrap';
import { Link } from 'react-router-dom';
import "./Googs.scss";
import items from './Googsprops';
const Item = (item) => {
return (
<Card className="card-block">
<CardImg top width="100%" src={item.picture} alt={item.imgalt} />
<CardBody>
<CardTitle>{item.heading}</CardTitle>
<Button className="card-button">
<Link to={item.anchor}>Смотреть</Link>
</Button>
</CardBody>
</Card>
)
}
class ItemList extends React.Component {
render() {
const itemElements = this.props.items.map(item =>
<Item item = {item}/>
)
return (
<>
{itemElements}
</>
)
}
}
class Googs extends React.Component {
render() {
return (
<CardGroup>
<ItemList items = {items}/>
</CardGroup>
);
}
}
export default Googs;
@echo off
set /p mesto="Выберите настройки (1 - EKK, 2 - SUFD): "
echo Выбраны настройки - %mesto%
if %mesto% equ 2 goto EKK
if %mesto% equ 2 goto SUFD
:EKK
set IFACE="local"
set IP=10.42.136.133
set MASK=255.255.255.192
set GATEWAY=10.42.136.129
set GWMETRIC=1
set DNS1=10.42.136.129
set DNS2=104.42.136.129
:SUFD
set IFACE="local"
set IP=192.168.5.133
set MASK=255.255.255.0
set GATEWAY=192.168.5.1
set GWMETRIC=1
set DNS1=192.168.5.1
echo _____
echo Устанавливаем IP адрес-%IP%
echo Маску подсети-%MASK%
echo Основной Шлюз-%GATEWAY%
netsh interface ip set address name=%IFACE% source=static addr=%IP% mask=%MASK% gateway=%GATEWAY% gwmetric=%GWMETRIC%
echo Устанавливаем основной DNS сервер %DNS1%
netsh interface ip set dns name=%IFACE% source=static addr=%DNS1% register=PRIMARY
echo Настройки сети изменены:
ipconfig /all
echo _____
pause