Skip to content

Commit db2ee8c

Browse files
authored
Merge pull request #11476 from kodadot/refactor--replace-neo-icon-3
refactor: replace neoicon with nuxt icon (3)
2 parents 1a47def + 4d703c4 commit db2ee8c

File tree

26 files changed

+136
-206
lines changed

26 files changed

+136
-206
lines changed

components/chart/PriceChart.vue

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
no-shadow
4040
variant="icon"
4141
>
42-
<NeoIcon
43-
icon="gear"
44-
pack="fass"
42+
<KIcon
43+
name="i-mdi:cog-outline"
4544
size="large"
46-
:variant="!active ? 'k-grey' : undefined"
45+
:class="!active ? 'text-k-grey' : undefined"
4746
/>
4847
</NeoButton>
4948
</template>
@@ -87,13 +86,7 @@
8786
</template>
8887

8988
<script lang="ts" setup>
90-
import {
91-
NeoButton,
92-
NeoCheckbox,
93-
NeoDropdown,
94-
NeoDropdownItem,
95-
NeoIcon,
96-
} from '@kodadot1/brick'
89+
import { NeoButton, NeoCheckbox, NeoDropdown, NeoDropdownItem } from '@kodadot1/brick'
9790
import { useEventListener, useVModel } from '@vueuse/core'
9891
import type {
9992
ChartData,

components/codeChecker/CodeChecker.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@
2727
<div
2828
class="text-k-blue hover:text-k-blue-hover flex items-center mr-2"
2929
>
30-
<NeoIcon
31-
icon="circle"
32-
pack="fas"
33-
class="text-[4px] mr-2"
30+
<KIcon
31+
name="i-mdi:circle"
32+
class="size-[6px] mr-2"
3433
/>
3534
{{ $t(item.title) }}
3635
</div>
37-
<NeoIcon
38-
icon="arrow-up-right"
36+
<KIcon
37+
name="i-mdi:arrow-top-right"
3938
class="text-neutral-7 text-sm"
4039
/>
4140
</a>
@@ -190,7 +189,7 @@
190189
:render="Boolean(selectedFile)"
191190
:koda-renderer-used="fileValidity.kodaRendererUsed"
192191
:reload-trigger="reloadTrigger"
193-
:index-url="indexUrl"
192+
:index-url="indexUrl ?? ''"
194193
@reload="startClock"
195194
@hash:update="(hash) => (previewHash = hash)"
196195
/>
@@ -210,11 +209,13 @@
210209
>
211210

212211
<div class="flex items-center gap-5">
213-
<NeoIcon
214-
icon="shield"
215-
class="!block text-k-grey"
216-
size="large"
217-
/>
212+
<div>
213+
<KIcon
214+
name="i-mdi:shield-outline"
215+
class="text-k-grey"
216+
size="large"
217+
/>
218+
</div>
218219
<p class="capitalize text-k-grey">
219220
{{ $t('codeChecker.confidentialCode') }}
220221
</p>
@@ -225,7 +226,6 @@
225226
</template>
226227

227228
<script lang="ts" setup>
228-
import { NeoIcon } from '@kodadot1/brick'
229229
import { validate } from './validate'
230230
import { createSandboxAssets, extractAssetsFromZip } from './utils'
231231
import config from './codechecker.config'

components/codeChecker/FileUploader.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
>
1111
<template v-if="!selectedFile">
1212
<div class="flex flex-col items-center limit-width gap-2 py-5">
13-
<NeoIcon
14-
icon="arrow-down-to-bracket"
13+
<KIcon
14+
name="i-mdi:folder-upload-outline"
1515
class="text-xl text-k-grey"
1616
/>
1717
<span>Drag Your <b class="mr-1">.Zip File</b> Here Or Click To
@@ -24,8 +24,8 @@
2424
<template v-else>
2525
<div class="flex justify-between items-center">
2626
<div class="flex items-center gap-4 overflow-hidden">
27-
<NeoIcon
28-
icon="code"
27+
<KIcon
28+
name="i-mdi:code-block-tags"
2929
class="border py-3 px-[10px] rounded-full text-k-grey"
3030
/>
3131
<span class="text-ellipsis overflow-hidden">{{
@@ -47,7 +47,7 @@
4747
</template>
4848

4949
<script lang="ts" setup>
50-
import { NeoButton, NeoIcon, NeoUpload } from '@kodadot1/brick'
50+
import { NeoButton, NeoUpload } from '@kodadot1/brick'
5151
5252
const emits = defineEmits(['update:selectedFile', 'fileSelected', 'clear'])
5353

components/codeChecker/TestItem.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<template>
22
<div class="flex justify-between">
33
<div>
4-
<NeoIcon
5-
:icon="icon.name"
4+
<KIcon
5+
:name="icon.name"
66
:class="['text-lg', icon.class]"
7-
:spin="icon.spin"
87
/>
98
<span class="ml-[20px]">{{ description }}</span>
109
</div>
@@ -36,7 +35,7 @@
3635
</template>
3736

3837
<script lang="ts" setup>
39-
import { NeoIcon, NeoModal, NeoModalHead } from '@kodadot1/brick'
38+
import { NeoModal, NeoModalHead } from '@kodadot1/brick'
4039
import type { Passed } from './types'
4140
4241
const props = defineProps<{
@@ -50,20 +49,19 @@ const showResolveIssuesModal = ref(false)
5049
const icon = computed(() => {
5150
if (props.passed === 'loading') {
5251
return {
53-
name: 'spinner-third',
54-
class: 'text-k-grey',
55-
spin: true,
52+
name: 'i-mdi:loading',
53+
class: 'text-k-grey animate-spin',
5654
}
5755
}
5856
if (props.passed === 'unknown' || (props.optional && !props.passed)) {
5957
return {
60-
name: 'question',
58+
name: 'i-mdi:help',
6159
class: 'text-k-grey',
6260
}
6361
}
6462
6563
return {
66-
name: props.passed ? 'check' : 'xmark',
64+
name: props.passed ? 'i-mdi:check' : 'i-mdi:close',
6765
class: props.passed ? 'text-k-green' : 'text-k-red',
6866
}
6967
})

components/codeChecker/massPreview/Controls.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
<span class="capitalize">
3434
{{ $t('codeChecker.retryTest') }}
3535
</span>
36-
<NeoIcon icon="rotate-left" />
36+
<KIcon name="i-mdi:rotate-left" />
3737
</div>
3838
</NeoButton>
3939
</div>
4040
</div>
4141
</template>
4242

4343
<script lang="ts" setup>
44-
import { NeoButton, NeoIcon, NeoInput } from '@kodadot1/brick'
44+
import { NeoButton, NeoInput } from '@kodadot1/brick'
4545
import mean from 'lodash/mean'
4646
import type { CanvasPreviewItem, CapturePreviewItem } from './types'
4747

components/collection/CollectionInfo.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
class="text-neutral-7"
3333
:append-to="body"
3434
>
35-
<NeoIcon
35+
<KIcon
3636
class="w-4 h-4"
37-
icon="info-circle"
37+
name="i-mdi:information-variant-circle-outline"
3838
/>
3939

4040
<template #content>
@@ -120,7 +120,7 @@
120120
</template>
121121

122122
<script setup lang="ts">
123-
import { NeoButton, NeoIcon } from '@kodadot1/brick'
123+
import { NeoButton } from '@kodadot1/brick'
124124
import { useCollectionDetails } from './utils/useCollectionDetails'
125125
import {
126126
DESCRIPTION_MAX_LENGTH,

components/collection/EditModal.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
:error="!name"
1919
>
2020
<NonRecommendFieldNotification
21-
:show="name && nameChanged"
21+
:show="Boolean(name && nameChanged)"
2222
@undo="name = props.collection.name"
2323
>
2424
<NeoInput
@@ -167,7 +167,7 @@
167167
step="0.01"
168168
min="0.0001"
169169
pattern="[0-9]+([\.,][0-9]+)?"
170-
class="indent-2.5 border-none outline-none w-20 bg-background-color text-text-color w-full"
170+
class="indent-2.5 border-none outline-none bg-background-color text-text-color w-full"
171171
:placeholder="$t('mint.collection.permission.pricePlaceholder')"
172172
>
173173
<div class="px-3 flex items-center">
@@ -193,8 +193,8 @@
193193
v-if="permissionSettingWarningMessage"
194194
class="flex items-center gap-2 bg-yellow-50 border border-yellow-200 rounded-md p-3 !mt-2"
195195
>
196-
<NeoIcon
197-
icon="warning"
196+
<KIcon
197+
name="i-mdi:alert-circle-outline"
198198
class="text-yellow-500"
199199
size="small"
200200
/>
@@ -223,7 +223,7 @@
223223
</template>
224224

225225
<script setup lang="ts">
226-
import { NeoButton, NeoField, NeoInput, NeoModal, NeoSwitch, NeoSelect, NeoIcon } from '@kodadot1/brick'
226+
import { NeoButton, NeoField, NeoInput, NeoModal, NeoSwitch, NeoSelect } from '@kodadot1/brick'
227227
import ModalBody from '@/components/shared/modals/ModalBody.vue'
228228
import { type UpdateCollection, type CollectionMintSetting, CollectionMintSettingType } from '@/composables/transaction/types'
229229

components/collection/HeroButtons.vue

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,42 +36,45 @@
3636

3737
<NeoDropdownItem
3838
v-clipboard:copy="currentCollectionUrl"
39-
class="w-max"
39+
class="w-max !flex items-center"
4040
@click="shareCollectionToFarcaster"
4141
>
42-
<NeoIcon
43-
icon="frame"
42+
<KIcon
43+
name="i-mdi:vector-square"
4444
class="mr-2"
4545
/>
4646
{{ $i18n.t('share.farcasterFrame') }}
4747
</NeoDropdownItem>
4848
<NeoDropdownItem
4949
v-clipboard:copy="currentCollectionUrl"
5050
data-testid="hero-copy-link-dropdown"
51+
class="!flex items-center"
5152
@click="toast($t('toast.urlCopy'))"
5253
>
53-
<NeoIcon
54-
icon="link"
54+
<KIcon
55+
name="i-mdi:link"
5556
class="mr-2"
5657
/>
5758
{{ $i18n.t('share.copyLink') }}
5859
</NeoDropdownItem>
5960
<NeoDropdownItem
6061
data-testid="hero-share-QR-dropdown"
62+
class="!flex items-center"
6163
@click="QRModalActive = true"
6264
>
63-
<NeoIcon
64-
icon="qrcode"
65+
<KIcon
66+
name="i-mdi:qrcode"
6567
class="mr-2"
6668
/>
6769
{{ $i18n.t('share.qrCode') }}
6870
</NeoDropdownItem>
6971
<NeoDropdownItem
7072
data-testid="hero-share-twitter-dropdown"
73+
class="!flex items-center"
7174
@click="shareUrlToX"
7275
>
73-
<NeoIcon
74-
icon="share"
76+
<KIcon
77+
name="i-mdi:share"
7578
class="mr-2"
7679
/>
7780
{{ $i18n.t('share.twitter') }}
@@ -130,7 +133,6 @@ import {
130133
NeoButton,
131134
NeoDropdown,
132135
NeoDropdownItem,
133-
NeoIcon,
134136
NeoModal,
135137
NeoModalHead,
136138
} from '@kodadot1/brick'

components/collection/activity/ownerInsightsTabs/FlipperTab.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
@click="toggleNFTDetails(flipperId)"
6868
>
6969
{{ $t('activity.nftDetails') }}
70-
<NeoIcon
71-
:icon="
70+
<KIcon
71+
:name="
7272
isNFTDetailsOpen[flipperId]
73-
? 'chevron-down'
74-
: 'chevron-right'
73+
? 'i-mdi:chevron-down'
74+
: 'i-mdi:chevron-right'
7575
"
7676
/>
7777
</div>
@@ -101,7 +101,6 @@
101101
</template>
102102

103103
<script setup lang="ts">
104-
import { NeoIcon } from '@kodadot1/brick'
105104
import NFTsDetaislDropdown from './NFTsDetaislDropdown.vue'
106105
import ProfileLink from '@/components/profile/ProfileLink.vue'
107106
import { format } from '@/components/collection/activity/utils'

components/collection/activity/ownerInsightsTabs/HolderTab.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
@click="toggleNFTDetails(holderId)"
5353
>
5454
{{ $t('activity.nftDetails') }}
55-
<NeoIcon
56-
:icon="
55+
<KIcon
56+
:name="
5757
isNFTDetailsOpen[holderId]
58-
? 'chevron-down'
59-
: 'chevron-right'
58+
? 'i-mdi:chevron-down'
59+
: 'i-mdi:chevron-right'
6060
"
6161
/>
6262
</div>
@@ -86,7 +86,6 @@
8686
</template>
8787

8888
<script setup lang="ts">
89-
import { NeoIcon } from '@kodadot1/brick'
9089
import NFTsDetaislDropdown from './NFTsDetaislDropdown.vue'
9190
import ProfileLink from '@/components/profile/ProfileLink.vue'
9291
import type { Owners } from '@/composables/collectionActivity/types'

0 commit comments

Comments
 (0)