Skip to content

Commit

Permalink
Merge pull request #84 from celenium-io/dev
Browse files Browse the repository at this point in the history
v1.14.0
  • Loading branch information
GusevPM authored Aug 15, 2024
2 parents 6eee8b5 + 5c46fc8 commit 3fabfe4
Show file tree
Hide file tree
Showing 37 changed files with 11,147 additions and 4,161 deletions.
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 @@ -34,12 +34,16 @@ $grayscale: (
--brand: #18d2a5;
--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 @@ -99,12 +103,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 @@ -156,12 +164,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 @@ -368,3 +380,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

0 comments on commit 3fabfe4

Please sign in to comment.