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

Do subscription name refactoring

parent a3374141
No related branches found
No related tags found
No related merge requests found
Pipeline #16688 passed
Showing
with 24 additions and 24 deletions
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
try-login></dbp-auth-keycloak> try-login></dbp-auth-keycloak>
<dbp-login-button subscribe="auth" lang="de" show-image></dbp-login-button> <dbp-login-button subscribe="auth" lang="de" show-image></dbp-login-button>
<dbp-auth-demo lang="de" entry-point-url="http://127.0.0.1:8000" subscribe="auth:auth"></dbp-auth-demo> <dbp-auth-demo lang="de" entry-point-url="http://127.0.0.1:8000" subscribe="auth"></dbp-auth-demo>
</dbp-provider> </dbp-provider>
</body> </body>
......
...@@ -75,13 +75,13 @@ export class CheckInPlaceSelectDemo extends ScopedElementsMixin(DBPLitElement) { ...@@ -75,13 +75,13 @@ export class CheckInPlaceSelectDemo extends ScopedElementsMixin(DBPLitElement) {
<div class="field"> <div class="field">
<label class="label">Check-In-Place 1</label> <label class="label">Check-In-Place 1</label>
<div class="control"> <div class="control">
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth:auth"></dbp-check-in-place-select> <dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth"></dbp-check-in-place-select>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label">Check-In-Place 2</label> <label class="label">Check-In-Place 2</label>
<div class="control"> <div class="control">
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth:auth" show-reload-button reload-button-title="Click me"></dbp-check-in-place-select> <dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth" show-reload-button reload-button-title="Click me"></dbp-check-in-place-select>
</div> </div>
</div> </div>
</form> </form>
......
...@@ -86,23 +86,23 @@ export class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(DBP ...@@ -86,23 +86,23 @@ export class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(DBP
<div class="container"> <div class="container">
<h2 class="subtitle">Deutsch</h2> <h2 class="subtitle">Deutsch</h2>
<p>Ein erster Schritt</p> <p>Ein erster Schritt</p>
<dbp-knowledge-base-web-page-element-view subscribe="auth:auth" lang="de" entry-point-url="${this.entryPointUrl}" value="bedienstete/bibliothek/buch-ausleihen" text="Ein Buch ausleihen"></dbp-knowledge-base-web-page-element-view> <dbp-knowledge-base-web-page-element-view subscribe="auth" lang="de" entry-point-url="${this.entryPointUrl}" value="bedienstete/bibliothek/buch-ausleihen" text="Ein Buch ausleihen"></dbp-knowledge-base-web-page-element-view>
</div> </div>
<div class="container"> <div class="container">
<h2 class="subtitle">Englisch</h2> <h2 class="subtitle">Englisch</h2>
<p>A first step</p> <p>A first step</p>
<dbp-knowledge-base-web-page-element-view subscribe="auth:auth" lang="en" entry-point-url="${this.entryPointUrl}" value="bedienstete/bibliothek/buch-ausleihen" text="Borrow a book"></dbp-knowledge-base-web-page-element-view> <dbp-knowledge-base-web-page-element-view subscribe="auth" lang="en" entry-point-url="${this.entryPointUrl}" value="bedienstete/bibliothek/buch-ausleihen" text="Borrow a book"></dbp-knowledge-base-web-page-element-view>
</div> </div>
<hr> <hr>
<div class="container"> <div class="container">
<p>mit Text in der WebComponent:</p> <p>mit Text in der WebComponent:</p>
<dbp-knowledge-base-web-page-element-view subscribe="auth:auth" lang="${this.lang}" value="abc/def/xyz" text="FAQ"></dbp-knowledge-base-web-page-element-view> <dbp-knowledge-base-web-page-element-view subscribe="auth" lang="${this.lang}" value="abc/def/xyz" text="FAQ"></dbp-knowledge-base-web-page-element-view>
</div> </div>
<hr> <hr>
<div class="container"> <div class="container">
<p>ohne Text in der WebComponent:</p> <p>ohne Text in der WebComponent:</p>
Kontaktieren Sie uns unter... Kontaktieren Sie uns unter...
<dbp-knowledge-base-web-page-element-view subscribe="auth:auth" class="opt" lang="${this.lang}" value="abc/def/klm"></dbp-knowledge-base-web-page-element-view> <dbp-knowledge-base-web-page-element-view subscribe="auth" class="opt" lang="${this.lang}" value="abc/def/klm"></dbp-knowledge-base-web-page-element-view>
</div> </div>
</section> </section>
`; `;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<body> <body>
<dbp-provider id="root" root="1" availability="global" lang="de" entry-point-url="http://127.0.0.1:8000" auth requested-login-status> <dbp-provider id="root" root="1" availability="global" lang="de" entry-point-url="http://127.0.0.1:8000" auth requested-login-status>
<dbp-provider-demo id="provider-demo" subscribe="lang:lang:entry-point-url:entry-point-url"></dbp-provider-demo> <dbp-provider-demo id="provider-demo" subscribe="lang:entry-point-url"></dbp-provider-demo>
</dbp-provider> </dbp-provider>
<p>version: <span style="color: white; background-color: black;"><%= buildInfo.info %></span></p> <p>version: <span style="color: white; background-color: black;"><%= buildInfo.info %></span></p>
</body> </body>
......
...@@ -97,14 +97,14 @@ class ProviderDemo extends ScopedElementsMixin(DBPLitElement) { ...@@ -97,14 +97,14 @@ class ProviderDemo extends ScopedElementsMixin(DBPLitElement) {
<h2>${i18n.t('demo.consumer')}</h2> <h2>${i18n.t('demo.consumer')}</h2>
<p>${i18n.t('demo.consumer_description', {id: "c1", subscriptions: "border-color"})}</p> <p>${i18n.t('demo.consumer_description', {id: "c1", subscriptions: "border-color"})}</p>
<pre>&lt;dbp-consumer id="c1" subscribe="border-color:bc" &gt;&lt;/dbp-consumer&gt;</pre> <pre>&lt;dbp-consumer id="c1" subscribe="border-color:bc" &gt;&lt;/dbp-consumer&gt;</pre>
<dbp-consumer id="c1" subscribe="border-color:bc,lang:lang"></dbp-consumer> <dbp-consumer id="c1" subscribe="border-color:bc,lang"></dbp-consumer>
<p>${i18n.t('demo.consumer_description', {id: "c2", subscriptions: "foo"})}</p> <p>${i18n.t('demo.consumer_description', {id: "c2", subscriptions: "foo"})}</p>
<pre>&lt;dbp-consumer id="c2" subscribe="foo:foo" &gt;&lt;/dbp-consumer&gt;</pre> <pre>&lt;dbp-consumer id="c2" subscribe="foo:foo" &gt;&lt;/dbp-consumer&gt;</pre>
<dbp-consumer id="c2" subscribe="foo:foo,lang:lang"></dbp-consumer> <dbp-consumer id="c2" subscribe="foo:foo,lang"></dbp-consumer>
<p>${i18n.t('demo.consumer_description', {id: "c3", subscriptions: "availability:status"})}</p> <p>${i18n.t('demo.consumer_description', {id: "c3", subscriptions: "availability:status"})}</p>
<p>Local <em>status</em> is provided as <em>availability</em></p> <p>Local <em>status</em> is provided as <em>availability</em></p>
<pre>&lt;dbp-consumer id="c3" subscribe="status:availability" border-color="orange" &gt;&lt;/dbp-consumer&gt;</pre> <pre>&lt;dbp-consumer id="c3" subscribe="status:availability" border-color="orange" &gt;&lt;/dbp-consumer&gt;</pre>
<dbp-consumer id="c3" subscribe="status:availability,lang:lang" border-color="orange"></dbp-consumer> <dbp-consumer id="c3" subscribe="status:availability,lang" border-color="orange"></dbp-consumer>
<p>${i18n.t('demo.consumer_description', {id: "c4", subscriptions: "unknown-name:status"})}</p> <p>${i18n.t('demo.consumer_description', {id: "c4", subscriptions: "unknown-name:status"})}</p>
<p>Remote <em>unknown-name</em> does not exist, the default value is overwritten by <em>undefined</em></i></p> <p>Remote <em>unknown-name</em> does not exist, the default value is overwritten by <em>undefined</em></i></p>
<pre>&lt;dbp-consumer id="c4" subscribe="status:unknown-name" border-color="darkgray" &gt;&lt;/dbp-consumer&gt;</pre> <pre>&lt;dbp-consumer id="c4" subscribe="status:unknown-name" border-color="darkgray" &gt;&lt;/dbp-consumer&gt;</pre>
......
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"de": "Web Komponente zur Authentifikation", "de": "Web Komponente zur Authentifikation",
"en": "Auth web component" "en": "Auth web component"
}, },
"subscribe": "lang:lang,entry-point-url:entry-point-url" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"de": "Web Komponenten für file sink und file source. Für mehrere verschiedenen Quellen.", "de": "Web Komponenten 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-auth-url:nextcloud-auth-url,nextcloud-web-dav-url:nextcloud-web-dav-url,nextcloud-name:nextcloud-name,nextcloud-file-url:nextcloud-file-url,show-nextcloud-file-picker:show-nextcloud-file-picker" "subscribe": "lang,entry-point-url,nextcloud-auth-url:nextcloud-auth-url,nextcloud-web-dav-url:nextcloud-web-dav-url,nextcloud-name:nextcloud-name,nextcloud-file-url:nextcloud-file-url,show-nextcloud-file-picker:show-nextcloud-file-picker"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"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" "subscribe": "lang,entry-point-url"
} }
...@@ -59,7 +59,7 @@ class DbpAuthDemoActivity extends ScopedElementsMixin(AdapterLitElement) { ...@@ -59,7 +59,7 @@ class DbpAuthDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
render() { render() {
return html` return html`
${unsafeHTML(readme)} ${unsafeHTML(readme)}
<dbp-auth-demo id="demo" lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth:auth"></dbp-auth-demo> <dbp-auth-demo id="demo" lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth"></dbp-auth-demo>
`; `;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment