Skip to content

Commit 7d1ebfc

Browse files
committed
refactor: prettier
1 parent c0a07f0 commit 7d1ebfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+224
-147
lines changed

frontend/src/components/HomePage/Features.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { hidden } from '@/utils.js'
55
<template>
66
<section id="features" class="container flex flex-col items-center justify-center gap-10">
77
<div class="flex flex-col items-center gap-6">
8-
<span
9-
class="inline-block text-xs font-bold uppercase text-[#5AB2F7]"
10-
>
8+
<span class="inline-block text-xs font-bold uppercase text-[#5AB2F7]">
119
{{ $t('features.category') }}
1210
</span>
1311
<span class="text-center text-2xl font-bold uppercase">

frontend/src/components/HomePage/Main.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script setup lang="ts">
2-
import useConfetti from '@/composables/useConfetti'
3-
import Sparkles from '@/components/ui/Sparkles.vue'
2+
import { Stars02 } from 'untitledui-js/vue'
3+
44
import Discord from '@/components/icons/Socials/Discord.vue'
5+
import Sparkles from '@/components/ui/Sparkles.vue'
56
import { Button } from '@/components/ui/button'
7+
import useConfetti from '@/composables/useConfetti'
68
import { hidden } from '@/utils'
7-
import { Stars02 } from "untitledui-js/vue";
89
910
function randomInRange(min: number, max: number) {
1011
return Math.random() * (max - min) + min

frontend/src/components/HomePage/OpenSource.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<script lang="ts" setup>
22
import { useFetch } from '@vueuse/core'
3-
import { openLink } from '@/utils'
3+
import { GitBranch01, Star01 } from 'untitledui-js/vue'
44
import { computed, ref } from 'vue'
5-
import { Button } from '@/components/ui/button'
6-
import { Star01, GitBranch01 } from 'untitledui-js/vue'
75
86
import Github from '@/components/icons/Socials/Github.vue'
7+
import { Button } from '@/components/ui/button'
8+
import { openLink } from '@/utils'
9+
910
const repoUrl = ref('https://api.github.com/repos/ValoryApp/Valory')
1011
const contributorsUrl = ref('https://api.github.com/repos/ValoryApp/Valory/contributors')
1112
@@ -30,10 +31,7 @@ const contributorsCount = computed(() => contributorsData.value?.length ?? 0)
3031
<Button @click="openLink('https://github.com/ValoryApp/Valory')" class="px-6"
3132
>{{ $t('source.contribute') }} ({{ contributorsCount }})</Button
3233
>
33-
<Button
34-
variant="outline2"
35-
@click="openLink('https://github.com/ValoryApp/Valory/forks')"
36-
>
34+
<Button variant="outline2" @click="openLink('https://github.com/ValoryApp/Valory/forks')">
3735
<GitBranch01 :size="22" />
3836
{{ forksCount }}
3937
</Button>

frontend/src/components/HomePage/Streamers.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import StreamersMarquee from '@/components/HomePage/StreamersMarquee.vue'
55
<template>
66
<div id="streamers" class="container m-auto flex flex-col items-center gap-10">
77
<div class="flex flex-col items-center gap-6">
8-
<span
9-
class="inline-block text-xs font-bold uppercase text-[#FF930F]"
10-
>
8+
<span class="inline-block text-xs font-bold uppercase text-[#FF930F]">
119
{{ $t('streamers.category') }}
1210
</span>
1311
<span class="text-center text-2xl font-bold uppercase">

frontend/src/components/HomePage/StreamersMarquee.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<script setup lang="ts">
2-
import { STREAMERS_DATA } from '@/data/Streamers.data'
32
import Marquee from '@/components/ui/Marquee.vue'
43
import StreamersCard from '@/components/ui/StreamersCard.vue'
4+
import { STREAMERS_DATA } from '@/data/Streamers.data'
55
66
const middleIndex = Math.floor(STREAMERS_DATA.length / 3)
77
88
const [firstRow, secondRow, thirdRow] = [
99
STREAMERS_DATA.slice(0, middleIndex),
1010
STREAMERS_DATA.slice(middleIndex, 2 * middleIndex),
11-
STREAMERS_DATA.slice(2 * middleIndex)
12-
];
13-
11+
STREAMERS_DATA.slice(2 * middleIndex),
12+
]
1413
</script>
1514

1615
<template>

frontend/src/components/icons/CheckCircle.vue

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,60 @@ const props = withDefaults(defineProps<Props>(), {
99
</script>
1010

1111
<template>
12-
<svg xmlns="http://www.w3.org/2000/svg" id="root" viewBox="0 0 40 41" fill="none" class="hidden dark:block" :height="props.size" :width="props.size">
13-
<path d="M27.187,16.156L27.187,16.157C23.88,19.315 21.045,22.933 18.768,26.899L18.768,26.899C18.692,27.033 18.586,27.146 18.458,27.232C18.331,27.318 18.185,27.373 18.033,27.393C17.88,27.413 17.726,27.398 17.58,27.349C17.434,27.299 17.302,27.217 17.194,27.109L12.794,22.706L12.787,22.7L12.781,22.694C12.683,22.603 12.604,22.492 12.549,22.37C12.495,22.247 12.465,22.115 12.463,21.98C12.46,21.846 12.485,21.713 12.535,21.588C12.586,21.464 12.661,21.35 12.756,21.256C12.85,21.161 12.964,21.086 13.088,21.035C13.213,20.985 13.346,20.96 13.48,20.963C13.615,20.965 13.747,20.994 13.87,21.049C13.992,21.104 14.103,21.183 14.194,21.281L14.2,21.287L14.207,21.294L17.251,24.336L17.694,24.779L18.028,24.248C20.215,20.758 22.828,17.555 25.805,14.71C25.9,14.619 26.012,14.548 26.135,14.5C26.257,14.453 26.388,14.43 26.519,14.433C26.65,14.436 26.78,14.465 26.9,14.518C27.02,14.571 27.129,14.647 27.219,14.742C27.31,14.837 27.381,14.949 27.429,15.072C27.476,15.194 27.499,15.325 27.496,15.456C27.493,15.587 27.464,15.717 27.411,15.837C27.358,15.957 27.282,16.066 27.187,16.156ZM20,37C24.376,37 28.573,35.262 31.667,32.167C34.762,29.073 36.5,24.876 36.5,20.5C36.5,16.124 34.762,11.927 31.667,8.833C28.573,5.738 24.376,4 20,4C15.624,4 11.427,5.738 8.333,8.833C5.238,11.927 3.5,16.124 3.5,20.5C3.5,24.876 5.238,29.073 8.333,32.167C11.427,35.262 15.624,37 20,37Z" stroke-width="1" stroke-linejoin="bevel" fill="#10B981" stroke="black"></path>
14-
<circle cx="20" cy="20.5" r="15.5" stroke="url(#paint0_linear_343_10907)" stroke-opacity="0.3"></circle>
15-
<circle cx="20" cy="20.5" r="18" stroke="url(#paint1_linear_343_10907)" stroke-opacity="0.3" stroke-width="4"></circle>
16-
<defs>
17-
<linearGradient id="paint0_linear_343_10907" x1="12.1082" y1="0.237206" x2="43.0515" y2="46.6521" gradientUnits="userSpaceOnUse">
18-
<stop stop-color="white"></stop>
19-
<stop offset="1" stop-color="white" stop-opacity="0"></stop>
20-
</linearGradient>
21-
<linearGradient id="paint1_linear_343_10907" x1="-52.0569" y1="-87.8493" x2="40.5249" y2="45.237" gradientUnits="userSpaceOnUse">
22-
<stop offset="0.63328" stop-color="#10B981"></stop>
23-
<stop offset="1" stop-color="#10B981" stop-opacity="0"></stop>
12+
<svg
13+
xmlns="http://www.w3.org/2000/svg"
14+
id="root"
15+
viewBox="0 0 40 41"
16+
fill="none"
17+
class="hidden dark:block"
18+
:height="props.size"
19+
:width="props.size"
20+
>
21+
<path
22+
d="M27.187,16.156L27.187,16.157C23.88,19.315 21.045,22.933 18.768,26.899L18.768,26.899C18.692,27.033 18.586,27.146 18.458,27.232C18.331,27.318 18.185,27.373 18.033,27.393C17.88,27.413 17.726,27.398 17.58,27.349C17.434,27.299 17.302,27.217 17.194,27.109L12.794,22.706L12.787,22.7L12.781,22.694C12.683,22.603 12.604,22.492 12.549,22.37C12.495,22.247 12.465,22.115 12.463,21.98C12.46,21.846 12.485,21.713 12.535,21.588C12.586,21.464 12.661,21.35 12.756,21.256C12.85,21.161 12.964,21.086 13.088,21.035C13.213,20.985 13.346,20.96 13.48,20.963C13.615,20.965 13.747,20.994 13.87,21.049C13.992,21.104 14.103,21.183 14.194,21.281L14.2,21.287L14.207,21.294L17.251,24.336L17.694,24.779L18.028,24.248C20.215,20.758 22.828,17.555 25.805,14.71C25.9,14.619 26.012,14.548 26.135,14.5C26.257,14.453 26.388,14.43 26.519,14.433C26.65,14.436 26.78,14.465 26.9,14.518C27.02,14.571 27.129,14.647 27.219,14.742C27.31,14.837 27.381,14.949 27.429,15.072C27.476,15.194 27.499,15.325 27.496,15.456C27.493,15.587 27.464,15.717 27.411,15.837C27.358,15.957 27.282,16.066 27.187,16.156ZM20,37C24.376,37 28.573,35.262 31.667,32.167C34.762,29.073 36.5,24.876 36.5,20.5C36.5,16.124 34.762,11.927 31.667,8.833C28.573,5.738 24.376,4 20,4C15.624,4 11.427,5.738 8.333,8.833C5.238,11.927 3.5,16.124 3.5,20.5C3.5,24.876 5.238,29.073 8.333,32.167C11.427,35.262 15.624,37 20,37Z"
23+
stroke-width="1"
24+
stroke-linejoin="bevel"
25+
fill="#10B981"
26+
stroke="black"
27+
></path>
28+
<circle
29+
cx="20"
30+
cy="20.5"
31+
r="15.5"
32+
stroke="url(#paint0_linear_343_10907)"
33+
stroke-opacity="0.3"
34+
></circle>
35+
<circle
36+
cx="20"
37+
cy="20.5"
38+
r="18"
39+
stroke="url(#paint1_linear_343_10907)"
40+
stroke-opacity="0.3"
41+
stroke-width="4"
42+
></circle>
43+
<defs>
44+
<linearGradient
45+
id="paint0_linear_343_10907"
46+
x1="12.1082"
47+
y1="0.237206"
48+
x2="43.0515"
49+
y2="46.6521"
50+
gradientUnits="userSpaceOnUse"
51+
>
52+
<stop stop-color="white"></stop>
53+
<stop offset="1" stop-color="white" stop-opacity="0"></stop>
2454
</linearGradient>
25-
</defs>
26-
</svg>
27-
</template>
55+
<linearGradient
56+
id="paint1_linear_343_10907"
57+
x1="-52.0569"
58+
y1="-87.8493"
59+
x2="40.5249"
60+
y2="45.237"
61+
gradientUnits="userSpaceOnUse"
62+
>
63+
<stop offset="0.63328" stop-color="#10B981"></stop>
64+
<stop offset="1" stop-color="#10B981" stop-opacity="0"></stop>
65+
</linearGradient>
66+
</defs>
67+
</svg>
68+
</template>

frontend/src/components/ui/AppSidebar.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<script setup lang="ts">
2-
import { type SidebarProps, SidebarTrigger } from '@/components/ui/sidebar'
3-
2+
import Valory from '@/components/icons/Valory.vue'
3+
import NavExtra from '@/components/ui/NavExtra.vue'
44
import NavMain from '@/components/ui/NavMain.vue'
55
import NavUser from '@/components/ui/NavUser.vue'
6+
import { type SidebarProps, SidebarTrigger } from '@/components/ui/sidebar'
67
import {
78
Sidebar,
89
SidebarContent,
910
SidebarFooter,
1011
SidebarHeader,
1112
SidebarRail,
1213
} from '@/components/ui/sidebar'
13-
1414
import { NAV_DATA } from '@/data/dashboard/HeaderNav.data'
15-
import Valory from '@/components/icons/Valory.vue'
16-
import NavExtra from '@/components/ui/NavExtra.vue'
1715
1816
const props = withDefaults(defineProps<SidebarProps>(), {
1917
collapsible: 'icon',

frontend/src/components/ui/Footer.vue

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
<script setup lang="ts">
2-
import { FOOTER_NAV_PRODUCT_DATA } from '@/data/FooterNav.data'
3-
import { hidden, moveTo, openLink } from "@/utils";
4-
import { Button } from '@/components/ui/button'
5-
import Github from '@/components/icons/Socials/Github.vue'
6-
import Valory from '@/components/icons/Valory.vue'
7-
import Twitch from '@/components/icons/Socials/Twitch.vue'
2+
import { Hearts } from 'untitledui-js/vue'
3+
4+
import CheckCircle from '@/components/icons/CheckCircle.vue'
85
import Discord from '@/components/icons/Socials/Discord.vue'
6+
import Github from '@/components/icons/Socials/Github.vue'
97
import Telegram from '@/components/icons/Socials/Telegram.vue'
10-
import { Hearts } from 'untitledui-js/vue'
11-
import CheckCircle from "@/components/icons/CheckCircle.vue";
8+
import Twitch from '@/components/icons/Socials/Twitch.vue'
9+
import Valory from '@/components/icons/Valory.vue'
10+
import { Button } from '@/components/ui/button'
11+
import { FOOTER_NAV_PRODUCT_DATA } from '@/data/FooterNav.data'
12+
import { hidden, moveTo, openLink } from '@/utils'
1213
</script>
1314
<template>
14-
<footer class="container m-auto py-16 flex flex-col gap-10">
15+
<footer class="container m-auto flex flex-col gap-10 py-16">
1516
<div class="flex justify-between gap-8">
1617
<div class="flex flex-col gap-4" :class="[hidden ? 'max-w-52' : '']">
17-
<div @click="moveTo('main')" class="flex flex-row gap-3 items-center">
18+
<div @click="moveTo('main')" class="flex flex-row items-center gap-3">
1819
<Valory :size="25" />
19-
<span class="font-valory text-lg hover:text-gray-300 cursor-pointer transition-colors">VALORY</span>
20+
<span class="cursor-pointer font-valory text-lg transition-colors hover:text-gray-300"
21+
>VALORY</span
22+
>
2023
</div>
2124
<span class="whitespace-pre-line text-sm font-normal">
2225
{{ $t('footer.left.description') }}
2326
</span>
24-
<span class="text-[#7D7D7D] text-xs">
27+
<span class="text-xs text-[#7D7D7D]">
2528
© 2023-2025 Valory. {{ $t('footer.copyright') }}
2629
</span>
2730
<div class="flex flex-wrap gap-2">
@@ -79,11 +82,7 @@ import CheckCircle from "@/components/icons/CheckCircle.vue";
7982
class="flex"
8083
:class="[hidden ? 'flex-col justify-start gap-8' : 'flex-row justify-end gap-32']"
8184
>
82-
<div
83-
v-for="nav in FOOTER_NAV_PRODUCT_DATA"
84-
:key="nav.title"
85-
class="flex flex-col gap-2"
86-
>
85+
<div v-for="nav in FOOTER_NAV_PRODUCT_DATA" :key="nav.title" class="flex flex-col gap-2">
8786
<span class="text-base font-bold">
8887
{{ $t(`footer.right.sections.${nav.id === 1 ? 'first' : 'second'}.title`) }}
8988
</span>

frontend/src/components/ui/Header.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script setup lang="ts">
2-
import { NAV_DATA } from '@/data/HeaderNav.data'
32
import Twitch from '@/components/icons/Socials/Twitch.vue'
43
import Valory from '@/components/icons/Valory.vue'
5-
import { Button } from '@/components/ui/button'
64
import LanguageSwitcher from '@/components/ui/LanguageSwitcher.vue'
7-
import { hidden } from '@/utils'
5+
import { Button } from '@/components/ui/button'
6+
import { NAV_DATA } from '@/data/HeaderNav.data'
87
import router from '@/router'
8+
import { hidden } from '@/utils'
99
import { moveTo } from '@/utils'
1010
</script>
1111

frontend/src/components/ui/LanguageSwitcher.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<script lang="ts" setup>
2+
import { useLocalStorage } from '@vueuse/core'
3+
import { Globe04 } from 'untitledui-js/vue'
4+
import { useI18n } from 'vue-i18n'
5+
26
import { Button } from '@/components/ui/button'
37
import {
48
DropdownMenu,
@@ -9,12 +13,7 @@ import {
913
DropdownMenuSeparator,
1014
DropdownMenuTrigger,
1115
} from '@/components/ui/dropdown-menu'
12-
13-
import { Globe04 } from 'untitledui-js/vue'
14-
1516
import { AVAILABLE_LOCALES } from '@/i18n.ts'
16-
import { useLocalStorage } from '@vueuse/core'
17-
import { useI18n } from 'vue-i18n'
1817
1918
const { locale } = useI18n<{ locale: string; availableLocales: string[] }>()
2019
const currentLocale = useLocalStorage<string>('lang', 'en')

0 commit comments

Comments
 (0)