Skip to content

Commit 78067af

Browse files
Improve sponsor list generator (#200)
* feat: add sponsor list generator; * feat: added deploy action; * fix: fixed layout; * fix: use utm links inside tooltips; * fix(CI): set engine version; * chore: reverted the start button title change; * fix: add the ability to retry the request to get a list of sponsors; * chore: change sponsors config & fix sponsor card layout; * chore: hide 'incognito' sponsor from the list of sponsors; * chore: add Route4Me sponsor; * chore: fixed resolution of utm link for manually added sponsors; * chore: fixed sponsors' tiers resolving; * chore: draft; * chore(sponsors): disable utm links generation for `slotozilla-deutschland`; * chore(draft): Improve sponsors list generator; * chore(draft): fix origin preset; * chore(draft): delete generated icon; * chore(draft): add check to ensure dir exists; * chore(draft): add check to ensure dir exists; * chore(draft): activate GitHub data pulling; * chore(draft): fix crown chevron styling; * chore(draft): reduce logo min-width; * chore(draft): add missed `route4me` light logo; * chore(draft): add a title for readme sponsor block; * chore(draft): fix description resolving; * chore(draft): add utm links for sponsors rendered to markdown; * chore(draft): respect autoUTMLinks for utm links generation; * chore(draft): set user theme timeout to 24 hours; * chore(draft): set utm link for markdown output; * chore(draft): add sponsors' logos; * chore(draft): fix sponsor.json; * chore(draft): fix sponsor.json; * chore(draft): add principal logo; * chore(draft): add a hotfix for svg logos; * chore(draft): use image metadata instead of file extension to determine image format; * chore(draft): add Stytch & Descope links; * chore(draft): fix utm link generator to respect sponsor's params; * chore(draft): add page active link rendering; * chore(draft): notes block refactoring; * chore(draft): remove graphql packages;
1 parent b68c0fc commit 78067af

24 files changed

+2061
-249
lines changed

assets/icons/crown.svg

Lines changed: 14 additions & 0 deletions
Loading

assets/sponsors/descope.png

44.6 KB
Loading

assets/sponsors/descope_white.png

35.8 KB
Loading

assets/sponsors/principal.svg

Lines changed: 1 addition & 0 deletions
Loading
Binary file not shown.

assets/sponsors/route4me_white.png

18.7 KB
Loading

assets/sponsors/stytch.png

13.9 KB
Loading

assets/sponsors/stytch_white.png

11.3 KB
Loading

data/sponsors.json

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
"totalAmountDonatedThreshold": 200,
33
"monthlyContributionThreshold": 15,
44
"disappearCredit": 20,
5-
"scoreTierPriceFactor": 0.70,
5+
"scoreTierPriceFactor": 0.80,
66
"scoreTotalAmountFactor": 0.2,
77
"tiers": {
8+
"backer" : {
9+
"price": 20,
10+
"benefits": {
11+
"showAtSponsorList": true
12+
},
13+
"period": 2
14+
},
815
"bronze": {
916
"price": 49,
1017
"benefits": {
@@ -15,21 +22,34 @@
1522
"price": 99,
1623
"benefits": {
1724
"showAtSponsorList": true,
18-
"showAtPages": true
25+
"github": true,
26+
"showAtPages": false
1927
}
2028
},
2129
"gold" : {
2230
"price": 299,
2331
"benefits": {
2432
"showAtSponsorList": true,
25-
"showAtPages": true
33+
"github": true,
34+
"showAtPages": true,
35+
"links": 3,
36+
"video": true,
37+
"readme": true,
38+
"crown": true,
39+
"maxReadmeDescLength": 100
2640
}
2741
},
2842
"platinum" : {
2943
"price": 599,
3044
"benefits": {
3145
"showAtSponsorList": true,
32-
"showAtPages": true
46+
"github": true,
47+
"showAtPages": true,
48+
"links": 4,
49+
"video": true,
50+
"readme": true,
51+
"crown": true,
52+
"maxReadmeDescLength": 150
3353
}
3454
}
3555
},
@@ -51,10 +71,13 @@
5171
"hide": true
5272
},
5373
"route4me": {
74+
"tier": "gold",
5475
"image": "/assets/sponsors/route4me.png",
76+
"image_dark": "/assets/sponsors/route4me_white.png",
5577
"website": "https://route4me.com/",
5678
"displayName": "Route4Me",
5779
"alt": "Route Planner and Route Optimizer",
80+
"description": "Best Route Planning And Route Optimization Software",
5881
"isActive": true,
5982
"totalAmountDonated": 300,
6083
"createdAt": "2024-07-12 00:00",
@@ -67,6 +90,33 @@
6790
},
6891
"slotozilla-deutschland" : {
6992
"autoUTMLinks": false
93+
},
94+
"stytch": {
95+
"tier": "gold",
96+
"description": "API-first authentication, authorization, and fraud prevention",
97+
"image": "/assets/sponsors/stytch.png",
98+
"image_dark": "/assets/sponsors/stytch_white.png",
99+
"targetLink": "https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http",
100+
"links": {
101+
"Website": "https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http",
102+
"Documentation": "https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http",
103+
"Node.js": "https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"
104+
}
105+
},
106+
"descope": {
107+
"tier": "gold",
108+
"image": "/assets/sponsors/descope.png",
109+
"image_dark": "/assets/sponsors/descope_white.png",
110+
"targetLink": "https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship",
111+
"links": {
112+
"Website": "https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship",
113+
"Documentation": "https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship",
114+
"Community": "https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"
115+
}
116+
},
117+
"principal": {
118+
"tier": "gold",
119+
"image": "/assets/sponsors/principal.svg"
70120
}
71121
}
72122
}

en.lang.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ module.exports = {
1515
Axios provides a simple to use library in a small package with a very
1616
extensible interface.`,
1717
sponsors: `<p>Thank you for considering supporting our project.</p>
18-
<p>You will be automatically added to this list within 24 hours if the tier you select provides this benefit.</p>`
18+
<p>You will be automatically added to this list within 24 hours if the tier you select provides this benefit.</p>
19+
<div class="social"><a class="link" href="/docs/sponsor">Read more...</a></div>
20+
`
1921
},
2022
// `t` stands fot `translation`. This will contain translations of single words or phrases
2123
t: {
@@ -38,7 +40,8 @@ module.exports = {
3840
"Axios Project Copy Right Footer": undefined,
3941
"License Label Footer": undefined,
4042
"Sponsors": undefined,
41-
"Become a sponsor": undefined
43+
"Become a sponsor": undefined,
44+
"Gold Sponsors": undefined
4245
},
4346
sidebar: [
4447
{
@@ -127,6 +130,11 @@ module.exports = {
127130
type: "heading",
128131
text: "Contributors",
129132
},
133+
{
134+
type: "link",
135+
href: "/docs/sponsor",
136+
text: "Sponsoring Axios",
137+
},
130138
{
131139
type: "link",
132140
href: "https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md",

0 commit comments

Comments
 (0)