mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-20 19:33:32 +00:00
fix(data): show all comparison models
This commit is contained in:
parent
b7111d5c62
commit
729adde022
1 changed files with 4 additions and 3 deletions
|
|
@ -74,7 +74,8 @@ export default function ModelCompareIndex() {
|
|||
const [themePreference, setThemePreference] = createSignal<ThemePreference>("system")
|
||||
const compareUrl = createMemo(() => localizedUrl(language.locale(), comparePath))
|
||||
const statsUnfurlUrl = new URL(statsUnfurlPath, localizedUrl("en", "/data/")).toString()
|
||||
const featuredModels = createMemo(() => (catalog()?.models ?? []).slice(0, 120))
|
||||
const models = createMemo(() => catalog()?.models ?? [])
|
||||
const featuredModels = createMemo(() => models().slice(0, 120))
|
||||
const categories = createMemo(() => buildComparisonCategories(featuredModels()))
|
||||
const compareHeaderLinks = createMemo<readonly HeaderLink[]>(() => [
|
||||
{ href: `${import.meta.env.BASE_URL}#top-models`, label: i18n.t("nav.topModels") },
|
||||
|
|
@ -150,7 +151,7 @@ export default function ModelCompareIndex() {
|
|||
</section>
|
||||
<section data-section="compare-home-selector" aria-label="Choose models to compare">
|
||||
<Show
|
||||
when={featuredModels().length > 1}
|
||||
when={models().length > 1}
|
||||
fallback={
|
||||
<div data-component="empty-state" data-compact="true">
|
||||
<strong>No models found</strong>
|
||||
|
|
@ -158,7 +159,7 @@ export default function ModelCompareIndex() {
|
|||
</div>
|
||||
}
|
||||
>
|
||||
<CompareHomeSelector models={featuredModels()} />
|
||||
<CompareHomeSelector models={models()} />
|
||||
</Show>
|
||||
</section>
|
||||
<ComparisonCardsSection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue