From 7f95c013bf46a67f2d3a3e4c2b5f6bb813edc973 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 21 May 2022 13:08:20 -0500 Subject: [PATCH] Add ibasic home page list --- components/search-stork.vue | 16 +++++++++++----- src/pages/index.astro | 5 ++++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/components/search-stork.vue b/components/search-stork.vue index 8ab5f3f..9cecb54 100644 --- a/components/search-stork.vue +++ b/components/search-stork.vue @@ -97,10 +97,13 @@
-
+
process.client ? import('~/components/relative-time.vue') : null }, props: { - appList: { - type: Array, + kindPage: { + type: Object, required: true }, noEmailSubscribe: { @@ -267,6 +270,9 @@ export default { } }, computed: { + appList () { + return this.kindPage.items + }, initialList () { return this.initialLimit !== null ? this.appList.slice(0, this.initialLimit) : this.appList }, @@ -452,7 +458,7 @@ export default { this.listingsResults = storkQuery.results.map( result => { return { - name: result.entry.title, + name: makeHighlightedResultTitle( result ), endpoint: result.entry.url, slug: '', category: { diff --git a/src/pages/index.astro b/src/pages/index.astro index 1ee03c8..1a78cd1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,6 +7,8 @@ // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ +import { DoesItAPI } from '~/helpers/api/client.js' + import Layout from '../layouts/default.astro' import Search from '~/components/search-stork.vue' import ListSummary from '~/components/list-summary.vue' @@ -16,6 +18,7 @@ import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue' import getListSummaryNumbers from '~/helpers/get-list-summary-numbers.js' +const homePageKindPage = await DoesItAPI.kind.app(1).get() ---