PHP Classes
elePHPant
Icontem

File: public/js/frontend/router.js

Recommend this page to a friend!
  Classes of Istvan Dobrentei  >  PHP Timesheet Management System  >  public/js/frontend/router.js  >  Download  
File: public/js/frontend/router.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Timesheet Management System
Manage project tasks and the respective work times
Author: By
Last change:
Date: 9 months ago
Size: 1,229 bytes
 

Contents

Class file image Download
import Vue from 'vue'
import VueRouter from 'vue-router'
import AuthGuard from './auth-guard'
import Login from './components/Login.vue'
import Dashboard from './components/Dashboard.vue'
import WorkingTime from './components/WorkingTime.vue'
import Project from './components/Project.vue'
import Summary from './components/Summary.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'loginForm',
        component: Login
    },
    {
        path: '/login',
        name: 'loginForm',
        component: Login
    },
    {
        path: '/dashboard',
        name: 'dashboard',
        component: Dashboard,
        beforeEnter: AuthGuard
    },
    {
        path: '/working-time',
        name: 'working-time',
        component: WorkingTime,
        beforeEnter: AuthGuard
    },
    {
        path: '/project',
        name: 'project',
        component: Project,
        beforeEnter: AuthGuard
    },
    {
        path: '/summary',
        name: 'summary',
        component: Summary,
        beforeEnter: AuthGuard
    },
    {
        path: '/logout',
        name: 'logout',
        component: Login,
        beforeEnter: AuthGuard
    }
]

export default new VueRouter({mode: '', routes})