исправлены данные для соединения с сервером, подготовлено для деплоя, fix padding form, fix footer href
This commit is contained in:
+8
-1
@@ -15,6 +15,7 @@ type WsData = {
|
||||
}
|
||||
|
||||
function App() {
|
||||
// const [isSessionCreated, setIsSessionCreated] = useState(false);
|
||||
const [currentLang, setCurrentLang] = useState<'ru' | 'en'>('ru');
|
||||
const [wsEvent, setWsEvent] = useState<MessageEvent>(null);
|
||||
const portAndId = useRef<{port: string, id:string}>()
|
||||
@@ -62,7 +63,13 @@ function App() {
|
||||
}, []);
|
||||
|
||||
function createSess() {
|
||||
ws.send('{ "message" : "NEW_SESS" }');
|
||||
// if(!isSessionCreated) {
|
||||
// setIsSessionCreated(true);
|
||||
ws.send('{ "message" : "NEW_SESS" }');
|
||||
// } else {
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
function connectSess() {
|
||||
|
||||
@@ -29,21 +29,25 @@ export const Footer:React.FC = React.memo(() => {
|
||||
{
|
||||
value1: {
|
||||
type: 'email',
|
||||
value: 'info@graff.tech'
|
||||
value: 'info@graff.tech',
|
||||
href: 'info@graff.tech'
|
||||
},
|
||||
value2: {
|
||||
type: 'email',
|
||||
value: 'waseem@graff.tech'
|
||||
value: 'waseem@graff.tech',
|
||||
href: 'waseem@graff.tech'
|
||||
}
|
||||
},
|
||||
{
|
||||
value1: {
|
||||
type: "phone",
|
||||
value: '+7 800 770 00 67'
|
||||
value: '+7 800 770 00 67',
|
||||
href: '+7 800 770 00 67'
|
||||
},
|
||||
value2: {
|
||||
type: "phone",
|
||||
value: '+971 50 983 8902'
|
||||
value: '+971 50 983 8902',
|
||||
href: '+971 50 983 8902'
|
||||
}
|
||||
}
|
||||
]}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.1 MiB |
@@ -66,4 +66,10 @@
|
||||
.MuiFormHelperText-root.Mui-error {
|
||||
font-size: .6vw !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
.request-form {
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
/* background: url('backgroundImage.svg') 50% 50% no-repeat; */
|
||||
background: url('backgroundImagePng.png') 50% 50% no-repeat;
|
||||
/* background: url('backgroundImagePng.png') 50% 50% no-repeat; */
|
||||
background: url('backgroundJpgImage.jpg') 50% 50% no-repeat;
|
||||
background-color: #B196AF;
|
||||
/* background-size: 100% 100%; */
|
||||
}
|
||||
|
||||
@@ -199,6 +199,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
}
|
||||
|
||||
function toMain() {
|
||||
document.location.reload();
|
||||
changeContentFunc();
|
||||
setCurrentContent(defaultCurrentContent);
|
||||
setPlanContent(null);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
export const ConnectData = {
|
||||
pixelIp: "192.168.1.170",
|
||||
url: `http://192.168.1.170`,
|
||||
// pixelIp: "192.168.1.170",
|
||||
pixelIp: 'stream.graff.tech',
|
||||
// url: `http://192.168.1.170`,
|
||||
url: `https://stream.graff.tech`,
|
||||
port: 13001
|
||||
}
|
||||
@@ -4,7 +4,7 @@ export class Ws {
|
||||
ws: WebSocket;
|
||||
|
||||
constructor() {
|
||||
this.ws = new WebSocket(`ws://${ConnectData.pixelIp}:${ConnectData.port}`);
|
||||
this.ws = new WebSocket(`wss://${ConnectData.pixelIp}:${ConnectData.port}`);
|
||||
}
|
||||
|
||||
WebSokets() {
|
||||
|
||||
Reference in New Issue
Block a user