Skip to content

Commit e018265

Browse files
committed
update
1 parent b12aa03 commit e018265

24 files changed

Lines changed: 41 additions & 41 deletions

File tree

1.hello-world/10.read-video-pwa/helloworld-pwa.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<body>
1414
<h1 style="font-size: 1.5em;">Hello World for PWA</h1>
1515
<button id='readBarcode'>Read Barcode via Camera</button>
16-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.js"></script>
16+
<script src="https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220323095526.0/dist/dbr.js"></script>
1717
<script>
1818
/** LICENSE ALERT - README
1919
* To use the library, you need to first specify a license key using the API "license" as shown below.

1.hello-world/12.read-video-webpack/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"webpack-cli": "^4.9.2"
1313
},
1414
"dependencies": {
15-
"dynamsoft-javascript-barcode": "8.8.7"
15+
"dynamsoft-javascript-barcode": "8.8.7",
16+
"keillion-dynamsoft-javascript-barcode": "0.20220323095526.0"
1617
}
1718
}

1.hello-world/12.read-video-webpack/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BarcodeReader } from "dynamsoft-javascript-barcode";
1+
import { BarcodeReader, BarcodeScanner } from "keillion-dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
44
* To use the library, you need to first specify a license key using the API "license" as shown below.
@@ -13,7 +13,7 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
1313
* LICENSE ALERT - THE END
1414
*/
1515

16-
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
16+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220323095526.0/dist/";
1717

1818
let pScanner = null;
1919
if (document.getElementById('readBarcode')) {

1.hello-world/13.minimum-code-es6.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
1414
<button id="btn-show-scanner">Show Barcode Scanner</button>
1515
<script type="module">
16-
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.mjs';
16+
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220323095526.0/dist/dbr.mjs';
1717
/** LICENSE ALERT - README
1818
* To use the library, you need to first specify a license key using the API "license" as shown below.
1919
*/
@@ -29,7 +29,7 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
2929

3030
// DBR.productKeys = "PRODUCT-KEYS";
3131

32-
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
32+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220323095526.0/dist/";
3333

3434
let pScanner = null;
3535
document.getElementById('btn-show-scanner').addEventListener('click', async () => {

1.hello-world/3.read-video-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@angular/platform-browser-dynamic": "~11.2.5",
2121
"@angular/router": "~11.2.5",
2222
"dynamsoft-javascript-barcode": "8.8.7",
23-
"keillion-dynamsoft-javascript-barcode": "0.20220321180719.0",
23+
"keillion-dynamsoft-javascript-barcode": "0.20220323095526.0",
2424
"rxjs": "~6.6.0",
2525
"tslib": "^2.0.0",
2626
"zone.js": "~0.11.3"

1.hello-world/3.read-video-angular/src/app/barcode-scanner/barcode-scanner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class VideoDecodeComponent implements OnInit {
1111
async ngOnInit(): Promise<void> {
1212
try {
1313
const scanner = await (this.pScanner = BarcodeScanner.createInstance());
14-
scanner.setUIElement((document.querySelector('.component-barcode-scanner') as any));
14+
await scanner.setUIElement((document.querySelector('.component-barcode-scanner') as any));
1515
scanner.onFrameRead = (results: any) => {
1616
for (const result of results) {
1717
console.log(result.barcodeText);

1.hello-world/3.read-video-angular/src/app/dbr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
1313
* LICENSE ALERT - THE END
1414
*/
1515

16-
BarcodeReader.engineResourcePath = 'https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318155126.0/dist/';
16+
BarcodeReader.engineResourcePath = 'https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220323095526.0/dist/';

1.hello-world/3.read-video-angular/src/app/img-decode/img-decode.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import {BarcodeReader} from 'dynamsoft-javascript-barcode'
2+
import {BarcodeReader} from 'keillion-dynamsoft-javascript-barcode'
33

44
@Component({
55
selector: 'app-img-decode',

1.hello-world/4.read-video-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@testing-library/react": "^11.1.0",
99
"@testing-library/user-event": "^12.1.10",
1010
"dynamsoft-javascript-barcode": "8.8.7",
11-
"keillion-dynamsoft-javascript-barcode": "0.20220318155126.0",
11+
"keillion-dynamsoft-javascript-barcode": "0.20220323095526.0",
1212
"react": "^17.0.1",
1313
"react-dom": "^17.0.1",
1414
"react-scripts": "4.0.3",

1.hello-world/4.read-video-react/src/components/VideoDecode/VideoDecode.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)