generated from gitea_admin/default
page size 200
This commit is contained in:
@@ -2,6 +2,7 @@ export function useStrapi(endpoint, options = {}) {
|
|||||||
const queryString = computed(() => {
|
const queryString = computed(() => {
|
||||||
const locale = unref(options.locale) ?? "fr-FR"
|
const locale = unref(options.locale) ?? "fr-FR"
|
||||||
const sort = unref(options.sort) ?? null
|
const sort = unref(options.sort) ?? null
|
||||||
|
const pageSize = unref(options.pageSize) ?? null
|
||||||
const populate = unref(options.populate) ?? null
|
const populate = unref(options.populate) ?? null
|
||||||
const filters = unref(options.filters) ?? null
|
const filters = unref(options.filters) ?? null
|
||||||
|
|
||||||
@@ -10,6 +11,9 @@ export function useStrapi(endpoint, options = {}) {
|
|||||||
if (sort) {
|
if (sort) {
|
||||||
query.set("sort[0]", sort)
|
query.set("sort[0]", sort)
|
||||||
}
|
}
|
||||||
|
if (typeof pageSize === "number") {
|
||||||
|
query.set("pagination[pageSize]", String(pageSize))
|
||||||
|
}
|
||||||
if (populate && typeof populate === "object") {
|
if (populate && typeof populate === "object") {
|
||||||
appendPopulate(query, populate)
|
appendPopulate(query, populate)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
|
|
||||||
const { items: seasonSource } = useStrapi("/api/__strapi__/concerts", {
|
const { items: seasonSource } = useStrapi("/api/__strapi__/concerts", {
|
||||||
locale: "fr-FR",
|
locale: "fr-FR",
|
||||||
|
pageSize: 200,
|
||||||
populate: {
|
populate: {
|
||||||
saison_concert: true,
|
saison_concert: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -154,6 +154,7 @@
|
|||||||
{
|
{
|
||||||
locale: "fr-FR",
|
locale: "fr-FR",
|
||||||
sort: "nom_artiste_invite:asc",
|
sort: "nom_artiste_invite:asc",
|
||||||
|
pageSize: 200,
|
||||||
populate: {
|
populate: {
|
||||||
saisons_artiste_invite: true,
|
saisons_artiste_invite: true,
|
||||||
image_illustration_artiste_invite: true,
|
image_illustration_artiste_invite: true,
|
||||||
|
|||||||
@@ -177,6 +177,7 @@
|
|||||||
{
|
{
|
||||||
locale: "fr-FR",
|
locale: "fr-FR",
|
||||||
sort: "ordre_artiste_ondif:asc",
|
sort: "ordre_artiste_ondif:asc",
|
||||||
|
pageSize: 200,
|
||||||
populate: {
|
populate: {
|
||||||
saisons_artiste_ondif: true,
|
saisons_artiste_ondif: true,
|
||||||
image_illustration_artiste_ondif: true,
|
image_illustration_artiste_ondif: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user