Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/client/src/components/emotes.vue

48 lines
1019 B
Vue
Raw Normal View History

2020-01-23 06:16:40 +13:00
<template>
2020-01-24 04:23:26 +13:00
<div class="emotes">
<ul v-if="!muted">
2020-01-23 06:16:40 +13:00
<li><i @click.stop.prevent="click('heart')" class="fas fa-heart"></i></li>
<li><i @click.stop.prevent="click('poo')" class="fas fa-poo"></i></li>
<li><i @click.stop.prevent="click('grin')" class="fas fa-grin-tears"></i></li>
2020-01-24 04:23:26 +13:00
<li><i @click.stop.prevent="click('ghost')" class="fas fa-ghost"></i></li>
2020-01-23 06:16:40 +13:00
</ul>
</div>
</template>
<style lang="scss" scoped>
2020-01-24 04:23:26 +13:00
.emotes {
2020-01-23 06:16:40 +13:00
ul {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
li {
font-size: 24px;
margin: 0 5px;
i {
cursor: pointer;
}
}
}
}
</style>
<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
@Component({
2020-01-24 04:23:26 +13:00
name: 'neko-emotes',
2020-01-23 06:16:40 +13:00
})
export default class extends Vue {
2020-01-24 04:23:26 +13:00
get muted() {
return this.$accessor.user.muted
}
click(emote: string) {
this.$accessor.chat.sendEmote(emote)
2020-01-23 06:16:40 +13:00
}
}
</script>