Skip to content

Commit 435eb91

Browse files
authored
feat: add new partner categories and update partner weights
1 parent 2f0e2be commit 435eb91

File tree

4 files changed

+131
-71
lines changed

4 files changed

+131
-71
lines changed

apps/site/pages/en/about/partners.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ Projects with their logo, name, tier, the description and a CTA button
2525

2626
<PartnersLogoList categories="esp" maxLength={null} />
2727

28+
## Releases
29+
30+
Projects with their logo, name, tier, the description and a CTA button
31+
32+
<PartnersLogoList categories="release" maxLength={null} />
33+
34+
## Services
35+
36+
Projects with their logo, name, tier, the description and a CTA button
37+
38+
<PartnersLogoList categories="service" maxLength={null} />
39+
2840
## Backers (Open Collective and GitHub Sponsors)
2941

3042
Show a list of lists direct individual or organizational support that can be done through OpenCollective and GitHub Sponsors

apps/site/types/partners.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ export interface Partners {
1414
categories: Array<PartnerCategory>;
1515
// An optional description of the partner
1616
description?: string;
17-
threshold: number;
17+
// The weight of the partner, used for random selection
18+
weight: number;
1819
}
1920

20-
export type PartnerCategory = 'infrastructure' | 'security' | 'esp';
21+
export type PartnerCategory =
22+
| 'infrastructure'
23+
| 'security'
24+
| 'esp'
25+
| 'release'
26+
| 'service';

apps/site/util/partners/constants.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,56 @@
33
"id": "RACKSPACE",
44
"name": "Rackspace",
55
"href": "https://www.rackspace.com",
6-
"threshold": 2,
6+
"weight": 3,
77
"categories": ["infrastructure"]
88
},
99
{
1010
"id": "CLOUDFLARE",
1111
"name": "Cloudflare",
1212
"href": "https://www.cloudflare.com",
13-
"threshold": 3,
13+
"weight": 3,
1414
"categories": ["infrastructure"]
1515
},
1616
{
1717
"id": "VERCEL",
1818
"name": "Vercel",
1919
"href": "https://vercel.com",
20-
"threshold": 1,
20+
"weight": 2,
2121
"categories": ["infrastructure"]
2222
},
2323
{
2424
"id": "SENTRY",
2525
"name": "Sentry",
2626
"href": "https://sentry.io",
27-
"threshold": 3,
28-
"categories": ["infrastructure"]
27+
"weight": 1,
28+
"categories": ["service"]
2929
},
3030
{
3131
"id": "CROWDIN",
3232
"name": "Crowdin",
3333
"href": "https://crowdin.com",
34-
"threshold": 2,
35-
"categories": ["infrastructure"]
34+
"weight": 1,
35+
"categories": ["service"]
3636
},
3737
{
3838
"id": "HERODEVS",
3939
"name": "HeroDevs",
4040
"href": "https://herodevs.com",
41-
"threshold": 1,
42-
"categories": ["security", "esp"]
41+
"weight": 2,
42+
"categories": ["security", "esp", "release"]
4343
},
4444
{
4545
"id": "NODESOURCE",
4646
"name": "NodeSource",
4747
"href": "https://nodesource.com",
48-
"threshold": 2,
49-
"categories": ["security"]
48+
"weight": 2,
49+
"categories": ["security", "release"]
5050
},
5151
{
5252
"id": "DATADOG",
5353
"name": "Datadog",
5454
"href": "https://www.datadoghq.com",
55-
"threshold": 3,
55+
"weight": 2,
5656
"categories": ["security"]
5757
}
5858
]

apps/site/util/partners/original.json

Lines changed: 99 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,171 @@
11
[
2-
{
3-
"id": "DIGITALOCEAN",
4-
"name": "DigitalOcean",
5-
"href": "https://www.digitalocean.com",
6-
"categories": ["infrastructure"]
7-
},
82
{
93
"id": "RACKSPACE",
104
"name": "Rackspace",
115
"href": "https://www.rackspace.com",
6+
"weight": 3,
7+
"categories": ["infrastructure"]
8+
},
9+
{
10+
"id": "CLOUDFLARE",
11+
"name": "Cloudflare",
12+
"href": "https://www.cloudflare.com",
13+
"weight": 3,
14+
"categories": ["infrastructure"]
15+
},
16+
{
17+
"id": "VERCEL",
18+
"name": "Vercel",
19+
"href": "https://vercel.com",
20+
"weight": 2,
1221
"categories": ["infrastructure"]
1322
},
23+
{
24+
"id": "SENTRY",
25+
"name": "Sentry",
26+
"href": "https://sentry.io",
27+
"weight": 1,
28+
"categories": ["infrastructure"]
29+
},
30+
{
31+
"id": "CROWDIN",
32+
"name": "Crowdin",
33+
"href": "https://crowdin.com",
34+
"weight": 1,
35+
"categories": ["service"]
36+
},
37+
{
38+
"id": "HERODEVS",
39+
"name": "HeroDevs",
40+
"href": "https://herodevs.com",
41+
"weight": 3,
42+
"categories": ["security", "esp", "release"]
43+
},
44+
{
45+
"id": "NODESOURCE",
46+
"name": "NodeSource",
47+
"href": "https://nodesource.com",
48+
"weight": 2,
49+
"categories": ["security", "release"]
50+
},
51+
{
52+
"id": "DATADOG",
53+
"name": "Datadog",
54+
"href": "https://www.datadoghq.com",
55+
"weight": 2,
56+
"categories": ["security"]
57+
},
58+
{
59+
"id": "DIGITALOCEAN",
60+
"name": "DigitalOcean",
61+
"href": "https://www.digitalocean.com",
62+
"categories": ["infrastructure"],
63+
"weight": 3
64+
},
1465
{
1566
"id": "MICROSOFT",
1667
"name": "Microsoft",
1768
"href": "https://microsoft.com",
18-
"categories": ["infrastructure"]
69+
"categories": ["infrastructure"],
70+
"weight": 2
1971
},
2072
{
2173
"id": "MNX",
2274
"name": "MNX",
2375
"href": "ToDo",
2476
"logo": "ToDo",
25-
"categories": ["infrastructure"]
77+
"categories": ["infrastructure"],
78+
"weight": 2
2679
},
2780
{
2881
"id": "IBM",
2982
"name": "IBM",
3083
"href": "https://www.ibm.com",
31-
"categories": ["infrastructure"]
84+
"categories": ["infrastructure", "release"],
85+
"weight": 3
3286
},
3387
{
3488
"id": "SCALEWAY",
3589
"name": "Scaleway",
3690
"href": "https://www.scaleway.com",
37-
"categories": ["infrastructure"]
38-
},
39-
{
40-
"id": "CLOUDFLARE",
41-
"name": "Cloudflare",
42-
"href": "https://www.cloudflare.com",
43-
"categories": ["infrastructure"]
91+
"categories": ["infrastructure"],
92+
"weight": 2
4493
},
4594
{
4695
"id": "ARM",
4796
"name": "ARM",
4897
"href": "https://www.arm.com",
49-
"categories": ["infrastructure"]
98+
"categories": ["infrastructure"],
99+
"weight": 2
50100
},
51101
{
52102
"id": "INTEL",
53103
"name": "Intel",
54104
"href": "https://www.intel.com",
55-
"categories": ["infrastructure"]
105+
"categories": ["infrastructure"],
106+
"weight": 2
56107
},
57108
{
58109
"id": "MACSTADIUM",
59110
"name": "MacStadium",
60111
"href": "https://www.macstadium.com",
61-
"categories": ["infrastructure"]
112+
"categories": ["infrastructure"],
113+
"weight": 2
62114
},
63115
{
64116
"id": "EQUINIXMETAL",
65117
"name": "Equinix Metal",
66118
"href": "https://www.equinix.com",
67-
"categories": ["infrastructure"]
119+
"categories": ["infrastructure"],
120+
"weight": 2
68121
},
69122
{
70123
"id": "CHROMATIC",
71124
"name": "Chromatic",
72125
"href": "https://www.chromatic.com",
73-
"categories": ["infrastructure"]
74-
},
75-
{
76-
"id": "VERCEL",
77-
"name": "Vercel",
78-
"href": "https://vercel.com",
79-
"categories": ["infrastructure"]
80-
},
81-
{
82-
"id": "SENTRY",
83-
"name": "Sentry",
84-
"href": "https://sentry.io",
85-
"categories": ["infrastructure"]
86-
},
87-
{
88-
"id": "CROWDIN",
89-
"name": "Crowdin",
90-
"href": "https://crowdin.com",
91-
"categories": ["infrastructure"]
126+
"categories": ["service"],
127+
"weight": 1
92128
},
93129
{
94130
"id": "ORAMA",
95131
"name": "Orama",
96132
"href": "https://orama.com",
97-
"categories": ["infrastructure"]
98-
},
99-
{
100-
"id": "HERODEVS",
101-
"name": "HeroDevs",
102-
"href": "https://herodevs.com",
103-
"categories": ["security", "esp partner"]
104-
},
105-
{
106-
"id": "NODESOURCE",
107-
"name": "NodeSource",
108-
"href": "https://nodesource.com",
109-
"categories": ["security"]
133+
"categories": ["service"],
134+
"weight": 1
110135
},
111136
{
112137
"id": "PLATFORMATIC",
113138
"name": "Platformatic",
114139
"href": "https://platformatic.dev",
115-
"categories": ["security"]
140+
"categories": ["security"],
141+
"weight": 2
116142
},
117143
{
118144
"id": "REDHAT",
119145
"name": "Red Hat",
120146
"href": "https://www.redhat.com",
121-
"categories": ["security"]
147+
"categories": ["security"],
148+
"weight": 2
122149
},
123150
{
124-
"id": "DATADOG",
125-
"name": "Datadog",
126-
"href": "https://www.datadoghq.com",
151+
"id": "OPENSSF",
152+
"name": "Open SSF",
153+
"href": "https://openssf.org/",
154+
"weight": 2,
127155
"categories": ["security"]
156+
},
157+
{
158+
"id": "VLT",
159+
"name": "Vlt",
160+
"href": "https://www.vlt.sh",
161+
"weight": 2,
162+
"categories": ["release"]
163+
},
164+
{
165+
"id": "ZAKODIUM",
166+
"name": "zakodium",
167+
"href": "https://www.zakodium.com",
168+
"weight": 2,
169+
"categories": ["release"]
128170
}
129171
]

0 commit comments

Comments
 (0)