remove HAL implementation files for v3 and v4, and the build script

This commit is contained in:
2026-01-04 18:41:38 +01:00
parent 412a26390a
commit d33b05e1d7
21 changed files with 504 additions and 1418 deletions

View File

@@ -2,6 +2,7 @@ import {deepEqual} from 'fast-equals';
declare var PUBLIC_URL: string;
console.log("Url is " + PUBLIC_URL);
console.log("Public url is " + PUBLIC_URL);
document.body.innerHTML = require('./main.html') as string;
@@ -28,7 +29,7 @@ import {
SetTime, SSIDList, TankInfo,
TestPump,
VersionInfo,
FileList, SolarState, PumpTestResult
FileList, SolarState, PumpTestResult, DetectionResult
} from "./api";
import {SolarView} from "./solarview";
import {toast} from "./toast";
@@ -289,6 +290,7 @@ export class Controller {
method: "POST",
body: pretty
}).then(
_ => controller.progressview.removeProgress("write_rtc")
)
}
@@ -376,11 +378,15 @@ export class Controller {
fetch(PUBLIC_URL + "/detect_sensors", { method: "POST" })
.then(response => response.json())
.then (json => json as DetectionResult)
.then(json => {
clearTimeout(timerId);
controller.progressview.removeProgress("detect_sensors");
const pretty = JSON.stringify(json);
toast.info("Detection result: " + pretty);
console.log(pretty);
this.plantViews.applyDetectionResult(json);
})
.catch(error => {
clearTimeout(timerId);