@shardus/monitor-client
Advanced tools
Comparing version 2.2.1 to 2.2.2
{ | ||
"name": "@shardus/monitor-client", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "entry.js", |
@@ -0,1 +1,3 @@ | ||
var request = axios.default | ||
function redirectToSignIn() { | ||
@@ -13,3 +15,3 @@ location.href = 'signin' | ||
} | ||
const res = await axios.get(url, options) | ||
const res = await request.get(url, options) | ||
return res | ||
@@ -29,3 +31,3 @@ } | ||
let res = await axios.get('/api/status') | ||
let res = await request.get('/api/status') | ||
let env = res.data.env | ||
@@ -41,3 +43,3 @@ | ||
try { | ||
let response = await axios.get('/api/report', { | ||
let response = await request.get('/api/report', { | ||
headers: { | ||
@@ -44,0 +46,0 @@ 'Authorization': `${token}` |
@@ -154,3 +154,3 @@ new Vue({ | ||
console.log("getting table data") | ||
const resp = await axios.get(`/api/history`) | ||
const resp = await request.get(`/api/history`) | ||
const history = resp.data | ||
@@ -157,0 +157,0 @@ this.sourceData = [] |
@@ -0,1 +1,2 @@ | ||
var request = axios.default | ||
new Vue({ | ||
@@ -20,3 +21,3 @@ el: '#app', | ||
async signIn(payload) { | ||
const res = await axios.post('/api/signin', payload) | ||
const res = await request.post('/api/signin', payload) | ||
if (res.data && res.data.token) { | ||
@@ -23,0 +24,0 @@ console.log('SingIn Successful', res.data.token) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2324789
36
4533