started routing
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
import axios from 'axios'
|
|
||||||
|
|
||||||
export const HTTP = axios.create({
|
|
||||||
baseURL: `http://jsonplaceholder.typicode.com/`,
|
|
||||||
headers: {
|
|
||||||
Authorization: 'Bearer {token}'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
|
export const REST = axios.create({
|
||||||
|
baseURL: window.location.origin,
|
||||||
|
withCredentials: true,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -1,19 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<nav id="">
|
<nav id="header-menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#">Index</a></li>
|
<li>
|
||||||
<li><a href="#">Bibliographie</a></li>
|
<span>Index</span>
|
||||||
<li><a href="#">Blog</a></li>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<router-link to="/nominum">
|
||||||
|
Nominum
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<router-link to="/locorum">
|
||||||
|
Locorum
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<router-link to="/operum">
|
||||||
|
Operum
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<router-link to="/bibliographie">
|
||||||
|
Bibliographie
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">Blog</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HeaderMenu',
|
name: 'HeaderMenu',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
id="bibliographie"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<h1>Bibliographie</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Bibliographie',
|
||||||
|
data: () => ({
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
id="locorum"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<h1>Locorum</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Locorum',
|
||||||
|
data: () => ({
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
id="nominum"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<h1>Nominum</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Nominum',
|
||||||
|
data: () => ({
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
id="operum"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<h1>Operum</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Operum',
|
||||||
|
data: () => ({
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
+26
-1
@@ -2,17 +2,42 @@ import Vue from 'vue'
|
|||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
|
|
||||||
import Home from 'pages/Home'
|
import Home from 'pages/Home'
|
||||||
|
import Nominum from 'pages/Nominum'
|
||||||
|
import Locorum from 'pages/Locorum'
|
||||||
|
import Operum from 'pages/Operum'
|
||||||
|
import Bibliographie from 'pages/Bibliographie'
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
name: 'home',
|
name: 'home',
|
||||||
path: '*',
|
path: '/',
|
||||||
component: Home
|
component: Home
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'nominum',
|
||||||
|
path: '/nominum',
|
||||||
|
component: Nominum
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'locorum',
|
||||||
|
path: '/locorum',
|
||||||
|
component: Locorum
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'operum',
|
||||||
|
path: '/operum',
|
||||||
|
component: Operum
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'bibliographie',
|
||||||
|
path: '/bibliographie',
|
||||||
|
component: Bibliographie
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
|
mode: 'history',
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user