diff --git a/app/pages/recharging.vue b/app/pages/recharging.vue deleted file mode 100644 index b84a6f6c1..000000000 --- a/app/pages/recharging.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - - diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 4c652248a..324091c23 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -1198,39 +1198,5 @@ "p1": "If you encounter an accessibility barrier on {app}, please let us know by opening an issue on our {link}. We take these reports seriously and will do our best to address them.", "link": "GitHub repository" } - }, - "vacations": { - "title": "on vacation", - "meta_description": "The npmx team was recharging. Discord reopened after a week.", - "heading": "recharging", - "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.", - "illustration_alt": "a single row of cosy icons", - "poke_log": "Poke the campfire", - "what": { - "title": "what happened", - "p1": "discord was closed {dates}.", - "dates": "February 14 – 21", - "p2": "all invite links were gone and channels were locked – except {garden}, which stayed open for folks who wanted to keep hanging out.", - "garden": "#garden" - }, - "meantime": { - "title": "in the meantime", - "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.", - "repo_link": "the repo" - }, - "return": { - "title": "we came back!", - "p1": "we came back recharged and ready for the final push to March 3rd. {social} for updates.", - "social_link": "follow us on Bluesky" - }, - "stats": { - "contributors": "Contributors", - "commits": "Commits", - "pr": "PRs Merged", - "subtitle": { - "some": "some", - "all": "all" - } - } } } diff --git a/i18n/schema.json b/i18n/schema.json index 5ce1bf37b..7242afd9c 100644 --- a/i18n/schema.json +++ b/i18n/schema.json @@ -3601,108 +3601,6 @@ }, "additionalProperties": false }, - "vacations": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "meta_description": { - "type": "string" - }, - "heading": { - "type": "string" - }, - "subtitle": { - "type": "string" - }, - "illustration_alt": { - "type": "string" - }, - "poke_log": { - "type": "string" - }, - "what": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "p1": { - "type": "string" - }, - "dates": { - "type": "string" - }, - "p2": { - "type": "string" - }, - "garden": { - "type": "string" - } - }, - "additionalProperties": false - }, - "meantime": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "p1": { - "type": "string" - }, - "repo_link": { - "type": "string" - } - }, - "additionalProperties": false - }, - "return": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "p1": { - "type": "string" - }, - "social_link": { - "type": "string" - } - }, - "additionalProperties": false - }, - "stats": { - "type": "object", - "properties": { - "contributors": { - "type": "string" - }, - "commits": { - "type": "string" - }, - "pr": { - "type": "string" - }, - "subtitle": { - "type": "object", - "properties": { - "some": { - "type": "string" - }, - "all": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, "$schema": { "type": "string" } diff --git a/lunaria/prepare-json-files.ts b/lunaria/prepare-json-files.ts index fe7b4abfd..15b38ffab 100644 --- a/lunaria/prepare-json-files.ts +++ b/lunaria/prepare-json-files.ts @@ -68,9 +68,7 @@ async function loadLocaleSourceJson(name: string): Promise { const rawJson = JSON.parse(await fs.readFile(path.resolve(`${localesFolder}/${name}`), 'utf8')) // Exclude $schema since it isn't useful in generated files and the relative - // TODO: removing vacations entry key for temporal recharging page - // would be wrong anyway - const { $schema: _, vacations: __, ...rest } = rawJson + const { $schema: _, ...rest } = rawJson return rest } diff --git a/nuxt.config.ts b/nuxt.config.ts index 1b2f963d0..616f19abe 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -114,10 +114,22 @@ export default defineNuxtConfig({ allowQuery: ['mode', 'filterOldVersions', 'filterThreshold'], }, }, - '/api/registry/docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, - '/api/registry/file/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, - '/api/registry/provenance/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, - '/api/registry/files/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, + '/api/registry/docs/**': { + isr: true, + cache: { maxAge: 365 * 24 * 60 * 60 }, + }, + '/api/registry/file/**': { + isr: true, + cache: { maxAge: 365 * 24 * 60 * 60 }, + }, + '/api/registry/provenance/**': { + isr: true, + cache: { maxAge: 365 * 24 * 60 * 60 }, + }, + '/api/registry/files/**': { + isr: true, + cache: { maxAge: 365 * 24 * 60 * 60 }, + }, '/api/registry/package-meta/**': { isr: 300 }, '/:pkg/.well-known/skills/**': { isr: 3600 }, '/:scope/:pkg/.well-known/skills/**': { isr: 3600 }, @@ -139,9 +151,13 @@ export default defineNuxtConfig({ // pages '/package/**': getISRConfig(60, { fallback: 'html' }), '/package/:name/_payload.json': getISRConfig(60, { fallback: 'json' }), - '/package/:name/v/:version/_payload.json': getISRConfig(60, { fallback: 'json' }), + '/package/:name/v/:version/_payload.json': getISRConfig(60, { + fallback: 'json', + }), '/package/:org/:name/_payload.json': getISRConfig(60, { fallback: 'json' }), - '/package/:org/:name/v/:version/_payload.json': getISRConfig(60, { fallback: 'json' }), + '/package/:org/:name/v/:version/_payload.json': getISRConfig(60, { + fallback: 'json', + }), // infinite cache (versioned - doesn't change) '/package-code/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, '/package-docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } }, @@ -153,7 +169,6 @@ export default defineNuxtConfig({ '/privacy': { prerender: true }, '/search': { isr: false, cache: false }, // never cache '/settings': { prerender: true }, - '/recharging': { prerender: true }, // proxy for insights '/_v/script.js': { proxy: 'https://npmx.dev/_vercel/insights/script.js' }, '/_v/view': { proxy: 'https://npmx.dev/_vercel/insights/view' }, diff --git a/scripts/compare-translations.ts b/scripts/compare-translations.ts index 75053b933..e0803e6b7 100644 --- a/scripts/compare-translations.ts +++ b/scripts/compare-translations.ts @@ -49,19 +49,21 @@ const populateLocaleCountries = (): void => { countries .get(lang)! .set(lang, createVariantInfo(lang, { forCountry: true, mergeLocale: false })) - countries - .get(lang)! - .set( - variant.code, - createVariantInfo(variant.code, { forCountry: true, mergeLocale: true }), - ) + countries.get(lang)!.set( + variant.code, + createVariantInfo(variant.code, { + forCountry: true, + mergeLocale: true, + }), + ) } else { - countries - .get(lang)! - .set( - variant.code, - createVariantInfo(variant.code, { forCountry: false, mergeLocale: true }), - ) + countries.get(lang)!.set( + variant.code, + createVariantInfo(variant.code, { + forCountry: false, + mergeLocale: true, + }), + ) } } } @@ -385,9 +387,6 @@ const run = async (): Promise => { lang: 'en', }) - // TODO: removing vacations entry key for temporal recharging page - delete referenceContent.vacations - // $schema is a JSON Schema reference, not a translation key delete referenceContent.$schema