|
@ -247,7 +247,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div v-show="raw" class="logs"> |
|
|
<div v-show="raw" class="logs"> |
|
|
<h2>ON-event logs (RAW - ALL)</h2> |
|
|
<h2>ON-event logs (RAW - ALL)</h2> |
|
|
<div class="input-group-append"> |
|
|
<!-- <div class="input-group-append"> |
|
|
<button |
|
|
<button |
|
|
class="btn btn-outline-primary" |
|
|
class="btn btn-outline-primary" |
|
|
round |
|
|
round |
|
@ -256,7 +256,7 @@ |
|
|
> |
|
|
> |
|
|
Scroll to Bottom |
|
|
Scroll to Bottom |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> --> |
|
|
<div id="rawlogs"> |
|
|
<div id="rawlogs"> |
|
|
<vuetable |
|
|
<vuetable |
|
|
ref="rawtable" |
|
|
ref="rawtable" |
|
@ -292,6 +292,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
countIndex: 1, |
|
|
hover: false, |
|
|
hover: false, |
|
|
css: CssConfig, |
|
|
css: CssConfig, |
|
|
fields: [ |
|
|
fields: [ |
|
@ -470,11 +471,12 @@ export default { |
|
|
} else if (param == 2) { |
|
|
} else if (param == 2) { |
|
|
var container = this.$el.querySelector("#mongologs"); |
|
|
var container = this.$el.querySelector("#mongologs"); |
|
|
container.scrollTop = container.scrollHeight; |
|
|
container.scrollTop = container.scrollHeight; |
|
|
} else if (param == 3) { |
|
|
|
|
|
console.log("moving scroll bar of raw logs"); |
|
|
|
|
|
var container = this.$el.querySelector("#rawlogs"); |
|
|
|
|
|
container.scrollTop = container.scrollHeight; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
// } else if (param == 3) { |
|
|
|
|
|
// console.log("moving scroll bar of raw logs"); |
|
|
|
|
|
// const container = this.$refs.rawtable; |
|
|
|
|
|
// container.scrollIntoView({ behavior: "smooth" }); |
|
|
|
|
|
// } |
|
|
}, |
|
|
}, |
|
|
async getuser(token) { |
|
|
async getuser(token) { |
|
|
var data = await this.checktoken(token); |
|
|
var data = await this.checktoken(token); |
|
@ -742,7 +744,7 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
//var logintoken = new URL(location.href).searchParams.get("token"); |
|
|
//var logintoken = new URL(location.href).searchParams.get("token"); |
|
|
var logintoken = new URL( |
|
|
var logintoken = new URL( |
|
|
"https://api-client.swarmlab.io:8088/?token=82309bbfc2fb9d86bc45e60f347c6d1f8f11f677" |
|
|
"https://api-client.swarmlab.io:8088/?token=9312e5629b22cfdc7c5ca027be3cc85f91bbdb58" |
|
|
).searchParams.get("token"); |
|
|
).searchParams.get("token"); |
|
|
this.logintoken = logintoken; |
|
|
this.logintoken = logintoken; |
|
|
// === We get the user + check for the token if exists |
|
|
// === We get the user + check for the token if exists |
|
@ -1020,6 +1022,7 @@ export default { |
|
|
this.rawerror.push(val); |
|
|
this.rawerror.push(val); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.countIndex++; |
|
|
this.rawdata.push(val); |
|
|
this.rawdata.push(val); |
|
|
|
|
|
|
|
|
// Check if the log is by a node_service and change color of the type field |
|
|
// Check if the log is by a node_service and change color of the type field |
|
|