0.16.1-4 Hardware Monitoring

This commit is contained in:
2026-04-29 11:14:27 +00:00
parent 044ece0387
commit f9cf3cef09
8 changed files with 82 additions and 26 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "ripster-frontend",
"version": "0.16.1-3",
"version": "0.16.1-4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ripster-frontend",
"version": "0.16.1-3",
"version": "0.16.1-4",
"dependencies": {
"primeicons": "^7.0.0",
"primereact": "^10.9.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ripster-frontend",
"version": "0.16.1-3",
"version": "0.16.1-4",
"private": true,
"type": "module",
"scripts": {
+13
View File
@@ -129,6 +129,11 @@ function getDownloadIndicatorMeta(summary) {
};
}
const HARDWARE_MONITOR_SETTING_KEYS = new Set([
'hardware_monitoring_enabled',
'hardware_monitoring_interval_ms'
]);
function App() {
const appVersion = __APP_VERSION__;
const [pipeline, setPipeline] = useState({ state: 'IDLE', progress: 0, context: {} });
@@ -511,10 +516,15 @@ function App() {
const val = setting?.value;
setExpertMode(val === 'true' || val === true);
}
const normalizedKey = String(setting?.key || '').trim().toLowerCase();
if (HARDWARE_MONITOR_SETTING_KEYS.has(normalizedKey)) {
refreshPipeline().catch(() => null);
}
}
if (message.type === 'SETTINGS_BULK_UPDATED') {
const keys = message.payload?.keys || [];
const normalizedKeys = keys.map((key) => String(key || '').trim().toLowerCase());
if (keys.includes('ui_expert_mode')) {
api.getSettings({ forceRefresh: true })
.then((response) => {
@@ -524,6 +534,9 @@ function App() {
})
.catch(() => null);
}
if (normalizedKeys.some((key) => HARDWARE_MONITOR_SETTING_KEYS.has(key))) {
refreshPipeline().catch(() => null);
}
}
if (message.type === 'DOWNLOADS_UPDATED') {