mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-10 13:18:25 +00: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 * Better icon detail page * Update detail page * feat: make edit button more visible * Fix types * Add unreleased version tag * Adjust icon detail * Added edit button * format code * Replace pencil sparkles * Revert changes * Fix types * Add docs checks * Fix types * Fix awaiting release * revert icons changes * Format code * Fix type issues * Update CarbonAdOverlay to not display Disable CarbonAdOverlay by setting drawerOpen to false. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix types * Fix condition for showing awaiting release icons Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Format code --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jakob Guddas <github@jguddas.de>
31 lines
940 B
TypeScript
31 lines
940 B
TypeScript
import * as iconDetails from '../.vitepress/data/iconDetails';
|
|
|
|
export default {
|
|
async load() {
|
|
return {
|
|
icons: Object.entries(iconDetails)
|
|
.map(
|
|
([
|
|
,
|
|
{ name, iconNode, popularity, createdRelease, awaitingRelease, aliases = [], fromFork },
|
|
]) => ({
|
|
name,
|
|
iconNode,
|
|
popularity: popularity?.count ?? 0,
|
|
aliases: aliases
|
|
.map((alias) => (typeof alias === 'string' ? alias : alias?.name))
|
|
.filter((alias): alias is string => Boolean(alias)),
|
|
createdRelease,
|
|
awaitingRelease,
|
|
fromFork,
|
|
}),
|
|
// We hide icons that are not released yet, we make exceptions for preview environments
|
|
)
|
|
.filter(
|
|
({ awaitingRelease }) =>
|
|
!awaitingRelease || process.env.VITE_SHOW_AWAITING_RELEASE === 'true',
|
|
),
|
|
};
|
|
},
|
|
};
|