Merge branch 'gethomepage:dev' into integration

This commit is contained in:
djeinstine authored and GitHub committed 2024-11-29 20:20:54 +01:00
commit f1401855ad
6 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -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. 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. When authenticating you will want to use a local account that has at least read privileges.
+1 -1
View File
@@ -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. 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. When authenticating you will want to use a local account that has at least read privileges.
+2
View File
@@ -10,6 +10,8 @@ export default function Document() {
/> />
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<link rel="manifest" href="/site.webmanifest?v=4" crossOrigin="use-credentials" /> <link rel="manifest" href="/site.webmanifest?v=4" crossOrigin="use-credentials" />
<link rel="preload" href="/api/config/custom.css" as="style" />
<link rel="stylesheet" href="/api/config/custom.css" /> {/* eslint-disable-line @next/next/no-css-tags */}
</Head> </Head>
<body> <body>
<Main /> <Main />
-2
View File
@@ -374,8 +374,6 @@ function Home({ initialSettings }) {
)} )}
<meta name="msapplication-TileColor" content={themes[settings.color || "slate"][settings.theme || "dark"]} /> <meta name="msapplication-TileColor" content={themes[settings.color || "slate"][settings.theme || "dark"]} />
<meta name="theme-color" content={themes[settings.color || "slate"][settings.theme || "dark"]} /> <meta name="theme-color" content={themes[settings.color || "slate"][settings.theme || "dark"]} />
<link rel="preload" href="/api/config/custom.css" as="style" />
<link rel="stylesheet" href="/api/config/custom.css" /> {/* eslint-disable-line @next/next/no-css-tags */}
</Head> </Head>
<Script src="/api/config/custom.js" /> <Script src="/api/config/custom.js" />
+1
View File
@@ -16,6 +16,7 @@ body {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
letter-spacing: 0.1px;
} }
#page_wrapper { #page_wrapper {
+2 -2
View File
@@ -11,8 +11,8 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "device"); const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");
if (statsError) { if (statsError || statsData?.message) {
return <Container service={service} error={statsError} />; return <Container service={service} error={statsError ?? statsData} />;
} }
if (!statsData) { if (!statsData) {