2020-07-07 13:48:54 +02:00
|
|
|
<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">
|
2020-07-15 17:30:09 +02:00
|
|
|
<b-list-group-item
|
|
|
|
v-for="item in menu"
|
2020-12-16 12:16:43 +01:00
|
|
|
:key="item.routeName"
|
|
|
|
:to="{ name: item.routeName }"
|
2020-07-15 17:30:09 +02:00
|
|
|
>
|
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',
|
2020-08-08 15:47:01 +02:00
|
|
|
|
2020-12-16 12:16:43 +01:00
|
|
|
data () {
|
2020-07-15 16:39:24 +02:00
|
|
|
return {
|
|
|
|
menu: [
|
2020-12-16 12:16:43 +01:00
|
|
|
{ routeName: 'user-list', icon: 'users', translation: 'users' },
|
|
|
|
{ routeName: 'domain-list', icon: 'globe', translation: 'domains' },
|
|
|
|
{ routeName: 'app-list', icon: 'cubes', translation: 'applications' },
|
|
|
|
{ routeName: 'update', icon: 'refresh', translation: 'system_update' },
|
|
|
|
{ routeName: 'service-list', icon: 'cog', translation: 'services' },
|
|
|
|
{ routeName: 'tool-list', icon: 'wrench', translation: 'tools' },
|
|
|
|
{ routeName: 'diagnosis', icon: 'stethoscope', translation: 'diagnosis' },
|
|
|
|
{ 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>
|
2020-07-27 11:19:32 +02:00
|
|
|
.home {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
2020-07-12 19:20:18 +02:00
|
|
|
</style>
|