From 376fbe4aa8d7ec791b7e89b6c0e593f0063ae637 Mon Sep 17 00:00:00 2001 From: Uzeyir Destan Date: Wed, 26 Jun 2024 02:08:05 +0300 Subject: [PATCH 1/2] Updated import function --- src/router.ts | 6 ++ src/views/Info.vue | 3 + src/views/Print.vue | 178 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 187 insertions(+) create mode 100644 src/views/Print.vue diff --git a/src/router.ts b/src/router.ts index 1720368..b048d45 100644 --- a/src/router.ts +++ b/src/router.ts @@ -4,6 +4,7 @@ import Router from "vue-router"; import Info from "./views/Info.vue"; import Share from "./views/Share.vue"; import Combine from "./views/Combine.vue"; +import Print from "./views/Print.vue"; Vue.use(Router); @@ -23,6 +24,11 @@ export default new Router({ path: "/combine", name: "combine", component: Combine + }, + { + path: "/print", + name: "print", + component: Print } ] }); diff --git a/src/views/Info.vue b/src/views/Info.vue index 7331156..c2825a4 100644 --- a/src/views/Info.vue +++ b/src/views/Info.vue @@ -9,6 +9,9 @@ Restore + + Print + diff --git a/src/views/Print.vue b/src/views/Print.vue new file mode 100644 index 0000000..6852e81 --- /dev/null +++ b/src/views/Print.vue @@ -0,0 +1,178 @@ + + + + + From d86f1aa422c067d2f6deae9ff56c04e8a88e2338 Mon Sep 17 00:00:00 2001 From: Uzeyir Destan Date: Wed, 26 Jun 2024 02:55:13 +0300 Subject: [PATCH 2/2] Removed mismatch check --- src/views/Print.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/views/Print.vue b/src/views/Print.vue index 6852e81..a207e74 100644 --- a/src/views/Print.vue +++ b/src/views/Print.vue @@ -137,13 +137,6 @@ export default Vue.extend({ } else { this.nonce = parsed.nonce; } - if ( - this.requiredShards && - this.requiredShards < (parsed.requiredShards*2)-1 - ) { - this.$eventHub.$emit("showError", "Mismatch on the parsed QR Count"); - return; - } this.qrCodes.add(result); this.shards.push(parsed); },