Skip to content

Commit 00f354b

Browse files
dbr js demo UI updated; dbr updated to 8.8.3
1 parent 6888931 commit 00f354b

18 files changed

+4254
-19554
lines changed

.gitignore

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1+
.DS_Store
12
node_modules
2-
dist
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

.tfignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.DS_Store
2+
node_modules
3+
dist
4+
build
5+
package-lock.json
6+
7+
# local env files
8+
.env.local
9+
.env.*.local
10+
11+
# Log files
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
16+
# Files and directories created by pub
17+
.dart_tool
18+
.packages
19+
.pub
20+
build
21+
# Remove the following pattern if you wish to check in your lock file
22+
pubspec.lock
23+
# See https://github.com/dart-lang/site-webdev/issues/1351
24+
test\**\*.g.dart
25+
26+
# Editor directories and files
27+
.idea
28+
.vscode
29+
*.suo
30+
*.ntvs*
31+
*.njsproj
32+
*.sln
33+
*.sw?

README.md

+14-31
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
1-
# Demo for Dynamsoft Barcode Reader JavaScript SDK
2-
3-
This repository contains the source code for the official demo of the Dynamsoft Barcode Reader JavaScript SDK (hereafter called "the library").
4-
5-
You can visit the official demo at [https://demo.dynamsoft.com/barcode-reader-js/](https://demo.dynamsoft.com/barcode-reader-js/).
6-
7-
The application is based on [Vue](https://vuejs.org/), a progressive framework for building user interfaces. You can follow the steps below to run the application.
8-
9-
> Make sure you have [node](https://nodejs.org/), [yarn](https://yarnpkg.com/cli/install) and [Vue CLI](https://cli.vuejs.org/) installed. `node 14.16.0` , `yarn 1.22.10` and `@vue/cli 4.5.11` are used in the example below.
10-
11-
## Install the dependencies
1+
# dbr_js_demo_vue
122

3+
## Project setup
134
```
14-
yarn
5+
npm install
156
```
167

17-
## Compile and serve
18-
8+
### Compiles and hot-reloads for development
199
```
20-
yarn serve
10+
npm run serve
2111
```
2212

23-
You will notice that the barcode results are not complete and sometimes the location is not accurate, both issues are due to the lack of a valid license. The next step shows you how to apply for a trial license and use it.
24-
25-
## License the application
26-
27-
Sign up and request a trial license in the [Dynamsoft Customer Portal](https://www.dynamsoft.com/customer/license/trialLicense). Make sure to choose "Dynamsoft Barcode Reader" and "JavaScript Web SDK".
28-
29-
Once you get the trial license, you can use it by specifying your organization ID in the application.
30-
31-
Open the file "/src/dbr.js" and specify your organization ID like this:
32-
33-
```javascript
34-
DBR.BarcodeReader.organizationID = "Your-Organization-ID";
13+
### Compiles and minifies for production
14+
```
15+
npm run build
3516
```
3617

37-
That's it. Recompile to test again and you will see the barcode reading working properly.
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
3822

39-
> NOTE
40-
>
41-
> The trial license is fetched from Dynamsoft License Server at runtime, so please make sure your device has network connection.
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

0 commit comments

Comments
 (0)