2023-01-14 19:31:05 +00:00
|
|
|
import {ReactNode} from 'react'
|
|
|
|
|
|
|
|
export type Article = {
|
|
|
|
slug: string
|
|
|
|
title: string
|
|
|
|
date: string
|
|
|
|
description: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Props = {
|
|
|
|
className?: string
|
|
|
|
children?: ReactNode
|
2023-01-24 22:27:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type Repo = {
|
|
|
|
name: string
|
|
|
|
description: string
|
|
|
|
url: string
|
|
|
|
stargazerCount: number
|
2023-01-26 22:21:15 +00:00
|
|
|
forkCount: number
|
2023-01-24 22:27:59 +00:00
|
|
|
primaryLanguage: {
|
|
|
|
name: string
|
|
|
|
color: string
|
|
|
|
}
|
2023-01-29 22:16:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type CardProps = {
|
|
|
|
title: string
|
|
|
|
metric: number | string
|
|
|
|
group: string
|
|
|
|
href: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export type CardGroupProps = [
|
|
|
|
{
|
|
|
|
groupName: string,
|
|
|
|
groupItems: CardProps[]
|
|
|
|
}
|
|
|
|
]
|