mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-09-02 02:38:51 +02:00
* setup icon popularity call * Adjust sort button * Adjust sorting * Adds aliases * Format code * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add check for env variable * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Improve styling on mobile * Remove hardcoded sort icon * Fix build * Format code --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
20 lines
553 B
TypeScript
20 lines
553 B
TypeScript
import * as iconDetails from '../.vitepress/data/iconDetails';
|
|
|
|
export default {
|
|
async load() {
|
|
return {
|
|
icons: Object.entries(iconDetails).map(
|
|
([, { name, iconNode, popularity, createdRelease, aliases = [] }]) => ({
|
|
name,
|
|
iconNode,
|
|
popularity: popularity?.count ?? 0,
|
|
aliases: aliases
|
|
.map((alias) => (typeof alias === 'string' ? alias : alias?.name))
|
|
.filter((alias): alias is string => Boolean(alias)),
|
|
createdRelease,
|
|
}),
|
|
),
|
|
};
|
|
},
|
|
};
|