This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBadges.jsx
214 lines (193 loc) · 4.94 KB
/
Badges.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
const { Clickable, Tooltip } = require('powercord/components');
const Icons = require("./Icons/") ;
const { React, getModule } = require('powercord/webpack');
const Base = React.memo(({ color, tooltip, tooltipPosition, onClick, className, children, gap }) => {
const { profileBadge22 } = getModule([ 'profileBadge22' ], false);
return (
<Clickable onClick={onClick || (() => void 0)} className='gb-badge-wrapper'>
<Tooltip text={tooltip} position={tooltipPosition || 'top' } spacing={gap === false ? 0 : 24}>
<div className={`${profileBadge22} gb-badge ${className}`} style={{ color: `#${color || '7289da'}` }}>
{children}
</div>
</Tooltip>
</Clickable>
);
});
const BDB = React.memo(({ name, img, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-bdb'
tooltip={name}
gap={gap}
>
<img src={img} alt='BDB Badge'/>
</Base>
));
/* Aliucord Badges */
const aliucordContr = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-aliucordContributor'
tooltip='Aliucord Contributor'
gap={gap}
>
<Icons.aliucordContributor/>
</Base>
));
const aliucordDono = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-aliucordDonor'
tooltip='Aliucord Donor'
gap={gap}
>
<img src='https://cdn.discordapp.com/emojis/859801776232202280.webp' alt='Aliucord Donor'/>
</Base>
));
const aliucordDev = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-aliucordDev'
tooltip='Aliucord Dev'
gap={gap}
>
<Icons.DiscordStaff/>
</Base>
));
const aliucordCustom = React.memo(({ text, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-aliucordCustom'
tooltip={text}
gap={gap}
>
<img src={url} alt={text}/>
</Base>
));
/* Better Discord Badges */
const BDDevs = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-BDDevs'
tooltip='BetterDiscord Developer'
gap={gap}
>
<Icons.bdlogo/>
</Base>
));
/* Enmity Badges */
const EnDevs = React.memo(({ name, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-EnDevs'
tooltip={name}
gap={gap}
>
<img src={url.dark} alt={name}/>
</Base>
));
const EnCon = React.memo(({ name, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-EnContributor'
tooltip={name}
gap={gap}
>
<img src={url.dark} alt={name}/>
</Base>
));
const EnStaff = React.memo(({ name, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-EnStaff'
tooltip={name}
gap={gap}
>
<img src={url.dark} alt={name}/>
</Base>
));
const EnSupporter = React.memo(({ name, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-EnSupporter'
tooltip={name}
gap={gap}
>
<img src={url.dark} alt={name}/>
</Base>
));
const EnCustom = React.memo(({ name, url, tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-EnCustom'
tooltip={name}
gap={gap}
>
<img src={url.dark} alt={name}/>
</Base>
));
/* GooseMod */
const GMSponsor = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-GMSponsor'
tooltip='GooseMod Sponsor'
gap={gap}
>
<img src='https://goosemod.com/img/goose_gold.jpg' alt='GooseMod Sponsor'/>
</Base>
));
const GMTranslator = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-GMTranslaor'
tooltip='GooseMod Translator'
gap={gap}
>
<img src='https://goosemod.com/img/goose_globe.png' alt='GooseMod Translator'/>
</Base>
));
const GMDeveloper = React.memo(({ tooltipPosition, gap }) => (
<Base
tooltipPosition={tooltipPosition}
onClick={(() => void 0)}
className='gb-badge-GMDeveloper'
tooltip='GooseMod Developer'
gap={gap}
>
<img src='https://goosemod.com/img/goose_glitch.jpg' alt='GooseMod Developer'/>
</Base>
));
module.exports = {
BDB,
// Better Discord
BDDevs,
// Aliucord
aliucordDev,
aliucordContr,
aliucordDono,
aliucordCustom,
// Enmity
EnDevs,
EnCon,
EnStaff,
EnSupporter,
EnCustom,
// GooseMod
GMSponsor,
GMTranslator,
GMDeveloper
};