diff --git a/luci-app-system-hub/htdocs/luci-static/resources/system-hub/theme.js b/luci-app-system-hub/htdocs/luci-static/resources/system-hub/theme.js index f0ce7622..ad274089 100644 --- a/luci-app-system-hub/htdocs/luci-static/resources/system-hub/theme.js +++ b/luci-app-system-hub/htdocs/luci-static/resources/system-hub/theme.js @@ -66,5 +66,13 @@ return baseclass.extend({ */ getCurrentTheme: function() { return document.documentElement.getAttribute('data-theme') || 'dark'; + }, + + /** + * Get theme preference from SecuBox + * @returns {Promise} Promise resolving to theme data + */ + getTheme: function() { + return callGetTheme(); } }); diff --git a/luci-app-system-hub/root/usr/share/rpcd/acl.d/luci-app-system-hub.json b/luci-app-system-hub/root/usr/share/rpcd/acl.d/luci-app-system-hub.json index 7fc7e77c..5dd693d5 100644 --- a/luci-app-system-hub/root/usr/share/rpcd/acl.d/luci-app-system-hub.json +++ b/luci-app-system-hub/root/usr/share/rpcd/acl.d/luci-app-system-hub.json @@ -7,10 +7,17 @@ "status", "get_system_info", "get_health", + "get_components", + "get_components_by_category", "list_services", "get_logs", "get_storage", "get_settings" + ], + "luci.secubox": [ + "modules", + "modules_by_category", + "get_theme" ] } },