@grove-dev/astro 0.2.10 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -18
- package/dist/lib/display.d.ts +11 -17
- package/dist/lib/display.d.ts.map +1 -1
- package/dist/lib/display.js +43 -43
- package/dist/lib/display.js.map +1 -1
- package/dist/lib/format.d.ts +6 -7
- package/dist/lib/format.d.ts.map +1 -1
- package/dist/lib/format.js +11 -12
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/lenses.d.ts +35 -73
- package/dist/lib/lenses.d.ts.map +1 -1
- package/dist/lib/lenses.js +144 -126
- package/dist/lib/lenses.js.map +1 -1
- package/dist/lib/repo.d.ts +12 -22
- package/dist/lib/repo.d.ts.map +1 -1
- package/dist/lib/repo.js +13 -25
- package/dist/lib/repo.js.map +1 -1
- package/dist/lib/scores.d.ts +15 -16
- package/dist/lib/scores.d.ts.map +1 -1
- package/dist/lib/scores.js +4 -11
- package/dist/lib/scores.js.map +1 -1
- package/dist/lib/search.d.ts +44 -129
- package/dist/lib/search.d.ts.map +1 -1
- package/dist/lib/search.js +192 -180
- package/dist/lib/search.js.map +1 -1
- package/dist/lib/taxonomy-counts.d.ts +7 -21
- package/dist/lib/taxonomy-counts.d.ts.map +1 -1
- package/dist/lib/taxonomy-counts.js +12 -31
- package/dist/lib/taxonomy-counts.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CategoryGrid.astro +43 -31
- package/src/components/ContributorsGrid.astro +3 -3
- package/src/components/CurationGrid.astro +41 -0
- package/src/components/ExploreByStack.astro +6 -0
- package/src/components/FilterGroupMenu.astro +49 -0
- package/src/components/FilterOptions.astro +44 -0
- package/src/components/Hero.astro +198 -147
- package/src/components/Icon.astro +10 -3
- package/src/components/IndexRow.astro +75 -0
- package/src/components/ItemCard.astro +266 -248
- package/src/components/Pagination.astro +63 -0
- package/src/components/RecordSection.astro +70 -34
- package/src/components/RefinePanel.astro +115 -141
- package/src/components/StackGrid.astro +32 -24
- package/src/components/WhyThisExists.astro +32 -32
- package/src/layouts/BaseLayout.astro +104 -49
- package/src/layouts/Container.astro +5 -44
- package/src/layouts/Footer.astro +31 -20
- package/src/layouts/Header.astro +40 -19
- package/src/layouts/SectionHeader.astro +27 -43
- package/src/layouts/Seo.astro +38 -56
- package/src/layouts/ThemeToggle.astro +35 -48
- package/src/lib/display.ts +46 -53
- package/src/lib/format.ts +11 -12
- package/src/lib/lenses.ts +151 -172
- package/src/lib/repo.ts +17 -28
- package/src/lib/scores.ts +15 -19
- package/src/lib/search.ts +218 -291
- package/src/lib/taxonomy-counts.ts +12 -46
- package/src/styles.css +209 -1
- package/templates/default/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- package/templates/default/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/templates/default/.github/ISSUE_TEMPLATE/record_submission.md +48 -0
- package/templates/default/.github/pull_request_template.md +27 -0
- package/templates/default/.github/workflows/build.yml +55 -0
- package/templates/default/.github/workflows/cleanup-stale-records.yml +48 -0
- package/templates/default/.github/workflows/daily-refresh.yml +53 -0
- package/templates/default/.github/workflows/sync-contributors.yml +53 -0
- package/templates/default/.github/workflows/sync-github-metadata.yml +58 -0
- package/templates/default/.github/workflows/validate-data.yml +35 -0
- package/templates/default/data/records/coolify.yml +46 -0
- package/templates/default/data/records/gitea.yml +46 -0
- package/templates/default/data/records/hoppscotch.yml +47 -0
- package/templates/default/data/records/inventree.yml +47 -0
- package/templates/default/data/records/label-studio.yml +46 -0
- package/templates/default/data/records/logseq.yml +48 -0
- package/templates/default/data/records/private-gpt.yml +47 -0
- package/templates/default/data/records/wakapi.yml +44 -0
- package/templates/default/data/taxonomy/categories.yml +47 -0
- package/templates/default/data/taxonomy/distribution-channels.yml +43 -0
- package/templates/default/data/taxonomy/platforms.yml +27 -0
- package/templates/default/data/taxonomy/stacks.yml +41 -0
- package/templates/default/grove.config.ts +1 -1
- package/templates/default/package.json +5 -4
- package/templates/default/public/icons/stacks/bun.svg +1 -0
- package/templates/default/public/icons/stacks/clojure.svg +1 -0
- package/templates/default/public/icons/stacks/clojurescript.svg +1 -0
- package/templates/default/public/icons/stacks/deno.svg +1 -0
- package/templates/default/public/icons/stacks/django.svg +1 -0
- package/templates/default/public/icons/stacks/docker.svg +1 -0
- package/templates/default/public/icons/stacks/go.svg +1 -0
- package/templates/default/public/icons/stacks/llm.svg +1 -0
- package/templates/default/public/icons/stacks/node.js.svg +1 -0
- package/templates/default/public/icons/stacks/sveltekit.svg +1 -0
- package/templates/default/public/icons/stacks/vue.svg +1 -0
- package/templates/default/public/llms-full.txt +197 -5
- package/templates/default/public/llms.txt +107 -6
- package/templates/default/public/sitemap.xml +63 -0
- package/templates/default/scripts/build-llms.mjs +123 -0
- package/templates/default/scripts/build-records-json.mjs +27 -0
- package/templates/default/scripts/build-sitemap.mjs +20 -0
- package/templates/default/scripts/cleanup-stale-records.mjs +20 -0
- package/templates/default/scripts/enrich-github-metadata.mjs +99 -0
- package/templates/default/scripts/fetch-icons.mjs +137 -0
- package/templates/default/scripts/migrate-legacy-to-schema-v1.mjs +86 -0
- package/templates/default/scripts/parse-legacy-readme.mjs +59 -0
- package/templates/default/scripts/refresh-records-activity.mjs +24 -0
- package/templates/default/scripts/repair-license-format.mjs +72 -0
- package/templates/default/scripts/report-cleanup-candidates.mjs +21 -0
- package/templates/default/scripts/seed-from-github.mjs +62 -0
- package/templates/default/scripts/sync-contributors.mjs +145 -0
- package/templates/default/scripts/sync-github-metadata.mjs +28 -0
- package/templates/default/scripts/validate-records.mjs +27 -0
- package/templates/default/src/data/records.ts +138 -51
- package/templates/default/src/pages/404.astro +64 -0
- package/templates/default/src/pages/{projects/[slug].astro → [slug]/[recordSlug].astro} +236 -66
- package/templates/default/src/pages/[slug]/index.astro +477 -0
- package/templates/default/src/pages/about.astro +165 -82
- package/templates/default/src/pages/apps/[recordSlug].astro +33 -0
- package/templates/default/src/pages/contributors.astro +184 -0
- package/templates/default/src/pages/index.astro +119 -162
- package/templates/default/src/pages/submit.astro +276 -114
- package/templates/default/wrangler.jsonc +28 -0
- package/LICENSE +0 -21
- package/src/components/AppsIndexRow.astro +0 -204
- package/src/components/AppsPagination.astro +0 -126
- package/templates/default/.astro/content.d.ts +0 -155
- package/templates/default/.astro/settings.json +0 -5
- package/templates/default/.astro/types.d.ts +0 -1
- package/templates/default/data/generated/apps.json +0 -1
- package/templates/default/data/generated/records.full.json +0 -8
- package/templates/default/data/generated/records.index.json +0 -7
- package/templates/default/data/generated/records.json +0 -8
- package/templates/default/data/generated/repo-stats.json +0 -1
- package/templates/default/data/generated/site-config.json +0 -31
- package/templates/default/dist/_astro/BaseLayout.Dz_HR-68.css +0 -1
- package/templates/default/dist/about/index.html +0 -165
- package/templates/default/dist/icons/platforms/android.svg +0 -1
- package/templates/default/dist/icons/platforms/apple-dark.svg +0 -1
- package/templates/default/dist/icons/platforms/apple-light.svg +0 -1
- package/templates/default/dist/icons/platforms/chrome.svg +0 -1
- package/templates/default/dist/icons/platforms/chromeos.svg +0 -5
- package/templates/default/dist/icons/platforms/desktop.svg +0 -4
- package/templates/default/dist/icons/platforms/embedded.svg +0 -5
- package/templates/default/dist/icons/platforms/ios.svg +0 -1
- package/templates/default/dist/icons/platforms/linux.svg +0 -1
- package/templates/default/dist/icons/platforms/macos.svg +0 -1
- package/templates/default/dist/icons/platforms/ubuntu.svg +0 -1
- package/templates/default/dist/icons/platforms/web.svg +0 -5
- package/templates/default/dist/icons/platforms/windows.svg +0 -6
- package/templates/default/dist/icons/stacks/android.svg +0 -1
- package/templates/default/dist/icons/stacks/apple-dark.svg +0 -1
- package/templates/default/dist/icons/stacks/apple-light.svg +0 -1
- package/templates/default/dist/icons/stacks/capacitor.svg +0 -14
- package/templates/default/dist/icons/stacks/dart.svg +0 -1
- package/templates/default/dist/icons/stacks/firebase.svg +0 -1
- package/templates/default/dist/icons/stacks/flutter.svg +0 -1
- package/templates/default/dist/icons/stacks/graphql.svg +0 -1
- package/templates/default/dist/icons/stacks/ionic.svg +0 -4
- package/templates/default/dist/icons/stacks/java.svg +0 -1
- package/templates/default/dist/icons/stacks/javascript.svg +0 -1
- package/templates/default/dist/icons/stacks/kotlin.svg +0 -1
- package/templates/default/dist/icons/stacks/mongodb.svg +0 -1
- package/templates/default/dist/icons/stacks/nodejs.svg +0 -1
- package/templates/default/dist/icons/stacks/python.svg +0 -1
- package/templates/default/dist/icons/stacks/react-native.svg +0 -1
- package/templates/default/dist/icons/stacks/react.svg +0 -1
- package/templates/default/dist/icons/stacks/rust.svg +0 -1
- package/templates/default/dist/icons/stacks/solidity.svg +0 -1
- package/templates/default/dist/icons/stacks/swift.svg +0 -1
- package/templates/default/dist/icons/stacks/tensorflow.svg +0 -1
- package/templates/default/dist/icons/stacks/typescript.svg +0 -1
- package/templates/default/dist/index.html +0 -55
- package/templates/default/dist/llms-full.txt +0 -14
- package/templates/default/dist/llms.txt +0 -11
- package/templates/default/dist/og-image.svg +0 -48
- package/templates/default/dist/projects/index.html +0 -61
- package/templates/default/dist/robots.txt +0 -53
- package/templates/default/dist/sitemap.xml +0 -21
- package/templates/default/dist/submit/index.html +0 -69
- package/templates/default/node_modules/.bin/astro +0 -21
- package/templates/default/node_modules/.bin/astro-check +0 -21
- package/templates/default/node_modules/.bin/grove +0 -21
- package/templates/default/node_modules/.bin/jiti +0 -21
- package/templates/default/node_modules/.bin/prettier +0 -21
- package/templates/default/node_modules/.bin/rollup +0 -21
- package/templates/default/node_modules/.bin/tsc +0 -21
- package/templates/default/node_modules/.bin/tsserver +0 -21
- package/templates/default/node_modules/.bin/tsx +0 -21
- package/templates/default/node_modules/.bin/vite +0 -21
- package/templates/default/node_modules/.bin/yaml +0 -21
- package/templates/default/node_modules/.vite/deps/_metadata.json +0 -79
- package/templates/default/node_modules/.vite/deps/astro-KRVZHBC5.js +0 -433
- package/templates/default/node_modules/.vite/deps/astro-KRVZHBC5.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/astro___aria-query.js +0 -5
- package/templates/default/node_modules/.vite/deps/astro___aria-query.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/astro___axobject-query.js +0 -5
- package/templates/default/node_modules/.vite/deps/astro___axobject-query.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/astro___html-escaper.js +0 -9
- package/templates/default/node_modules/.vite/deps/astro___html-escaper.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/astro_runtime_client_dev-toolbar_entrypoint__js.js +0 -241
- package/templates/default/node_modules/.vite/deps/astro_runtime_client_dev-toolbar_entrypoint__js.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/audit-GYHQ3ITH.js +0 -1592
- package/templates/default/node_modules/.vite/deps/audit-GYHQ3ITH.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-5WRI5ZAA.js +0 -30
- package/templates/default/node_modules/.vite/deps/chunk-5WRI5ZAA.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-7P4KIK53.js +0 -186
- package/templates/default/node_modules/.vite/deps/chunk-7P4KIK53.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-BQGHFQJH.js +0 -48
- package/templates/default/node_modules/.vite/deps/chunk-BQGHFQJH.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-CJCDKWP2.js +0 -6779
- package/templates/default/node_modules/.vite/deps/chunk-CJCDKWP2.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-FHJ3XBDE.js +0 -33
- package/templates/default/node_modules/.vite/deps/chunk-FHJ3XBDE.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-FQEMNIUQ.js +0 -88
- package/templates/default/node_modules/.vite/deps/chunk-FQEMNIUQ.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-HBSVDAQD.js +0 -72
- package/templates/default/node_modules/.vite/deps/chunk-HBSVDAQD.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-HDOQ2U3U.js +0 -3757
- package/templates/default/node_modules/.vite/deps/chunk-HDOQ2U3U.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/chunk-XEBKRCNE.js +0 -54
- package/templates/default/node_modules/.vite/deps/chunk-XEBKRCNE.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/package.json +0 -3
- package/templates/default/node_modules/.vite/deps/settings-C5H4VHXU.js +0 -213
- package/templates/default/node_modules/.vite/deps/settings-C5H4VHXU.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/toolbar-H5DB6HVP.js +0 -525
- package/templates/default/node_modules/.vite/deps/toolbar-H5DB6HVP.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/ui-library-JGHU6JE2.js +0 -1020
- package/templates/default/node_modules/.vite/deps/ui-library-JGHU6JE2.js.map +0 -7
- package/templates/default/node_modules/.vite/deps/xray-EFCQOW4E.js +0 -147
- package/templates/default/node_modules/.vite/deps/xray-EFCQOW4E.js.map +0 -7
- package/templates/default/src/components/layout/BaseLayout.astro +0 -47
- package/templates/default/src/components/layout/Container.astro +0 -18
- package/templates/default/src/components/layout/Footer.astro +0 -27
- package/templates/default/src/components/layout/Header.astro +0 -43
- package/templates/default/src/lib/markdown.ts +0 -171
- package/templates/default/src/pages/projects/index.astro +0 -193
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
/**
|
|
3
|
-
* List page — the discovery / browse page.
|
|
4
|
-
*
|
|
5
|
-
* Renders the full filter / search / sort machinery:
|
|
6
|
-
* - SmartLensTabs (All / Trending / Recently added / Established / Featured / Needs review)
|
|
7
|
-
* - RefinePanel (Stack / Platform / Category / License / Sort multi-selects)
|
|
8
|
-
* - AppsIndexRow list (compact table-row per record)
|
|
9
|
-
* - AppsPagination (windowed page list)
|
|
10
|
-
* - ExploreByCategory / ExploreByStack (compact pill lists)
|
|
11
|
-
*
|
|
12
|
-
* Pure server-rendered: every interaction is a GET to the same URL
|
|
13
|
-
* with a different query string. No client-side filter script — the
|
|
14
|
-
* page rebuilds on every request because Astro's default output is
|
|
15
|
-
* static (all pages are baked at build time and revalidated by the
|
|
16
|
-
* deploy target).
|
|
17
|
-
*/
|
|
18
|
-
import siteConfig from "../../../data/generated/site-config.json";
|
|
19
|
-
import { records, indexSlug, itemLabel } from "../../data/records";
|
|
20
|
-
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
|
|
21
|
-
import SmartLensTabs from "@grove-dev/astro/components/SmartLensTabs.astro";
|
|
22
|
-
import RefinePanel from "@grove-dev/astro/components/RefinePanel.astro";
|
|
23
|
-
import AppsIndexRow from "@grove-dev/astro/components/AppsIndexRow.astro";
|
|
24
|
-
import AppsPagination from "@grove-dev/astro/components/AppsPagination.astro";
|
|
25
|
-
import ExploreByCategory from "@grove-dev/astro/components/ExploreByCategory.astro";
|
|
26
|
-
import ExploreByStack from "@grove-dev/astro/components/ExploreByStack.astro";
|
|
27
|
-
import {
|
|
28
|
-
filtersFromSearchParams,
|
|
29
|
-
filterApps,
|
|
30
|
-
applySort,
|
|
31
|
-
paginate,
|
|
32
|
-
totalPages,
|
|
33
|
-
effectivePage,
|
|
34
|
-
buildFacets,
|
|
35
|
-
PAGE_SIZE,
|
|
36
|
-
pipeline,
|
|
37
|
-
} from "@grove-dev/astro";
|
|
38
|
-
|
|
39
|
-
const slug = indexSlug();
|
|
40
|
-
const total = records.length;
|
|
41
|
-
|
|
42
|
-
const title = `Browse ${slug} — ${siteConfig.name}`;
|
|
43
|
-
const description = `A searchable directory of ${slug} for ${siteConfig.name}.`;
|
|
44
|
-
|
|
45
|
-
// ── URL → filters ───────────────────────────────────────────────
|
|
46
|
-
const filters = filtersFromSearchParams(Astro.url.searchParams);
|
|
47
|
-
|
|
48
|
-
// ── Facet map (built from the FULL record set, not the filtered
|
|
49
|
-
// one, so users can see all available options even when none of
|
|
50
|
-
// them are active) ───────────────────────────────────────────────
|
|
51
|
-
const facets = buildFacets(records);
|
|
52
|
-
|
|
53
|
-
// ── Lens → filter → sort pipeline (matches the openapps list) ──
|
|
54
|
-
const filtered = pipeline(records, filters);
|
|
55
|
-
|
|
56
|
-
// ── Pagination ───────────────────────────────────────────────────
|
|
57
|
-
const page = effectivePage(filters);
|
|
58
|
-
const pages = totalPages(filtered.length, PAGE_SIZE);
|
|
59
|
-
const pageItems = paginate(filtered, page, PAGE_SIZE);
|
|
60
|
-
|
|
61
|
-
// ── "Explore" facet pills (top 12 categories / stacks by count) ─
|
|
62
|
-
const categoryEntries = facets.categories.slice(0, 12).map((f) => ({
|
|
63
|
-
name: f.value,
|
|
64
|
-
slug: f.value,
|
|
65
|
-
count: f.count,
|
|
66
|
-
}));
|
|
67
|
-
const stackEntries = facets.stacks.slice(0, 18).map((f) => ({
|
|
68
|
-
name: f.value,
|
|
69
|
-
slug: f.value,
|
|
70
|
-
count: f.count,
|
|
71
|
-
}));
|
|
72
|
-
|
|
73
|
-
function hrefForPage(p: number): string {
|
|
74
|
-
const sp = new URLSearchParams(Astro.url.searchParams);
|
|
75
|
-
if (p <= 1) sp.delete("page");
|
|
76
|
-
else sp.set("page", String(p));
|
|
77
|
-
const qs = sp.toString();
|
|
78
|
-
return qs ? `/${slug}?${qs}` : `/${slug}`;
|
|
79
|
-
}
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
<BaseLayout
|
|
83
|
-
title={title}
|
|
84
|
-
description={description}
|
|
85
|
-
site={siteConfig}
|
|
86
|
-
submitHref="/submit"
|
|
87
|
-
submitLabel={`Submit ${itemLabel()}`}
|
|
88
|
-
>
|
|
89
|
-
<section class="grove-section-tight border-b border-ink-200 dark:border-ink-800">
|
|
90
|
-
<div class="grove-container-wide mx-auto px-5 pt-10 sm:px-7 sm:pt-12">
|
|
91
|
-
<span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
|
|
92
|
-
{slug}
|
|
93
|
-
</span>
|
|
94
|
-
<h1 class="m-0 mt-1 text-[1.875rem] sm:text-[2.125rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
|
|
95
|
-
Browse {slug}
|
|
96
|
-
</h1>
|
|
97
|
-
<p class="m-0 mt-2 max-w-[64ch] text-[0.9375rem] text-ink-500 dark:text-ink-400">
|
|
98
|
-
Search, filter, and explore {total} {itemLabel()}{total === 1 ? "" : "s"} in this directory.
|
|
99
|
-
</p>
|
|
100
|
-
|
|
101
|
-
<div class="mt-6">
|
|
102
|
-
<SmartLensTabs
|
|
103
|
-
currentParams={Astro.url.searchParams}
|
|
104
|
-
pathPrefix={`/${slug}`}
|
|
105
|
-
/>
|
|
106
|
-
</div>
|
|
107
|
-
|
|
108
|
-
<div class="mt-5">
|
|
109
|
-
<RefinePanel
|
|
110
|
-
facets={facets}
|
|
111
|
-
initial={filters}
|
|
112
|
-
pathPrefix={`/${slug}`}
|
|
113
|
-
/>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</section>
|
|
117
|
-
|
|
118
|
-
{categoryEntries.length > 0 && (
|
|
119
|
-
<ExploreByCategory
|
|
120
|
-
categories={categoryEntries}
|
|
121
|
-
pathPrefix={`/${slug}`}
|
|
122
|
-
/>
|
|
123
|
-
)}
|
|
124
|
-
|
|
125
|
-
{stackEntries.length > 0 && (
|
|
126
|
-
<ExploreByStack
|
|
127
|
-
stacks={stackEntries}
|
|
128
|
-
pathPrefix={`/${slug}`}
|
|
129
|
-
/>
|
|
130
|
-
)}
|
|
131
|
-
|
|
132
|
-
<section class="grove-section-tight">
|
|
133
|
-
<div class="grove-container-wide mx-auto px-5 sm:px-7">
|
|
134
|
-
<div class="mb-4 flex flex-wrap items-baseline justify-between gap-2">
|
|
135
|
-
<p class="m-0 text-2xs text-ink-500 dark:text-ink-400">
|
|
136
|
-
Showing
|
|
137
|
-
<span class="ml-1 font-mono text-ink-900 dark:text-ink-100">
|
|
138
|
-
{filtered.length === 0 ? 0 : (page - 1) * PAGE_SIZE + 1}
|
|
139
|
-
</span>
|
|
140
|
-
–
|
|
141
|
-
<span class="font-mono text-ink-900 dark:text-ink-100">
|
|
142
|
-
{Math.min(page * PAGE_SIZE, filtered.length)}
|
|
143
|
-
</span>
|
|
144
|
-
of
|
|
145
|
-
<span class="ml-1 font-mono text-ink-900 dark:text-ink-100">
|
|
146
|
-
{filtered.length}
|
|
147
|
-
</span>
|
|
148
|
-
{itemLabel()}{filtered.length === 1 ? "" : "s"}
|
|
149
|
-
</p>
|
|
150
|
-
{pages > 1 && (
|
|
151
|
-
<AppsPagination
|
|
152
|
-
current={page}
|
|
153
|
-
total={pages}
|
|
154
|
-
hrefFor={hrefForPage}
|
|
155
|
-
/>
|
|
156
|
-
)}
|
|
157
|
-
</div>
|
|
158
|
-
|
|
159
|
-
{pageItems.length === 0 ? (
|
|
160
|
-
<div class="flex flex-col items-center gap-2 py-16 text-center">
|
|
161
|
-
<p class="m-0 text-[0.9375rem] font-medium text-ink-700 dark:text-ink-200">
|
|
162
|
-
No {itemLabel()}s match these filters.
|
|
163
|
-
</p>
|
|
164
|
-
<a
|
|
165
|
-
href={`/${slug}`}
|
|
166
|
-
class="mt-3 text-sm text-ink-500 hover:text-ink-900 dark:hover:text-ink-100"
|
|
167
|
-
>
|
|
168
|
-
Clear all filters
|
|
169
|
-
</a>
|
|
170
|
-
</div>
|
|
171
|
-
) : (
|
|
172
|
-
<div class="flex flex-col gap-3">
|
|
173
|
-
{pageItems.map((record) => (
|
|
174
|
-
<AppsIndexRow
|
|
175
|
-
record={record}
|
|
176
|
-
detailHref={`/${slug}/${record.slug}`}
|
|
177
|
-
/>
|
|
178
|
-
))}
|
|
179
|
-
</div>
|
|
180
|
-
)}
|
|
181
|
-
|
|
182
|
-
{pages > 1 && (
|
|
183
|
-
<div class="mt-6 flex justify-center">
|
|
184
|
-
<AppsPagination
|
|
185
|
-
current={page}
|
|
186
|
-
total={pages}
|
|
187
|
-
hrefFor={hrefForPage}
|
|
188
|
-
/>
|
|
189
|
-
</div>
|
|
190
|
-
)}
|
|
191
|
-
</div>
|
|
192
|
-
</section>
|
|
193
|
-
</BaseLayout>
|