Skip to content

Commit

Permalink
broken component
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Sep 24, 2023
1 parent 71e5707 commit 391fb65
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions ui/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,47 @@
import { ref } from 'vue'
import axios from 'axios';
defineProps<{ msg: string }>()
currentUser: '';
accessTokenExpired: false;
isLoggedIn: false;
currentUser: string = '';
accessTokenExpired: boolean | undefined = false;
isLoggedIn: boolean = false;
data: any;
getDirectApi() {
function getDirectApi() {
axios.get(`${this.getCurrentHost()}/api/DirectApi`)
.then((response: any) => {
this.data = response.data;
})
.catch((error: any) => {
alert(error);
});
}
getUserProfile() {
function getUserProfile() {
axios.get(`${this.getCurrentHost()}/api/User`)
.then((response: any) => {
this.data = response.data;
})
.catch((error: any) => {
alert(error);
});
.then((response: any) => {
this.data = response.data;
})
.catch((error: any) => {
alert(error);
});
}
getGraphApiDataUsingApi() {
axios.get(`${this.getCurrentHost()}/api/GraphApiData`)
function getGraphApiDataUsingApi() {
axios.get(`${this.getCurrentHost()}/api/GraphApiData`)
.then((response: any) => {
this.data = response.data;
})
.catch((error: any) => {
alert(error);
});
});
}
getCurrentHost() {
const host = window.location.host;
const url = `${window.location.protocol}//${host}`;
function getCurrentHost() {
const host = window.location.host;
const url = `${window.location.protocol}//${host}`;
return url;
return url;
}
const count = ref(0)
</script>

<template>
Expand Down

0 comments on commit 391fb65

Please sign in to comment.