upd:: delete once
This commit is contained in:
parent
f2cedef6ae
commit
4871f9e5b9
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*.env
|
*.env
|
||||||
*/*/node_modules
|
*/*/node_modules
|
||||||
|
*/*/.next/
|
9
DOCS.md
9
DOCS.md
@ -1,4 +1,13 @@
|
|||||||
|
|
||||||
|
```
|
||||||
|
____________________________ _____________________________________ ___
|
||||||
|
___ __ \__ __ \_ __ \__ | / /__ ____/__ __/_ ___/___ _/__ |/ /
|
||||||
|
__ / / /_ /_/ / / / /_ |/ /__ __/ __ / _____ \ __ / __ /|_/ /
|
||||||
|
_ /_/ /_ _, _// /_/ /_ /| / _ /___ _ / ____/ /__/ / _ / / /
|
||||||
|
/_____/ /_/ |_| \____/ /_/ |_/ /_____/ /_/ /____/ /___/ /_/ /_/
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
SOCKET MESSAGING:
|
SOCKET MESSAGING:
|
||||||
// PORT CHANGE IN .env
|
// PORT CHANGE IN .env
|
||||||
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
NCOLS 10801
|
|
||||||
NROWS 5401
|
|
||||||
XLLCENTER -180.00000
|
|
||||||
YLLCENTER -90.00000
|
|
||||||
CELLSIZE 0.03333333333
|
|
||||||
NODATA_VALUE 999999
|
|
||||||
BYTEORDER LSBFIRST
|
|
||||||
NUMBERTYPE 4_BYTE_FLOAT
|
|
||||||
MIN_VALUE -10722.0
|
|
||||||
MAX_VALUE 8046.0
|
|
BIN
src/frontend/public/map/map.fbx
Normal file
BIN
src/frontend/public/map/map.fbx
Normal file
Binary file not shown.
BIN
src/frontend/public/map/map.glb
Normal file
BIN
src/frontend/public/map/map.glb
Normal file
Binary file not shown.
2
src/frontend/public/map/map.mtl
Normal file
2
src/frontend/public/map/map.mtl
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Blender 4.2.3 LTS MTL File: 'None'
|
||||||
|
# www.blender.org
|
474394
src/frontend/public/map/map.obj
Normal file
474394
src/frontend/public/map/map.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,8 +0,0 @@
|
|||||||
import { render, screen } from '@testing-library/react';
|
|
||||||
import App from './App';
|
|
||||||
|
|
||||||
test('renders learn react link', () => {
|
|
||||||
render(<App />);
|
|
||||||
const linkElement = screen.getByText(/learn react/i);
|
|
||||||
expect(linkElement).toBeInTheDocument();
|
|
||||||
});
|
|
@ -163,7 +163,16 @@ const Dashboard = () => {
|
|||||||
const light = new THREE.DirectionalLight(0xffffff, 1);
|
const light = new THREE.DirectionalLight(0xffffff, 1);
|
||||||
light.position.set(0, 50, 50).normalize();
|
light.position.set(0, 50, 50).normalize();
|
||||||
scene.add(light);
|
scene.add(light);
|
||||||
|
// Функция для обновления размеров при изменении размеров окна
|
||||||
|
const handleResize = () => {
|
||||||
|
const newWidth = mountRef.current.clientWidth;
|
||||||
|
const newHeight = mountRef.current.clientHeight;
|
||||||
|
camera.aspect = newWidth / newHeight;
|
||||||
|
camera.updateProjectionMatrix();
|
||||||
|
renderer.setSize(newWidth, newHeight);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Добавляем обработчик события resize
|
||||||
const handleMouseMove = (event) => {
|
const handleMouseMove = (event) => {
|
||||||
let x = event.x;
|
let x = event.x;
|
||||||
let y = event.y;
|
let y = event.y;
|
||||||
@ -174,7 +183,7 @@ const Dashboard = () => {
|
|||||||
controls.update();
|
controls.update();
|
||||||
renderer.render(scene, camera);
|
renderer.render(scene, camera);
|
||||||
};
|
};
|
||||||
|
window.addEventListener('resize', handleResize);
|
||||||
renderer.domElement.addEventListener('click', handleClick);
|
renderer.domElement.addEventListener('click', handleClick);
|
||||||
renderer.domElement.addEventListener('mousemove', handleMouseMove);
|
renderer.domElement.addEventListener('mousemove', handleMouseMove);
|
||||||
|
|
||||||
@ -197,6 +206,8 @@ const Dashboard = () => {
|
|||||||
});
|
});
|
||||||
return () => {
|
return () => {
|
||||||
if (mountRef.current) {
|
if (mountRef.current) {
|
||||||
|
|
||||||
|
window.removeEventListener('resize', handleResize)
|
||||||
mountRef.current.removeChild(renderer.domElement);
|
mountRef.current.removeChild(renderer.domElement);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,18 @@
|
|||||||
|
|
||||||
|
|
||||||
export const ProgramInterface = ({mouseState, mountRef, openModal, sendMessage, RunSimulatorSignal, getCustomCookie}) => {
|
export const ProgramInterface = ({mouseState, mountRef, openModal, sendMessage, RunSimulatorSignal, getCustomCookie}) => {
|
||||||
return (
|
const handleFullScreen = () => {
|
||||||
|
if (mountRef.current) {
|
||||||
|
if (mountRef.current.requestFullscreen) {
|
||||||
|
mountRef.current.requestFullscreen();
|
||||||
|
} else if (mountRef.current.webkitRequestFullscreen) { // для Safari
|
||||||
|
mountRef.current.webkitRequestFullscreen();
|
||||||
|
} else if (mountRef.current.msRequestFullscreen) { // для IE/Edge
|
||||||
|
mountRef.current.msRequestFullscreen();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (
|
||||||
<div className='coler-border'>
|
<div className='coler-border'>
|
||||||
<div>
|
<div>
|
||||||
<p> X: {mouseState.x} Y: {mouseState.y} Z: {mouseState.z}</p>
|
<p> X: {mouseState.x} Y: {mouseState.y} Z: {mouseState.z}</p>
|
||||||
@ -14,7 +25,9 @@ export const ProgramInterface = ({mouseState, mountRef, openModal, sendMessage,
|
|||||||
}} />
|
}} />
|
||||||
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
|
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
|
||||||
<div class="btn-group me-2" role="group" aria-label="First group">
|
<div class="btn-group me-2" role="group" aria-label="First group">
|
||||||
|
<button type="button" onClick={handleFullScreen}>
|
||||||
|
<i class="bi-fullscreen"/>Развернуть на весь экран
|
||||||
|
</button>
|
||||||
<button type="button" onClick={() => openModal('isModalAddOpen')} class="btn btn-success">
|
<button type="button" onClick={() => openModal('isModalAddOpen')} class="btn btn-success">
|
||||||
<i class="bi-plus"/>Добавить
|
<i class="bi-plus"/>Добавить
|
||||||
</button>
|
</button>
|
||||||
|
@ -35,7 +35,7 @@ export const SimulatorInterface = ({ mouseState, sendMessage, RunSimulatorSignal
|
|||||||
sendMessage(RunSimulatorSignal(getCustomCookie("userToken")));
|
sendMessage(RunSimulatorSignal(getCustomCookie("userToken")));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getSimulationState = (timeValue) => {
|
const getSimulationState = (timeValue) => {
|
||||||
// Здесь должна быть логика получения состояния симуляции на основе времени
|
// Здесь должна быть логика получения состояния симуляции на основе времени
|
||||||
// Например, используйте временную шкалу и объекты, чтобы получить правильное состояние
|
// Например, используйте временную шкалу и объекты, чтобы получить правильное состояние
|
||||||
@ -47,12 +47,17 @@ export const SimulatorInterface = ({ mouseState, sendMessage, RunSimulatorSignal
|
|||||||
<div>
|
<div>
|
||||||
<p> X: {mouseState.x} Y: {mouseState.y} Z: {mouseState.z}</p>
|
<p> X: {mouseState.x} Y: {mouseState.y} Z: {mouseState.z}</p>
|
||||||
</div>
|
</div>
|
||||||
<div ref={mountRef} style={{
|
<div
|
||||||
minWidth: '100%',
|
ref={mountRef}
|
||||||
minHeight: '60vh',
|
style={{
|
||||||
position: 'relative'
|
minWidth: '100%',
|
||||||
}} />
|
minHeight: '60vh',
|
||||||
|
position: 'relative',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<div style={{ display: 'flex', alignItems: 'center', margin: '20px 0' }}>
|
<div style={{ display: 'flex', alignItems: 'center', margin: '20px 0' }}>
|
||||||
|
|
||||||
<button onClick={handlePlayPause} style={{
|
<button onClick={handlePlayPause} style={{
|
||||||
backgroundColor: '#007bff',
|
backgroundColor: '#007bff',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"moxitech/dns/internal/database"
|
"moxitech/dns/internal/database"
|
||||||
"moxitech/dns/internal/server"
|
"moxitech/dns/internal/server"
|
||||||
|
|
||||||
@ -80,7 +81,7 @@ func main() {
|
|||||||
|
|
||||||
// RANDOM_STRING_TEST
|
// RANDOM_STRING_TEST
|
||||||
// fmt.Println(randomizer.GenerateRandomString())
|
// fmt.Println(randomizer.GenerateRandomString())
|
||||||
|
FlushLogo()
|
||||||
D_EXPORT_VARS()
|
D_EXPORT_VARS()
|
||||||
err := database.NewDBConnection()
|
err := database.NewDBConnection()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -96,3 +97,12 @@ func main() {
|
|||||||
func D_EXPORT_VARS() {
|
func D_EXPORT_VARS() {
|
||||||
os.Setenv("SERVER_BASE_ADDRESS", "0.0.0.0:8080")
|
os.Setenv("SERVER_BASE_ADDRESS", "0.0.0.0:8080")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func FlushLogo() {
|
||||||
|
fmt.Println("_____________________________ _____________________________________ ___")
|
||||||
|
fmt.Println("____ __ \\__ __ \\_ __ \\__ | / /__ ____/__ __/_ ___/___ _/__ |/ /")
|
||||||
|
fmt.Println("___ / / /_ /_/ / / / /_ |/ /__ __/ __ / _____ \\ __ / __ /|_/ /")
|
||||||
|
fmt.Println("__ /_/ /_ _, _// /_/ /_ /| / _ /___ _ / ____/ /__/ / _ / / /")
|
||||||
|
fmt.Println("./_____/ /_/ |_| \\____/ /_/ |_/ /_____/ /_/ /____/ /___/ /_/ /_/")
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
package dto
|
|
@ -1 +0,0 @@
|
|||||||
package dto
|
|
Loading…
Reference in New Issue
Block a user