Skip to content

Commit 28db919

Browse files
committed
build(frontend): remove unused dependencies
1 parent abb2f40 commit 28db919

File tree

4 files changed

+37
-14
lines changed

4 files changed

+37
-14
lines changed

frontend/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module 'vue' {
1414
IconBillCheck: typeof import('./src/components/icons/IconBillCheck.vue')['default']
1515
IconGithub: typeof import('./src/components/icons/IconGithub.vue')['default']
1616
IconHeart: typeof import('./src/components/icons/IconHeart.vue')['default']
17+
IconLoading: typeof import('./src/components/icons/IconLoading.vue')['default']
1718
IconMagicStick: typeof import('./src/components/icons/IconMagicStick.vue')['default']
1819
IconPalette: typeof import('./src/components/icons/IconPalette.vue')['default']
1920
IconTelegram: typeof import('./src/components/icons/IconTelegram.vue')['default']

frontend/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@
2020
"format": "prettier --write src/"
2121
},
2222
"dependencies": {
23-
"@ant-design/icons-vue": "^7.0.1",
2423
"@iconify/vue": "^4.1.1",
2524
"@vueuse/core": "^10.6.1",
26-
"ant-design-vue": "~4.0.7",
27-
"axios": "^1.6.1",
2825
"build-url": "^6.0.1",
2926
"copy-to-clipboard": "^3.3.3",
3027
"normalize.css": "^8.0.1",

frontend/src/App.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import Highlights from '@/components/Highlights.vue';
3-
import { LoadingOutlined } from '@ant-design/icons-vue';
4-
import { ref, h } from 'vue';
3+
import { ref } from 'vue';
54
import { useRouter } from 'vue-router';
5+
import IconLoading from "@/components/icons/IconLoading.vue";
66
77
const isRouterReady = ref<boolean>(false);
88
@@ -11,19 +11,12 @@ const router = useRouter();
1111
router.isReady().finally(() => {
1212
isRouterReady.value = true;
1313
});
14-
15-
const indicator = h(LoadingOutlined, {
16-
style: {
17-
fontSize: '36px',
18-
},
19-
spin: true,
20-
});
2114
</script>
2215

2316
<template>
2417
<Highlights />
2518
<div v-if="!isRouterReady" class="app-loader">
26-
<a-spin :indicator="indicator" />
19+
<IconLoading />
2720
</div>
2821
<router-view v-else v-slot="{ Component }">
2922
<transition name="slide-fade" mode="out-in">
@@ -34,7 +27,6 @@ const indicator = h(LoadingOutlined, {
3427

3528
<style>
3629
@import '@/assets/style.scss';
37-
@import 'ant-design-vue/dist/reset.css';
3830
</style>
3931

4032
<style lang="scss" scoped>
@@ -52,10 +44,18 @@ const indicator = h(LoadingOutlined, {
5244
opacity: 0;
5345
}
5446
47+
.fade-enter-active, .fade-leave-active {
48+
transition: opacity .5s;
49+
}
50+
.fade-enter, .fade-leave-to {
51+
opacity: 0;
52+
}
53+
5554
.app-loader {
5655
display: flex;
5756
justify-content: center;
5857
align-items: center;
5958
height: 100vh;
59+
overflow: hidden;
6060
}
6161
</style>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script setup lang="ts">
2+
defineProps({
3+
size: {
4+
type: Number,
5+
default: 48
6+
}
7+
})
8+
</script>
9+
10+
<template>
11+
<span>
12+
<svg :width="size" :height="size" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 150">
13+
<path fill="none" stroke="#00C4FA" stroke-width="14" stroke-linecap="round" stroke-dasharray="300 385" stroke-dashoffset="0" d="M275 75c0 31-27 50-50 50-58 0-92-100-150-100-28 0-50 22-50 50s23 50 50 50c58 0 92-100 150-100 24 0 50 19 50 50Z">
14+
<animate attributeName="stroke-dashoffset" calcMode="spline" dur="2" values="685;-685" keySplines="0 0 1 1" repeatCount="indefinite">
15+
</animate>
16+
</path>
17+
</svg>
18+
</span>
19+
</template>
20+
21+
<style scoped>
22+
span {
23+
line-height: 0;
24+
}
25+
</style>

0 commit comments

Comments
 (0)