From d9c01b9b06e63296362b6f737021448ec0cd6a02 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sat, 14 Mar 2026 21:12:07 +0100 Subject: [PATCH] feat: add traffic distribution dotted map to CDN tab --- app/sites/[id]/cdn/page.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/sites/[id]/cdn/page.tsx b/app/sites/[id]/cdn/page.tsx index 86caf90..dbfa207 100644 --- a/app/sites/[id]/cdn/page.tsx +++ b/app/sites/[id]/cdn/page.tsx @@ -1,8 +1,11 @@ 'use client' import { useEffect, useState } from 'react' +import dynamic from 'next/dynamic' import { useParams } from 'next/navigation' import Link from 'next/link' + +const DottedMap = dynamic(() => import('@/components/dashboard/DottedMap'), { ssr: false }) import { getDateRange, formatDate, Select } from '@ciphera-net/ui' import { ArrowSquareOut, CloudArrowUp } from '@phosphor-icons/react' import { @@ -406,6 +409,25 @@ export default function CDNPage() { + {/* Traffic Distribution Map */} +
+

Traffic Distribution

+ {countries.length > 0 ? ( +
+ ({ + country: row.country_code, + pageviews: row.bandwidth, + }))} + /> +
+ ) : ( +
+ No geographic data for this period. +
+ )} +
+ {/* Bandwidth by Country */}

Bandwidth by Country