mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
33 lines
1 KiB
Vue
33 lines
1 KiB
Vue
<!-- FIXME make a component shared with Home.vue ? -->
|
|
<template>
|
|
<b-list-group class="menu-list">
|
|
<b-list-group-item
|
|
v-for="item in menu"
|
|
:key="item.routeName"
|
|
:to="{name: item.routeName}"
|
|
>
|
|
<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>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ToolList',
|
|
|
|
data () {
|
|
return {
|
|
menu: [
|
|
{ routeName: 'tool-logs', icon: 'book', translation: 'logs' },
|
|
{ routeName: 'tool-migrations', icon: 'share', translation: 'migrations' },
|
|
{ routeName: 'tool-firewall', icon: 'shield', translation: 'firewall' },
|
|
{ routeName: 'tool-adminpw', icon: 'key-modern', translation: 'tools_adminpw' },
|
|
{ routeName: 'tool-webadmin', icon: 'cog', translation: 'tools_webadmin_settings' },
|
|
{ routeName: 'tool-power', icon: 'power-off', translation: 'tools_shutdown_reboot' }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|