Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1.hello-world/1.hello-world.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<body>
Loading...
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
if(location.protocol === "file:") {
const message = `The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
Expand All @@ -30,7 +30,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/10.read-video-pwa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ First, create a file with the name "helloworld-pwa.html" and fill it with the fo
<body>
<h1 style="font-size: 1.5em;">Hello World for PWA</h1>
Loading...
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
(async function() {
Expand Down Expand Up @@ -184,7 +184,7 @@ For offline use, you need to cache more files.

service-worker.js
```javascript
const dbrVersion = "9.6.21";
const dbrVersion = "9.6.30";
const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@${dbrVersion}/dist/`;

const appShellFiles = [
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/10.read-video-pwa/helloworld-pwa.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<body>
<h1 style="font-size: 1.5em;">Hello World for PWA</h1>
Loading...
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
if(location.protocol === "file:") {
const message = `The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
Expand All @@ -39,7 +39,7 @@ <h1 style="font-size: 1.5em;">Hello World for PWA</h1>
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

Expand Down
2 changes: 1 addition & 1 deletion 1.hello-world/10.read-video-pwa/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const dbrVersion = "9.6.21";
const dbrVersion = "9.6.30";
const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@${dbrVersion}/dist/`;

// Files to cache
Expand Down
6 changes: 3 additions & 3 deletions 1.hello-world/11.read-video-requirejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
}
</script>
<script>
requirejs(['https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js'], function({
requirejs(['https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js'], function({
BarcodeReader,
BarcodeScanner
}) {
Expand All @@ -33,11 +33,11 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
(async function() {
try {
const scanner = await BarcodeScanner.createInstance();
Expand Down
6 changes: 3 additions & 3 deletions 1.hello-world/12.read-video-es6.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 style="font-size: 1.5em;">Hello World for ES6</h1>
}
</script>
<script type="module">
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.mjs';
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.mjs';
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
*/
Expand All @@ -30,11 +30,11 @@ <h1 style="font-size: 1.5em;">Hello World for ES6</h1>
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";

(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion 1.hello-world/13.read-video-react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@types/node": "^16.18.12",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/13.read-video-react-hooks/src/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<body>
Loading...
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
Expand All @@ -23,7 +23,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<body>
Loading...
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
Expand All @@ -22,7 +22,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/2.read-an-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
border: solid 1px gray;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/dbr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].30/dist/dbr.js"></script>
<script>
/** LICENSE ALERT - README
* To use the library, you need to first specify a license key using the API "license" as shown below.
Expand All @@ -41,7 +41,7 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

Expand Down
2 changes: 1 addition & 1 deletion 1.hello-world/3.read-video-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@angular/platform-browser": "^15.2.0",
"@angular/platform-browser-dynamic": "^15.2.0",
"@angular/router": "^15.2.0",
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/3.read-video-angular/src/app/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = 'https://cdn.jsdelivr.net/npm/[email protected].21/dist/';
BarcodeReader.engineResourcePath = 'https://cdn.jsdelivr.net/npm/[email protected].30/dist/';
2 changes: 1 addition & 1 deletion 1.hello-world/4.read-video-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@types/node": "^16.11.45",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/4.read-video-react/src/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
2 changes: 1 addition & 1 deletion 1.hello-world/5.read-video-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preview": "vite preview --port 4173"
},
"dependencies": {
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"vue": "^2.7.7"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/5.read-video-vue/src/dbr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
2 changes: 1 addition & 1 deletion 1.hello-world/6.read-video-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type-check": "vue-tsc --noEmit"
},
"dependencies": {
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"vue": "^3.2.47"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/6.read-video-vue3/src/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
4 changes: 2 additions & 2 deletions 1.hello-world/7.read-video-nextjs/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
2 changes: 1 addition & 1 deletion 1.hello-world/7.read-video-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@types/node": "18.15.3",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"dynamsoft-javascript-barcode": "^9.6.21",
"dynamsoft-javascript-barcode": "^9.6.30",
"next": "13.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions 1.hello-world/8.read-video-nuxtjs/dbr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.21&utm_source=github#specify-the-license or contact [email protected].
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.30&utm_source=github#specify-the-license or contact [email protected].
* LICENSE ALERT - THE END
*/

BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].21/dist/";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].30/dist/";
2 changes: 1 addition & 1 deletion 1.hello-world/8.read-video-nuxtjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"nuxt": "^3.2.3"
},
"dependencies": {
"dynamsoft-javascript-barcode": "^9.6.21"
"dynamsoft-javascript-barcode": "^9.6.30"
}
}
Loading