Transitioning to Vue. Installed environment and restored homepage scene overview.

This commit is contained in:
2019-06-03 05:31:38 +02:00
parent b8c2878fc3
commit b8aa81b3f1
37 changed files with 5261 additions and 413 deletions

39
assets/js/router.js Normal file
View File

@@ -0,0 +1,39 @@
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../components/home/home.vue';
import Release from '../components/release/release.vue';
import Actor from '../components/actor/actor.vue';
import NotFound from '../components/errors/not-found.vue';
Vue.use(VueRouter);
const routes = [
{
path: '/',
component: Home,
},
{
path: '/scene/:releaseId',
component: Release,
},
{
path: '/movie/:releaseId',
component: Release,
},
{
path: '/actor/:actorSlug',
component: Actor,
},
{
path: '*',
component: NotFound,
},
];
const router = new VueRouter({
mode: 'history',
routes,
});
export default router;