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

Dev #8

Merged
merged 36 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
aac0192
fix(txs): columns order
xdeq Dec 13, 2023
2d422d5
feat(namespace): analytics charts
xdeq Dec 14, 2023
0d35065
feat: gas tracker
xdeq Dec 17, 2023
34fa47c
feat(cmd): gas tracker command
xdeq Dec 17, 2023
79c8d80
fix(Footer): gas link && fix gas tracker page meta tags
xdeq Dec 17, 2023
59b9688
fix(gas): mobile
xdeq Dec 17, 2023
c5ebcb7
fix(gas): tia typo
xdeq Dec 17, 2023
b521dec
feat(gas): copy button
xdeq Dec 17, 2023
37f0afa
fix typo
xdeq Dec 17, 2023
24ef323
fix(GasPriceChart): title
xdeq Dec 17, 2023
31b24bd
fix(GasEfficiencyChart): lines tooltip
xdeq Dec 17, 2023
416e814
feat(gas): hint
xdeq Dec 17, 2023
a3ace39
feat(gas): dot
xdeq Dec 17, 2023
e89d98c
fix(NamespaceCharts): dot
xdeq Dec 17, 2023
77f791d
fix(gas): min-width for mobile
xdeq Dec 17, 2023
1605a1a
feat(GasWidget): values utia
xdeq Dec 17, 2023
3d90d90
fix(GasEfficiencyChart): used/limit
xdeq Dec 17, 2023
61d3ab0
fix(gas): chart redrawing
xdeq Dec 18, 2023
f0eeafd
fix(BlocksTimelineTable): txs counter
xdeq Dec 18, 2023
f99722c
fix(BlockWidget): avg block time tooltip
xdeq Dec 18, 2023
814f21a
feat(timeline): pause
xdeq Dec 19, 2023
abe7475
feat(timeline): auto select button
xdeq Dec 19, 2023
98e9b71
feat(timeline): selection effect
xdeq Dec 19, 2023
57a683c
fix(NamespaceCharts): typo onBeforeUnmount
xdeq Dec 19, 2023
559c760
fix(gas): charts typo onBeforeUnmount
xdeq Dec 19, 2023
db777e9
feat(NamespaceCharts): 7/24 days
xdeq Dec 19, 2023
d35ebe4
fix(gas): tooltip about %
xdeq Dec 19, 2023
3bf88fa
feat(NamespaceCharts): 24 hours
xdeq Dec 19, 2023
a20124c
fix empty y axis labels & gas widget rounding
xdeq Dec 20, 2023
ca0f2d4
sitemap: new route for gas
xdeq Dec 20, 2023
31280a8
fix(GasWidget): toFixed
xdeq Dec 20, 2023
1aa239e
fix(gas): toFixed 3 rounding
xdeq Dec 20, 2023
975ca90
fix chart tooltip pos
xdeq Dec 20, 2023
462633c
fix sitemap
xdeq Dec 20, 2023
fcabd33
fix gas charts label
xdeq Dec 20, 2023
8d425bc
chore: release v1.3.0
xdeq Dec 20, 2023
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
12 changes: 12 additions & 0 deletions assets/icons.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ $grayscale: (
--btn-white-bg: rgba(255, 255, 255, 90%);
--btn-white-bg-hover: rgba(255, 255, 255, 75%);
--btn-white-bg-active: rgba(255, 255, 255, 90%);
--btn-secondary-bg: rgba(255, 255, 255, 5%);
--btn-secondary-bg-hover: rgba(255, 255, 255, 8%);
--btn-secondary-bg-active: rgba(255, 255, 255, 5%);
--btn-secondary-bg: rgba(255, 255, 255, 8%);
--btn-secondary-bg-hover: rgba(255, 255, 255, 10%);
--btn-secondary-bg-active: rgba(255, 255, 255, 7%);

/** Other */
--network-widget-background: rgba(0, 0, 0, 10%);
Expand Down
5 changes: 3 additions & 2 deletions components/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ const handleActionCallback = (callback, notification) => {

box-sizing: border-box;
width: 330px;
background: var(--notification-background);
background: var(--card-background);
box-shadow: inset 0 0 0 2px var(--op-5), 0 14px 34px rgba(0, 0, 0, 15%), 0 4px 14px rgba(0, 0, 0, 5%);

border-radius: 8px;
padding: 12px;
Expand All @@ -136,7 +137,7 @@ const handleActionCallback = (callback, notification) => {

.description {
font-size: 12px;
font-weight: 500;
font-weight: 600;
line-height: 18px;
color: var(--txt-tertiary);

Expand Down
24 changes: 21 additions & 3 deletions components/Skeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
const props = defineProps({
w: String,
h: String,
c: {
type: String,
default: "gray",
},
r: {
type: String,
default: "50",
Expand All @@ -10,14 +14,28 @@ const props = defineProps({
</script>

<template>
<div :style="{ width: `${w}px`, height: `${h}px`, borderRadius: `${r}px` }" :class="$style.wrapper" />
<div :style="{ width: `${w}px`, height: `${h}px`, borderRadius: `${r}px` }" :class="[$style.wrapper, $style[c]]" />
</template>

<style module>
.wrapper {
background: var(--op-10);

animation: skeleton 1s ease infinite;

&.green {
background: rgba(10, 219, 111, 30%);
}

&.yellow {
background: rgba(255, 212, 0, 30%);
}

&.red {
background: var(--red);
}

&.gray {
background: var(--op-10);
}
}

@keyframes skeleton {
Expand Down
3 changes: 3 additions & 0 deletions components/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ const handleChangeTheme = (theme) => {
<NuxtLink to="/addresses" :class="$style.link">
<Text size="12" weight="500" color="tertiary"> Addresses </Text>
</NuxtLink>
<NuxtLink to="/gas" :class="$style.link">
<Text size="12" weight="500" color="tertiary">Gas Tracker</Text>
</NuxtLink>
</Flex>
</Flex>
</Flex>
Expand Down
9 changes: 5 additions & 4 deletions components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { isMac, getNetworkName } from "@/services/utils/general"
/** UI */
import { Dropdown, DropdownItem, DropdownTitle } from "@/components/ui/Dropdown"
import Tooltip from "@/components/ui/Tooltip.vue"
import Button from "@/components/ui/Button.vue"
import Kbd from "@/components/ui/Kbd.vue"

/** Store */
Expand Down Expand Up @@ -89,7 +90,7 @@ const handleNavigate = (url) => {

<Flex justify="center" align="center" wrap="wrap" gap="8" :class="$style.links">
<NuxtLink to="/" :class="[$style.link, isActive('index') && $style.active]">
<Text size="13" weight="600" color="tertiary">Explorer</Text>
<Text size="13" weight="600" color="tertiary">Explore</Text>
</NuxtLink>

<NuxtLink to="/txs" :class="[$style.link, isActive('txs') && $style.active]">
Expand Down Expand Up @@ -127,9 +128,9 @@ const handleNavigate = (url) => {
</Dropdown>

<Tooltip position="end" delay="250">
<Flex @click="appStore.showCmd = true" align="center" gap="8" :class="$style.button">
<Button @click="appStore.showCmd = true" type="secondary" size="small">
<Icon name="search" size="16" color="secondary" />
</Flex>
</Button>

<template #content>
<Flex align="center" gap="8">
Expand All @@ -146,7 +147,7 @@ const handleNavigate = (url) => {

<Flex v-if="showPopup" @click="showPopup = false" direction="column" gap="8" :class="$style.menu_popup">
<NuxtLink to="/" :class="[$style.link, isActive('index') && $style.active]">
<Text size="13" weight="600" color="tertiary">Explorer</Text>
<Text size="13" weight="600" color="tertiary">Explore</Text>
</NuxtLink>

<NuxtLink to="/txs" :class="[$style.link, isActive('txs') && $style.active]">
Expand Down
9 changes: 9 additions & 0 deletions components/cmd/CommandMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ const quickCommandsActions = [
router.push(`/address/${hash}`)
},
},
{
type: "callback",
icon: "gas",
title: "Open Gas Tracker",
runText: "Open Gas Tracker",
callback: () => {
router.push("/gas")
},
},
]
const quickCommandsGroup = computed(() => {
return {
Expand Down
Loading
Loading