Skip to content

Commit 46bfd33

Browse files
committed
Merge branch 'dev' of github.com:celenium-io/celenium-interface into dev
2 parents 369a8fa + 27b8c86 commit 46bfd33

File tree

21 files changed

+2194
-65
lines changed

21 files changed

+2194
-65
lines changed

.github/workflows/license.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
17-
- run: yarn --frozen-lockfile --production
16+
- uses: actions/checkout@v3
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v2
1819
- uses: daynin/[email protected]
1920
with:
2021
exclude-private-packages: true

assets/icons.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,6 @@
115115
"path": "M22.1139 13.4012C22.3754 13.3074 22.5062 13.2605 22.646 13.1409C22.7507 13.0512 22.8744 12.8779 22.9252 12.7498C22.993 12.5787 22.995 12.4355 22.9988 12.149C23.0374 9.28438 21.9638 6.40761 19.778 4.22185C17.5923 2.03611 14.7154 0.962459 11.8509 1.00101C11.5644 1.00491 11.4211 1.00679 11.25 1.07461C11.1219 1.12539 10.9486 1.24917 10.859 1.35383C10.7393 1.4936 10.6925 1.62442 10.5987 1.88593C9.46043 5.06163 10.1632 8.74917 12.7069 11.2929C15.2506 13.8366 18.9382 14.5394 22.1139 13.4012Z",
116116
"opacity": 0.5
117117
}
118-
]
118+
],
119+
"package": "m10.558 22.234c-0.16 0.0187-0.3549-0.0895-0.74462-0.3059-1.6664-0.9253-4.695-2.6071-6.4762-3.5967l-0.06317-0.0348c-0.23113-0.1274-0.52173-0.2874-0.74489-0.5296-0.19295-0.2094-0.33897-0.4575-0.4283-0.7279-0.10332-0.3127-0.10211-0.6445-0.10115-0.9083l1.8e-4 -0.0722c0-1.963 0.00254-5.3023 0.0041-7.1685 3.8e-4 -0.44834 5.6e-4 -0.67251 0.09511-0.8034 0.08247-0.11418 0.20931-0.18829 0.34928-0.20408 0.16045-0.01809 0.35621 0.09203 0.74775 0.31227l7.396 4.1603c0.1485 0.0835 0.2227 0.1253 0.2767 0.1844 0.0478 0.0522 0.084 0.114 0.1061 0.1813 0.025 0.0761 0.025 0.1612 0.025 0.3316v8.1752c0 0.4472 0 0.6708-0.094 0.8016-0.0821 0.1141-0.2083 0.1884-0.3479 0.2047zm11.437-13.344c-4e-4 -0.44833-6e-4 -0.67249-0.0951-0.80338-0.0825-0.11419-0.2093-0.1883-0.3493-0.20408-0.1604-0.0181-0.3562 0.09202-0.7477 0.31226l-7.396 4.1603c-0.1485 0.0835-0.2227 0.1253-0.2767 0.1843-0.0478 0.0523-0.084 0.1141-0.1061 0.1814-0.025 0.076-0.025 0.1612-0.025 0.3315v8.1753c0 0.4472 0 0.6708 0.094 0.8016 0.0821 0.1141 0.2083 0.1884 0.3479 0.2047 0.16 0.0187 0.3549-0.0895 0.7446-0.3059 1.6663-0.9253 4.695-2.6071 6.4762-3.5967l0.0631-0.0348c0.2311-0.1273 0.5218-0.2874 0.7449-0.5296 0.193-0.2094 0.339-0.4575 0.4283-0.7279 0.1034-0.3127 0.1021-0.6445 0.1012-0.9083l-2e-4 -0.0722c0-1.963-0.0025-5.3023-0.0041-7.1685zm-6.6793 0.09647-8.9752-4.9862c-0.75973 0.42226-1.4682 0.81608-2.031 1.1289-0.40825 0.22692-0.61237 0.34039-0.68058 0.49034-0.05947 0.13073-0.05985 0.28072-0.00105 0.41175 0.06746 0.1503 0.27118 0.2649 0.67862 0.49408l7.3001 4.1064c0.143 0.0804 0.2146 0.1207 0.2904 0.1365 0.0671 0.0139 0.1364 0.0139 0.2035 0 0.0759-0.0158 0.1474-0.0561 0.2905-0.1365zm-2.9137-7.8015c-0.2658-0.05467-0.54-0.05467-0.8058 0-0.3073 0.06319-0.5819 0.21702-0.8003 0.33931l-0.0595 0.03325c-0.654 0.36336-1.4759 0.82007-2.3369 1.2986l8.9628 4.9794 2.3291-1.3101c0.4074-0.22919 0.6112-0.34378 0.6786-0.49408 0.0588-0.13103 0.0584-0.28102-1e-3 -0.41175-0.0682-0.14996-0.2724-0.26342-0.6806-0.49035-1.6814-0.9346-4.6637-2.5922-6.4266-3.5716l-0.0595-0.03325c-0.2184-0.12229-0.493-0.27612-0.8003-0.33931z"
119120
}

components/TheFooter.vue

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,31 +64,39 @@ const handleChangeTheme = (theme) => {
6464
<Flex align="center" gap="8">
6565
<Icon name="logo" size="14" color="tertiary" />
6666
<Text size="13" weight="500" color="secondary">Celenium</Text>
67-
<Text size="13" weight="500" color="tertiary">- Celestia Explorer, {{ new Date().getFullYear() }}</Text>
68-
</Flex>
69-
70-
<Flex align="center" gap="16">
67+
<Text size="13" weight="500" color="tertiary">-</Text>
68+
<Text size="13" weight="500" color="tertiary">Celestia Explorer</Text>
7169
<a :href="`https://github.com/celenium-io/celenium-interface/releases/tag/v${appConfig.version}`" target="_blank">
7270
<Flex>
73-
<Text size="12" weight="600" color="support">
74-
Version <Text color="tertiary">{{ appConfig.version }}</Text>
75-
</Text>
71+
<Text size="13" weight="500" color="support">v</Text>
72+
<Text size="13" weight="500" color="tertiary">{{ appConfig.version }}</Text>
7673
</Flex>
7774
</a>
7875
</Flex>
7976

80-
<NuxtLink to="https://celenium.io/address/celestia15ans77hr2uxefyn6fa2lcsvpngwevuaugth7f5">
81-
<Flex align="center" gap="8">
82-
<Text size="12" weight="500" color="support">Donations: </Text>
83-
<Text size="12" weight="500" color="tertiary">celestia</Text>
84-
<Flex align="center" gap="3">
85-
<div v-for="dot in 3" class="dot" />
77+
<Flex align="center" gap="8">
78+
<NuxtLink to="https://www.pklab.io/terms" :class="$style.link">
79+
<Text size="12" weight="500" color="tertiary">Terms of Use</Text>
80+
</NuxtLink>
81+
<NuxtLink to="https://www.pklab.io/privacy" :class="$style.link">
82+
<Text size="12" weight="500" color="tertiary">Privacy Policy</Text>
83+
</NuxtLink>
84+
</Flex>
85+
86+
<Flex align="center" gap="8">
87+
<Text size="12" weight="500" color="support">Donations:</Text>
88+
<a :href="`https://celenium.io/address/celestia15ans77hr2uxefyn6fa2lcsvpngwevuaugth7f5`" target="_blank">
89+
<Flex>
90+
<Text size="12" weight="500" color="tertiary">TIA</Text>
8691
</Flex>
87-
<Text size="12" weight="500" color="tertiary">wevu augt h7f5</Text>
88-
</Flex>
89-
</NuxtLink>
92+
</a>
93+
<a :href="`https://etherscan.io/address/0x9FfB1cb28c55735e77B352eE918b4F0c3595a761`" target="_blank">
94+
<Flex>
95+
<Text size="12" weight="500" color="tertiary">ETH</Text>
96+
</Flex>
97+
</a>
98+
</Flex>
9099
</Flex>
91-
92100
<Flex direction="column" align="end" gap="16">
93101
<Flex align="center" gap="16">
94102
<Dropdown side="top">

components/modules/address/AddressOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const handleOpenQRModal = () => {
619619
<Flex v-else align="center" justify="center" direction="column" gap="8" wide :class="$style.empty">
620620
<Text size="13" weight="600" color="secondary" align="center"> No Blobs</Text>
621621
<Text size="12" weight="500" height="160" color="tertiary" align="center" style="max-width: 220px">
622-
This address does not contain blobs
622+
This address did not push any blobs
623623
</Text>
624624
</Flex>
625625
</template>

components/modules/block/BlobsTable.vue

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import Spinner from "@/components/ui/Spinner.vue"
88
import { space, formatBytes, getNamespaceID } from "@/services/utils"
99
1010
/** API */
11-
import { fetchTxNamespaces, fetchTxNamespacesCount } from "@/services/api/tx"
12-
import { fetchBlockNamespaces, fetchBlockNamespacesCount } from "@/services/api/block"
11+
import { fetchTxBlobs, fetchTxBlobsCount } from "@/services/api/tx"
12+
import { fetchBlockBlobs, fetchBlockBlobsCount } from "@/services/api/block"
1313
1414
/** Store */
1515
import { useCacheStore } from "@/store/cache"
@@ -61,7 +61,7 @@ const fetchNamespaces = async () => {
6161
if (props.hash.length) params.hash = props.hash
6262
if (props.height) params.height = props.height
6363
64-
return (props.hash.length && (await fetchTxNamespaces(params))) || (props.height && (await fetchBlockNamespaces(params))) || []
64+
return (props.hash.length && (await fetchTxBlobs(params))) || (props.height && (await fetchBlockBlobs(params))) || []
6565
}
6666
6767
const getNamespaces = async () => {
@@ -76,11 +76,11 @@ const getNamespaces = async () => {
7676
7777
const getTotal = async () => {
7878
if (props.hash.length) {
79-
const data = await fetchTxNamespacesCount(props.hash)
79+
const data = await fetchTxBlobsCount(props.hash)
8080
total.value = data
8181
}
8282
if (props.height > 1) {
83-
const data = await fetchBlockNamespacesCount(props.height)
83+
const data = await fetchBlockBlobsCount(props.height)
8484
total.value = data
8585
}
8686
}
@@ -101,10 +101,10 @@ const handleViewBlob = (blob) => {
101101
hash: blob.namespace.hash,
102102
namespace_id: blob.namespace.namespace_id,
103103
namespace_name: blob.namespace.name,
104-
commitment: blob.data.ShareCommitments[0],
104+
commitment: blob.commitment,
105105
height: blob.height,
106-
signer: blob.data.Signer,
107-
size: blob.data.BlobSizes[0],
106+
signer: blob.signer,
107+
size: blob.size,
108108
tx: blob.tx,
109109
}
110110
@@ -223,21 +223,21 @@ const handlePrev = () => {
223223
<td>
224224
<Tooltip position="start" delay="500">
225225
<Flex align="center" gap="8">
226-
<AddressBadge :hash="blob.data.Signer" />
226+
<AddressBadge :hash="blob.signer" />
227227

228-
<CopyButton :text="blob.data.Signer" />
228+
<CopyButton :text="blob.signer" />
229229
</Flex>
230230

231231
<template #content>
232-
{{ blob.data.Signer }}
232+
{{ blob.signer }}
233233
</template>
234234
</Tooltip>
235235
</td>
236236
<td>
237237
<Tooltip position="start" delay="500">
238238
<Flex align="center" gap="8">
239239
<Text size="13" weight="600" color="primary">
240-
{{ blob.data.ShareCommitments[0].slice(0, 4) }}
240+
{{ blob.commitment.slice(0, 4) }}
241241
</Text>
242242

243243
<Flex align="center" gap="3">
@@ -246,24 +246,24 @@ const handlePrev = () => {
246246

247247
<Text size="13" weight="600" color="primary">
248248
{{
249-
blob.data.ShareCommitments[0].slice(
250-
blob.data.ShareCommitments[0].length - 4,
251-
blob.data.ShareCommitments[0].length,
249+
blob.commitment.slice(
250+
blob.commitment.length - 4,
251+
blob.commitment.length,
252252
)
253253
}}
254254
</Text>
255255

256-
<CopyButton :text="blob.data.ShareCommitments[0]" />
256+
<CopyButton :text="blob.commitment" />
257257
</Flex>
258258

259259
<template #content>
260-
{{ blob.data.ShareCommitments[0] }}
260+
{{ blob.commitment }}
261261
</template>
262262
</Tooltip>
263263
</td>
264264
<td>
265265
<Text size="13" weight="600" color="primary">
266-
{{ formatBytes(blob.data.BlobSizes[0]) }}
266+
{{ formatBytes(blob.size) }}
267267
</Text>
268268
</td>
269269
<td>

components/modules/namespace/NamespaceCharts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ onBeforeUnmount(() => {
315315

316316
<Flex justify="between" gap="32" :class="$style.data">
317317
<Flex direction="column" gap="20" wide>
318-
<Text size="13" weight="600" color="primary">Blob Size Usage</Text>
318+
<Text size="13" weight="600" color="primary">Storage Usage</Text>
319319

320320
<Flex ref="chartWrapperEl" direction="column" :class="$style.chart_wrapper">
321321
<Flex direction="column" justify="between" :class="[$style.axis, $style.y]">

0 commit comments

Comments
 (0)