Compare commits

..

No commits in common. "336a09f2595e2fe713d1784cb6358807d2ee9b09" and "be7cfff8d9d79e55c87d5b520c25ebf0cb7c48fe" have entirely different histories.

13 changed files with 65 additions and 105 deletions

View File

@ -135,6 +135,12 @@
<div class="padded"> <div class="padded">
{{ xml.tags.opening_hours }} {{ xml.tags.opening_hours }}
</div> </div>
<iframe
src="https://projets.pavie.info/yohours/"
frameborder="0"
width="100%"
height="800"
></iframe>
<button class="btn button has-background-success">Enregistrer</button> <button class="btn button has-background-success">Enregistrer</button>
</section> </section>
@ -168,21 +174,21 @@ export default {
if (!name.length) { if (!name.length) {
this.data = [] this.data = []
} }
this.isFetching = true // this.isFetching = true
this.$axios // axios
.get(`https://demo.addok.xyz/search/?q=${name}`) // .get(`https://demo.addok.xyz/search/?q=${name}`)
.then(({ data }) => { // .then(({ data }) => {
console.log('data', data) // console.log('data', data)
this.data = [] // this.data = []
data.results.forEach((item) => this.data.push(item)) // data.results.forEach((item) => this.data.push(item))
}) // })
.catch((error) => { // .catch((error) => {
this.data = [] // this.data = []
throw error // throw error
}) // })
.finally(() => { // .finally(() => {
this.isFetching = false // this.isFetching = false
}) // })
// axios // axios
// .get(`https://api.openstreetmap.org/api/0.6/node/6126513555`) // .get(`https://api.openstreetmap.org/api/0.6/node/6126513555`)
// .then(({ data }) => { // .then(({ data }) => {

View File

@ -1,10 +1,8 @@
import en from './locales/en.json' import en from './locales/en.json'
import bz from './locales/bz.json'
import fr from './locales/fr.json' import fr from './locales/fr.json'
import oc from './locales/oc.json'
export default { export default {
locale: 'fr', locale: 'en',
fallbackLocale: 'fr', fallbackLocale: 'en',
messages: { bz, en, fr, oc }, messages: { en, fr },
} }

View File

@ -1,4 +0,0 @@
{
"locale_descritption": "Brezhoneg",
"message": "Bonjour en Breton!"
}

View File

@ -1,4 +1,3 @@
{ {
"locale_descritption": "English", "message": "hello!"
"message": "Hello in English!"
} }

View File

@ -1,4 +1,3 @@
{ {
"locale_descritption": "Français", "message": "bonjour!"
"message": "Bonjour en Français!"
} }

View File

@ -1,4 +0,0 @@
{
"locale_descritption": "Occitan",
"message": "bonjour en occitan!"
}

View File

@ -7,7 +7,9 @@
> >
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item" href="/"> <a class="navbar-item" href="/">
<img src="~assets/OSM-FR.svg" alt="logo osm" /> <img
src='~assets/OSM-FR.svg'
alt='logo osm' >
Sur OSM Sur OSM
</a> </a>
@ -21,13 +23,10 @@
<section class="main-content columns"> <section class="main-content columns">
<aside class="column is-2 section"> <aside class="column is-2 section">
<!-- <p class="menu-label is-hidden-touch">General</p>--> <!-- <p class="menu-label is-hidden-touch">General</p>-->
<ul class="menu-list"> <ul class="menu-list">
<li v-for="(item, key) of items" :key="key"> <li v-for="(item, key) of items" :key="key">
<nuxt-link <nuxt-link :to="item.to" exact-active-class="has-background-success">
:to="item.to"
exact-active-class="has-background-success"
>
<b-icon :icon="item.icon" /> {{ item.title }} <b-icon :icon="item.icon" /> {{ item.title }}
</nuxt-link> </nuxt-link>
</li> </li>
@ -42,12 +41,21 @@
</template> </template>
<script> <script>
import routelist from './routes'
export default { export default {
data() { data() {
return { return {
items: routelist, items: [
{
title: 'Accueil',
icon: 'home',
to: { name: 'index' },
},
{
title: 'à propos',
icon: 'lightbulb',
to: { name: 'A-propos' },
},
],
} }
}, },
} }

View File

@ -1,17 +0,0 @@
export default [
{
title: 'Accueil',
icon: 'home',
to: { name: 'index' },
},
{
title: 'Horaires',
icon: 'clock',
to: { name: 'Horaires' },
},
{
title: 'à propos',
icon: 'lightbulb',
to: { name: 'A-propos' },
},
]

View File

@ -2,9 +2,7 @@
<section class="section"> <section class="section">
<h1>à propos</h1> <h1>à propos</h1>
<p> <p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam corporis eum natus odio recusandae sapiente sunt suscipit voluptate, voluptatem! Animi culpa debitis illo, ipsam magnam nihil nobis quo sint?
corporis eum natus odio recusandae sapiente sunt suscipit voluptate,
voluptatem! Animi culpa debitis illo, ipsam magnam nihil nobis quo sint?
</p> </p>
</section> </section>
</template> </template>

View File

@ -1,12 +0,0 @@
<template>
<section class="section">
<h1>Horaires</h1>
<p>Vos horaires actuelles</p>
<iframe
src="https://projets.pavie.info/yohours/"
frameborder="0"
width="100%"
height="800"
></iframe>
</section>
</template>

View File

@ -1,6 +1,6 @@
<template> <template>
<section class="section"> <section class="section">
<!-- <h1 class="title">{{ $t('message') }}</h1>--> <!-- <h1 class="title">{{ $t('message') }}</h1>-->
<h1 class="title is-1">OSM Mon Commerce</h1> <h1 class="title is-1">OSM Mon Commerce</h1>
<search-input></search-input> <search-input></search-input>
</section> </section>

View File

@ -1,26 +0,0 @@
export const state = () => ({
counter: 0,
list: [],
formConfig: {},
})
export const mutations = {
increment(state: any) {
state.counter++
},
add(state: any, text: any) {
state.list.push({
text,
done: false,
})
},
remove(state: any, { todo }: any) {
state.list.splice(state.list.indexOf(todo), 1)
},
toggle(state: any, todo: any) {
todo.done = !todo.done
},
setFormField(state: any, { field }: any) {
state.formConfig[state.formConfig.indexOf(field)] = field
},
}

View File

@ -3,7 +3,11 @@
"target": "ES2018", "target": "ES2018",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "Node", "moduleResolution": "Node",
"lib": ["ESNext", "ESNext.AsyncIterable", "DOM"], "lib": [
"ESNext",
"ESNext.AsyncIterable",
"DOM"
],
"esModuleInterop": true, "esModuleInterop": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"allowJs": true, "allowJs": true,
@ -13,10 +17,21 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"~/*": ["./*"], "~/*": [
"@/*": ["./*"] "./*"
],
"@/*": [
"./*"
]
}, },
"types": ["@types/node", "@nuxt/types"] "types": [
"@types/node",
"@nuxt/types"
]
}, },
"exclude": ["node_modules", ".nuxt", "dist"] "exclude": [
"node_modules",
".nuxt",
"dist"
]
} }