From 8890168e9a11d6c744f1bf89e848f4a9cd60ef74 Mon Sep 17 00:00:00 2001 From: Zhaoxuan Chen Date: Tue, 30 Sep 2025 22:24:04 +0800 Subject: [PATCH] feat(widgets/public-ip): add hideDetails option (default false) - Add hideDetails computed property to conditionally hide geographical info - When hideDetails=true, only display IP address - Hide country flag, ISP name, city/region, and map link when enabled - Maintain full backward compatibility (default: false) - Add null-safe rendering with v-if guards for all geo fields --- src/components/Widgets/PublicIp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Widgets/PublicIp.vue b/src/components/Widgets/PublicIp.vue index 968ff0c6..52a6cfca 100644 --- a/src/components/Widgets/PublicIp.vue +++ b/src/components/Widgets/PublicIp.vue @@ -41,7 +41,7 @@ export default { return this.parseAsEnvVar(this.options.provider) || 'ipapi.co'; }, hideDetails() { - // Hide geographical details when hideDetails option is true + // Hide geographical details when hideDetails option is true (default: false) return this.options.hideDetails === true; }, },