Skip to content

Commit c33d7b5

Browse files
Merge branch 'main' into refactor/package-header-ui-distribution
2 parents 0157baa + 72b0507 commit c33d7b5

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

.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/middleware/canonical-redirects.global.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* - /package/docs/* → /package-docs/*
77
* - /docs/* → /package-docs/*
88
* - /org/* → /@*
9-
* - /* → /package/* (Unless its an existing page)
9+
* - /* → /package/* (Unless it's an existing page)
1010
*/
1111
export default defineNuxtRouteMiddleware(to => {
1212
// Only redirect on client-side to avoid breaking crawlers mid-transition
@@ -38,7 +38,7 @@ export default defineNuxtRouteMiddleware(to => {
3838
}
3939

4040
// Keep this one last as it will catch everything
41-
// /* → /package/* (Unless its an existing page)
41+
// /* → /package/* (Unless it's an existing page)
4242
if (path.startsWith('/') && !path.startsWith('/package/')) {
4343
const router = useRouter()
4444
const resolved = router.resolve(path)

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,33 @@ defineOgImageComponent('Package', {
11881188
min-width: 0;
11891189
}
11901190
1191+
.copy-button {
1192+
clip: rect(0 0 0 0);
1193+
clip-path: inset(50%);
1194+
height: 1px;
1195+
overflow: hidden;
1196+
width: 1px;
1197+
transition:
1198+
opacity 0.25s 0.1s,
1199+
translate 0.15s 0.1s,
1200+
clip 0.01s 0.34s allow-discrete,
1201+
clip-path 0.01s 0.34s allow-discrete,
1202+
height 0.01s 0.34s allow-discrete,
1203+
width 0.01s 0.34s allow-discrete;
1204+
}
1205+
1206+
.group:hover .copy-button,
1207+
.copy-button:focus-visible {
1208+
clip: auto;
1209+
clip-path: none;
1210+
height: auto;
1211+
overflow: visible;
1212+
width: auto;
1213+
transition:
1214+
opacity 0.15s,
1215+
translate 0.15s;
1216+
}
1217+
11911218
@media (hover: none) {
11921219
.copy-button {
11931220
display: none;

nuxt.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ export default defineNuxtConfig({
126126
compatibilityDate: '2026-01-31',
127127

128128
nitro: {
129-
experimental: {
130-
wasm: true,
131-
},
132129
externals: {
133130
inline: [
134131
'shiki',

0 commit comments

Comments
 (0)