Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Mocha network stats #78

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
913e0e3
Add stats page, highlight cards, blocks feed
GusevPM Jul 12, 2024
e1d5c6a
Stats v1
GusevPM Jul 14, 2024
9e796dc
Change config
GusevPM Jul 14, 2024
b6995b8
Rollups tab v1
GusevPM Jul 14, 2024
8a9489d
Change colors
GusevPM Jul 14, 2024
3aa6779
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Jul 14, 2024
110b051
Fix data calculation
GusevPM Jul 14, 2024
732a153
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Jul 14, 2024
8ffafba
General tab v1
GusevPM Jul 15, 2024
7a6838f
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Jul 15, 2024
013c248
Blocks tab v1
GusevPM Jul 15, 2024
25b97a9
Small updates
GusevPM Jul 16, 2024
72df260
Rollups bubble chart v1
GusevPM Jul 17, 2024
0aa90f2
Pie charts v1
GusevPM Jul 17, 2024
4bb3cd1
Change default network
GusevPM Jul 17, 2024
ffb8785
Add pie chart animation
GusevPM Jul 17, 2024
6e12f4c
Change default network
GusevPM Jul 17, 2024
339c5aa
Add animation
GusevPM Jul 17, 2024
c2f944a
Change default network
GusevPM Jul 17, 2024
d25c85f
Add some interactive for cards
GusevPM Jul 18, 2024
dad432c
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 18, 2024
f55023e
Metric page v1
GusevPM Jul 19, 2024
4249a90
Add line chart
GusevPM Jul 19, 2024
6884897
Add chart settings
GusevPM Jul 19, 2024
ffd4326
Add pages to series and linkf for cards
GusevPM Jul 20, 2024
9593961
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 20, 2024
5bea7b3
Fixik
GusevPM Jul 20, 2024
f093a44
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 20, 2024
40da880
Fixik 2
GusevPM Jul 20, 2024
352c137
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 20, 2024
abaa5e0
Fix chart and labels
GusevPM Jul 20, 2024
197e457
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 20, 2024
9403145
Add bar chart to metric page
GusevPM Jul 21, 2024
5b89431
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 21, 2024
0dbd120
Small fixiki
GusevPM Jul 22, 2024
a9a12ef
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 22, 2024
87ed03d
Bar chart tooltip
GusevPM Jul 26, 2024
33e439c
Square size chart and fix tooltips
GusevPM Jul 27, 2024
160733f
Merge branch 'dev' into mocha-network-stats
GusevPM Jul 27, 2024
f71df87
Add stats to nav
GusevPM Jul 27, 2024
abcd474
Merge branch 'mocha-network-stats' into CLS-210-network-stats
GusevPM Jul 27, 2024
69ad0d2
Update config
GusevPM Jul 27, 2024
be8204a
Add legend for rollups bubble chart
GusevPM Jul 27, 2024
771f5cb
Add rollups leaderboard link
GusevPM Jul 27, 2024
3b3a1e0
Update API URL
GusevPM Jul 27, 2024
763001a
Update API URL
GusevPM Jul 27, 2024
b04628a
Add borders
GusevPM Jul 30, 2024
d41b691
Tooltips for rollups bubble chart
GusevPM Jul 30, 2024
a0023f0
Merge branch 'main-network-stats' into CLS-210-network-stats
GusevPM Jul 30, 2024
0281aa8
Merge branch 'main-network-stats' into mocha-network-stats
GusevPM Jul 30, 2024
72a774e
Fixiki
GusevPM Aug 1, 2024
e89228d
Merge branch 'main-network-stats' into mocha-network-stats
GusevPM Aug 1, 2024
2607028
Merge branch 'main-network-stats' into CLS-210-network-stats
GusevPM Aug 1, 2024
b4e5c05
Set of fixes
GusevPM Aug 9, 2024
3fb7ed6
Merge branch 'main-network-stats' into mocha-network-stats
GusevPM Aug 9, 2024
ff3d10a
Merge branch 'main-network-stats' into CLS-210-network-stats
GusevPM Aug 9, 2024
8d468f0
Stats fixes
GusevPM Aug 12, 2024
48990a0
Sort addresses by balance
GusevPM Aug 12, 2024
7d88350
Add adresses charts
GusevPM Aug 12, 2024
4e65eb1
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Aug 12, 2024
b017b48
Fix sortable hover
GusevPM Aug 12, 2024
08b303d
Merge branch 'main-network-stats' into mocha-network-stats
GusevPM Aug 12, 2024
5ebd727
Add delegated balances to adresses table
GusevPM Aug 13, 2024
9e3e33b
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Aug 13, 2024
fc847c2
Change config
GusevPM Aug 13, 2024
383e7de
Additional sorting for addresses
GusevPM Aug 14, 2024
f4dbb12
Merge branch 'CLS-210-network-stats' into mocha-network-stats
GusevPM Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ onMounted(async () => {
const runtimeConfig = useRuntimeConfig()
amp.init(runtimeConfig.public.AMP)

const data = await fetchLatestBlocks({ limit: 15 })
const data = await fetchLatestBlocks({ limit: 100 })
appStore.latestBlocks = data
appStore.isLatestBlocksLoaded = true

Expand Down
7 changes: 6 additions & 1 deletion assets/icons.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions assets/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ $grayscale: (
--brand: #0ade71;
--blue: #076acd;
--red: #eb5757;
--dark-red: #592121;
--orange: #ff5a17;
--light-orange: #ff8351;
--yellow: #ffd400;
--green: #0ade71;
--neutral-green: #33a853;
--purple: #5856de;
--mint: #18D2A5;
--neutral-mint: #109373;
--dark-mint: #1e473d;

/* Grayscale */
@each $gray, $value in $grayscale {
Expand Down Expand Up @@ -100,12 +104,16 @@ $grayscale: (
--brand: #33a853;
--blue: #0b84fe;
--red: #eb5757;
--dark-red: #592121;
--orange: #ff5a17;
--light-orange: #ff8351;
--yellow: #ffd400;
--green: #0ade71;
--neutral-green: #33a853;
--purple: #5856de;
--mint: #18D2A5;
--neutral-mint: #109373;
--dark-mint: #1e473d;

/* Grayscale */
@each $gray, $value in $grayscale {
Expand Down Expand Up @@ -157,12 +165,16 @@ $grayscale: (
--brand: #0ade71;
--blue: #0b84fe;
--red: #eb5757;
--dark-red: #592121;
--orange: #ff5a17;
--light-orange: #ff8351;
--yellow: #e5c10b;
--green: #26c071;
--neutral-green: #33a853;
--purple: #5856de;
--mint: #18D2A5;
--neutral-mint: #109373;
--dark-mint: #1e473d;

/* Grayscale */
@each $gray, $value in $grayscale {
Expand Down Expand Up @@ -369,3 +381,16 @@ body {
.ods_group {
transition: all 0.3s ease;
}

.transition_all {
transition: all 0.3s ease;
}

.dimmed {
filter: brightness(40%);
transition: all 0.3s ease;
}

.bar {
transition: filter 0.3s;
}
19 changes: 19 additions & 0 deletions components/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ const mainLinks = reactive([
},
],
},
{
icon: "bar-chart",
name: "Statistics",
path: "/stats",
children: [
{
name: "General",
path: "/stats?tab=General",
},
{
name: "Blocks",
path: "/stats?tab=Blocks",
},
{
name: "Rollups",
path: "/stats?tab=Rollups",
},
],
},
])

const isModularLinksCollapsed = ref(false)
Expand Down
37 changes: 37 additions & 0 deletions components/LoadingHolder.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<script setup>
import Spinner from "@/components/ui/Spinner.vue"
const props = defineProps({
title: {
type: String,
required: true,
},
subtitle: {
type: String,
required: false,
},
})
</script>

<template>
<ClientOnly>
<Transition name="fade">
<Flex direction="column" align="center" gap="16" :class="$style.loading">
<Spinner size="16" />

<Flex direction="column" align="center" gap="8">
<Text size="14" weight="500" color="primary"> {{ title }} </Text>
<Text v-if="subtitle" size="13" weight="500" color="tertiary"> {{ subtitle }} </Text>
</Flex>
</Flex>
</Transition>
</ClientOnly>
</template>

<style module>
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
Loading
Loading