Skip to content

Commit da5ca70

Browse files
[autofix.ci] apply automated fixes
1 parent e1a4e05 commit da5ca70

7 files changed

Lines changed: 14 additions & 21 deletions

File tree

app/components/Package/Dependencies.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@ const sortedOptionalDependencies = computed(() => {
161161
class="flex items-center justify-between py-1 text-sm gap-1 min-w-0"
162162
>
163163
<div class="flex items-center gap-1 min-w-0 flex-1">
164-
<LinkBase
165-
:to="packageRoute(peer.name)"
166-
class="truncate"
167-
>
164+
<LinkBase :to="packageRoute(peer.name)" class="truncate">
168165
{{ peer.name }}
169166
</LinkBase>
170167
<TagStatic v-if="peer.optional" :title="$t('package.dependencies.optional')">
@@ -219,11 +216,7 @@ const sortedOptionalDependencies = computed(() => {
219216
<LinkBase :to="packageRoute(dep)" class="truncate">
220217
{{ dep }}
221218
</LinkBase>
222-
<LinkBase
223-
:to="packageRoute(dep, version)"
224-
class="truncate"
225-
:title="version"
226-
>
219+
<LinkBase :to="packageRoute(dep, version)" class="truncate" :title="version">
227220
{{ version }}
228221
</LinkBase>
229222
</li>

app/pages/index.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ defineOgImageComponent('Default', {
121121
>
122122
<ul class="flex flex-wrap items-center justify-center gap-x-6 gap-y-3 list-none m-0 p-0">
123123
<li v-for="framework in SHOWCASED_FRAMEWORKS" :key="framework.name">
124-
<LinkBase
125-
:to="packageRoute(framework.package)"
126-
class="gap-2"
127-
>
124+
<LinkBase :to="packageRoute(framework.package)" class="gap-2">
128125
<span
129126
class="w-1 h-1 rounded-full bg-accent group-hover:bg-fg transition-colors duration-200"
130127
/>

app/pages/org/[org].vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ defineOgImageComponent('Default', {
244244
<p class="text-fg-muted mb-4">
245245
{{ error?.message ?? $t('org.page.failed_to_load') }}
246246
</p>
247-
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{ $t('common.go_back_home') }}</LinkBase>
247+
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{
248+
$t('common.go_back_home')
249+
}}</LinkBase>
248250
</div>
249251

250252
<!-- Empty state -->

app/pages/package-code/[...path].vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,7 @@ defineOgImageComponent('Default', {
371371
<div v-if="!version" class="container py-20 text-center">
372372
<p class="text-fg-muted mb-4">{{ $t('code.version_required') }}</p>
373373
<LinkBase variant="button-secondary" :to="packageRoute(packageName)">{{
374-
375374
$t('code.go_to_package')
376-
377375
}}</LinkBase>
378376
</div>
379377

@@ -387,9 +385,7 @@ defineOgImageComponent('Default', {
387385
<div v-else-if="treeStatus === 'error'" class="container py-20 text-center" role="alert">
388386
<p class="text-fg-muted mb-4">{{ $t('code.failed_to_load_tree') }}</p>
389387
<LinkBase variant="button-secondary" :to="packageRoute(packageName, version)">{{
390-
391388
$t('code.back_to_package')
392-
393389
}}</LinkBase>
394390
</div>
395391

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,9 @@ onKeyStroke(
11891189
<p class="text-fg-muted mb-8">
11901190
{{ error?.message ?? $t('package.not_found_message') }}
11911191
</p>
1192-
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{ $t('common.go_back_home') }}</LinkBase>
1192+
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{
1193+
$t('common.go_back_home')
1194+
}}</LinkBase>
11931195
</div>
11941196
</main>
11951197
</template>

app/pages/~[username]/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ defineOgImageComponent('Default', {
228228
<p class="text-fg-muted mb-4">
229229
{{ error?.message ?? $t('user.page.failed_to_load') }}
230230
</p>
231-
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{ $t('common.go_back_home') }}</LinkBase>
231+
<LinkBase variant="button-secondary" :to="{ name: 'index' }">{{
232+
$t('common.go_back_home')
233+
}}</LinkBase>
232234
</div>
233235

234236
<!-- Package list -->

app/pages/~[username]/orgs.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ defineOgImageComponent('Default', {
160160
<!-- Not own profile state -->
161161
<div v-else-if="!isOwnProfile" class="py-12 text-center">
162162
<p class="text-fg-muted">{{ $t('user.orgs_page.own_orgs_only') }}</p>
163-
<LinkBase variant="button-secondary"
163+
<LinkBase
164+
variant="button-secondary"
164165
:to="{ name: '~username-orgs', params: { username: npmUser! } }"
165166
class="mt-4"
166167
>{{ $t('user.orgs_page.view_your_orgs') }}</LinkBase

0 commit comments

Comments
 (0)