mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-14 23:33:51 -05:00
Don't add Badge prizes tag in seeding
This commit is contained in:
parent
d39fa5c0d1
commit
23ba309166
1
TODO.md
1
TODO.md
|
|
@ -20,6 +20,7 @@ Calendar
|
|||
|
||||
## Other
|
||||
|
||||
- [ ] Event page layout shift with time not taking space before mount (only if one day)
|
||||
- [x] WeekLinks make opaque blocks not take space on mobile
|
||||
- [x] Type problem with Avatar
|
||||
- [x] Maybe classNames that do nothing on calendar event page?
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function addTagArray<
|
|||
const { hasBadge, ...row } = arg;
|
||||
const tags = (row.tags ? row.tags.split(",") : []) as Array<CalendarEventTag>;
|
||||
|
||||
if (hasBadge) tags.push("BADGE_PRIZE");
|
||||
if (hasBadge) tags.push("BADGE");
|
||||
|
||||
return { ...row, tags };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ function calendarEvents() {
|
|||
.map((u) => u.id);
|
||||
|
||||
for (let id = 1; id <= AMOUNT_OF_CALENDAR_EVENTS; id++) {
|
||||
const tags = shuffle(Object.keys(allTags));
|
||||
const tags = shuffle(Object.keys(allTags)).filter((tag) => tag !== "BADGE");
|
||||
|
||||
sql
|
||||
.prepare(
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ function PrizeBadges() {
|
|||
return (
|
||||
<div
|
||||
className="event__badges__container"
|
||||
style={{ color: allTags["BADGE_PRIZE"].color }}
|
||||
style={{ color: allTags["BADGE"].color }}
|
||||
>
|
||||
Win!
|
||||
<div className="event__badges__gifs">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"BADGE_PRIZE": {
|
||||
"BADGE": {
|
||||
"color": "#FDFD96"
|
||||
},
|
||||
"SPECIAL": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"tag.name.BADGE_PRIZE": "Badge prize",
|
||||
"tag.name.BADGE": "Badge prizes",
|
||||
"tag.name.SPECIAL": "Special rules",
|
||||
"tag.name.ART": "Art prizes",
|
||||
"tag.name.MONEY": "Money prizes",
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
"tag.name.COUNT": "Entry limit",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifier",
|
||||
"tag.desc.BADGE_PRIZE": "Winner of this event gets a sendou.ink badge.",
|
||||
"tag.desc.BADGE": "Winner of this event gets a sendou.ink badge.",
|
||||
"tag.desc.SPECIAL": "Ruleset that differ from the standard e.g. limited what weapons can be used.",
|
||||
"tag.desc.ART": "You can win art by playing in this tournament.",
|
||||
"tag.desc.MONEY": "You can win money by playing in this tournament.",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user