add Backup view/route

This commit is contained in:
Axolotle 2020-09-25 10:00:20 +02:00
parent a7fc728b7a
commit a073137b30
2 changed files with 52 additions and 0 deletions

View file

@ -277,6 +277,20 @@ const routes = [
{ name: 'diagnosis', trad: 'diagnosis' } { name: 'diagnosis', trad: 'diagnosis' }
] ]
} }
},
/*
BACKUP
*/
{
name: 'backup',
path: '/backup',
component: () => import(/* webpackChunkName: "views/backup" */ '@/views/backup/Backup'),
meta: {
breadcrumb: [
{ name: 'backup', trad: 'backup' }
]
}
} }
] ]

View file

@ -0,0 +1,38 @@
<template>
<div class="backup">
<b-list-group>
<b-list-group-item
v-for="{ id, name, uri } in storages" :key="id"
:to="{ name: 'backup-list', params: { name: id }}"
class="d-flex justify-content-between align-items-center pr-0"
>
<div>
<h5>
{{ name }}
<small>{{ id }}</small>
</h5>
<p class="mb-0">{{ uri }}</p>
</div>
<icon iname="chevron-right" class="lg fs-sm ml-auto" />
</b-list-group-item>
</b-list-group>
</div>
</template>
<script>
export default {
name: 'Backup',
data () {
return {
storages: [
{
id: 'local',
name: this.$i18n.t('local_archives'),
uri: '/home/yunohost.backup/'
}
]
}
}
}
</script>