Skip to content

Commit

Permalink
members panel improvements (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
turboMaCk authored and ICTGuerrilla committed Aug 12, 2023
1 parent f74a156 commit 4237529
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions members-panel/config.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"keycloak_url": "https://keycloak.ictunion.cz",
"keycloak_realm": "members",
"keycloak_client_id": "test-client"
"keycloak_realm": "testing-members",
"keycloak_client_id": "members-panel"
}
3 changes: 3 additions & 0 deletions members-panel/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ export interface Config {
keycloak_realm: string;
keycloak_client_id: string;
}

const config = require("../config.json") as Config;
export default config;
4 changes: 1 addition & 3 deletions members-panel/src/keycloak.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Keycloak from 'keycloak-js';
import { Config, Url } from './config';

const config = (require('../config.json') as Config);
import config, { Url } from './config';

// Initialize singleton
const keycloak: Keycloak = new Keycloak({
Expand Down

0 comments on commit 4237529

Please sign in to comment.