Skip to content

Commit 0c47292

Browse files
committed
docs(Releases): add release reactions to selection display
1 parent d35c1ce commit 0c47292

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

β€Žpackages/docs/src/components/doc/Releases.vueβ€Ž

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@
1414
prepend-inner-icon="mdi-text-box-search-outline"
1515
return-object
1616
>
17+
<template #selection>
18+
<div class="d-flex align-center">
19+
<div class="me-1">{{ search?.tag_name }}</div>
20+
21+
&mdash;
22+
23+
<template v-for="(value, key) in reactions" :key="key">
24+
<template v-if="search?.reactions?.[key]">
25+
<span class="d-inline-flex align-center text-body-2 me-2">
26+
{{ value }}
27+
28+
<span class="text-caption">{{ search.reactions[key] }}</span>
29+
</span>
30+
</template>
31+
</template>
32+
</div>
33+
</template>
34+
1735
<template #item="{ item, props: itemProps }">
1836
<v-list-item
1937
v-if="item?.title"
@@ -42,7 +60,7 @@
4260
>
4361
<v-list-item v-if="publishedOn" lines="two">
4462
<v-list-item-title class="d-flex align-center">
45-
<i18n-t keypath="published-on">
63+
<i18n-t keypath="published">
4664
<template #date>
4765
<v-chip
4866
:text="publishedOn"
@@ -103,6 +121,15 @@
103121
import { version } from 'vuetify'
104122
import { wait } from '@/util/helpers'
105123
124+
const reactions = {
125+
'+1': 'πŸ‘',
126+
hooray: 'πŸŽ‰',
127+
rocket: 'πŸš€',
128+
laugh: 'πŸ˜‚',
129+
heart: '❀️',
130+
eyes: 'πŸ‘€',
131+
}
132+
106133
const { t } = useI18n()
107134
const date = useDate()
108135
const route = useRoute()

β€Žpackages/docs/src/i18n/messages/en.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"professional-support": "Professional support",
171171
"progress": "Progress",
172172
"providers": "Providers",
173-
"published-on": "Published on {date}",
173+
"published": "Published: {date}",
174174
"pwa": {
175175
"install": "Install Vuetify Documentation",
176176
"new-content-available": "New content is available. Click **Refresh** to update.",

0 commit comments

Comments
Β (0)