Skip to content

Commit

Permalink
Hide Registry Info, when no response
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianbinau committed Feb 24, 2025
1 parent 3413971 commit eebce0f
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
<template>
<div class="flex flex-col items-center justify-center gap-4 h-screen">
<h1>Your IP address: {{ ip }}</h1>
<p>
Your Location: <span>{{ location }}</span>
</p>
<p>
Your Provider: <span>{{ provider }}</span>
</p>

<div class="flex gap-2">
<UBadge
v-if="isVPN"
icon="i-lucide-network"
color="warning"
variant="outline"
>VPN Connection</UBadge
>

<UBadge
v-if="isProxy"
icon="i-lucide-network"
color="info"
variant="outline"
>Proxy Connection</UBadge
>
</div>

<template v-if="registryInfo">
<p>
Your Location: <span>{{ location }}</span>
</p>
<p>
Your Provider: <span>{{ provider }}</span>
</p>

<div class="flex gap-2">
<UBadge
v-if="isVPN"
icon="i-lucide-network"
color="warning"
variant="outline"
>VPN Connection</UBadge
>

<UBadge
v-if="isProxy"
icon="i-lucide-network"
color="info"
variant="outline"
>Proxy Connection</UBadge
>
</div>
</template>
</div>
</template>

Expand Down

0 comments on commit eebce0f

Please sign in to comment.