Skip to content

Commit 3edc2ad

Browse files
authored
Merge branch 'dev' into CLS-228-blobstream
2 parents 8bb9022 + 0eea38e commit 3edc2ad

13 files changed

Lines changed: 441 additions & 70 deletions

File tree

app.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import CommandMenu from "@/components/cmd/CommandMenu.vue"
1010
/** API */
1111
import { fetchGasPrice } from "@/services/api/gas"
1212
import { fetchHead } from "@/services/api/main"
13+
import { fetchLatestBlocks } from "@/services/api/block"
1314
1415
/** Store */
1516
import { useAppStore } from "@/store/app"
@@ -21,18 +22,22 @@ bookmarksStore.$subscribe((mutation, state) => {
2122
})
2223
2324
onMounted(async () => {
25+
if (localStorage.bookmarks) {
26+
bookmarksStore.bookmarks = JSON.parse(localStorage.bookmarks)
27+
}
28+
2429
const runtimeConfig = useRuntimeConfig()
2530
amp.init(runtimeConfig.public.AMP)
2631
32+
const data = await fetchLatestBlocks({ limit: 15 })
33+
appStore.latestBlocks = data
34+
appStore.isLatestBlocksLoaded = true
35+
2736
const head = await fetchHead()
2837
if (head) appStore.lastHead = head
2938
3039
Socket.init()
3140
32-
if (localStorage.bookmarks) {
33-
bookmarksStore.bookmarks = JSON.parse(localStorage.bookmarks)
34-
}
35-
3641
const gasPrice = await fetchGasPrice()
3742
appStore.gas = gasPrice
3843

assets/styles/base.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ $grayscale: (
6767
--block-progress-fill-background: #33a853;
6868
--logo-name: var(--txt-primary);
6969
--bar-fill: rgb(243, 147, 45);
70-
--validator-active: #85F891;
71-
--validator-inactive: #65C7F8;
72-
--validator-jailed: #F8774A;
73-
--supply: #65C7F8;
74-
--staking: #85F891;
75-
70+
--validator-active: #85f891;
71+
--validator-inactive: #65c7f8;
72+
--validator-jailed: #f8774a;
73+
--supply: #65c7f8;
74+
--staking: #85f891;
7675
}
7776

7877
[theme="dimmed"] {

0 commit comments

Comments
 (0)