Skip to content

Commit 9d00a33

Browse files
authored
Merge branch 'main' into feat/endpoint-badge
2 parents 8635172 + 929e2e5 commit 9d00a33

196 files changed

Lines changed: 6530 additions & 34828 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
node-version: lts/*
3232

33-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
33+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
3434
name: 🟧 Install pnpm
3535
with:
3636
cache: true

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ jobs:
154154
run: pnpm build:test
155155
env:
156156
VALIDATE_HTML: true
157-
NODE_OPTIONS: --max-old-space-size=6144
158157

159158
- name: 🖥️ Test project (browser)
160159
run: pnpm test:browser:prebuilt
@@ -183,8 +182,6 @@ jobs:
183182

184183
- name: 🏗️ Build project
185184
run: pnpm build:test
186-
env:
187-
NODE_OPTIONS: --max-old-space-size=6144
188185

189186
- name: ♿ Accessibility audit (Lighthouse - ${{ matrix.mode }} mode)
190187
run: pnpm test:a11y:prebuilt

.github/workflows/semantic-pull-requests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
scopes: |
2626
a11y
27+
blog
2728
deps
2829
docs
2930
cli

.storybook/.public/favicon.svg

Lines changed: 55 additions & 0 deletions
Loading
Lines changed: 96 additions & 0 deletions
Loading

.storybook/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@ const config = {
44
stories: ['../app/**/*.stories.@(js|ts)'],
55
addons: ['@storybook/addon-a11y', '@storybook/addon-docs', '@storybook/addon-themes'],
66
framework: '@storybook-vue/nuxt',
7+
staticDirs: ['./.public'],
78
features: {
89
backgrounds: false,
910
},
1011
async viteFinal(config) {
12+
config.plugins ??= []
13+
14+
config.plugins.push({
15+
name: 'ignore-internals',
16+
transform(_, id) {
17+
if (id.includes('/app/pages/blog/') && id.endsWith('.md')) {
18+
return 'export default {}'
19+
}
20+
},
21+
})
1122
// Replace the built-in vue-docgen plugin with a fault-tolerant version.
1223
// vue-docgen-api can crash on components that import types from other
1324
// .vue files (it tries to parse the SFC with @babel/parser as plain TS).

.storybook/manager.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { addons } from 'storybook/manager-api'
2+
import { create } from 'storybook/theming'
3+
4+
const npmxTheme = create({
5+
brandTitle: 'npmx Storybook',
6+
brandImage: '/npmx-storybook.svg',
7+
})
8+
9+
addons.setConfig({
10+
theme: npmxTheme,
11+
})

CONTRIBUTING.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ The following scripts help manage translation files. `en.json` is the reference
466466
| `pnpm i18n:check:fix [locale]` | Same as check, but adds missing keys to other locales with English placeholders. |
467467
| `pnpm i18n:report` | Audits translation keys against code usage in `.vue` and `.ts` files. Reports missing keys (used in code but not in locale), unused keys (in locale but not in code), and dynamic keys. |
468468
| `pnpm i18n:report:fix` | Removes unused keys from `en.json` and all other locale files. |
469+
| `pnpm i18n:schema` | Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
469470

470471
### Adding a new locale
471472

@@ -491,17 +492,8 @@ To add a new locale:
491492
},
492493
```
493494

494-
4. Copy your translation file to `lunaria/files/` for translation tracking:
495-
496-
```bash
497-
cp i18n/locales/uk-UA.json lunaria/files/uk-UA.json
498-
```
499-
500-
> **Important:**
501-
> This file must be committed. Lunaria uses git history to track translation progress, so the build will fail if this file is missing.
502-
503-
5. If the language is `right-to-left`, add `dir: 'rtl'` (see `ar-EG` in config for example)
504-
6. If the language requires special pluralization rules, add a `pluralRule` callback (see `ar-EG` or `ru-RU` in config for examples)
495+
4. If the language is `right-to-left`, add `dir: 'rtl'` (see `ar-EG` in config for example)
496+
5. If the language requires special pluralization rules, add a `pluralRule` callback (see `ar-EG` or `ru-RU` in config for examples)
505497

506498
Check [Pluralization rule callback](https://vue-i18n.intlify.dev/guide/essentials/pluralization#custom-pluralization) and [Plural Rules](https://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories) for more info.
507499

@@ -1032,7 +1024,7 @@ Format: `type(scope): description`
10321024
10331025
**Types:** `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`
10341026
1035-
**Scopes (optional):** `docs`, `i18n`, `deps`
1027+
**Scopes (optional):** `a11y`, `blog`, `deps`, `docs`, `cli`, `i18n`, `ui`
10361028
10371029
**Examples:**
10381030

app/app.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ if (import.meta.client) {
118118
useEventListener(document, 'click', handleModalLightDismiss)
119119
}
120120
}
121-
122-
// title and description will be inferred
123-
// this will be overridden by upstream pages that use different templates
124-
defineOgImage('Page.takumi')
125121
</script>
126122

127123
<template>
@@ -133,6 +129,10 @@ defineOgImage('Page.takumi')
133129

134130
<AppHeader :show-logo="!isHomepage" />
135131

132+
<NuxtRouteAnnouncer v-slot="{ message }">
133+
{{ route.name === 'search' ? `${$t('search.title_packages')} - npmx` : message }}
134+
</NuxtRouteAnnouncer>
135+
136136
<div id="main-content" class="flex-1 flex flex-col" tabindex="-1">
137137
<NuxtPage />
138138
</div>

app/assets/logos/sponsors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const SPONSORS = [
3737
dark: LogoVlt,
3838
light: LogoVltLight,
3939
},
40-
normalisingIndent: '0.25rem',
40+
normalisingIndent: '0.875rem',
4141
url: 'https://vlt.sh/',
4242
},
4343
]

0 commit comments

Comments
 (0)