- Download qr-code
+ Download qr-code ({{ outputType.toString().toUpperCase() }})
+
+
+
+
+ Small Terminal
+
+
+
+
diff --git a/src/tools/qr-code-generator/qrcode-terminal-nooctal.d.ts b/src/tools/qr-code-generator/qrcode-terminal-nooctal.d.ts
new file mode 100644
index 00000000..900bed65
--- /dev/null
+++ b/src/tools/qr-code-generator/qrcode-terminal-nooctal.d.ts
@@ -0,0 +1,5 @@
+declare module 'qrcode-terminal-nooctal' {
+ export const error: 0 | 1 | 2 | 3;
+export function generate(input: string, opts?: { small: boolean }, callback?: (qrcode: string) => void): void;
+export function setErrorLevel(error: "L" | "M" | "Q" | "H"): void;
+}
\ No newline at end of file
diff --git a/src/tools/qr-code-generator/useQRCode.ts b/src/tools/qr-code-generator/useQRCode.ts
index 5aa54500..5f7df0d0 100644
--- a/src/tools/qr-code-generator/useQRCode.ts
+++ b/src/tools/qr-code-generator/useQRCode.ts
@@ -1,33 +1,182 @@
import { type MaybeRef, get } from '@vueuse/core';
-import QRCode, { type QRCodeErrorCorrectionLevel, type QRCodeToDataURLOptions } from 'qrcode';
+import QRCode, { type QRCodeDataURLType, type QRCodeErrorCorrectionLevel, type QRCodeRenderersOptions, type QRCodeStringType } from 'qrcode';
import { isRef, ref, watch } from 'vue';
+import type {
+ CornerDotType,
+ CornerSquareType,
+ DotType,
+ DrawType,
+ ErrorCorrectionLevel,
+ FileExtension,
+ Mode,
+ TypeNumber,
+} from 'pp-qr-code';
+import QRCodeStyling from 'pp-qr-code';
-export function useQRCode({
+function blobToBase64(blob: Blob | null): Promise