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'; ...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/matomo/README.md'; import readme from '@dbp-toolkit/matomo/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css'; import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles"; 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() { static get scopedElements() {
return { return {
'dbp-matomo-demo': MatomoDemo, 'dbp-matomo-demo': MatomoDemo,
...@@ -16,8 +17,8 @@ class DbpMatomoDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpMatomoDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; ...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/notification/README.md'; import readme from '@dbp-toolkit/notification/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css'; import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles"; 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() { static get scopedElements() {
return { return {
'dbp-notification-demo': NotificationDemo, 'dbp-notification-demo': NotificationDemo,
...@@ -16,8 +17,8 @@ class DbpNotificationDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpNotificationDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; ...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/person-profile/README.md'; import readme from '@dbp-toolkit/person-profile/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css'; import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles"; 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() { static get scopedElements() {
return { return {
'dbp-person-profile-demo': PersonProfileDemo, 'dbp-person-profile-demo': PersonProfileDemo,
...@@ -16,8 +17,8 @@ class DbpPersonProfileDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpPersonProfileDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; ...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/person-select/README.md'; import readme from '@dbp-toolkit/person-select/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css'; import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from "./styles"; 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() { static get scopedElements() {
return { return {
'dbp-person-select-demo': PersonSelectDemo, 'dbp-person-select-demo': PersonSelectDemo,
...@@ -16,8 +17,8 @@ class DbpPersonSelectDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpPersonSelectDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; ...@@ -7,8 +7,9 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import readme from '@dbp-toolkit/qr-code-scanner/README.md'; import readme from '@dbp-toolkit/qr-code-scanner/README.md';
import highlightCSSPath from 'highlight.js/styles/default.css'; import highlightCSSPath from 'highlight.js/styles/default.css';
import * as demoStyles from './styles'; 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() { static get scopedElements() {
return { return {
'dbp-qr-code-scanner-demo': QrCodeScannerDemo, 'dbp-qr-code-scanner-demo': QrCodeScannerDemo,
...@@ -16,8 +17,8 @@ class DbpQrCodeScannerDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpQrCodeScannerDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
import {AppShell} from '@dbp-toolkit/app-shell'; import {AppShell} from '@dbp-toolkit/app-shell';
import * as commonUtils from '@dbp-toolkit/common/utils'; 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); 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