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> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Why no working</title> <title>Sol</title>
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" 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", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite --host",
"build": "vite build", "build": "vite build",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview" "preview": "vite preview"

View file

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

View file

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

View file

@ -82,7 +82,7 @@ export const PlanetPath = ({
if(first.current){ if(first.current){
const fetchLinePos = async () => { const fetchLinePos = async () => {
fetch( 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) => { ).then((response) => {
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(