Skip to content

Commit 7556adf

Browse files
committed
update next sample and readme;
1 parent 14b93d9 commit 7556adf

File tree

14 files changed

+650
-139
lines changed

14 files changed

+650
-139
lines changed

1.hello-world/3.read-video-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^15.2.0",
1919
"@angular/platform-browser-dynamic": "^15.2.0",
2020
"@angular/router": "^15.2.0",
21-
"dynamsoft-javascript-barcode": "^9.6.10",
21+
"dynamsoft-javascript-barcode": "^9.6.11",
2222
"rxjs": "~7.8.0",
2323
"tslib": "^2.3.0",
2424
"zone.js": "~0.12.0"

1.hello-world/3.read-video-angular/src/app/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/5.read-video-vue/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import vue2 from '@vitejs/plugin-vue2'
66

77
// https://vitejs.dev/config/
88
export default defineConfig({
9+
base: "",
910
plugins: [
1011
vue2(),
1112
legacy({

1.hello-world/6.read-video-vue3/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import vue from '@vitejs/plugin-vue'
55

66
// https://vitejs.dev/config/
77
export default defineConfig({
8+
base: "",
89
plugins: [vue()],
910
resolve: {
1011
alias: {

1.hello-world/7.read-video-nextjs/README.md

Lines changed: 303 additions & 22 deletions
Large diffs are not rendered by default.

1.hello-world/7.read-video-nextjs/components/VideoDecode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ class VideoDecode extends React.Component {
6363
}
6464
}
6565

66-
export default VideoDecode;
66+
export default VideoDecode;

1.hello-world/7.read-video-nextjs/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/7.read-video-nextjs/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@next/font": "13.1.6",
13-
"@types/node": "18.13.0",
12+
"@types/node": "18.15.3",
1413
"@types/react": "18.0.28",
15-
"@types/react-dom": "18.0.10",
16-
"dynamsoft-javascript-barcode": "9.6.10",
17-
"next": "13.1.6",
14+
"@types/react-dom": "18.0.11",
15+
"dynamsoft-javascript-barcode": "^9.6.11",
16+
"next": "13.2.4",
1817
"react": "18.2.0",
1918
"react-dom": "18.2.0",
2019
"typescript": "4.9.5"

1.hello-world/7.read-video-nextjs/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import '@/styles/globals.css'
2-
import '@/styles/BarcodeScanner.css'
2+
import '@/styles/VideoDecode.css'
33
import type { AppProps } from 'next/app'
44

55
export default function App({ Component, pageProps }: AppProps) {
Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
import Head from 'next/head'
2-
import Image from 'next/image'
3-
import HelloWorld from '../components/HelloWorld'
4-
import { Inter } from '@next/font/google'
52
import styles from '@/styles/Home.module.css'
6-
7-
const inter = Inter({ subsets: ['latin'] })
3+
import HelloWorld from '../components/HelloWorld'
84

95
export default function Home() {
106
return (
11-
<div className={styles.container}>
7+
<>
128
<Head>
139
<title>Create Next App</title>
1410
<meta name="description" content="Generated by create next app" />
1511
<meta name="viewport" content="width=device-width, initial-scale=1" />
1612
<link rel="icon" href="/favicon.ico" />
1713
</Head>
18-
1914
<main className={styles.main}>
2015
<div className={styles.UIElement}>
21-
<HelloWorld title="Hello World for Next.js" />
16+
<HelloWorld title="Welcome to DBRJS Nextjs sample" />
2217
</div>
2318
</main>
24-
25-
<footer className={styles.footer}>
26-
<a
27-
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
28-
target="_blank"
29-
rel="noopener noreferrer"
30-
>
31-
Powered by{' '}
32-
<span className={styles.logo}>
33-
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
34-
</span>
35-
</a>
36-
</footer>
37-
</div>
19+
</>
3820
)
3921
}

0 commit comments

Comments
 (0)