100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Apply theme to Insights app (#3425)
Koen652c3d17c659
diff --git a/ui/app/insights/package.json b/ui/app/insights/package.jsonindex 1aa9199a2..830365314 100644--- a/ui/app/insights/package.json+++ b/ui/app/insights/package.json@@ -33,6 +33,7 @@"@openremote/or-mwc-components": "workspace:*","@openremote/or-translate": "workspace:*","@openremote/rest": "workspace:*",+ "@openremote/theme": "workspace:*","@reduxjs/toolkit": "^2.12.0","lit": "^3.3.1"},diff --git a/ui/app/insights/src/index.ts b/ui/app/insights/src/index.tsindex 6dd37ef26..a813124a1 100644--- a/ui/app/insights/src/index.ts+++ b/ui/app/insights/src/index.ts@@ -20,6 +20,7 @@ import { combineReducers, configureStore } from "@reduxjs/toolkit";import { type AppConfig, appReducer, OrApp, type PageProvider, type RealmAppConfig } from "@openremote/or-app";import { pageViewProvider } from "./pages/page-view";import type { ManagerAppConfig } from "@openremote/model";+import themeCss from "@openremote/theme";declare const MANAGER_URL: string | undefined;@@ -129,5 +130,12 @@ fetch(configURL)return orAppConfig;};+ // Apply theme to the Insights app+ const style = document.createElement("style");+ style.id = "orDefaultTheme";+ style.textContent = themeCss;+ document.head.appendChild(style);++ // Load appdocument.body.appendChild(orApp);});diff --git a/yarn.lock b/yarn.lockindex ba610e2ef..e547d00c1 100644--- a/yarn.lock+++ b/yarn.lock@@ -1854,6 +1854,7 @@ __metadata:"@openremote/or-mwc-components": "workspace:*""@openremote/or-translate": "workspace:*""@openremote/rest": "workspace:*"+ "@openremote/theme": "workspace:*""@openremote/util": "workspace:*""@reduxjs/toolkit": "npm:^2.12.0""@rspack/core": "npm:~2.1.10"