@@ -7,50 +7,168 @@ export interface Bitwise {
77}
88
99export const USER_BADGES = {
10+ DEER_EARS_WHITE : {
11+ bit : 8388608 ,
12+ color : 'linear-gradient(273deg, #fb83a7, #ffffff)' ,
13+ textColor : '#2a1d1d' ,
14+ overlay : true ,
15+ icon : 'pets' ,
16+ } ,
17+ DEER_EARS_HORNS_DARK : {
18+ bit : 1048576 ,
19+ color : 'linear-gradient(267deg, #8f8f8f, #090a25)' ,
20+ textColor : '#ffffff' ,
21+ overlay : true ,
22+ icon : 'pets' ,
23+ } ,
24+ DEER_EARS_HORNS : {
25+ bit : 262144 ,
26+ color : 'linear-gradient(270deg, #aa4908, #ffd894)' ,
27+ textColor : '#321515' ,
28+ overlay : true ,
29+ icon : 'pets' ,
30+ } ,
31+ GOAT_HORNS : {
32+ bit : 524288 ,
33+ color : 'linear-gradient(268deg, #cb75d7, #390a8f)' ,
34+ overlay : true ,
35+ icon : 'pets' ,
36+ } ,
37+ GOAT_EARS_WHITE : {
38+ bit : 131072 ,
39+ color : 'linear-gradient(89deg, #ffecc2, #94e4ff)' ,
40+ textColor : '#503030' ,
41+ overlay : true ,
42+ icon : 'pets' ,
43+ } ,
44+ WOLF_EARS : {
45+ bit : 65536 ,
46+ color : 'linear-gradient(90deg, #585858ff 0%, #252525ff 100%)' ,
47+ textColor : '#ffffff' ,
48+ overlay : true ,
49+ icon : 'pets' ,
50+ } ,
51+ DOG_SHIBA : {
52+ bit : 32768 ,
53+ color : 'linear-gradient(261deg, #ffeeb3, #9e7aff)' ,
54+ textColor : '#2e1919' ,
55+ overlay : true ,
56+ icon : 'sound_detection_dog_barking' ,
57+ } ,
58+ DOG_EARS_BROWN : {
59+ bit : 16384 ,
60+ color : 'linear-gradient(90deg, #bb7435 0%, #ffbd67ff 100%)' ,
61+ overlay : true ,
62+ icon : 'sound_detection_dog_barking' ,
63+ } ,
64+ BUNNY_EARS_MAID : {
65+ bit : 8192 ,
66+ color : 'linear-gradient(100deg, #ff94e2, #ffffff)' ,
67+ textColor : '#2a1d1d' ,
68+ overlay : true ,
69+ icon : 'cruelty_free' ,
70+ } ,
71+ BUNNY_EARS_BLACK : {
72+ bit : 4096 ,
73+ color : 'linear-gradient(90deg, #585858ff 0%, #252525ff 100%)' ,
74+ textColor : '#ffffff' ,
75+ overlay : true ,
76+ icon : 'cruelty_free' ,
77+ } ,
78+ CAT_EARS_MAID : {
79+ bit : 2097152 ,
80+ color : 'linear-gradient(100deg, #ff94e2, #ffffff)' ,
81+ textColor : '#2a1d1d' ,
82+ overlay : true ,
83+ icon : 'pets' ,
84+ } ,
85+ CAT_EARS_PURPLE : {
86+ bit : 4194304 ,
87+ color : 'linear-gradient(268deg, #cb75d7, #390a8f)' ,
88+ textColor : '#ffffff' ,
89+ overlay : true ,
90+ icon : 'pets' ,
91+ } ,
92+ CAT_EARS_BLUE : {
93+ bit : 512 ,
94+ color : 'linear-gradient(90deg, #78a5ff 0%, #ffffff 100%)' ,
95+ overlay : true ,
96+ icon : 'pets' ,
97+ } ,
98+ CAT_EARS_WHITE : {
99+ bit : 256 ,
100+ color : 'linear-gradient(90deg, #ffa761 0%, #ffffff 100%)' ,
101+ overlay : true ,
102+ icon : 'pets' ,
103+ } ,
104+ FOX_EARS_GOLD : {
105+ bit : 1024 ,
106+ color : 'linear-gradient(90deg, #ffb100 0%, #ffffff 100%)' ,
107+ overlay : true ,
108+ icon : 'pets' ,
109+ } ,
110+ FOX_EARS_BROWN : {
111+ bit : 2048 ,
112+ color : 'linear-gradient(90deg, #bb7435 0%, #ffffff 100%)' ,
113+ overlay : true ,
114+ icon : 'pets' ,
115+ } ,
10116 FOUNDER : {
11- name : 'Founder' ,
117+ removable : false ,
12118 bit : 1 ,
13- description : 'Creator of Nerimity' ,
14- color : '#6fd894' ,
119+ color : 'linear-gradient(90deg, #4fffbd 0%, #4a5efc 100%)' ,
120+ type : 'earned' ,
121+ icon : 'crown' ,
15122 } ,
16123 ADMIN : {
17- name : 'Admin' ,
124+ removable : false ,
18125 bit : 2 ,
19- description : 'Admin of Nerimity' ,
20- color : '#d8a66f' ,
126+ color : 'linear-gradient(90deg, rgba(224,26,185,1) 0%, rgba(64,122,255,1) 100%)' ,
127+ type : 'earned' ,
128+ icon : 'verified_user' ,
21129 } ,
22- CONTRIBUTOR : {
23- name : 'Contributor' ,
24- description : 'Helped with this project in some way' ,
25- bit : 4 ,
26- color : '#ffffff' ,
130+ MOD : {
131+ removable : false ,
132+ bit : 64 ,
133+ color : 'linear-gradient(90deg, #57acfa 0%, #1485ed 100%)' ,
134+ type : 'earned' ,
135+ icon : 'shield' ,
136+ } ,
137+ EMO_SUPPORTER : {
138+ bit : 128 ,
139+ textColor : 'rgba(255,255,255,0.8)' ,
140+ color : 'linear-gradient(90deg, #424242 0%, #303030 100%)' ,
141+ type : 'earned' ,
142+ icon : 'favorite' ,
27143 } ,
28144 SUPPORTER : {
29- name : 'Supporter' ,
30- description : 'Supported this project by donating money' ,
31145 bit : 8 ,
32- color : '#d86f6f' ,
146+ color : 'linear-gradient(90deg, rgba(235,78,209,1) 0%, rgba(243,189,247,1) 100%)' ,
147+ type : 'earned' ,
148+ icon : 'favorite' ,
33149 } ,
34- EMO_SUPPORTER : {
35- name : 'Emo Supporter' ,
36- description : 'Supported this project by donating money' ,
37- bit : 128 ,
150+ CONTRIBUTOR : {
151+ bit : 4 ,
152+ color : '#ffffff' ,
153+ type : 'earned' ,
154+ icon : 'crowdsource' ,
38155 } ,
39156 PALESTINE : {
40- free : true ,
41- name : 'Palestine' ,
42- description : 'Palestine' ,
43157 bit : 16 ,
44- color : 'linear-gradient(90deg, rgba(224,26,185,1) 0%, rgba(64,122,255,1) 100%);' ,
158+ color : 'linear-gradient(90deg, red, white, green)' ,
159+ icon : 'volunteer_activism' ,
45160 } ,
46- MOD : {
47- name : 'Moderator' ,
48- description : 'Moderator of Nerimity' ,
49- bit : 64 ,
50- credit : 'Avatar Border by upklyak on Freepik' ,
161+ BOT : {
162+ removable : false ,
163+ bit : 32 ,
164+ color : 'var(--primary-color)' ,
165+ type : 'earned' ,
166+ icon : 'robot_2' ,
51167 } ,
52168} ;
53169
170+ export const UserBadgesArray = Object . values ( USER_BADGES ) ;
171+
54172export const isUserAdmin = ( badge : number ) => {
55173 return hasBit ( badge , USER_BADGES . ADMIN . bit ) || hasBit ( badge , USER_BADGES . FOUNDER . bit ) ;
56174} ;
0 commit comments