From 8bd372153d993e70104963e265bfef0010509422 Mon Sep 17 00:00:00 2001 From: SHEN <1014628363@qq.com> Date: Mon, 4 Aug 2025 15:06:43 +0800 Subject: [PATCH 01/14] add new samples --- .../batch-inventory/index.css | 158 ++++++++++ .../batch-inventory/index.html | 130 ++++++++ .../pick-one-to-fill/index.css | 112 +++++++ .../pick-one-to-fill/index.html | 113 +++++++ .../use-customized-template/ReadDPM.json | 141 +++++++++ .../use-customized-template/ReadDotcode.json | 130 ++++++++ .../ReadOneDIndustrial.json | 87 ++++++ .../ReadOneDRetail.json | 87 ++++++ .../use-customized-template/index.css | 78 +++++ .../use-customized-template/index.html | 88 ++++++ .../hello-world/angular/package.json | 5 +- .../hello-world/native-ts/package.json | 7 +- .../use-case/read-and-parse-GS1-AI/index.css | 180 +++++++++++ .../use-case/read-and-parse-GS1-AI/index.html | 285 ++++++++++++++++++ .../read_and_parse_gs1.json | 159 ++++++++++ .../read-and-parse-GS1-AI/read_gs1.json | 114 +++++++ 16 files changed, 1871 insertions(+), 3 deletions(-) create mode 100644 barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.css create mode 100644 barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html create mode 100644 barcode-scanner-api-samples/scan-single-barcode/pick-one-to-fill/index.css create mode 100644 barcode-scanner-api-samples/scan-single-barcode/pick-one-to-fill/index.html create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/ReadDPM.json create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/ReadDotcode.json create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/ReadOneDIndustrial.json create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/ReadOneDRetail.json create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/index.css create mode 100644 barcode-scanner-api-samples/scan-single-barcode/use-customized-template/index.html create mode 100644 foundational-api-samples/use-case/read-and-parse-GS1-AI/index.css create mode 100644 foundational-api-samples/use-case/read-and-parse-GS1-AI/index.html create mode 100644 foundational-api-samples/use-case/read-and-parse-GS1-AI/read_and_parse_gs1.json create mode 100644 foundational-api-samples/use-case/read-and-parse-GS1-AI/read_gs1.json diff --git a/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.css b/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.css new file mode 100644 index 00000000..1b2ade23 --- /dev/null +++ b/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.css @@ -0,0 +1,158 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, +body { + width: 100%; + height: 100%; + min-width: 300px; + font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif; +} + +.barcode-reader-view { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; +} + +.summary-view { + width: 100%; + height: 100%; + font-size: 21px; + color: #ffffff; + display: flex; + flex-direction: column; + position: absolute; + display: none; +} + +.summary-view header { + width: 100%; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + position: relative; + background-color: #202020; +} + +.summary-view header .icon-back { + position: absolute; + top: 50%; + left: 20px; + transform: translateY(-50%); + cursor: pointer; +} + +.summary-view .summary-container { + width: 100%; + height: calc(100% - 50px); + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; +} + +.summary-view .total-unique-barcodes-count { + width: 100%; + height: 10%; + max-height: 80px; + min-height: 30px; + border-bottom: 1px solid #CCCCCC; + padding: 0 25px; + font-size: 16px; + color: #323234; + font-weight: 600; + white-space: nowrap; + display: flex; + justify-content: space-between; + align-items: center; +} + +.summary-view .session { + width: 100%; + flex: 1; + padding-left: 25px; + display: flex; + flex-direction: column; + overflow: hidden; +} + +.summary-view .session .total-count-in-this-session { + width: 100%; + height: 10%; + max-height: 70px; + min-height: 30px; + font-size: 16px; + color: #323234; + font-weight: 600; + border-bottom: 1px solid #CCCCCC; + padding-right: 25px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.summary-view .session .code-type-distribution { + width: 100%; + border-bottom: 1px solid #CCCCCC; + display: flex; + flex-direction: column; + flex: 1; + overflow: hidden; +} + +.summary-view .session .code-type-distribution .title { + width: 100%; + height: 8%; + max-height: 70px; + min-height: 30px; + font-size: 16px; + font-weight: 600; + color: #323234; + display: flex; + align-items: center; +} + +.summary-view .session .code-type-distribution .result-list { + color: #323234; + font-size: 16px; + margin-bottom: 10px; + flex: 1; + overflow-y: auto; +} + +.summary-view .session .code-type-distribution .result-list li { + list-style: none; + line-height: 40px; + padding-right: 25px; +} + +.summary-view .session .code-type-distribution .result-list li .decode-count { + float: right; +} + +.summary-view .duration { + width: 100%; + height: 8%; + max-height: 70px; + min-height: 30px; + font-size: 16px; + font-weight: 600; + color: #323234; + padding: 0 25px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.summary-view .duration .time { + float: right; + font-weight: 400; + font-size: 18px; +} \ No newline at end of file diff --git a/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html b/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html new file mode 100644 index 00000000..221ce7a6 --- /dev/null +++ b/barcode-scanner-api-samples/scan-multiple-barcodes/batch-inventory/index.html @@ -0,0 +1,130 @@ + + + +
+ + +