Don't add Badge prizes tag in seeding

This commit is contained in:
Kalle 2022-07-28 23:51:31 +03:00
parent d39fa5c0d1
commit 23ba309166
6 changed files with 7 additions and 6 deletions

View File

@ -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?

View File

@ -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 };
}

View File

@ -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(

View File

@ -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">

View File

@ -1,5 +1,5 @@
{
"BADGE_PRIZE": {
"BADGE": {
"color": "#FDFD96"
},
"SPECIAL": {

View File

@ -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.",