Skip to content

Commit 0b39066

Browse files
committed
cleanup & minor fixes
1 parent d32bac4 commit 0b39066

File tree

22 files changed

+1200
-1780
lines changed

22 files changed

+1200
-1780
lines changed

.oxlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2+
"rules": {
3+
"no-async-promise-executor": "off"
4+
},
25
"ignorePatterns": ["services/lumina-node-wasm/**", "services/utils/blob.js", "services/utils/blobtx.js"]
36
}

assets/styles/base.scss

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ $grayscale: (
4646
--neutral-mint: #109373;
4747
--dark-mint: #1e473d;
4848
--legendary: #ff5a17;
49-
--epic: #7448E7;
50-
--rare: #007AFF;
49+
--epic: #7448e7;
50+
--rare: #007aff;
5151

5252
/* Grayscale */
5353
@each $gray, $value in $grayscale {
@@ -78,10 +78,9 @@ $grayscale: (
7878
--validator-active: #85f891;
7979
--validator-inactive: #1ca7ed;
8080
--validator-jailed: #f8774a;
81-
// --supply: #65c7f8;
8281
--supply: #1ca7ed;
8382
--staking: #85f891;
84-
--geo-map: #8B8C8D;
83+
--geo-map: #8b8c8d;
8584
}
8685

8786
[theme="dimmed"] {
@@ -105,7 +104,6 @@ $grayscale: (
105104
--txt-white: rgba(255, 255, 255, 95%);
106105

107106
/* General */
108-
// --brand: #18d2a5;
109107
--brand: #33a853;
110108
--blue: #0b84fe;
111109
--red: #eb5757;
@@ -120,8 +118,8 @@ $grayscale: (
120118
--neutral-mint: #109373;
121119
--dark-mint: #1e473d;
122120
--legendary: #ff5a17;
123-
--epic: #7448E7;
124-
--rare: #007AFF;
121+
--epic: #7448e7;
122+
--rare: #007aff;
125123

126124
/* Grayscale */
127125
@each $gray, $value in $grayscale {
@@ -146,7 +144,7 @@ $grayscale: (
146144
--block-progress-fill-background: #33a853;
147145
--logo-name: var(--txt-primary);
148146
--bar-fill: rgb(243, 147, 45);
149-
--geo-map: #8B8C8D;
147+
--geo-map: #8b8c8d;
150148
}
151149

152150
[theme="light"] {
@@ -170,7 +168,6 @@ $grayscale: (
170168
--txt-white: rgba(255, 255, 255, 95%);
171169

172170
/* General */
173-
// --brand: #18d2a5;
174171
--brand: #0ade71;
175172
--blue: #0b84fe;
176173
--red: #eb5757;
@@ -185,8 +182,8 @@ $grayscale: (
185182
--neutral-mint: #109373;
186183
--dark-mint: #c4f9eb;
187184
--legendary: #ff5a17;
188-
--epic: #7448E7;
189-
--rare: #007AFF;
185+
--epic: #7448e7;
186+
--rare: #007aff;
190187

191188
/* Grayscale */
192189
@each $gray, $value in $grayscale {
@@ -211,7 +208,7 @@ $grayscale: (
211208
--block-progress-fill-background: #33a853;
212209
--logo-name: var(--txt-primary);
213210
--bar-fill: rgb(243, 147, 45);
214-
--geo-map: #8B8C8D;
211+
--geo-map: #8b8c8d;
215212
}
216213

217214
@font-face {
@@ -273,7 +270,7 @@ body {
273270
-webkit-font-smoothing: antialiased;
274271
-moz-osx-font-smoothing: grayscale;
275272
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
276-
273+
277274
user-select: text;
278275
}
279276

components/LeftSidebar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const mainLinks = reactive([
9696
path: "/stats?tab=ecosystem",
9797
queryParam: { tab: "ecosystem" },
9898
show: false,
99-
// show: isMainnet(),
10099
},
101100
],
102101
},

components/modals/BlobModal.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ const getBlobMetadata = async () => {
7373
} else {
7474
notFound.value = true
7575
}
76-
77-
// isLoading.value = false
7876
}
7977
8078
watch(
@@ -88,7 +86,6 @@ watch(
8886
8987
await getBlobMetadata()
9088
91-
9289
const { data } = await fetchBlobBlockscoutData({
9390
height: cacheStore.selectedBlob.height,
9491
namespace: cacheStore.selectedBlob.hash,
@@ -381,7 +378,6 @@ const handlePreviewContent = () => {
381378
<Icon name="arrow-narrow-up-right" size="12" color="tertiary" />
382379
</Button>
383380
384-
385381
<Button @click="handleDownload" type="secondary" size="small" :disabled="isLoading">
386382
<Icon name="download" size="14" color="secondary" />
387383

components/modals/VestingDetailsModal.vue

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
/** Vendor */
3-
import { DateTime } from "luxon";
3+
import { DateTime } from "luxon"
44
55
/** API */
66
import { fetchVestingPeriods } from "@/services/api/address"
@@ -9,10 +9,10 @@ import { fetchVestingPeriods } from "@/services/api/address"
99
import Button from "@/components/ui/Button.vue"
1010
import Modal from "@/components/ui/Modal.vue"
1111
import Spinner from "@/components/ui/Spinner.vue"
12-
import Tooltip from "@/components/ui/Tooltip.vue";
12+
import Tooltip from "@/components/ui/Tooltip.vue"
1313
1414
/** Services */
15-
import { capitilize, comma } from "@/services/utils";
15+
import { capitilize, comma } from "@/services/utils"
1616
1717
/** Store */
1818
import { useCacheStore } from "@/store/cache"
@@ -55,14 +55,12 @@ const getVestingPeriods = async () => {
5555
isLoading.value = false
5656
}
5757
58-
5958
watch(
6059
() => props.show,
6160
async () => {
6261
if (props.show) {
6362
vesting.value = cacheStore.current.vesting
6463
nextTick(async () => {
65-
// vesting.value = cacheStore.current.vesting
6664
getVestingPeriods()
6765
})
6866
}
@@ -73,15 +71,15 @@ watch(
7371
() => page.value,
7472
() => {
7573
getVestingPeriods()
76-
}
74+
},
7775
)
7876
</script>
7977
8078
<template>
8179
<Modal :show="show" @onClose="emit('onClose')" width="500" disable-trap>
8280
<Flex direction="column" gap="24">
8381
<Text size="16" weight="600" color="primary">Releasing Schedule</Text>
84-
82+
8583
<Flex align="center" justify="between" wide>
8684
<Flex align="center" direction="column" gap="12" :class="$style.value">
8785
<Flex align="center" gap="4">
@@ -91,7 +89,10 @@ watch(
9189
9290
<Flex align="center" justify="start" gap="4" wide>
9391
<Text size="12" weight="500" color="tertiary">Total Amount:</Text>
94-
<AmountInCurrency :amount="{ value: vesting.amount, decimal: 6 }" :styles="{ amount: { size: '13' }, currency: { size: '13', color: 'primary' }}" />
92+
<AmountInCurrency
93+
:amount="{ value: vesting.amount, decimal: 6 }"
94+
:styles="{ amount: { size: '13' }, currency: { size: '13', color: 'primary' } }"
95+
/>
9596
</Flex>
9697
</Flex>
9798
@@ -127,41 +128,40 @@ watch(
127128
<tr v-for="vp in vestingPeriods">
128129
<td>
129130
<Flex align="center" justify="start" gap="4">
130-
<Text size="12" weight="600" color="primary">
131-
{{ DateTime.fromISO(vp.time).setLocale("en").toFormat("yyyy LLL d, t") }}
132-
</Text>
131+
<Text size="12" weight="600" color="primary">
132+
{{ DateTime.fromISO(vp.time).setLocale("en").toFormat("yyyy LLL d, t") }}
133+
</Text>
133134
134-
<Text size="11" weight="500" color="tertiary">
135-
({{ DateTime.fromISO(vp.time).toRelative({ locale: "en", style: "short" }) }})
136-
</Text>
135+
<Text size="11" weight="500" color="tertiary">
136+
({{ DateTime.fromISO(vp.time).toRelative({ locale: "en", style: "short" }) }})
137+
</Text>
137138
</Flex>
138139
</td>
139140
<td>
140-
<AmountInCurrency :amount="{ value: vp.amount, decimal: 6 }" :styles="{ amount: { size: '13' }, currency: { size: '13' }}" />
141+
<AmountInCurrency
142+
:amount="{ value: vp.amount, decimal: 6 }"
143+
:styles="{ amount: { size: '13' }, currency: { size: '13' } }"
144+
/>
141145
</td>
142146
<td>
143147
<Flex align="center" justify="center">
144148
<Tooltip v-if="DateTime.fromISO(vp.time).ts <= DateTime.now().ts" position="start" delay="500">
145149
<Icon name="check" size="16" color="neutral-green" />
146150
147-
<template #content>
148-
Released
149-
</template>
151+
<template #content> Released </template>
150152
</Tooltip>
151153
152154
<Tooltip v-else position="start" delay="500">
153155
<Icon name="clock-forward" size="16" color="secondary" />
154156
155-
<template #content>
156-
Waiting
157-
</template>
157+
<template #content> Waiting </template>
158158
</Tooltip>
159159
</Flex>
160160
</td>
161161
</tr>
162162
</tbody>
163163
</table>
164-
164+
165165
<!-- Pagination -->
166166
<Flex align="center" justify="end" gap="6" :class="$style.pagination">
167167
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1">
@@ -275,5 +275,4 @@ watch(
275275
height: 1px;
276276
background: var(--op-5);
277277
}
278-
279278
</style>

0 commit comments

Comments
 (0)