From 40615992ccfc71348a8bca8f9930f9900fc3d88a Mon Sep 17 00:00:00 2001 From: Vordgi Date: Wed, 8 Apr 2026 14:38:31 +0100 Subject: [PATCH 1/9] feat: configure noodles infra --- app/components/ColorScheme/Img.vue | 20 ++++ app/components/Landing/IntroHeader.vue | 136 +++++++++++++++++++++++++ app/components/LandingLogo.vue | 76 -------------- app/components/Noodle/Kawaii/Logo.vue | 8 ++ app/components/Noodle/Tkawaii/Logo.vue | 8 ++ app/components/Noodle/index.ts | 38 +++++++ app/pages/index.vue | 4 +- 7 files changed, 212 insertions(+), 78 deletions(-) create mode 100644 app/components/ColorScheme/Img.vue create mode 100644 app/components/Landing/IntroHeader.vue delete mode 100644 app/components/LandingLogo.vue create mode 100644 app/components/Noodle/Kawaii/Logo.vue create mode 100644 app/components/Noodle/Tkawaii/Logo.vue create mode 100644 app/components/Noodle/index.ts diff --git a/app/components/ColorScheme/Img.vue b/app/components/ColorScheme/Img.vue new file mode 100644 index 0000000000..e0d662800a --- /dev/null +++ b/app/components/ColorScheme/Img.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/app/components/Landing/IntroHeader.vue b/app/components/Landing/IntroHeader.vue new file mode 100644 index 0000000000..8f2c407214 --- /dev/null +++ b/app/components/Landing/IntroHeader.vue @@ -0,0 +1,136 @@ + + + diff --git a/app/components/LandingLogo.vue b/app/components/LandingLogo.vue deleted file mode 100644 index 6fa385c2c6..0000000000 --- a/app/components/LandingLogo.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/app/components/Noodle/Kawaii/Logo.vue b/app/components/Noodle/Kawaii/Logo.vue new file mode 100644 index 0000000000..861ba291cb --- /dev/null +++ b/app/components/Noodle/Kawaii/Logo.vue @@ -0,0 +1,8 @@ + diff --git a/app/components/Noodle/Tkawaii/Logo.vue b/app/components/Noodle/Tkawaii/Logo.vue new file mode 100644 index 0000000000..282dd3dcaa --- /dev/null +++ b/app/components/Noodle/Tkawaii/Logo.vue @@ -0,0 +1,8 @@ + diff --git a/app/components/Noodle/index.ts b/app/components/Noodle/index.ts new file mode 100644 index 0000000000..9df8504757 --- /dev/null +++ b/app/components/Noodle/index.ts @@ -0,0 +1,38 @@ +import NoodleKawaiiLogo from './Kawaii/Logo.vue' +import NoodleTkawaiiLogo from './Tkawaii/Logo.vue' + +export type Noodle = { + // Unique identifier for the noodle + key: string + // Timezone for the noodle (default is auto, i.e. user's timezone) + timezone?: string + // Date for the noodle + date?: string + // Logo for the noodle - could be any component. Relative parent - intro section + logo: Component + // Show npmx tagline or not (default is true) + tagline?: boolean +} + +// Archive noodles - might be shown on special page +export const ARCHIVE_NOODLES: Noodle[] = [ + { + key: 'tkawaii', + date: '2026-04-08T12:00:00UTC', + timezone: 'auto', + logo: NoodleTkawaiiLogo, + tagline: false, + }, +] + +// Permanent noodles - always shown on specific query param (e.g. ?kawaii) +export const PERMANENT_NOODLES: Noodle[] = [ + { + key: 'kawaii', + logo: NoodleKawaiiLogo, + tagline: false, + }, +] + +// Active noodles - shown based on date and timezone +export const ACTIVE_NOODLES: Noodle[] = [] diff --git a/app/pages/index.vue b/app/pages/index.vue index 48c5575b00..c73c261d83 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -26,11 +26,11 @@ defineOgImageComponent('Default', { diff --git a/test/nuxt/a11y.spec.ts b/test/nuxt/a11y.spec.ts index f31621a681..a6cf7f4e3c 100644 --- a/test/nuxt/a11y.spec.ts +++ b/test/nuxt/a11y.spec.ts @@ -158,7 +158,6 @@ import { LandingIntroHeader, NoodleKawaiiLogo, NoodleArtemisLogo, - NoodleTkawaiiLogo, LinkBase, CallToAction, CodeDirectoryListing, @@ -372,12 +371,6 @@ describe('component accessibility audits', () => { const results = await runAxe(component) expect(results.violations).toEqual([]) }) - - it('should have no accessibility violations', async () => { - const component = await mountSuspended(NoodleTkawaiiLogo) - const results = await runAxe(component) - expect(results.violations).toEqual([]) - }) }) describe('AppFooter', () => { From d0bd08f7b4bfe552e57fbaa5b929c265d7cc8807 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:29:06 +0000 Subject: [PATCH 9/9] [autofix.ci] apply automated fixes --- app/components/Landing/IntroHeader.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/components/Landing/IntroHeader.vue b/app/components/Landing/IntroHeader.vue index c93ef68725..1af2f03386 100644 --- a/app/components/Landing/IntroHeader.vue +++ b/app/components/Landing/IntroHeader.vue @@ -61,12 +61,14 @@ onPrehydrate(el => { year: 'numeric', }).format(new Date()) - const noodleDate = noodle.date && new Intl.DateTimeFormat('en-US', { - timeZone: noodle.timezone === 'auto' ? undefined : noodle.timezone, - month: '2-digit', - day: '2-digit', - year: 'numeric', - }).format(new Date(noodle.date)) + const noodleDate = + noodle.date && + new Intl.DateTimeFormat('en-US', { + timeZone: noodle.timezone === 'auto' ? undefined : noodle.timezone, + month: '2-digit', + day: '2-digit', + year: 'numeric', + }).format(new Date(noodle.date)) return todayDate === noodleDate })