2019-06-03 03:31:38 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import VueRouter from 'vue-router';
|
|
|
|
|
|
|
|
import Home from '../components/home/home.vue';
|
2019-12-13 02:57:01 +00:00
|
|
|
import Release from '../components/releases/release.vue';
|
2020-01-05 00:07:32 +00:00
|
|
|
import Site from '../components/sites/site.vue';
|
2019-11-30 04:55:32 +00:00
|
|
|
import Network from '../components/networks/network.vue';
|
|
|
|
import Networks from '../components/networks/networks.vue';
|
|
|
|
import Actor from '../components/actors/actor.vue';
|
|
|
|
import Actors from '../components/actors/actors.vue';
|
2019-12-01 04:32:47 +00:00
|
|
|
import Tag from '../components/tags/tag.vue';
|
|
|
|
import Tags from '../components/tags/tags.vue';
|
2019-11-09 03:43:58 +00:00
|
|
|
import NotFound from '../components/errors/404.vue';
|
2019-06-03 03:31:38 +00:00
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: Home,
|
2019-07-06 03:29:12 +00:00
|
|
|
name: 'home',
|
2019-06-03 03:31:38 +00:00
|
|
|
},
|
|
|
|
{
|
2020-02-04 02:12:09 +00:00
|
|
|
path: '/scene/:releaseId/:releaseTitle?',
|
2019-06-03 03:31:38 +00:00
|
|
|
component: Release,
|
2019-11-11 04:18:28 +00:00
|
|
|
name: 'scene',
|
2019-06-03 03:31:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/movie/:releaseId',
|
|
|
|
component: Release,
|
2019-11-11 04:18:28 +00:00
|
|
|
name: 'movie',
|
2019-06-03 03:31:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/actor/:actorSlug',
|
|
|
|
component: Actor,
|
2019-07-06 03:29:12 +00:00
|
|
|
name: 'actor',
|
2019-06-03 03:31:38 +00:00
|
|
|
},
|
2019-11-09 03:43:58 +00:00
|
|
|
{
|
|
|
|
path: '/site/:siteSlug',
|
|
|
|
component: Site,
|
|
|
|
name: 'site',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/network/:networkSlug',
|
|
|
|
component: Network,
|
|
|
|
name: 'network',
|
|
|
|
},
|
2019-11-11 04:18:28 +00:00
|
|
|
{
|
|
|
|
path: '/tag/:tagSlug',
|
|
|
|
component: Tag,
|
|
|
|
name: 'tag',
|
|
|
|
},
|
2019-11-30 04:55:32 +00:00
|
|
|
{
|
|
|
|
path: '/actors',
|
|
|
|
component: Actors,
|
|
|
|
name: 'actors',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/networks',
|
|
|
|
component: Networks,
|
|
|
|
name: 'networks',
|
|
|
|
},
|
2019-12-01 04:32:47 +00:00
|
|
|
{
|
|
|
|
path: '/tags',
|
|
|
|
component: Tags,
|
|
|
|
name: 'tags',
|
|
|
|
},
|
2019-06-03 03:31:38 +00:00
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
component: NotFound,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|