Skip to content

Commit 05f4d3d

Browse files
committed
refactor: use #shared/ alias
1 parent e024236 commit 05f4d3d

13 files changed

Lines changed: 23 additions & 28 deletions

app/components/ColumnPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { ColumnConfig, ColumnId } from '~~/shared/types/preferences'
2+
import type { ColumnConfig, ColumnId } from '#shared/types/preferences'
33
44
const props = defineProps<{
55
columns: ColumnConfig[]

app/components/FilterChips.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { FilterChip } from '~~/shared/types/preferences'
2+
import type { FilterChip } from '#shared/types/preferences'
33
44
defineProps<{
55
chips: FilterChip[]

app/components/FilterPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import type {
55
SecurityFilter,
66
StructuredFilters,
77
UpdatedWithin,
8-
} from '~~/shared/types/preferences'
8+
} from '#shared/types/preferences'
99
import {
1010
DOWNLOAD_RANGES,
1111
SEARCH_SCOPE_OPTIONS,
1212
SECURITY_FILTER_OPTIONS,
1313
UPDATED_WITHIN_OPTIONS,
14-
} from '~~/shared/types/preferences'
14+
} from '#shared/types/preferences'
1515
1616
const props = defineProps<{
1717
filters: StructuredFilters

app/components/PackageList.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<script setup lang="ts">
22
import type { NpmSearchResult } from '#shared/types'
33
import type { WindowVirtualizerHandle } from '~/composables/useVirtualInfiniteScroll'
4-
import type {
5-
ColumnConfig,
6-
PaginationMode,
7-
SortOption,
8-
ViewMode,
9-
} from '~~/shared/types/preferences'
10-
import { DEFAULT_COLUMNS } from '~~/shared/types/preferences'
4+
import type { ColumnConfig, PaginationMode, SortOption, ViewMode } from '#shared/types/preferences'
5+
import { DEFAULT_COLUMNS } from '#shared/types/preferences'
116
import { WindowVirtualizer } from 'virtua/vue'
127
138
const props = defineProps<{

app/components/PackageListToolbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import type {
1313
StructuredFilters,
1414
UpdatedWithin,
1515
ViewMode,
16-
} from '~~/shared/types/preferences'
16+
} from '#shared/types/preferences'
1717
import {
1818
buildSortOption,
1919
parseSortOption,
2020
SORT_KEYS,
2121
toggleDirection,
22-
} from '~~/shared/types/preferences'
22+
} from '#shared/types/preferences'
2323
2424
const props = defineProps<{
2525
filters: StructuredFilters

app/components/PackageTable.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import type { NpmSearchResult } from '~~/shared/types/npm-registry'
3-
import type { ColumnConfig, ColumnId, SortKey, SortOption } from '~~/shared/types/preferences'
4-
import { buildSortOption, parseSortOption, toggleDirection } from '~~/shared/types/preferences'
2+
import type { NpmSearchResult } from '#shared/types/npm-registry'
3+
import type { ColumnConfig, ColumnId, SortKey, SortOption } from '#shared/types/preferences'
4+
import { buildSortOption, parseSortOption, toggleDirection } from '#shared/types/preferences'
55
66
const props = defineProps<{
77
results: NpmSearchResult[]

app/components/PackageTableRow.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { NpmSearchResult } from '~~/shared/types/npm-registry'
3-
import type { ColumnConfig } from '~~/shared/types/preferences'
2+
import type { NpmSearchResult } from '#shared/types/npm-registry'
3+
import type { ColumnConfig } from '#shared/types/preferences'
44
55
const props = defineProps<{
66
result: NpmSearchResult

app/components/PaginationControls.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { PageSize, PaginationMode } from '~~/shared/types/preferences'
3-
import { PAGE_SIZE_OPTIONS } from '~~/shared/types/preferences'
2+
import type { PageSize, PaginationMode } from '#shared/types/preferences'
3+
import { PAGE_SIZE_OPTIONS } from '#shared/types/preferences'
44
55
const props = defineProps<{
66
mode: PaginationMode

app/components/ViewModeToggle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { ViewMode } from '~~/shared/types/preferences'
2+
import type { ViewMode } from '#shared/types/preferences'
33
44
const viewMode = defineModel<ViewMode>({ default: 'cards' })
55
</script>

app/composables/usePackageListPreferences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type {
88
PageSize,
99
PaginationMode,
1010
ViewMode,
11-
} from '~~/shared/types/preferences'
12-
import { DEFAULT_COLUMNS, DEFAULT_PREFERENCES } from '~~/shared/types/preferences'
11+
} from '#shared/types/preferences'
12+
import { DEFAULT_COLUMNS, DEFAULT_PREFERENCES } from '#shared/types/preferences'
1313

1414
/**
1515
* Composable for managing package list display preferences

0 commit comments

Comments
 (0)