Skip to content

Commit 214fcbf

Browse files
committed
rmv duplicate
1 parent 8895ce6 commit 214fcbf

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

apps/svelte.dev/src/lib/server/content.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ export interface Package {
213213
svCmdOptions?: string;
214214
}
215215

216+
export interface Category {
217+
title: string;
218+
description?: string;
219+
packages: Package[];
220+
}
221+
216222
/**
217223
* Checks if a semver range supports Svelte versions 3.x, 4.x, and 5.x
218224
*/

apps/svelte.dev/src/routes/packages/+page.server.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PACKAGES_META } from '$lib/packages-meta';
2-
import { registry, type Package } from '$lib/server/content';
2+
import { registry, type Category, type Package } from '$lib/server/content';
33

44
export const prerender = false;
55

@@ -21,7 +21,7 @@ const arrToPackages = (arr: string[]) => {
2121
};
2222

2323
// Netflix style page. Send pre-done cards with categories
24-
const addons: { title: string; href?: string; description?: string; packages: Package[] }[] = [
24+
const addons: Category[] = [
2525
{
2626
title: 'Svelte CLI add-ons',
2727
description:
@@ -35,7 +35,7 @@ const addons: { title: string; href?: string; description?: string; packages: Pa
3535
}
3636
];
3737

38-
const homepage: { title: string; href?: string; description?: string; packages: Package[] }[] = [];
38+
const homepage: Category[] = [];
3939

4040
for (const { packages, title, description } of PACKAGES_META.FEATURED) {
4141
homepage.push({
@@ -47,7 +47,6 @@ for (const { packages, title, description } of PACKAGES_META.FEATURED) {
4747

4848
export async function load() {
4949
return {
50-
packages: registry,
5150
addons,
5251
homepage
5352
};

0 commit comments

Comments
 (0)