Skip to content

Commit cb85e09

Browse files
chore: replace fontawesome icons by lucide icons (#2183)
Signed-off-by: Simon Viénot <simon.vienot@icloud.com> Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com> Co-authored-by: Eric Le Ponner <eric.leponner@icloud.com>
1 parent ce54f50 commit cb85e09

File tree

18 files changed

+129
-91
lines changed

18 files changed

+129
-91
lines changed

src/components/AxiosStatus.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@click="showErrorDialog = true"
3232
/>
3333
</template>
34-
<ModalDialog v-model:show-dialog="showErrorDialog" iconClass="fa fa-2x fa-exclamation-triangle has-text-danger">
34+
<ModalDialog v-model:show-dialog="showErrorDialog">
3535
<template #modalDialogContent>
3636
<TaskPanel :mode="TaskPanelMode.error">
3737
<template #taskPanelMessage>{{ explanation }}</template>

src/components/allowances/HbarAllowanceTable.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
</o-table-column>
4242

4343
<o-table-column v-if="isWalletConnected" v-slot="props" position="right">
44-
<i class="fa fa-pen" @click="emit('editAllowance', props.row)"/>
44+
<Pencil
45+
class="icon-in-table"
46+
:size="16"
47+
@click="emit('editAllowance', props.row)"
48+
/>
4549
</o-table-column>
4650

4751
<template v-slot:bottom-left>
@@ -77,6 +81,7 @@ import AccountLink from "@/components/values/link/AccountLink.vue";
7781
import HbarAmount from "@/components/values/HbarAmount.vue";
7882
import TablePageSize from "@/components/transaction/TablePageSize.vue";
7983
import {walletManager} from "@/utils/RouteManager.ts";
84+
import {Pencil} from "lucide-vue-next";
8085
8186
const emit = defineEmits(["editAllowance"])
8287

src/components/allowances/NftAllSerialsAllowanceTable.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
</o-table-column>
3838

3939
<o-table-column v-if="isWalletConnected" v-slot="props" field="action" position="right">
40-
<i v-if="props.row.isEditable" class="far fa-trash-alt" @click="emit('deleteAllowance', props.row)"/>
40+
<Trash2
41+
v-if="props.row.isEditable"
42+
class="icon-in-table"
43+
:size="16"
44+
@click="emit('deleteAllowance', props.row)"
45+
/>
4146
<InfoTooltip
4247
v-else
4348
label="The allowance cannot be modified because the NFT collection is no longer associated with this account."
@@ -81,6 +86,7 @@ import {NftAllSerialsAllowanceTableController} from "@/components/allowances/Nft
8186
import {isValidAssociation} from "@/schemas/MirrorNodeUtils.ts";
8287
import TablePageSize from "@/components/transaction/TablePageSize.vue";
8388
import {walletManager} from "@/utils/RouteManager.ts";
89+
import {Trash2} from 'lucide-vue-next';
8490
8591
interface DisplayedNftAllowance extends NftAllowance {
8692
isEditable: boolean

src/components/allowances/NftAllowanceTable.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
</o-table-column>
4444

4545
<o-table-column v-if="isWalletConnected" v-slot="props" field="action" position="right">
46-
<i class="far fa-trash-alt" @click="emit('deleteAllowance', props.row)"/>
46+
<Trash2
47+
class="icon-in-table"
48+
:size="16"
49+
@click="emit('deleteAllowance', props.row)"
50+
/>
4751
</o-table-column>
4852

4953
<template v-slot:bottom-left>
@@ -80,6 +84,7 @@ import TokenLink from "@/components/values/link/TokenLink.vue";
8084
import {NftAllowanceTableController} from "@/components/allowances/NftAllowanceTableController";
8185
import TablePageSize from "@/components/transaction/TablePageSize.vue";
8286
import {walletManager} from "@/utils/RouteManager.ts";
87+
import {Trash2} from 'lucide-vue-next';
8388
8489
const emit = defineEmits(["deleteAllowance"])
8590

src/components/allowances/TokenAllowanceTable.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@
4545
</o-table-column>
4646

4747
<o-table-column v-if="isWalletConnected" v-slot="props" field="edit-icon" position="right">
48-
<i v-if="props.row.isEditable" class="fa fa-pen" @click="emit('editAllowance', props.row)"/>
48+
<Pencil
49+
v-if="props.row.isEditable"
50+
class="icon-in-table"
51+
:size="16"
52+
@click="emit('editAllowance', props.row)"
53+
/>
4954
<InfoTooltip
5055
v-else
56+
class="icon-in-table"
5157
label="The allowance cannot be modified because the token is no longer associated with this account."
5258
/>
5359
</o-table-column>
@@ -90,6 +96,7 @@ import TokenLink from "@/components/values/link/TokenLink.vue";
9096
import InfoTooltip from "@/components/InfoTooltip.vue";
9197
import TablePageSize from "@/components/transaction/TablePageSize.vue";
9298
import {walletManager} from "@/utils/RouteManager.ts";
99+
import {Pencil} from 'lucide-vue-next';
93100
94101
interface DisplayedTokenAllowance extends TokenAllowance {
95102
isEditable: boolean

src/components/page/header/wallet/WalletStatusButton.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
{{ accountId !== null ? accountId : "No account" }}
2121
</div>
2222
<div class="right">
23-
<i v-if="!showWalletOptions" class="fas fa-solid fa-angle-down"/>
24-
<i v-else class="fas fa-solid fa-angle-up"/>
23+
<ChevronDown v-if="!showWalletOptions" :size="18"/>
24+
<ChevronUp v-else :size="18" />
2525
</div>
2626
</ButtonView>
2727
</template>
@@ -42,6 +42,7 @@ import {ref} from "vue";
4242
import DropdownPanel from "@/components/DropdownPanel.vue";
4343
import ButtonView from "@/elements/ButtonView.vue";
4444
import {ButtonSize} from "@/dialogs/core/DialogUtils.ts";
45+
import {ChevronDown, ChevronUp} from "lucide-vue-next"
4546
import WalletOptions from "@/components/page/header/wallet/WalletOptions.vue";
4647
import {walletManager} from "@/utils/RouteManager.ts";
4748

src/components/token/NftFile.vue

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<template>
88

99
<MediaContent
10-
:url="url"
11-
:type="type"
12-
:size="size"
10+
:url="props.url"
11+
:type="props.type"
12+
:size="props.size"
1313
:auto="false"
14-
:no-anchor="noAnchor"
14+
:no-anchor="props.noAnchor"
1515
>
1616
<template #placeHolder>
17-
<div class="icon mt-4" style="font-size: 50px">
18-
<i class="fas fa-file"></i>
19-
</div>
20-
<div class="place-holder-text">
21-
{{ type }}
17+
<div class="place-holder-content">
18+
<File :size="50"/>
19+
<div class="place-holder-text">
20+
{{ props.type }}
21+
</div>
2222
</div>
2323
</template>
2424
</MediaContent>
@@ -29,32 +29,28 @@
2929
<!-- SCRIPT -->
3030
<!-- --------------------------------------------------------------------------------------------------------------- -->
3131

32-
<script lang="ts">
32+
<script setup lang="ts">
3333
34-
import {defineComponent, PropType} from "vue";
34+
import {PropType} from "vue";
35+
import {File} from "lucide-vue-next";
3536
import MediaContent from "@/components/MediaContent.vue";
3637
37-
export default defineComponent({
38-
name: "NftFile",
39-
components: {MediaContent},
40-
41-
props: {
42-
url: {
43-
type: String as PropType<string | null>,
44-
default: null
45-
},
46-
type: {
47-
type: String as PropType<string | null>,
48-
default: null
49-
},
50-
size: {
51-
type: Number,
52-
default: 50
53-
},
54-
noAnchor: {
55-
type: Boolean,
56-
default: false
57-
},
38+
const props = defineProps({
39+
url: {
40+
type: String as PropType<string | null>,
41+
default: null
42+
},
43+
type: {
44+
type: String as PropType<string | null>,
45+
default: null
46+
},
47+
size: {
48+
type: Number,
49+
default: 50
50+
},
51+
noAnchor: {
52+
type: Boolean,
53+
default: false
5854
},
5955
})
6056
@@ -66,6 +62,12 @@ export default defineComponent({
6662

6763
<style scoped>
6864
65+
div.place-holder-content {
66+
display: flex;
67+
flex-direction: column;
68+
align-items: center;
69+
}
70+
6971
div.place-holder-text {
7072
font-size: 10px;
7173
margin-top: 1.5rem;

src/components/transaction/NftTransactionSummary.vue

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@
66

77
<template>
88
<template v-if="transaction">
9-
<NftDetailsTransferGraph v-if="shouldGraph" :transaction="transactionDetail"/>
10-
<div v-else-if="isTokenAssociation">
9+
10+
<NftDetailsTransferGraph
11+
v-if="shouldGraph"
12+
:transaction="transactionDetail"
13+
/>
14+
15+
<div v-else-if="isTokenAssociation" class="h-should-wrap tx-summary">
1116
{{ transaction?.sender_account_id }}
12-
<span v-if="tokens.length">
13-
<i class="fas fa-link mr-1 h-is-low-contrast"></i>
14-
<TokenExtra :token-id="tokens[0]"/>
15-
<span
16-
v-if="additionalTokensNumber"
17-
class="h-is-smaller h-is-extra-text h-should-wrap"
18-
>
19-
{{ " ( + " + additionalTokensNumber + " more )" }}
20-
</span>
21-
</span>
17+
<template v-if="tokens.length">
18+
<Link :size="16" :stroke-width="2.5" class="h-is-low-contrast"/>
19+
<TokenExtra :token-id="tokens[0]"/>
20+
<span v-if="additionalTokensNumber" class="h-is-smaller h-is-extra-text h-should-wrap">
21+
{{ ' (+' + additionalTokensNumber + ' more)' }}
22+
</span>
23+
</template>
2224
</div>
25+
2326
<div v-else/>
27+
2428
</template>
2529
<div v-else/>
2630
</template>
@@ -35,6 +39,7 @@ import {NftTransactionTransfer, TransactionType,} from "@/schemas/MirrorNodeSche
3539
import TokenExtra from "@/components/values/link/TokenExtra.vue"
3640
import {NftTransactionAnalyzer} from "./NftTransactionAnalyzer"
3741
import NftDetailsTransferGraph from "@/components/transfer_graphs/NftDetailsTransferGraph.vue";
42+
import {Link} from "lucide-vue-next"
3843
3944
const GRAPH_TRANSACTION_TYPES = [
4045
TransactionType.CRYPTOTRANSFER,

src/components/transaction/TransactionSummary.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
:compact="true"
1414
/>
1515

16-
<div v-else-if="isTokenAssociation" class="h-should-wrap">
16+
<div v-else-if="isTokenAssociation" class="h-should-wrap tx-summary">
1717
<EntityIOL :entity-id="entityId"/>
18-
<span v-if="tokens.length">
19-
<i class="fas fa-link mr-1 h-is-low-contrast"></i>
18+
<template v-if="tokens.length">
19+
<Link :size="16" :stroke-width="2.5" class="h-is-low-contrast"/>
2020
<TokenExtra :token-id="tokens[0]"/>
2121
<span v-if="additionalTokensNumber" class="h-is-smaller h-is-extra-text h-should-wrap">
22-
{{ ' ( + ' + additionalTokensNumber + ' more )' }}
22+
{{ ' (+' + additionalTokensNumber + ' more)' }}
2323
</span>
24-
</span>
24+
</template>
2525
</div>
2626

2727
<div v-else-if="displayMemo" class="h-should-wrap">
@@ -50,6 +50,7 @@ import TransferGraphSection from "@/components/transfer_graphs/TransferGraphSect
5050
import {TransactionAnalyzer} from "@/components/transaction/TransactionAnalyzer";
5151
import TokenExtra from "@/components/values/link/TokenExtra.vue";
5252
import EntityIOL from "@/components/values/link/EntityIOL.vue";
53+
import {Link} from "lucide-vue-next";
5354
5455
const GRAPH_TRANSACTION_TYPES = [
5556
TransactionType.CRYPTOTRANSFER,

src/components/values/FunctionError.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<template v-else>
4242
<HexaDumpValue :byte-string="error" :show-none="true"/>
4343
<div v-if="errorDecodingStatus" class="h-is-extra-text">
44-
<span class="icon fas fa-exclamation-circle h-is-low-contrast is-small mt-1 mr-1"/>
44+
<CircleAlert class="h-is-low-contrast mr-1" :size="16" style="vertical-align: text-top"/>
4545
<span>{{ errorDecodingStatus }}</span>
4646
</div>
4747
</template>
@@ -58,6 +58,7 @@
5858
<script setup lang="ts">
5959
6060
import {computed, PropType} from 'vue';
61+
import {CircleAlert} from "lucide-vue-next";
6162
import HexaDumpValue from "@/components/values/HexaDumpValue.vue";
6263
import {FunctionCallAnalyzer} from "@/utils/analyzer/FunctionCallAnalyzer";
6364
import Property from "@/components/Property.vue";

0 commit comments

Comments
 (0)