style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-13 20:12:09 +00:00
parent 441bf990e7
commit 4c5f6196f6
5 changed files with 37 additions and 18 deletions

View file

@ -50,7 +50,7 @@ services:
- 'traefik.http.routers.idp.rule=PathPrefix(`/idp`)'
- 'traefik.http.services.idp.loadbalancer.server.port=7080'
env_file:
- ./config/idp/.env
- ./config/idp/.env
environment:
KC_HOSTNAME: 'sel2-1.ugent.be'
PROXY_ADDRESS_FORWARDING: 'true'
@ -65,25 +65,25 @@ services:
- '443:443/tcp'
command:
# Add Docker provider
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
# Add web entrypoint
- "--entrypoints.web.address=:80/tcp"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- '--entrypoints.web.address=:80/tcp'
- '--entrypoints.web.http.redirections.entryPoint.to=websecure'
- '--entrypoints.web.http.redirections.entryPoint.scheme=https'
# Add websecure entrypoint
- "--entrypoints.websecure.address=:443/tcp"
- "--entrypoints.websecure.http.tls=true"
- "--entrypoints.websecure.http.tls.certResolver=letsencrypt"
- "--entrypoints.websecure.http.tls.domains[0].main=sel2-1.ugent.be"
- '--entrypoints.websecure.address=:443/tcp'
- '--entrypoints.websecure.http.tls=true'
- '--entrypoints.websecure.http.tls.certResolver=letsencrypt'
- '--entrypoints.websecure.http.tls.domains[0].main=sel2-1.ugent.be'
# Certificates
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.email=timo.demeyst@ugent.be"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- '--certificatesresolvers.letsencrypt.acme.httpchallenge=true'
- '--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web'
- '--certificatesresolvers.letsencrypt.acme.email=timo.demeyst@ugent.be'
- '--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json'
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro

View file

@ -21,7 +21,7 @@ services:
ports:
- '7080:7080'
# - '7443:7443'
command: [ 'start-dev', '--http-port', '7080', '--https-port', '7443', '--import-realm' ]
command: ['start-dev', '--http-port', '7080', '--https-port', '7443', '--import-realm']
restart: unless-stopped
volumes:
- ./config/idp:/opt/keycloak/data/import

View file

@ -620,7 +620,15 @@
"enabled": true,
"alwaysDisplayInConsole": false,
"clientAuthenticatorType": "client-jwt",
"redirectUris": ["urn:ietf:wg:oauth:2.0:oob", "http://localhost:5173/*", "http://localhost:5173", "http://localhost/*", "http://localhost", "https://sel2-1.ugent.be/*", "https://sel2-1.ugent.be"],
"redirectUris": [
"urn:ietf:wg:oauth:2.0:oob",
"http://localhost:5173/*",
"http://localhost:5173",
"http://localhost/*",
"http://localhost",
"https://sel2-1.ugent.be/*",
"https://sel2-1.ugent.be"
],
"webOrigins": ["+"],
"notBefore": 0,
"bearerOnly": false,

View file

@ -620,7 +620,15 @@
"enabled": true,
"alwaysDisplayInConsole": false,
"clientAuthenticatorType": "client-secret",
"redirectUris": ["urn:ietf:wg:oauth:2.0:oob", "http://localhost:5173/*", "http://localhost:5173", "http://localhost/*", "http://localhost", "https://sel2-1.ugent.be/*", "https://sel2-1.ugent.be"],
"redirectUris": [
"urn:ietf:wg:oauth:2.0:oob",
"http://localhost:5173/*",
"http://localhost:5173",
"http://localhost/*",
"http://localhost",
"https://sel2-1.ugent.be/*",
"https://sel2-1.ugent.be"
],
"webOrigins": ["+"],
"notBefore": 0,
"bearerOnly": false,

View file

@ -1,5 +1,8 @@
export const apiConfig = {
baseUrl: (window.location.hostname === "localhost" && !(window.location.port === '80' || window.location.port === '')) ? "http://localhost:3000/api" : window.location.origin + "/api",
baseUrl:
window.location.hostname === "localhost" && !(window.location.port === "80" || window.location.port === "")
? "http://localhost:3000/api"
: window.location.origin + "/api",
};
export const loginRoute = "/login";