From f568e3fcb61a2e6de7b0cf039e5c830de037a605 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sat, 24 Jan 2026 14:21:15 +0100 Subject: [PATCH] chore: upgrade @ciphera-net/ui to v0.0.20 and refactor icon imports in ContentStats and Locations components --- components/dashboard/ContentStats.tsx | 5 ++--- components/dashboard/Locations.tsx | 6 +++--- package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/components/dashboard/ContentStats.tsx b/components/dashboard/ContentStats.tsx index 66c58da..6b00fac 100644 --- a/components/dashboard/ContentStats.tsx +++ b/components/dashboard/ContentStats.tsx @@ -3,8 +3,7 @@ import { useState } from 'react' import { formatNumber } from '@/lib/utils/format' import { TopPage } from '@/lib/api/stats' -import { Modal } from '@ciphera-net/ui' -import { FiExternalLink } from 'react-icons/fi' +import { Modal, ArrowUpRightIcon } from '@ciphera-net/ui' interface ContentStatsProps { topPages: TopPage[] @@ -107,7 +106,7 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain, className="hover:underline flex items-center" > {page.path} - +
diff --git a/components/dashboard/Locations.tsx b/components/dashboard/Locations.tsx index 629e501..8ed96bd 100644 --- a/components/dashboard/Locations.tsx +++ b/components/dashboard/Locations.tsx @@ -6,9 +6,9 @@ import * as Flags from 'country-flag-icons/react/3x2' // @ts-ignore import iso3166 from 'iso-3166-2' import WorldMap from './WorldMap' -import { Modal } from '@ciphera-net/ui' +import { Modal, GlobeIcon } from '@ciphera-net/ui' import { SiTorproject } from 'react-icons/si' -import { FaUserSecret, FaSatellite, FaGlobe } from 'react-icons/fa' +import { FaUserSecret, FaSatellite } from 'react-icons/fa' interface LocationProps { countries: Array<{ country: string; pageviews: number }> @@ -38,7 +38,7 @@ export default function Locations({ countries, cities, regions, geoDataLevel = ' case 'O1': case 'EU': case 'AP': - return + return } const FlagComponent = (Flags as any)[countryCode] diff --git a/package-lock.json b/package-lock.json index 47bcc9f..001c37e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "pulse-frontend", "version": "0.1.0", "dependencies": { - "@ciphera-net/ui": "^0.0.19", + "@ciphera-net/ui": "^0.0.20", "axios": "^1.13.2", "country-flag-icons": "^1.6.4", "d3-scale": "^4.0.2", @@ -267,9 +267,9 @@ } }, "node_modules/@ciphera-net/ui": { - "version": "0.0.19", - "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.19/0e0887410feaf7f44835fbf818e0f3ee7532a11d", - "integrity": "sha512-lC+WocZ3xNcYpFRQTHdUHuL3kai9W1WhwNKXtB6N4SXY3P/sRU2RSLnAuomPYpg/XsOgBE07JsIo18wIJdM3Ug==", + "version": "0.0.20", + "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.20/fd25af4e45e902f5b8ad82247fa2772d34e8e40a", + "integrity": "sha512-lMSUmSMzCjKjFOLWOcquYfkJhGW6GL2WrZTSd5Cp6rIDJqajSlzjPq6659t5e5GKbDkOYIGa84MtJkv40qKGkg==", "dependencies": { "@radix-ui/react-icons": "^1.3.0", "clsx": "^2.1.0", diff --git a/package.json b/package.json index 49d9173..6f4a04d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@ciphera-net/ui": "^0.0.19", + "@ciphera-net/ui": "^0.0.20", "axios": "^1.13.2", "country-flag-icons": "^1.6.4", "d3-scale": "^4.0.2",