Commit 846a4f0f5d
Unsigned
Layout: unified · split
docs/.vitepress/configs/markdown/emoji.ts +76 −92
| @@ -45,118 +45,102 @@ const emojis: { pack: IconifyJSON; prefix?: string }[] = [ | ||
| 45 | 45 | { pack: iconoir, prefix: 'iconoir-' } |
| 46 | 46 | ] |
| 47 | 47 | |
| 48 | // Add aliases here... | |
| 49 | const aliases: Record<string, string> = { | |
| 48 | // Add aliases here: [icon, label?] | |
| 49 | // Label is optional — omit for icons that don't need a tooltip. | |
| 50 | const aliasDefs: Record<string, [string, string?]> = { | |
| 50 | 51 | // System |
| 51 | and: 'simple-icons-android', | |
| 52 | ios: 'simple-icons-apple', | |
| 53 | win: 'simple-icons-windows', | |
| 54 | app: 'ri-finder-fill', | |
| 55 | lin: 'simple-icons-linux', | |
| 56 | bsd: 'simple-icons-freebsd', | |
| 57 | cmd: 'material-symbols-terminal-rounded', | |
| 58 | ff: 'simple-icons-firefoxbrowser', | |
| 59 | cr: 'simple-icons-googlechrome', | |
| 60 | web: 'mdi-web', | |
| 52 | and: ['simple-icons-android', 'Android'], | |
| 53 | ios: ['simple-icons-apple', 'iOS / iPadOS'], | |
| 54 | win: ['simple-icons-windows', 'Windows'], | |
| 55 | app: ['ri-finder-fill', 'MacOS'], | |
| 56 | lin: ['simple-icons-linux', 'Linux'], | |
| 57 | bsd: ['simple-icons-freebsd', 'BSD'], | |
| 58 | cmd: ['material-symbols-terminal-rounded', 'CLI / TUI'], | |
| 59 | ff: ['simple-icons-firefoxbrowser', 'Firefox'], | |
| 60 | cr: ['simple-icons-googlechrome', 'Chromium'], | |
| 61 | web: ['mdi-web', 'Web'], | |
| 61 | 62 | |
| 62 | 63 | // Type |
| 63 | strm: 'material-symbols-play-circle-outline', | |
| 64 | ddl: 'material-symbols-cloud-download-outline-rounded', | |
| 65 | mag: 'lucide-magnet', | |
| 66 | lcl: 'iconoir-floppy-disk', | |
| 67 | batch: 'material-symbols-package-2-outline', | |
| 68 | sp: `lucide-file`, | |
| 69 | dp: `lucide-book-open`, | |
| 70 | ls: `lucide-scroll`, | |
| 64 | strm: ['material-symbols-play-circle-outline', 'Stream'], | |
| 65 | ddl: ['material-symbols-cloud-download-outline-rounded', 'Online / DDL'], | |
| 66 | mag: ['lucide-magnet', 'Torrent / p2p'], | |
| 67 | lcl: ['iconoir-floppy-disk', 'Local file'], | |
| 68 | batch: ['material-symbols-package-2-outline', 'Batch Download'], | |
| 69 | sp: ['lucide-file', 'Single Page Mode'], | |
| 70 | dp: ['lucide-book-open', 'Double Page Mode'], | |
| 71 | ls: ['lucide-scroll', 'Long-Strip Mode'], | |
| 71 | 72 | |
| 72 | 73 | // Tracking |
| 73 | sync: `material-symbols-sync`, | |
| 74 | ie: `material-symbols-arrows-up-down-circle-outline-rounded`, | |
| 74 | sync: ['material-symbols-sync', 'Sync'], | |
| 75 | ie: ['material-symbols-arrows-up-down-circle-outline-rounded', 'Import / Export'], | |
| 75 | 76 | |
| 76 | 77 | // Price |
| 77 | paid: 'ic-round-attach-money', | |
| 78 | fm: 'ic-round-add-shopping-cart', | |
| 79 | free: 'ic-round-money-off-csred', | |
| 80 | sub: 'ic-round-currency-exchange', | |
| 81 | coin: 'akar-icons-coin', | |
| 78 | paid: ['ic-round-attach-money', 'Paid'], | |
| 79 | fm: ['ic-round-add-shopping-cart', 'Freemium'], | |
| 80 | free: ['ic-round-money-off-csred', 'Has free content'], | |
| 81 | sub: ['ic-round-currency-exchange', 'Subscription'], | |
| 82 | coin: ['akar-icons-coin', 'Coin / Point'], | |
| 82 | 83 | |
| 83 | 84 | // Source |
| 84 | src: 'mdi-package-variant', | |
| 85 | cs: 'mdi-package-variant-closed-remove', | |
| 85 | src: ['mdi-package-variant', 'Source Code'], | |
| 86 | cs: ['mdi-package-variant-closed-remove', 'Closed Source'], | |
| 86 | 87 | |
| 87 | 88 | // Platform |
| 88 | d: 'simple-icons-discord', | |
| 89 | f: 'simple-icons-4chan', | |
| 90 | x: 'simple-icons-twitter', | |
| 91 | tg: 'simple-icons-telegram', | |
| 92 | mal: 'simple-icons-myanimelist', | |
| 93 | al: 'simple-icons-anilist', | |
| 94 | k: 'simple-icons-kitsu', | |
| 95 | simkl: 'simple-icons-simkl', | |
| 89 | d: ['simple-icons-discord', 'Discord'], | |
| 90 | f: ['simple-icons-4chan', '4chan'], | |
| 91 | x: ['simple-icons-twitter', 'Twitter'], | |
| 92 | tg: ['simple-icons-telegram', 'Telegram'], | |
| 93 | mal: ['simple-icons-myanimelist', 'MyAnimeList'], | |
| 94 | al: ['simple-icons-anilist', 'AniList'], | |
| 95 | k: ['simple-icons-kitsu', 'Kitsu'], | |
| 96 | simkl: ['simple-icons-simkl', 'Simkl'], | |
| 96 | 97 | |
| 97 | 98 | // Storage |
| 98 | sgd: 'simple-icons-googledrive', | |
| 99 | sm: 'simple-icons-mega', | |
| 100 | smf: 'simple-icons-mediafire', | |
| 101 | host: 'mdi-snail', | |
| 99 | sgd: ['simple-icons-googledrive', 'Google Drive'], | |
| 100 | sm: ['simple-icons-mega', 'MEGA'], | |
| 101 | smf: ['simple-icons-mediafire', 'MediaFire'], | |
| 102 | host: ['mdi-snail', 'Other Host'], | |
| 102 | 103 | |
| 103 | // Flag | |
| 104 | fjp: 'twemoji-flag-japan', | |
| 105 | fkr: 'twemoji-flag-south-korea', | |
| 106 | fcn: 'twemoji-flag-china', | |
| 104 | // Region | |
| 105 | fjp: ['twemoji-flag-japan', 'Japan'], | |
| 106 | fkr: ['twemoji-flag-south-korea', 'Korea'], | |
| 107 | fcn: ['twemoji-flag-china', 'China'], | |
| 107 | 108 | |
| 108 | 109 | // Code |
| 109 | py: 'simple-icons-python', | |
| 110 | js: 'simple-icons-javascript', | |
| 111 | css: 'mdi-language-css3', | |
| 112 | dock: 'simple-icons-docker', | |
| 110 | py: ['simple-icons-python', 'Python'], | |
| 111 | js: ['simple-icons-javascript', 'JavaScript'], | |
| 112 | css: ['mdi-language-css3', 'CSS'], | |
| 113 | dock: ['simple-icons-docker', 'Docker'], | |
| 113 | 114 | |
| 114 | 115 | // Others |
| 115 | s: 'twemoji-glowing-star', | |
| 116 | e: 'mdi-puzzle', | |
| 117 | n: 'material-symbols-science', | |
| 118 | alt: 'ic-round-looks-two', | |
| 119 | ero: 'twemoji-no-one-under-eighteen', | |
| 120 | acc: 'material-symbols-person-add', | |
| 121 | rss: 'simple-icons-rss', | |
| 122 | prx: 'material-symbols-directions-alt', | |
| 123 | tf: 'mdi-airplane', | |
| 124 | more: 'mdi-arrow-right-bold', | |
| 125 | help: 'material-symbols-help', | |
| 126 | yes: 'twemoji-check-mark-button', | |
| 127 | no: 'twemoji-cross-mark', | |
| 128 | global: 'twemoji-globe-showing-asia-australia', | |
| 129 | up: 'material-symbols-upload', | |
| 130 | ms: 'material-symbols-file-copy-rounded', | |
| 131 | ps: 'material-symbols-file-copy-outline-rounded', | |
| 132 | ss: 'material-symbols-file-copy-off-rounded', | |
| 133 | cc: 'mdi-closed-caption', | |
| 134 | hs: 'mdi-hulu' | |
| 116 | s: ['twemoji-glowing-star', 'Favorite'], | |
| 117 | e: ['mdi-puzzle', 'Extension / Plugin'], | |
| 118 | n: ['material-symbols-science', 'Nightly build'], | |
| 119 | alt: ['ic-round-looks-two', 'Alternative'], | |
| 120 | ero: ['twemoji-no-one-under-eighteen', 'R18'], | |
| 121 | acc: ['material-symbols-person-add', 'Needs account'], | |
| 122 | rss: ['simple-icons-rss', 'RSS Feed'], | |
| 123 | prx: ['material-symbols-directions-alt', 'Proxies'], | |
| 124 | tf: ['mdi-airplane', 'Testflight'], | |
| 125 | more: ['mdi-arrow-right-bold', 'Related'], | |
| 126 | help: ['material-symbols-help', 'Help / Docs'], | |
| 127 | yes: ['twemoji-check-mark-button', 'Yes / Available'], | |
| 128 | no: ['twemoji-cross-mark', 'No / Unavailable'], | |
| 129 | global: ['twemoji-globe-showing-asia-australia', 'Global'], | |
| 130 | up: ['material-symbols-upload', 'Self Upload'], | |
| 131 | ms: ['material-symbols-file-copy-rounded', 'Multi Source'], | |
| 132 | ps: ['material-symbols-file-copy-outline-rounded'], | |
| 133 | ss: ['material-symbols-file-copy-off-rounded'], | |
| 134 | cc: ['mdi-closed-caption', 'Soft Subtitle / CC'], | |
| 135 | hs: ['mdi-hulu', 'Hardsubs'] | |
| 135 | 136 | } |
| 136 | 137 | |
| 137 | // Tooltip labels for icon aliases (desktop hover) | |
| 138 | const aliasLabels: Record<string, string> = { | |
| 139 | s: 'Favorite', src: 'Source Code', cs: 'Closed Source', | |
| 140 | e: 'Extension / Plugin', prx: 'Proxies', ero: 'R18', | |
| 141 | acc: 'Needs account', help: 'Help / Docs', more: 'Related', | |
| 142 | and: 'Android', ios: 'iOS / iPadOS', app: 'MacOS', | |
| 143 | win: 'Windows', lin: 'Linux', bsd: 'BSD', | |
| 144 | cmd: 'CLI / TUI', ff: 'Firefox', cr: 'Chromium', web: 'Web', | |
| 145 | strm: 'Stream', ddl: 'Online / DDL', mag: 'Torrent / p2p', | |
| 146 | lcl: 'Local file', batch: 'Batch Download', | |
| 147 | sp: 'Single Page Mode', dp: 'Double Page Mode', ls: 'Long-Strip Mode', | |
| 148 | paid: 'Paid', sub: 'Subscription', free: 'Has free content', | |
| 149 | coin: 'Coin / Point', fm: 'Freemium', | |
| 150 | d: 'Discord', f: '4chan', x: 'Twitter', tg: 'Telegram', | |
| 151 | mal: 'MyAnimeList', al: 'AniList', k: 'Kitsu', simkl: 'Simkl', | |
| 152 | sgd: 'Google Drive', sm: 'MEGA', smf: 'MediaFire', host: 'Other Host', | |
| 153 | fjp: 'Japan', fkr: 'Korea', fcn: 'China', | |
| 154 | js: 'JavaScript', css: 'CSS', py: 'Python', dock: 'Docker', | |
| 155 | n: 'Nightly build', alt: 'Alternative', rss: 'RSS Feed', tf: 'Testflight', | |
| 156 | yes: 'Yes / Available', no: 'No / Unavailable', | |
| 157 | global: 'Global', cc: 'Subtitles / CC', hs: 'Hardsubs', | |
| 158 | up: 'More Info', ms: 'Feedback', | |
| 159 | sync: 'Sync', ie: 'Import / Export' | |
| 138 | // Derived maps from aliasDefs | |
| 139 | const aliases: Record<string, string> = {} | |
| 140 | const aliasLabels: Record<string, string> = {} | |
| 141 | for (const [key, [icon, label]] of Object.entries(aliasDefs)) { | |
| 142 | aliases[key] = icon | |
| 143 | if (label) aliasLabels[key] = label | |
| 160 | 144 | } |
| 161 | 145 | |
| 162 | 146 | // Custom icons using UnoCSS inline collection |