chore: upgrade @ciphera-net/ui to v0.0.20 and refactor icon imports in ContentStats and Locations components
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { formatNumber } from '@/lib/utils/format'
|
import { formatNumber } from '@/lib/utils/format'
|
||||||
import { TopPage } from '@/lib/api/stats'
|
import { TopPage } from '@/lib/api/stats'
|
||||||
import { Modal } from '@ciphera-net/ui'
|
import { Modal, ArrowUpRightIcon } from '@ciphera-net/ui'
|
||||||
import { FiExternalLink } from 'react-icons/fi'
|
|
||||||
|
|
||||||
interface ContentStatsProps {
|
interface ContentStatsProps {
|
||||||
topPages: TopPage[]
|
topPages: TopPage[]
|
||||||
@@ -107,7 +106,7 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain,
|
|||||||
className="hover:underline flex items-center"
|
className="hover:underline flex items-center"
|
||||||
>
|
>
|
||||||
{page.path}
|
{page.path}
|
||||||
<FiExternalLink className="w-3 h-3 ml-2 text-neutral-400 opacity-0 group-hover:opacity-100 transition-opacity" />
|
<ArrowUpRightIcon className="w-3 h-3 ml-2 text-neutral-400 opacity-0 group-hover:opacity-100 transition-opacity" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-sm font-semibold text-neutral-600 dark:text-neutral-400 ml-4">
|
<div className="text-sm font-semibold text-neutral-600 dark:text-neutral-400 ml-4">
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import * as Flags from 'country-flag-icons/react/3x2'
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import iso3166 from 'iso-3166-2'
|
import iso3166 from 'iso-3166-2'
|
||||||
import WorldMap from './WorldMap'
|
import WorldMap from './WorldMap'
|
||||||
import { Modal } from '@ciphera-net/ui'
|
import { Modal, GlobeIcon } from '@ciphera-net/ui'
|
||||||
import { SiTorproject } from 'react-icons/si'
|
import { SiTorproject } from 'react-icons/si'
|
||||||
import { FaUserSecret, FaSatellite, FaGlobe } from 'react-icons/fa'
|
import { FaUserSecret, FaSatellite } from 'react-icons/fa'
|
||||||
|
|
||||||
interface LocationProps {
|
interface LocationProps {
|
||||||
countries: Array<{ country: string; pageviews: number }>
|
countries: Array<{ country: string; pageviews: number }>
|
||||||
@@ -38,7 +38,7 @@ export default function Locations({ countries, cities, regions, geoDataLevel = '
|
|||||||
case 'O1':
|
case 'O1':
|
||||||
case 'EU':
|
case 'EU':
|
||||||
case 'AP':
|
case 'AP':
|
||||||
return <FaGlobe className="w-5 h-5 text-neutral-500 dark:text-neutral-400" />
|
return <GlobeIcon className="w-5 h-5 text-neutral-500 dark:text-neutral-400" />
|
||||||
}
|
}
|
||||||
|
|
||||||
const FlagComponent = (Flags as any)[countryCode]
|
const FlagComponent = (Flags as any)[countryCode]
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -8,7 +8,7 @@
|
|||||||
"name": "pulse-frontend",
|
"name": "pulse-frontend",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ciphera-net/ui": "^0.0.19",
|
"@ciphera-net/ui": "^0.0.20",
|
||||||
"axios": "^1.13.2",
|
"axios": "^1.13.2",
|
||||||
"country-flag-icons": "^1.6.4",
|
"country-flag-icons": "^1.6.4",
|
||||||
"d3-scale": "^4.0.2",
|
"d3-scale": "^4.0.2",
|
||||||
@@ -267,9 +267,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ciphera-net/ui": {
|
"node_modules/@ciphera-net/ui": {
|
||||||
"version": "0.0.19",
|
"version": "0.0.20",
|
||||||
"resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.19/0e0887410feaf7f44835fbf818e0f3ee7532a11d",
|
"resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.20/fd25af4e45e902f5b8ad82247fa2772d34e8e40a",
|
||||||
"integrity": "sha512-lC+WocZ3xNcYpFRQTHdUHuL3kai9W1WhwNKXtB6N4SXY3P/sRU2RSLnAuomPYpg/XsOgBE07JsIo18wIJdM3Ug==",
|
"integrity": "sha512-lMSUmSMzCjKjFOLWOcquYfkJhGW6GL2WrZTSd5Cp6rIDJqajSlzjPq6659t5e5GKbDkOYIGa84MtJkv40qKGkg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"clsx": "^2.1.0",
|
"clsx": "^2.1.0",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ciphera-net/ui": "^0.0.19",
|
"@ciphera-net/ui": "^0.0.20",
|
||||||
"axios": "^1.13.2",
|
"axios": "^1.13.2",
|
||||||
"country-flag-icons": "^1.6.4",
|
"country-flag-icons": "^1.6.4",
|
||||||
"d3-scale": "^4.0.2",
|
"d3-scale": "^4.0.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user