Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Fix declaration types for icons #114

Merged
merged 2 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
301 changes: 301 additions & 0 deletions lib/components/icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
// NOTE: re-export using consts to help TypeScript resolve the proper type

// Branding
import _ModrinthIcon from '@/assets/branding/logo.svg?component'
export const ModrinthIcon = _ModrinthIcon
import _FourOhFourNotFound from '@/assets/branding/404.svg?component'
export const FourOhFourNotFound = _FourOhFourNotFound

// External Icons
import _SSODiscordIcon from '@/assets/external/sso/discord.svg?component'
export const SSODiscordIcon = _SSODiscordIcon
import _SSOGitHubIcon from '@/assets/external/sso/github.svg?component'
export const SSOGitHubIcon = _SSOGitHubIcon
import _SSOGitLabIcon from '@/assets/external/sso/gitlab.svg?component'
export const SSOGitLabIcon = _SSOGitLabIcon
import _SSOGoogleIcon from '@/assets/external/sso/google.svg?component'
export const SSOGoogleIcon = _SSOGoogleIcon
import _SSOMicrosoftIcon from '@/assets/external/sso/microsoft.svg?component'
export const SSOMicrosoftIcon = _SSOMicrosoftIcon
import _SSOSteamIcon from '@/assets/external/sso/steam.svg?component'
export const SSOSteamIcon = _SSOSteamIcon
import _AppleIcon from '@/assets/external/apple.svg?component'
export const AppleIcon = _AppleIcon
import _BisectIcon from '@/assets/external/bh.svg?component'
export const BisectIcon = _BisectIcon
import _BuyMeACoffeeIcon from '@/assets/external/bmac.svg?component'
export const BuyMeACoffeeIcon = _BuyMeACoffeeIcon
import _DiscordIcon from '@/assets/external/discord.svg?component'
export const DiscordIcon = _DiscordIcon
import _KoFiIcon from '@/assets/external/kofi.svg?component'
export const KoFiIcon = _KoFiIcon
import _MastodonIcon from '@/assets/external/mastodon.svg?component'
export const MastodonIcon = _MastodonIcon
import _OpenCollectiveIcon from '@/assets/external/opencollective.svg?component'
export const OpenCollectiveIcon = _OpenCollectiveIcon
import _PatreonIcon from '@/assets/external/patreon.svg?component'
export const PatreonIcon = _PatreonIcon
import _PayPalIcon from '@/assets/external/paypal.svg?component'
export const PayPalIcon = _PayPalIcon
import _RedditIcon from '@/assets/external/reddit.svg?component'
export const RedditIcon = _RedditIcon
import _TwitterIcon from '@/assets/external/twitter.svg?component'
export const TwitterIcon = _TwitterIcon
import _WindowsIcon from '@/assets/external/windows.svg?component'
export const WindowsIcon = _WindowsIcon
import _YouTubeIcon from '@/assets/icons/youtube.svg?component'
export const YouTubeIcon = _YouTubeIcon

// Icons
import _AlignLeftIcon from '@/assets/icons/align-left.svg?component'
export const AlignLeftIcon = _AlignLeftIcon
import _ArchiveIcon from '@/assets/icons/archive.svg?component'
export const ArchiveIcon = _ArchiveIcon
import _AsteriskIcon from '@/assets/icons/asterisk.svg?component'
export const AsteriskIcon = _AsteriskIcon
import _BellIcon from '@/assets/icons/bell.svg?component'
export const BellIcon = _BellIcon
import _BellRingIcon from '@/assets/icons/bell-ring.svg?component'
export const BellRingIcon = _BellRingIcon
import _BookIcon from '@/assets/icons/book.svg?component'
export const BookIcon = _BookIcon
import _BookmarkIcon from '@/assets/icons/bookmark.svg?component'
export const BookmarkIcon = _BookmarkIcon
import _BoxIcon from '@/assets/icons/box.svg?component'
export const BoxIcon = _BoxIcon
import _CalendarIcon from '@/assets/icons/calendar.svg?component'
export const CalendarIcon = _CalendarIcon
import _ChartIcon from '@/assets/icons/chart.svg?component'
export const ChartIcon = _ChartIcon
import _CheckIcon from '@/assets/icons/check.svg?component'
export const CheckIcon = _CheckIcon
import _CheckCheckIcon from '@/assets/icons/check-check.svg?component'
export const CheckCheckIcon = _CheckCheckIcon
import _CheckCircleIcon from '@/assets/icons/check-circle.svg?component'
export const CheckCircleIcon = _CheckCircleIcon
import _ChevronLeftIcon from '@/assets/icons/chevron-left.svg?component'
export const ChevronLeftIcon = _ChevronLeftIcon
import _ChevronRightIcon from '@/assets/icons/chevron-right.svg?component'
export const ChevronRightIcon = _ChevronRightIcon
import _ClearIcon from '@/assets/icons/clear.svg?component'
export const ClearIcon = _ClearIcon
import _ClientIcon from '@/assets/icons/client.svg?component'
export const ClientIcon = _ClientIcon
import _ClipboardCopyIcon from '@/assets/icons/clipboard-copy.svg?component'
export const ClipboardCopyIcon = _ClipboardCopyIcon
import _CodeIcon from '@/assets/icons/code.svg?component'
export const CodeIcon = _CodeIcon
import _CoinsIcon from '@/assets/icons/coins.svg?component'
export const CoinsIcon = _CoinsIcon
import _ContractIcon from '@/assets/icons/contract.svg?component'
export const ContractIcon = _ContractIcon
import _CopyIcon from '@/assets/icons/copy.svg?component'
export const CopyIcon = _CopyIcon
import _CopyrightIcon from '@/assets/icons/copyright.svg?component'
export const CopyrightIcon = _CopyrightIcon
import _CurrencyIcon from '@/assets/icons/currency.svg?component'
export const CurrencyIcon = _CurrencyIcon
import _DashboardIcon from '@/assets/icons/dashboard.svg?component'
export const DashboardIcon = _DashboardIcon
import _DownloadIcon from '@/assets/icons/download.svg?component'
export const DownloadIcon = _DownloadIcon
import _DropdownIcon from '@/assets/icons/dropdown.svg?component'
export const DropdownIcon = _DropdownIcon
import _EditIcon from '@/assets/icons/edit.svg?component'
export const EditIcon = _EditIcon
import _ExitIcon from '@/assets/icons/x.svg?component'
export const ExitIcon = _ExitIcon
import _ExpandIcon from '@/assets/icons/expand.svg?component'
export const ExpandIcon = _ExpandIcon
import _ExternalIcon from '@/assets/icons/external.svg?component'
export const ExternalIcon = _ExternalIcon
import _EyeIcon from '@/assets/icons/eye.svg?component'
export const EyeIcon = _EyeIcon
import _EyeOffIcon from '@/assets/icons/eye-off.svg?component'
export const EyeOffIcon = _EyeOffIcon
import _FileIcon from '@/assets/icons/file.svg?component'
export const FileIcon = _FileIcon
import _FileTextIcon from '@/assets/icons/file-text.svg?component'
export const FileTextIcon = _FileTextIcon
import _FilterIcon from '@/assets/icons/filter.svg?component'
export const FilterIcon = _FilterIcon
import _FolderOpenIcon from '@/assets/icons/folder-open.svg?component'
export const FolderOpenIcon = _FolderOpenIcon
import _FolderSearchIcon from '@/assets/icons/folder-search.svg?component'
export const FolderSearchIcon = _FolderSearchIcon
import _GapIcon from '@/assets/icons/gap.svg?component'
export const GapIcon = _GapIcon
import _GitHubIcon from '@/assets/icons/github.svg?component'
export const GitHubIcon = _GitHubIcon
import _GlobeIcon from '@/assets/icons/globe.svg?component'
export const GlobeIcon = _GlobeIcon
import _GridIcon from '@/assets/icons/grid.svg?component'
export const GridIcon = _GridIcon
import _HamburgerIcon from '@/assets/icons/hamburger.svg?component'
export const HamburgerIcon = _HamburgerIcon
import _HammerIcon from '@/assets/icons/hammer.svg?component'
export const HammerIcon = _HammerIcon
import _HashIcon from '@/assets/icons/hash.svg?component'
export const HashIcon = _HashIcon
import _HeartIcon from '@/assets/icons/heart.svg?component'
export const HeartIcon = _HeartIcon
import _HeartHandshakeIcon from '@/assets/icons/heart-handshake.svg?component'
export const HeartHandshakeIcon = _HeartHandshakeIcon
import _HistoryIcon from '@/assets/icons/history.svg?component'
export const HistoryIcon = _HistoryIcon
import _HomeIcon from '@/assets/icons/home.svg?component'
export const HomeIcon = _HomeIcon
import _ImageIcon from '@/assets/icons/image.svg?component'
export const ImageIcon = _ImageIcon
import _InfoIcon from '@/assets/icons/info.svg?component'
export const InfoIcon = _InfoIcon
import _IssuesIcon from '@/assets/icons/issues.svg?component'
export const IssuesIcon = _IssuesIcon
import _KeyIcon from '@/assets/icons/key.svg?component'
export const KeyIcon = _KeyIcon
import _LanguagesIcon from '@/assets/icons/languages.svg?component'
export const LanguagesIcon = _LanguagesIcon
import _LeftArrowIcon from '@/assets/icons/left-arrow.svg?component'
export const LeftArrowIcon = _LeftArrowIcon
import _LibraryIcon from '@/assets/icons/library.svg?component'
export const LibraryIcon = _LibraryIcon
import _LightBulbIcon from '@/assets/icons/light-bulb.svg?component'
export const LightBulbIcon = _LightBulbIcon
import _LinkIcon from '@/assets/icons/link.svg?component'
export const LinkIcon = _LinkIcon
import _ListIcon from '@/assets/icons/list.svg?component'
export const ListIcon = _ListIcon
import _ListEndIcon from '@/assets/icons/list-end.svg?component'
export const ListEndIcon = _ListEndIcon
import _LockIcon from '@/assets/icons/lock.svg?component'
export const LockIcon = _LockIcon
import _LogInIcon from '@/assets/icons/log-in.svg?component'
export const LogInIcon = _LogInIcon
import _LogOutIcon from '@/assets/icons/log-out.svg?component'
export const LogOutIcon = _LogOutIcon
import _MailIcon from '@/assets/icons/mail.svg?component'
export const MailIcon = _MailIcon
import _MessageIcon from '@/assets/icons/message.svg?component'
export const MessageIcon = _MessageIcon
import _MicrophoneIcon from '@/assets/icons/microphone.svg?component'
export const MicrophoneIcon = _MicrophoneIcon
import _MoonIcon from '@/assets/icons/moon.svg?component'
export const MoonIcon = _MoonIcon
import _MoreHorizontalIcon from '@/assets/icons/more-horizontal.svg?component'
export const MoreHorizontalIcon = _MoreHorizontalIcon
import _MoreVerticalIcon from '@/assets/icons/more-vertical.svg?component'
export const MoreVerticalIcon = _MoreVerticalIcon
import _OmorphiaIcon from '@/assets/icons/omorphia.svg?component'
export const OmorphiaIcon = _OmorphiaIcon
import _PaintBrushIcon from '@/assets/icons/paintbrush.svg?component'
export const PaintBrushIcon = _PaintBrushIcon
import _PlayIcon from '@/assets/icons/play.svg?component'
export const PlayIcon = _PlayIcon
import _PlusIcon from '@/assets/icons/plus.svg?component'
export const PlusIcon = _PlusIcon
import _RadioButtonIcon from '@/assets/icons/radio-button.svg?component'
export const RadioButtonIcon = _RadioButtonIcon
import _RadioButtonChecked from '@/assets/icons/radio-button-checked.svg?component'
export const RadioButtonChecked = _RadioButtonChecked
import _ReplyIcon from '@/assets/icons/reply.svg?component'
export const ReplyIcon = _ReplyIcon
import _ReportIcon from '@/assets/icons/report.svg?component'
export const ReportIcon = _ReportIcon
import _RightArrowIcon from '@/assets/icons/right-arrow.svg?component'
export const RightArrowIcon = _RightArrowIcon
import _SaveIcon from '@/assets/icons/save.svg?component'
export const SaveIcon = _SaveIcon
import _ScaleIcon from '@/assets/icons/scale.svg?component'
export const ScaleIcon = _ScaleIcon
import _ScanEyeIcon from '@/assets/icons/scan-eye.svg?component'
export const ScanEyeIcon = _ScanEyeIcon
import _SearchIcon from '@/assets/icons/search.svg?component'
export const SearchIcon = _SearchIcon
import _SendIcon from '@/assets/icons/send.svg?component'
export const SendIcon = _SendIcon
import _ServerIcon from '@/assets/icons/server.svg?component'
export const ServerIcon = _ServerIcon
import _SettingsIcon from '@/assets/icons/settings.svg?component'
export const SettingsIcon = _SettingsIcon
import _ShareIcon from '@/assets/icons/share.svg?component'
export const ShareIcon = _ShareIcon
import _ShieldIcon from '@/assets/icons/shield.svg?component'
export const ShieldIcon = _ShieldIcon
import _SlashIcon from '@/assets/icons/slash.svg?component'
export const SlashIcon = _SlashIcon
import _SortAscendingIcon from '@/assets/icons/sort-asc.svg?component'
export const SortAscendingIcon = _SortAscendingIcon
import _SortDescendingIcon from '@/assets/icons/sort-desc.svg?component'
export const SortDescendingIcon = _SortDescendingIcon
import _StarIcon from '@/assets/icons/star.svg?component'
export const StarIcon = _StarIcon
import _StopCircleIcon from '@/assets/icons/stop-circle.svg?component'
export const StopCircleIcon = _StopCircleIcon
import _SunIcon from '@/assets/icons/sun.svg?component'
export const SunIcon = _SunIcon
import _SunriseIcon from '@/assets/icons/sunrise.svg?component'
export const SunriseIcon = _SunriseIcon
import _TagIcon from '@/assets/icons/tag.svg?component'
export const TagIcon = _TagIcon
import _TagsIcon from '@/assets/icons/tags.svg?component'
export const TagsIcon = _TagsIcon
import _TerminalSquareIcon from '@/assets/icons/terminal-square.svg?component'
export const TerminalSquareIcon = _TerminalSquareIcon
import _TransferIcon from '@/assets/icons/transfer.svg?component'
export const TransferIcon = _TransferIcon
import _TrashIcon from '@/assets/icons/trash.svg?component'
export const TrashIcon = _TrashIcon
import _UndoIcon from '@/assets/icons/undo.svg?component'
export const UndoIcon = _UndoIcon
import _RedoIcon from '@/assets/icons/redo.svg?component'
export const RedoIcon = _RedoIcon
import _UnknownIcon from '@/assets/icons/unknown.svg?component'
export const UnknownIcon = _UnknownIcon
import _UnknownDonationIcon from '@/assets/icons/unknown-donation.svg?component'
export const UnknownDonationIcon = _UnknownDonationIcon
import _UpdatedIcon from '@/assets/icons/updated.svg?component'
export const UpdatedIcon = _UpdatedIcon
import _UploadIcon from '@/assets/icons/upload.svg?component'
export const UploadIcon = _UploadIcon
import _UserIcon from '@/assets/icons/user.svg?component'
export const UserIcon = _UserIcon
import _UserPlusIcon from '@/assets/icons/user-plus.svg?component'
export const UserPlusIcon = _UserPlusIcon
import _UserXIcon from '@/assets/icons/user-x.svg?component'
export const UserXIcon = _UserXIcon
import _UsersIcon from '@/assets/icons/users.svg?component'
export const UsersIcon = _UsersIcon
import _VersionIcon from '@/assets/icons/version.svg?component'
export const VersionIcon = _VersionIcon
import _WikiIcon from '@/assets/icons/wiki.svg?component'
export const WikiIcon = _WikiIcon
import _XIcon from '@/assets/icons/x.svg?component'
export const XIcon = _XIcon
import _XCircleIcon from '@/assets/icons/x-circle.svg?component'
export const XCircleIcon = _XCircleIcon
import _ZoomInIcon from '@/assets/icons/zoom-in.svg?component'
export const ZoomInIcon = _ZoomInIcon
import _ZoomOutIcon from '@/assets/icons/zoom-out.svg?component'
export const ZoomOutIcon = _ZoomOutIcon

// Editor Icons
import _BoldIcon from '@/assets/icons/bold.svg?component'
export const BoldIcon = _BoldIcon
import _ItalicIcon from '@/assets/icons/italic.svg?component'
export const ItalicIcon = _ItalicIcon
import _UnderlineIcon from '@/assets/icons/underline.svg?component'
export const UnderlineIcon = _UnderlineIcon
import _StrikethroughIcon from '@/assets/icons/strikethrough.svg?component'
export const StrikethroughIcon = _StrikethroughIcon
import _ListBulletedIcon from '@/assets/icons/list-bulleted.svg?component'
export const ListBulletedIcon = _ListBulletedIcon
import _ListOrderedIcon from '@/assets/icons/list-ordered.svg?component'
export const ListOrderedIcon = _ListOrderedIcon
import _TextQuoteIcon from '@/assets/icons/text-quote.svg?component'
export const TextQuoteIcon = _TextQuoteIcon
import _Heading1Icon from '@/assets/icons/heading-1.svg?component'
export const Heading1Icon = _Heading1Icon
import _Heading2Icon from '@/assets/icons/heading-2.svg?component'
export const Heading2Icon = _Heading2Icon
import _Heading3Icon from '@/assets/icons/heading-3.svg?component'
export const Heading3Icon = _Heading3Icon
Loading