mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-13 08:12:57 +02:00
refactor progress
This commit is contained in:
parent
d497806443
commit
8ba1b68a21
55 changed files with 4899 additions and 761 deletions
46
client/src/components/menu.vue
Normal file
46
client/src/components/menu.vue
Normal file
|
@ -0,0 +1,46 @@
|
|||
<template>
|
||||
<ul>
|
||||
<li><i @click.stop.prevent="about" class="fas fa-question-circle" /></li>
|
||||
<li>
|
||||
<i
|
||||
class="fas fa-shield-alt"
|
||||
v-tooltip="{
|
||||
content: 'You are logged in as an admin',
|
||||
placement: 'right',
|
||||
offset: 5,
|
||||
boundariesElement: 'body',
|
||||
}"
|
||||
v-if="admin"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
ul {
|
||||
li {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
|
||||
i {
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Ref, Watch, Vue } from 'vue-property-decorator'
|
||||
|
||||
@Component({ name: 'neko-menu' })
|
||||
export default class extends Vue {
|
||||
get admin() {
|
||||
return this.$accessor.user.admin
|
||||
}
|
||||
|
||||
about() {
|
||||
this.$accessor.client.toggleAbout()
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue