mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 11:35:57 +02:00
* write cions details * add details * Add icons details * update gitignore * Add node details * Move tags api to own composable * remove overridden var * remopve whitespace * log directory existence * Fix path name * Fix build * Fix tags fetching * Move max related icons to prebuild * Improve tags scroller * Add categories call * cleanup * Add active state
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
import relatedIcons from '../.vitepress/data/relatedIcons.json'
|
|
import iconNodes from '../.vitepress/data/iconNodes'
|
|
import * as iconDetails from '../.vitepress/data/iconDetails'
|
|
import { IconEntity } from "../.vitepress/theme/types";
|
|
|
|
export default {
|
|
paths: async () => {
|
|
return (Object.values(iconDetails) as unknown as IconEntity[]).map((iconEntity) => {
|
|
|
|
const params = {
|
|
...iconEntity,
|
|
relatedIcons: relatedIcons[iconEntity.name].map((name: string) => ({
|
|
name,
|
|
iconNode: iconNodes[name],
|
|
}))
|
|
}
|
|
|
|
return {
|
|
params,
|
|
}
|
|
})
|
|
}
|
|
}
|