Update home page and components to integrate with discover navigation

This commit is contained in:
2026-03-10 23:50:32 +01:00
parent df9db461e5
commit 4ed311f059
3 changed files with 48 additions and 31 deletions

View File

@@ -1,6 +1,8 @@
<template>
<div ref="resultSection" class="resultSection">
<page-header v-bind="{ title, info, shortList }" />
<page-header
v-bind="{ title, info, shortList, sectionType: props.sectionType }"
/>
<div
v-if="!loadedPages.includes(1) && loading == false"
@@ -40,9 +42,12 @@
title: string;
apiFunction: (page: number) => Promise<IList>;
shortList?: boolean;
sectionType?: "list" | "discover";
}
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
sectionType: "list"
});
const results: Ref<ListResults> = ref([]);
const page: Ref<number> = ref(1);