mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-08-29 12:08:25 +02:00
* Add directory * Add lab check script * Delete duplicated icons * Fix the lab page * Adjust paths * update lockfile * update lockfile * fix(lab/planet): replace with guideline-compliant design * Add install step * Add second install step * Adjust lab in site * try this * Fix workflow * Add cspell * Format code * Temporary delete icons for copilot review * Place back lab icons * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update lock file * Revert svg changes * Fix list * Rename filenames * Format tsconfig --------- Co-authored-by: Karsa <contact@karsa.org> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
27 lines
714 B
TypeScript
27 lines
714 B
TypeScript
import iconNodes from '../../.vitepress/data/lab/iconNodes';
|
|
import iconPopularity from '../../.vitepress/data/lab/iconPopularity';
|
|
import iconMetaData from '../../.vitepress/data/lab/iconMetaData';
|
|
import { type IconEntity } from '../../.vitepress/theme/types';
|
|
|
|
export default {
|
|
paths: async () => {
|
|
return (Object.entries(iconNodes) as unknown as IconEntity[]).map(([name, iconNode]) => {
|
|
const iconDetails = iconMetaData[name];
|
|
|
|
delete iconDetails['$schema'];
|
|
|
|
const params = {
|
|
name,
|
|
iconNode,
|
|
externalLibrary: 'lab',
|
|
popularity: iconPopularity[name]?.count ?? 0,
|
|
...iconDetails,
|
|
};
|
|
|
|
return {
|
|
params,
|
|
};
|
|
});
|
|
},
|
|
};
|