refactor: remove duplicate icon mappings for clarity

Eliminated redundant entries in iconMaps to streamline the mapping process and enhance readability. This consolidation reduces clutter and ensures a more efficient and maintainable codebase.
This commit is contained in:
ccbikai 2024-08-18 19:43:19 +08:00
parent 36e7962b83
commit 53a6b5d403

View File

@ -48,25 +48,21 @@ defineProps({
})
const iconMaps = {
'android': AndroidIcon,
'android': AndroidIcon,
'android browser': AndroidIcon,
'browser': Globe,
'chrome': GoogleChromeIcon,
'chrome headless': GoogleChromeIcon,
'chrome webview': GoogleChromeIcon,
'chrome webview': GoogleChromeIcon,
'chromium': GoogleChromeIcon,
'curl': Terminal,
'debian': DebianIcon,
'desktop': MonitorCheck,
'desktop': MonitorCheck,
'facebook': FacebookIcon,
'facebookexternalhit': FacebookIcon,
'firefox': FirefoxBrowserIcon,
'googlebot': GoogleIcon,
'googlebot-image': GoogleIcon,
'googlebot-image': GoogleIcon,
'gnu': GnuIcon,
'harmonyos': HuaweiIcon,
'huawei browser': HuaweiIcon,
@ -79,7 +75,6 @@ const iconMaps = {
'linux': LinuxIcon,
'macintosh': AppleIcon,
'macos': MacOsIcon,
'macos': MacOsIcon,
'miui browser': XiaomiIcon,
'mobile': Smartphone,
'mobile chrome': GoogleChromeIcon,
@ -90,12 +85,10 @@ const iconMaps = {
'safari': SafariIcon,
'samsung internet': SamsungIcon,
'tablet': Tablet,
'tablet': Tablet,
'twitterbot': XIcon,
'ubuntu': UbuntuIcon,
'vivo browser': VivoIcon,
'wechat': WeChatIcon,
'wechat': WeChatIcon,
'wearable': WearOsIcon,
'yandex': YandexCloudIcon,
}