исправлены данные для соединения с сервером, подготовлено для деплоя, fix padding form, fix footer href

This commit is contained in:
DmitriyB
2022-08-01 16:48:55 +05:00
parent 70dbfe309f
commit f99f5cc934
8 changed files with 30 additions and 9 deletions
+8 -1
View File
@@ -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() {
+8 -4
View File
@@ -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

+6
View File
@@ -66,4 +66,10 @@
.MuiFormHelperText-root.Mui-error {
font-size: .6vw !important;
}
}
@media screen and (max-width: 640px) {
.request-form {
gap: 15px;
}
}
+2 -1
View File
@@ -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%; */
}
+1
View File
@@ -199,6 +199,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
}
function toMain() {
document.location.reload();
changeContentFunc();
setCurrentContent(defaultCurrentContent);
setPlanContent(null);
+4 -2
View File
@@ -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
}
+1 -1
View File
@@ -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() {