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

43 lines
1.2 KiB
Vue
Raw Normal View History

<template>
2020-07-15 16:39:24 +02:00
<div class="home">
2020-09-11 14:20:48 +02:00
<b-list-group class="menu-list">
<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' },
2020-09-28 00:28:42 +02:00
{ id: 2, routeName: 'app-list', 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>
2020-07-27 11:19:32 +02:00
.home {
margin-top: 2rem;
}
2020-07-12 19:20:18 +02:00
</style>