From db5a30a9bf57d7e44239e8c2792c07c0cc7f798c Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Tue, 14 Oct 2025 10:12:08 +0800 Subject: [PATCH] Added qr code on pdf --- package.json | 1 + pnpm-lock.yaml | 64 +++++++++++++++----------------------------------- 2 files changed, 20 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 1b1ae89..41c894b 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "ofetch": "^1.4.1", "openssl-nodejs": "^1.0.5", "pica": "^9.0.1", + "qrcode": "^1.5.4", "sharp": "^0.34.4", "solid-icons": "^1.1.0", "solid-js": "^1.9.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3938916..50c3ce6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ importers: pica: specifier: ^9.0.1 version: 9.0.1 + qrcode: + specifier: ^1.5.4 + version: 1.5.4 sharp: specifier: ^0.34.4 version: 0.34.4 @@ -2628,13 +2631,11 @@ snapshots: dependencies: event-target-shim: 5.0.1 - ansi-regex@5.0.1: - optional: true + ansi-regex@5.0.1: {} ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 - optional: true any-base@1.1.0: {} @@ -2686,8 +2687,7 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - camelcase@5.3.1: - optional: true + camelcase@5.3.1: {} caniuse-lite@1.0.30001743: {} @@ -2713,15 +2713,12 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 wrap-ansi: 6.2.0 - optional: true color-convert@2.0.1: dependencies: color-name: 1.1.4 - optional: true - color-name@1.1.4: - optional: true + color-name@1.1.4: {} colorjs.io@0.5.2: {} @@ -2747,8 +2744,7 @@ snapshots: dependencies: ms: 2.1.3 - decamelize@1.2.0: - optional: true + decamelize@1.2.0: {} destr@2.0.5: {} @@ -2757,8 +2753,7 @@ snapshots: detect-libc@2.1.0: {} - dijkstrajs@1.0.3: - optional: true + dijkstrajs@1.0.3: {} dompurify@3.2.7: optionalDependencies: @@ -2767,8 +2762,7 @@ snapshots: electron-to-chromium@1.5.222: {} - emoji-regex@8.0.0: - optional: true + emoji-regex@8.0.0: {} entities@6.0.1: {} @@ -2838,15 +2832,13 @@ snapshots: dependencies: locate-path: 5.0.0 path-exists: 4.0.0 - optional: true fsevents@2.3.3: optional: true gensync@1.0.0-beta.2: {} - get-caller-file@2.0.5: - optional: true + get-caller-file@2.0.5: {} gifwrap@0.10.1: dependencies: @@ -2880,8 +2872,7 @@ snapshots: is-extglob@2.1.1: optional: true - is-fullwidth-code-point@3.0.0: - optional: true + is-fullwidth-code-point@3.0.0: {} is-glob@4.0.3: dependencies: @@ -2949,7 +2940,6 @@ snapshots: locate-path@5.0.0: dependencies: p-locate: 4.1.0 - optional: true lru-cache@5.1.1: dependencies: @@ -3000,15 +2990,12 @@ snapshots: p-limit@2.3.0: dependencies: p-try: 2.2.0 - optional: true p-locate@4.1.0: dependencies: p-limit: 2.3.0 - optional: true - p-try@2.2.0: - optional: true + p-try@2.2.0: {} pako@1.0.11: {} @@ -3027,8 +3014,7 @@ snapshots: dependencies: entities: 6.0.1 - path-exists@4.0.0: - optional: true + path-exists@4.0.0: {} peek-readable@4.1.0: {} @@ -3053,8 +3039,7 @@ snapshots: dependencies: pngjs: 6.0.0 - pngjs@5.0.0: - optional: true + pngjs@5.0.0: {} pngjs@6.0.0: {} @@ -3073,7 +3058,6 @@ snapshots: dijkstrajs: 1.0.3 pngjs: 5.0.0 yargs: 15.4.1 - optional: true raf@3.4.1: dependencies: @@ -3098,11 +3082,9 @@ snapshots: regenerator-runtime@0.13.11: optional: true - require-directory@2.1.1: - optional: true + require-directory@2.1.1: {} - require-main-filename@2.0.0: - optional: true + require-main-filename@2.0.0: {} rgbcolor@1.0.1: optional: true @@ -3250,8 +3232,7 @@ snapshots: seroval@1.3.2: {} - set-blocking@2.0.0: - optional: true + set-blocking@2.0.0: {} sharp@0.34.4: dependencies: @@ -3330,7 +3311,6 @@ snapshots: emoji-regex: 8.0.0 is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 - optional: true string_decoder@1.3.0: dependencies: @@ -3339,7 +3319,6 @@ snapshots: strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 - optional: true strtok3@6.3.0: dependencies: @@ -3450,15 +3429,13 @@ snapshots: webworkify@1.5.0: {} - which-module@2.0.1: - optional: true + which-module@2.0.1: {} wrap-ansi@6.2.0: dependencies: ansi-styles: 4.3.0 string-width: 4.2.3 strip-ansi: 6.0.1 - optional: true xml-parse-from-string@1.0.1: {} @@ -3469,8 +3446,7 @@ snapshots: xmlbuilder@11.0.1: {} - y18n@4.0.3: - optional: true + y18n@4.0.3: {} yallist@3.1.1: {} @@ -3478,7 +3454,6 @@ snapshots: dependencies: camelcase: 5.3.1 decamelize: 1.2.0 - optional: true yargs@15.4.1: dependencies: @@ -3493,6 +3468,5 @@ snapshots: which-module: 2.0.1 y18n: 4.0.3 yargs-parser: 18.1.3 - optional: true zod@3.25.76: {}