Skip to content

Commit 43977e1

Browse files
authored
Merge branch 'main' into serhalp/feat/homepage-likes-stream
2 parents a88c182 + db64da9 commit 43977e1

9 files changed

Lines changed: 106 additions & 35 deletions

File tree

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<template>
2+
<TooltipApp interactive :tooltipAttr="{ class: 'w-[calc(100%-2rem)]! max-w-sm!' }">
3+
<template #content>
4+
<p class="text-sm font-medium text-fg mb-1">
5+
<span class="text-fg-subtle">
6+
// 27 May 2009 - nodejs Initial release
7+
<br />
8+
//&nbsp;<a
9+
href="https://github.com/nodejs/node-v0.x-archive/releases/tag/v0.0.1"
10+
target="_blank"
11+
rel="noopener noreferrer"
12+
class="underline"
13+
>github.com/nodejs/node-v0.x-archive/releases/tag/v0.0.1</a
14+
>
15+
</span>
16+
<br />
17+
<span class="text-badge-yellow">console</span>.<span class="text-badge-blue">log(</span
18+
><span class="text-badge-green">"Happy birthday, nodejs"</span
19+
><span class="text-badge-blue">)</span>
20+
</p>
21+
</template>
22+
<svg
23+
width="962"
24+
height="292"
25+
viewBox="0 0 962 292"
26+
fill="none"
27+
xmlns="http://www.w3.org/2000/svg"
28+
:alt="$t('alt_logo')"
29+
class="mb-8 mx-auto w-72 h-auto sm:w-92 max-w-full"
30+
>
31+
<path
32+
d="M269 198.684V86.2912L329 46.1509L389 86.2912V198.684L353 174.6V106.361L329 90.3053L305 106.361V174.6L269 198.684Z"
33+
fill="currentColor"
34+
stroke="currentColor"
35+
stroke-width="5"
36+
stroke-linejoin="round"
37+
/>
38+
<path
39+
d="M833 194.67V154.53L958 46.1509V86.2912L833 194.67Z"
40+
fill="currentColor"
41+
stroke="currentColor"
42+
stroke-width="5"
43+
stroke-linejoin="round"
44+
/>
45+
<path
46+
d="M958 194.67V154.53L833 46.1509V86.2912L958 194.67Z"
47+
fill="currentColor"
48+
stroke="currentColor"
49+
stroke-width="5"
50+
stroke-linejoin="round"
51+
/>
52+
<path
53+
d="M589 198.684V86.2912L649 46.1509L691 74.2491L733 46.1509L793 86.2912V174.6L757 198.684V106.361L733 90.3053L709 106.361V174.6L673 198.684V174.6V106.361L649 90.3053L625 106.361V174.6L589 198.684Z"
54+
fill="currentColor"
55+
/>
56+
<path
57+
d="M709 174.6H673V106.361L649 90.3053L625 106.361V174.6L589 198.684V86.2912L649 46.1509L709 86.2912V174.6ZM709 174.6L673 198.684V86.2912L733 46.1509L793 86.2912V174.6L757 198.684V106.361L733 90.3053L709 106.361V174.6Z"
58+
stroke="currentColor"
59+
stroke-width="5"
60+
stroke-linejoin="round"
61+
/>
62+
<path
63+
fill-rule="evenodd"
64+
clip-rule="evenodd"
65+
d="M429 86.2912V150.516V289L465 264.916L465 174.6L489 190.656L513 174.6L549 150.516V86.2912L489 46.1509L429 86.2912ZM513 130.446V106.361L489 90.3053L465 106.361L465 130.446L489 146.502L513 130.446Z"
66+
fill="currentColor"
67+
stroke="currentColor"
68+
stroke-width="5"
69+
stroke-linejoin="round"
70+
/>
71+
<path
72+
fill-rule="evenodd"
73+
clip-rule="evenodd"
74+
d="M52 158.544V182.628L28 198.684L4 182.628L4 158.544L28 142.488L52 158.544Z"
75+
fill="#689F63"
76+
stroke="#689F63"
77+
stroke-width="5"
78+
stroke-linejoin="round"
79+
/>
80+
<path
81+
d="M187 3H228L113 223.772H72L187 3Z"
82+
fill="#689F63"
83+
stroke="#689F63"
84+
stroke-width="5"
85+
stroke-linejoin="round"
86+
/>
87+
</svg>
88+
</TooltipApp>
89+
</template>

app/components/Noodle/Press/Logo.vue

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/components/Noodle/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import NoodleKawaiiLogo from './Kawaii/Logo.vue'
2-
import NoodlePressLogo from './Press/Logo.vue'
2+
import NoodleNodejsLogo from './Nodejs/Logo.vue'
33

44
export type Noodle = {
55
// Unique identifier for the noodle
@@ -28,11 +28,9 @@ export const PERMANENT_NOODLES: Noodle[] = [
2828
// Active noodles - shown based on date and timezone
2929
export const ACTIVE_NOODLES: Noodle[] = [
3030
{
31-
key: 'press',
32-
logo: NoodlePressLogo,
33-
date: '2026-05-01',
34-
dateTo: '2026-05-04',
31+
key: 'nodejs',
32+
logo: NoodleNodejsLogo,
33+
date: '2026-05-27',
3534
timezone: 'auto',
36-
tagline: false,
3735
},
3836
]

app/components/Package/TrendsChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ const normalisedDataset = computed(() => {
10671067
// oxlint-disable-next-line oxc-no-map-spread
10681068
return (chartData.value.dataset || []).map(d => {
10691069
const series = applyDataPipeline(
1070-
d.series.map(v => v ?? 0),
1070+
d.series.map(v => (typeof v === 'number' ? v : (v?.y ?? 0))),
10711071
{
10721072
averageWindow: settings.value.chartFilter.averageWindow,
10731073
smoothingTau: settings.value.chartFilter.smoothingTau,

app/components/Tooltip/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const props = defineProps<{
1212
defer?: boolean
1313
/** Offset distance in pixels (default: 4) */
1414
offset?: number
15+
/** Additional attributes to be applied to the tooltip element */
16+
tooltipAttr?: Record<string, unknown>
1517
}>()
1618
1719
const isVisible = shallowRef(false)
@@ -38,7 +40,7 @@ function hide() {
3840
}
3941
4042
const tooltipAttrs = computed(() => {
41-
const attrs: Record<string, unknown> = { role: 'tooltip', id: tooltipId }
43+
const attrs: Record<string, unknown> = { role: 'tooltip', id: tooltipId, ...props.tooltipAttr }
4244
if (props.interactive) {
4345
attrs.onMouseenter = show
4446
attrs.onMouseleave = hide

knip.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const config: KnipConfig = {
4343
ignoreFiles: [
4444
'app/components/Tooltip/Announce.vue',
4545
'app/components/UserCombobox.vue',
46+
'app/components/ColorScheme/Img.vue',
4647
'**/*.unused.*',
4748
],
4849
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"vite-plugin-pwa": "1.3.0",
111111
"vite-plus": "0.1.20",
112112
"vue": "3.5.34",
113-
"vue-data-ui": "3.19.8",
113+
"vue-data-ui": "3.20.10",
114114
"vue-router": "5.0.4"
115115
},
116116
"devDependencies": {

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/nuxt/a11y.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ import {
158158
ButtonBase,
159159
LandingIntroHeader,
160160
NoodleKawaiiLogo,
161-
NoodlePressLogo,
161+
NoodleNodejsLogo,
162162
LinkBase,
163163
CallToAction,
164164
ChangelogCard,
@@ -409,7 +409,7 @@ describe('component accessibility audits', () => {
409409
})
410410

411411
it('should have no accessibility violations', async () => {
412-
const component = await mountSuspended(NoodlePressLogo)
412+
const component = await mountSuspended(NoodleNodejsLogo)
413413
const results = await runAxe(component)
414414
expect(results.violations).toEqual([])
415415
})

0 commit comments

Comments
 (0)