Skip to content

Commit 2ecec7d

Browse files
authored
Merge branch 'main' into main
2 parents cf9e5e1 + 1df3966 commit 2ecec7d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ const route = useRoute()
1717
const chartModal = useModal('chart-modal')
1818
const hasChartModalTransitioned = shallowRef(false)
1919
20+
const modalTitle = computed(() => {
21+
const facet = route.query.facet as string | undefined
22+
if (facet === 'likes') return $t('package.trends.items.likes')
23+
if (facet === 'contributors') return $t('package.trends.items.contributors')
24+
return $t('package.trends.items.downloads')
25+
})
26+
2027
const isChartModalOpen = shallowRef<boolean>(false)
2128
2229
function handleModalClose() {
@@ -356,6 +363,7 @@ const config = computed(() => {
356363
padding: 0 !important;
357364
letter-spacing: 0.04rem;
358365
}
366+
359367
.vue-ui-sparkline text {
360368
font-family:
361369
Geist Mono,

0 commit comments

Comments
 (0)