yunohost-admin/app/src/views/Home.vue

46 lines
1.4 KiB
Vue
Raw Normal View History

<template>
<div class="home">
<b-list-group>
2020-07-12 19:20:18 +02:00
<b-list-group-item v-for="item in menu" :key="item.id" :to="item.uri">
<icon :iname="item.icon" class="fa-fw"/>
<h2>{{ $t(item.translation) }}</h2>
<icon iname="chevron-right" class="fa-fw fs-sm ml-auto"/>
</b-list-group-item>
</b-list-group>
</div>
</template>
<script>
export default {
name: 'Home',
data: () => {
return {
menu: [
{id: 0, uri: '/users', icon: 'users', translation: 'users'},
{id: 1, uri: '/domains', icon: 'globe', translation: 'domains'},
{id: 2, uri: '/apps', icon: 'cubes', translation: 'applications'},
{id: 3, uri: '/update', icon: 'refresh', translation: 'system_update'},
{id: 4, uri: '/services', icon: 'cog', translation: 'services'},
{id: 5, uri: '/tools', icon: 'wrench', translation: 'tools'},
{id: 6, uri: '/diagnosis', icon: 'stethoscope', translation: 'diagnosis'},
{id: 7, uri: '/backup', icon: 'archive', translation: 'backup'},
]
}
},
}
</script>
2020-07-12 19:20:18 +02:00
<style lang="scss" scoped>
.list-group-item {
padding: 0.75rem 0;
display: flex;
align-items: center;
}
h2 {
font-size: 1.25rem;
font-weight: 400;
margin: 0;
}
</style>