Skip to content

Commit

Permalink
refacto: All possible icons migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Aug 1, 2024
1 parent f987eea commit 45d664f
Show file tree
Hide file tree
Showing 35 changed files with 95 additions and 123 deletions.
50 changes: 50 additions & 0 deletions public/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
5 changes: 0 additions & 5 deletions public/icons/send.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/add.svg

This file was deleted.

7 changes: 0 additions & 7 deletions public/icons/svg/chevron-right.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/close.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/close_lighten.svg

This file was deleted.

6 changes: 0 additions & 6 deletions public/icons/svg/duplicate.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/import.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/star.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/icons/svg/star_lighten.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/svg/wallet.svg

This file was deleted.

14 changes: 0 additions & 14 deletions src/assets/star.svg

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/wallet.svg

This file was deleted.

7 changes: 3 additions & 4 deletions src/components/AccountButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
unelevated
@click="connect({ connector: config.connectors[0] })"
>
<q-icon class="text-dark" left size="xs">
<img alt="wallet" src="~assets/wallet.svg" />
</q-icon>
<ltai-icon dark-color="white" left light-color="white" name="svguse:icons.svg#wallet" size="xs" />
Connect Wallet
</q-btn>
<q-btn-dropdown
v-else
:label="`${account.address.value?.slice(0, 4)}...${account.address.value?.slice(-2)}`"
class="border-primary-highlight gt-sm"
icon="img:icons/svg/avatar.svg"
icon="img:icons/avatar.svg"
no-caps
rounded
text-color="primary"
Expand Down Expand Up @@ -51,6 +49,7 @@ import { useAccount, useConnect, useDisconnect } from '@wagmi/vue';
import { watchAccount } from '@wagmi/vue/actions';
import { config } from 'src/config/wagmi';
import { watchEffect } from 'vue';
import LtaiIcon from 'components/libertai/LtaiIcon.vue';
const accountStore = useAccountStore();
Expand Down
2 changes: 1 addition & 1 deletion src/components/AlephAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const emit = defineEmits(['editAvatar']);
top: 0;
bottom: 0;
width: 100%;
background: url('/icons/svg/edit.svg') center no-repeat;
background: url('/icons/edit.svg') center no-repeat;
background-size: 25px;
}
Expand Down
7 changes: 5 additions & 2 deletions src/components/MessageInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
color="white"
dense
flat
icon="img:icons/svg/attachment.svg"
icon="img:icons/attachment.svg"
round
@click="($refs.messageAttachmentsUpload as any).click()"
>
Expand All @@ -41,7 +41,9 @@
</template>
<template #append>
<!--<q-btn round dense flat icon="img:icons/mic.svg" @click="sendMessage" color="" class="" />-->
<q-btn dense flat icon="img:icons/send.svg" round @click="sendMessage" />
<q-btn dense flat round @click="sendMessage">
<ltai-icon dark-color="purple-700" light-color="purple-700" name="svguse:icons.svg#send" />
</q-btn>
</template>

<template v-if="hint !== ''" #hint>
Expand All @@ -65,6 +67,7 @@ import { ref } from 'vue';
import { processAttachment } from 'src/utils/knowledge/attachments';
import { MessageAttachment, SendMessageParams } from 'src/types/chats';
import { useQuasar } from 'quasar';
import LtaiIcon from 'components/libertai/LtaiIcon.vue';
const props = defineProps({
isLoading: {
Expand Down
Loading

0 comments on commit 45d664f

Please sign in to comment.