@apptegy/nuxt-navigation 0.1.123 → 0.1.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -117,11 +117,13 @@
|
|
|
117
117
|
>{{ emoji }}</span>
|
|
118
118
|
</span>
|
|
119
119
|
<span class="notification-item__summary-on">
|
|
120
|
-
{{ $t("navigation.notificationsPanel.summaryOn") }}
|
|
120
|
+
{{ " " }}{{ $t("navigation.notificationsPanel.summaryOn") }}{{ " " }}
|
|
121
121
|
</span>
|
|
122
|
-
{{ " " }}
|
|
123
122
|
</template>
|
|
124
|
-
<span class="notification-item__summary-text">
|
|
123
|
+
<span class="notification-item__summary-text">
|
|
124
|
+
<template v-if="reactionEmojis.length">"{{ item.summary }}"</template>
|
|
125
|
+
<template v-else>{{ item.summary }}</template>
|
|
126
|
+
</span>
|
|
125
127
|
</div>
|
|
126
128
|
</div>
|
|
127
129
|
</template>
|
|
@@ -366,6 +368,7 @@ function handleDismiss(event) {
|
|
|
366
368
|
line-height: 1;
|
|
367
369
|
}
|
|
368
370
|
.notification-item__summary-on {
|
|
371
|
+
margin-inline: 0.25em;
|
|
369
372
|
color: var(--grey-50, #747474);
|
|
370
373
|
}
|
|
371
374
|
.notification-item__summary-text {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { INotificationApiActor, INotificationApiRecord, INotificationGroup, INotificationItem, INotificationsApiResponse, INotificationsPanelData, INotificationTab, NotificationType } from '../types/index.js';
|
|
2
2
|
import { type INotificationDateLabels } from './notification-dates.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Unknown
|
|
4
|
+
* Map `reaction_counts` to unique display emojis (one per reaction type).
|
|
5
|
+
* Count is ignored beyond requiring it to be >= 1. Unknown keys are skipped.
|
|
6
6
|
*/
|
|
7
7
|
export declare function mapReactionCountsToEmojis(reactionCounts: Record<string, number> | null | undefined): string[];
|
|
8
8
|
export declare const DEFAULT_NOTIFICATION_TABS: INotificationTab[];
|
|
@@ -34,9 +34,7 @@ export function mapReactionCountsToEmojis(reactionCounts) {
|
|
|
34
34
|
if (!emoji || !Number.isFinite(safeCount) || safeCount < 1) {
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
emojis.push(emoji);
|
|
39
|
-
}
|
|
37
|
+
emojis.push(emoji);
|
|
40
38
|
}
|
|
41
39
|
return emojis;
|
|
42
40
|
}
|