From 5cc487a96ddd6327d2d7a0d6acfabc3d5f960e59 Mon Sep 17 00:00:00 2001 From: zombaru <16330202+zombaru@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:15:28 -0800 Subject: [PATCH 1/3] Documentation: Add missing admonition type to UniFi docs (#4353) --- docs/widgets/info/unifi_controller.md | 2 +- docs/widgets/services/unifi-controller.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/widgets/info/unifi_controller.md b/docs/widgets/info/unifi_controller.md index b77d8ed0..e16ca40b 100644 --- a/docs/widgets/info/unifi_controller.md +++ b/docs/widgets/info/unifi_controller.md @@ -7,7 +7,7 @@ _(Find the Unifi Controller service widget [here](../services/unifi-controller.m You can display general connectivity status from your Unifi (Network) Controller. -!!! +!!! warning When authenticating you will want to use a local account that has at least read privileges. diff --git a/docs/widgets/services/unifi-controller.md b/docs/widgets/services/unifi-controller.md index d137c2a9..c5efc688 100644 --- a/docs/widgets/services/unifi-controller.md +++ b/docs/widgets/services/unifi-controller.md @@ -9,7 +9,7 @@ _(Find the Unifi Controller information widget [here](../info/unifi_controller.m You can display general connectivity status from your Unifi (Network) Controller. -!!! +!!! warning When authenticating you will want to use a local account that has at least read privileges. From 276a1c3ef423f7b027a84ad5c8ac7ef30d04ca2f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 28 Nov 2024 21:54:22 -0800 Subject: [PATCH 2/3] Chore: better tailscale error handling --- src/widgets/tailscale/component.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/tailscale/component.jsx b/src/widgets/tailscale/component.jsx index 3929b2ed..d3c937d5 100644 --- a/src/widgets/tailscale/component.jsx +++ b/src/widgets/tailscale/component.jsx @@ -11,8 +11,8 @@ export default function Component({ service }) { const { data: statsData, error: statsError } = useWidgetAPI(widget, "device"); - if (statsError) { - return ; + if (statsError || statsData?.message) { + return ; } if (!statsData) { From a28952ce698e330c9cfef55289acf8c5cc30efe6 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:14:53 -0800 Subject: [PATCH 3/3] Chore: move custom css loading, add letter-spacing (#4359) --- src/pages/_document.jsx | 2 ++ src/pages/index.jsx | 2 -- src/styles/globals.css | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index bfe3fc93..e69ca007 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -10,6 +10,8 @@ export default function Document() { /> + + {/* eslint-disable-line @next/next/no-css-tags */}
diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 3f8ebf86..0bdc78b6 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -374,8 +374,6 @@ function Home({ initialSettings }) { )} - - {/* eslint-disable-line @next/next/no-css-tags */}