Skip to content

Commit d1c809a

Browse files
authored
Merge branch 'main' into feature/package-rigntbar-scroll
2 parents 943b08d + 06b93d3 commit d1c809a

7 files changed

Lines changed: 26 additions & 21 deletions

File tree

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

app/components/Header/MobileMenu.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: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
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-
124
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
135

146
async function logout() {

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": "兼容性",

lunaria/files/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": "兼容性",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"@vueuse/integrations": "14.2.0",
7171
"@vueuse/nuxt": "14.2.0",
7272
"@vueuse/router": "^14.2.0",
73+
"defu": "6.1.4",
7374
"focus-trap": "^7.8.0",
7475
"marked": "17.0.1",
7576
"module-replacements": "2.11.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)