This commit is contained in:
@@ -42,6 +42,7 @@ const typeToggles = ref<Record<HighlightType, boolean>>({
|
||||
death: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("death"),
|
||||
assist: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("assist"),
|
||||
multi_kill: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("multi_kill"),
|
||||
trade_kill: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("trade_kill"),
|
||||
});
|
||||
|
||||
// Watch type toggles and update settings
|
||||
@@ -82,6 +83,7 @@ const activeClipId = computed(() => {
|
||||
const killCount = computed(() => props.highlights.filter(h => h.highlight_type === "kill").length);
|
||||
const deathCount = computed(() => props.highlights.filter(h => h.highlight_type === "death").length);
|
||||
const multiKillCount = computed(() => props.highlights.filter(h => h.highlight_type === "multi_kill").length);
|
||||
const tradeKillCount = computed(() => props.highlights.filter(h => h.highlight_type === "trade_kill").length);
|
||||
const assistCount = computed(() => props.highlights.filter(h => h.highlight_type === "assist").length);
|
||||
const totalDuration = computed(() => {
|
||||
const total = props.highlights.reduce((sum, h) => sum + (h.end_time - h.start_time), 0);
|
||||
@@ -173,6 +175,7 @@ function formatClipDuration(clip: HighlightClip): string {
|
||||
{ type: 'death' as HighlightType, label: 'Deaths', icon: '💀' },
|
||||
{ type: 'assist' as HighlightType, label: 'Assists', icon: '🤝' },
|
||||
{ type: 'multi_kill' as HighlightType, label: 'Multi Kills', icon: '🔥' },
|
||||
{ type: 'trade_kill' as HighlightType, label: 'Trade Kills', icon: '🔄' },
|
||||
]"
|
||||
:key="typeInfo.type"
|
||||
class="type-toggle"
|
||||
@@ -230,6 +233,9 @@ function formatClipDuration(clip: HighlightClip): string {
|
||||
<div class="stat-pill" v-if="multiKillCount > 0">
|
||||
<span>🔥</span> {{ multiKillCount }}
|
||||
</div>
|
||||
<div class="stat-pill" v-if="tradeKillCount > 0">
|
||||
<span>🔄</span> {{ tradeKillCount }}
|
||||
</div>
|
||||
<div class="stat-pill total">
|
||||
<span>⏱️</span> {{ formatDuration(totalDuration) }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user