Skip to content

Commit 5b9c3a6

Browse files
Merge branch 'main' into fix/mobile-homepage-search-button
2 parents a500ca8 + 9b63f04 commit 5b9c3a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+227
-310
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ jobs:
139139
run: pnpm install
140140

141141
- name: 🔍 Check for unused code
142-
run: pnpm knip:production
142+
run: pnpm knip

app/components/AppHeader.vue

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ onKeyStroke(
7373
},
7474
{ dedupe: true },
7575
)
76+
77+
onKeyStroke(
78+
'c',
79+
e => {
80+
// Allow more specific handlers to take precedence
81+
if (e.defaultPrevented) return
82+
83+
// Don't trigger if user is typing in an input
84+
const target = e.target as HTMLElement
85+
if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {
86+
return
87+
}
88+
89+
e.preventDefault()
90+
navigateTo('/compare')
91+
},
92+
{ dedupe: true },
93+
)
7694
</script>
7795

7896
<template>
@@ -158,10 +176,16 @@ onKeyStroke(
158176
<!-- Desktop: Compare link -->
159177
<NuxtLink
160178
to="/compare"
161-
class="hidden sm:inline-flex link-subtle font-mono text-sm items-center gap-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 rounded"
179+
class="hidden sm:inline-flex link-subtle font-mono text-sm items-center gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 rounded"
180+
aria-keyshortcuts="c"
162181
>
163-
<span class="i-carbon:compare w-4 h-4" aria-hidden="true" />
164182
{{ $t('nav.compare') }}
183+
<kbd
184+
class="inline-flex items-center justify-center w-5 h-5 text-xs bg-bg-muted border border-border rounded"
185+
aria-hidden="true"
186+
>
187+
c
188+
</kbd>
165189
</NuxtLink>
166190

167191
<!-- Desktop: Settings link -->

app/components/ViewModeToggle.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const viewMode = defineModel<ViewMode>({ default: 'cards' })
1818
:aria-label="$t('filters.view_mode.cards')"
1919
@click="viewMode = 'cards'"
2020
>
21-
<span class="i-carbon-grid w-4 h-4" aria-hidden="true" />
21+
<span class="i-carbon-horizontal-view w-4 h-4" aria-hidden="true" />
2222
<span class="sr-only">{{ $t('filters.view_mode.cards') }}</span>
2323
</button>
2424
<button
@@ -29,7 +29,7 @@ const viewMode = defineModel<ViewMode>({ default: 'cards' })
2929
:aria-label="$t('filters.view_mode.table')"
3030
@click="viewMode = 'table'"
3131
>
32-
<span class="i-carbon-list w-4 h-4" aria-hidden="true" />
32+
<span class="i-carbon-table-split w-4 h-4" aria-hidden="true" />
3333
<span class="sr-only">{{ $t('filters.view_mode.table') }}</span>
3434
</button>
3535
</div>

app/composables/useAtproto.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { UserSession } from '#shared/schemas/userSession'
22

3-
/** @public */
43
export function useAtproto() {
54
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
65

app/composables/useCachedFetch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import type { CachedFetchResult } from '#shared/utils/fetch-cache-config'
2727
* )
2828
* }
2929
* ```
30-
* @public
3130
*/
3231
export function useCachedFetch(): CachedFetchFunction {
3332
// On client, return a function that just uses $fetch (no caching, not stale)

app/composables/useCharts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ function getNpmPackageCreationDate(packument: PackumentLikeForTime): string | nu
286286
return versionDates[0] ?? null
287287
}
288288

289-
/** @public */
290289
export function useCharts() {
291290
function resolveDateRange(
292291
downloadEvolutionOptions: PackageDownloadEvolutionOptions,

app/composables/useConnector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ interface StateResponse {
5555
const STORAGE_KEY = 'npmx-connector'
5656
const DEFAULT_PORT = 31415
5757

58-
/** @public */
5958
export const useConnector = createSharedComposable(function useConnector() {
6059
// Persisted connection config
6160
const config = useState<{ token: string; port: number } | null>('connector-config', () => null)

app/composables/useFacetSelection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useRouteQuery } from '@vueuse/router'
55
/**
66
* Composable for managing comparison facet selection with URL sync.
77
*
8-
* @public
98
* @param queryParam - The URL query parameter name to use (default: 'facets')
109
*/
1110
export function useFacetSelection(queryParam = 'facets') {

app/composables/useFileTreeState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @public */
21
export function useFileTreeState(baseUrl: string) {
32
const stateKey = computed(() => `npmx-file-tree${baseUrl}`)
43

app/composables/useI18nStatus.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { I18nStatus, I18nLocaleStatus } from '#shared/types'
33
/**
44
* Composable for accessing translation status data from Lunaria.
55
* Provides information about translation progress for each locale.
6-
* @public
76
*/
87
export function useI18nStatus() {
98
const { locale } = useI18n()

0 commit comments

Comments
 (0)