This commit is contained in:
Trushy committed 2025-10-03 11:58:59 +02:00
1 parent 88a9778f3a
commit 9fbd6e4191
5 files changed
+9 -5

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ services:
environment: environment:
# domain:port or only domain, eg jeopardyserver.akolata.de # domain:port or only domain, eg jeopardyserver.akolata.de
PUBLIC_JEOPARDY_SERVER: localhost:11001 PUBLIC_JEOPARDY_SERVER: localhost:11001
PUBLIC_JEOPARDY_SERVER_PROTOCOL: http
ports: ports:
- "11000:3000" - "11000:3000"
jeopardyserver: jeopardyserver:
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "jeopardy", "name": "jeopardy",
"version": "1.0.3", "version": "1.0.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "jeopardy", "name": "jeopardy",
"version": "1.0.3", "version": "1.0.4",
"dependencies": { "dependencies": {
"axios": "^1.12.2", "axios": "^1.12.2",
"cookie": "^1.0.2" "cookie": "^1.0.2"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "jeopardy", "name": "jeopardy",
"private": true, "private": true,
"version": "1.0.3", "version": "1.0.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
+4 -1
View File
@@ -8,7 +8,10 @@ export async function isAuthenticated() {
return true; return true;
} }
return axios return axios
.get(`http://${env.PUBLIC_JEOPARDY_SERVER}/user/username`, { withCredentials: true }) .get(
`${env.PUBLIC_JEOPARDY_SERVER_PROTOCOL}://${env.PUBLIC_JEOPARDY_SERVER}/user/username`,
{ withCredentials: true }
)
.then((res) => { .then((res) => {
if (res.status === 200) { if (res.status === 200) {
UserSvelte.username = res.data; UserSvelte.username = res.data;
+1 -1
View File
@@ -11,7 +11,7 @@
async function login() { async function login() {
axios axios
.post( .post(
`http://${env.PUBLIC_JEOPARDY_SERVER}/auth/login`, `${env.PUBLIC_JEOPARDY_SERVER_PROTOCOL}://${env.PUBLIC_JEOPARDY_SERVER}/auth/login`,
{ {
username: username, username: username,
password: password password: password