mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
26 lines
607 B
TypeScript
26 lines
607 B
TypeScript
import Frameworks, { Framework } from '../../../packages/now-frameworks';
|
|
|
|
interface Example {
|
|
example: string;
|
|
path: string;
|
|
demo: string;
|
|
description: string;
|
|
tagline: string;
|
|
framework: string;
|
|
}
|
|
|
|
export async function getExampleList(): Promise<Example[]> {
|
|
return (Frameworks as Framework[])
|
|
.filter(f => f.demo)
|
|
.map(framework => {
|
|
return {
|
|
example: framework.name,
|
|
path: `/${framework.slug}`,
|
|
demo: framework.demo,
|
|
description: framework.description,
|
|
tagline: framework.tagline,
|
|
framework: framework.slug,
|
|
};
|
|
});
|
|
}
|