Skip to content
Snippets Groups Projects
Unverified Commit 9b22ade1 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Remove "commonUtils.getAPiUrl()" calls

parent b6da8a31
No related branches found
No related tags found
No related merge requests found
Pipeline #16176 passed
...@@ -7,7 +7,6 @@ import {AuthKeycloak} from '@dbp-toolkit/auth'; ...@@ -7,7 +7,6 @@ import {AuthKeycloak} from '@dbp-toolkit/auth';
import {AuthMenuButton} from './auth-menu-button.js'; import {AuthMenuButton} from './auth-menu-button.js';
import {Notification} from '@dbp-toolkit/notification'; import {Notification} from '@dbp-toolkit/notification';
import * as commonStyles from '@dbp-toolkit/common/styles'; import * as commonStyles from '@dbp-toolkit/common/styles';
import * as commonUtils from '@dbp-toolkit/common/utils';
import {classMap} from 'lit-html/directives/class-map.js'; import {classMap} from 'lit-html/directives/class-map.js';
import {Router} from './router.js'; import {Router} from './router.js';
import {BuildInfo} from './build-info.js'; import {BuildInfo} from './build-info.js';
...@@ -47,7 +46,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) { ...@@ -47,7 +46,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
super(); super();
this.lang = i18n.language; this.lang = i18n.language;
this.activeView = ''; this.activeView = '';
this.entryPointUrl = commonUtils.getAPiUrl(); this.entryPointUrl = '';
this.subtitle = ''; this.subtitle = '';
this.description = ''; this.description = '';
this.routes = []; this.routes = [];
...@@ -815,7 +814,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) { ...@@ -815,7 +814,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
return html` return html`
<slot class="${slotClassMap}"></slot> <slot class="${slotClassMap}"></slot>
<dbp-auth-keycloak lang="${this.lang}" url="${kc.url}" realm="${kc.realm}" client-id="${kc.clientId}" silent-check-sso-redirect-uri="${kc.silentCheckSsoRedirectUri || ''}" scope="${kc.scope || ''}" idp-hint="${kc.idpHint || ''}" load-person ?force-login="${kc.forceLogin}" ?try-login="${!kc.forceLogin}"></dbp-auth-keycloak> <dbp-auth-keycloak lang="${this.lang}" entry-point-url="${this.entryPointUrl}" url="${kc.url}" realm="${kc.realm}" client-id="${kc.clientId}" silent-check-sso-redirect-uri="${kc.silentCheckSsoRedirectUri || ''}" scope="${kc.scope || ''}" idp-hint="${kc.idpHint || ''}" load-person ?force-login="${kc.forceLogin}" ?try-login="${!kc.forceLogin}"></dbp-auth-keycloak>
<dbp-matomo endpoint="${this.matomoUrl}" site-id="${this.matomoSiteId}" git-info="${this.gitInfo}"></dbp-matomo> <dbp-matomo endpoint="${this.matomoUrl}" site-id="${this.matomoSiteId}" git-info="${this.gitInfo}"></dbp-matomo>
<div class="${mainClassMap}"> <div class="${mainClassMap}">
<div id="main"> <div id="main">
......
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import JSONLD from '@dbp-toolkit/common/jsonld'; import JSONLD from '@dbp-toolkit/common/jsonld';
import * as commonUtils from '@dbp-toolkit/common/utils';
import {EventBus} from '@dbp-toolkit/common'; import {EventBus} from '@dbp-toolkit/common';
import {KeycloakWrapper} from './keycloak.js'; import {KeycloakWrapper} from './keycloak.js';
import {LoginStatus} from './util.js'; import {LoginStatus} from './util.js';
...@@ -33,7 +32,7 @@ export class AuthKeycloak extends AdapterLitElement { ...@@ -33,7 +32,7 @@ export class AuthKeycloak extends AdapterLitElement {
this.personId = ""; this.personId = "";
this.tryLogin = false; this.tryLogin = false;
this.person = null; this.person = null;
this.entryPointUrl = commonUtils.getAPiUrl(); this.entryPointUrl = '';
this._loginStatus = LoginStatus.UNKNOWN; this._loginStatus = LoginStatus.UNKNOWN;
// Keycloak config // Keycloak config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment