2020-07-07 13:48:54 +02:00
|
|
|
<template>
|
2020-07-07 21:59:29 +02:00
|
|
|
<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>
|
2020-07-07 21:59:29 +02:00
|
|
|
</b-list-group>
|
|
|
|
</div>
|
2020-07-07 13:48:54 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'Home',
|
2020-07-07 21:59:29 +02:00
|
|
|
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'},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2020-07-07 13:48:54 +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;
|
|
|
|
}
|
|
|
|
</style>
|