mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 22:19:28 -04:00
[calendar] black_queer_week
This commit is contained in:
parent
460704dc75
commit
25a4064d73
@ -194,4 +194,18 @@ module.exports = [
|
||||
}
|
||||
}
|
||||
}, EventLevel.MajorDay),
|
||||
|
||||
new Event('black_queer_week', 'Progress Pride', 2, week(function* (monthDays) {
|
||||
const weeks = [];
|
||||
for (let d of monthDays) {
|
||||
if (d.dayOfWeek === 1) {
|
||||
weeks.push([]);
|
||||
}
|
||||
if (weeks.length === 0) {
|
||||
continue;
|
||||
}
|
||||
weeks[weeks.length - 1].push(d);
|
||||
}
|
||||
yield* weeks[2];
|
||||
}), EventLevel.Week),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user