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

55 lines
1.4 KiB
Vue
Raw Normal View History

<template>
2020-07-15 16:39:24 +02:00
<div class="home">
<b-list-group>
<b-list-group-item
v-for="item in menu"
:key="item.id"
:to="{name: item.routeName}"
>
2020-07-15 16:39:24 +02:00
<icon :iname="item.icon" class="lg" />
<h2>{{ $t(item.translation) }}</h2>
<icon iname="chevron-right" class="lg fs-sm ml-auto" />
</b-list-group-item>
</b-list-group>
</div>
</template>
<script>
export default {
2020-07-15 16:39:24 +02:00
name: 'Home',
2020-08-08 15:47:01 +02:00
2020-07-15 16:39:24 +02:00
data: () => {
return {
menu: [
{ id: 0, routeName: 'user-list', icon: 'users', translation: 'users' },
{ id: 1, routeName: 'domain-list', icon: 'globe', translation: 'domains' },
{ id: 2, routeName: 'apps', icon: 'cubes', translation: 'applications' },
{ id: 3, routeName: 'update', icon: 'refresh', translation: 'system_update' },
{ id: 4, routeName: 'service-list', icon: 'cog', translation: 'services' },
2020-08-08 15:47:01 +02:00
{ id: 5, routeName: 'tool-list', icon: 'wrench', translation: 'tools' },
{ id: 6, routeName: 'diagnosis', icon: 'stethoscope', translation: 'diagnosis' },
{ id: 7, routeName: 'backup', icon: 'archive', translation: 'backup' }
2020-07-15 16:39:24 +02:00
]
}
}
}
</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;
}
2020-07-27 11:19:32 +02:00
.home {
margin-top: 2rem;
}
2020-07-12 19:20:18 +02:00
</style>