Skip to content

Commit 6d8ba7f

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/search-focus
2 parents 4c5b66d + b49c819 commit 6d8ba7f

6 files changed

Lines changed: 1512 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ The connector will check your npm authentication, generate a connection token, a
105105

106106
## Code style
107107

108+
When committing changes, try to keep an eye out for unintended formatting updates. These can make a pull request look noisier than it really is and slow down the review process. Sometimes IDEs automatically reformat files on save, which can unintentionally introduce extra changes.
109+
110+
To help with this, the project uses `oxfmt` to handle formatting via a pre-commit hook. The hook will automatically reformat files when needed. If something can’t be fixed automatically, it will let you know what needs to be updated before you can commit.
111+
112+
If you want to get ahead of any formatting issues, you can also run `pnpm lint:fix` before committing to fix formatting across the whole project.
113+
108114
### Typescript
109115

110116
- We care about good types – never cast things to `any` 💪

app/components/PackageSkeleton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
</div>
151151

152152
<!-- Sidebar: order-1 lg:order-2 space-y-8 -->
153-
<aside class="order-1 lg:order-2 space-y-8">
153+
<div class="order-1 lg:order-2 space-y-8">
154154
<!-- Maintainers -->
155155
<section>
156156
<h2
@@ -249,7 +249,7 @@
249249
</li>
250250
</ul>
251251
</section>
252-
</aside>
252+
</div>
253253
</div>
254254
</article>
255255
</template>

app/pages/[...package].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ function handleClick(event: MouseEvent) {
907907
</a>
908908
</h2>
909909
<!-- eslint-disable vue/no-v-html -- HTML is sanitized server-side -->
910-
<div
910+
<article
911911
v-if="readmeData?.html"
912912
class="readme-content prose prose-invert max-w-[70ch]"
913913
v-html="readmeData.html"
@@ -923,7 +923,7 @@ function handleClick(event: MouseEvent) {
923923

924924
<div class="area-sidebar">
925925
<!-- Sidebar -->
926-
<aside class="sticky top-20 space-y-6 sm:space-y-8 min-w-0 overflow-hidden">
926+
<div class="sticky top-20 space-y-6 sm:space-y-8 min-w-0 overflow-hidden">
927927
<!-- Maintainers (with admin actions when connected) -->
928928
<PackageMaintainers :package-name="pkg.name" :maintainers="pkg.maintainers" />
929929

@@ -1031,7 +1031,7 @@ function handleClick(event: MouseEvent) {
10311031
:peer-dependencies-meta="displayVersion.peerDependenciesMeta"
10321032
:optional-dependencies="displayVersion.optionalDependencies"
10331033
/>
1034-
</aside>
1034+
</div>
10351035
</div>
10361036
</article>
10371037

config/i18n.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
134134
file: 'de-DE.json',
135135
name: 'Deutsch',
136136
},
137-
/*{
138-
code: 'hu-HU',
139-
file: 'hu-HU.json',
140-
name: 'Magyar',
141-
},*/
137+
{
138+
code: 'hu-HU',
139+
file: 'hu-HU.json',
140+
name: 'Magyar',
141+
pluralRule: (choice: number) => {
142+
const name = new Intl.PluralRules('hu-HU').select(choice)
143+
return { zero: 0, one: 0, two: 1, few: 1, many: 1, other: 1 }[name]
144+
},
145+
},
142146
{
143147
code: 'zh-CN',
144148
file: 'zh-CN.json',

0 commit comments

Comments
 (0)