Skip to content

Commit cbfe37d

Browse files
committed
Merge branch 'ms-2-part-2' of github.com:celenium-io/celenium-interface into ms-2-part-2
2 parents c2fb0cd + 59d991a commit cbfe37d

24 files changed

+329
-192
lines changed

components/DatePicker.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ const handleYearChange = (v) => {
261261
watch(
262262
() => props.from,
263263
() => {
264+
selectedPeriod.value = {}
264265
startDate.value = props.from ? DateTime.fromSeconds(parseInt(props.from)).startOf("day") : {}
265266
endDate.value = props.to ? DateTime.fromSeconds(parseInt(props.to)).endOf("day") : {}
266267
updateSelectedRange(startDate.value, endDate.value)
@@ -270,6 +271,7 @@ watch(
270271
watch(
271272
() => props.to,
272273
() => {
274+
selectedPeriod.value = {}
273275
endDate.value = props.to ? DateTime.fromSeconds(parseInt(props.to)).endOf("day") : {}
274276
updateSelectedRange(startDate.value, endDate.value)
275277
},

components/LeftSidebar.vue

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ const mainLinks = reactive([
5151
{
5252
name: "Active",
5353
path: "/validators?status=active&page=1",
54-
queryParam: {status: "active"},
54+
queryParam: { status: "active" },
5555
show: true,
5656
},
5757
{
5858
name: "Jailed",
5959
path: "/validators?status=jailed&page=1",
60-
queryParam: {status: "jailed"},
60+
queryParam: { status: "jailed" },
6161
show: true,
6262
},
6363
{
6464
name: "Inactive",
6565
path: "/validators?status=inactive&page=1",
66-
queryParam: {status: "inactive"},
66+
queryParam: { status: "inactive" },
6767
show: true,
6868
},
6969
],
@@ -76,26 +76,26 @@ const mainLinks = reactive([
7676
{
7777
name: "General",
7878
path: "/stats?tab=general",
79-
queryParam: {tab: "general"},
79+
queryParam: { tab: "general" },
8080
show: true,
8181
},
8282
{
8383
name: "Blocks",
8484
path: "/stats?tab=blocks",
85-
queryParam: {tab: "blocks"},
85+
queryParam: { tab: "blocks" },
8686
show: true,
8787
},
8888
{
8989
name: "Rollups",
9090
path: "/stats?tab=rollups",
91-
queryParam: {tab: "rollups"},
91+
queryParam: { tab: "rollups" },
9292
show: true,
9393
},
9494
{
9595
name: "Ecosystem",
9696
path: "/stats?tab=ecosystem",
9797
queryParam: {tab: "ecosystem"},
98-
show: isMainnet(),
98+
show: false,
9999
},
100100
],
101101
},
@@ -196,7 +196,8 @@ const handleOnClose = () => {
196196
<Flex justify="between" align="center">
197197
<NuxtLink to="/" :class="$style.logo">
198198
<Flex align="center" gap="8">
199-
<Icon name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
199+
<Icon v-if="getNetworkName() !== 'Mammoth'" name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
200+
<Text v-else size="16" style="filter: grayscale(1)">🦣</Text>
200201

201202
<svg width="86" height="14" viewBox="0 0 96 16" xmlns="http://www.w3.org/2000/svg" :class="$style.logo_name">
202203
<path
@@ -301,10 +302,17 @@ const handleOnClose = () => {
301302

302303
<template #popup>
303304
<DropdownTitle>
304-
<Flex gap="8">
305+
<Flex v-if="head.synced" gap="8">
305306
<Icon name="check" size="12" color="brand" />
306307
<Flex direction="column" gap="6">
307-
<Text color="secondary">Head {{ head.synced ? "" : "not" }} Synced </Text>
308+
<Text color="secondary">Head Synced </Text>
309+
<Text color="tertiary">{{ head.chain_id }}</Text>
310+
</Flex>
311+
</Flex>
312+
<Flex v-else gap="8">
313+
<Icon name="close" size="12" color="red" />
314+
<Flex direction="column" gap="6">
315+
<Text color="secondary">Head not Synced </Text>
308316
<Text color="tertiary">{{ head.chain_id }}</Text>
309317
</Flex>
310318
</Flex>
@@ -314,6 +322,7 @@ const handleOnClose = () => {
314322
<DropdownItem @click="handleNavigate('https://celenium.io')">Mainnet</DropdownItem>
315323
<DropdownItem @click="handleNavigate('https://mocha-4.celenium.io')">Mocha-4</DropdownItem>
316324
<DropdownItem @click="handleNavigate('https://arabica.celenium.io')">Arabica</DropdownItem>
325+
<!-- <DropdownItem @click="handleNavigate('https://mammoth.celenium.io')">Mammoth</DropdownItem> -->
317326
</template>
318327
</Dropdown>
319328
</Flex>

components/OgImage/StatsMetricImage.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ const bgStyles = computed(() => {
1414
position: "absolute",
1515
top: "0",
1616
left: "0",
17-
filter: "grayscale(1)",
18-
opacity: "0.05",
1917
},
2018
}
2119
})
2220
</script>
2321

2422
<template>
25-
<div class="w-full h-full" :style="{ background: '#111111', padding: '100px 120px', fontFamily: 'IBM+Plex+Mono' }">
23+
<div class="w-full h-full" :style="{ padding: '80px 140px', fontFamily: 'IBM+Plex+Mono' }">
2624
<img src="/img/stats_bg.png" v-bind="bgStyles" />
2725

2826
<div :style="{ height: '100%', display: 'flex', flexDirection: 'column', gap: '80px' }">

0 commit comments

Comments
 (0)