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

Merge branch 'master' into provider-component

parents 7bf03db3 e98b3ee3
No related branches found
No related tags found
No related merge requests found
Showing
with 46 additions and 11 deletions
node_modules
.idea
npm-debug.log
package-lock.json
index.html
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
# Language Select Web Component # Language Select Web Component
You can install this component via npm:
```bash
npm i @dbp-toolkit/language-select
```
## Usage
```html
<dbp-language-select></dbp-language-select>
<script type="module" src="node_modules/@dbp-toolkit/app-shell/dist/dbp-language-select.js"></script>
```
## Local development ## Local development
```bash ```bash
......
{ {
"name": "@dbp-toolkit/language-select", "name": "@dbp-toolkit/language-select",
"version": "0.1.0", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/language-select",
"version": "0.1.1",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"private": true,
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0", "@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
...@@ -40,6 +40,6 @@ ...@@ -40,6 +40,6 @@
"watch-local": "rollup -c --watch", "watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun", "test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose 2>&1 && npm run build && echo 'Todo: Publish' || true" "publish": "can-npm-publish --verbose 2>&1 && npm run build && npm publish --access public 2>&1 || true"
} }
} }
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
{ {
"name": "@dbp-toolkit/matomo", "name": "@dbp-toolkit/matomo",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/matomo",
"version": "0.1.0", "version": "0.1.0",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
......
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
{ {
"name": "@dbp-toolkit/notification", "name": "@dbp-toolkit/notification",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/notification",
"version": "0.1.0", "version": "0.1.0",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
...@@ -41,6 +42,6 @@ ...@@ -41,6 +42,6 @@
"watch-local": "rollup -c --watch", "watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun", "test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose 2>&1 && npm run build && echo 'Todo: Publish' || true" "publish": "can-npm-publish --verbose 2>&1 && npm run build && npm publish --access public 2>&1 || true"
} }
} }
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
{ {
"name": "@dbp-toolkit/person-profile", "name": "@dbp-toolkit/person-profile",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/person-profile",
"version": "0.1.0", "version": "0.1.0",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
...@@ -44,6 +45,6 @@ ...@@ -44,6 +45,6 @@
"watch-local": "rollup -c --watch", "watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun", "test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose 2>&1 && npm run build && echo 'Todo: Publish' || true" "publish": "can-npm-publish --verbose 2>&1 && npm run build && npm publish --access public 2>&1 || true"
} }
} }
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
{ {
"name": "@dbp-toolkit/person-select", "name": "@dbp-toolkit/person-select",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/person-select",
"version": "0.1.0", "version": "0.1.0",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
...@@ -45,6 +46,6 @@ ...@@ -45,6 +46,6 @@
"watch-local": "rollup -c --watch", "watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun", "test": "npm run build-test && karma start --singleRun",
"publish": "can-npm-publish --verbose 2>&1 && npm run build && echo 'Todo: Publish' || true" "publish": "can-npm-publish --verbose 2>&1 && npm run build && npm publish --access public 2>&1 || true"
} }
} }
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
\ No newline at end of file
...@@ -32,6 +32,10 @@ after loaded. This attribute is also used to stop the QR code reader or if you d ...@@ -32,6 +32,10 @@ after loaded. This attribute is also used to stop the QR code reader or if you d
- `'code-detected'`: Outgoing Event which is fired if a QR code is detected. The data of the detected QR code is in `event.detail`. - `'code-detected'`: Outgoing Event which is fired if a QR code is detected. The data of the detected QR code is in `event.detail`.
- `'scan-started`: Fired after the first image is drawn. Can be used to scrolling or other layout dependent tasks. - `'scan-started`: Fired after the first image is drawn. Can be used to scrolling or other layout dependent tasks.
## Assets
- `qr-scanner/qr-scanner-worker.*` -> `dist/local/@dbp-toolkit/qr-code-scanner/`
## Local development ## Local development
```bash ```bash
......
{ {
"name": "@dbp-toolkit/qr-code-scanner", "name": "@dbp-toolkit/qr-code-scanner",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/qr-code-scanner",
"version": "0.1.0", "version": "0.1.0",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
...@@ -47,6 +48,6 @@ ...@@ -47,6 +48,6 @@
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "npm run build-test && karma start --singleRun", "test": "npm run build-test && karma start --singleRun",
"lint": "eslint .", "lint": "eslint .",
"publish": "can-npm-publish --verbose 2>&1 && npm run build && echo 'Todo: Publish' || true" "publish": "can-npm-publish --verbose 2>&1 && npm run build && npm publish --access public 2>&1 || true"
} }
} }
...@@ -57,7 +57,7 @@ export class QrCodeScannerDemo extends ScopedElementsMixin(LitElement) { ...@@ -57,7 +57,7 @@ export class QrCodeScannerDemo extends ScopedElementsMixin(LitElement) {
<div class="container"> <div class="container">
<div class="columns is-centered"> <div class="columns is-centered">
<div class="column"> <div class="column">
<dbp-qr-code-scanner show-output lang="${this.lang}"></dbp-qr-code-scanner> <dbp-qr-code-scanner @code-detected="${(e) => console.log(e)}" @scan-started="${(e) => console.log(e)}" show-output lang="${this.lang}"></dbp-qr-code-scanner>
</div> </div>
</div> </div>
</div> </div>
......
{ {
"no-camera-access": "Zugriff auf Kamera nicht möglich (bitte stellen Sie sicher, dass eine Webcam aktiviert ist)", "no-camera-access": "Zugriff auf Kamera nicht möglich.",
"check-access": "Bitte stellen Sie sicher, dass eine Webcam oder Kamera aktiviert ist und überprüfen Sie ob Ihr Browser die notwendigen Berechtigungen besitzt.",
"finished-scan": "Scannen abgeschlossen.", "finished-scan": "Scannen abgeschlossen.",
"loading-video": "Video laden ...", "loading-video": "Video laden ...",
"no-qr-detected": "Kein QR-Code erkannt.", "no-qr-detected": "Kein QR-Code erkannt.",
......
{ {
"no-camera-access": "Unable to access video stream (please make sure you have a webcam enabled)", "no-camera-access": "Unable to access video stream.",
"check-access": "Please make sure that a webcam or camera is activated and check whether your browser has the necessary authorizations.",
"finished-scan": "Finished scanning.", "finished-scan": "Finished scanning.",
"loading-video": "⌛ Loading video...", "loading-video": "⌛ Loading video...",
"no-qr-detected": "No QR code detected.", "no-qr-detected": "No QR code detected.",
......
...@@ -241,7 +241,7 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) { ...@@ -241,7 +241,7 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
let firstDrawDone = false; let firstDrawDone = false;
this._askPermission = true; this._askPermission = true;
this._loadingMessage = i18n.t('no-camera-access'); this._loadingMessage = html` ${i18n.t('no-camera-access')} <br> ${i18n.t('check-access')}`;
let video = await createVideoElement(this._activeCamera); let video = await createVideoElement(this._activeCamera);
if ( video !== null ) { if ( video !== null ) {
targetvideo.appendChild(video); targetvideo.appendChild(video);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment