Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AtCoderのロゴ表示に対応 #194

Merged
merged 9 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/AtCoder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/assets/AtCoder.svg

This file was deleted.

14 changes: 13 additions & 1 deletion src/components/User/AccountListItem.vue
Pugma marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import AIcon from '/@/components/UI/AIcon.vue'
import AtCoder from '/@/assets/AtCoder.png'
import { Account } from '/@/lib/apis'
import { services } from '/@/consts/services'

Expand All @@ -18,7 +19,18 @@ defineProps<Props>()
target="_blank"
rel="noreferrer noopener"
>
<a-icon :name="services.get(account.type)?.icon ?? ''" :size="24" />
<img
Pugma marked this conversation as resolved.
Show resolved Hide resolved
Pugma marked this conversation as resolved.
Show resolved Hide resolved
v-if="services.get(account.type)?.icon !== 'atcoder'"
alt="AtCoder Logo"
:src="AtCoder"
width="24px"
height="24px"
Pugma marked this conversation as resolved.
Show resolved Hide resolved
/>
<a-icon
v-else
:name="services.get(account.type)?.icon ?? ''"
:size="24"
/>
</a>
</li>
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/types/shims-png.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.png' {
const content: string
export default content
}