장기 방문자 통계 추가 v1.7.7

This commit is contained in:
2026-06-22 17:31:56 +09:00
parent e2ca365fa0
commit c2acecffcd
11 changed files with 84 additions and 12 deletions

View File

@@ -51,6 +51,9 @@ export default defineEventHandler(async () => {
loggedInNow: summary.loggedInNow,
avgEngagedSeconds,
visitorsLast7Days: summary.visitorsLast7Days,
visitorsLast30Days: summary.visitorsLast30Days,
visitorsLast180Days: summary.visitorsLast180Days,
visitorsLast365Days: summary.visitorsLast365Days,
pageViewsLast30Days: summary.pageViewsLast30Days,
totalPosts: statistics.totalPosts,
totalComments: statistics.totalComments,
@@ -68,6 +71,26 @@ export default defineEventHandler(async () => {
label: formatNumberLabel(summary.todayPageViews, '회'),
value: summary.todayPageViews
},
{
name: '최근 7일 방문자',
label: formatNumberLabel(summary.visitorsLast7Days, '명'),
value: summary.visitorsLast7Days
},
{
name: '최근 30일 방문자',
label: formatNumberLabel(summary.visitorsLast30Days, '명'),
value: summary.visitorsLast30Days
},
{
name: '최근 6개월 방문자',
label: formatNumberLabel(summary.visitorsLast180Days, '명'),
value: summary.visitorsLast180Days
},
{
name: '최근 1년 방문자',
label: formatNumberLabel(summary.visitorsLast365Days, '명'),
value: summary.visitorsLast365Days
},
{
name: '현재 접속자',
label: formatNumberLabel(summary.onlineNow, '명'),