Skip to content

Commit 05c7824

Browse files
committed
feat: release v1.0.1
1 parent 85d469e commit 05c7824

16 files changed

+1010
-70
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
# Copy the samples folder and rename demo.html to index.html
3939
cp -r /home/ubuntu/document-scanner-javascript/samples/* /home/ubuntu/document-scanner-javascript/demo
40-
mv /home/ubuntu/deployment/samples/demo.html /home/ubuntu/deployment/samples/index.html
40+
mv /home/ubuntu/document-scanner-javascript/demo/demo.html /home/ubuntu/document-scanner-javascript/demo/index.html
4141
4242
4343
- name: Sync files
@@ -47,5 +47,5 @@ jobs:
4747
username: ${{ secrets.FTP_DEMO_USERNAME }}
4848
password: ${{ secrets.FTP_DEMO_PASSWORD }}
4949
port: 21
50-
local-dir: /home/ubuntu/document-scanner-javascript/demo
50+
local-dir: /home/ubuntu/document-scanner-javascript/demo/
5151
server-dir: /Demo.dynamsoft.com/document-scanner/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Alternatively, you can create an empty file named `hello-world.html`, paste the
5050
<meta charset="utf-8" />
5151
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5252
<title>Dynamsoft Document Scanner - Hello World</title>
53-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/dds.bundle.js"></script>
53+
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/dds.bundle.js"></script>
5454
<style>
5555
html,
5656
body {

dev-server/index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,17 @@ app.use(
3232

3333
// Serve static files
3434
app.use("/dist", express.static(distPath));
35+
app.use("/assets", express.static(path.join(__dirname, "../samples/assets")));
36+
app.use("/css", express.static(path.join(__dirname, "../samples/css")));
37+
app.use("/font", express.static(path.join(__dirname, "../samples/font")));
3538

3639
// Routes
3740
app.get("/", (req, res) => {
38-
res.sendFile(path.join(__dirname, "../samples/hello-world.html"));
41+
res.sendFile(path.join(__dirname, "../samples/demo.html"));
42+
});
43+
44+
app.get("/demo", (req, res) => {
45+
res.sendFile(path.join(__dirname, "../samples/demo.html"));
3946
});
4047

4148
app.get("/hello-world", (req, res) => {
@@ -122,6 +129,7 @@ httpsServer.listen(httpsPort, "0.0.0.0", () => {
122129
});
123130
console.log("\x1b[36m Available Pages:\x1b[0m");
124131
console.log("\x1b[90m-------------------\x1b[0m");
132+
console.log("\x1b[33m Demo:\x1b[0m /demo");
125133
console.log("\x1b[33m Hello World:\x1b[0m /hello-world\n");
126134

127135
console.log("\x1b[90mPress Ctrl+C to stop the server\x1b[0m\n");

0 commit comments

Comments
 (0)