mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-26 21:19:04 +08:00
feat: Add website (#1157)
Co-authored-by: Bjorn Lammers <bjorn@lammers.media>
This commit is contained in:
44
web/src/types/icons.ts
Normal file
44
web/src/types/icons.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
export type IconAuthor = {
|
||||
id: number
|
||||
name?: string
|
||||
}
|
||||
|
||||
export type IconUpdate = {
|
||||
timestamp: string
|
||||
author: IconAuthor
|
||||
}
|
||||
|
||||
export type IconColors = {
|
||||
dark?: string
|
||||
light?: string
|
||||
}
|
||||
|
||||
export type Icon = {
|
||||
base: string | "svg" | "png" | "webp"
|
||||
aliases: string[]
|
||||
categories: string[]
|
||||
update: IconUpdate
|
||||
colors?: IconColors
|
||||
}
|
||||
|
||||
export type IconFile = {
|
||||
[key: string]: Icon
|
||||
}
|
||||
|
||||
export type IconWithName = {
|
||||
name: string
|
||||
data: Icon
|
||||
}
|
||||
|
||||
export type IconSearchProps = {
|
||||
icons: IconWithName[]
|
||||
initialQuery?: string
|
||||
}
|
||||
|
||||
export type AuthorData = {
|
||||
id: number
|
||||
name?: string
|
||||
login: string
|
||||
avatar_url: string
|
||||
html_url: string
|
||||
}
|
||||
1
web/src/types/index.ts
Normal file
1
web/src/types/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./icons"
|
||||
Reference in New Issue
Block a user