9b232c7d4f
Complete migration flow Add migration in progress animation Add handling wunderlist migration flow Basic migration init structure Add migrator structure Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/46
36 lines
825 B
Vue
36 lines
825 B
Vue
<template>
|
|
<div class="content has-text-centered">
|
|
<h2>Hi {{user.infos.username}}!</h2>
|
|
<p>Click on a list or namespace on the left to get started.</p>
|
|
<router-link class="button is-primary is-right noshadow is-outlined" :to="{name: 'migrateStart'}">Import your data into Vikunja</router-link>
|
|
<TaskOverview :show-all="true"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import auth from '../auth'
|
|
import router from '../router'
|
|
|
|
export default {
|
|
name: "Home",
|
|
data() {
|
|
return {
|
|
user: auth.user,
|
|
loading: false,
|
|
currentDate: new Date(),
|
|
tasks: []
|
|
}
|
|
},
|
|
beforeMount() {
|
|
// Check if the user is already logged in, if so, redirect him to the homepage
|
|
if (!auth.user.authenticated) {
|
|
router.push({name: 'login'})
|
|
}
|
|
},
|
|
methods: {
|
|
logout() {
|
|
auth.logout()
|
|
},
|
|
},
|
|
}
|
|
</script>
|