Fix #5343: Add icons for websites linked to at least 9 artists.

This commit is contained in:
evazion
2022-11-12 19:49:20 -06:00
parent 220db642e1
commit e12ce9b472
76 changed files with 285 additions and 11 deletions

View File

@@ -6,14 +6,188 @@ module IconHelper
# To add a new site, add the site name here, add the logo in public/images, and update app/logical/source/url/null.rb
# if the site name is irregular.
SITE_ICON_NAMES = %w[
4chan Amazon Ameblo Anifty ArtStation Ask.fm BCY Biglobe Bilibili Booth Carrd Catbox Circle.ms Coconala Danbooru
Deviant\ Art Discord DLSite Doujinshi.org Drawcrowd E-Hentai Enty Erogamescape Facebook Fantia FC2 Fiverr Foundation
Furaffinity Geocities Gelbooru Google Gumroad Hentai\ Foundry Hitomi Imgur Infoseek Inprnt Instagram Joyreactor
Ko-fi Konachan Linktree Lit.link Livedoor Luscious Lofter Kemono\ Party Mangaupdates Marshmallow\ Qa Mastodon Mblg
Mega Melonbooks Mihuashi Mihoyo Mixi.jp Monappy Naver Newgrounds Nico\ Seiga Nijie OCN Overdoll Patreon Pawoo Photozou
Piapro.jp Picarto Pinterest Pixiv Fanbox Pixiv\ Sketch Plurk Poipiku Privatter Profcard Redbubble Reddit Rule34.us
Sakura.ne.jp Sankaku\ Complex Steam Stickam Skeb Skima The\ Interviews Tiktok Tinami Tumblr Twitter Toranoana Twipple
Twitch Twitcasting TwitPic Twpf Ustream Vk Webmshare Weebly Weibo Wikipedia Wix Yande.re Yfrog Youtube Wix Zerochan
4chan
Adobe\ Portfolio
AllMyLinks
Amazon
Ameblo
Amino
Anifty
Anime\ News\ Network
Animexx
Archive\ of\ Our\ Own
Art\ Fight
Artists&Clients
ArtStation
Aryion
Ask.fm
BCY
Bandcamp
Baraag
Beacons
Behance
Big\ Cartel
Biglobe
Bilibili
Blogger
Boosty
Booth
Buy\ Me\ a\ Coffee
Cafe24
Carrd
Catbox
Circle.ms
Clip\ Studio
Coconala
Colors\ Live
Commishes
Creatorlink
Curious\ Cat
DLSite
Danbooru
Deviant\ Art
Discord
Doujinshi.org
Drawcrowd
E-Hentai
Enty
Erogamescape
Etsy
FC2
Facebook
Fanbox
Fandom
Fantia
Fiverr
Flavors
Foundation
Furaffinity
Fusetter
Gelbooru
Geocities
Giftee
GitHub
Google
Gumroad
Hatena\ Blog
Hentai\ Foundry
Hitomi
Imgur
Infoseek
Inkbunny
Inprnt
Instagram
Jimdo
Joyreactor
Kakao
Kemono\ Party
Ko-fi
Konachan
Last.fm
Line
LinkedIn
Linktree
Lit.link
Livedoor
Lofter
Luscious
Mangaupdates
Marshmallow\ Qa
Mastodon
Mblg
Mega
Melonbooks
Mihoyo
Mihuashi
Mixi.jp
Monappy
Mottohomete
MyAnimeList
Naver
Newgrounds
Nico\ Seiga
Nijie
Note
OCN
Odaibako
Ofuse
OnlyFans
Overdoll
Patreon
Pawoo
PayPal
Peing
Photozou
Piapro.jp
Picarto
Picdig
Picrew
Piczel
Pillowfort
Pinterest
Pixiv
Pixiv\ Sketch
Plurk
Poipiku
Pornhub
Postype
Potofu
Privatter
Profcard
RedGIFs
Redbubble
Reddit
Rule34.us
Sakura.ne.jp
Sankaku\ Complex
Shopee
Skeb
Sketchmob
Sketchfab
Skima
Society6
SoundCloud
Spotify
Steam
Stickam
Storenvy
SubscribeStar
Suzuri
Tapas
TeePublic
Telegram
The\ Interviews
Tiktok
Tinami
Tistory
Toranoana
Toyhouse
Trakteer
Trello
Tumblr
Twipple
TwitPic
Twitcasting
Twitch
Twitter
Twpf
Ustream
Vimeo
Vk
Wavebox
Weasyl
Webmshare
Webtoons
Weebly
Weibo
Wikipedia
Wix
WordPress
Yande.re
Yfrog
Youtube
Zerochan
html.co.jp
]
def icon_tag(icon_class, class: nil, **options)
@@ -227,7 +401,7 @@ module IconHelper
def external_site_icon(site_name, **options)
if site_name.in?(SITE_ICON_NAMES)
image_icon_tag("#{site_name.downcase.tr(" ", "-")}-logo.png", **options)
image_icon_tag("#{site_name.downcase.gsub(/[^a-z0-9.]/, "-")}-logo.png", **options)
else
globe_icon(**options)
end

View File

@@ -11,14 +11,46 @@ class Source::URL::Null < Source::URL
case [subdomain, domain]
in _, "4cdn.org"
"4chan"
in _, "myportfolio.com"
"Adobe Portfolio"
in _, "adobe.com" if host == "portfolio.adobe.com"
"Adobe Portfolio"
in _, "allmylinks.com"
"AllMyLinks"
in _, "animenewsnetwork.com"
"Anime News Network"
in _, ("aminoapps.com" | "narvii.com")
"Amino"
in _, "archiveofourown.org"
"Archive of Our Own"
in _, "artfight.net"
"Art Fight"
in _, "artistsnclients.com"
"Artists&Clients"
in _, "ask.fm"
"Ask.fm"
in _, ("bandcamp.com" | "bcbits.com")
"Bandcamp"
in _, ("bcy.net" | "bcyimg.com")
"BCY"
in _, "bigcartel.com"
"Big Cartel"
in _, ("blogger.com" | /blogspot\.(com|ca|de|jp|kr|tw)\z/i)
"Blogger"
in "blogger", "googleusercontent.com"
"Blogger"
in _, "buymeacoffee.com"
"Buy Me a Coffee"
in _, "carrd.co"
"Carrd"
in _, "circle.ms"
"Circle.ms"
in _, "colorslive.com"
"Colors Live"
# XXX curiouscat.qa is possibly a different site
# https://www.bleepingcomputer.com/news/security/popular-qanda-app-curious-cat-loses-domain-posts-bizarre-tweets/
in _, ("curiouscat.live" | "curiouscat.me" | "curiouscat.qa")
"Curious Cat"
in _, ("dlsite.com" | "dlsite.net" | "dlsite.jp")
"DLSite"
in _, "donmai.us"
@@ -35,44 +67,112 @@ class Source::URL::Null < Source::URL
"E-Hentai"
in _, ("facebook.com" | "fbcdn.net")
"Facebook"
in _, ("fandom.com" | "wikia.com")
"Fandom"
in _, ("github.com" | "githubassets.com")
"GitHub"
in _, "hatenablog.com"
"Hatena Blog"
in _, "html.co.jp"
"html.co.jp"
in _, ("line.me" | "line-apps.com")
"Line"
in _, ("linkedin.com" | "licdn.com")
"LinkedIn"
in _, "linktr.ee"
"Linktree"
in _, "livedoor.jp"
"Livedoor"
in "livedoor", "blogimg.jp"
"Livedoor"
in _, "lit.link"
"Lit.link"
in _, "kemono.party"
"Kemono Party"
in _, "ko-fi.com"
"Ko-fi"
in _, "last.fm"
"Last.fm"
in _, ("mastodon.cloud" | "mstdn.jp")
"Mastodon"
in _, "myanimelist.net"
"MyAnimeList"
in _, "mixi.jp"
"Mixi.jp"
in _, "note.com"
"Note"
in _, "cloudfront.net" if host == "d291vdycu0ht11.cloudfront.net"
"Note"
in _, "ocn.ne.jp"
"OCN"
in _, "onlyfans.com"
"OnlyFans"
in _, ("overdoll.com" | "dollycdn.net")
"Overdoll"
in _, ("patreon.com" | "patreonusercontent.com")
"Patreon"
in _, "piapro.jp"
"Piapro.jp"
in _, ("paypal.com" | "paypal.me" | "paypalobjects.com")
"PayPal"
in _, ("pinterest.com" | "pinimg.com")
"Pinterest"
in _, "postype.com"
"Postype"
in _, "cloudfront.net" if host == "d33pksfia2a94m.cloudfront.net"
"Postype"
in _, ("joyreactor.cc" | "reactor.cc")
"Joyreactor"
in _, "redgifs.com"
"RedGIFs"
in _, "rule34.us"
"Rule34.us"
in _, "sakura.ne.jp"
"Sakura.ne.jp"
in _, "sankakucomplex.com"
"Sankaku Complex"
in _, "steamstatic.com"
in _, ("spotify.com" | "spotifycdn.com")
"Spotify"
in _, ("soundcloud.com" | "sndcdn.com")
"SoundCloud"
in _, ("steamstatic.com" | "steamcommunity.com")
"Steam"
in _, "the-interviews.jp"
in _, ("subscribestar.adult" | "subscribestar.com")
"SubscribeStar"
in _, "suzuri.jp"
"Suzuri"
in _, "cloudfront.net" if host == "dijsur42hqnz1.cloudfront.net"
"Suzuri"
in _, "theinterviews.jp"
"The Interviews"
in _, "tapas.io"
"Tapas"
in _, "cloudfront.net" if host == "d30womf5coomej.cloudfront.net"
"Tapas"
in _, "teepublic.com"
"TeePublic"
in _, ("telegram.org" | "t.me")
"Telegram"
in _, "tistory.com"
"Tistory"
in "t1", "daumcdn.net"
"Tistory"
in _, "toyhou.se"
"Toyhouse"
in "bxp-content-static.prod.public", "atl-paas.net"
"Trello"
in _, ("vimeo.com" | "vimeocdn.com" | "livestream.com")
"Vimeo"
in _, "webtoons.com"
"Webtoons"
in "webtoons-static", "pstatic.net"
"Webtoons"
in _, ("weebly.com" | "weeblysite.com")
"Weebly"
in _, ("wix.com" | "wixsite.com" | "wixstatic.com")
"Wix"
in _, "wordpress.com"
"WordPress"
in _, "youtu.be"
"Youtube"
else

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
public/images/etsy-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
public/images/line-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
public/images/note-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB