From 4a049f924c903c412368aca1ea3991d3d3521288 Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Sun, 4 Feb 2024 00:57:34 +0800 Subject: [PATCH] UX Improvements --- src/components/ipcheck.vue | 17 +++++++++-------- src/components/queryip.vue | 10 +++++----- src/style.css | 8 +++++--- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/ipcheck.vue b/src/components/ipcheck.vue index 91a9aa29..e5076817 100644 --- a/src/components/ipcheck.vue +++ b/src/components/ipcheck.vue @@ -32,12 +32,13 @@
-
+
{{ $t('ipInfos.Source') }}: {{ card.source }}
+ Map @@ -45,7 +46,7 @@ " class="card-body">
  • 🖥️ {{ $t('ipInfos.IP') }}: {{ card.ip + class="jn-text"> {{ $t('ipInfos.IP') }}: {{ card.ip }}
  • - 🌍 {{ $t('ipInfos.Country') }}: {{ + {{ $t('ipInfos.Country') }}: {{ card.country_name }} 
  • 🏚️ + :class="{ 'dark-mode': isDarkMode }"> {{ $t('ipInfos.Region') }}: {{ card.region }}
  • 🚏 + :class="{ 'dark-mode': isDarkMode }"> {{ $t('ipInfos.City') }}: {{ card.city }}
  • 🏢 + :class="{ 'dark-mode': isDarkMode }"> {{ $t('ipInfos.ISP') }}: {{ card.isp }}
  • 📶 + :class="{ 'dark-mode': isDarkMode }"> {{ $t('ipInfos.ASN') }}: {{ card.asn }}{{ card.asn }}
@@ -468,7 +469,7 @@ export default { longitude: data.longitude || "", isp: data.org || "", asn: data.asn || "", - asnlink: data.asn ? `https://radar.cloudflare.com/traffic/${data.asn}` : false, + asnlink: data.asn ? `https://radar.cloudflare.com/${data.asn}` : false, mapUrl: data.latitude && data.longitude ? `/api/map?latitude=${data.latitude}&longitude=${data.longitude}&language=${this.bingMapLanguage}&CanvasMode=CanvasLight` : "", mapUrl_dark: data.latitude && data.longitude ? `/api/map?latitude=${data.latitude}&longitude=${data.longitude}&language=${this.bingMapLanguage}&CanvasMode=RoadDark` : "" }; diff --git a/src/components/queryip.vue b/src/components/queryip.vue index 27c23ffd..5e33f58c 100644 --- a/src/components/queryip.vue +++ b/src/components/queryip.vue @@ -22,24 +22,24 @@
  • - 🌍 {{ $t('ipInfos.Country') }}: {{ + {{ $t('ipInfos.Country') }}: {{ modalQueryResult.country_name }} 
  • 🏚️ {{ $t('ipInfos.Region') }}: {{ + class="jn-text"> {{ $t('ipInfos.Region') }}: {{ modalQueryResult.region }}
  • 🚏 {{ $t('ipInfos.City') }}: {{ + class="jn-text"> {{ $t('ipInfos.City') }}: {{ modalQueryResult.city }}
  • 🏢 {{ $t('ipInfos.ISP') }}: {{ + class="jn-text"> {{ $t('ipInfos.ISP') }}: {{ modalQueryResult.isp }}
  • 📶 {{ $t('ipInfos.ASN') }}: {{ $t('ipInfos.ASN') }}: {{ modalQueryResult.asn }}{{ modalQueryResult.asn }}
diff --git a/src/style.css b/src/style.css index 66d1aff2..06842197 100644 --- a/src/style.css +++ b/src/style.css @@ -67,9 +67,11 @@ max-width: 1400px; } -.jn-text { - font-weight: bold; -} +/* .jn-text { + text-decoration-line: underline; + text-decoration-style: solid; + text-decoration-color: #1a8754; +} */ .jn-list-group-item { padding: 0.75rem 0.25rem;