Skip to content

Commit 2eca59e

Browse files
patak-catdanielroe
andauthored
chore: we're back (#1559)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 63d5d59 commit 2eca59e

File tree

4 files changed

+11
-62
lines changed

4 files changed

+11
-62
lines changed

app/pages/recharging.vue

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -57,48 +57,6 @@ const icons = [
5757
'i-lucide:star',
5858
'i-lucide:moon',
5959
] as const
60-
61-
// --- .ics calendar reminder ---
62-
63-
// Format as UTC for the .ics file
64-
const fmt = (d: Date) =>
65-
d
66-
.toISOString()
67-
.replace(/[-:]/g, '')
68-
.replace(/\.\d{3}/, '')
69-
70-
// Pick a random daytime hour (9–17) in the user's local timezone on Feb 22
71-
// so reminders are staggered and people don't all flood in at once.
72-
function downloadIcs() {
73-
const hour = 9 + Math.floor(Math.random() * 9) // 9..17
74-
const start = new Date(2026, 1, 22, hour, 0, 0) // month is 0-indexed
75-
const end = new Date(2026, 1, 22, hour + 1, 0, 0)
76-
77-
const uid = `npmx-vacations-${start.getTime()}@npmx.dev`
78-
79-
const ics = [
80-
'BEGIN:VCALENDAR',
81-
'VERSION:2.0',
82-
'PRODID:-//npmx//recharging//EN',
83-
'BEGIN:VEVENT',
84-
`DTSTART:${fmt(start)}`,
85-
`DTEND:${fmt(end)}`,
86-
`SUMMARY:npmx Discord is back!`,
87-
`DESCRIPTION:The npmx team is back from vacation. Time to rejoin! https://chat.npmx.dev`,
88-
'STATUS:CONFIRMED',
89-
`UID:${uid}`,
90-
'END:VEVENT',
91-
'END:VCALENDAR',
92-
].join('\r\n')
93-
94-
const blob = new Blob([ics], { type: 'text/calendar;charset=utf-8' })
95-
const url = URL.createObjectURL(blob)
96-
const a = document.createElement('a')
97-
a.href = url
98-
a.download = 'npmx-discord-reminder.ics'
99-
a.click()
100-
URL.revokeObjectURL(url)
101-
}
10260
</script>
10361

10462
<template>
@@ -149,7 +107,7 @@ function downloadIcs() {
149107
</div>
150108

151109
<section class="prose prose-invert max-w-none space-y-8">
152-
<!-- What's happening -->
110+
<!-- What happened -->
153111
<div>
154112
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
155113
{{ $t('vacations.what.title') }}
@@ -238,11 +196,6 @@ function downloadIcs() {
238196
</template>
239197
</i18n-t>
240198
</p>
241-
242-
<!-- Add to calendar button -->
243-
<ButtonBase classicon="i-lucide:calendar" @click="downloadIcs">
244-
{{ $t('vacations.return.add_to_calendar') }}
245-
</ButtonBase>
246199
</div>
247200

248201
<div

i18n/locales/en.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,28 +1132,27 @@
11321132
},
11331133
"vacations": {
11341134
"title": "on vacation",
1135-
"meta_description": "The npmx team is recharging. Discord reopens in a week.",
1135+
"meta_description": "The npmx team was recharging. Discord reopened after a week.",
11361136
"heading": "recharging",
1137-
"subtitle": "we've been building npmx at a pace that has cost {some} of us sleep. we don't want that to be the norm! so we are taking a week off. together.",
1137+
"subtitle": "we were building npmx at a pace that was costing {some} of us sleep. we didn't want that to be the norm! so we took a week off. together.",
11381138
"illustration_alt": "a single row of cosy icons",
11391139
"poke_log": "Poke the campfire",
11401140
"what": {
1141-
"title": "what's happening",
1142-
"p1": "discord is closed {dates}.",
1141+
"title": "what happened",
1142+
"p1": "discord was closed {dates}.",
11431143
"dates": "February 14 – 21",
1144-
"p2": "all invite links are gone and channels are locked – except {garden}, which stays open for folks who want to keep hanging out.",
1144+
"p2": "all invite links were gone and channels were locked – except {garden}, which stayed open for folks who wanted to keep hanging out.",
11451145
"garden": "#garden"
11461146
},
11471147
"meantime": {
11481148
"title": "in the meantime",
1149-
"p1": "{site} and {repo} stay open – dig in, file issues, open PRs. we'll get to everything when we're back. just don't expect a fast review. we'll be somewhere near a cosy fireplace.",
1149+
"p1": "{site} and {repo} stayed open – people still dug in, filed some issues, opened a few PRs, but mainly everyone spent time somewhere near a cosy fireplace.",
11501150
"repo_link": "the repo"
11511151
},
11521152
"return": {
1153-
"title": "see you soon",
1154-
"p1": "we'll come back recharged and ready for the final push to March 3rd. {social} for updates.",
1155-
"social_link": "follow us on Bluesky",
1156-
"add_to_calendar": "remind me when Discord reopens"
1153+
"title": "we came back!",
1154+
"p1": "we came back recharged and ready for the final push to March 3rd. {social} for updates.",
1155+
"social_link": "follow us on Bluesky"
11571156
},
11581157
"stats": {
11591158
"contributors": "Contributors",

i18n/schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3462,9 +3462,6 @@
34623462
},
34633463
"social_link": {
34643464
"type": "string"
3465-
},
3466-
"add_to_calendar": {
3467-
"type": "string"
34683465
}
34693466
},
34703467
"additionalProperties": false

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"value": "chat.npmx.dev"
1111
}
1212
],
13-
"destination": "https://npmx.dev/recharging"
13+
"destination": "https://discord.gg/x9KE5U2q8w"
1414
},
1515
{
1616
"source": "/(.*)",

0 commit comments

Comments
 (0)