Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
558b8b8
refactor: replaced var with const or let for better scoping
Keillion Jun 17, 2024
ac62a49
feat: add nav link on logo to dynamsoft website
Keillion Jun 17, 2024
12b2919
refactor: format and standardize hello-word js (#174)
Felix-Dynamsoft Jun 20, 2024
e45ea52
feat: updated react and react-hooks sample and docs (#179)
Felix-Dynamsoft Jun 26, 2024
f4d0984
feat: updated nextjs sample and docs (#180)
Felix-Dynamsoft Jun 26, 2024
246006d
feat: updated vue sample and docs (#181)
Felix-Dynamsoft Jun 26, 2024
61001dd
feat: update nuxt sample and docs (#183)
Felix-Dynamsoft Jun 26, 2024
e3a395b
feat: update angular sample and docs (#182)
Felix-Dynamsoft Jun 26, 2024
c96166e
feat: update electron sample and docs (#186)
Felix-Dynamsoft Jul 1, 2024
29302b3
feat: update pwa sample and docs (#187)
Felix-Dynamsoft Jul 1, 2024
631fde7
feat: update website sample and docs (#188)
Felix-Dynamsoft Jul 1, 2024
a3e9567
fix: exact installation in docs, buttons-container class, and white-s…
Felix-Dynamsoft Jul 1, 2024
818493a
feat: updated fill form with barcode reading sample (#190)
Felix-Dynamsoft Jul 1, 2024
17fdf38
feat: updated driver license sample to standardize naming convention …
Felix-Dynamsoft Jul 1, 2024
7d464cf
feat: update show result texts on video sample (#189)
Felix-Dynamsoft Jul 1, 2024
0c28f64
feat: add locate an item via barcode sample (#192)
Felix-Dynamsoft Jul 1, 2024
1d5da4a
feat: update svelte sample and docs (#184)
Felix-Dynamsoft Jul 2, 2024
10e211b
fix: add missing html from nuxt README guide (#193)
Felix-Dynamsoft Jul 5, 2024
6f7dcef
Update README.md - changed the words and fixed typos, etc.
Tom-Dynamsoft Jul 8, 2024
591cdd2
wip: vin scanner sample
felixindrawan Jul 2, 2024
64e810c
fix parameters
felixindrawan Jul 4, 2024
cb8be06
feat: minimum element for vin scan
felixindrawan Jul 4, 2024
91e668e
feat: add scan modes button
felixindrawan Jul 8, 2024
a8caa17
fix: change license
felixindrawan Jul 9, 2024
e2f6dbf
feat: add default option and page title
felixindrawan Jul 9, 2024
0dd7bd9
feat: updated vin sample code and design
felixindrawan Jul 9, 2024
c6ab53b
feat: Added copy code, and settings for the official VIN scanning sample
felixindrawan Jul 9, 2024
e718c4a
feat: added image on scan
felixindrawan Jul 9, 2024
14086bf
feat: Add image result to minimum-elements
felixindrawan Jul 10, 2024
d6fc0b4
fix: Add image download and notification for camera switch
felixindrawan Jul 10, 2024
361d3e1
fix: css for minimum elements and index.html
felixindrawan Jul 10, 2024
976231b
Authorization requests should not be cached (#196)
Shen-wb Jul 16, 2024
2f04b9f
Update main.yml (#198)
DMGithubPublisher Jul 16, 2024
94a6d48
fix: changed license for locate-an-item sample and updated links (#197)
Felix-Dynamsoft Jul 16, 2024
0d03b8c
fix: broken demo links on README.md
felixindrawan Jul 16, 2024
6d21842
First check-in on playwright script. The 'helloworld.spec.ts' script …
eugene-dynamsoft Jul 16, 2024
4d23f58
fix: Locate Item Sample - license text color, and mobile viewport
felixindrawan Jul 17, 2024
d87e7e0
fix: update license to use demo license
felixindrawan Jul 17, 2024
075ecb3
Revert "fix: update license to use demo license"
Felix-Dynamsoft Jul 18, 2024
ab09bd6
fix: updated debug link to github readme
felixindrawan Jul 18, 2024
7ab8c93
Update index page (#206)
a362758199 Jul 26, 2024
d9cbbb0
Bug: fix utm_source from github to samples
Tom-Dynamsoft Aug 6, 2024
cbeb000
README: avoid slow git clone, use zip/tar.gz or depth 1 instead (#207)
Keillion Aug 12, 2024
2e84bfe
feat: Blazor sample
felixindrawan Aug 14, 2024
1d6e283
Added Intermediate Result image download for read-an-image sample to …
eugene-dynamsoft Aug 15, 2024
186b873
fix: add trial license explicitly
felixindrawan Aug 15, 2024
dc80f3e
Merge branch 'main' of https://github.com/Dynamsoft/barcode-reader-ja…
Aug 16, 2024
f44cca5
Update README.md (#209)
mythicaleia Aug 22, 2024
5434dd1
updated references and retrieving information
felixindrawan Aug 26, 2024
9959acf
removed unused files and added homepage
felixindrawan Aug 26, 2024
2cf4a15
removed unused files
felixindrawan Aug 26, 2024
3062c25
fix: removed unused codes and add multiple image decode
felixindrawan Aug 27, 2024
7b8d51d
inputElement.value = '';
Keillion Aug 28, 2024
37a949c
feat: reset input value, so user can upload again
Keillion Aug 28, 2024
8a16133
renamed project to BlazorApp and fix input reset
felixindrawan Aug 28, 2024
53ca1ec
fix: comments
felixindrawan Aug 28, 2024
d815966
fix: update readme
felixindrawan Aug 28, 2024
5ed4aa6
fix: comments
felixindrawan Aug 28, 2024
d974534
feat: add icons for the nav
felixindrawan Aug 28, 2024
729d0c0
fix: change icons for images
felixindrawan Aug 28, 2024
4d472e9
fix: remove vs folder
felixindrawan Aug 28, 2024
97fe43e
Merge pull request #208 from Dynamsoft/blazor-sample
Tom-Dynamsoft Aug 28, 2024
6d4b0c8
Fix: Update README.md => there is no longer a live demo for this sample
Tom-Dynamsoft Sep 4, 2024
634382f
Fix: Update README.md => there is no longer a live demo for this sample
Tom-Dynamsoft Sep 4, 2024
8da695d
docs: Update README.md to add more details to "Quick Start"
Tom-Dynamsoft Sep 10, 2024
6d9414b
fix: move camera-view-container css to inline and update guide
felixindrawan Sep 14, 2024
250a6d5
docs: Update README.md to remove broken demo link
Tom-Dynamsoft Sep 16, 2024
35cb258
docs: Update README.md to remove broken demo link
Tom-Dynamsoft Sep 16, 2024
60ba948
feat: add preview build script for test
Tom-Dynamsoft Oct 8, 2024
f7c9ce9
fix: bug in preview build script
Tom-Dynamsoft Oct 8, 2024
eff9950
fix: remove build script for preview which is not ready
Tom-Dynamsoft Oct 8, 2024
2581cb7
Deploy preview for PR 214 🛫
Oct 8, 2024
7632731
feat: add PR previews (#214)
Felix-Dynamsoft Oct 8, 2024
fe0d68c
fix: remove preview folder
felixindrawan Oct 8, 2024
d634e75
fix: remove preview on closed pr
felixindrawan Oct 8, 2024
9b9a39e
Update README.md
chloe-dynamsoft Oct 9, 2024
592eadc
Merge pull request #215 from Dynamsoft/chloe-hahn-patch-1
chloe-dynamsoft Oct 9, 2024
a55f186
chore: update dynamsoft-barcode-reader-bundle to v10.4.2000-beta (#212)
Felix-Dynamsoft Oct 10, 2024
77a06ba
Adding generic playwright test to the root html page.
eugene-dynamsoft Oct 10, 2024
abfd275
patch for engineResourcePath for es6 and requirejs (#216)
Felix-Dynamsoft Oct 10, 2024
afa6eef
added base index page validation for the text and URL (href) links
eugene-dynamsoft Oct 10, 2024
2086dcf
Added package.json file to the root
eugene-dynamsoft Oct 10, 2024
4f78da4
added package-lock.json
eugene-dynamsoft Oct 10, 2024
2175fa8
Merge branch 'main' of https://github.com/Dynamsoft/barcode-reader-ja…
eugene-dynamsoft Oct 15, 2024
b972efb
Added blazor project to the index list.
eugene-dynamsoft Oct 15, 2024
7750db6
Adding unittest for hello-world and read-an-image pages.
eugene-dynamsoft Oct 15, 2024
1a37223
Added read-a-drivers-license-test to the project
eugene-dynamsoft Oct 15, 2024
8172798
Added unittests for ES6, PWA, and requireJS pages
eugene-dynamsoft Oct 15, 2024
3528f43
Added tests for show result text on the video overlay.
eugene-dynamsoft Oct 16, 2024
617ac58
Added test for find item via barcode test
eugene-dynamsoft Oct 16, 2024
ec304af
Removed firefox config and added force headless mode
eugene-dynamsoft Oct 16, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

# The type of runner that the job will run on
runs-on: self-hosted
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Playwright Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
env:
HOME: /root
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.46.1-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies (clean install)
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm test
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report
retention-days: 30
26 changes: 26 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/deploy.yml
name: Deploy PR previews
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- closed

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy PR Preview
uses: rossjrw/[email protected]
with:
token: ${{ secrets.PREVIEW_TOKEN }}
preview-branch: gh-pages
source-dir: .
umbrella-dir: pr-preview
action: auto
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ yarn-error.log*
*.njsproj
*.sln
*.sw?
.vs

__pycache__
~~*
Expand All @@ -42,4 +43,8 @@ yarn.lock

!bower.json
!composer.json
!package.js
!package.js
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@

This repository contains multiple samples that demonstrates how to use the [Dynamsoft Barcode Reader JavaScript Edition](https://www.dynamsoft.com/barcode-reader/sdk-javascript/?utm_source=sampleReadme) for creating web-based barcode scanning applications.

## Get the Code

Since the repository has a lot of history, it is slow to clone directly. Please download the [zip](https://github.com/Dynamsoft/barcode-reader-javascript-samples/archive/refs/heads/main.zip)/[tar.gz](https://github.com/Dynamsoft/barcode-reader-javascript-samples/archive/refs/heads/main.tar.gz), or use the `--depth 1` to clone the code.
```git
git clone https://github.com/Dynamsoft/barcode-reader-javascript-samples.git --depth 1
```

## Request a trial license

A default license is included which allows you to test the sample apps for up to 24 hours. You can [request a trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=sampleReadme) via Dynamsoft customer portal to evaluate further.
A default license is included which allows you to test the sample apps for up to 24 hours. You can [request a 30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=sampleReadme) via Dynamsoft website to evaluate further.

## Documentation

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=10.0.21&utm_source=sampleReadme).
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=10.4.2000&utm_source=sampleReadme).

## Support

Expand All @@ -22,10 +29,11 @@ Get the basic features of the library working with plain/native JavaScript or wi

* [**Hello World**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/hello-world.html?utm_source=sampleReadme): Scan barcodes from video stream with minimum code in JavaScript.
* [**Read an Image**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/read-an-image.html?utm_source=sampleReadme): Decode barcodes from images in mobile album or desktop file system.
* [**Hello World in Angular**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/angular/dist/angular?utm_source=sampleReadme): Read barcodes from camera and images in an Angular application.
* [**Hello World in React**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/react/build/?utm_source=sampleReadme): Read barcodes from camera and images in a React application.
* [**Hello World in React using Hooks**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/react-hooks/build/?utm_source=sampleReadme): Read barcodes from camera and images in a React application and use the Hooks charactor of React.
* [**Hello World in Vue**](https://demo.dynamsoft.com/samples/dbr/js/hello-world/vue/dist/?utm_source=sampleReadme): Read barcodes from camera and images in a Vue 3 application.
* [**Hello World in Angular**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/angular#readme): Read barcodes from camera and images in an Angular application.
* [**Hello World in Blazor**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/blazor#readme): Read barcodes from camera and images in a Blazor application.
* [**Hello World in React**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/react#readme): Read barcodes from camera and images in a React application.
* [**Hello World in React using Hooks**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/react-hooks#readme): Read barcodes from camera and images in a React application and use the Hooks charactor of React.
* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/vue#readme): Read barcodes from camera and images in a Vue 3 application.
* [**Hello World in Next.js**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/next#readme): Read barcodes from camera and images in a Next.js application.
* [**Hello World in Nuxt**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/nuxt#readme): Read barcodes from camera and images in a Nuxt application.
* [**Hello World in Electron**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/hello-world/electron#readme): Read barcodes from camera and images in a Electron application.
Expand All @@ -37,8 +45,9 @@ Get the basic features of the library working with plain/native JavaScript or wi
### Use Cases

* [**Read Video and Fill a Form**](https://demo.dynamsoft.com/samples/dbr/js/use-case/fill-a-form-with-barcode-reading.html?utm_source=sampleReadme): Read barcodes to fill a form.
* [**Read a Driver's License**](https://demo.dynamsoft.com/samples/dbr/js/use-case/read-a-drivers-license.html?utm_source=sampleReadme): Read the PDF417 barcode on a driver's license (AAMVA compliant) and parse it.
* [**Read a Driver's License**](https://demo.dynamsoft.com/samples/dbr/js/use-case/read-a-drivers-license/index.html?utm_source=sampleReadme): Read the PDF417 barcode on a driver's license (AAMVA compliant) and parse it.
* [**Show Result Texts on the Video**](https://demo.dynamsoft.com/samples/dbr/js/use-case/show-result-texts-on-the-video.html?utm_source=sampleReadme): Read barcodes via camera and show result texts on the video.
* [**Locate an Item with Barcode**](https://demo.dynamsoft.com/samples/dbr/js/use-case/locate-an-item-with-barcode/index.html?utm_source=sampleReadme): Find a specific item in a large collection by scanning its unique barcode

### Others

Expand Down
2 changes: 1 addition & 1 deletion hello-world/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The Hello World Sample Set

As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.2.10#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.
As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.4.2000#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.

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.

Expand Down
Loading