Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jun 6, 2024
1 parent a70094d commit 6235748
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
>
<!-- When exactly one link, use primary link variant -->
<template
v-for="(link, _index_link) in item.links"
v-for="(link, index_link) in item.links"
:key="index_link"
>
<BaseLink
Expand Down
15 changes: 12 additions & 3 deletions packages/vue/src/components/HomepageStats/HomepageStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@
v-else-if="dataGenericStatsBlock.dateDisplay === 'static'"
class="text-stats-lg"
>
{{ dataGenericStatsBlock.date | displayDate }}
{{
// @ts-ignore
$filters.displayDate(dataGenericStatsBlock.date)
}}
</p>
<template v-else-if="dataGenericStatsBlock.dateDisplay === 'live'">
<component
Expand All @@ -123,7 +126,10 @@
<p class="text-gray-mid-dark flex flex-wrap mt-2 text-sm">
<span class="mr-1 -mb-3">Estimated:</span>
<span class="sm:whitespace-nowrap">
{{ dataGenericStatsBlock.date | displayDate('DateTime') }}
{{
// @ts-ignore
$filters.displayDate(dataGenericStatsBlock.date, 'DateTime')
}}
UTC
</span>
</p>
Expand Down Expand Up @@ -178,7 +184,10 @@
v-if="asteroidWatch.asteroidApproach.date"
class="text-stats-lg"
>
{{ asteroidWatch.asteroidApproach.date | displayDate }}
{{
// @ts-ignore
$filters.displayDate(asteroidWatch.asteroidApproach.date)
}}
</p>
<BaseUnitToggle
v-slot="slotProps"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
variant="primary"
:to="typeof link === 'object' ? link : undefined"
:href="typeof link != 'object' ? link : undefined"
v-on="$listeners"
v-bind="$attrs"
>
{{ linkTitle || link }}
</BaseLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default defineComponent({
if (this.path) {
return mixinIsActivePath(this.path)
}
return false
}
},
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}"
link-title="View all past events"
indent="col-1"
v-on="$listeners"
v-bind="$attrs"
>
<!-- Slides -->
<BlockLinkCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default defineComponent({
if (this.theData?.startDate) {
return mixinFormatEventDates(this.theData.startDate, this.theData.endDate)
}
return undefined
}
}
})
Expand Down

0 comments on commit 6235748

Please sign in to comment.