You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
903 B
46 lines
903 B
import { createRouter, createWebHashHistory } from 'vue-router' |
|
import Trackers from "../views/Trackers"; |
|
import Settings from "../views/Settings"; |
|
import TrackersDetail from "../views/TrackersDetail"; |
|
import Archive from "../views/Archive"; |
|
import Notes from "../views/Notes"; |
|
|
|
Array.prototype.pushToBeginning = function (toPush) { |
|
return this.unshift.apply(this, [toPush]); |
|
} |
|
|
|
const routes = [ |
|
{ |
|
path: '/', |
|
name: 'Trackers', |
|
component: Trackers |
|
}, |
|
{ |
|
path: '/trackers', |
|
name: 'TrackersDetail', |
|
component: TrackersDetail |
|
}, |
|
{ |
|
path: '/archive', |
|
name: 'Archive', |
|
component: Archive |
|
}, |
|
{ |
|
path: '/notes', |
|
name: 'Notes', |
|
component: Notes |
|
}, |
|
{ |
|
path: '/settings', |
|
name: 'Settings', |
|
component: Settings |
|
}, |
|
] |
|
|
|
const router = createRouter({ |
|
history: createWebHashHistory(), |
|
base: '/ttrack/', |
|
routes |
|
}) |
|
|
|
export default router
|
|
|