Skip to content

Commit 14b93d9

Browse files
committed
update vue3 sample and readme;
1 parent 0ae7a1d commit 14b93d9

File tree

11 files changed

+474
-38
lines changed

11 files changed

+474
-38
lines changed

1.hello-world/5.read-video-vue/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Preparation
1111

12-
Make sure you have [node](https://nodejs.org/) is installed. `node 14.21.3` and `vue 2.7.7` are used in the example below.
12+
Make sure you have [node](https://nodejs.org/) installed. `node 14.21.3` and `vue 2.7.7` are used in the example below.
1313

1414
## Create the sample project
1515

@@ -22,6 +22,7 @@ npm create vue@2
2222
### **CD** to the root directory of the application and install the dependencies
2323

2424
```cmd
25+
npm install
2526
npm install dynamsoft-javascript-barcode
2627
```
2728

1.hello-world/6.read-video-vue3/README.md

Lines changed: 452 additions & 14 deletions
Large diffs are not rendered by default.

1.hello-world/6.read-video-vue3/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<meta charset="UTF-8">
55
<link rel="icon" href="/favicon.ico">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>Vite App</title>
7+
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader in a Vue3 Application.">
8+
<meta name="keywords" content="read barcode from camera in Vue3">
9+
<link rel="canonical" href="https://demo.dynamsoft.com/Samples/DBR/JS/1.hello-world/6.read-video-vue3/dist/">
10+
<title>
11+
Hello World for Vue3 - Dynamsoft Barcode Reader Sample
12+
</title>
813
</head>
914
<body>
1015
<div id="app"></div>

1.hello-world/6.read-video-vue3/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"type-check": "vue-tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"dynamsoft-javascript-barcode": "9.6.10",
14-
"vue": "^3.2.45"
13+
"dynamsoft-javascript-barcode": "^9.6.11",
14+
"vue": "^3.2.47"
1515
},
1616
"devDependencies": {
17-
"@types/node": "^18.11.12",
17+
"@types/node": "^18.14.2",
1818
"@vitejs/plugin-vue": "^4.0.0",
1919
"@vue/tsconfig": "^0.1.3",
2020
"npm-run-all": "^4.1.5",
21-
"typescript": "~4.7.4",
22-
"vite": "^4.0.0",
23-
"vue-tsc": "^1.0.12"
21+
"typescript": "~4.8.4",
22+
"vite": "^4.1.4",
23+
"vue-tsc": "^1.2.0"
2424
}
2525
}

1.hello-world/6.read-video-vue3/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import HelloWorld from './components/HelloWorld.vue'
77
</template>
88

99
<style scoped>
10-
</style>
10+
</style>
Lines changed: 1 addition & 1 deletion
Loading

1.hello-world/6.read-video-vue3/src/assets/main.css

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @import './base.css';
1+
@import './base.css';
22

33
#app {
44
max-width: 1280px;
@@ -15,7 +15,7 @@ a,
1515
transition: 0.4s;
1616
}
1717

18-
@media (hover: hover) {
18+
/* @media (hover: hover) {
1919
a:hover {
2020
background-color: hsla(160, 100%, 37%, 0.2);
2121
}
@@ -33,11 +33,3 @@ a,
3333
padding: 0 2rem;
3434
}
3535
} */
36-
#app {
37-
font-family: Avenir, Helvetica, Arial, sans-serif;
38-
-webkit-font-smoothing: antialiased;
39-
-moz-osx-font-smoothing: grayscale;
40-
text-align: center;
41-
color: #2c3e50;
42-
margin-top: 60px;
43-
}

1.hello-world/6.read-video-vue3/src/components/ImgDecode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ onBeforeUnmount(async () => {
4545
height: 90%;
4646
border: 1px solid black
4747
}
48-
</style>
48+
</style>

1.hello-world/6.read-video-vue3/src/dbr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
99
/**
1010
* 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.
1111
* 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.
12-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.10&utm_source=github#specify-the-license or contact [email protected].
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.11&utm_source=github#specify-the-license or contact [email protected].
1313
* LICENSE ALERT - THE END
1414
*/
1515

16-
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].10/dist/";
16+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].11/dist/";

1.hello-world/6.read-video-vue3/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
"references": [
1212
{
13-
"path": "./tsconfig.config.json"
13+
"path": "./tsconfig.node.json"
1414
}
1515
]
1616
}

0 commit comments

Comments
 (0)