working with deploy options
This commit is contained in:
parent
a822753cb3
commit
4293f44262
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<Swiper
|
<Swiper
|
||||||
:autoHeight="true"
|
:autoHeight="true"
|
||||||
|
:loop="true"
|
||||||
:spaceBetween="30"
|
:spaceBetween="30"
|
||||||
:centeredSlides="true"
|
:centeredSlides="true"
|
||||||
:autoplay="{
|
:autoplay="{
|
||||||
|
|
@ -11,12 +12,21 @@
|
||||||
clickable: true,
|
clickable: true,
|
||||||
}"
|
}"
|
||||||
:navigation="true"
|
:navigation="true"
|
||||||
|
:style="{
|
||||||
|
'--swiper-navigation-color': 'rgb(71 85 105)',
|
||||||
|
'--swiper-pagination-color': 'rgb(71 85 105)',
|
||||||
|
'--swiper-pagination-bottom': 'auto',
|
||||||
|
'--swiper-pagination-top': '1rem',
|
||||||
|
'--swiper-navigation-top-offset': '5rem'
|
||||||
|
}"
|
||||||
:modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
|
:modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
|
||||||
>
|
>
|
||||||
|
|
||||||
<SwiperSlide v-for="image in gallery">
|
<SwiperSlide v-for="image in gallery" class="p-10 bg-zinc-100">
|
||||||
|
<div class="place-items-center">
|
||||||
<nuxt-img :src="'https://unboundedpress.org/api/' + bucket + '.files/' + image.image_id + '/binary'"
|
<nuxt-img :src="'https://unboundedpress.org/api/' + bucket + '.files/' + image.image_id + '/binary'"
|
||||||
quality="50"/>
|
quality="50"/>
|
||||||
|
</div>
|
||||||
</SwiperSlide>
|
</SwiperSlide>
|
||||||
</Swiper>
|
</Swiper>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,19 @@ export default defineNuxtConfig({
|
||||||
host: 'https://analytics.umami.is/',
|
host: 'https://analytics.umami.is/',
|
||||||
version: 2
|
version: 2
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
nitro: {
|
||||||
|
prerender: {
|
||||||
|
crawlLinks: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
routeRules: {
|
||||||
|
"https://unboundedpress.org/api/*": {
|
||||||
|
swr: 60 * 60,
|
||||||
|
// or
|
||||||
|
cache: {
|
||||||
|
maxAge: 60 * 60
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ const { data: gallery } = await useFetch('https://unboundedpress.org/api/my_imag
|
||||||
for (const item of gallery) {
|
for (const item of gallery) {
|
||||||
item.image_id = images.value.find(obj => {return obj.filename === item.image})._id.$oid
|
item.image_id = images.value.find(obj => {return obj.filename === item.image})._id.$oid
|
||||||
}
|
}
|
||||||
console.log(gallery)
|
|
||||||
return gallery //.sort((a,b) => a.priority - b.priority)
|
return gallery //.sort((a,b) => a.priority - b.priority)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue