feat(web-app): add get values and update dependencies

This commit is contained in:
fastium
2025-05-06 17:12:54 +02:00
parent d6e3a5c1e0
commit c8c719099e
7 changed files with 242 additions and 51 deletions

View File

@@ -6,19 +6,16 @@
<script lang="ts">
import { defineComponent } from "vue";
import HelloWorld from "./components/HelloWorld.vue";
import { HttpClient } from "./Services/HttpClient";
import axios from "axios";
const URL = "rest.mse.kb28.ch";
axios
.get("https://rest.mse.kb28.ch/ping")
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.error(error);
});
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({
name: "App",