Skip to content

Commit edb7911

Browse files
author
Cube
authored
Merge branch '_dev' into _dev
2 parents 650174d + dcd7244 commit edb7911

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+324
-351
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ __pycache__
2828
package-lock.json
2929
yarn.lock
3030
.git
31+
.npmrc
3132
/*.zip
3233
/*.py
3334
/*.exe

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A default license is included which allows you to test the sample apps for up to
88

99
## Documentation
1010

11-
For the developer guide and full API reference of Dynamsoft Barcode Reader JavaScript library, please check out the [documentation](https://www.dynamsoft.com/barcode-reader/programming/javascript/?ver=latest&utm_source=sampleReadme).
11+
For the developer guide and full API reference of Dynamsoft Barcode Reader JavaScript library, please check out the [documentation](https://www.dynamsoft.com/barcode-reader/programming/javascript/?ver=9.6.20&utm_source=sampleReadme).
1212

1313
## Support
1414

hello-world/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Hello World Sample Set
22

3-
As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#getting-started---hello-world), you may have come across some basic "Hello World" code that can help you create a simple web application using our SDK quickly.
3+
As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.20#getting-started---hello-world), you may have come across some basic "Hello World" code that can help you create a simple web application using our SDK quickly.
44

55
In this set of samples, we will revisit the "Hello World" code and show how to implement it using some popular frameworks, such as Angular, React, and Vue.
66

hello-world/angular/.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

hello-world/angular/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ npm install dynamsoft-camera-enhancer
3434

3535
```typescript
3636
// dbr.ts
37-
import { BarcodeReaderModule } from "@dynamsoft/dynamsoft-barcode-reader";
38-
BarcodeReaderModule.engineResourcePath = "https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft-barcode-reader@10.0.20-dev-20231020180049/dist/";
37+
import { BarcodeReaderModule } from "dynamsoft-barcode-reader";
38+
BarcodeReaderModule.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@9.6.20/dist/";
3939
```
4040

4141
```typescript
4242
// cvr.ts
43-
import { CaptureVisionRouter, LicenseManager } from '@dynamsoft/dynamsoft-capture-vision-router';
44-
CaptureVisionRouter.engineResourcePath = 'https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft[email protected]-dev-20231027145739/dist/';
43+
import { CaptureVisionRouter, LicenseManager } from 'dynamsoft-capture-vision-router';
44+
CaptureVisionRouter.engineResourcePath = 'https://cdn.jsdelivr.net/npm/[email protected]/dist/';
4545
LicenseManager.initLicense('DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9');
4646
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
4747
CaptureVisionRouter.preloadModule(['DBR']).catch((ex) => {
@@ -59,8 +59,8 @@ CaptureVisionRouter.preloadModule(['DBR']).catch((ex) => {
5959

6060
```typescript
6161
// dce.ts
62-
import { CameraView } from "@dynamsoft/dynamsoft-camera-enhancer";
63-
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].0/dist/";
62+
import { CameraView } from "dynamsoft-camera-enhancer";
63+
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].1/dist/";
6464
```
6565

6666
> Note:
@@ -103,17 +103,17 @@ ng generate component hello-world
103103

104104
```typescript
105105
import { Component, ElementRef, ViewChild } from '@angular/core';
106-
import { EnumCapturedResultItemType } from '@dynamsoft/dynamsoft-core'
107-
import { DecodedBarcodesResult } from '@dynamsoft/dynamsoft-barcode-reader';
106+
import { EnumCapturedResultItemType } from 'dynamsoft-core'
107+
import { DecodedBarcodesResult } from 'dynamsoft-barcode-reader';
108108
import {
109109
CameraEnhancer,
110110
CameraView,
111-
} from '@dynamsoft/dynamsoft-camera-enhancer';
111+
} from 'dynamsoft-camera-enhancer';
112112
import {
113113
CapturedResultReceiver,
114114
CaptureVisionRouter,
115-
} from '@dynamsoft/dynamsoft-capture-vision-router';
116-
import { MultiFrameResultCrossFilter } from '@dynamsoft/dynamsoft-utility';
115+
} from 'dynamsoft-capture-vision-router';
116+
import { MultiFrameResultCrossFilter } from 'dynamsoft-utility';
117117

118118
@Component({
119119
selector: 'app-video-capture',
@@ -235,8 +235,8 @@ export class VideoCaptureComponent {
235235

236236
```typescript
237237
import { Component } from '@angular/core';
238-
import { BarcodeResultItem } from '@dynamsoft/dynamsoft-barcode-reader';
239-
import { CaptureVisionRouter } from '@dynamsoft/dynamsoft-capture-vision-router';
238+
import { BarcodeResultItem } from 'dynamsoft-barcode-reader';
239+
import { CaptureVisionRouter } from 'dynamsoft-capture-vision-router';
240240

241241
@Component({
242242
selector: 'app-image-capture',

hello-world/angular/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
"@angular/platform-browser": "^16.2.0",
1919
"@angular/platform-browser-dynamic": "^16.2.0",
2020
"@angular/router": "^16.2.0",
21-
"@dynamsoft/dynamsoft-barcode-reader": "^10.0.20-dev-20231020180049",
22-
"@dynamsoft/dynamsoft-camera-enhancer": "^4.0.1-dev-20231023154255",
23-
"@dynamsoft/dynamsoft-capture-vision-router": "^2.0.20-dev-20231027145739",
24-
"@dynamsoft/dynamsoft-utility": "^1.0.10-dev-20231023103736",
21+
"dynamsoft-camera-enhancer": "^4.0.1",
22+
"dynamsoft-capture-vision-router": "^2.0.20",
23+
"dynamsoft-utility": "^1.0.10",
2524
"rxjs": "~7.8.0",
2625
"tslib": "^2.3.0",
2726
"zone.js": "~0.13.0"

hello-world/angular/src/app/image-capture/image-capture.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
2-
import { BarcodeResultItem } from '@dynamsoft/dynamsoft-barcode-reader';
3-
import { CaptureVisionRouter } from '@dynamsoft/dynamsoft-capture-vision-router';
2+
import { BarcodeResultItem } from 'dynamsoft-barcode-reader';
3+
import { CaptureVisionRouter } from 'dynamsoft-capture-vision-router';
44

55
@Component({
66
selector: 'app-image-capture',

hello-world/angular/src/app/video-capture/video-capture.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { Component, ElementRef, ViewChild } from '@angular/core';
2-
import { EnumCapturedResultItemType } from '@dynamsoft/dynamsoft-core'
3-
import { DecodedBarcodesResult } from '@dynamsoft/dynamsoft-barcode-reader';
2+
import { EnumCapturedResultItemType } from 'dynamsoft-core'
3+
import { DecodedBarcodesResult } from 'dynamsoft-barcode-reader';
44
import {
55
CameraEnhancer,
66
CameraView,
7-
} from '@dynamsoft/dynamsoft-camera-enhancer';
7+
} from 'dynamsoft-camera-enhancer';
88
import {
99
CapturedResultReceiver,
1010
CaptureVisionRouter,
11-
} from '@dynamsoft/dynamsoft-capture-vision-router';
12-
import { MultiFrameResultCrossFilter } from '@dynamsoft/dynamsoft-utility';
11+
} from 'dynamsoft-capture-vision-router';
12+
import { MultiFrameResultCrossFilter } from 'dynamsoft-utility';
1313

1414
@Component({
1515
selector: 'app-video-capture',

hello-world/angular/src/cvr.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import {
22
CaptureVisionRouter,
33
LicenseManager,
4-
} from '@dynamsoft/dynamsoft-capture-vision-router';
4+
} from 'dynamsoft-capture-vision-router';
55

66
CaptureVisionRouter.engineResourcePath =
7-
'https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft[email protected]-dev-20231027145739/dist/';
7+
'https://cdn.jsdelivr.net/npm/[email protected]/dist/';
88

99
/** LICENSE ALERT - README
1010
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
1111
*/
1212

1313
LicenseManager.initLicense(
14-
'DLS2eyJoYW5kc2hha2VDb2RlIjoiNjY2Ni03Nzc3IiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vMTkyLjE2OC44LjEyMi9kbHMvIiwib3JnYW5pemF0aW9uSUQiOiI2NjY2IiwiY2hlY2tDb2RlIjoxNTEyMTgzMzg3fQ=='
14+
'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9'
1515
);
1616

1717
/**
1818
* 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.
1919
* 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.
20-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.0.20&utm_source=github#specify-the-license or contact [email protected].
20+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.20&utm_source=github#specify-the-license or contact [email protected].
2121
* LICENSE ALERT - THE END
2222
*/
2323

hello-world/angular/src/dbr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { BarcodeReaderModule } from "@dynamsoft/dynamsoft-barcode-reader";
1+
import { BarcodeReaderModule } from "dynamsoft-barcode-reader";
22

3-
BarcodeReaderModule.engineResourcePath = "https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft-barcode-reader@10.0.20-dev-20231020180049/dist/";
3+
BarcodeReaderModule.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@9.6.20/dist/";

0 commit comments

Comments
 (0)