mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
add Backup view/route
This commit is contained in:
parent
a7fc728b7a
commit
a073137b30
2 changed files with 52 additions and 0 deletions
|
@ -277,6 +277,20 @@ const routes = [
|
|||
{ name: 'diagnosis', trad: 'diagnosis' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
/* ─────────╮
|
||||
│ BACKUP │
|
||||
╰───────── */
|
||||
{
|
||||
name: 'backup',
|
||||
path: '/backup',
|
||||
component: () => import(/* webpackChunkName: "views/backup" */ '@/views/backup/Backup'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{ name: 'backup', trad: 'backup' }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
|
38
app/src/views/backup/Backup.vue
Normal file
38
app/src/views/backup/Backup.vue
Normal 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>
|
Loading…
Reference in a new issue