mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
Clean up obsolete mode tags
This commit is contained in:
parent
49e35fd4c2
commit
d91b8444b6
|
|
@ -28,12 +28,6 @@ export const tags = {
|
|||
QUALIFIER: {
|
||||
color: "#FFC0CB",
|
||||
},
|
||||
SZ: {
|
||||
color: "#F44336",
|
||||
},
|
||||
TW: {
|
||||
color: "#D50000",
|
||||
},
|
||||
ONES: {
|
||||
color: "#FAEC25",
|
||||
},
|
||||
|
|
@ -97,12 +91,7 @@ export type RegClosesAtOption = (typeof REG_CLOSES_AT_OPTIONS)[number];
|
|||
export const DAYS_SHOWN_AT_A_TIME = 4;
|
||||
|
||||
/** Tags not shown on the tournament cards */
|
||||
export const EXCLUDED_TAGS: Array<CalendarEventTag> = [
|
||||
"CARDS",
|
||||
"SR",
|
||||
"SZ",
|
||||
"TW",
|
||||
];
|
||||
export const EXCLUDED_TAGS: Array<CalendarEventTag> = ["CARDS", "SR"];
|
||||
|
||||
export const CALENDAR_EVENT_RESULT = {
|
||||
MAX_PARTICIPANTS_COUNT: 1000,
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ const TAGS_TO_OMIT: CalendarEventTag[] = [
|
|||
"SR",
|
||||
"S1",
|
||||
"S2",
|
||||
"SZ",
|
||||
"TW",
|
||||
"ONES",
|
||||
"DUOS",
|
||||
"TRIOS",
|
||||
|
|
|
|||
|
|
@ -598,7 +598,7 @@ function TagsAdder() {
|
|||
|
||||
const tagsForSelect = CALENDAR_EVENT.TAGS.filter(
|
||||
(tag) => !tags.includes(tag),
|
||||
).filter((tag) => tag !== "SZ" && tag !== "TW"); // TODO: these are now added automatically, remove in migration?
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="stack sm">
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ export const ZONES_WEEKLY_38 = (): TournamentData => ({
|
|||
tier: null,
|
||||
tentativeTier: null,
|
||||
discordUrl: "https://discord.gg/A6NW3VCHRh",
|
||||
tags: "REGION,SZ",
|
||||
tags: "REGION",
|
||||
settings: {
|
||||
bracketProgression: [
|
||||
{
|
||||
|
|
|
|||
BIN
db-test.sqlite3
BIN
db-test.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -203,8 +203,6 @@
|
|||
"tag.name.COUNT": "Tilmeldingsloft",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Kvalifikationsturnering",
|
||||
"tag.name.SZ": "Kun DD (SZ)",
|
||||
"tag.name.TW": "RK (TW) Inkluderet",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@
|
|||
"tag.name.COUNT": "Zulassungsgrenze",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifikation",
|
||||
"tag.name.SZ": "Nur Herrschaft",
|
||||
"tag.name.TW": "",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@
|
|||
"tag.name.COUNT": "Entry limit",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifier",
|
||||
"tag.name.SZ": "SZ Only",
|
||||
"tag.name.TW": "Includes TW",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "LAN",
|
||||
"options.tag.QUALIFIER": "Qualifier",
|
||||
"options.tag.COLLEGIATE": "Collegiate",
|
||||
"options.tag.SZ": "SZ Only",
|
||||
"options.tag.TW": "Includes TW",
|
||||
"options.tag.ONES": "1v1",
|
||||
"options.tag.DUOS": "2v2",
|
||||
"options.tag.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Límite de inscripciones",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Clasificatorio",
|
||||
"tag.name.SZ": "Solo Pintazonas",
|
||||
"tag.name.TW": "Incluye Territorial",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "LAN",
|
||||
"options.tag.QUALIFIER": "Clasificatorio",
|
||||
"options.tag.COLLEGIATE": "Universitario",
|
||||
"options.tag.SZ": "Solo Pintazonas",
|
||||
"options.tag.TW": "Incluye Territorial",
|
||||
"options.tag.ONES": "1v1",
|
||||
"options.tag.DUOS": "2v2",
|
||||
"options.tag.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Limite de entrada",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Clasificatorio",
|
||||
"tag.name.SZ": "Solo Pintazonas",
|
||||
"tag.name.TW": "Incluye Territorial",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Limite d'inscriptions",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifications",
|
||||
"tag.name.SZ": "DdZ uniquement",
|
||||
"tag.name.TW": "GdT comprises",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Limite d'inscriptions",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifications",
|
||||
"tag.name.SZ": "DdZ uniquement",
|
||||
"tag.name.TW": "GdT comprises",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@
|
|||
"tag.name.COUNT": "מגבלת כניסה",
|
||||
"tag.name.LAN": "רשת מקומית",
|
||||
"tag.name.QUALIFIER": "מוקדמות",
|
||||
"tag.name.SZ": "רק SZ",
|
||||
"tag.name.TW": "מכיל TW",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Limite d'ingresso",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifica",
|
||||
"tag.name.SZ": "Solo ZS",
|
||||
"tag.name.TW": "Include MM",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -201,8 +201,6 @@
|
|||
"tag.name.COUNT": "参加数限定",
|
||||
"tag.name.LAN": "オフライン",
|
||||
"tag.name.QUALIFIER": "参加資格",
|
||||
"tag.name.SZ": "エリアのみ",
|
||||
"tag.name.TW": "ナワバリあり",
|
||||
"tag.name.ONES": "タイマン (一対一)",
|
||||
"tag.name.DUOS": "二対二",
|
||||
"tag.name.TRIOS": "三対三",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -201,8 +201,6 @@
|
|||
"tag.name.COUNT": "참가 제한",
|
||||
"tag.name.LAN": "현장 이벤트",
|
||||
"tag.name.QUALIFIER": "예선전",
|
||||
"tag.name.SZ": "에어리어 한정",
|
||||
"tag.name.TW": "영역 배틀 포함",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@
|
|||
"tag.name.COUNT": "Beperkte deelname",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualificatie",
|
||||
"tag.name.SZ": "",
|
||||
"tag.name.TW": "",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Limit zapisów",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Qualifier",
|
||||
"tag.name.SZ": "",
|
||||
"tag.name.TW": "",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Vagas limitadas",
|
||||
"tag.name.LAN": "LAN (Local)",
|
||||
"tag.name.QUALIFIER": "Qualificatória",
|
||||
"tag.name.SZ": "Apenas Zones",
|
||||
"tag.name.TW": "Inclui Turf",
|
||||
"tag.name.ONES": "",
|
||||
"tag.name.DUOS": "",
|
||||
"tag.name.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -204,8 +204,6 @@
|
|||
"tag.name.COUNT": "Лимит участников",
|
||||
"tag.name.LAN": "LAN",
|
||||
"tag.name.QUALIFIER": "Квалификационный",
|
||||
"tag.name.SZ": "Только Бой за зоны",
|
||||
"tag.name.TW": "Включает Бой за район",
|
||||
"tag.name.ONES": "1 на 1",
|
||||
"tag.name.DUOS": "2 на 2",
|
||||
"tag.name.TRIOS": "3 на 3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
|
|
@ -201,8 +201,6 @@
|
|||
"tag.name.COUNT": "队伍数量限制",
|
||||
"tag.name.LAN": "线下",
|
||||
"tag.name.QUALIFIER": "资格赛",
|
||||
"tag.name.SZ": "仅限区域模式",
|
||||
"tag.name.TW": "包含占地对战",
|
||||
"tag.name.ONES": "1v1",
|
||||
"tag.name.DUOS": "2v2",
|
||||
"tag.name.TRIOS": "3v3",
|
||||
|
|
|
|||
|
|
@ -154,8 +154,6 @@
|
|||
"options.tag.LAN": "",
|
||||
"options.tag.QUALIFIER": "",
|
||||
"options.tag.COLLEGIATE": "",
|
||||
"options.tag.SZ": "",
|
||||
"options.tag.TW": "",
|
||||
"options.tag.ONES": "",
|
||||
"options.tag.DUOS": "",
|
||||
"options.tag.TRIOS": "",
|
||||
|
|
|
|||
25
migrations/134-calendar-event-strip-mode-tags.js
Normal file
25
migrations/134-calendar-event-strip-mode-tags.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
export function up(db) {
|
||||
db.transaction(() => {
|
||||
const rows = db
|
||||
.prepare(
|
||||
/* sql */ `select "id", "tags" from "CalendarEvent" where "tags" is not null`,
|
||||
)
|
||||
.all();
|
||||
|
||||
const stmt = db.prepare(
|
||||
/* sql */ `update "CalendarEvent" set "tags" = ? where "id" = ?`,
|
||||
);
|
||||
|
||||
for (const row of rows) {
|
||||
const cleaned = row.tags
|
||||
.split(",")
|
||||
.filter((tag) => tag !== "SZ" && tag !== "TW")
|
||||
.join(",");
|
||||
const newTags = cleaned === "" ? null : cleaned;
|
||||
|
||||
if (newTags !== row.tags) {
|
||||
stmt.run(newTags, row.id);
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user