Skip to content

Commit

Permalink
chore: add QR code component
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jan 8, 2024
1 parent 5593e06 commit 9492289
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 6 deletions.
16 changes: 16 additions & 0 deletions layer/components/QRCode.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script setup lang="ts">
import { useQRCode } from '@vueuse/integrations/useQRCode'
const props = defineProps({
text: {
type: String,
required: true
}
})
const qrcode = useQRCode(props.text)
</script>

<template>
<img :src="qrcode" alt="QR Code" />
</template>
11 changes: 6 additions & 5 deletions layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@
"@injectivelabs/token-metadata": "1.14.5-beta.37",
"@injectivelabs/utils": "1.14.5-beta.4",
"@injectivelabs/wallet-ts": "1.14.5-beta.62",
"@vueuse/integrations": "^10.7.1",
"floating-vue": "2.0.0-beta.24",
"vue-gtag": "^2.0.1",
"vue-hotjar": "^1.4.0"
},
"devDependencies": {
"@bangjelkoski/vite-plugin-node-polyfills": "^0.0.2",
"nuxt": "3.8.1",
"git-clone": "^0.2.0",
"@pinia/nuxt": "^0.4.11",
"typescript": "^4.9.3",
"eslint": "^8.28.0",
"@nuxt/eslint-config": "^0.1.1",
"@pinia/nuxt": "^0.4.11",
"@types/fs-extra": "^11.0.1",
"eslint": "^8.28.0",
"git-clone": "^0.2.0",
"nuxt": "3.8.1",
"typescript": "^4.9.3",
"vite-tsconfig-paths": "^4.2.0"
}
}
38 changes: 37 additions & 1 deletion layer/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3807,6 +3807,11 @@
resolved "https://registry.yarnpkg.com/@types/w3c-web-usb/-/w3c-web-usb-1.0.10.tgz#cf89cccd2d93b6245e784c19afe0a9f5038d4528"
integrity sha512-CHgUI5kTc/QLMP8hODUHhge0D4vx+9UiAwIGiT0sTy/B2XpdX1U5rJt6JSISgr6ikRT7vxV9EVAFeYZqUnl1gQ==

"@types/web-bluetooth@^0.0.20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz#f066abfcd1cbe66267cdbbf0de010d8a41b41597"
integrity sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==

"@types/web@^0.0.119":
version "0.0.119"
resolved "https://registry.yarnpkg.com/@types/web/-/web-0.0.119.tgz#848ae9b66608acd257b603b3e716fe5ffc9de8a8"
Expand Down Expand Up @@ -4107,6 +4112,37 @@
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.10.tgz#1583a8d85a957d8b819078c465d2a11db7914b2f"
integrity sha512-2y3Y2J1a3RhFa0WisHvACJR2ncvWiVHcP8t0Inxo+NKz+8RKO4ZV8eZgCxRgQoA6ITfV12L4E6POOL9HOU5nqw==

"@vueuse/[email protected]":
version "10.7.1"
resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-10.7.1.tgz#b4bfe3355dbb0ec17d34d737385e1c8a0156ccf1"
integrity sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==
dependencies:
"@types/web-bluetooth" "^0.0.20"
"@vueuse/metadata" "10.7.1"
"@vueuse/shared" "10.7.1"
vue-demi ">=0.14.6"

"@vueuse/integrations@^10.7.1":
version "10.7.1"
resolved "https://registry.yarnpkg.com/@vueuse/integrations/-/integrations-10.7.1.tgz#c16676744bf5f0a764eea9517c78d882988cf5f7"
integrity sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==
dependencies:
"@vueuse/core" "10.7.1"
"@vueuse/shared" "10.7.1"
vue-demi ">=0.14.6"

"@vueuse/[email protected]":
version "10.7.1"
resolved "https://registry.yarnpkg.com/@vueuse/metadata/-/metadata-10.7.1.tgz#190a8d0e97216941cc95120c89dfa2c4228b2a53"
integrity sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==

"@vueuse/[email protected]":
version "10.7.1"
resolved "https://registry.yarnpkg.com/@vueuse/shared/-/shared-10.7.1.tgz#b9892fc31784d685619015fba287cde53873485d"
integrity sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==
dependencies:
vue-demi ">=0.14.6"

"@wallet-standard/base@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@wallet-standard/base/-/base-1.0.1.tgz#860dd94d47c9e3c5c43b79d91c6afdbd7a36264e"
Expand Down Expand Up @@ -11415,7 +11451,7 @@ vue-bundle-renderer@^2.0.0:
dependencies:
ufo "^1.2.0"

vue-demi@>=0.14.5:
vue-demi@>=0.14.5, vue-demi@>=0.14.6:
version "0.14.6"
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.14.6.tgz#dc706582851dc1cdc17a0054f4fec2eb6df74c92"
integrity sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==
Expand Down

0 comments on commit 9492289

Please sign in to comment.