v1.12.25 대시보드 숫자 표기 및 접속자 목록 간소화
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script setup>
|
||||
import { formatAnalyticsCount } from '~/lib/analytics-display.js'
|
||||
import {
|
||||
ANALYTICS_SINGLE_BAR_COLORS,
|
||||
formatAnalyticsChartHeaderLabel,
|
||||
@@ -33,7 +34,7 @@ const props = defineProps({
|
||||
},
|
||||
formatValue: {
|
||||
type: Function,
|
||||
default: (value) => String(value ?? 0)
|
||||
default: (value) => formatAnalyticsCount(value)
|
||||
},
|
||||
formatDelta: {
|
||||
type: Function,
|
||||
@@ -188,7 +189,7 @@ const formatDeltaLabel = (delta) => {
|
||||
}
|
||||
|
||||
const absolute = Math.abs(delta)
|
||||
return Number.isFinite(absolute) ? String(absolute) : '0'
|
||||
return formatAnalyticsCount(absolute)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,11 +310,11 @@ const getRowDelta = (row) => {
|
||||
v-if="trafficStack && getStackSegments(row).length > 1"
|
||||
class="admin-analytics-trend-chart__tooltip-breakdown mt-1 text-[10px] leading-relaxed text-muted"
|
||||
>
|
||||
<span class="text-[#e5484d]">검색 {{ row.trafficSearch || 0 }}</span>
|
||||
<span class="text-[#e5484d]">검색 {{ formatAnalyticsCount(row.trafficSearch) }}</span>
|
||||
·
|
||||
<span class="text-[#12a594]">SNS {{ row.trafficSns || 0 }}</span>
|
||||
<span class="text-[#12a594]">SNS {{ formatAnalyticsCount(row.trafficSns) }}</span>
|
||||
·
|
||||
<span class="text-[#8b8d98]">기타 {{ row.trafficOther || 0 }}</span>
|
||||
<span class="text-[#8b8d98]">기타 {{ formatAnalyticsCount(row.trafficOther) }}</span>
|
||||
</p>
|
||||
<p class="admin-analytics-trend-chart__tooltip-period mt-1 text-[10px] leading-none text-muted">
|
||||
{{ getAnalyticsTrendDetailLabel(period, row, todayKey) }}
|
||||
|
||||
Reference in New Issue
Block a user