@dbp-toolkit/matomo
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@dbp-toolkit/matomo", | ||
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/matomo", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "src/index.js", | ||
@@ -31,3 +31,2 @@ "license": "LGPL-2.1-or-later", | ||
"rollup": "^2.33.3", | ||
"rollup-plugin-consts": "^1.0.1", | ||
"rollup-plugin-copy": "^3.1.0", | ||
@@ -39,4 +38,4 @@ "rollup-plugin-delete": "^2.0.0", | ||
"dependencies": { | ||
"@dbp-toolkit/auth": "^0.1.0", | ||
"@dbp-toolkit/common": "^0.1.0", | ||
"@dbp-toolkit/auth": "^0.1.6", | ||
"@dbp-toolkit/common": "^0.1.4", | ||
"@open-wc/scoped-elements": "^1.3.2", | ||
@@ -59,3 +58,3 @@ "lit-element": "^2.3.1" | ||
}, | ||
"gitHead": "fefb27aee7da353d170fc789d7779cfb5ac6b9c7" | ||
"gitHead": "0e9ed70222d27095f46d05bcf62377846cfadf86" | ||
} |
@@ -9,3 +9,2 @@ import glob from 'glob'; | ||
import url from "@rollup/plugin-url"; | ||
import consts from 'rollup-plugin-consts'; | ||
import del from 'rollup-plugin-delete'; | ||
@@ -66,6 +65,2 @@ import emitEJS from 'rollup-plugin-emit-ejs' | ||
}), | ||
consts({ | ||
environment: build, | ||
buildinfo: getBuildInfo(), | ||
}), | ||
emitEJS({ | ||
@@ -72,0 +67,0 @@ src: 'assets', |
import {i18n} from './i18n.js'; | ||
import {css, html, LitElement} from 'lit-element'; | ||
import {css, html} from 'lit-element'; | ||
import {ScopedElementsMixin} from '@open-wc/scoped-elements'; | ||
@@ -8,5 +8,6 @@ import {AuthKeycloak, LoginButton} from '@dbp-toolkit/auth'; | ||
import {MatomoElement} from './matomo'; | ||
import DBPLitElement from "@dbp-toolkit/common/dbp-lit-element"; | ||
export class MatomoDemo extends ScopedElementsMixin(LitElement) { | ||
export class MatomoDemo extends ScopedElementsMixin(DBPLitElement) { | ||
@@ -16,2 +17,3 @@ constructor() { | ||
this.lang = 'de'; | ||
this.entryPointUrl = ''; | ||
this.matomoUrl = ''; | ||
@@ -31,8 +33,9 @@ this.matomoSiteId = -1; | ||
static get properties() { | ||
return { | ||
return this.getProperties({ | ||
lang: { type: String }, | ||
entryPointUrl: { type: String, attribute: 'entry-point-url' }, | ||
matomoUrl: { type: String, attribute: "matomo-url" }, | ||
matomoSiteId: { type: Number, attribute: "matomo-site-id" }, | ||
noAuth: { type: Boolean, attribute: 'no-auth' }, | ||
}; | ||
}); | ||
} | ||
@@ -73,3 +76,3 @@ | ||
<div class="container"> | ||
<dbp-auth-keycloak lang="${this.lang}" silent-check-sso-redirect-uri="/dist/silent-check-sso.html" | ||
<dbp-auth-keycloak lang="${this.lang}" entry-point-url="${this.entryPointUrl}" silent-check-sso-redirect-uri="/dist/silent-check-sso.html" | ||
url="https://auth-dev.tugraz.at/auth" realm="tugraz" | ||
@@ -76,0 +79,0 @@ client-id="auth-dev-mw-frontend-local" load-person try-login></dbp-auth-keycloak> |
Sorry, the diff of this file is not supported yet
45483
18
337
Updated@dbp-toolkit/auth@^0.1.6
Updated@dbp-toolkit/common@^0.1.4