repos
/ timestrap-django master

timestrap-django

mirror archived upstream

Time tracking you can host anywhere, built on Django. Full export support in multiple formats and easily extensible.

djangodockerhandcodedpythonself-hostedtime-trackingtimetracker

1.2 KB · 51 lines · JavaScript Raw History
 1import Vue from 'vue';
 2import VueRouter from 'vue-router';
 3
 4import Projects from './components/projects/projects.vue';
 5import Clients from './components/clients/clients.vue';
 6import Tasks from './components/tasks/tasks.vue';
 7import Timesheet from './components/timesheet/timesheet.vue';
 8import Reports from './components/reports/reports.vue';
 9
10
11Vue.use(VueRouter);
12
13
14export default new VueRouter({
15  mode: 'history',
16  hasbang: false,
17  linkActiveClass: 'active',
18  routes: [
19    {
20      path: '/timesheet/',
21      name: 'timesheet',
22      component: Timesheet,
23      meta: {title: 'Timesheet — ' + timestrapConfig.SITE.NAME},
24    },
25    {
26      path: '/projects/',
27      name: 'projects',
28      component: Projects,
29      meta: {title: 'Projects — ' + timestrapConfig.SITE.NAME},
30    },
31    {
32      path: '/clients/',
33      name: 'clients',
34      component: Clients,
35      meta: {title: 'Clients — ' + timestrapConfig.SITE.NAME},
36    },
37    {
38      path: '/tasks/',
39      name: 'tasks',
40      component: Tasks,
41      meta: {title: 'Tasks — ' + timestrapConfig.SITE.NAME},
42    },
43    {
44      path: '/reports/',
45      name: 'reports',
46      component: Reports,
47      meta: {title: 'Reports — ' + timestrapConfig.SITE.NAME},
48    },
49  ],
50});