Skip to content

Commit 83c0a78

Browse files
committed
refactor: icon component
1 parent 0c03985 commit 83c0a78

Some content is hidden

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

51 files changed

+135
-227
lines changed

frontend/src/assets/styles/custom.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ body {
9696
}
9797

9898
.rotation {
99-
animation: rotate 2s infinite linear;
99+
animation: rotate 1s infinite linear;
100100
}
101101

102102
.hover\:\!bg-red {

frontend/src/components/Button/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ withDefaults(defineProps<Props>(), {
3939
v-if="disabled"
4040
:color="`var(--btn-${type}-color)`"
4141
icon="forbidden"
42-
class="pointer-events-none shrink-0"
42+
class="pointer-events-none shrink-0 mr-4"
4343
/>
4444
<Icon
4545
v-if="icon"

frontend/src/components/Card/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const hasTitle = computed(() => {
3737
</div>
3838
<Icon
3939
v-if="selected"
40-
:size="32"
40+
:size="24"
4141
icon="selected"
4242
color="var(--primary-color)"
4343
class="absolute right-8 bottom-4"
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
3-
<path
4-
d="M512 170.666667a42.666667 42.666667 0 0 1 42.666667 42.666666v256h256a42.666667 42.666667 0 1 1 0 85.333334h-256v256a42.666667 42.666667 0 1 1-85.333334 0v-256H213.333333a42.666667 42.666667 0 1 1 0-85.333334h256V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666z"
5-
v-bind="$attrs"
6-
></path>
2+
<svg viewBox="0 0 24 24">
3+
<path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" v-bind="$attrs" />
74
</svg>
85
</template>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<svg viewBox="0 0 24 24">
3+
<path
4+
d="M10,9.9L7,12L10,14.1V9.9M19,9.9L16,12L19,14.1V9.9M12,6V18L3.5,12L12,6M21,6V18L12.5,12L21,6Z"
5+
v-bind="$attrs"
6+
/>
7+
</svg>
8+
</template>
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
2+
<svg v-bind="$attrs" viewBox="0 0 24 24">
33
<path
4-
d="M512 967.0656c-251.392 0-455.0656-203.776-455.0656-455.0656S260.608 56.9344 512 56.9344s455.0656 203.776 455.0656 455.0656S763.392 967.0656 512 967.0656z m-0.3072-495.104L370.8928 331.1616c-11.0592-11.0592-29.0816-11.0592-40.2432 0-11.0592 11.0592-11.0592 29.0816 0 40.2432l140.8 140.8-140.8 140.8c-11.0592 11.0592-11.0592 29.0816 0 40.2432 11.0592 11.0592 29.0816 11.0592 40.2432 0l140.8-140.8L652.4928 693.248c11.0592 11.0592 29.0816 11.0592 40.2432 0s11.0592-29.0816 0-40.2432L551.8336 512.2048l140.8-140.8c11.0592-11.0592 11.0592-29.0816 0-40.2432-11.0592-11.0592-29.0816-11.0592-40.2432 0L511.6928 471.9616z"
5-
v-bind="$attrs"
6-
></path>
4+
d="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z"
5+
/>
76
</svg>
87
</template>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
2+
<svg viewBox="0 0 24 24">
33
<path
4-
d="M225.834667 225.834667a42.666667 42.666667 0 0 1 60.330666 0L512 451.669333l225.834667-225.834666a42.666667 42.666667 0 1 1 60.330666 60.330666L572.330667 512l225.834666 225.834667a42.666667 42.666667 0 0 1-60.330666 60.330666L512 572.330667l-225.834667 225.834666a42.666667 42.666667 0 0 1-60.330666-60.330666L451.669333 512 225.834667 286.165333a42.666667 42.666667 0 0 1 0-60.330666z"
4+
d="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z"
55
v-bind="$attrs"
6-
></path>
6+
/>
77
</svg>
88
</template>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
2+
<svg viewBox="0 0 24 24">
33
<path
4-
d="M153.770667 517.558857l200.387047-197.241905L302.86019 268.190476 48.761905 518.290286l254.439619 243.614476 50.590476-52.833524-200.021333-191.512381zM658.285714 320.316952L709.583238 268.190476l254.098286 250.09981L709.241905 761.904762l-50.590476-52.833524 200.021333-191.512381L658.285714 320.316952z m-112.981333-86.186666L393.99619 785.554286l70.534096 19.358476 151.30819-551.399619-70.534095-19.358476z"
4+
d="M12.89,3L14.85,3.4L11.11,21L9.15,20.6L12.89,3M19.59,12L16,8.41V5.58L22.42,12L16,18.41V15.58L19.59,12M1.58,12L8,5.58V8.41L4.41,12L8,15.58V18.41L1.58,12Z"
55
v-bind="$attrs"
6-
></path>
6+
/>
77
</svg>
88
</template>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
2+
<svg viewBox="0 0 24 24">
33
<path
4-
d="M576 345.6L622.933333 298.666667 682.666667 358.4l-149.333334 149.333333L384 358.4 443.733333 298.666667l46.933334 46.933333V128h85.333333v217.6z m0 371.2V938.666667h-85.333333v-221.866667l-46.933334 46.933333L384 704l149.333333-149.333333 149.333334 149.333333-59.733334 59.733333-46.933333-46.933333z"
4+
d="M16.59,5.41L15.17,4L12,7.17L8.83,4L7.41,5.41L12,10M7.41,18.59L8.83,20L12,16.83L15.17,20L16.58,18.59L12,14L7.41,18.59Z"
55
v-bind="$attrs"
6-
></path>
6+
/>
77
</svg>
88
</template>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<svg viewBox="0 0 1024 1024">
2+
<svg viewBox="0 0 24 24">
33
<path
4-
d="M316.952381 365.714286v414.47619h390.095238V365.714286h97.52381v512H219.428571V365.714286h97.52381z m170.666667 48.761904v268.190477h-73.142858V414.47619h73.142858z m121.904762 0v268.190477h-73.142858V414.47619h73.142858zM585.142857 146.285714v73.142857h268.190476v97.52381H170.666667V219.428571h268.190476V146.285714h146.285714z"
4+
d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"
55
v-bind="$attrs"
6-
></path>
6+
/>
77
</svg>
88
</template>

0 commit comments

Comments
 (0)