import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './views/Home'
import Profile from './views/User/ProfileUser'
import ShowUser from './views/User/ShowUser'
import DashBoard from './views/DashBoard'
import CssTesteur from './views/CssTesteur'
import MemoIndex from './views/Memo/MemoIndex'
import MemoCreate from './views/Memo/MemoCreate'
import MemoShow from './views/Memo/MemoShow'
import MemoEdit from './views/Memo/MemoEdit'
import ToDoListIndex from './views/ToDoLists/ToDoListIndex'
import ToDoListShow from './views/ToDoLists/ToDoListShow'
import GameIndex from './views/Games/GameIndex'
import Hangman from './views/Games/HangMan/Hangman'
import Quizz from './views/Games/Quizz/Quizz'

Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history',

    routes: [
        {
            path: '/', name: 'home', component: Home,
            meta: { title: 'Home'}
        },
        {
            path: '/profile', name: 'profile', component: Profile,
            meta: { title: 'Profile'}
        },
        {
            path: '/users/:id', name: 'user', component: ShowUser,
            meta: { title: 'User'}
        },
        {
            path: '/dashboard', name: 'dashboard', component: DashBoard,
            meta: { title: 'Dashboard'}
        },

        {
            path: '/css-testeur', name: 'css-testeur', component: CssTesteur,
            meta: { title: 'css-testeur'}
        },

        {
            path: '/memos', component: MemoIndex,
            meta: {title: 'Memos'}
        }, {
            path: '/memos/create', component: MemoCreate,
            meta: {title: 'Add New Memo'}
        }, {
            path: '/memos/:id', component: MemoShow,
            meta: {title: 'Details for Memo'}
        }, {
            path: '/memos/:id/edit', component: MemoEdit,
            meta: {title: 'Edit Memo'}
        },

        {
            path: '/to-do-lists', component: ToDoListIndex,
            meta: {title: 'To Do Lists'}
        }, {
            path: '/to-do-lists/:id', component: ToDoListShow,
            meta: {title: 'Details of List'}
        },

        {
            path: '/jeux', component: GameIndex,
            meta: {title: 'Liste des jeux'}
        },
        {
            path: '/jeux/pendu', component: Hangman,
            meta: {title: 'Jeu : Le pendu'}
        },
        {
            path: '/jeux/quizz', component: Quizz,
            meta: {title: 'Jeu : Quizz'}
        },
    ]
})
