123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import Home from 'pages/Home'
- // import Item from 'pages/Item'
- import ListCorpus from 'pages/ListCorpus'
- // import Corpus from 'pages/Corpus'
- import Edition from 'pages/Edition'
- import IndexNominum from 'pages/IndexNominum'
- import IndexLocorum from 'pages/IndexLocorum'
- import IndexOperum from 'pages/IndexOperum'
- import Nominum from 'pages/Nominum'
- import Locorum from 'pages/Locorum'
- import Operum from 'pages/Operum'
- import Bibliographie from 'pages/Bibliographie'
- import NotFound from 'pages/NotFound'
- Vue.use(Router)
- const routes = [
- {
- name: 'home',
- path: '/',
- component: Home
- },
- // {
- // name: 'item',
- // path: '/babar/:uuid',
- // component: Item,
- // props: true
- // },
- {
- name: 'listcorpus',
- path: '/corpus',
- component: ListCorpus
- },
- // {
- // name: 'corpus',
- // path: '/corpus/:id',
- // component: Corpus
- // },
- {
- name: 'edition',
- path: '/texts/:id',
- component: Edition
- },
- {
- name: 'editiontext',
- path: '/texts/:id/:textid',
- component: Edition
- },
- {
- name: 'editiontextextract',
- path: '/texts/:id/:textid/:extract',
- component: Edition
- },
- {
- name: 'indexNominum',
- path: '/nominum',
- component: IndexNominum
- },
- {
- name: 'nominum',
- path: '/nominum/:id',
- component: Nominum
- },
- {
- name: 'indexLocorum',
- path: '/locorum',
- component: IndexLocorum
- },
- {
- name: 'locorum',
- path: '/locorum/:id',
- component: Locorum
- },
- {
- name: 'indexOperum',
- path: '/operum',
- component: IndexOperum
- },
- {
- name: 'operum',
- path: '/operum/:id',
- component: Operum
- },
- {
- path: '/bibliographie',
- redirect: '/bibliographie/expressions'
- },
- {
- name: 'bibliographie',
- path: '/bibliographie/:type',
- component: Bibliographie,
- props: true
- },
- {
- name: 'bibliographieItem',
- path: '/bibliographie/:type/:uuid',
- component: Bibliographie,
- props: true
- },
- {
- name: 'notfound',
- path: '/404',
- alias: '*',
- component: NotFound
- }
- ]
- export default new Router({
- mode: 'history',
- routes
- })
|