update serie icons
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
ExternalLinkIcon,
|
ExternalLinkIcon,
|
||||||
HelpCircleIcon,
|
HelpCircleIcon,
|
||||||
MailIcon,
|
MailIcon,
|
||||||
|
MessageCircleIcon,
|
||||||
MonitorIcon,
|
MonitorIcon,
|
||||||
MonitorPlayIcon,
|
MonitorPlayIcon,
|
||||||
PodcastIcon,
|
PodcastIcon,
|
||||||
@@ -47,6 +48,8 @@ const mapper: Record<string, LucideIcon> = {
|
|||||||
search: SearchIcon,
|
search: SearchIcon,
|
||||||
social: PodcastIcon,
|
social: PodcastIcon,
|
||||||
email: MailIcon,
|
email: MailIcon,
|
||||||
|
podcast: PodcastIcon,
|
||||||
|
comment: MessageCircleIcon,
|
||||||
unknown: HelpCircleIcon,
|
unknown: HelpCircleIcon,
|
||||||
[NOT_SET_VALUE]: ScanIcon,
|
[NOT_SET_VALUE]: ScanIcon,
|
||||||
|
|
||||||
@@ -77,6 +80,10 @@ export function SerieIcon({ name, ...props }: SerieIconProps) {
|
|||||||
return createImageIcon(getProxyImage(name));
|
return createImageIcon(getProxyImage(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name.match(/(.+)\.\w{2,3}$/)) {
|
||||||
|
return createImageIcon(getProxyImage(`https://${name}`));
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}, [name]);
|
}, [name]);
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ const data = {
|
|||||||
ios: 'https://cdn0.iconfinder.com/data/icons/flat-round-system/512/apple-1024.png',
|
ios: 'https://cdn0.iconfinder.com/data/icons/flat-round-system/512/apple-1024.png',
|
||||||
linkedin: 'https://linkedin.com',
|
linkedin: 'https://linkedin.com',
|
||||||
linux: 'https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg',
|
linux: 'https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg',
|
||||||
|
ubuntu: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Logo-ubuntu_cof-orange-hex.svg',
|
||||||
|
weibo: 'https://en.wikipedia.org/wiki/Weibo#/media/File:Sina_Weibo.svg',
|
||||||
microlaunch: 'https://microlaunch.net',
|
microlaunch: 'https://microlaunch.net',
|
||||||
openalternative: 'https://openalternative.co',
|
openalternative: 'https://openalternative.co',
|
||||||
opera: 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',
|
opera: 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',
|
||||||
@@ -37,6 +39,18 @@ const data = {
|
|||||||
windows: 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png',
|
windows: 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png',
|
||||||
yandex: 'https://yandex.com',
|
yandex: 'https://yandex.com',
|
||||||
youtube: 'https://youtube.com',
|
youtube: 'https://youtube.com',
|
||||||
|
ossgallery: 'https://oss.gallery',
|
||||||
|
convertkit: 'https://convertkit.com',
|
||||||
|
whatsapp: 'https://www.whatsapp.com/',
|
||||||
|
telegram: 'https://telegram.org/',
|
||||||
|
tiktok: 'https://tiktok.com',
|
||||||
|
sharpspring: 'https://sharpspring.com',
|
||||||
|
'hacker news': 'https://news.ycombinator.com',
|
||||||
|
'betalist': 'https://betalist.com',
|
||||||
|
'qwant': 'https://www.qwant.com',
|
||||||
|
flipboard: 'https://flipboard.com/',
|
||||||
|
trustpilot: 'https://trustpilot.com',
|
||||||
|
'outlook.com': 'https://login.live.com/',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default data;
|
export default data;
|
||||||
|
|||||||
@@ -38,9 +38,10 @@ export function getReferrerWithQuery(
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const match = Object.values(referrers).find(
|
const match =
|
||||||
(referrer) => referrer.name.toLowerCase() === source.toLowerCase()
|
Object.values(referrers).find(
|
||||||
);
|
(referrer) => referrer.name.toLowerCase() === source.toLowerCase()
|
||||||
|
) || referrers[source];
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user