mirror of
https://github.com/devfake/flox.git
synced 2024-11-14 22:22:39 +01:00
a50a7d7c5b
* prepare languages * prepare routes * split settings into smaller components * move debounce and vue-router into vendor * remove dependency from index * refactor * update method comment
27 lines
996 B
JavaScript
27 lines
996 B
JavaScript
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
|
|
import config from './config';
|
|
|
|
import Content from './components/Content/Content.vue';
|
|
import SearchContent from './components/Content/SearchContent.vue';
|
|
import Settings from './components/Content/Settings/Index.vue';
|
|
import TMDBContent from './components/Content/TMDBContent.vue';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
mode: 'history',
|
|
base: config.uri,
|
|
routes: [
|
|
{ path: '/', component: Content, name: 'home' },
|
|
{ path: '/movies', component: Content, name: 'movie' },
|
|
{ path: '/tv', component: Content, name: 'tv' },
|
|
{ path: '/search', component: SearchContent, name: 'search' },
|
|
{ path: '/settings', component: Settings, name: 'settings' },
|
|
{ path: '/suggestions', component: TMDBContent, name: 'suggestions' },
|
|
{ path: '/trending', component: TMDBContent, name: 'trending' },
|
|
{ path: '/upcoming', component: TMDBContent, name: 'upcoming' },
|
|
{ path: '*', component: Content }
|
|
]
|
|
}); |