Browse Source

latest:1

master
lefteris 4 years ago
parent
commit
5be6c5580d
  1. 18
      src/components/doclive/AdhocView.vue
  2. 17
      src/components/doclive/runLlo.vue

18
src/components/doclive/AdhocView.vue

@ -42,13 +42,15 @@
placeholder="Log" placeholder="Log"
/> />
</div> </div>
<label class="filters" for="list">Pick a service:</label> <div v-if="socketonline" class="selec">
<select class="filters" id="list" v-model="selected"> <label class="filters" for="list">Pick a service:</label>
<option selected value="All">All</option> <select class="filters" id="list" v-model="selected">
<option v-for="item in this.items" v-bind:value="item.name"> <option selected value="All">All</option>
{{ item.name }} <option v-for="item in this.items" v-bind:value="item.name">
</option> {{ item.name }}
</select> </option>
</select>
</div>
<button <button
type="button" type="button"
round round
@ -521,6 +523,8 @@ export default {
}); });
}, },
showHistory() { showHistory() {
this.items = [];
this.getServices();
this.extraparams.logtext = this.searchparam; this.extraparams.logtext = this.searchparam;
this.extraparams.selected = this.selected; this.extraparams.selected = this.selected;
if (this.history == false) { if (this.history == false) {

17
src/components/doclive/runLlo.vue

@ -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

Loading…
Cancel
Save