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"
|
|
|
|
: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',
|
2020-08-08 15:47:01 +02:00
|
|
|
|
2020-07-15 16:39:24 +02:00
|
|
|
data: () => {
|
|
|
|
return {
|
|
|
|
menu: [
|
2020-07-15 17:30:09 +02:00
|
|
|
{ id: 0, routeName: 'user-list', icon: 'users', translation: 'users' },
|
2020-08-02 21:22:58 +02:00
|
|
|
{ id: 1, routeName: 'domain-list', icon: 'globe', translation: 'domains' },
|
2020-07-15 17:30:09 +02:00
|
|
|
{ id: 2, routeName: 'apps', icon: 'cubes', translation: 'applications' },
|
|
|
|
{ id: 3, routeName: 'update', icon: 'refresh', translation: 'system_update' },
|
2020-08-08 00:19:18 +02:00
|
|
|
{ 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' },
|
2020-07-15 17:30:09 +02:00
|
|
|
{ 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>
|
2020-07-27 11:19:32 +02:00
|
|
|
.home {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
2020-07-12 19:20:18 +02:00
|
|
|
</style>
|