api calls implemented
This commit is contained in:
parent
ab85aa3b2f
commit
737ab1668d
3
TODO.md
3
TODO.md
|
@ -2,8 +2,7 @@
|
||||||
* Galleries - title not distinguishable on light images
|
* Galleries - title not distinguishable on light images
|
||||||
* Galleries - navigation icons not obvious enough with light background thumbs
|
* Galleries - navigation icons not obvious enough with light background thumbs
|
||||||
* Galleries - thumbs on desktop - way to make them stand out aginst the image
|
* Galleries - thumbs on desktop - way to make them stand out aginst the image
|
||||||
* Galleries - sort thumbs by sort_order
|
* General - sort things by sort_order
|
||||||
* API
|
|
||||||
* mailer
|
* mailer
|
||||||
* remove testing/dev mode or whatever its called from axios in nuxt.config.js
|
* remove testing/dev mode or whatever its called from axios in nuxt.config.js
|
||||||
|
|
||||||
|
|
|
@ -55,10 +55,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
asyncData () {
|
async asyncData ({ $axios }) {
|
||||||
return new Promise ((resolve, reject) => {
|
const { imageUrl } = await $axios.$get('/api/v1/page/about')
|
||||||
resolve({ imageUrl: "https://via.placeholder.com/1920x1080" })
|
return { imageUrl }
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,10 +161,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
asyncData () {
|
async asyncData ({ $axios }) {
|
||||||
return new Promise ((resolve, reject) => {
|
const { imageUrl } = await $axios.$get('/api/v1/page/about')
|
||||||
resolve({ imageUrl: "https://via.placeholder.com/1920x1080" })
|
return { imageUrl }
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -3,18 +3,6 @@ export const state = () => ({
|
||||||
socialNav: [],
|
socialNav: [],
|
||||||
})
|
})
|
||||||
|
|
||||||
// export const actions = {
|
|
||||||
// load ({ commit }) {
|
|
||||||
// return new Promise(resolve => {
|
|
||||||
// setTimeout(() => {
|
|
||||||
// commit('updateSiteNav', SITE_NAV)
|
|
||||||
// commit('updateSocialNav', SOCIAL_NAV)
|
|
||||||
// resolve()
|
|
||||||
// }, 300)
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
export const getters = {
|
export const getters = {
|
||||||
siteNav: state => {
|
siteNav: state => {
|
||||||
return state.siteNav
|
return state.siteNav
|
||||||
|
|
Loading…
Reference in New Issue