Skip to content

Commit e32753e

Browse files
authored
Merge branch 'main' into cta-section-card-headings
2 parents d8db586 + 3c9ab66 commit e32753e

21 files changed

Lines changed: 201 additions & 33 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,10 @@ jobs:
3232

3333
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
3434
name: Install pnpm
35-
with:
36-
cache: true
37-
38-
- name: 📦 Install dependencies
39-
run: pnpm install
35+
# pnpm cache skipped deliberately as the project is not actually installed here
4036

4137
- name: 🔠 Lint project
42-
run: pnpm lint
38+
run: node scripts/lint.ts
4339

4440
test:
4541
runs-on: ubuntu-latest

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313

1414
## Vision
1515

16-
The aim of [npmx.dev](https://npmx.dev) is to provide a better browser for the npm registry – fast, modern, and accessible. We don't aim to replace the [npmjs.com](https://www.npmjs.com/) registry, just provide a better UI, DX, and admin experience.
16+
The goal of [npmx.dev](https://npmx.dev) is to build a fast, modern browser for the npm registry.
1717

18-
- **Speed first** – Layout shift, flakiness, slowness is The Worst. Fast searching, filtering, and navigation.
19-
- **URL compatible** – Replace `npmjs.com` with `xnpmjs.com` or `npmx.dev` in any URL and it just works.
20-
- **Simplicity** – No noise, cluttered display, or confusing UI. If in doubt: choose simplicity.
21-
- **Admin UI** – Manage your packages, teams, and organizations from the browser, powered by your local npm CLI.
18+
We're not replacing the [npmjs.com](https://www.npmjs.com/) registry, but instead providing an elevated developer experience through a fast, modern UI.
19+
20+
What npmx offers:
21+
22+
- **Speed** – Fast searching, filtering, and navigation.
23+
- **Simplicity** – Get the information you need when you need it in an intuitive UI.
24+
- **Compatibility** – Replace `npmjs.com` with `xnpmjs.com` or `npmx.dev` in any URL and it just works.
25+
- **Enhanced admin experience** – Manage your packages, teams, and organizations from the browser, powered by your local npm CLI.
2226

2327
## Shortcuts
2428

@@ -36,7 +40,7 @@ The aim of [npmx.dev](https://npmx.dev) is to provide a better browser for the n
3640

3741
### Package browsing
3842

39-
- **Dark mode by default** – easier on the eyes
43+
- **Dark mode and light mode** – plus customize the color palette to your preferences
4044
- **Fast search** – quick package search with instant results
4145
- **Package details** – READMEs, versions, dependencies, and metadata
4246
- **Code viewer** – browse package source code with syntax highlighting and permalink to specific lines
@@ -100,7 +104,7 @@ The aim of [npmx.dev](https://npmx.dev) is to provide a better browser for the n
100104

101105
### npm compatibility
102106

103-
npmx.dev supports npm permalinks – just replace `npmjs.com` with `npmx.dev` or `xnpmjs.com` and it works:
107+
npmx.dev supports npm permalinks – just replace `npmjs.com` with `npmx.dev` or `xnpmjs.com` to get the npmx experience:
104108

105109
| npm URL | npmx.dev equivalent |
106110
| ------------------------------- | ---------------------------------------------------------------------- |
@@ -142,7 +146,7 @@ npmx.dev also supports shorter, cleaner URLs:
142146

143147
## Contributing
144148

145-
We welcome contributions – please do feel free to poke around and improve things. See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to get up and running!
149+
We welcome contributions – please do feel free to explore the project and improve things. See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to get up and running!
146150

147151
## Related projects
148152

@@ -151,6 +155,7 @@ We welcome contributions – please do feel free to poke around and improve
151155
- [npm-userscript](https://github.com/bluwy/npm-userscript) – Browser userscript with various improvements and fixes for npmjs.com
152156
- [npm-alt](https://npm.willow.sh/) – An alternative npm package browser
153157
- [npkg.lorypelli.dev](https://npkg.lorypelli.dev/) – An alternative frontend to npm made with as little client-side JavaScript as possible
158+
- [vscode-npmx](https://github.com/npmx-dev/vscode-npmx) – VSCode extension for npmx
154159

155160
If you're building something cool, let us know! 🙏
156161

File renamed without changes.

app/components/Header/MobileMenu.vue renamed to app/components/Header/MobileMenu.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ onUnmounted(deactivate)
5858
>
5959
<div
6060
v-if="isOpen"
61-
class="fixed inset-0 z-50 sm:hidden"
61+
class="fixed inset-0 z-[60] sm:hidden"
6262
role="dialog"
6363
aria-modal="true"
6464
:aria-label="$t('nav.mobile_menu')"

app/composables/useAtproto.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import type { UserSession } from '#shared/schemas/userSession'
22

33
export function useAtproto() {
4-
if (import.meta.server) {
5-
return {
6-
user: ref(null),
7-
pending: ref(false),
8-
logout: async () => {},
9-
}
10-
}
11-
12-
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
4+
const {
5+
data: user,
6+
pending,
7+
clear,
8+
} = useFetch<UserSession | null>('/api/auth/session', {
9+
server: false,
10+
immediate: !import.meta.test,
11+
})
1312

1413
async function logout() {
1514
await $fetch('/api/auth/session', {

i18n/locales/zh-CN.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@
193193
},
194194
"create": {
195195
"title": "创建新项目",
196-
"copy_command": "拷贝创建命令"
196+
"copy_command": "拷贝创建命令",
197+
"view": "{packageName} 由同一位维护者维护,点击查看详情"
197198
},
198199
"run": {
199200
"title": "运行",
@@ -202,7 +203,8 @@
202203
"readme": {
203204
"title": "Readme",
204205
"no_readme": "没有可用的 README。",
205-
"view_on_github": "在 GitHub 上查看"
206+
"view_on_github": "在 GitHub 上查看",
207+
"toc_title": "大纲"
206208
},
207209
"keywords_title": "关键词",
208210
"compatibility": "兼容性",

0 commit comments

Comments
 (0)