From b99092a9fe593b5ed5b1ca25c8b5fefd09e7277e Mon Sep 17 00:00:00 2001 From: patak-dev Date: Sun, 22 Feb 2026 07:02:56 +0100 Subject: [PATCH 1/3] chore: we're back --- app/pages/recharging.vue | 7 +------ i18n/locales/en.json | 17 ++++++++--------- i18n/schema.json | 3 --- vercel.json | 2 +- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/app/pages/recharging.vue b/app/pages/recharging.vue index 69316f510..e01d7510d 100644 --- a/app/pages/recharging.vue +++ b/app/pages/recharging.vue @@ -149,7 +149,7 @@ function downloadIcs() {
- +

{{ $t('vacations.what.title') }} @@ -238,11 +238,6 @@ function downloadIcs() {

- - - - {{ $t('vacations.return.add_to_calendar') }} -

Date: Sun, 22 Feb 2026 07:53:10 +0000 Subject: [PATCH 2/3] chore: remove ics download link --- app/pages/recharging.vue | 42 ---------------------------------------- 1 file changed, 42 deletions(-) diff --git a/app/pages/recharging.vue b/app/pages/recharging.vue index e01d7510d..b84a6f6c1 100644 --- a/app/pages/recharging.vue +++ b/app/pages/recharging.vue @@ -57,48 +57,6 @@ const icons = [ 'i-lucide:star', 'i-lucide:moon', ] as const - -// --- .ics calendar reminder --- - -// Format as UTC for the .ics file -const fmt = (d: Date) => - d - .toISOString() - .replace(/[-:]/g, '') - .replace(/\.\d{3}/, '') - -// Pick a random daytime hour (9–17) in the user's local timezone on Feb 22 -// so reminders are staggered and people don't all flood in at once. -function downloadIcs() { - const hour = 9 + Math.floor(Math.random() * 9) // 9..17 - const start = new Date(2026, 1, 22, hour, 0, 0) // month is 0-indexed - const end = new Date(2026, 1, 22, hour + 1, 0, 0) - - const uid = `npmx-vacations-${start.getTime()}@npmx.dev` - - const ics = [ - 'BEGIN:VCALENDAR', - 'VERSION:2.0', - 'PRODID:-//npmx//recharging//EN', - 'BEGIN:VEVENT', - `DTSTART:${fmt(start)}`, - `DTEND:${fmt(end)}`, - `SUMMARY:npmx Discord is back!`, - `DESCRIPTION:The npmx team is back from vacation. Time to rejoin! https://chat.npmx.dev`, - 'STATUS:CONFIRMED', - `UID:${uid}`, - 'END:VEVENT', - 'END:VCALENDAR', - ].join('\r\n') - - const blob = new Blob([ics], { type: 'text/calendar;charset=utf-8' }) - const url = URL.createObjectURL(blob) - const a = document.createElement('a') - a.href = url - a.download = 'npmx-discord-reminder.ics' - a.click() - URL.revokeObjectURL(url) -}