Skip to content

Commit 0ae7a1d

Browse files
committed
update readme; update vue sample;
1 parent 000d702 commit 0ae7a1d

File tree

20 files changed

+1185
-149
lines changed

20 files changed

+1185
-149
lines changed

1.hello-world/13.read-video-react-hook/README.md

Lines changed: 443 additions & 25 deletions
Large diffs are not rendered by default.

1.hello-world/13.read-video-react-hook/public/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
11-
/>
8+
<meta name="description" content="Read barcode with Dynamsoft Barcode Reader in a React Application.">
9+
<meta name="keywords" content="read barcode from camera and images in React">
10+
<link rel="canonical" href="https://demo.dynamsoft.com/Samples/DBR/JS/1.hello-world/13.read-video-react-hook/build/">
1211
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1312
<!--
1413
manifest.json provides metadata used when your web app is installed on a

1.hello-world/4.read-video-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,4 +420,4 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d
420420

421421
## Support
422422

423-
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:[email protected]) or [live chat](https://www.dynamsoft.com/barcode-reader/sdk-javascript/) via the "Let's Chat" button.
423+
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:[email protected]) or [live chat](https://www.dynamsoft.com/barcode-reader/sdk-javascript/) via the "Let's Chat" button.
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
.DS_Store
2-
node_modules
3-
/package-lock.json
4-
# /dist (for demoing purpose)
5-
6-
7-
# local env files
8-
.env.local
9-
.env.*.local
10-
11-
# Log files
1+
# Logs
2+
logs
3+
*.log
124
npm-debug.log*
135
yarn-debug.log*
146
yarn-error.log*
157
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
*.local
15+
16+
/cypress/videos/
17+
/cypress/screenshots/
1618

1719
# Editor directories and files
18-
.idea
1920
.vscode
21+
!.vscode/extensions.json
22+
.idea
2023
*.suo
2124
*.ntvs*
2225
*.njsproj
2326
*.sln
2427
*.sw?
25-
26-
# others
27-
28-
*.lock

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

Lines changed: 550 additions & 11 deletions
Large diffs are not rendered by default.

1.hello-world/5.read-video-vue/babel.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader in a Vue Application.">
8+
<meta name="keywords" content="read barcode from camera in Vue">
9+
<link rel="canonical" href="https://demo.dynamsoft.com/Samples/DBR/JS/1.hello-world/5.read-video-vue/dist/">
10+
<title>
11+
Hello World for Vue - Dynamsoft Barcode Reader Sample
12+
</title>
13+
</head>
14+
<body>
15+
<div id="app"></div>
16+
<script type="module" src="/src/main.js"></script>
17+
</body>
18+
</html>
Lines changed: 17 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,19 @@
11
{
2-
"name": "hello-world",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
9-
},
10-
"dependencies": {
11-
"core-js": "^3.6.5",
12-
"dynamsoft-javascript-barcode": "9.6.10",
13-
"vue": "^2.7.8"
14-
},
15-
"devDependencies": {
16-
"@vue/cli-plugin-babel": "~4.5.0",
17-
"@vue/cli-plugin-eslint": "~4.5.0",
18-
"@vue/cli-service": "~4.5.0",
19-
"babel-eslint": "^10.1.0",
20-
"eslint": "^6.7.2",
21-
"eslint-plugin-vue": "^6.2.2",
22-
"vue-template-compiler": "^2.6.11"
23-
},
24-
"eslintConfig": {
25-
"root": true,
26-
"env": {
27-
"node": true
28-
},
29-
"extends": [
30-
"plugin:vue/essential",
31-
"eslint:recommended"
32-
],
33-
"parserOptions": {
34-
"parser": "babel-eslint"
35-
},
36-
"rules": {}
37-
},
38-
"browserslist": [
39-
"> 1%",
40-
"last 2 versions",
41-
"not dead"
42-
]
2+
"name": "read-video-vue",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build",
7+
"preview": "vite preview --port 4173"
8+
},
9+
"dependencies": {
10+
"dynamsoft-javascript-barcode": "^9.6.11",
11+
"vue": "^2.7.7"
12+
},
13+
"devDependencies": {
14+
"@vitejs/plugin-legacy": "^2.0.0",
15+
"@vitejs/plugin-vue2": "^1.1.2",
16+
"terser": "^5.14.2",
17+
"vite": "^3.0.2"
18+
}
4319
}

1.hello-world/5.read-video-vue/public/index.html

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

1.hello-world/5.read-video-vue/src/App.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,4 @@ export default {
1616
</script>
1717

1818
<style>
19-
#app {
20-
font-family: Avenir, Helvetica, Arial, sans-serif;
21-
-webkit-font-smoothing: antialiased;
22-
-moz-osx-font-smoothing: grayscale;
23-
text-align: center;
24-
color: #2c3e50;
25-
}
26-
.applogo {
27-
height: 5vmin;
28-
}
2919
</style>

0 commit comments

Comments
 (0)