This commit is contained in:
Denis Manherz 2023-08-18 22:49:57 +02:00
parent b6cd3ff9ae
commit d8e6fb5316
5 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Why no working</title>
<title>Sol</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"

View file

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --host",
"build": "vite build",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"

View file

@ -137,7 +137,8 @@ canvas {
z-index: 10;
display: flex;
justify-content: center;
bottom:3%;
top:95%;
height: 20px;
width: 100%;
}

View file

@ -144,7 +144,7 @@ export const SharedPlanetState = ({ planetData, linePos }) => {
const fetchData = async () => {
fetch(
`http://127.0.0.1:8000/duration` + `?date=${dateTime.current}`
`http://192.168.1.136:8000/duration` + `?date=${dateTime.current}`
).then((response) => {
if (!response.ok) {
throw new Error(
@ -175,7 +175,7 @@ export const SharedPlanetState = ({ planetData, linePos }) => {
const getRealTimePos = () => {
const fetchData = async () => {
fetch(`http://127.0.0.1:8000/now`).then((response) => {
fetch(`http://192.168.1.136:8000/now`).then((response) => {
if (!response.ok) {
throw new Error(
`This is an HTTP error: The status is ${response.status}`

View file

@ -82,7 +82,7 @@ export const PlanetPath = ({
if(first.current){
const fetchLinePos = async () => {
fetch(
`http://127.0.0.1:8000/duration/line?name=${planet.name}&id=${planet.id}&LOY=${planet.year}`
`http://192.168.1.136:8000/duration/line?name=${planet.name}&id=${planet.id}&LOY=${planet.year}`
).then((response) => {
if (!response.ok) {
throw new Error(