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'
|
|
|
|
|
|
|
|
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
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
redirect: '/config'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|