π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
β¨ Adds ability to hide city/location in ip widget (#1530)
Alicia Sykes494a5969d925
diff --git a/docs/widgets.md b/docs/widgets.mdindex 6957379e..d9ec026e 100644--- a/docs/widgets.md+++ b/docs/widgets.md@@ -306,6 +306,7 @@ Displays your public IP address, ISP and approximate location.--- | --- | --- | ---**`provider`** | `string` | _Optional_ | One of `freeipapi` _(default)_, `ipinfo`, `ipquery`, `ip-api`, or `ipgeolocation`. See the table below**`apiKey`** | `string` | _Optional_ | Required for `ipgeolocation`. Optional for `ipinfo` (a [free token](https://ipinfo.io/signup) raises the rate limit from ~1k/day to ~50k/month)+**`hideLocation`** | `boolean` | _Optional_ | Set to `true` to hide the flag, ISP name and city/region β only the IP address is shown. Defaults to `false`#### Examplediff --git a/src/components/Widgets/PublicIp.vue b/src/components/Widgets/PublicIp.vueindex 47d675be..900c9e56 100644--- a/src/components/Widgets/PublicIp.vue+++ b/src/components/Widgets/PublicIp.vue@@ -1,7 +1,7 @@<template><div class="ip-info-wrapper"><p class="ip-address">{{ ipAddr }}</p>- <div class="region-wrapper">+ <div class="region-wrapper" v-if="!options.hideLocation"><img class="flag-image" :src="flagImg" alt="Flag" /><div class="info-text"><p class="isp-name">{{ ispName }}</p>