mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-12 14:28:23 +02:00
create avatars component
This commit is contained in:
parent
6286e38ef4
commit
6e101b6ac0
4 changed files with 29 additions and 8 deletions
client/src/components
|
@ -3,7 +3,7 @@
|
|||
<template slot-scope="child" v-if="child.data">
|
||||
<li class="header">
|
||||
<div class="user">
|
||||
<img :src="`https://api.adorable.io/avatars/25/${child.data.member.displayname}.png`" />
|
||||
<neko-avatar :seed="child.data.member.displayname" :size="25" />
|
||||
<strong>{{ child.data.member.displayname }}</strong>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -137,11 +137,13 @@
|
|||
|
||||
// @ts-ignore
|
||||
import { VueContext } from 'vue-context'
|
||||
import Avatar from './avatar.vue'
|
||||
|
||||
@Component({
|
||||
name: 'neko-context',
|
||||
components: {
|
||||
'vue-context': VueContext,
|
||||
'neko-avatar': Avatar,
|
||||
},
|
||||
})
|
||||
export default class extends Vue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue