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
Showing
with 73 additions and 46 deletions
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Ort Web Component", "de": "Ort Web Component",
"en": "Check-in place select web component" "en": "Check-in place select web component"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Gemeinsame Web Components", "de": "Gemeinsame Web Components",
"en": "Common web components" "en": "Common web components"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "DataTable: mit Daten, Paginierung, Such- und Exportfunktion", "de": "DataTable: mit Daten, Paginierung, Such- und Exportfunktion",
"en": "DataTable: with data, paging and searching AND exportable" "en": "DataTable: with data, paging and searching AND exportable"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -53,14 +53,23 @@ ...@@ -53,14 +53,23 @@
</head> </head>
<body> <body>
<<%= name %> <dbp-provider id="root"
lang="de" lang="de" entry-point-url="<%= entryPointURL %>"
src="<%= getUrl(name + '.topic.metadata.json') %>" nextcloud-web-app-password-url="<%= nextcloudWebAppPasswordURL %>"
entry-point-url="<%= entryPointURL %>" nextcloud-webdav-url="<%= nextcloudWebDavURL %>"
base-path="<%= getUrl('') %>" nextcloud-name="<%= nextcloudName %>"
keycloak-config='{"url": "<%= keyCloakBaseURL %>", "realm": "tugraz", "clientId": "<%= keyCloakClientId %>", "silentCheckSsoRedirectUri": "<%= getUrl('silent-check-sso.html') %>"}' nextcloud-file-url="<%= nextcloudFileURL %>">
matomo-url="<%= matomoUrl %>" matomo-site-id="<%= matomoSiteId %>" <<%= name %>
><dbp-loading-spinner></dbp-loading-spinner></<%= name %>> src="<%= getUrl(name + '.topic.metadata.json') %>"
base-path="<%= getUrl('') %>"
keycloak-config='{"url": "<%= keyCloakBaseURL %>", "realm": "tugraz", "clientId": "<%= keyCloakClientId %>", "silentCheckSsoRedirectUri": "<%= getUrl('silent-check-sso.html') %>"}'
matomo-url="<%= matomoUrl %>" matomo-site-id="<%= matomoSiteId %>"
git-info='<%= buildInfo.info %>'
build-url='<%= buildInfo.url %>'
build-time='<%= buildInfo.time %>'
env='<%= buildInfo.env %>'
><dbp-loading-spinner></dbp-loading-spinner></<%= name %>>
</dbp-provider>
<!-- Error handling for too old browsers --> <!-- Error handling for too old browsers -->
<script src="<%= getPrivateUrl('browser-check.js') %>" defer></script> <script src="<%= getPrivateUrl('browser-check.js') %>" defer></script>
......
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Web Componente für file sink und file source. Für mehrere verschiedenen Quellen.", "de": "Web Componente für file sink und file source. Für mehrere verschiedenen Quellen.",
"en": "Web components for file sink and file source. For several different sources." "en": "Web components for file sink and file source. For several different sources."
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url,nextcloud-web-app-password-url:nextcloud-web-app-password-url,nextcloud-webdav-url:nextcloud-webdav-url,nextcloud-name:nextcloud-name,nextcloud-file-url:nextcloud-file-url,show-nextcloud-file-picker:show-nextcloud-file-picker"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Erlaubt das Einfügen von Webinhalten", "de": "Erlaubt das Einfügen von Webinhalten",
"en": "Allows the inserting of web content" "en": "Allows the inserting of web content"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Sprachauswahl Web Component", "de": "Sprachauswahl Web Component",
"en": "Language select web component" "en": "Language select web component"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Matomo Web Component", "de": "Matomo Web Component",
"en": "Matomo web component" "en": "Matomo web component"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Zeigt eine Benachrichtigung an", "de": "Zeigt eine Benachrichtigung an",
"en": "Shows a message" "en": "Shows a message"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Gemeinsame Web Components", "de": "Gemeinsame Web Components",
"en": "Person profile web components" "en": "Person profile web components"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Erlaubt das Suchen von Personen", "de": "Erlaubt das Suchen von Personen",
"en": "Allows searching for persons" "en": "Allows searching for persons"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"description": { "description": {
"de": "Scannt Qr Codes", "de": "Scannt Qr Codes",
"en": "Scans Qr Codes" "en": "Scans Qr Codes"
} },
"subscribe": "lang:lang,entry-point-url:entry-point-url"
} }
...@@ -9,6 +9,7 @@ import json from '@rollup/plugin-json'; ...@@ -9,6 +9,7 @@ import json from '@rollup/plugin-json';
import replace from "@rollup/plugin-replace"; import replace from "@rollup/plugin-replace";
import serve from 'rollup-plugin-serve'; import serve from 'rollup-plugin-serve';
import urlPlugin from "@rollup/plugin-url"; import urlPlugin from "@rollup/plugin-url";
// TODO: remove consts if "environment" isn't needed because "getAPiUrl" is removed
import consts from 'rollup-plugin-consts'; import consts from 'rollup-plugin-consts';
import license from 'rollup-plugin-license'; import license from 'rollup-plugin-license';
import del from 'rollup-plugin-delete'; import del from 'rollup-plugin-delete';
...@@ -164,14 +165,9 @@ export default (async () => {return { ...@@ -164,14 +165,9 @@ export default (async () => {return {
del({ del({
targets: 'dist/*' targets: 'dist/*'
}), }),
// TODO: remove consts if "environment" isn't needed because "getAPiUrl" is removed
consts({ consts({
environment: build, environment: build,
buildinfo: getBuildInfo(),
nextcloudWebAppPasswordURL: nextcloudWebAppPasswordURL,
nextcloudWebDavURL: nextcloudWebDavURL,
nextcloudBaseURL: nextcloudBaseURL,
nextcloudFileURL: nextcloudFileURL,
nextcloudName: nextcloudName,
}), }),
emitEJS({ emitEJS({
src: 'assets', src: 'assets',
...@@ -186,6 +182,10 @@ export default (async () => {return { ...@@ -186,6 +182,10 @@ export default (async () => {return {
name: pkg.name, name: pkg.name,
entryPointURL: entryPointURL, entryPointURL: entryPointURL,
nextcloudBaseURL: nextcloudBaseURL, nextcloudBaseURL: nextcloudBaseURL,
nextcloudWebAppPasswordURL: nextcloudWebAppPasswordURL,
nextcloudWebDavURL: nextcloudWebDavURL,
nextcloudFileURL: nextcloudFileURL,
nextcloudName: nextcloudName,
keyCloakServer: keyCloakServer, keyCloakServer: keyCloakServer,
keyCloakBaseURL: keyCloakBaseURL, keyCloakBaseURL: keyCloakBaseURL,
keyCloakClientId: keyCloakClientId, keyCloakClientId: keyCloakClientId,
......
...@@ -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/check-in-place-select/README.md'; import readme from '@dbp-toolkit/check-in-place-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 DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { class DbpActivityNameDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-check-in-place-select-demo': CheckInPlaceSelectDemo, 'dbp-check-in-place-select-demo': CheckInPlaceSelectDemo,
...@@ -16,8 +17,8 @@ class DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpActivityNameDemoActivity 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/common/README.md'; import readme from '@dbp-toolkit/common/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 DbpCommonDemoActivity extends ScopedElementsMixin(LitElement) { class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-common-demo': DbpCommonDemo, 'dbp-common-demo': DbpCommonDemo,
...@@ -16,8 +17,8 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpCommonDemoActivity 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/data-table-view/README.md'; import readme from '@dbp-toolkit/data-table-view/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 DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TODO class DbpActivityNameDemoActivity extends ScopedElementsMixin(AdapterLitElement) { //TODO
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-data-table-view-demo': DataTableViewDemo, 'dbp-data-table-view-demo': DataTableViewDemo,
...@@ -16,8 +17,8 @@ class DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TO ...@@ -16,8 +17,8 @@ class DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TO
} }
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/class-name/README.md'; TODO // import readme from '@dbp-toolkit/class-name/README.md'; TODO
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 DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TODO class DbpActivityNameDemoActivity extends ScopedElementsMixin(AdapterLitElement) { //TODO
static get scopedElements() { static get scopedElements() {
return { return {
// TODO // TODO
...@@ -17,8 +18,8 @@ class DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TO ...@@ -17,8 +18,8 @@ class DbpActivityNameDemoActivity extends ScopedElementsMixin(LitElement) { //TO
} }
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/file-handling/README.md'; import readme from '@dbp-toolkit/file-handling/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 DbpFileHandlingDemoActivity extends ScopedElementsMixin(LitElement) { class DbpFileHandlingDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-file-handling-demo': FileSourceDemo, 'dbp-file-handling-demo': FileSourceDemo,
...@@ -16,8 +17,8 @@ class DbpFileHandlingDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpFileHandlingDemoActivity 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/knowledge-base-web-page-element-view/README.md'; import readme from '@dbp-toolkit/knowledge-base-web-page-element-view/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 KnowledgeBaseWebPageElementViewDemoActivity extends ScopedElementsMixin(LitElement) { class KnowledgeBaseWebPageElementViewDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-knowledge-base-web-page-element-view-demo': KnowledgeBaseWebPageElementViewDemo, 'dbp-knowledge-base-web-page-element-view-demo': KnowledgeBaseWebPageElementViewDemo,
...@@ -16,8 +17,8 @@ class KnowledgeBaseWebPageElementViewDemoActivity extends ScopedElementsMixin(Li ...@@ -16,8 +17,8 @@ class KnowledgeBaseWebPageElementViewDemoActivity extends ScopedElementsMixin(Li
} }
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/language-select/README.md'; import readme from '@dbp-toolkit/language-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 DbpLanguageSelectDemoActivity extends ScopedElementsMixin(LitElement) { class DbpLanguageSelectDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'dbp-language-select-demo': LanguageSelectDemo, 'dbp-language-select-demo': LanguageSelectDemo,
...@@ -16,8 +17,8 @@ class DbpLanguageSelectDemoActivity extends ScopedElementsMixin(LitElement) { ...@@ -16,8 +17,8 @@ class DbpLanguageSelectDemoActivity extends ScopedElementsMixin(LitElement) {
} }
static get properties() { static get properties() {
return { return this.getProperties({
}; });
} }
connectedCallback() { connectedCallback() {
......
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