Skip to content
Snippets Groups Projects
Commit 05719454 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

toolkit-showcase: port to resource-select

parent b3a03d45
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
"activities": [
{"path": "auth.metadata.json"},
{"path": "person-select.metadata.json"},
{"path": "organization-select.metadata.json"},
{"path": "resource-select.metadata.json"},
{"path": "knowledge-base-web-page-element-view.metadata.json"},
{"path": "common.metadata.json"},
{"path": "qr-code-scanner.metadata.json"},
......
{
"element": "dbp-organization-select-demo-activity",
"module_src": "dbp-organization-select-demo-activity.js",
"routing_name": "organization-select",
"name": {
"de": "Institutsauswahl",
"en": "Organization select"
},
"short_name": {
"de": "Institutsauswahl",
"en": "Organization select"
},
"description": {
"de": "Erlaubt die Auswahl von Instituten",
"en": "Allows selection of organizations"
},
"subscribe": "lang,entry-point-url"
}
{
"element": "dbp-resource-select-demo-activity",
"module_src": "dbp-resource-select-demo-activity.js",
"routing_name": "resource-select",
"name": {
"de": "Ressourcenauswahl",
"en": "Resource select"
},
"short_name": {
"de": "Ressourcenauswahl",
"en": "Resource select"
},
"description": {
"de": "Erlaubt die Auswahl von Resourcen",
"en": "Allows selection of resources"
},
"subscribe": "lang,entry-point-url"
}
......@@ -47,9 +47,9 @@
"@dbp-toolkit/font-source-sans-pro": "^0.2.0",
"@dbp-toolkit/language-select": "^0.3.0",
"@dbp-toolkit/notification": "^0.3.0",
"@dbp-toolkit/organization-select": "^0.2.0",
"@dbp-toolkit/person-profile": "^0.2.0",
"@dbp-toolkit/person-select": "^0.3.0",
"@dbp-toolkit/resource-select": "^0.1.0",
"@open-wc/scoped-elements": "^2.1.0",
"@rollup/plugin-replace": "^4.0.0",
"highlight.js": "^11.0.0",
......
import {css, html} from 'lit';
import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import {OrganizationSelectDemo} from '@dbp-toolkit/organization-select/src/dbp-organization-select-demo';
import {ResourceSelectDemo} from '@dbp-toolkit/resource-select/src/dbp-resource-select-demo';
import * as commonUtils from '@dbp-toolkit/common/utils';
import * as commonStyles from '@dbp-toolkit/common/styles';
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
import readme from '@dbp-toolkit/organization-select/README.md';
import readme from '@dbp-toolkit/resource-select/README.md';
import * as demoStyles from './styles';
import {AdapterLitElement} from '@dbp-toolkit/provider/src/adapter-lit-element';
......@@ -17,7 +17,7 @@ class DbpOrganizationSelectDemoActivity extends ScopedElementsMixin(AdapterLitEl
static get scopedElements() {
return {
'dbp-organization-select-demo': OrganizationSelectDemo,
'dbp-resource-select-demo': ResourceSelectDemo,
};
}
......@@ -60,16 +60,16 @@ class DbpOrganizationSelectDemoActivity extends ScopedElementsMixin(AdapterLitEl
render() {
return html`
${unsafeHTML(readme)}
<dbp-organization-select-demo
<dbp-resource-select-demo
id="demo"
lang="${this.lang}"
entry-point-url="${this.entryPointUrl}"
no-auth></dbp-organization-select-demo>
no-auth></dbp-resource-select-demo>
`;
}
}
commonUtils.defineCustomElement(
'dbp-organization-select-demo-activity',
'dbp-resource-select-demo-activity',
DbpOrganizationSelectDemoActivity
);
......@@ -1878,7 +1878,7 @@
resolved "https://registry.yarnpkg.com/@open-wc/dedupe-mixin/-/dedupe-mixin-1.3.0.tgz#0df5d438285fc3482838786ee81895318f0ff778"
integrity sha512-UfdK1MPnR6T7f3svzzYBfu3qBkkZ/KsPhcpc3JYhsUY4hbpwNF9wEQtD4Z+/mRqMTJrKg++YSxIxE0FBhY3RIw==
"@open-wc/scoped-elements@^2.1.0":
"@open-wc/scoped-elements@^2.0.0", "@open-wc/scoped-elements@^2.1.0":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@open-wc/scoped-elements/-/scoped-elements-2.1.1.tgz#a43a2167d259af1f113301fcc93b1b9a6c371991"
integrity sha512-qQAtVIK2H1oUIM2oSrCBnf1+ZGHd2nIowt1tete+Dn9rNXIogAMJlUBY/R1NR9MuuJvQ1MeFjgQoDmb05TUdkw==
......
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