Skip to content

Commit

Permalink
remove discord url
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed May 16, 2024
1 parent d2b7b17 commit 131bda9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 43 deletions.
6 changes: 3 additions & 3 deletions src/components/CompendiumPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
>
<div class="avatar">
<img
:src="getDiscordIconUrl(guild!.id, guild!.icon).href"
:src="guild!.url"
:alt="`${guild!.name} icon`"
@error="(e) => e.target.src = memberImage"
>
<img
:src="getDiscordAvatarUrl(user.id, user.avatar).href"
:src="user.avatarUrl"
:alt="`${user.username} avatar`"
@error="(e) => e.target.src = memberImage"
>
Expand Down Expand Up @@ -139,10 +139,10 @@ import { onMounted, ref } from 'vue';
import { useStore } from 'vuex';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { Guild, Identity, User } from 'bot_client';
import { Guild as Guild2, Identity as Identity2, User as User2 } from 'bot_client2';
import client, { init as clientInit, switchInstance } from '@Utils/compendium';
import { getDiscordAvatarUrl, getDiscordIconUrl } from '@Utils/getDiscordUrl';
import memberImage from '@Img/icons/member.png';
import types from '@/store/types';
Expand Down
3 changes: 1 addition & 2 deletions src/pages/CompendiumCorp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="meta">
<div class="avatar">
<img
:src="getAvatarUrl(mem.avatarUrl)"
:src="mem.avatarUrl"
:alt="`${mem.name} avatar`"
@error="(e) => e.target.src = memberImage"
></div>
Expand Down Expand Up @@ -143,7 +143,6 @@ import { onMounted, reactive, Ref, ref, watch } from 'vue';
import { useStore } from 'vuex';
import { useI18n } from 'vue-i18n';
import { getAvatarUrl } from '@Utils/getDiscordUrl';
import client from '../utils/compendium';
import types from '@/store/modules/userSettings/types';
Expand Down
38 changes: 0 additions & 38 deletions src/utils/getDiscordUrl.ts

This file was deleted.

0 comments on commit 131bda9

Please sign in to comment.