* Cleanup before merge
This commit is contained in:
0
full-skies-nuxt/components/atoms/FSButton.vue
Normal file
0
full-skies-nuxt/components/atoms/FSButton.vue
Normal file
@@ -8,7 +8,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="section-content">
|
<div class="section-content">
|
||||||
<main class="celestial-body">
|
<main v-if="celestial" class="celestial-body">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="heading-3">
|
<h3 class="heading-3">
|
||||||
Informations
|
Informations
|
||||||
@@ -43,17 +43,13 @@
|
|||||||
<script>
|
<script>
|
||||||
// API
|
// API
|
||||||
import { fetchCelestial } from '@/api/le-systeme-solaire'
|
import { fetchCelestial } from '@/api/le-systeme-solaire'
|
||||||
// import { fetchWikipediaExcerpt } from "@/api/wikipedia";
|
|
||||||
|
|
||||||
// Global methods
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Celestial',
|
name: 'Celestial',
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
celestial: {},
|
celestial: {}
|
||||||
celestialLoaded: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -62,12 +58,11 @@ export default {
|
|||||||
fetchCelestial(this.$route.params.slug)
|
fetchCelestial(this.$route.params.slug)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.celestial = res
|
this.celestial = res
|
||||||
this.celestialLoaded = true
|
|
||||||
return this.celestial
|
return this.celestial
|
||||||
})
|
})
|
||||||
.catch(() => {
|
// .catch((err) => {
|
||||||
this.error = "Impossible de récupérer l'astre demandé."
|
// console.error(err)
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -14,14 +14,15 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Favourites',
|
name: 'Favourites',
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
favorites: []
|
favourites: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
// const favourites = this.$store.user.favourites
|
// const favourites = this.$store.state.user.favourites
|
||||||
// console.log(favourites)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user