From 088bb0c595ae0dc8ca0046a032fe33b277be8b29 Mon Sep 17 00:00:00 2001 From: xdeq Date: Mon, 19 May 2025 16:23:19 +0300 Subject: [PATCH 01/26] fix(sidebar): gap --- components/LeftSidebar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/LeftSidebar.vue b/components/LeftSidebar.vue index 4b6f398b..c078f38c 100644 --- a/components/LeftSidebar.vue +++ b/components/LeftSidebar.vue @@ -94,7 +94,7 @@ const mainLinks = reactive([ { name: "Ecosystem", path: "/stats?tab=ecosystem", - queryParam: {tab: "ecosystem"}, + queryParam: { tab: "ecosystem" }, show: false, // show: isMainnet(), }, @@ -239,7 +239,7 @@ const handleOnClose = () => { - + Tools Date: Mon, 19 May 2025 16:41:18 +0300 Subject: [PATCH 02/26] feat(BlocksTimelineTable): collapse sidebar --- assets/icons.json | 1 + .../BlocksTimeline/BlocksTimelineTable.vue | 93 +++++++++++++------ 2 files changed, 67 insertions(+), 27 deletions(-) diff --git a/assets/icons.json b/assets/icons.json index 269524e9..b218d387 100644 --- a/assets/icons.json +++ b/assets/icons.json @@ -121,6 +121,7 @@ ], "calc": "M 16.241 2 C 17.046 2 17.711 2 18.251 2.044 C 18.814 2.09 19.331 2.189 19.816 2.436 C 20.569 2.819 21.181 3.431 21.564 4.184 C 21.811 4.669 21.91 5.186 21.956 5.748 C 22 6.29 22 6.954 22 7.758 L 22 16.241 C 22 17.046 22 17.711 21.956 18.251 C 21.91 18.814 21.811 19.331 21.564 19.816 C 21.181 20.569 20.569 21.181 19.816 21.564 C 19.331 21.811 18.814 21.91 18.252 21.956 C 17.711 22 17.046 22 16.242 22 L 7.758 22 C 6.953 22 6.288 22 5.748 21.956 C 5.185 21.91 4.668 21.811 4.183 21.564 C 3.43 21.181 2.818 20.569 2.435 19.816 C 2.188 19.331 2.089 18.814 2.043 18.252 C 2 17.71 2 17.046 2 16.242 L 2 7.758 C 2 6.953 2 6.288 2.044 5.748 C 2.09 5.185 2.189 4.668 2.436 4.183 C 2.819 3.43 3.431 2.818 4.184 2.435 C 4.669 2.188 5.186 2.089 5.748 2.043 C 6.29 2 6.954 2 7.758 2 Z M 7.207 18.207 L 18.207 7.207 C 18.586 6.815 18.581 6.191 18.195 5.805 C 17.809 5.419 17.185 5.414 16.793 5.793 L 5.793 16.793 C 5.533 17.044 5.429 17.416 5.52 17.766 C 5.612 18.115 5.885 18.388 6.234 18.48 C 6.584 18.571 6.956 18.467 7.207 18.207 Z M 9.5 6.5 C 9.5 5.948 9.052 5.5 8.5 5.5 C 7.948 5.5 7.5 5.948 7.5 6.5 L 7.5 7.5 L 6.5 7.5 C 5.948 7.5 5.5 7.948 5.5 8.5 C 5.5 9.052 5.948 9.5 6.5 9.5 L 7.5 9.5 L 7.5 10.5 C 7.5 11.052 7.948 11.5 8.5 11.5 C 9.052 11.5 9.5 11.052 9.5 10.5 L 9.5 9.5 L 10.5 9.5 C 11.052 9.5 11.5 9.052 11.5 8.5 C 11.5 7.948 11.052 7.5 10.5 7.5 L 9.5 7.5 Z M 13.5 16.5 L 17.5 16.5 C 18.052 16.5 18.5 16.052 18.5 15.5 C 18.5 14.948 18.052 14.5 17.5 14.5 L 13.5 14.5 C 12.948 14.5 12.5 14.948 12.5 15.5 C 12.5 16.052 12.948 16.5 13.5 16.5 Z", "calculator": "M 12 22 C 7.286 22 4.929 22 3.464 20.535 C 2 19.072 2 16.714 2 12 C 2 7.286 2 4.929 3.464 3.464 C 4.93 2 7.286 2 12 2 C 16.714 2 19.071 2 20.535 3.464 C 22 4.93 22 7.286 22 12 C 22 16.714 22 19.071 20.535 20.535 C 19.072 22 16.714 22 12 22 Z M 8.75 6.5 C 8.75 6.086 8.414 5.75 8 5.75 C 7.586 5.75 7.25 6.086 7.25 6.5 L 7.25 7.75 L 6 7.75 C 5.586 7.75 5.25 8.086 5.25 8.5 C 5.25 8.914 5.586 9.25 6 9.25 L 7.25 9.25 L 7.25 10.5 C 7.25 10.914 7.586 11.25 8 11.25 C 8.414 11.25 8.75 10.914 8.75 10.5 L 8.75 9.25 L 10 9.25 C 10.414 9.25 10.75 8.914 10.75 8.5 C 10.75 8.086 10.414 7.75 10 7.75 L 8.75 7.75 Z M 14 7.75 C 13.586 7.75 13.25 8.086 13.25 8.5 C 13.25 8.914 13.586 9.25 14 9.25 L 18 9.25 C 18.414 9.25 18.75 8.914 18.75 8.5 C 18.75 8.086 18.414 7.75 18 7.75 Z M 14 13.75 C 13.586 13.75 13.25 14.086 13.25 14.5 C 13.25 14.914 13.586 15.25 14 15.25 L 18 15.25 C 18.414 15.25 18.75 14.914 18.75 14.5 C 18.75 14.086 18.414 13.75 18 13.75 Z M 7.03 13.97 C 6.734 13.695 6.274 13.703 5.988 13.988 C 5.703 14.274 5.695 14.734 5.97 15.03 L 6.94 16 L 5.97 16.97 C 5.769 17.157 5.687 17.439 5.755 17.704 C 5.822 17.97 6.03 18.178 6.296 18.245 C 6.561 18.313 6.843 18.231 7.03 18.03 L 8 17.06 L 8.97 18.03 C 9.157 18.231 9.439 18.313 9.704 18.245 C 9.97 18.178 10.178 17.97 10.245 17.704 C 10.313 17.439 10.231 17.157 10.03 16.97 L 9.06 16 L 10.03 15.03 C 10.231 14.843 10.313 14.561 10.245 14.296 C 10.178 14.03 9.97 13.822 9.704 13.755 C 9.439 13.687 9.157 13.769 8.97 13.97 L 8 14.94 Z M 14 16.75 C 13.586 16.75 13.25 17.086 13.25 17.5 C 13.25 17.914 13.586 18.25 14 18.25 L 18 18.25 C 18.414 18.25 18.75 17.914 18.75 17.5 C 18.75 17.086 18.414 16.75 18 16.75 Z", + "sidebar": "M18 3C18.7652 2.99996 19.5015 3.29233 20.0583 3.81728C20.615 4.34224 20.9501 5.06011 20.995 5.824L21 6V18C21 18.7652 20.7077 19.5015 20.1827 20.0583C19.6578 20.615 18.9399 20.9501 18.176 20.995L18 21H6C5.23479 21 4.49849 20.7077 3.94174 20.1827C3.38499 19.6578 3.04989 18.9399 3.005 18.176L3 18V6C2.99996 5.23479 3.29233 4.49849 3.81728 3.94174C4.34224 3.38499 5.06011 3.04989 5.824 3.005L6 3H18ZM18 5H9V19H18C18.2449 19 18.4813 18.91 18.6644 18.7473C18.8474 18.5845 18.9643 18.3603 18.993 18.117L19 18V6C19 5.75507 18.91 5.51866 18.7473 5.33563C18.5845 5.15259 18.3603 5.03566 18.117 5.007L18 5ZM13.613 9.21L13.707 9.293L15.707 11.293C15.8792 11.4652 15.9826 11.6943 15.9979 11.9373C16.0132 12.1803 15.9393 12.4206 15.79 12.613L15.707 12.707L13.707 14.707C13.527 14.8863 13.2856 14.9905 13.0316 14.9982C12.7777 15.006 12.5303 14.9168 12.3397 14.7488C12.1492 14.5807 12.0297 14.3464 12.0056 14.0935C11.9815 13.8406 12.0546 13.588 12.21 13.387L12.293 13.293L13.585 12L12.293 10.707C12.1208 10.5348 12.0174 10.3057 12.0021 10.0627C11.9868 9.81966 12.0607 9.5794 12.21 9.387L12.293 9.293C12.4652 9.12082 12.6943 9.01739 12.9373 9.00211C13.1803 8.98683 13.4206 9.06075 13.613 9.21Z", "stop-circle": "M 2 12 C 2 6.477 6.477 2 12 2 C 17.523 2 22 6.477 22 12 C 22 17.523 17.523 22 12 22 C 6.477 22 2 17.523 2 12 Z M 8.586 8.586 C 8 9.172 8 10.114 8 12 C 8 13.886 8 14.828 8.586 15.414 C 9.172 16 10.114 16 12 16 C 13.886 16 14.828 16 15.414 15.414 C 16 14.828 16 13.886 16 12 C 16 10.114 16 9.172 15.414 8.586 C 14.828 8 13.886 8 12 8 C 10.114 8 9.172 8 8.586 8.586 Z", "play-circle": "M 2 12 C 2 6.477 6.477 2 12 2 C 17.523 2 22 6.477 22 12 C 22 17.523 17.523 22 12 22 C 6.477 22 2 17.523 2 12 Z M 10.694 15.846 L 15.414 13.059 C 16.195 12.597 16.195 11.403 15.414 10.941 L 10.694 8.154 C 9.934 7.706 9 8.29 9 9.214 L 9 14.787 C 9 15.71 9.934 16.294 10.694 15.846 Z", "alt-arrow-down": "M12.3698 15.835L18.7998 9.205C19.2008 8.79 18.9578 8 18.4298 8H5.56982C5.04182 8 4.79882 8.79 5.19982 9.205L11.6298 15.835C11.8428 16.055 12.1568 16.055 12.3698 15.835Z", diff --git a/components/data/BlocksTimeline/BlocksTimelineTable.vue b/components/data/BlocksTimeline/BlocksTimelineTable.vue index b7a1ba1c..77acb863 100644 --- a/components/data/BlocksTimeline/BlocksTimelineTable.vue +++ b/components/data/BlocksTimeline/BlocksTimelineTable.vue @@ -8,7 +8,7 @@ import Tooltip from "@/components/ui/Tooltip.vue" import AmountInCurrency from "@/components/AmountInCurrency.vue" /** Services */ -import { comma, formatBytes, getNamespaceID, shortHex, space, tia } from "@/services/utils" +import { comma, formatBytes, shortHex, space } from "@/services/utils" /** API */ import { fetchBlockBlobs } from "@/services/api/block" @@ -62,6 +62,9 @@ const handlePause = () => { isPaused.value = !isPaused.value } +const showSidebar = ref(false) +const handleToggleSidebar = () => (showSidebar.value = !showSidebar.value) + watch( () => isPaused.value, () => { @@ -106,9 +109,8 @@ if (Object.keys(lastHead.value).length !== 0 && !lastHead?.value.synced) { watch( () => preview.block, async () => { - if (preview.block.stats.tx_count) { + if (preview.block.stats.tx_count && showSidebar.value) { if (preview.block.stats.blobs_size) preview.isLoadingNamespaces = true - getTransactionsByBlock() } }, @@ -123,13 +125,6 @@ watch( } const data = await fetchBlockBlobs({ height: preview.block.height, limit: 3 }) - // let namespaces = [] - - // data.forEach(blob => { - // namespaces.push(blob.namespace) - // }); - - // preview.namespaces = Array.from(new Map(namespaces.map(item => [item.id, item])).values()); preview.blobs = data preview.isLoadingNamespaces = false @@ -193,6 +188,14 @@ watch( + + + + + + @@ -253,7 +256,13 @@ watch( @@ -139,20 +140,30 @@ const handleClick = () => { } } -.chevron_icon { +.icon { box-sizing: content-box; - border-radius: 5px; padding: 4px; - transition: all 0.2s ease; + &.chevron { + box-sizing: content-box; + border-radius: 5px; - &:hover { - background: var(--op-10); - } + padding: 4px; - & svg { transition: all 0.2s ease; + + &:hover { + background: var(--op-10); + + & svg { + fill: var(--txt-primary); + } + } + + & svg { + transition: all 0.2s ease; + } } } diff --git a/pages/faucet.vue b/pages/faucet.vue index 9580c1f2..e267b2f4 100644 --- a/pages/faucet.vue +++ b/pages/faucet.vue @@ -31,7 +31,8 @@ useHead({ meta: [ { name: "description", - content: "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", + content: + "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", }, { property: "og:title", @@ -39,7 +40,8 @@ useHead({ }, { property: "og:description", - content: "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", + content: + "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", }, { property: "og:url", @@ -55,7 +57,8 @@ useHead({ }, { name: "twitter:description", - content: "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", + content: + "Get free testnet TIA for the Celestia Testnets using the Celenium Faucet. Developers can claim tokens to test dApps, validators, and blockchain tools. Start testing Celestia today!", }, { name: "twitter:card", @@ -72,10 +75,10 @@ const isLoading = ref(false) const address = ref("") const account = ref() const networks = ["Mocha", "Arabica", "Mammoth"] -const network = ref((networks.find(n => n === getNetworkName()) || networks[0]).toLowerCase()) +const network = ref((networks.find((n) => n === getNetworkName()) || networks[0]).toLowerCase()) const isNetworkSelectorOpen = ref(false) -const fetchAccount = async() => { +const fetchAccount = async () => { try { account.value = null const url = new URL(`${Server.API[network.value]}/address/${address.value}`) @@ -84,7 +87,7 @@ const fetchAccount = async() => { fillValidation("error", "Invalid address") return } - + if (!data.value) { fillValidation("warning", "Address not found, make sure it is correct") return @@ -141,20 +144,19 @@ const handleExecute = async () => { const { data, error } = await executeFaucet(network.value, address.value) if (error?.value?.data) { - fillExecutionResult("error", - error.value.statusCode === 429 - ? 'Request limit exceeded' - : error.value?.data?.message || "Unexpected error" + fillExecutionResult( + "error", + error.value.statusCode === 429 ? "Request limit exceeded" : error.value?.data?.message || "Unexpected error", ) } else if (data.value) { - if (data.value?.status === 'success') { + if (data.value?.status === "success") { await refreshFaucetBalance() await fetchAccount() } fillExecutionResult(data.value?.status, data.value?.hash) } - } catch(error) { + } catch (error) { fillExecutionResult("error", error || "Unexpected error") } finally { isLoading.value = false @@ -163,9 +165,9 @@ const handleExecute = async () => { const handleReturnTokensClick = () => { if ( - (useServerURL().includes("mocha") && network.value === "mocha") - || (useServerURL().includes("arabica") && network.value === "arabica") - || (useServerURL().includes("mammoth") && network.value === "mammoth") + (useServerURL().includes("mocha") && network.value === "mocha") || + (useServerURL().includes("arabica") && network.value === "arabica") || + (useServerURL().includes("mammoth") && network.value === "mammoth") ) { cacheStore.current.address = { hash: faucetAddress } modalsStore.open("send") @@ -181,7 +183,7 @@ const handleChangeNetwork = (net) => { const openedQuestion = ref(0) const handleOpenQuestion = (idx) => { const elements = document.querySelectorAll("[class*=answer]") - elements.forEach(el => { + elements.forEach((el) => { el.style.height = "0px" el.style.marginBottom = "0px" }) @@ -221,7 +223,7 @@ watch( clearTimeout(timeout) timeout = setTimeout(async () => { await fetchAccount() - }, 500); + }, 500) }, ) watch( @@ -229,17 +231,20 @@ watch( async () => { address.value = "" await refreshFaucetBalance() - } + }, ) await refreshFaucetBalance() onMounted(() => { - if ((useServerURL().includes('mocha') || useServerURL().includes('arabica') || useServerURL().includes('mammoth')) && appStore.address) { + if ( + (useServerURL().includes("mocha") || useServerURL().includes("arabica") || useServerURL().includes("mammoth")) && + appStore.address + ) { address.value = appStore.address } const transferEl = document.getElementById("transferWindow") - document.documentElement.style.setProperty('--runner-distance', `${transferEl.clientWidth}px`) + document.documentElement.style.setProperty("--runner-distance", `${transferEl.clientWidth}px`) }) @@ -264,7 +269,7 @@ onMounted(() => { - + @@ -288,16 +293,13 @@ onMounted(() => { color="secondary" :style="{ transform: `rotate(${isNetworkSelectorOpen ? '180' : '0'}deg)`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> @@ -336,26 +338,27 @@ onMounted(() => { :loading="isLoading" :disabled="validation.type === 'error' || !address" > - {{ `Recieve ${network === 'mammoth' ? 100 : 1} TIA` }} + {{ `Recieve ${network === "mammoth" ? 100 : 1} TIA` }} - + - + - - Faucet - + Faucet - - {{ comma(tia(faucetBalance, 2)) }} TIA - + {{ comma(tia(faucetBalance, 2)) }} TIA @@ -364,7 +367,7 @@ onMounted(() => { - + @@ -372,11 +375,12 @@ onMounted(() => { - {{ account?.hash - ? $getDisplayName("addresses", "", account) === splitAddress(account?.hash) - ? 'Address' - : $getDisplayName("addresses", "", account) - : 'Address' + {{ + account?.hash + ? $getDisplayName("addresses", "", account) === splitAddress(account?.hash) + ? "Address" + : $getDisplayName("addresses", "", account) + : "Address" }} @@ -386,9 +390,10 @@ onMounted(() => { - {{ (account?.hash || (address && validation.type !== 'error')) - ? splitAddress(account?.hash || address) - : 'celestia ••• celestia' + {{ + account?.hash || (address && validation.type !== "error") + ? splitAddress(account?.hash || address) + : "celestia ••• celestia" }} @@ -409,8 +414,19 @@ onMounted(() => { - - + + View Tx @@ -434,7 +450,7 @@ onMounted(() => { - + Frequently asked questions @@ -449,14 +465,16 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 1 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - The Celestia testnet faucet is a service that provides free testnet tokens for developers and users who want to interact with the Celestia blockchain without spending real assets. These tokens have no monetary value and are solely for testing purposes. + The Celestia testnet faucet is a service that provides free testnet tokens for developers and users who want + to interact with the Celestia blockchain without spending real assets. These tokens have no monetary value + and are solely for testing purposes. @@ -469,14 +487,18 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 2 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - {{ `You can request testnet tokens by entering your Celestia testnet address, and clicking the "Receive ${network === 'mammoth' ? 100 : 1} TIA" button. Tokens will be sent to your wallet within a few moments.` }} + {{ + `You can request testnet tokens by entering your Celestia testnet address, and clicking the "Receive ${ + network === "mammoth" ? 100 : 1 + } TIA" button. Tokens will be sent to your wallet within a few moments.` + }} @@ -489,16 +511,18 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 3 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - To ensure fair distribution and prevent abuse, the faucet has the following limitations:
-   • You can receive 100 TIA for Mammoth network and 1 TIA for other testnets per request.
-   • You can request tokens only once per hour per IP address or wallet address.
+ To ensure fair distribution and prevent abuse, the faucet has the following limitations:
+   • You can receive + 100 TIA for Mammoth network and 1 TIA for other testnets per request.
+   • You can request tokens only once per hour per + IP address or wallet address.
  • If you reach the limit, you will need to wait before requesting again.
@@ -512,16 +536,16 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 4 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" />
- If you haven't received your tokens:
-   • Double-check that you entered the correct Celestia address.
-   • Ensure you are using one of supported networks.
+ If you haven't received your tokens:
+   • Double-check that you entered the correct Celestia address.
+   • Ensure you are using one of supported networks.
  • If the issue persists, contact support.
@@ -535,14 +559,15 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 5 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - No, testnet tokens are only for testing on the Celestia testnets. They cannot be transferred or used on the Celestia mainnet. + No, testnet tokens are only for testing on the Celestia testnets. They cannot be transferred or used on the + Celestia mainnet. @@ -555,14 +580,15 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 6 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - If you run out of testnet tokens, you can request more from the faucet (subject to request limits). You may also check community channels for alternative ways to obtain test tokens. + If you run out of testnet tokens, you can request more from the faucet (subject to request limits). You may + also check community channels for alternative ways to obtain test tokens. @@ -575,18 +601,17 @@ onMounted(() => { color="tertiary" :style="{ transform: `rotate(${openedQuestion === 7 ? '180deg' : '0deg'})`, - transition: 'all 0.2s ease' + transition: 'all 0.2s ease', }" /> - If you no longer need the testnet tokens, please return them to the faucet so that other developers and testers can use them. You can send them back to the -
- faucet - - .
+ If you no longer need the testnet tokens, please return them to the faucet so that other developers and + testers can use them. You can send them back to the + faucet + .
Your contribution helps keep the testnet accessible for everyone! @@ -731,7 +756,7 @@ onMounted(() => { padding-left: 5px; padding-right: 5px; font-size: small; - font-family: 'Courier New', Courier, monospace; + font-family: "Courier New", Courier, monospace; background-color: #2d2d2d; border-radius: 4px; } From 509ec449f1d4bdcbe2431af811a42a89b2e4d5ca Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 19 May 2025 21:05:24 +0200 Subject: [PATCH 05/26] Fix sidebar jumping, long constant, transactions widget --- components/Feed.vue | 1 + .../BlocksTimeline/BlocksTimelineTable.vue | 2 +- components/modals/ConstantsModal.vue | 8 +++++++- components/widgets/TransactionsWidget.vue | 19 +++++++++++-------- layouts/default.vue | 4 +++- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/components/Feed.vue b/components/Feed.vue index 97fce880..bf111b3d 100644 --- a/components/Feed.vue +++ b/components/Feed.vue @@ -231,6 +231,7 @@ onMounted(async () => { diff --git a/components/TheHeader.vue b/components/TheHeader.vue deleted file mode 100644 index aadf51fb..00000000 --- a/components/TheHeader.vue +++ /dev/null @@ -1,382 +0,0 @@ - - - - - diff --git a/components/cmd/actions.js b/components/cmd/actions.js deleted file mode 100644 index e69de29b..00000000 diff --git a/components/modals/ConnectModal.vue b/components/modals/ConnectModal.vue index 6c255820..9b91410f 100644 --- a/components/modals/ConnectModal.vue +++ b/components/modals/ConnectModal.vue @@ -5,7 +5,7 @@ import Button from "@/components/ui/Button.vue" import Tooltip from "@/components/ui/Tooltip.vue" /** Utils */ -import { connect, syncBalance, getAccounts, disconnect } from "~/services/wallet" +import { connect, syncBalance, getAccounts } from "@/services/wallet" import { getNetworkName, isMainnet } from "@/services/utils/general" import amp from "@/services/amp" @@ -93,7 +93,7 @@ const handleConnect = async (target) => { Terms of Use - and + and Privacy Policy @@ -128,7 +128,13 @@ const handleConnect = async (target) => {
- + Leap Wallet @@ -146,8 +152,8 @@ const handleConnect = async (target) => { !isMainnet() ? "Temporarily unavailable for test networks." : hasLeap - ? "Leap is found in your extensions and ready to connect." - : "Leap is not found in your extensions, install it." + ? "Leap is found in your extensions and ready to connect." + : "Leap is not found in your extensions, install it." }} diff --git a/components/modals/PayForBlobModal.vue b/components/modals/PayForBlobModal.vue index b3d4a627..15765b46 100644 --- a/components/modals/PayForBlobModal.vue +++ b/components/modals/PayForBlobModal.vue @@ -10,7 +10,7 @@ import { fetchEstimatedGas } from "@/services/api/gas" /** Services */ import amp from "@/services/amp" import { getNamespaceID } from "@/services/utils" -import { sendPayForBlob } from "~/services/wallet" +import { sendPayForBlob } from "@/services/wallet" import { prepareBlob } from "@/services/utils/encode" /** Store */ @@ -171,7 +171,7 @@ const handleContinue = async () => { type: "warning", icon: "danger", title: `Looks like your account is fresh`, - description: 'Top up your balance to submit the blob', + description: "Top up your balance to submit the blob", autoDestroy: true, }, }) diff --git a/components/modals/SendModal.vue b/components/modals/SendModal.vue index 367f575c..61bc14a4 100644 --- a/components/modals/SendModal.vue +++ b/components/modals/SendModal.vue @@ -14,7 +14,7 @@ import { search } from "@/services/api/search" /** Services */ import amp from "@/services/amp" import { normalizeAmount, purgeNumber, comma } from "@/services/utils/amounts" -import { SIMULATE_ADDRESS_FROM, SIMULATE_ADDRESS_TO, simulateMsgs, sendMsgs } from "~/services/wallet" +import { SIMULATE_ADDRESS_FROM, SIMULATE_ADDRESS_TO, simulateMsgs, sendMsgs } from "@/services/wallet" import { MsgSend } from "@/services/proto/gen/msg_send" /** Store */ @@ -162,7 +162,12 @@ watch( const calcGasFee = (target) => { const gasLimit = typeof estimatedGasLimit.value === "number" ? estimatedGasLimit.value : estimatedGasLimit.value.replaceAll(" ", "") - return comma(((selectedGasLimit.value === 'Custom' ? Number.parseInt(customGasLimit.value.toString().replaceAll(" ", "")) : gasLimit) * appStore.gas[target.toLowerCase()]).toFixed(2)) + return comma( + ( + (selectedGasLimit.value === "Custom" ? Number.parseInt(customGasLimit.value.toString().replaceAll(" ", "")) : gasLimit) * + appStore.gas[target.toLowerCase()] + ).toFixed(2), + ) } const runGasLimitEstimation = async () => { @@ -186,7 +191,7 @@ const runGasLimitEstimation = async () => { [protoMsgs], [{ denom: "utia", amount: "1" }], ) - + estimatedGasLimit.value = parseInt(gasUsed) } @@ -702,4 +707,3 @@ const handleContinue = async () => { padding: 0 16px; } -~/services/proto/gen/msg_send diff --git a/components/modals/StakingModal.vue b/components/modals/StakingModal.vue index b6cd3217..f9ffa6b7 100644 --- a/components/modals/StakingModal.vue +++ b/components/modals/StakingModal.vue @@ -14,7 +14,7 @@ import { search } from "@/services/api/search" /** Services */ import amp from "@/services/amp" import { normalizeAmount, purgeNumber, comma } from "@/services/utils/amounts" -import { SIMULATE_ADDRESS_FROM, SIMULATE_VALIDATOR, simulateMsgs, sendMsgs } from "~/services/wallet" +import { SIMULATE_ADDRESS_FROM, SIMULATE_VALIDATOR, simulateMsgs, sendMsgs } from "@/services/wallet" import { MsgDelegate } from "@/services/proto/gen/staking" /** Store */ @@ -698,4 +698,3 @@ const handleContinue = async () => { padding: 0 16px; } -~/services/proto/gen/msg_send diff --git a/components/modules/namespace/NamespaceOverview.vue b/components/modules/namespace/NamespaceOverview.vue index d4b4afcd..87739505 100644 --- a/components/modules/namespace/NamespaceOverview.vue +++ b/components/modules/namespace/NamespaceOverview.vue @@ -1,9 +1,8 @@ -import { getNamespaceID } from '~/services/utils';