[names][calendar] #265 add calendar entries for namedays (disabled)

This commit is contained in:
Avris 2021-09-25 16:25:40 +02:00
parent d03e4165ef
commit 84d2a887b5
32 changed files with 214 additions and 173 deletions

View File

@ -79,7 +79,7 @@
return `day day-event day-event-${maxLevel}`;
},
getDayFlag(d) {
for (let event of (this.currentYear.eventsByDate[d.toString()] || []).filter(e => e.level === EventLevel.MajorDay && e.flag)) {
for (let event of (this.currentYear.eventsByDate[d.toString()] || []).filter(e => e.level === EventLevel.Day && e.flag)) {
return `/flags/${event.flag}.png`;
}
return null;

View File

@ -3,8 +3,8 @@
<span v-if="range" class="badge bg-primary">{{ event.getRange(range) }}</span>
<Flag v-if="event.flag" name="" alt="" :img="`/flags/${event.flag}.png`"/>
<Icon v-else v="arrow-circle-right"/>
<T v-if="$te(`calendar.events.${event.name}`)">calendar.events.{{event.name}}</T>
<LinkedText v-else :text="event.name"/>
<T v-if="$te(`calendar.events.${eventName}`)" :params="{param: eventParam}">calendar.events.{{eventName}}</T>
<LinkedText v-else :text="eventName"/>
</li>
</template>
@ -14,6 +14,14 @@
event: { required: true },
range: {},
},
computed: {
eventName() {
return this.event.name.split('$')[0];
},
eventParam() {
return this.event.name.split('$')[1] || null;
},
}
}
</script>

View File

@ -45,8 +45,6 @@
<ListInput v-model="form.namedays" v-slot="s">
<DayMonth v-model="s.val" @input="s.update(s.val)"/>
</ListInput>
<Debug :v="form.namedays"/>
</div>
<div class="form-group">

View File

@ -8,49 +8,49 @@ module.exports = [
new Event('aro_month', 'Aromantic', 2, month, EventLevel.Month),
// project celebrations
new Event('zaimki_birthday', null, 7, day(23), EventLevel.MajorDay),
new Event('zaimki_birthday', null, 7, day(23), EventLevel.Day),
// static date
new Event('agender_day', 'Agender', 5, day(19), EventLevel.MajorDay),
new Event('asexuality_day', 'Asexual', 4, day(6), EventLevel.MajorDay),
new Event('bisexuality_day', 'Bisexual', 9, day(23), EventLevel.MajorDay),
new Event('drag_day', '-Drag', 7, day(16), EventLevel.MajorDay),
new Event('idahobit', null, 5, day(17), EventLevel.MajorDay),
new Event('intersex_day', 'Intersex', 10, day(26), EventLevel.MajorDay),
new Event('intersex_remembrance_day', 'Intersex', 11, day(8), EventLevel.MajorDay),
new Event('lesbian_day', 'Lesbian', 10, day(8), EventLevel.MajorDay),
new Event('lesbian_visibility_day', 'Lesbian', 4, day(26), EventLevel.MajorDay),
new Event('coming_out_day', null, 10, day(11), EventLevel.MajorDay),
new Event('nonbinary_day', 'Nonbinary', 7, day(14), EventLevel.MajorDay),
new Event('pan_day', 'Pansexual', 5, day(24), EventLevel.MajorDay),
new Event('trans_remembrance_day', 'Transgender', 11, day(20), EventLevel.MajorDay),
new Event('trans_visibility_day', 'Transgender', 3, day(31), EventLevel.MajorDay),
new Event('zero_discrimination_day', null, 3, day(1), EventLevel.MajorDay),
new Event('polyamory_day', 'Polyamorous', 11, day(23), EventLevel.MajorDay),
new Event('homophobia_sport', null, 2, day(19), EventLevel.MajorDay),
new Event('lgbtq_stem', null, 11, day(18), EventLevel.MajorDay),
new Event('trans_depathologization', 'Transgender', 10, day(22), EventLevel.MajorDay),
new Event('lgbti_book_day', 'LGBTQ', 4, day(1), EventLevel.MajorDay),
new Event('human_rights_day', null, 12, day(10), EventLevel.MajorDay),
new Event('nonbinary_parents_day', 'Nonbinary', 4, day(18), EventLevel.MajorDay),
new Event('trans_prisoner', 'Transgender', 1, day(22), EventLevel.MajorDay),
new Event('xenogender_day', 'Xenogender', 5, day(15), EventLevel.MajorDay),
new Event('genderqueer_day', 'Genderqueer', 4, day(25), EventLevel.MajorDay),
new Event('genderfluid_day', 'Genderfluid', 6, day(16), EventLevel.MajorDay),
new Event('aids_day', null, 12, day(1), EventLevel.MajorDay),
new Event('tolerance_day', null, 11, day(16), EventLevel.MajorDay),
new Event('social_justice_day', null, 2, day(20), EventLevel.MajorDay),
new Event('stonewall_day', 'Progress Pride', 6, day(28), EventLevel.MajorDay),
new Event('domestic_violence', null, 5, day(25), EventLevel.MajorDay),
new Event('polysexual_day', 'Polysexual', 7, day(26), EventLevel.MajorDay),
new Event('orlando_day', null, 6, day(12), EventLevel.MajorDay),
new Event('demigender_day', 'Demigender', 12, day(15), EventLevel.MajorDay),
new Event('pan_pride_day', 'Pansexual', 12, day(8), EventLevel.MajorDay),
new Event('transmasculine_day', 'Transmasculine', 2, day(20), EventLevel.MajorDay),
new Event('asexual_visibility_day', 'Asexual', 5, day(8), EventLevel.MajorDay),
new Event('holocaust_remembrance_day', null, 1, day(27), EventLevel.MajorDay),
new Event('black_ribbon_day', null, 8, day(23), EventLevel.MajorDay),
new Event('mena_lesbian_day', 'Lesbian', 6, day(13), EventLevel.MajorDay),
new Event('agender_day', 'Agender', 5, day(19), EventLevel.Day),
new Event('asexuality_day', 'Asexual', 4, day(6), EventLevel.Day),
new Event('bisexuality_day', 'Bisexual', 9, day(23), EventLevel.Day),
new Event('drag_day', '-Drag', 7, day(16), EventLevel.Day),
new Event('idahobit', null, 5, day(17), EventLevel.Day),
new Event('intersex_day', 'Intersex', 10, day(26), EventLevel.Day),
new Event('intersex_remembrance_day', 'Intersex', 11, day(8), EventLevel.Day),
new Event('lesbian_day', 'Lesbian', 10, day(8), EventLevel.Day),
new Event('lesbian_visibility_day', 'Lesbian', 4, day(26), EventLevel.Day),
new Event('coming_out_day', null, 10, day(11), EventLevel.Day),
new Event('nonbinary_day', 'Nonbinary', 7, day(14), EventLevel.Day),
new Event('pan_day', 'Pansexual', 5, day(24), EventLevel.Day),
new Event('trans_remembrance_day', 'Transgender', 11, day(20), EventLevel.Day),
new Event('trans_visibility_day', 'Transgender', 3, day(31), EventLevel.Day),
new Event('zero_discrimination_day', null, 3, day(1), EventLevel.Day),
new Event('polyamory_day', 'Polyamorous', 11, day(23), EventLevel.Day),
new Event('homophobia_sport', null, 2, day(19), EventLevel.Day),
new Event('lgbtq_stem', null, 11, day(18), EventLevel.Day),
new Event('trans_depathologization', 'Transgender', 10, day(22), EventLevel.Day),
new Event('lgbti_book_day', 'LGBTQ', 4, day(1), EventLevel.Day),
new Event('human_rights_day', null, 12, day(10), EventLevel.Day),
new Event('nonbinary_parents_day', 'Nonbinary', 4, day(18), EventLevel.Day),
new Event('trans_prisoner', 'Transgender', 1, day(22), EventLevel.Day),
new Event('xenogender_day', 'Xenogender', 5, day(15), EventLevel.Day),
new Event('genderqueer_day', 'Genderqueer', 4, day(25), EventLevel.Day),
new Event('genderfluid_day', 'Genderfluid', 6, day(16), EventLevel.Day),
new Event('aids_day', null, 12, day(1), EventLevel.Day),
new Event('tolerance_day', null, 11, day(16), EventLevel.Day),
new Event('social_justice_day', null, 2, day(20), EventLevel.Day),
new Event('stonewall_day', 'Progress Pride', 6, day(28), EventLevel.Day),
new Event('domestic_violence', null, 5, day(25), EventLevel.Day),
new Event('polysexual_day', 'Polysexual', 7, day(26), EventLevel.Day),
new Event('orlando_day', null, 6, day(12), EventLevel.Day),
new Event('demigender_day', 'Demigender', 12, day(15), EventLevel.Day),
new Event('pan_pride_day', 'Pansexual', 12, day(8), EventLevel.Day),
new Event('transmasculine_day', 'Transmasculine', 2, day(20), EventLevel.Day),
new Event('asexual_visibility_day', 'Asexual', 5, day(8), EventLevel.Day),
new Event('holocaust_remembrance_day', null, 1, day(27), EventLevel.Day),
new Event('black_ribbon_day', null, 8, day(23), EventLevel.Day),
new Event('mena_lesbian_day', 'Lesbian', 6, day(13), EventLevel.Day),
// dynamic date
new Event('arospec_week', 'Aromantic', 2, week(function* (monthDays) {
@ -96,7 +96,7 @@ module.exports = [
}
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('trans_week', 'Transgender', 11, week(function* (monthDays) {
for (let d of monthDays) {
@ -145,7 +145,7 @@ module.exports = [
}
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('aids_memorial', null, 5, function* (monthDays) {
let sundays = 0;
@ -158,7 +158,7 @@ module.exports = [
}
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('health_week', null, 3, week(function* (monthDays) {
let prevBuffer = [];
@ -194,7 +194,7 @@ module.exports = [
return;
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('black_queer_week', 'Progress Pride', 2, week(function* (monthDays) {
const weeks = [];

View File

@ -0,0 +1 @@
{}

View File

@ -3,9 +3,9 @@ const {Event, day, week, month, dayYear, EventLevel} = require("../../src/calend
module.exports = [
// months
new Event('{https://queerhistory.de=Queer History Month} (Monat der queeren Geschichte)', 'Progress Pride', 5, month, EventLevel.Month),
new Event('Jahrestag der Ehe für alle in Deutschland', null, 10, day(1), EventLevel.MajorDay),
new Event('Jahrestag der Ehe für alle in Österreich', null, 1, day(1), EventLevel.MajorDay),
new Event('Jahrestag der Ehe für alle in Belgien', null, 6, day(1), EventLevel.MajorDay),
new Event('Jahrestag der Ehe für alle in Luxemburg', null, 1, day(1), EventLevel.MajorDay),
new Event('Jahrestag der Ehe für alle in Deutschland', null, 10, day(1), EventLevel.Day),
new Event('Jahrestag der Ehe für alle in Österreich', null, 1, day(1), EventLevel.Day),
new Event('Jahrestag der Ehe für alle in Belgien', null, 6, day(1), EventLevel.Day),
new Event('Jahrestag der Ehe für alle in Luxemburg', null, 1, day(1), EventLevel.Day),
];

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -9,45 +9,45 @@ module.exports = [
new Event('Lesbian Visibility Month (Brazil)', 'Lesbian', 8, month, EventLevel.Month),
// static date
new Event('Harvey Milk Day', null, 5, day(22), EventLevel.MajorDay),
new Event('Pink Triangle Day (Canada)', null, 2, day(14), EventLevel.MajorDay),
new Event('Marriage Equality Day (US)', null, 6, day(26), EventLevel.MajorDay),
new Event('Marriage Equality Day (England and Wales)', null, 3, day(13), EventLevel.MajorDay),
new Event('Marriage Equality Day (Scotland)', null, 12, day(16), EventLevel.MajorDay),
new Event('Marriage Equality Day (Northern Ireland)', null, 1, day(13), EventLevel.MajorDay),
new Event('Marriage Equality Day (Canada)', null, 7, day(20), EventLevel.MajorDay),
new Event('Marriage Equality Day (Australia)', null, 12, day(9), EventLevel.MajorDay),
new Event('Marriage Equality Day (New Zealand)', null, 8, day(19), EventLevel.MajorDay),
new Event('Marriage Referendum Anniversary (Ireland)', null, 5, day(22), EventLevel.MajorDay),
new Event('Freedom to Marry Day (US)', null, 2, day(12), EventLevel.MajorDay),
new Event('Transgender HIV Testing Day (US)', 'Transgender', 4, day(18), EventLevel.MajorDay),
new Event('HIV Testing Day (US)', null, 6, day(27), EventLevel.MajorDay),
new Event('Black HIV Testing Day (US)', null, 2, day(7), EventLevel.MajorDay),
new Event('Anniversary of the Decriminalisation of Homosexuality in England and Wales (1967)', null, 7, day(27), EventLevel.MajorDay),
new Event('Anniversary of the Decriminalisation of Homosexuality in Scotland (1981)', null, 2, day(1), EventLevel.MajorDay),
new Event('Two Spirit Awareness Day', 'Two Spirit', 7, day(11), EventLevel.MajorDay),
new Event('Gay Men\'s HIV/AIDS Awareness Day (US)', null, 9, day(27), EventLevel.MajorDay),
new Event('HIV/AIDS and Aging Awareness Day (US)', null, 9, day(18), EventLevel.MajorDay),
new Event('LGBT Center Awareness Day (US)', null, 10, day(19), EventLevel.MajorDay),
new Event('{https://twitter.com/_EQUALGROUND_/status/1440232964286124050=Lesbian Visibility Day} (Sri Lanka)', 'Lesbian', 9, day(21), EventLevel.MajorDay),
new Event('Latinx AIDS Awareness Day (US)', null, 10, day(15), EventLevel.MajorDay),
new Event('Southern HIV/AIDS Awareness Day (US)', null, 8, day(20), EventLevel.MajorDay),
new Event('Asian and Pacific Islander HIV/AIDS Awareness Day (US)', null, 5, day(19), EventLevel.MajorDay),
new Event('Youth HIV/AIDS Awareness Day (US)', null, 4, day(10), EventLevel.MajorDay),
new Event('Women and Girls HIV/AIDS Awareness Day (US)', null, 3, day(10), EventLevel.MajorDay),
new Event('Native HIV/AIDS Awareness Day (US)', null, 3, day(20), EventLevel.MajorDay),
new Event('HIV Long-Term Survivors Awareness Day (US)', null, 6, day(5), EventLevel.MajorDay),
new Event('Trans Visibility Day (Brazil)', 'Transgender', 1, day(29), EventLevel.MajorDay),
new Event('National Gay Pride Day (Brazil)', 'LGBTQ', 3, day(25), EventLevel.MajorDay),
new Event('Lesbian Visibility Day (Brazil)', 'Lesbian', 8, day(29), EventLevel.MajorDay),
new Event('Lesbian Rebelliousness Day (Latin America)', 'Lesbian_', 10, day(13), EventLevel.MajorDay),
new Event('Lesbian Visibility Day (Chile)', 'Lesbian', 7, day(9), EventLevel.MajorDay),
new Event('Lesbian Visibility Day (Argentina)', 'Lesbian', 3, day(7), EventLevel.MajorDay),
new Event('Lesbian Visibility Day (Paraguay)', 'Lesbian', 9, day(16), EventLevel.MajorDay),
new Event('Day of Activism for Sexual Diversity (Argentina)', 'LGBTQ', 8, day(20), EventLevel.MajorDay),
new Event('Trans Rights Day (Argentina)', 'Transgender', 3, day(18), EventLevel.MajorDay),
new Event('Nonbinary People\'s Day (Poland)', 'Nonbinary', 3, day(9), EventLevel.MajorDay),
new Event('LGBT Visibility Day (Russia)', 'LGBTQ', 10, day(7), EventLevel.MajorDay),
new Event('Harvey Milk Day', null, 5, day(22), EventLevel.Day),
new Event('Pink Triangle Day (Canada)', null, 2, day(14), EventLevel.Day),
new Event('Marriage Equality Day (US)', null, 6, day(26), EventLevel.Day),
new Event('Marriage Equality Day (England and Wales)', null, 3, day(13), EventLevel.Day),
new Event('Marriage Equality Day (Scotland)', null, 12, day(16), EventLevel.Day),
new Event('Marriage Equality Day (Northern Ireland)', null, 1, day(13), EventLevel.Day),
new Event('Marriage Equality Day (Canada)', null, 7, day(20), EventLevel.Day),
new Event('Marriage Equality Day (Australia)', null, 12, day(9), EventLevel.Day),
new Event('Marriage Equality Day (New Zealand)', null, 8, day(19), EventLevel.Day),
new Event('Marriage Referendum Anniversary (Ireland)', null, 5, day(22), EventLevel.Day),
new Event('Freedom to Marry Day (US)', null, 2, day(12), EventLevel.Day),
new Event('Transgender HIV Testing Day (US)', 'Transgender', 4, day(18), EventLevel.Day),
new Event('HIV Testing Day (US)', null, 6, day(27), EventLevel.Day),
new Event('Black HIV Testing Day (US)', null, 2, day(7), EventLevel.Day),
new Event('Anniversary of the Decriminalisation of Homosexuality in England and Wales (1967)', null, 7, day(27), EventLevel.Day),
new Event('Anniversary of the Decriminalisation of Homosexuality in Scotland (1981)', null, 2, day(1), EventLevel.Day),
new Event('Two Spirit Awareness Day', 'Two Spirit', 7, day(11), EventLevel.Day),
new Event('Gay Men\'s HIV/AIDS Awareness Day (US)', null, 9, day(27), EventLevel.Day),
new Event('HIV/AIDS and Aging Awareness Day (US)', null, 9, day(18), EventLevel.Day),
new Event('LGBT Center Awareness Day (US)', null, 10, day(19), EventLevel.Day),
new Event('{https://twitter.com/_EQUALGROUND_/status/1440232964286124050=Lesbian Visibility Day} (Sri Lanka)', 'Lesbian', 9, day(21), EventLevel.Day),
new Event('Latinx AIDS Awareness Day (US)', null, 10, day(15), EventLevel.Day),
new Event('Southern HIV/AIDS Awareness Day (US)', null, 8, day(20), EventLevel.Day),
new Event('Asian and Pacific Islander HIV/AIDS Awareness Day (US)', null, 5, day(19), EventLevel.Day),
new Event('Youth HIV/AIDS Awareness Day (US)', null, 4, day(10), EventLevel.Day),
new Event('Women and Girls HIV/AIDS Awareness Day (US)', null, 3, day(10), EventLevel.Day),
new Event('Native HIV/AIDS Awareness Day (US)', null, 3, day(20), EventLevel.Day),
new Event('HIV Long-Term Survivors Awareness Day (US)', null, 6, day(5), EventLevel.Day),
new Event('Trans Visibility Day (Brazil)', 'Transgender', 1, day(29), EventLevel.Day),
new Event('National Gay Pride Day (Brazil)', 'LGBTQ', 3, day(25), EventLevel.Day),
new Event('Lesbian Visibility Day (Brazil)', 'Lesbian', 8, day(29), EventLevel.Day),
new Event('Lesbian Rebelliousness Day (Latin America)', 'Lesbian_', 10, day(13), EventLevel.Day),
new Event('Lesbian Visibility Day (Chile)', 'Lesbian', 7, day(9), EventLevel.Day),
new Event('Lesbian Visibility Day (Argentina)', 'Lesbian', 3, day(7), EventLevel.Day),
new Event('Lesbian Visibility Day (Paraguay)', 'Lesbian', 9, day(16), EventLevel.Day),
new Event('Day of Activism for Sexual Diversity (Argentina)', 'LGBTQ', 8, day(20), EventLevel.Day),
new Event('Trans Rights Day (Argentina)', 'Transgender', 3, day(18), EventLevel.Day),
new Event('Nonbinary People\'s Day (Poland)', 'Nonbinary', 3, day(9), EventLevel.Day),
new Event('LGBT Visibility Day (Russia)', 'LGBTQ', 10, day(7), EventLevel.Day),
// dynamic date
new Event('Wear it Purple Day (Australia)', null, 8, function* (monthDays) {
@ -58,7 +58,7 @@ module.exports = [
}
}
yield lastFriday;
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('Spirit Day', null, 10, function* (monthDays) {
let thursdays = 0;
@ -71,7 +71,7 @@ module.exports = [
}
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('Purple Friday (UK)', null, 2, function* (monthDays) {
let lastFriday = null;
@ -81,7 +81,7 @@ module.exports = [
}
}
yield lastFriday;
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('Rainbow Friday (Poland)', null, 10, function* (monthDays) {
let lastFriday = null;
@ -91,7 +91,7 @@ module.exports = [
}
}
yield lastFriday;
}, EventLevel.MajorDay),
}, EventLevel.Day),
new Event('Purple Friday (Netherlands)', null, 12, function* (monthDays) {
let fridays = 0;
@ -104,9 +104,9 @@ module.exports = [
}
}
}
}, EventLevel.MajorDay),
}, EventLevel.Day),
// one-off events
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.MajorDay),
new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.MajorDay),
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),
new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day),
];

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -5,33 +5,33 @@ module.exports = [
new Event('Mes de la Historia LGBT (EE.UU.)', 'Progress Pride', 10, month, EventLevel.Month),
// static date
new Event('Día de la Igualdad Matrimonial (EE.UU.)', null, 6, day(26), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (España)', null, 7, day(3), EventLevel.MajorDay),
new Event('Aniversario de la sanción de la Ley de Matrimonio Igualitario (Argentina)', null, 7, day(15), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (Uruguay)', null, 8, day(5), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (Colombia)', null, 4, day(28), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (Ecuador)', null, 7, day(8), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (Costa Rica)', null, 5, day(26), EventLevel.MajorDay),
new Event('Día de la Visibilidad Lésbica (Chile)', 'Lesbian', 7, day(9), EventLevel.MajorDay),
new Event('Día de la Visibilidad Lésbica (Argentina)', 'Lesbian', 3, day(7), EventLevel.MajorDay),
new Event('Día de la Visibilidad Lésbica (Paraguay)', 'Lesbian', 9, day(16), EventLevel.MajorDay),
new Event('Día del Activismo por la Diversidad Sexual (Argentina)', 'LGBTQ', 8, day(20), EventLevel.MajorDay),
new Event('Día de las Rebeldías Lésbicas', 'Lesbian_', 10, day(13), EventLevel.MajorDay),
new Event('Día de la Promoción de los Derechos de las Personas Trans (Argentina)', 'Transgender', 3, day(18), EventLevel.MajorDay),
new Event('Aniversario de la Sanción de la Ley de Identidad de Género en Argentina', 'Transgender', 5, day(9), EventLevel.MajorDay),
new Event('Aniversario del {https://es.wikipedia.org/wiki/Baile_de_los_cuarenta_y_uno=Baile de los Cuarenta y Uno} (México)', null, 11, day(18), EventLevel.MajorDay),
new Event('Día de la Comunidad Muxe (Vela de las Intrépidas)', 'Muxe', 11, day(15), EventLevel.MajorDay),
new Event('Día Nacional de la Libertad para Casarse (EE.UU.)', null, 2, day(12), EventLevel.MajorDay),
new Event('Día Nacional de la Prueba del VIH en Personas Transgénero (EE.UU.)', 'Transgender', 4, day(18), EventLevel.MajorDay),
new Event('Día Nacional de la Prueba del VIH (EE.UU.)', null, 6, day(27), EventLevel.MajorDay),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre las Personas de Raza Negra (EE.UU.)', null, 2, day(7), EventLevel.MajorDay),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre los Hombres Gais (EE.UU.)', null, 9, day(27), EventLevel.MajorDay),
new Event('Día Nacional de Concientización sobre el VIH/SIDA y el Envejecimiento (EE.UU.)', null, 9, day(18), EventLevel.MajorDay),
new Event('Día de la Conciencia de los Centros de la Comunidad LGBT (EE.UU.)', null, 10, day(19), EventLevel.MajorDay),
new Event('Día Nacional Latinx de Concientización sobre el VIH (EE.UU.)', null, 10, day(15), EventLevel.MajorDay),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre los Jóvenes (EE.UU.)', null, 4, day(10), EventLevel.MajorDay),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre las Mujeres y Niñas (EE.UU.)', null, 3, day(10), EventLevel.MajorDay),
new Event('Día de Concientización para los Sobrevivientes a Largo Plazo del VIH (EE.UU.)', null, 6, day(5), EventLevel.MajorDay),
new Event('Día de la Igualdad Matrimonial (EE.UU.)', null, 6, day(26), EventLevel.Day),
new Event('Día de la Igualdad Matrimonial (España)', null, 7, day(3), EventLevel.Day),
new Event('Aniversario de la sanción de la Ley de Matrimonio Igualitario (Argentina)', null, 7, day(15), EventLevel.Day),
new Event('Día de la Igualdad Matrimonial (Uruguay)', null, 8, day(5), EventLevel.Day),
new Event('Día de la Igualdad Matrimonial (Colombia)', null, 4, day(28), EventLevel.Day),
new Event('Día de la Igualdad Matrimonial (Ecuador)', null, 7, day(8), EventLevel.Day),
new Event('Día de la Igualdad Matrimonial (Costa Rica)', null, 5, day(26), EventLevel.Day),
new Event('Día de la Visibilidad Lésbica (Chile)', 'Lesbian', 7, day(9), EventLevel.Day),
new Event('Día de la Visibilidad Lésbica (Argentina)', 'Lesbian', 3, day(7), EventLevel.Day),
new Event('Día de la Visibilidad Lésbica (Paraguay)', 'Lesbian', 9, day(16), EventLevel.Day),
new Event('Día del Activismo por la Diversidad Sexual (Argentina)', 'LGBTQ', 8, day(20), EventLevel.Day),
new Event('Día de las Rebeldías Lésbicas', 'Lesbian_', 10, day(13), EventLevel.Day),
new Event('Día de la Promoción de los Derechos de las Personas Trans (Argentina)', 'Transgender', 3, day(18), EventLevel.Day),
new Event('Aniversario de la Sanción de la Ley de Identidad de Género en Argentina', 'Transgender', 5, day(9), EventLevel.Day),
new Event('Aniversario del {https://es.wikipedia.org/wiki/Baile_de_los_cuarenta_y_uno=Baile de los Cuarenta y Uno} (México)', null, 11, day(18), EventLevel.Day),
new Event('Día de la Comunidad Muxe (Vela de las Intrépidas)', 'Muxe', 11, day(15), EventLevel.Day),
new Event('Día Nacional de la Libertad para Casarse (EE.UU.)', null, 2, day(12), EventLevel.Day),
new Event('Día Nacional de la Prueba del VIH en Personas Transgénero (EE.UU.)', 'Transgender', 4, day(18), EventLevel.Day),
new Event('Día Nacional de la Prueba del VIH (EE.UU.)', null, 6, day(27), EventLevel.Day),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre las Personas de Raza Negra (EE.UU.)', null, 2, day(7), EventLevel.Day),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre los Hombres Gais (EE.UU.)', null, 9, day(27), EventLevel.Day),
new Event('Día Nacional de Concientización sobre el VIH/SIDA y el Envejecimiento (EE.UU.)', null, 9, day(18), EventLevel.Day),
new Event('Día de la Conciencia de los Centros de la Comunidad LGBT (EE.UU.)', null, 10, day(19), EventLevel.Day),
new Event('Día Nacional Latinx de Concientización sobre el VIH (EE.UU.)', null, 10, day(15), EventLevel.Day),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre los Jóvenes (EE.UU.)', null, 4, day(10), EventLevel.Day),
new Event('Día Nacional de Concientización sobre el VIH/SIDA entre las Mujeres y Niñas (EE.UU.)', null, 3, day(10), EventLevel.Day),
new Event('Día de Concientización para los Sobrevivientes a Largo Plazo del VIH (EE.UU.)', null, 6, day(5), EventLevel.Day),

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -2,32 +2,29 @@ const {Event, day, week, month, dayYear, EventLevel} = require("../../src/calend
module.exports = [
// static date
new Event('Tęczowa Noc', null, 8, day(7), EventLevel.MajorDay),
new Event('Rocznica Dekryminalizacji Homoseksualności w Polsce (1932)', null, 9, day(1), EventLevel.MajorDay),
new Event('Rocznica Rozpoczęcia Akcji „Hiacynt” (1985)', null, 11, day(15), EventLevel.MajorDay),
new Event('{https://www.facebook.com/429249150318/posts/10164869405325319=Polski Dzień Osób Niebinarnych}', 'Nonbinary', 3, day(9), EventLevel.MajorDay),
// namedays
// new Event('Imieniny: Andrea', null, 4, day(30), EventLevel.MinorDay),
new Event('Tęczowa Noc', null, 8, day(7), EventLevel.Day),
new Event('Rocznica Dekryminalizacji Homoseksualności w Polsce (1932)', null, 9, day(1), EventLevel.Day),
new Event('Rocznica Rozpoczęcia Akcji „Hiacynt” (1985)', null, 11, day(15), EventLevel.Day),
new Event('{https://www.facebook.com/429249150318/posts/10164869405325319=Polski Dzień Osób Niebinarnych}', 'Nonbinary', 3, day(9), EventLevel.Day),
// one-off events
new Event('{https://www.facebook.com/events/494846264855467=Parada Równości 2021 (Warszawa)}', 'LGBTQ', 6, dayYear(19, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/488657855710176=10. Marsz Równości w Łodzi // #DajcieŻyć}', 'LGBTQ', 6, dayYear(26, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/410978689971744=Marsz Równości / Poznań Pride Week 2021}', 'LGBTQ', 7, dayYear(3, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/268787238127715=Krakowski Marsz Równości}', 'LGBTQ', 8, dayYear(14, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/3014862102117309=III Marsz Równości w Częstochowie}', 'LGBTQ', 8, dayYear(21, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/2452153495099319=VI Trójmiejski Marsz Równości}', 'LGBTQ', 8, dayYear(21, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/899343277314079=I Marsz Równości w Pile}', 'LGBTQ', 8, dayYear(28, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/836510793718521=IV Marsz Równości w Zielonej Górze}', 'LGBTQ', 8, dayYear(29, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/201952825229094=II Marsz Równości w Koszalinie - łączy nas miłość!}', 'LGBTQ', 9, dayYear(4, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/=342009100868673=2. Frankfurt Słubice Pride}', 'LGBTQ', 9, dayYear(5, 2021), EventLevel.MajorDay),
new Event('Katowicki Marsz Równości', 'LGBTQ', 9, dayYear(11, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/245026010553901=3. Szczeciński Marsz Równości}', 'LGBTQ', 9, dayYear(18, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/567277200983253=I Bielski Marsz Równości}', 'LGBTQ', 9, dayYear(19, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/579750703021865=III Marsz Równości w Opolu}', 'LGBTQ', 9, dayYear(25, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/1593757500834654=13. Wrocławski Marsz Równości}', 'LGBTQ', 10, dayYear(2, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/1066052000600920=II Marsz Równości w Białymstoku}', 'LGBTQ', 10, dayYear(9, 2021), EventLevel.MajorDay),
new Event('{http://marszlublin.pl/=III Marsz Równości w Lublinie}', 'LGBTQ', 10, dayYear(23, 2021), EventLevel.MajorDay),
new Event('{https://www.facebook.com/events/494846264855467=Parada Równości 2021 (Warszawa)}', 'LGBTQ', 6, dayYear(19, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/488657855710176=10. Marsz Równości w Łodzi // #DajcieŻyć}', 'LGBTQ', 6, dayYear(26, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/410978689971744=Marsz Równości / Poznań Pride Week 2021}', 'LGBTQ', 7, dayYear(3, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/268787238127715=Krakowski Marsz Równości}', 'LGBTQ', 8, dayYear(14, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/3014862102117309=III Marsz Równości w Częstochowie}', 'LGBTQ', 8, dayYear(21, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/2452153495099319=VI Trójmiejski Marsz Równości}', 'LGBTQ', 8, dayYear(21, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/899343277314079=I Marsz Równości w Pile}', 'LGBTQ', 8, dayYear(28, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/836510793718521=IV Marsz Równości w Zielonej Górze}', 'LGBTQ', 8, dayYear(29, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/201952825229094=II Marsz Równości w Koszalinie - łączy nas miłość!}', 'LGBTQ', 9, dayYear(4, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/=342009100868673=2. Frankfurt Słubice Pride}', 'LGBTQ', 9, dayYear(5, 2021), EventLevel.Day),
new Event('Katowicki Marsz Równości', 'LGBTQ', 9, dayYear(11, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/245026010553901=3. Szczeciński Marsz Równości}', 'LGBTQ', 9, dayYear(18, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/567277200983253=I Bielski Marsz Równości}', 'LGBTQ', 9, dayYear(19, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/579750703021865=III Marsz Równości w Opolu}', 'LGBTQ', 9, dayYear(25, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/1593757500834654=13. Wrocławski Marsz Równości}', 'LGBTQ', 10, dayYear(2, 2021), EventLevel.Day),
new Event('{https://www.facebook.com/events/1066052000600920=II Marsz Równości w Białymstoku}', 'LGBTQ', 10, dayYear(9, 2021), EventLevel.Day),
new Event('{http://marszlublin.pl/=III Marsz Równości w Lublinie}', 'LGBTQ', 10, dayYear(23, 2021), EventLevel.Day),
// dynamic date
@ -39,5 +36,5 @@ module.exports = [
}
}
yield lastFriday;
}, EventLevel.MajorDay),
}, EventLevel.Day),
];

View File

@ -1346,6 +1346,7 @@ calendar:
11: '%day% listopada'
12: '%day% grudnia'
events:
nameday: 'Imieniny: {/imiona#%param%=%param%}'
pride_month: 'Miesiąc {/terminologia#pride=Dumy}'
trans_month: 'Miesiąc Świadomości nt. {/terminologia#transpłciowość=Transpłciowości}'
zaimki_birthday: 'Urodziny zaimki.pl'

View File

@ -8,13 +8,13 @@ module.exports = [
// static date
new Event('Dia da Igualdade Matrimonial (Portugal)', null, 6, day(5), EventLevel.MajorDay),
new Event('Dia da Igualdade Matrimonial (Brasil)', null, 5, day(16), EventLevel.MajorDay),
new Event('Dia Nacional da Visibilidade Trans (Brasil)', 'Transgender', 1, day(29), EventLevel.MajorDay),
new Event('Dia Nacional do Orgulho Gay (Brasil)', 'LGBTQ', 3, day(25), EventLevel.MajorDay),
new Event('Dia Nacional da Visibilidade Lésbica (Brasil)', 'Lesbian', 8, day(29), EventLevel.MajorDay),
new Event('Aniversário da morte de Marielle Franco', null, 3, day(14), EventLevel.MajorDay),
new Event('Aniversário da Nova Lei de Identidade de Género (Portugal)', null, 4, day(14), EventLevel.MajorDay),
new Event('Dia das Rebeliões Lésbicas', 'Lesbian_', 10, day(13), EventLevel.MajorDay),
new Event('Dia da Igualdade Matrimonial (Portugal)', null, 6, day(5), EventLevel.Day),
new Event('Dia da Igualdade Matrimonial (Brasil)', null, 5, day(16), EventLevel.Day),
new Event('Dia Nacional da Visibilidade Trans (Brasil)', 'Transgender', 1, day(29), EventLevel.Day),
new Event('Dia Nacional do Orgulho Gay (Brasil)', 'LGBTQ', 3, day(25), EventLevel.Day),
new Event('Dia Nacional da Visibilidade Lésbica (Brasil)', 'Lesbian', 8, day(29), EventLevel.Day),
new Event('Aniversário da morte de Marielle Franco', null, 3, day(14), EventLevel.Day),
new Event('Aniversário da Nova Lei de Identidade de Género (Portugal)', null, 4, day(14), EventLevel.Day),
new Event('Dia das Rebeliões Lésbicas', 'Lesbian_', 10, day(13), EventLevel.Day),
];

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -0,0 +1 @@
{}

View File

@ -1 +0,0 @@
name origin meaning usage legally cons pros notablePeople count links
1 name origin meaning usage legally cons pros notablePeople count links

View File

@ -2,6 +2,11 @@ require('../src/dotenv')();
const Pageres = require('pageres');
const fs = require('fs');
const dbConnection = require('./db');
const Suml = require('suml');
const loadSuml = name => new Suml().parse(fs.readFileSync(`./data/${name}.suml`).toString());
const config = loadSuml('config');
const shoot = async (url, filename) => {
const pr = new Pageres({
@ -18,7 +23,27 @@ const shoot = async (url, filename) => {
}
}
const dumpNameDays = async () => {
if (!config.names || !config.names.enabled || !config.names.namedays) {
return;
}
const db = await dbConnection();
const names = await db.all(`
SELECT n.name, n.namedays
FROM names n
WHERE n.namedays IS NOT NULL
AND approved = 1
AND deleted = 0
`);
const output = {};
for (let {name, namedays} of names) {
output[name] = namedays.split('|');
}
fs.writeFileSync(`${__dirname}/../data/names/namedays.json`, JSON.stringify(output));
}
(async () => {
await shoot('/calendar-wide', `overview`);
await shoot('/calendar-wide?labels=true', `labels`);
await dumpNameDays();
})();

View File

@ -1,8 +1,19 @@
const { Day, Calendar } = require('./helpers');
const { Day, Calendar, Event, EventLevel, day } = require('./helpers');
const internationalEvents = require('../../locale/_/events');
const localEvents = require('../../data/events');
const rawNamedays = require('../../data/names/namedays.json');
const namedays = [];
for (let name in rawNamedays) {
if (!rawNamedays.hasOwnProperty(name)) { continue; }
for (let nd of rawNamedays[name]) {
const [m, d] = nd.split('-');
namedays.push(new Event('nameday$'+name, null, parseInt(m), day(parseInt(d)), EventLevel.Nameday));
}
}
module.exports.currentYear = new Calendar(
Day.today().year,
[...internationalEvents, ...localEvents],
[...internationalEvents, ...localEvents], // TODO , ...namedays
);

View File

@ -36,8 +36,8 @@ module.exports.iterateMonth = iterateMonth;
module.exports.EventLevel = {
Month: 0,
Week: 1,
MinorDay: 2,
MajorDay: 3,
Nameday: 2,
Day: 3,
}
module.exports.Event = class {