2019-07-05 03:23:16 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
import DownloadConfig from './views/DownloadConfig.vue'
|
2019-10-07 02:07:35 +02:00
|
|
|
import MigrateView from './views/MigrateView.vue'
|
2019-07-05 03:23:16 +02:00
|
|
|
import SelectPackages from './views/SelectPackages.vue'
|
|
|
|
import ErrorView from './views/ErrorView.vue'
|
|
|
|
import InstallPackages from './views/InstallPackages.vue'
|
|
|
|
import CompleteView from './views/CompleteView.vue'
|
|
|
|
import ModifyView from './views/ModifyView.vue'
|
2019-10-21 09:09:16 +02:00
|
|
|
import AuthenticationView from './views/AuthenticationView.vue'
|
2019-11-01 18:15:16 +01:00
|
|
|
import ReAuthenticationView from './views/ReAuthenticationView.vue'
|
2019-07-05 03:23:16 +02:00
|
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/config',
|
|
|
|
name: 'config',
|
|
|
|
component: DownloadConfig
|
|
|
|
},
|
2019-10-07 02:07:35 +02:00
|
|
|
{
|
|
|
|
path: '/migrate',
|
|
|
|
name: 'migrate',
|
|
|
|
component: MigrateView
|
|
|
|
},
|
2019-07-05 03:23:16 +02:00
|
|
|
{
|
|
|
|
path: '/packages',
|
|
|
|
name: 'packages',
|
|
|
|
component: SelectPackages
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/install/:kind',
|
|
|
|
name: 'install',
|
|
|
|
component: InstallPackages
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/showerr',
|
|
|
|
name: 'showerr',
|
|
|
|
component: ErrorView
|
|
|
|
},
|
|
|
|
{
|
2019-10-07 02:07:35 +02:00
|
|
|
path: '/complete/:uninstall/:update/:migrate/:packages_installed',
|
2019-07-05 03:23:16 +02:00
|
|
|
name: 'complete',
|
|
|
|
component: CompleteView
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/modify',
|
|
|
|
name: 'modify',
|
|
|
|
component: ModifyView
|
|
|
|
},
|
2019-10-21 09:09:16 +02:00
|
|
|
{
|
|
|
|
path: '/authentication',
|
|
|
|
name: 'authentication',
|
|
|
|
component: AuthenticationView
|
|
|
|
},
|
2019-11-01 18:15:16 +01:00
|
|
|
{
|
|
|
|
path: '/reauthenticate',
|
|
|
|
name: 'reauthenticate',
|
|
|
|
component: ReAuthenticationView
|
|
|
|
},
|
2019-07-05 03:23:16 +02:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
redirect: '/config'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|