Skip to content
Snippets Groups Projects
Commit 1c372cfd authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Merge branch 'master' of gitlab.tugraz.at:dbp/web-components/toolkit

parents 0ed76466 5c51bd01
No related branches found
No related tags found
No related merge requests found
Pipeline #14032 passed
Showing with 6 additions and 37 deletions
# App Shell Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/apps/AppShell)
A web component for building SPAs consisting of one topic with multiple
activities. Handles login, language selection, activity switching, menus etc.
......
# Auth Web Components
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/Auth)
## Keycloak Component
### Usage
......
......@@ -37,17 +37,17 @@
},
"scripts": {
"clean": "rm dist/*",
"build": "npm run build-local",
"build": "yarn run build-local",
"build-local": "rollup -c",
"build-dev": "rollup -c --environment BUILD:development",
"build-prod": "rollup -c --environment BUILD:production",
"build-demo": "rollup -c --environment BUILD:demo",
"build-test": "rollup -c --environment BUILD:test",
"i18next": "i18next-scanner",
"watch": "npm run watch-local",
"watch": "yarn run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun",
"test": "yarn run build-test && karma start --singleRun",
"lint": "eslint ."
}
}
......@@ -87,17 +87,14 @@ export class KeycloakWrapper extends EventTarget {
let refreshed = false;
try {
refreshed = await this._keycloak.updateToken(5);
// -1 means force a refresh
refreshed = await this._keycloak.updateToken(-1);
} catch (error) {
console.log('Failed to refresh the token', error);
return;
}
if (refreshed) {
console.log('Token was successfully refreshed');
} else {
console.log('Token is still valid');
}
console.assert(refreshed, "token should have been refreshed");
}
async _ensureInstance() {
......@@ -124,7 +121,6 @@ export class KeycloakWrapper extends EventTarget {
async _keycloakInit(options) {
// https://gitlab.tugraz.at/dbp/apps/library/issues/41
// retry the keycloak init in case it fails, maybe it helps :/
options['idpHint'] = 'eid-oidc';
try {
return await this._keycloak.init(options);
} catch (e) {
......@@ -189,7 +185,6 @@ export class KeycloakWrapper extends EventTarget {
scope: scope,
idpHint: this._idpHint,
});
//options['idpHint'] = 'eid-oidc';
}
}
......
# Check-in place select web component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/toolkit)
## Usage
```html
......
# Common Code
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/Common)
## Icon Web Component
For valid icon names see: [LineIcons](https://lineicons.com/icons/)
......
# DataTableView Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/KnowledgeBaseWebPageElementView)
# Usage
```html
......
# File handling web components
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/FileHandling)
## FileSource
This web component allows the selection of local files via file dialog or drag and drop and to select and download
......
# KnowledgeBaseWebPageElementView Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/KnowledgeBaseWebPageElementView)
## Usage
```html
......
# Language Select Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/LanguageSelect)
## Local development
```bash
......
# Matomo Web Component
[GitLab Repository](git@gitlab.tugraz.at:dbp/web-components/toolkit.git)
## Usage
```html
......
# Notification Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/Notification)
## Usage
```html
......
# Person Profile Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/PersonProfile)
## Usage
```html
......
# Person Select Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/PersonSelect)
## Usage
```html
......
# QR code Scanner Web Component
[GitLab Repository](https://gitlab.tugraz.at/dbp/web-components/qr-code-scanner)
## Requirements
- Https
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment