2020-01-19 20:23:06 +01:00
|
|
|
<template>
|
|
|
|
<div class="content">
|
2021-06-24 01:24:57 +02:00
|
|
|
<h1>{{ $t('migrate.title') }}</h1>
|
|
|
|
<p>{{ $t('migrate.description') }}</p>
|
2021-10-26 22:21:19 +02:00
|
|
|
<div class="migration-services">
|
2021-09-04 21:26:38 +02:00
|
|
|
<router-link
|
2021-10-26 22:21:19 +02:00
|
|
|
v-for="{name, id, icon} in availableMigrators"
|
|
|
|
:key="id"
|
|
|
|
class="migration-service-link"
|
|
|
|
:to="{name: 'migrate.service', params: {service: id}}"
|
2021-10-03 20:48:02 +02:00
|
|
|
>
|
2021-10-26 22:21:19 +02:00
|
|
|
<img
|
|
|
|
class="migration-service-image"
|
|
|
|
:alt="name"
|
|
|
|
:src="icon"
|
|
|
|
/>
|
2021-10-03 20:48:02 +02:00
|
|
|
{{ name }}
|
2020-01-19 20:23:06 +01:00
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-02-15 13:07:34 +01:00
|
|
|
<script lang="ts">
|
2021-10-26 22:21:19 +02:00
|
|
|
import {MIGRATORS} from './migrators'
|
2021-09-04 21:26:38 +02:00
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
export default {
|
2021-10-26 22:21:19 +02:00
|
|
|
name: 'Migrate',
|
2020-09-05 22:35:52 +02:00
|
|
|
mounted() {
|
2021-06-24 01:24:57 +02:00
|
|
|
this.setTitle(this.$t('migrate.title'))
|
2020-09-05 22:35:52 +02:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
availableMigrators() {
|
2021-10-26 22:21:19 +02:00
|
|
|
return this.$store.state.config.availableMigrators
|
|
|
|
.map((id) => MIGRATORS[id])
|
|
|
|
.filter((item) => Boolean(item))
|
2021-10-03 20:48:02 +02:00
|
|
|
},
|
2020-09-05 22:35:52 +02:00
|
|
|
},
|
|
|
|
}
|
2020-01-19 20:23:06 +01:00
|
|
|
</script>
|
2021-10-18 14:21:10 +02:00
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-10-26 22:21:19 +02:00
|
|
|
.migration-services {
|
2021-10-18 14:21:10 +02:00
|
|
|
text-align: center;
|
2021-10-26 22:21:19 +02:00
|
|
|
}
|
2021-10-18 14:21:10 +02:00
|
|
|
|
2021-10-26 22:21:19 +02:00
|
|
|
.migration-service-link {
|
2021-10-18 14:21:10 +02:00
|
|
|
display: inline-block;
|
|
|
|
width: 100px;
|
|
|
|
text-transform: capitalize;
|
|
|
|
margin-right: 1rem;
|
|
|
|
|
2021-10-26 22:21:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.migration-service-image {
|
|
|
|
display: block;
|
2021-10-18 14:21:10 +02:00
|
|
|
}
|
|
|
|
</style>
|