diff --git a/.env.production b/.env.production index 5010b465..0200cfbd 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VUE_APP_MODE=production VUE_APP_SENTRY_SAMPLE_RATE=0.95 VUE_APP_SENTRY_DSN=https://f08dc5725ef448ba9960e5d8ec4f8a3c@o503538.ingest.sentry.io/6125850 VUE_APP_SOLANA_BUILD_VERSION=0.1 -VUE_APP_GA_ID=G-RCNKR0V6N2 +VUE_APP_GA_ID=GTM-RCNKR0V6N2 VUE_APP_DEVELOPER_DASHBOARD_URL="https://api.developer.tor.us" VUE_APP_IMGPROXY_URL=https://img-cdn.magiceden.dev # this signature is for solana.tor.us diff --git a/.env.testing b/.env.testing index f27acb35..dc865b77 100644 --- a/.env.testing +++ b/.env.testing @@ -8,7 +8,7 @@ STATE_DOMAIN=https://solana-openlogin-state.tor.us VUE_APP_SENTRY_SAMPLE_RATE=0.95 VUE_APP_SENTRY_DSN=https://f08dc5725ef448ba9960e5d8ec4f8a3c@o503538.ingest.sentry.io/6125850 VUE_APP_SOLANA_BUILD_VERSION=0.1 -VUE_APP_GA_ID=G-LQ8G005HR9 +VUE_APP_GA_ID=GTM-LQ8G005HR9 BROWSERSTACK_USERNAME= BROWSERSTACK_ACCESS_KEY= VUE_APP_DEVELOPER_DASHBOARD_URL="https://api.developer.tor.us" diff --git a/package-lock.json b/package-lock.json index d42a6477..d16eefc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53,6 +53,7 @@ "json-stable-stringify": "^1.0.2", "lodash-es": "^4.17.21", "loglevel": "^1.8.1", + "node-fetch": "^3.3.2", "pump": "^3.0.0", "qr-scanner": "^1.4.2", "readable-stream": "^4.4.2", @@ -10361,6 +10362,14 @@ "node": ">=8" } }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "engines": { + "node": ">= 12" + } + }, "node_modules/data-urls": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz", @@ -12618,6 +12627,28 @@ "node": ">=0.8.0" } }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, "node_modules/figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", @@ -13063,6 +13094,17 @@ "node": ">= 6" } }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -17196,6 +17238,41 @@ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", @@ -22764,6 +22841,14 @@ "defaults": "^1.0.3" } }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", diff --git a/package.json b/package.json index b303abcc..b96bf658 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,8 @@ "@toruslabs/openlogin": "^4.7.0", "@toruslabs/openlogin-ed25519": "^2.0.0", "@toruslabs/openlogin-jrpc": "^4.7.0", - "@toruslabs/openlogin-utils": "^4.7.0", "@toruslabs/openlogin-subkey": "^4.2.0", + "@toruslabs/openlogin-utils": "^4.7.0", "@toruslabs/solana-controllers": "^3.0.3", "@toruslabs/tweetnacl-js": "^1.0.4", "@toruslabs/vue-components": "^2.0.1", @@ -64,6 +64,7 @@ "json-stable-stringify": "^1.0.2", "lodash-es": "^4.17.21", "loglevel": "^1.8.1", + "node-fetch": "^3.3.2", "pump": "^3.0.0", "qr-scanner": "^1.4.2", "readable-stream": "^4.4.2", diff --git a/src/components/TokenBalance.vue b/src/components/TokenBalance.vue index 1a16297c..af6d53c7 100644 --- a/src/components/TokenBalance.vue +++ b/src/components/TokenBalance.vue @@ -1,13 +1,13 @@ diff --git a/src/components/frame/PopupLogin.vue b/src/components/frame/PopupLogin.vue index b5671097..8929f8f6 100755 --- a/src/components/frame/PopupLogin.vue +++ b/src/components/frame/PopupLogin.vue @@ -3,7 +3,6 @@ import { Dialog, DialogOverlay, DialogTitle, TransitionChild, TransitionRoot } f import { XIcon } from "@heroicons/vue/solid"; import { LOGIN_PROVIDER } from "@toruslabs/openlogin-utils"; import { ref } from "vue"; -import { useI18n } from "vue-i18n"; import TorusLogoURL from "@/assets/torus-logo.svg"; import TorusLogoLightURL from "@/assets/torus-logo-light.svg"; @@ -25,8 +24,6 @@ withDefaults( } ); -const { t } = useI18n(); - const emits = defineEmits(["onClose", "onLogin"]); const closeModal = () => { @@ -73,7 +70,7 @@ const refDiv = ref(null); " > -

{{ t("login.setupWallet") }}

+

{{ $t("login.setupWallet") }}

-

{{ t("login.poweredBy") }}

+

{{ $t("login.poweredBy") }}

@@ -95,7 +92,7 @@ const refDiv = ref(null); />
- {{ t("dappLogin.poweredBy") }} + {{ $t("dappLogin.poweredBy") }} Torus Logo {{ - t("login.differentWallet") + $t("login.differentWallet") }}
diff --git a/src/components/frame/PopupWidget.vue b/src/components/frame/PopupWidget.vue index fc6614f4..3819a546 100755 --- a/src/components/frame/PopupWidget.vue +++ b/src/components/frame/PopupWidget.vue @@ -1,10 +1,10 @@