From 709eaacadb9dfe2db87d91e1fa77eba6b0c66ded Mon Sep 17 00:00:00 2001 From: Ilia Miheev Date: Sat, 20 Jun 2026 15:20:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D1=81=D0=B5=D1=80?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=B0=20=D0=B8=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20QR-=D0=BA=D0=BE=D0=B4=D0=B0.=20=D0=9E=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=81=D1=82=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B0=D0=B4=D0=B0=D0=BF=D1=82?= =?UTF-8?q?=D0=B8=D0=B2=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D1=8B=D0=B5=20=D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BD=D0=BE=D0=BF?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 42 ++++--- src/assets/style.css | 220 ++++++++++++++++++++++++++++------- src/composables/useQrCode.js | 32 +++-- vite.config.js | 3 + 4 files changed, 223 insertions(+), 74 deletions(-) diff --git a/src/App.vue b/src/App.vue index b2626b1..4cbff0a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,8 @@ const { textInput, error, errorColor, - hasQr, + qrReady, + showModal, qrCanvasRef, qrFrameRef, generateQR, @@ -26,12 +27,12 @@ const statusClass = computed(() => ) function onKeydown(event) { - if (event.key === 'Escape' && hasQr.value) { + if (event.key === 'Escape' && showModal.value) { closeQrModal() } } -watch(hasQr, (open) => { +watch(showModal, (open) => { document.body.style.overflow = open ? 'hidden' : '' }) @@ -84,12 +85,19 @@ onUnmounted(() => {
- +
@@ -98,23 +106,23 @@ onUnmounted(() => {
- - - iQR - — qr-код без излишеств - + + iQR + — qr-код без излишеств + +