artists: add more artist url icons.

This commit is contained in:
evazion
2021-03-08 01:22:05 -06:00
parent 869a99d9a3
commit 1716cc5bf9
19 changed files with 69 additions and 5 deletions

View File

@@ -176,18 +176,26 @@ module IconHelper
def external_site_icon(site_name, **options) def external_site_icon(site_name, **options)
case site_name case site_name
when "Amazon"
image_icon_tag("amazon-logo.png", **options)
when "ArtStation" when "ArtStation"
image_icon_tag("artstation-logo.png", **options) image_icon_tag("artstation-logo.png", **options)
when "Ask.fm"
image_icon_tag("ask-fm-logo.png", **options)
when "BCY" when "BCY"
image_icon_tag("bcy-logo.png", **options) image_icon_tag("bcy-logo.png", **options)
when "Booth.pm" when "Booth.pm"
image_icon_tag("booth-pm-logo.png", **options) image_icon_tag("booth-pm-logo.png", **options)
when "Circle.ms" when "Circle.ms"
image_icon_tag("circle-ms-logo.png", **options) image_icon_tag("circle-ms-logo.png", **options)
when "DLSite"
image_icon_tag("dlsite-logo.png", **options)
when "Deviant Art" when "Deviant Art"
image_icon_tag("deviantart-logo.png", **options) image_icon_tag("deviantart-logo.png", **options)
when "DLSite"
image_icon_tag("dlsite-logo.png", **options)
when "Doujinshi.org"
image_icon_tag("doujinshi-org-logo.png", **options)
when "Erogamescape"
image_icon_tag("erogamescape-logo.png", **options)
when "Facebook" when "Facebook"
image_icon_tag("facebook-logo.png", **options) image_icon_tag("facebook-logo.png", **options)
when "Fantia" when "Fantia"
@@ -196,12 +204,24 @@ module IconHelper
image_icon_tag("fc2-logo.png", **options) image_icon_tag("fc2-logo.png", **options)
when "Gumroad" when "Gumroad"
image_icon_tag("gumroad-logo.png", **options) image_icon_tag("gumroad-logo.png", **options)
when "Hentai Foundry"
image_icon_tag("hentai-foundry-logo.png", **options)
when "Instagram" when "Instagram"
image_icon_tag("instagram-logo.png", **options) image_icon_tag("instagram-logo.png", **options)
when "Ko-fi"
image_icon_tag("ko-fi-logo.png", **options)
when "Livedoor"
image_icon_tag("livedoor-logo.png", **options)
when "Lofter" when "Lofter"
image_icon_tag("lofter-logo.png", **options) image_icon_tag("lofter-logo.png", **options)
when "Mangaupdates"
image_icon_tag("mangaupdates-logo.png", **options)
when "Melonbooks" when "Melonbooks"
image_icon_tag("melonbooks-logo.png", **options) image_icon_tag("melonbooks-logo.png", **options)
when "Mihuashi"
image_icon_tag("mihuashi-logo.png", **options)
when "Mixi.jp"
image_icon_tag("mixi-jp-logo.png", **options)
when "Nico Seiga" when "Nico Seiga"
image_icon_tag("nicoseiga-logo.png", **options) image_icon_tag("nicoseiga-logo.png", **options)
when "Nijie" when "Nijie"
@@ -210,6 +230,10 @@ module IconHelper
image_icon_tag("patreon-logo.png", **options) image_icon_tag("patreon-logo.png", **options)
when "pawoo.net" when "pawoo.net"
image_icon_tag("pawoo-logo.png", **options) image_icon_tag("pawoo-logo.png", **options)
when "Piapro.jp"
image_icon_tag("piapro-jp-logo.png", **options)
when "Picarto"
image_icon_tag("picarto-logo.png", **options)
when "Pixiv" when "Pixiv"
image_icon_tag("pixiv-logo.png", **options) image_icon_tag("pixiv-logo.png", **options)
when "Pixiv Fanbox" when "Pixiv Fanbox"
@@ -218,6 +242,10 @@ module IconHelper
image_icon_tag("pixiv-sketch-logo.png", **options) image_icon_tag("pixiv-sketch-logo.png", **options)
when "Privatter" when "Privatter"
image_icon_tag("privatter-logo.png", **options) image_icon_tag("privatter-logo.png", **options)
when "Sakura.ne.jp"
image_icon_tag("sakura-ne-jp-logo.png", **options)
when "Stickam"
image_icon_tag("stickam-logo.png", **options)
when "Skeb" when "Skeb"
image_icon_tag("skeb-logo.png", **options) image_icon_tag("skeb-logo.png", **options)
when "Tinami" when "Tinami"
@@ -228,8 +256,12 @@ module IconHelper
image_icon_tag("twitter-logo.png", **options) image_icon_tag("twitter-logo.png", **options)
when "Toranoana" when "Toranoana"
image_icon_tag("toranoana-logo.png", **options) image_icon_tag("toranoana-logo.png", **options)
when "Twitch"
image_icon_tag("twitch-logo.png", **options)
when "Weibo" when "Weibo"
image_icon_tag("weibo-logo.png", **options) image_icon_tag("weibo-logo.png", **options)
when "Wikipedia"
image_icon_tag("wikipedia-logo.png", **options)
when "Youtube" when "Youtube"
image_icon_tag("youtube-logo.png", **options) image_icon_tag("youtube-logo.png", **options)
else else

View File

@@ -64,6 +64,10 @@ module Sources
# XXX should go in dedicated strategies. # XXX should go in dedicated strategies.
case host case host
when /amazon\.(com|jp|co\.jp)\z/i
"Amazon"
when /ask\.fm\z/i
"Ask.fm"
when /bcy\.net\z/i when /bcy\.net\z/i
"BCY" "BCY"
when /booth\.pm\z/i when /booth\.pm\z/i
@@ -72,6 +76,10 @@ module Sources
"Circle.ms" "Circle.ms"
when /dlsite\.(com|net)\z/i when /dlsite\.(com|net)\z/i
"DLSite" "DLSite"
when /doujinshi\.mugimugi\.org\z/i, /doujinshi\.org\z/i
"Doujinshi.org"
when /erogamescape\.dyndns\.org\z/i
"Erogamescape"
when /facebook\.com\z/i when /facebook\.com\z/i
"Facebook" "Facebook"
when /fantia\.jp\z/i when /fantia\.jp\z/i
@@ -82,20 +90,42 @@ module Sources
"Gumroad" "Gumroad"
when /instagram\.com\z/i when /instagram\.com\z/i
"Instagram" "Instagram"
when /ko-fi\.com\z/i
"Ko-fi"
when /livedoor\.(jp|com)\z/i
"Livedoor"
when /lofter\.com\z/i when /lofter\.com\z/i
"Lofter" "Lofter"
when /mangaupdates\.com\z/i
"Mangaupdates"
when /melonbooks\.co\.jp\z/i when /melonbooks\.co\.jp\z/i
"Melonbooks" "Melonbooks"
when /mihuashi\.com\z/i
"Mihuashi"
when /mixi\.jp\z/i
"Mixi.jp"
when /patreon\.com\z/i when /patreon\.com\z/i
"Patreon" "Patreon"
when /piapro\.jp\z/i
"Piapro.jp"
when /picarto\.tv\z/i
"Picarto"
when /privatter\.net\z/i when /privatter\.net\z/i
"Privatter" "Privatter"
when /sakura\.ne\.jp\z/i
"Sakura.ne.jp"
when /stickam\.jp\z/i
"Stickam"
when /skeb\.jp\z/i when /skeb\.jp\z/i
"Skeb" "Skeb"
when /tinami\.com\z/i when /tinami\.com\z/i
"Tinami" "Tinami"
when /toranoana\.(jp|shop)\z/i when /toranoana\.(jp|shop)\z/i
"Toranoana" "Toranoana"
when /twitch\.tv\z/i
"Twitch"
when /wikipedia\.org\z/i
"Wikipedia"
when /youtube\.com\z/i when /youtube\.com\z/i
"Youtube" "Youtube"
else else

View File

@@ -97,6 +97,8 @@ class ArtistUrl < ApplicationRecord
true true
when %r!www\.artstation\.com!i when %r!www\.artstation\.com!i
true true
when %r!blogimg\.jp!i, %r!image\.blog\.livedoor\.jp!i
true
else else
false false
end end
@@ -106,9 +108,9 @@ class ArtistUrl < ApplicationRecord
def priority def priority
sites = %w[ sites = %w[
Pixiv Twitter Pixiv Twitter
ArtStation Deviant\ Art Nico\ Seiga Nijie pawoo.net Pixiv\ Fanbox Pixiv\ Sketch Tinami Tumblr ArtStation BCY Deviant\ Art Hentai\ Foundry Nico\ Seiga Nijie pawoo.net Pixiv\ Fanbox Pixiv\ Sketch Tinami Tumblr
Booth.pm Facebook Fantia FC2 Gumroad Instagram Lofter Patreon Privatter Skeb Weibo Youtube Ask.fm Booth.pm Facebook Fantia FC2 Gumroad Instagram Ko-fi Livedoor Lofter Mihuashi Mixi.jp Patreon Piapro.jp Picarto Privatter Sakura.ne.jp Stickam Skeb Twitch Weibo Youtube
Circle.ms DLSite Melonbooks Toranoana Amazon Circle.ms DLSite Doujinshi.org Erogamescape Mangaupdates Melonbooks Toranoana Wikipedia
] ]
sites.index(site_name) || 1000 sites.index(site_name) || 1000

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 976 B