Skip to content

Commit d48ce59

Browse files
authored
Merge branch 'main' into fix-types-badge
2 parents 898ff61 + 84a7fc9 commit d48ce59

File tree

19 files changed

+1699
-1460
lines changed

19 files changed

+1699
-1460
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: welcome
1+
name: Claim Contributor Message
22

33
on:
44
pull_request_target:

.github/workflows/welcome-open.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Welcome Message
2+
3+
on:
4+
pull_request_target:
5+
branches: [main]
6+
types: [opened]
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
greeting:
13+
name: Greet First-Time Contributors
14+
if: github.repository == 'npmx-dev/npmx.dev'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: zephyrproject-rtos/action-first-interaction@58853996b1ac504b8e0f6964301f369d2bb22e5c
18+
with:
19+
pr-opened-message: |
20+
Hello! Thank you for opening your **first PR** to npmx, @${{ github.event.pull_request.user.login }}! 🚀
21+
22+
Here’s what will happen next:
23+
24+
1. Our GitHub bots will run to check your changes.
25+
If they spot any issues you will see some error messages on this PR.
26+
Don’t hesitate to ask any questions if you’re not sure what these mean!
27+
28+
2. In a few minutes, you’ll be able to see a preview of your changes on Vercel
29+
30+
3. One or more of our maintainers will take a look and may ask you to make changes.
31+
We try to be responsive, but don’t worry if this takes a few days.

app/composables/npm/usePackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function transformPackument(
3737
const timeA = pkg.time[a]
3838
const timeB = pkg.time[b]
3939
if (!timeA || !timeB) return 0
40-
return new Date(timeB).getTime() - new Date(timeA).getTime()
40+
return Date.parse(timeB) - Date.parse(timeA)
4141
})
4242
.slice(0, RECENT_VERSIONS_COUNT)
4343

app/composables/useStructuredFilters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export function useStructuredFilters(options: UseStructuredFiltersOptions) {
327327
diff = (a.downloads?.weekly ?? 0) - (b.downloads?.weekly ?? 0)
328328
break
329329
case 'updated':
330-
diff = new Date(a.package.date).getTime() - new Date(b.package.date).getTime()
330+
diff = Date.parse(a.package.date) - Date.parse(b.package.date)
331331
break
332332
case 'name':
333333
diff = a.package.name.localeCompare(b.package.name)

app/pages/search.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const displayResults = computed(() => {
234234
diff = (a.downloads?.weekly ?? 0) - (b.downloads?.weekly ?? 0)
235235
break
236236
case 'updated':
237-
diff = new Date(a.package.date).getTime() - new Date(b.package.date).getTime()
237+
diff = Date.parse(a.package.date) - Date.parse(b.package.date)
238238
break
239239
case 'name':
240240
diff = a.package.name.localeCompare(b.package.name)

config/i18n.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ export const countryLocaleVariants: Record<string, (LocaleObjectData & { country
3333
// { code: 'ar-AE', name: 'Arabic (U.A.E.)' },
3434
// { code: 'ar-YE', name: 'Arabic (Yemen)' },
3535
],
36+
de: [
37+
// de.json contains de-DE translations
38+
{ country: true, code: 'de-DE', name: 'Deutsch' },
39+
{ code: 'de-AT', name: 'Österreichisch' },
40+
],
3641
en: [
3742
// en.json contains en-US translations
3843
{ country: true, code: 'en-US', name: 'English (US)' },
@@ -158,8 +163,8 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
158163
name: 'Ελληνικά',
159164
},*/
160165
{
161-
code: 'de-DE',
162-
file: 'de-DE.json',
166+
code: 'de',
167+
file: 'de.json',
163168
name: 'Deutsch',
164169
},
165170
{

i18n/locales/de-AT.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "../schema.json",
3+
"footer": {
4+
"keyboard_shortcuts": "Tastaturkürzel"
5+
},
6+
"shortcuts": {
7+
"show_kbd_hints": "Tastaturkürzel hervorheben",
8+
"disable_shortcuts": "Tastaturkürzel können in den {settings} deaktiviert werden."
9+
},
10+
"settings": {
11+
"sections": {
12+
"keyboard_shortcuts": "Tastaturkürzel"
13+
},
14+
"keyboard_shortcuts_enabled": "Tastaturkürzel aktivieren",
15+
"keyboard_shortcuts_enabled_description": "Tastaturkürzel können deaktiviert werden, wenn sie mit anderen Browser- oder Systemkürzeln in Konflikt stehen"
16+
},
17+
"search": {
18+
"instant_search": "Schnellsuche",
19+
"instant_search_on": "Schnellsuche aktiviert",
20+
"instant_search_off": "Schnellsuche deaktiviert",
21+
"instant_search_turn_on": "Schnellsuche aktivieren",
22+
"instant_search_turn_off": "Schnellsuche deaktivieren",
23+
"instant_search_advisory": "Die Schnellsuche sendet bei jedem Tastendruck eine Anfrage."
24+
}
25+
}

0 commit comments

Comments
 (0)