Skip to content

Commit

Permalink
Fix sponsors (#316)
Browse files Browse the repository at this point in the history
* Error when running the script if no API key is set

* Set all sponsors to sponsor rel

* regenerate sponsor links

Looks like this has been lagging for about 4 years
2c86f8e#diff-6eee5a13fca385aeb268cbc56395c842d5e98400c38e0c6c85ee6a2ed64ebb7b
  • Loading branch information
samccone authored May 29, 2024
1 parent 8c94c56 commit 589ca5b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 59 deletions.
110 changes: 55 additions & 55 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ <h4 class="small-hidden" style="margin: -20px 0 0 223px">{{ page.subtitle | mark
<li class="nav-about"><a href="/docs/about/">About</a></li>
</ul>
<h5>Sponsors (<a href="https://opencollective.com/bower">become one</a>):</h5>
<a href="https://www.credimaxx.de/"><img class="sidebar-logo" src="https://i.imgur.com/sf5e7KT.png" alt="credimaxx.de" /></a>
<a href="https://420couponcodes.com/"><img class="sidebar-logo" src="https://i.imgur.com/IbhCD2k.png" alt="420couponcodes.com" /></a>
<a href="https://www.top5credits.com/"><img class="sidebar-logo" src="https://i.imgur.com/K2EU3HD.png" alt="top5credits.com" /></a>
<a href="https://www.ramotion.com/agency/web-design/"><img class="sidebar-logo" src="https://i.imgur.com/mQxmvRm.png" alt="Ramotion" /></a>
<a href="https://www.softwaredevelopment.co.uk/"><img class="sidebar-logo" src="https://i.imgur.com/HoU15ep.png" alt="SoftwareDevelopmentUK" /></a>
<a href="https://theymakedesign.com/best-web-design-companies-3ecc85b32071"><img class="sidebar-logo" src="https://i.imgur.com/kfA0vQE.png" alt="theymakedesign.com" /></a>
<a href="https://www.instinctools.com/cloud-computing/"><img class="sidebar-logo" src="https://i.imgur.com/c56Di42.png" alt="*instinctools" /></a>
<a href="https://www.loadview-testing.com/"><img class="sidebar-logo" src="https://i.imgur.com/iHdPKSV.png" alt="LoadView-Testing" /></a>
<a href="https://www.cryptonewsz.com/"><img class="sidebar-logo" src="https://i.imgur.com/sYNDuyj.png" alt="CryptoNewsZ" /></a>
<a href="https://legalbet.uk/"><img class="sidebar-logo" src="https://i.imgur.com/2qQ6Gxf.png" alt="Legalbet" /></a>
<a href="https://sprocketdigital.co.nz/"><img class="sidebar-logo" src="https://i.imgur.com/koJsb0d.png" alt="Matthew Chalk" /></a>
<a href="https://vpn-review.com/"><img class="sidebar-logo" src="https://i.imgur.com/INf1G7H.png" alt="VPN reviews 2019" /></a>
<a href="https://faveable.com/" rel="nofollow"><img class="sidebar-logo" src="https://i.imgur.com/PMqdGyT.png" alt="Faveable" /></a>
<a href="https://iboysoft.com"><img class="sidebar-logo" src="https://i.imgur.com/eOWcxUr.png" alt="iBoysoft" /></a>
<a href="https://webpundits.in"><img class="sidebar-logo" src="https://i.imgur.com/IVgnquz.png" alt="Buy RDP online from Web Pundits" /></a>
<a rel="sponsored" href="https://www.credimaxx.de/"><img class="sidebar-logo" src="https://i.imgur.com/sf5e7KT.png" alt="credimaxx.de" /></a>
<a rel="sponsored" href="https://420couponcodes.com/"><img class="sidebar-logo" src="https://i.imgur.com/IbhCD2k.png" alt="420couponcodes.com" /></a>
<a rel="sponsored" href="https://www.top5credits.com/"><img class="sidebar-logo" src="https://i.imgur.com/K2EU3HD.png" alt="top5credits.com" /></a>
<a rel="sponsored" href="https://www.ramotion.com/agency/web-design/"><img class="sidebar-logo" src="https://i.imgur.com/mQxmvRm.png" alt="Ramotion" /></a>
<a rel="sponsored" href="https://www.softwaredevelopment.co.uk/"><img class="sidebar-logo" src="https://i.imgur.com/HoU15ep.png" alt="SoftwareDevelopmentUK" /></a>
<a rel="sponsored" href="https://theymakedesign.com/best-web-design-companies-3ecc85b32071"><img class="sidebar-logo" src="https://i.imgur.com/kfA0vQE.png" alt="theymakedesign.com" /></a>
<a rel="sponsored" href="https://www.instinctools.com/cloud-computing/"><img class="sidebar-logo" src="https://i.imgur.com/c56Di42.png" alt="*instinctools" /></a>
<a rel="sponsored" href="https://www.loadview-testing.com/"><img class="sidebar-logo" src="https://i.imgur.com/iHdPKSV.png" alt="LoadView-Testing" /></a>
<a rel="sponsored" href="https://www.cryptonewsz.com/"><img class="sidebar-logo" src="https://i.imgur.com/sYNDuyj.png" alt="CryptoNewsZ" /></a>
<a rel="sponsored" href="https://legalbet.uk/"><img class="sidebar-logo" src="https://i.imgur.com/2qQ6Gxf.png" alt="Legalbet" /></a>
<a rel="sponsored" href="https://sprocketdigital.co.nz/"><img class="sidebar-logo" src="https://i.imgur.com/koJsb0d.png" alt="Matthew Chalk" /></a>
<a rel="sponsored" href="https://vpn-review.com/"><img class="sidebar-logo" src="https://i.imgur.com/INf1G7H.png" alt="VPN reviews 2019" /></a>
<a rel="sponsored" href="https://faveable.com/"><img class="sidebar-logo" src="https://i.imgur.com/PMqdGyT.png" alt="Faveable" /></a>
<a rel="sponsored" href="https://iboysoft.com"><img class="sidebar-logo" src="https://i.imgur.com/eOWcxUr.png" alt="iBoysoft" /></a>
<a rel="sponsored" href="https://webpundits.in"><img class="sidebar-logo" src="https://i.imgur.com/IVgnquz.png" alt="Buy RDP online from Web Pundits" /></a>

<ul class="extra-nav nav">
<li><a href="https://github.com/bower/bower">
Expand All @@ -113,46 +113,46 @@ <h5>Sponsors (<a href="https://opencollective.com/bower">become one</a>):</h5>
<p class="issue"><a href="https://github.com/bower/bower.github.io/issues">Help improve these docs. Open an issue or pull request.</a></p>
<p>
Our supporters:
<a href="https://www.partitionwizard.com">Partition Wizard</a> |
<a href="https://www.minitool.com">MiniTool</a> |
<a href="http://www.metrodetroitreview.com">metrodetroitreview.com</a> |
<a href="https://kafidoff.com/">Vasyl Kafidov</a> |
<a href="https://www.appdrawn.com/">AppDrawn</a> |
<a href="https://www.butikkene.no/">Butikkene.no</a> |
<a href="https://swiindex.com/">swiindex.com</a> |
<a href="https://www.plumbingnewsandmore.com/">Plumbing News and More</a> |
<a href="https://www.edwinsedibles.com">CBD Gummies</a> |
<a href="https://cyberogism.com/">Cyberogism</a> |
<a href="http://www.fiveguysplumbingdearborn.com">Five Guys Plumbing Dearborn</a> |
<a href="https://talousapu.fi/">Talousapu.fi</a> |
<a href="https://www.glassesonweb.com/">GlassesOnWeb.com</a> |
<a href="https://www.arkiraha.fi/">Arkiraha</a> |
<a href="https://securitygladiators.com/">Security Gladiators</a> |
<a href="https://quickbookstoolhub.com/">Quickbooks Tool Hub</a> |
<a href="https://www.ibeesoft.com/">iBeesoft</a> |
<a href="https://veepn.com/vpn-apps/vpn-for-chrome/">VeePN VPN</a> |
<a href="https://legalbet.uk/">Legalbet</a> |
<a href="https://www.mister-auto.com/">Mister Auto</a> |
<a href="https://www.richmondconcretepros.com/">Richmond Concrete</a> |
<a href="https://tankpenge.dk">Per Andersen</a> |
<a href="https://www.refermate.com">Refermate</a> |
<a href="https://www.bathroomremodelingwesterville.com">Bathroom Remodeling Westerville</a> |
<a href="https://technologypep.com/">TechnologyPep</a> |
<a href="https://www.tankcoffee.com">Tank Coffee</a> |
<a href="https://www.easeus.de/">EaseUS Germany</a> |
<a href="https://rantent.com/">Rantent</a> |
<a href="https://rekteddies.com/">Rekt Eddie's</a> |
<a href="https://www.firesticktricks.com">Fire Stick Tricks</a> |
<a href="https://www.upgrow.com/">UpGrow</a> |
<a href="https://slex.io/">SLEX</a> |
<a href="https://truealtitude.shop/">True Altitude</a> |
<a href="https://www.globalsoftwarecompanies.com/">Global Software Companies</a> |
<a href="https://www.troupon.com">Troupon</a> |
<a href="https://minneapolistowingmn.com/">Minneapolis Towing</a> |
<a href="https://bestcryptofuturestradingplatform.com/">Crypto Futures Trading Platforms</a> |
<a href="https://earthweb.com/">EarthWeb</a> |
<a href="https://bountii.coupons/">Bountii</a> |
<a href="https://www.socialfollowers.uk/">Social followers</a>
<a rel="sponsored" href="https://www.partitionwizard.com">Partition Wizard</a> |
<a rel="sponsored" href="https://www.minitool.com">MiniTool</a> |
<a rel="sponsored" href="http://www.metrodetroitreview.com">metrodetroitreview.com</a> |
<a rel="sponsored" href="https://kafidoff.com/">Vasyl Kafidov</a> |
<a rel="sponsored" href="https://www.appdrawn.com/">AppDrawn</a> |
<a rel="sponsored" href="https://www.butikkene.no/">Butikkene.no</a> |
<a rel="sponsored" href="https://swiindex.com/">swiindex.com</a> |
<a rel="sponsored" href="https://www.plumbingnewsandmore.com/">Plumbing News and More</a> |
<a rel="sponsored" href="https://www.edwinsedibles.com">CBD Gummies</a> |
<a rel="sponsored" href="https://cyberogism.com/">Cyberogism</a> |
<a rel="sponsored" href="http://www.fiveguysplumbingdearborn.com">Five Guys Plumbing Dearborn</a> |
<a rel="sponsored" href="https://talousapu.fi/">Talousapu.fi</a> |
<a rel="sponsored" href="https://www.glassesonweb.com/">GlassesOnWeb.com</a> |
<a rel="sponsored" href="https://www.arkiraha.fi/">Arkiraha</a> |
<a rel="sponsored" href="https://securitygladiators.com/">Security Gladiators</a> |
<a rel="sponsored" href="https://quickbookstoolhub.com/">Quickbooks Tool Hub</a> |
<a rel="sponsored" href="https://www.ibeesoft.com/">iBeesoft</a> |
<a rel="sponsored" href="https://veepn.com/vpn-apps/vpn-for-chrome/">VeePN VPN</a> |
<a rel="sponsored" href="https://legalbet.uk/">Legalbet</a> |
<a rel="sponsored" href="https://www.mister-auto.com/">Mister Auto</a> |
<a rel="sponsored" href="https://www.richmondconcretepros.com/">Richmond Concrete</a> |
<a rel="sponsored" href="https://tankpenge.dk">Per Andersen</a> |
<a rel="sponsored" href="https://www.refermate.com">Refermate</a> |
<a rel="sponsored" href="https://www.bathroomremodelingwesterville.com">Bathroom Remodeling Westerville</a> |
<a rel="sponsored" href="https://technologypep.com/">TechnologyPep</a> |
<a rel="sponsored" href="https://www.tankcoffee.com">Tank Coffee</a> |
<a rel="sponsored" href="https://www.easeus.de/">EaseUS Germany</a> |
<a rel="sponsored" href="https://rantent.com/">Rantent</a> |
<a rel="sponsored" href="https://rekteddies.com/">Rekt Eddie's</a> |
<a rel="sponsored" href="https://www.firesticktricks.com">Fire Stick Tricks</a> |
<a rel="sponsored" href="https://www.upgrow.com/">UpGrow</a> |
<a rel="sponsored" href="https://slex.io/">SLEX</a> |
<a rel="sponsored" href="https://truealtitude.shop/">True Altitude</a> |
<a rel="sponsored" href="https://www.globalsoftwarecompanies.com/">Global Software Companies</a> |
<a rel="sponsored" href="https://www.troupon.com">Troupon</a> |
<a rel="sponsored" href="https://minneapolistowingmn.com/">Minneapolis Towing</a> |
<a rel="sponsored" href="https://bestcryptofuturestradingplatform.com/">Crypto Futures Trading Platforms</a> |
<a rel="sponsored" href="https://earthweb.com/">EarthWeb</a> |
<a rel="sponsored" href="https://bountii.coupons/">Bountii</a> |
<a rel="sponsored" href="https://www.socialfollowers.uk/">Social followers</a>
</p>
</footer>

Expand Down
11 changes: 7 additions & 4 deletions sponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const { groupBy } = require('lodash')
let SPONSORS = ''
let SUPPORTERS = ''

if (process.env.API_KEY == null) {
throw new Error('API_KEY for opencollective must be set');
}

async function query(query) {
const url = 'https://api.opencollective.com/graphql/v2/' + process.env.API_KEY
const response = await fetch(url, {
Expand Down Expand Up @@ -78,7 +82,6 @@ async function unknown(type, name) {

const forcedsponsors = {}

const nofollow = ['faveable']
const forcedsupporters = ['royal-tech-ab', 'rekt-eddies-gummies']
const ignoredsupporters = ['rocketpayz', 'webton-bv', 'casinotop-com', 'upendra-rathore', 'world-of-the-casinos', 'baocasino', 'hollandsegokken-nl', 'nettcasinobonus-com1', 'bellwether-capital', 'esquire-client-solutions', 'college-paper-world', 'yevgen-yanovskyy', 'twojtyp', 'goread_io', 'nettmoro-com', 'megetnyttig-com', 'casinogaroocom', 'followerspromotion-com', 'instapromote1', 'leo-boost1', 'zenscrape', 'jean-mir', 'siwagorn', 'your-online-presence', 'guest-901a02a2', 'king10', 'riversweeps', 'igrovye-avtomaty', 'stayatcasinos', 'negativeseoexpert', 'king-billy-slots', 'vpsservercom', 'onlinecasinoua', 'probukmacher', 'kingbilly', 'cryptocasinos360-com', '888starz', 'tiktok18', 'aviator-gamer']
const exceptions = ['digital-bank-guide', 'alex-owner']
Expand Down Expand Up @@ -895,13 +898,13 @@ async function main() {
}
return [sponsor]
})).forEach(sponsor => {
SPONSORS += `<a href="${sponsor.href}"${nofollow.indexOf(sponsor.name) >= 0 ? ' rel="nofollow"' : ""}><img class="sidebar-logo" src="${sponsor.src}" alt="${sponsor.alt}" /></a>\n`
SPONSORS += `<a rel="sponsored" href="${sponsor.href}"><img class="sidebar-logo" src="${sponsor.src}" alt="${sponsor.alt}" /></a>\n`
console.log(sponsor.href)
if (sponsor.second) {
for (const s of sponsor.second) {
if (s.href) {
console.log(s.href)
SPONSORS += `<a href="${s.href}"><img class="sidebar-logo" src="${s.src}" alt="${s.alt}" /></a>\n`
SPONSORS += `<a rel="sponsored" href="${s.href}"><img class="sidebar-logo" src="${s.src}" alt="${s.alt}" /></a>\n`
}
}
}
Expand All @@ -919,7 +922,7 @@ async function main() {
return sups
})).forEach(sup => {
if (sup.href) {
SUPPORTERS += `<a href="${sup.href}"${nofollow.indexOf(sup.name) >= 0 ? ' rel="nofollow"' : ""}>${sup.text}</a> |\n`
SUPPORTERS += `<a rel="sponsored" href="${sup.href}">${sup.text}</a> |\n`
console.log(sup.href)
}
if (sup.second) {
Expand Down

0 comments on commit 589ca5b

Please sign in to comment.