feat(web-app): add the time series manager to the application

This commit is contained in:
fastium
2025-05-12 23:12:52 +02:00
parent c8c719099e
commit d27bed4f6a

View File

@@ -7,15 +7,11 @@
import { defineComponent } from "vue"; import { defineComponent } from "vue";
import HelloWorld from "./components/HelloWorld.vue"; import HelloWorld from "./components/HelloWorld.vue";
import { HttpClient } from "./Services/HttpClient"; import { HttpClient } from "./Services/HttpClient";
import { TimeSeriesManager } from "./TimeSeriesManager";
import { URL, USERNAME, PASSWORD } from "./const";
const URL = "rest.mse.kb28.ch"; const httpClient = new HttpClient(URL, USERNAME, PASSWORD);
const manager = new TimeSeriesManager(httpClient);
const username = process.env.VUE_APP_INFLUXDB_USER;
const password = process.env.VUE_APP_INFLUXDB_PASSWORD;
const httpClient = new HttpClient(URL, username, password);
const series = httpClient.getValues();
export default defineComponent({ export default defineComponent({
name: "App", name: "App",