feat(web-app): add get values and update dependencies
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user