Skip to content

Commit 23c778a

Browse files
committed
Merge remote-tracking branch 'origin/main' into test/fixtures
2 parents 9e61037 + 07ce0e4 commit 23c778a

8 files changed

Lines changed: 70 additions & 66 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666

6767
- name: Upload coverage reports to Codecov
6868
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
69+
env:
70+
CODECOV_TOKEN: 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9
6971

7072
browser:
7173
runs-on: ubuntu-latest

app/components/Header/ConnectorModal.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ function handleDisconnect() {
8181
<form v-else class="space-y-4" @submit.prevent="handleConnect">
8282
<!-- Contributor-only notice -->
8383
<div class="p-3 bg-amber-500/10 border border-amber-500/30 rounded-lg">
84-
<div class="space-y-2">
85-
<span
86-
class="inline-block px-2 py-0.5 text-xs font-bold uppercase tracking-wider bg-amber-500/20 text-amber-400 rounded"
87-
>
84+
<div>
85+
<span class="inline-block text-xs font-bold uppercase tracking-wider text-fg rounded">
8886
{{ $t('connector.modal.contributor_badge') }}
8987
</span>
9088
<p class="text-sm text-fg-muted">
@@ -94,7 +92,7 @@ function handleDisconnect() {
9492
href="https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"
9593
target="_blank"
9694
rel="noopener noreferrer"
97-
class="text-amber-400 hover:underline"
95+
class="text-blue-400 hover:underline"
9896
>
9997
{{ $t('connector.modal.contributor_link') }}
10098
</a>
@@ -213,7 +211,7 @@ function handleDisconnect() {
213211
role="alert"
214212
class="p-3 text-sm text-red-400 bg-red-500/10 border border-red-500/20 rounded-md"
215213
>
216-
<p class="font-mono text-sm text-fg font-bold">
214+
<p class="inline-block text-xs font-bold uppercase tracking-wider text-fg rounded">
217215
{{ $t('connector.modal.warning') }}
218216
</p>
219217
<p class="text-sm text-fg-muted">

app/components/Modal.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defineExpose({
2525
<dialog
2626
ref="dialogRef"
2727
closedby="any"
28-
class="w-full bg-bg border border-border rounded-lg shadow-xl max-h-[90vh] overflow-y-auto overscroll-contain m-0 m-auto p-6 text-white"
28+
class="w-full bg-bg border border-border rounded-lg shadow-xl max-h-[90vh] overflow-y-auto overscroll-contain m-0 m-auto p-6 text-fg"
2929
:aria-labelledby="modalTitleId"
3030
v-bind="$attrs"
3131
>

knip.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

knip.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import type { KnipConfig } from 'knip'
2+
3+
const config: KnipConfig = {
4+
workspaces: {
5+
'.': {
6+
entry: [
7+
'app/app.vue!',
8+
'app/error.vue!',
9+
'app/pages/**/*.vue!',
10+
'app/components/**/*.vue!',
11+
'app/composables/**/*.ts!',
12+
'app/middleware/**/*.ts!',
13+
'app/plugins/**/*.ts!',
14+
'app/utils/**/*.ts!',
15+
'server/**/*.ts!',
16+
'modules/**/*.ts!',
17+
'config/**/*.ts!',
18+
'lunaria/**/*.ts!',
19+
'shared/**/*.ts!',
20+
'i18n/**/*.ts',
21+
'lunaria.config.ts',
22+
'pwa-assets.config.ts',
23+
'.lighthouserc.cjs',
24+
'lighthouse-setup.cjs',
25+
'uno-preset-rtl.ts!',
26+
'scripts/**/*.ts',
27+
],
28+
project: ['**/*.{ts,vue,cjs,mjs}'],
29+
ignore: ['test/fixtures/**'],
30+
ignoreDependencies: [
31+
'@iconify-json/*',
32+
'@vercel/kv',
33+
'@voidzero-dev/vite-plus-core',
34+
'vite-plus!',
35+
'h3',
36+
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
37+
'unplugin-vue-router',
38+
'vite-plugin-pwa',
39+
40+
/** Some components import types from here, but installing it directly could lead to a version mismatch */
41+
'vue-router',
42+
],
43+
ignoreUnresolved: ['#components', '#oauth/config'],
44+
},
45+
'cli': {
46+
project: ['src/**/*.ts!'],
47+
},
48+
'docs': {
49+
entry: ['app/**/*.{ts,vue}'],
50+
ignoreDependencies: ['docus', 'better-sqlite3', 'nuxt!'],
51+
},
52+
},
53+
}
54+
55+
export default config

lighthouse-setup.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* If not set, defaults to 'dark'.
77
*/
88

9-
/** @param {import('puppeteer').Browser} browser */
109
module.exports = async function setup(browser, { url }) {
1110
const colorMode = process.env.LIGHTHOUSE_COLOR_MODE || 'dark'
1211
const page = await browser.newPage()

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@iconify-json/solar": "1.2.5",
5151
"@iconify-json/svg-spinners": "1.2.4",
5252
"@iconify-json/vscode-icons": "1.2.40",
53-
"@intlify/core-base": "11.2.8",
5453
"@intlify/shared": "11.2.8",
5554
"@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@f07e1a3",
5655
"@nuxt/a11y": "1.0.0-alpha.1",
@@ -74,6 +73,7 @@
7473
"@vueuse/nuxt": "14.2.0",
7574
"@vueuse/router": "^14.2.0",
7675
"defu": "6.1.4",
76+
"fast-npm-meta": "1.0.0",
7777
"focus-trap": "^7.8.0",
7878
"marked": "17.0.1",
7979
"module-replacements": "2.11.0",
@@ -99,6 +99,7 @@
9999
"vue-data-ui": "3.14.3"
100100
},
101101
"devDependencies": {
102+
"@intlify/core-base": "11.2.8",
102103
"@npm/types": "2.1.0",
103104
"@playwright/test": "1.58.1",
104105
"@types/node": "24.10.9",
@@ -110,7 +111,6 @@
110111
"@vue/test-utils": "2.4.6",
111112
"axe-core": "4.11.1",
112113
"fast-check": "4.5.3",
113-
"fast-npm-meta": "1.0.0",
114114
"knip": "5.83.0",
115115
"lint-staged": "16.2.7",
116116
"oxfmt": "0.27.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)