From 8776af9bc807bfea6fc8d01d7d24487178e5bd3c Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Tue, 27 Aug 2024 15:53:19 +0900 Subject: [PATCH 1/3] OS strings in visitorLog --- src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx index 8a5f3a55..024d79c7 100644 --- a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx +++ b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx @@ -3,7 +3,7 @@ import Empty from 'components/common/Empty'; import FilterButtons from 'components/common/FilterButtons'; import { useCountryNames, useLocale, useMessages, useTimezone } from 'components/hooks'; import Icons from 'components/icons'; -import { BROWSERS } from 'lib/constants'; +import { BROWSERS, OS_NAMES } from 'lib/constants'; import { stringToColor } from 'lib/format'; import { RealtimeData } from 'lib/types'; import { safeDecodeURI } from 'next-basics'; @@ -111,7 +111,7 @@ export function RealtimeLog({ data }: { data: RealtimeData }) { values={{ country: {countryNames[country] || formatMessage(labels.unknown)}, browser: {BROWSERS[browser]}, - os: {os}, + os: {OS_NAMES[os]}, device: {formatMessage(labels[device] || labels.unknown)}, }} /> From 248722edbff61777436ab46b9e8abfe56c138e4f Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Tue, 27 Aug 2024 15:53:49 +0900 Subject: [PATCH 2/3] Fix name of KakaoTalk --- src/lib/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index b3f89db2..5d3a9776 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -311,7 +311,7 @@ export const BROWSERS = { instagram: 'Instagram', ios: 'iOS', 'ios-webview': 'iOS (webview)', - kakaotalk: 'KaKaoTalk', + kakaotalk: 'KakaoTalk', miui: 'MIUI', opera: 'Opera', 'opera-mini': 'Opera Mini', From a92fa260e193205295969f1e8c74996454aa11a7 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Tue, 27 Aug 2024 16:04:22 +0900 Subject: [PATCH 3/3] Update RealtimeLog.tsx --- src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx index 024d79c7..f40be9db 100644 --- a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx +++ b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx @@ -111,7 +111,7 @@ export function RealtimeLog({ data }: { data: RealtimeData }) { values={{ country: {countryNames[country] || formatMessage(labels.unknown)}, browser: {BROWSERS[browser]}, - os: {OS_NAMES[os]}, + os: {OS_NAMES[os] || os}, device: {formatMessage(labels[device] || labels.unknown)}, }} />