Skip to content

Commit 66b773c

Browse files
committed
feat: use untitledjs for icons instead icon components
1 parent 1fe5bb9 commit 66b773c

File tree

21 files changed

+24
-410
lines changed

21 files changed

+24
-410
lines changed

frontend/bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"radix-vue": "^1.9.14",
2020
"tailwind-merge": "^3.0.1",
2121
"tailwindcss-animate": "^1.0.7",
22+
"untitledui-js": "^2.2.22",
2223
"v-wave": "^3.0.2",
2324
"vite-plugin-minify": "^2.1.0",
2425
"vue": "^3.5.13",
@@ -1036,6 +1037,8 @@
10361037

10371038
"unplugin-utils": ["[email protected]", "", { "dependencies": { "pathe": "^2.0.2", "picomatch": "^4.0.2" } }, "sha512-8U/MtpkPkkk3Atewj1+RcKIjb5WBimZ/WSLhhR3w6SsIj8XJuKTacSP8g+2JhfSGw0Cb125Y+2zA/IzJZDVbhA=="],
10381039

1040+
"untitledui-js": ["[email protected]", "", { "peerDependencies": { "@builder.io/qwik": "^1.0.0", "motion": "^10.0.0 || ^11.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "solid-js": "^1.0.0", "vue": "^3.0.0" }, "optionalPeers": ["@builder.io/qwik", "motion", "react", "solid-js", "vue"] }, "sha512-6oJ417v6qsa3JiEJB5vIujVNo/psre9pteCR6TLgamAA74z6BBpRuKYW3K04y8L03+TxGC9W4OfAKiMUPCZVKA=="],
1041+
10391042
"untyped": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.26.0", "@babel/standalone": "^7.26.4", "@babel/types": "^7.26.3", "citty": "^0.1.6", "defu": "^6.1.4", "jiti": "^2.4.1", "knitwork": "^1.2.0", "scule": "^1.3.0" }, "bin": { "untyped": "dist/cli.mjs" } }, "sha512-eL/8PlhLcMmlMDtNPKhyyz9kEBDS3Uk4yMu/ewlkT2WFbtzScjHWPJLdQLmaGPUKjXzwe9MumOtOgc4Fro96Kg=="],
10401043

10411044
"update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg=="],

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"radix-vue": "^1.9.14",
2929
"tailwind-merge": "^3.0.1",
3030
"tailwindcss-animate": "^1.0.7",
31+
"untitledui-js": "^2.2.22",
3132
"v-wave": "^3.0.2",
3233
"vite-plugin-minify": "^2.1.0",
3334
"vue": "^3.5.13",

frontend/src/components/HomePage/Main.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import useConfetti from '@/composables/useConfetti'
33
import Sparkles from '@/components/ui/Sparkles.vue'
44
import Discord from '@/components/icons/Socials/Discord.vue'
5-
import Start from '@/components/icons/Start.vue'
6-
import Stars from '@/components/icons/Stars.vue'
75
import { Button } from '@/components/ui/button'
86
import { hidden } from '@/utils'
7+
import { Play } from "untitledui-js/vue";
8+
import { Stars02 } from "untitledui-js/vue";
99
1010
function randomInRange(min: number, max: number) {
1111
return Math.random() * (max - min) + min
@@ -71,11 +71,11 @@ const triggerConfetti = () => {
7171
<span class="flex w-full flex-col gap-3 lg:flex-row">
7272
<Button :class="[hidden ? 'h-12 text-lg' : 'text-sm']">
7373
{{ $t('main.buttons.first') }}
74-
<Start :size="16" color="#000" />
74+
<Play :size="16" />
7575
</Button>
7676
<Button variant="ghost" :class="[hidden ? 'h-12 text-lg' : 'text-sm']">
7777
{{ $t('main.buttons.second') }}
78-
<Stars :size="16" />
78+
<Stars02 :size="16" />
7979
</Button>
8080
</span>
8181
</div>

frontend/src/components/HomePage/OpenSource.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { useFetch } from '@vueuse/core'
33
import { openLink } from '@/utils'
44
import { computed, ref } from 'vue'
55
import { Button } from '@/components/ui/button'
6-
import Branch from '@/components/icons/Branch.vue'
6+
import { Star01, GitBranch01 } from 'untitledui-js/vue'
7+
78
import Github from '@/components/icons/Socials/Github.vue'
8-
import Star from '@/components/icons/Star.vue'
99
const repoUrl = ref('https://api.github.com/repos/ValoryApp/Valory')
1010
const contributorsUrl = ref('https://api.github.com/repos/ValoryApp/Valory/contributors')
1111
@@ -34,14 +34,14 @@ const contributorsCount = computed(() => contributorsData.value?.length ?? 0)
3434
@click="openLink('https://github.com/ValoryApp/Valory/forks')"
3535
class="gap-1 border border-white/10 bg-[#19191A] px-3 text-[#F2F2F2]"
3636
>
37-
<Branch :size="22" />
37+
<GitBranch01 :size="22" />
3838
{{ forksCount }}
3939
</Button>
4040
<Button
4141
@click="openLink('https://github.com/ValoryApp/Valory/stargazers')"
4242
class="gap-1 border border-white/10 bg-[#19191A] px-3 text-[#F2F2F2]"
4343
>
44-
<Star color="#E3B341" :size="22" />
44+
<Star01 color="#E3B341" :size="22" />
4545
{{ starsCount }}
4646
</Button>
4747
</div>

frontend/src/components/icons/Bot.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

frontend/src/components/icons/Branch.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

frontend/src/components/icons/Donation.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

frontend/src/components/icons/Education/BookClosed.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

frontend/src/components/icons/General/HelpCircle.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

frontend/src/components/icons/General/Link.vue

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)