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

Migrate build info, integrate provider, remove commonUtils.getAPiUrl() calls and remove consts

parent 89979fa2
No related branches found
No related tags found
No related merge requests found
Pipeline #16200 passed
......@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/matomo/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
class DbpMatomoDemoActivity extends ScopedElementsMixin(LitElement) {
class DbpMatomoDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() {
return {
'dbp-matomo-demo': MatomoDemo,
......@@ -16,8 +17,8 @@ class DbpMatomoDemoActivity extends ScopedElementsMixin(LitElement) {
}
static get properties() {
return {
};
return this.getProperties({
});
}
connectedCallback() {
......
......@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/notification/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
class DbpNotificationDemoActivity extends ScopedElementsMixin(LitElement) {
class DbpNotificationDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() {
return {
'dbp-notification-demo': NotificationDemo,
......@@ -16,8 +17,8 @@ class DbpNotificationDemoActivity extends ScopedElementsMixin(LitElement) {
}
static get properties() {
return {
};
return this.getProperties({
});
}
connectedCallback() {
......
......@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/person-profile/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
class DbpPersonProfileDemoActivity extends ScopedElementsMixin(LitElement) {
class DbpPersonProfileDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() {
return {
'dbp-person-profile-demo': PersonProfileDemo,
......@@ -16,8 +17,8 @@ class DbpPersonProfileDemoActivity extends ScopedElementsMixin(LitElement) {
}
static get properties() {
return {
};
return this.getProperties({
});
}
connectedCallback() {
......
......@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/person-select/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles";
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
class DbpPersonSelectDemoActivity extends ScopedElementsMixin(LitElement) {
class DbpPersonSelectDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() {
return {
'dbp-person-select-demo': PersonSelectDemo,
......@@ -16,8 +17,8 @@ class DbpPersonSelectDemoActivity extends ScopedElementsMixin(LitElement) {
}
static get properties() {
return {
};
return this.getProperties({
});
}
connectedCallback() {
......
......@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/qr-code-scanner/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from './styles';
import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
class DbpQrCodeScannerDemoActivity extends ScopedElementsMixin(LitElement) {
class DbpQrCodeScannerDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() {
return {
'dbp-qr-code-scanner-demo': QrCodeScannerDemo,
......@@ -16,8 +17,8 @@ class DbpQrCodeScannerDemoActivity extends ScopedElementsMixin(LitElement) {
}
static get properties() {
return {
};
return this.getProperties({
});
}
connectedCallback() {
......
import {AppShell} from '@dbp-toolkit/app-shell';
import * as commonUtils from '@dbp-toolkit/common/utils';
import {Provider} from '@dbp-toolkit/provider';
// It's important that the Provider is created before the AppShell, so the AppShell can subscribe to the Provider
commonUtils.defineCustomElement('dbp-provider', Provider);
commonUtils.defineCustomElement('dbp-toolkit-showcase', AppShell);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment