Skip to content

Commit 11594f0

Browse files
authored
Merge pull request #168 from celenium-io/dev
Release v1.27.0
2 parents d0e0911 + 147c723 commit 11594f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4682
-1620
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ If you want to use a prebuilt image from **GitHub Container Registry**, specify
8585
- **NUXT_PUBLIC_FAUCET_ADDRESS** — faucet address.
8686
- **NUXT_PUBLIC_FAUCET_MOCHA** — faucet API for the Mocha network.
8787
- **NUXT_PUBLIC_FAUCET_ARABICA** — faucet API for the Arabica network.
88-
- **NUXT_PUBLIC_FAUCET_MAMMOTH** — faucet API for the Mammoth network.
8988

9089
#### External Services Configuration
9190
- **NUXT_PUBLIC_BLOCKSCOUT** — used to check whether a batch exists in Blockscout. If found, a dedicated button will appear on the blob form/page.

assets/icons.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,6 @@
238238
"drop": "M17 3.33989C18.5202 4.21758 19.7826 5.47997 20.6603 7.00017C21.538 8.52038 22 10.2448 22 12.0002C22 13.7556 21.5379 15.48 20.6602 17.0002C19.7825 18.5204 18.5201 19.7828 16.9999 20.6605C15.4797 21.5381 13.7552 22.0002 11.9998 22.0001C10.2445 22.0001 8.52002 21.538 6.99984 20.6603C5.47965 19.7826 4.21729 18.5202 3.33963 17C2.46198 15.4797 1.99996 13.7553 2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM12.823 7.43189C12.731 7.29865 12.6081 7.18973 12.4647 7.11448C12.3214 7.03924 12.1619 6.99993 12 6.99993C11.8381 6.99993 11.6786 7.03924 11.5353 7.11448C11.3919 7.18973 11.269 7.29865 11.177 7.43189L8.575 11.1959C7.553 12.8659 7.941 14.9319 9.45 16.1249C10.178 16.6923 11.0745 17.0004 11.9975 17.0004C12.9205 17.0004 13.817 16.6923 14.545 16.1249C16.055 14.9339 16.442 12.8649 15.449 11.2429L12.823 7.43189Z",
239239
"faucet": "M21 21H3C3 19.9 3.9 19 5 19H19C20.11 19 21 19.89 21 21M19 7C19 5.39 17.93 3 15 3S11 5.39 11 7V18H13V7C13 6.54 13.17 5 15 5S17 6.54 17 7H16.5V9H19.5V7H19M7 12C6.45 12 6 12.45 6 13V14H3V15H6V18H8V13C8 12.45 7.55 12 7 12M21 14H18V13C18 12.45 17.55 12 17 12S16 12.45 16 13V18H18V15H21V14Z",
240240
"commit": "M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z",
241-
"laurel": "M16.956 2.057c.355.124.829.375 1.303.796a3.77 3.77 0 0 1 1.246 2.204c.173.989-.047 1.894-.519 2.683l-.123.194q-.097.147-.196.272q.066.234.117.471q.26-.178.545-.307c.851-.389 1.727-.442 2.527-.306q.226.04.346.076a1 1 0 0 1 .689.712l.029.13q.015.08.03.18a4.45 4.45 0 0 1-.324 2.496a3.94 3.94 0 0 1-1.71 1.85l-.242.12a4.23 4.23 0 0 1-2.234.349A9 9 0 0 1 17.997 15c.37.016.748.093 1.128.24c.732.28 1.299.758 1.711 1.367a3.95 3.95 0 0 1 .654 1.613a1 1 0 0 1-.356.917a3.8 3.8 0 0 1-.716.443c-.933.455-1.978.588-3.043.179l-.032-.015l-.205-.086a3.6 3.6 0 0 1-1.33-1.069l-.143-.197a4 4 0 0 1-.26-.433a6 6 0 0 1-.927.511q.18.262.337.56a7.4 7.4 0 0 1 .66 1.747a1 1 0 0 1-1.95.444l-.028-.11a6 6 0 0 0-.449-1.143C12.706 19.323 12.338 19 12 19s-.706.323-1.048.969a5.6 5.6 0 0 0-.367.874l-.082.269l-.028.11a1 1 0 0 1-1.95-.444a7.3 7.3 0 0 1 .66-1.747q.158-.298.337-.561a6.4 6.4 0 0 1-.93-.508a4 4 0 0 1-.256.43c-.366.541-.855.98-1.473 1.267l-.238.1c-.994.382-1.97.292-2.855-.091l-.188-.087a3.8 3.8 0 0 1-.716-.443a1 1 0 0 1-.356-.917a3.95 3.95 0 0 1 .654-1.613a3.6 3.6 0 0 1 1.71-1.368c.38-.146.758-.223 1.13-.24a9 9 0 0 1-.445-1.023a4.23 4.23 0 0 1-2.233-.348a4 4 0 0 1-.916-.587l-.207-.191a4 4 0 0 1-.724-.977l-.105-.216a4.45 4.45 0 0 1-.265-2.806a1 1 0 0 1 .69-.712q.119-.036.345-.076c.801-.135 1.678-.082 2.53.308q.283.129.545.304q.048-.235.112-.47a5 5 0 0 1-.194-.272c-.556-.832-.83-1.806-.642-2.877l.05-.242a3.75 3.75 0 0 1 1.027-1.803l.169-.159a4 4 0 0 1 1.303-.796a1 1 0 0 1 .975.178c.2.168.462.446.719.83c.556.833.83 1.807.642 2.878a3.77 3.77 0 0 1-1.246 2.204c-.303.27-.607.47-.879.61A7.5 7.5 0 0 0 7 10.728C7 14.23 9.285 17 12 17s5-2.77 5-6.276a7.6 7.6 0 0 0-.253-1.967a4.3 4.3 0 0 1-.881-.61a3.77 3.77 0 0 1-1.246-2.204c-.188-1.07.086-2.045.642-2.877c.257-.385.52-.663.72-.831a1 1 0 0 1 .974-.178"
241+
"laurel": "M16.956 2.057c.355.124.829.375 1.303.796a3.77 3.77 0 0 1 1.246 2.204c.173.989-.047 1.894-.519 2.683l-.123.194q-.097.147-.196.272q.066.234.117.471q.26-.178.545-.307c.851-.389 1.727-.442 2.527-.306q.226.04.346.076a1 1 0 0 1 .689.712l.029.13q.015.08.03.18a4.45 4.45 0 0 1-.324 2.496a3.94 3.94 0 0 1-1.71 1.85l-.242.12a4.23 4.23 0 0 1-2.234.349A9 9 0 0 1 17.997 15c.37.016.748.093 1.128.24c.732.28 1.299.758 1.711 1.367a3.95 3.95 0 0 1 .654 1.613a1 1 0 0 1-.356.917a3.8 3.8 0 0 1-.716.443c-.933.455-1.978.588-3.043.179l-.032-.015l-.205-.086a3.6 3.6 0 0 1-1.33-1.069l-.143-.197a4 4 0 0 1-.26-.433a6 6 0 0 1-.927.511q.18.262.337.56a7.4 7.4 0 0 1 .66 1.747a1 1 0 0 1-1.95.444l-.028-.11a6 6 0 0 0-.449-1.143C12.706 19.323 12.338 19 12 19s-.706.323-1.048.969a5.6 5.6 0 0 0-.367.874l-.082.269l-.028.11a1 1 0 0 1-1.95-.444a7.3 7.3 0 0 1 .66-1.747q.158-.298.337-.561a6.4 6.4 0 0 1-.93-.508a4 4 0 0 1-.256.43c-.366.541-.855.98-1.473 1.267l-.238.1c-.994.382-1.97.292-2.855-.091l-.188-.087a3.8 3.8 0 0 1-.716-.443a1 1 0 0 1-.356-.917a3.95 3.95 0 0 1 .654-1.613a3.6 3.6 0 0 1 1.71-1.368c.38-.146.758-.223 1.13-.24a9 9 0 0 1-.445-1.023a4.23 4.23 0 0 1-2.233-.348a4 4 0 0 1-.916-.587l-.207-.191a4 4 0 0 1-.724-.977l-.105-.216a4.45 4.45 0 0 1-.265-2.806a1 1 0 0 1 .69-.712q.119-.036.345-.076c.801-.135 1.678-.082 2.53.308q.283.129.545.304q.048-.235.112-.47a5 5 0 0 1-.194-.272c-.556-.832-.83-1.806-.642-2.877l.05-.242a3.75 3.75 0 0 1 1.027-1.803l.169-.159a4 4 0 0 1 1.303-.796a1 1 0 0 1 .975.178c.2.168.462.446.719.83c.556.833.83 1.807.642 2.878a3.77 3.77 0 0 1-1.246 2.204c-.303.27-.607.47-.879.61A7.5 7.5 0 0 0 7 10.728C7 14.23 9.285 17 12 17s5-2.77 5-6.276a7.6 7.6 0 0 0-.253-1.967a4.3 4.3 0 0 1-.881-.61a3.77 3.77 0 0 1-1.246-2.204c-.188-1.07.086-2.045.642-2.877c.257-.385.52-.663.72-.831a1 1 0 0 1 .974-.178",
242+
"bell-ringing": "M 8.705 21.001 L 12.705 21.001 C 13.257 21.001 13.705 20.553 13.705 20.001 C 13.705 19.448 13.257 19.001 12.705 19.001 L 8.705 19.001 C 8.153 19.001 7.705 19.448 7.705 20.001 C 7.705 20.553 8.153 21.001 8.705 21.001 Z M 3.903 0.81 C 3.773 0.579 3.556 0.409 3.3 0.338 C 3.045 0.267 2.771 0.3 2.54 0.431 C 0.957 1.327 -0.015 3.012 0 4.831 C 0.006 5.383 0.458 5.826 1.01 5.821 C 1.562 5.815 2.006 5.363 2 4.811 C 1.991 3.72 2.574 2.71 3.522 2.172 C 4.003 1.9 4.173 1.291 3.902 0.81 Z M 17.504 0.81 C 17.234 1.291 17.404 1.9 17.884 2.171 C 18.833 2.709 19.416 3.72 19.407 4.811 C 19.402 5.363 19.845 5.815 20.398 5.82 C 20.95 5.825 21.402 5.382 21.407 4.83 C 21.423 3.011 20.45 1.326 18.867 0.43 C 18.386 0.159 17.776 0.329 17.505 0.81 Z M 3.705 7.001 C 3.705 9.914 2.973 11.845 2.206 13.078 L 2.194 13.097 C 1.836 13.671 1.554 14.126 1.364 14.456 C 1.275 14.607 1.192 14.763 1.117 14.923 C 1.085 14.994 1.049 15.08 1.02 15.174 C 0.997 15.253 0.953 15.42 0.97 15.623 C 0.983 15.837 1.042 16.046 1.143 16.236 C 1.25 16.422 1.396 16.582 1.571 16.706 C 1.76 16.837 1.977 16.92 2.205 16.948 L 2.209 16.948 C 2.37 16.97 2.531 16.983 2.693 16.988 C 3.028 17.001 3.492 17.001 4.069 17.001 L 17.341 17.001 C 17.918 17.001 18.382 17.001 18.717 16.988 C 18.879 16.983 19.041 16.97 19.201 16.948 L 19.205 16.948 C 19.301 16.934 19.589 16.891 19.839 16.705 C 20.014 16.581 20.16 16.421 20.267 16.235 C 20.401 15.994 20.43 15.76 20.44 15.624 C 20.457 15.42 20.412 15.253 20.389 15.174 C 20.361 15.08 20.325 14.993 20.293 14.922 C 20.229 14.781 20.142 14.621 20.046 14.456 C 19.856 14.125 19.574 13.671 19.216 13.098 L 19.205 13.078 C 18.437 11.845 17.705 9.914 17.705 7.001 C 17.705 4.169 16 1.617 13.384 0.533 C 10.768 -0.55 7.757 0.049 5.755 2.051 C 4.442 3.364 3.705 5.144 3.705 7.001 Z M 8.705 21.001 L 12.705 21.001 C 13.257 21.001 13.705 20.553 13.705 20.001 C 13.705 19.448 13.257 19.001 12.705 19.001 L 8.705 19.001 C 8.153 19.001 7.705 19.448 7.705 20.001 C 7.705 20.553 8.153 21.001 8.705 21.001 Z M 3.903 0.81 C 3.773 0.579 3.556 0.409 3.3 0.338 C 3.045 0.267 2.771 0.3 2.54 0.431 C 0.957 1.327 -0.015 3.012 0 4.831 C 0.006 5.383 0.458 5.826 1.01 5.821 C 1.562 5.815 2.006 5.363 2 4.811 C 1.991 3.72 2.574 2.71 3.522 2.172 C 4.003 1.9 4.173 1.291 3.902 0.81 Z M 17.504 0.81 C 17.234 1.291 17.404 1.9 17.884 2.171 C 18.833 2.709 19.416 3.72 19.407 4.811 C 19.402 5.363 19.845 5.815 20.398 5.82 C 20.95 5.825 21.402 5.382 21.407 4.83 C 21.423 3.011 20.45 1.326 18.867 0.43 C 18.386 0.159 17.776 0.329 17.505 0.81 Z M 3.705 7.001 C 3.705 9.914 2.973 11.845 2.206 13.078 L 2.194 13.097 C 1.836 13.671 1.554 14.126 1.364 14.456 C 1.275 14.607 1.192 14.763 1.117 14.923 C 1.085 14.994 1.049 15.08 1.02 15.174 C 0.997 15.253 0.953 15.42 0.97 15.623 C 0.983 15.837 1.042 16.046 1.143 16.236 C 1.25 16.422 1.396 16.582 1.571 16.706 C 1.76 16.837 1.977 16.92 2.205 16.948 L 2.209 16.948 C 2.37 16.97 2.531 16.983 2.693 16.988 C 3.028 17.001 3.492 17.001 4.069 17.001 L 17.341 17.001 C 17.918 17.001 18.382 17.001 18.717 16.988 C 18.879 16.983 19.041 16.97 19.201 16.948 L 19.205 16.948 C 19.301 16.934 19.589 16.891 19.839 16.705 C 20.014 16.581 20.16 16.421 20.267 16.235 C 20.401 15.994 20.43 15.76 20.44 15.624 C 20.457 15.42 20.412 15.253 20.389 15.174 C 20.361 15.08 20.325 14.993 20.293 14.922 C 20.229 14.781 20.142 14.621 20.046 14.456 C 19.856 14.125 19.574 13.671 19.216 13.098 L 19.205 13.078 C 18.437 11.845 17.705 9.914 17.705 7.001 C 17.705 4.169 16 1.617 13.384 0.533 C 10.768 -0.55 7.757 0.049 5.755 2.051 C 4.442 3.364 3.705 5.144 3.705 7.001 Z"
242243
}

components/Connection.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Dropdown, DropdownTitle, DropdownItem, DropdownDivider } from "@/compon
66
/** Services */
77
import amp from "@/services/amp"
88
import { disconnect } from "@/services/wallet"
9-
import { arabica, mainnet, mammoth, mocha } from "@/services/chains"
9+
import { arabica, mainnet, mocha } from "@/services/chains"
1010
1111
/** Store */
1212
import { useAppStore } from "@/store/app.store"
@@ -30,10 +30,6 @@ switch (hostname) {
3030
appStore.network = mocha
3131
break
3232
33-
case "mammoth.celenium.io":
34-
appStore.network = mammoth
35-
break
36-
3733
case "localhost":
3834
appStore.network = arabica
3935
break

components/LeftSidebar.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ const mainLinks = reactive([
106106
name: "Governance",
107107
path: "/proposals",
108108
},
109+
{
110+
icon: "node",
111+
name: "Node Upgrades",
112+
path: "/upgrades",
113+
new: true,
114+
},
109115
])
110116
111117
const isModularLinksCollapsed = ref(false)
@@ -233,8 +239,7 @@ const handleOnClose = () => {
233239
<Flex justify="between" align="center">
234240
<NuxtLink to="/" :class="$style.logo">
235241
<Flex align="center" gap="8">
236-
<Icon v-if="getNetworkName() !== 'Mammoth'" name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
237-
<Text v-else size="16" style="filter: grayscale(1)">🦣</Text>
242+
<Icon name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
238243

239244
<svg width="86" height="14" viewBox="0 0 96 16" xmlns="http://www.w3.org/2000/svg" :class="$style.logo_name">
240245
<path
@@ -348,7 +353,6 @@ const handleOnClose = () => {
348353
<DropdownItem @click="handleNavigate('https://celenium.io')">Mainnet</DropdownItem>
349354
<DropdownItem @click="handleNavigate('https://mocha-4.celenium.io')">Mocha-4</DropdownItem>
350355
<DropdownItem @click="handleNavigate('https://arabica.celenium.io')">Arabica</DropdownItem>
351-
<DropdownItem @click="handleNavigate('https://mammoth.celenium.io')">Mammoth</DropdownItem>
352356
</template>
353357
</Dropdown>
354358
</Flex>

components/OgImage/ProposalImage.vue

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
/** Vendor */
33
import { DateTime } from "luxon"
44
5-
/** Services */
6-
import { comma, formatBytes } from "@/services/utils"
7-
85
defineOptions({
96
inheritAttrs: false,
107
})
@@ -22,10 +19,43 @@ const bgStyles = computed(() => {
2219
},
2320
}
2421
})
22+
23+
function truncateText(text = "", maxCharsPerLine = 30, maxLines = 2) {
24+
if (!text) return ""
25+
26+
const words = text.split(/\s+/)
27+
const lines = []
28+
let currentLine = ""
29+
30+
for (const word of words) {
31+
if ((currentLine + " " + word).trim().length <= maxCharsPerLine) {
32+
currentLine = (currentLine + " " + word).trim()
33+
} else {
34+
lines.push(currentLine)
35+
currentLine = word
36+
if (lines.length >= maxLines) break
37+
}
38+
}
39+
40+
if (lines.length < maxLines && currentLine) {
41+
lines.push(currentLine)
42+
}
43+
44+
if (lines.length > maxLines) {
45+
lines.length = maxLines
46+
}
47+
48+
// ellipsis
49+
if (lines.length === maxLines && words.join(" ").length > lines.join(" ").length) {
50+
lines[maxLines - 1] = lines[maxLines - 1].replace(/[.,;:!?-]*$/, "") + ""
51+
}
52+
53+
return lines.join("\n")
54+
}
2555
</script>
2656

2757
<template>
28-
<div class="w-full h-full" :style="{ background: '#111111', padding: '100px', fontFamily: 'IBM+Plex+Mono', overflow: 'hidden' }">
58+
<div class="w-full h-full" :style="{ background: '#111111', padding: '100px', paddingBottom: '60px', fontFamily: 'IBM+Plex+Mono', overflow: 'hidden' }">
2959
<img src="/img/bg.png" width="1200" height="600" class="absolute" v-bind="bgStyles" />
3060

3161
<div :style="{ height: '100%', display: 'flex', flexDirection: 'column', gap: '32px' }">
@@ -39,8 +69,8 @@ const bgStyles = computed(() => {
3969
</span>
4070
</div>
4171

42-
<span :style="{ fontSize: '50px', color: 'rgba(255,255,255, 0.9)' }"> {{ proposal.title }} </span>
43-
<span :style="{ fontSize: '50px', color: 'rgba(255,255,255, 0.3)' }"> {{ proposal.description }} </span>
72+
<span :style="{ fontSize: '50px', color: 'rgba(255,255,255, 0.9)', whiteSpace: 'pre-line', }"> {{ truncateText(proposal.title) }} </span>
73+
<span :style="{ fontSize: '50px', color: 'rgba(255,255,255, 0.3)', whiteSpace: 'pre-line', }"> {{ truncateText(proposal.description) }} </span>
4474

4575
<div>
4676
<span :style="{ fontSize: '32px', color: 'rgba(255,255,255, 0.3)' }">Yes: </span>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<script setup>
2+
/** Services */
3+
import { abbreviate } from "@/services/utils"
4+
5+
defineOptions({
6+
inheritAttrs: false,
7+
})
8+
9+
const props = defineProps({
10+
title: String,
11+
upgrade: Object,
12+
})
13+
14+
const bgStyles = computed(() => {
15+
return {
16+
style: {
17+
filter: "grayscale(1)",
18+
opacity: "0.05",
19+
},
20+
}
21+
})
22+
</script>
23+
24+
<template>
25+
<div class="w-full h-full" :style="{ background: '#111111', padding: '100px 50px', fontFamily: 'IBM+Plex+Mono', overflow: 'hidden' }">
26+
<img src="/img/bg.png" width="1200" height="600" class="absolute" v-bind="bgStyles" />
27+
28+
<div :style="{ height: '100%', display: 'flex', flexDirection: 'column', gap: '50px' }">
29+
<div :style="{ display: 'flex', alignItems: 'center' }">
30+
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.9)' }">upgrade</span>
31+
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">('</span>
32+
<span :style="{ fontSize: '40px', color: '#FF8351' }"> Version {{ upgrade?.version }} </span>
33+
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">')</span>
34+
</div>
35+
36+
<div :style="{ display: 'flex', gap: '12px' }">
37+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Status: </span>
38+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">
39+
{{
40+
upgrade.tx_hash
41+
? 'Applied'
42+
: upgrade?.votedShare > 83.33
43+
? 'Ready for Upgrade'
44+
: 'In Progress'
45+
}}
46+
</span>
47+
</div>
48+
49+
<div :style="{ display: 'flex' }">
50+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Total Stake: </span>
51+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ abbreviate(upgrade?.voting_power) }} TIA</span>
52+
</div>
53+
54+
<div :style="{ display: 'flex', gap: '12px' }">
55+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Total Voted: </span>
56+
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ abbreviate(upgrade?.voted_power) }} TIA</span>
57+
</div>
58+
</div>
59+
</div>
60+
</template>

components/cmd/CommandMenu.vue

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const appConfig = useAppConfig()
4040
4141
const developerMode = useCookie("developerMode", { default: () => false })
4242
const theme = useCookie("theme", { default: () => "dark" })
43-
const showPromoBackground = useCookie("showPromoBackground", { default: () => true })
4443
4544
const route = useRoute()
4645
const router = useRouter()
@@ -301,6 +300,15 @@ const rawNavigationActions = [
301300
router.push("/blobstream")
302301
},
303302
},
303+
{
304+
type: "callback",
305+
icon: "arrow-narrow-right",
306+
title: "Go to Upgrades",
307+
runText: "Open Upgrades",
308+
callback: () => {
309+
router.push("/upgrades")
310+
},
311+
},
304312
{
305313
type: "callback",
306314
icon: "arrow-narrow-right",
@@ -828,36 +836,6 @@ const developerGroup = computed(() => {
828836
})
829837
830838
const rawOtherActions = [
831-
{
832-
type: "callback",
833-
icon: "settings",
834-
title: "Toggle Promo Background",
835-
subtitle: "Command",
836-
runText: "Toggle",
837-
callback: () => {
838-
if (getNetworkName() !== "Mammoth") {
839-
notificationsStore.create({
840-
notification: {
841-
type: "info",
842-
icon: "info",
843-
title: `Available for the mammoth network only`,
844-
autoDestroy: true,
845-
},
846-
})
847-
return
848-
}
849-
850-
showPromoBackground.value = !showPromoBackground.value
851-
notificationsStore.create({
852-
notification: {
853-
type: "info",
854-
icon: "info",
855-
title: `Promo background ${showPromoBackground.value ? "enabled" : "disabled"}`,
856-
autoDestroy: true,
857-
},
858-
})
859-
},
860-
},
861839
{
862840
type: "callback",
863841
icon: "terminal",

components/modals/LightNodeModal.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ onMounted(async () => {
121121
const disableStart = ref(false)
122122
const status = computed(() => nodeStore.status)
123123
124-
const networks = ["Mainnet", "Arabica", "Mocha", "Mammoth"]
124+
const networks = ["Mainnet", "Arabica", "Mocha"]
125125
const selectedNetwork = ref()
126126
127127
const { hostname } = useRequestURL()
@@ -142,10 +142,6 @@ switch (hostname) {
142142
selectedNetwork.value = 1
143143
break
144144
145-
case "mammoth.celenium.io":
146-
selectedNetwork.value = 3
147-
break
148-
149145
case "dev.celenium.io":
150146
selectedNetwork.value = 1
151147
break

components/modules/block/BlockOverview.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ const handleViewRawTransactions = () => {
582582
</Flex>
583583
584584
<UpcomingUpdate v-if="activeTab === 'upcoming_update'" :update="update" />
585-
<Flex v-else-if="activeTab === 'transactions'" direction="column" :class="[$style.table, isLoading && $style.disabled]">
585+
586+
<Flex v-else-if="activeTab === 'transactions'" direction="column" justify="between" :class="[$style.table, isLoading && $style.disabled]">
586587
<Flex wrap="wrap" align="center" justify="start" gap="8" :class="$style.filters">
587588
<Popover :open="isStatusPopoverOpen" @on-close="onStatusPopoverClose" width="200">
588589
<Button @click="handleOpenStatusPopover" type="secondary" size="mini" :disabled="!transactions.length">
@@ -918,7 +919,7 @@ const handleViewRawTransactions = () => {
918919
/>
919920
920921
<!-- Pagination -->
921-
<Flex v-if="transactions.length" align="center" gap="6" :class="$style.pagination">
922+
<Flex align="center" gap="6" :class="$style.pagination">
922923
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1">
923924
<Icon name="arrow-left-stop" size="12" color="primary" />
924925
</Button>

components/modules/namespace/NamespaceCharts.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<script setup>
22
/** Vendor */
3-
import * as d3 from "d3"
43
import { DateTime } from "luxon"
5-
import { useDebounceFn } from "@vueuse/core"
64
75
/** UI */
86
import Button from "@/components/ui/Button.vue"
97
import { Dropdown, DropdownItem } from "@/components/ui/Dropdown"
108
import Popover from "@/components/ui/Popover.vue"
119
import Toggle from "@/components/ui/Toggle.vue"
10+
11+
/** Components */
1212
import ChartOnEntityPage from "~/components/shared/ChartOnEntityPage.vue"
13-
import Icon from "@/components/Icon.vue"
14-
import Text from "@/components/Text.vue"
15-
import Flex from "@/components/Flex.vue"
1613
1714
/** Services */
1815
import { abbreviate, formatBytes } from "@/services/utils"
19-
import { createDataMap, generateDateForPeriod, generateSeriesData, PERIODS as periods } from "@/services/utils/entityCharts"
16+
import { createDataMap, generateSeriesData, PERIODS as periods } from "@/services/utils/entityCharts"
2017
2118
/** API */
2219
import { fetchNamespaceSeries } from "@/services/api/stats"

0 commit comments

Comments
 (0)