page size 200

This commit is contained in:
2026-04-08 03:22:56 +02:00
parent 913ae480ce
commit 22cf847ad5
4 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ export function useStrapi(endpoint, options = {}) {
const queryString = computed(() => {
const locale = unref(options.locale) ?? "fr-FR"
const sort = unref(options.sort) ?? null
const pageSize = unref(options.pageSize) ?? null
const populate = unref(options.populate) ?? null
const filters = unref(options.filters) ?? null
@@ -10,6 +11,9 @@ export function useStrapi(endpoint, options = {}) {
if (sort) {
query.set("sort[0]", sort)
}
if (typeof pageSize === "number") {
query.set("pagination[pageSize]", String(pageSize))
}
if (populate && typeof populate === "object") {
appendPopulate(query, populate)
}

View File

@@ -67,6 +67,7 @@
const { items: seasonSource } = useStrapi("/api/__strapi__/concerts", {
locale: "fr-FR",
pageSize: 200,
populate: {
saison_concert: true,
},

View File

@@ -154,6 +154,7 @@
{
locale: "fr-FR",
sort: "nom_artiste_invite:asc",
pageSize: 200,
populate: {
saisons_artiste_invite: true,
image_illustration_artiste_invite: true,

View File

@@ -177,6 +177,7 @@
{
locale: "fr-FR",
sort: "ordre_artiste_ondif:asc",
pageSize: 200,
populate: {
saisons_artiste_ondif: true,
image_illustration_artiste_ondif: true,