diff --git a/package.json b/package.json index 9ce9af1..27f53b6 100644 --- a/package.json +++ b/package.json @@ -42,5 +42,6 @@ "last 1 safari version" ] }, - "homepage": "http://localhost/dog" + "homepage____": "http://localhost:3000/dog", + "homepage": "https://hope-fly.de/dog" } diff --git a/php/php-dog/classes/Database.php b/php/php-dog/classes/Database.php index f1ef9bf..4564fc1 100644 --- a/php/php-dog/classes/Database.php +++ b/php/php-dog/classes/Database.php @@ -3,8 +3,8 @@ class Database { // CHANGE THE DB INFO ACCORDING TO YOUR DATABASE - private $db_host = 'localhost'; - //private $db_host = '10.35.232.188:3306'; + //private $db_host = 'localhost'; + private $db_host = '10.35.232.188:3306'; private $db_name = 'k200835_dog'; private $db_username = 'k200835_user_dog'; private $db_password = 'X0pEiBsXN3RLazGhQVvP'; diff --git a/public/index.html b/public/index.html index ed1fb15..2079255 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + Hund gefunden? diff --git a/public/manifest.json b/public/manifest.json index d249cc1..9c114b1 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "Hund gefunden?", + "name": "--- Hund gefunden? ---", "icons": [ { "src": "favicon.ico", @@ -8,7 +8,7 @@ "type": "image/x-icon" } ], - "start_url": "./dog", + "start_url": ".", "display": "standalone", "theme_color": "#000000", "background_color": "#ffffff" diff --git a/src/App.tsx b/src/App.tsx index 5a8f1d4..2fe1639 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,16 +20,14 @@ function App() { user && } /> } - {user && ( + { ( <> } /> } /> } /> )} - {/* } /> */} - } /> - } /> + } /> diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index e09d3af..449b278 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -48,7 +48,8 @@ export type UserCtxT = export const UserCtx = createContext(null); export const Axios = axios.create({ - baseURL: 'http://localhost/dog/php-dog/', +// baseURL: 'http://localhost/dog/php-dog/', + baseURL: 'https://hope-fly.de/dog/php-dog/', }); export const UserCtxProvider = ({children}:TUserContextProviderProps) => { diff --git a/src/index.php b/src/index.php deleted file mode 100644 index c76bde3..0000000 --- a/src/index.php +++ /dev/null @@ -1,52 +0,0 @@ - $callback) { - if ($path !== $uri) continue; - - $found = true; - $callback(); - } - - if (!$found) { - $notFoundCallback = $routes['/404']; - $notFoundCallback(); - } -} -?> \ No newline at end of file