From f8175f60542aa8c86a1cc5cf741bb4ffa43326fb Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Wed, 22 Jan 2020 22:25:58 +0100 Subject: [PATCH] Added generic Gamma photo and actor scraper for XEmpire, 21Sextury, Blowpass and Evil Angel. --- assets/components/actors/actor.vue | 8 +- assets/components/networks/networks.vue | 42 ++++++-- assets/js/actors/actions.js | 1 + package-lock.json | 68 ++++++------ package.json | 4 +- public/css/style.css | 21 +++- seeds/03_tags.js | 9 +- src/actors.js | 2 +- src/media.js | 2 +- src/releases.js | 4 +- src/scrapers/21sextury.js | 51 ++------- src/scrapers/blowpass.js | 71 ++----------- src/scrapers/evilangel.js | 75 ++++++++++++- src/scrapers/gamma.js | 136 ++++++++++++++++++++++++ src/scrapers/scrapers.js | 11 +- src/scrapers/xempire.js | 126 +--------------------- src/sites.js | 6 +- 17 files changed, 347 insertions(+), 290 deletions(-) create mode 100644 src/scrapers/gamma.js diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index fce9cf16..c147fa86 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -26,7 +26,7 @@ @@ -392,6 +392,12 @@ export default { &.male .icon { fill: $male; } + + &.transsexual .icon { + fill: $text-contrast; + filter: drop-shadow(1px 0 0 $female) drop-shadow(-1px 0 0 $female) drop-shadow(0 1px 0 $female) drop-shadow(0 -1px 0 $female) + drop-shadow(1px 0 0 $male) drop-shadow(-1px 0 0 $male) drop-shadow(0 1px 0 $male) drop-shadow(0 -1px 0 $male); + } } .birthdate { diff --git a/assets/components/networks/networks.vue b/assets/components/networks/networks.vue index 29724589..2d2c72aa 100644 --- a/assets/components/networks/networks.vue +++ b/assets/components/networks/networks.vue @@ -1,10 +1,17 @@ @@ -15,6 +22,10 @@ async function mounted() { this.networks = await this.$store.dispatch('fetchNetworks'); } +function siteCount() { + return this.networks.map(network => network.sites).flat().length; +} + export default { components: { Network, @@ -24,6 +35,9 @@ export default { networks: [], }; }, + computed: { + siteCount, + }, mounted, }; @@ -31,7 +45,23 @@ export default {