2020-07-07 13:48:54 +02:00
|
|
|
<template>
|
2020-07-15 16:39:24 +02:00
|
|
|
<div class="home">
|
|
|
|
<b-list-group>
|
2020-07-15 17:30:09 +02:00
|
|
|
<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>
|
2020-07-07 13:48:54 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2020-07-15 16:39:24 +02:00
|
|
|
name: 'Home',
|
|
|
|
data: () => {
|
|
|
|
return {
|
|
|
|
menu: [
|
2020-07-15 17:30:09 +02:00
|
|
|
{ id: 0, routeName: 'user-list', icon: 'users', translation: 'users' },
|
|
|
|
{ id: 1, routeName: 'domains', icon: 'globe', translation: 'domains' },
|
|
|
|
{ id: 2, routeName: 'apps', icon: 'cubes', translation: 'applications' },
|
|
|
|
{ id: 3, routeName: 'update', icon: 'refresh', translation: 'system_update' },
|
|
|
|
{ id: 4, routeName: 'services', icon: 'cog', translation: 'services' },
|
|
|
|
{ id: 5, routeName: 'tools', 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
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|
2020-07-27 11:19:32 +02:00
|
|
|
|
|
|
|
.home {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
2020-07-12 19:20:18 +02:00
|
|
|
</style>
|