|
@ -151,16 +151,6 @@ |
|
|
<!-- col --> |
|
|
<!-- col --> |
|
|
</div> |
|
|
</div> |
|
|
<!-- row --> |
|
|
<!-- row --> |
|
|
<!-- <vuetable |
|
|
|
|
|
ref="vuetable" |
|
|
|
|
|
api-url="https://localhost:3000/test" |
|
|
|
|
|
:api-mode="true" |
|
|
|
|
|
:http-options="httpOptions" |
|
|
|
|
|
:fields="['message', 'timestamp', 'type', 'process_id', 'app_name']" |
|
|
|
|
|
data-path="" |
|
|
|
|
|
pagination-path="" |
|
|
|
|
|
> |
|
|
|
|
|
</vuetable> --> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row rowlog overflow-auto"> |
|
|
<div class="row rowlog overflow-auto"> |
|
|
<div class="col-12" v-for="item in log_path"> |
|
|
<div class="col-12" v-for="item in log_path"> |
|
@ -192,7 +182,7 @@ |
|
|
</b-row> |
|
|
</b-row> |
|
|
</div> |
|
|
</div> |
|
|
<!-- col --> |
|
|
<!-- col --> |
|
|
<div class="table"> |
|
|
<div v-if="onEvent" class="table"> |
|
|
<vuetable |
|
|
<vuetable |
|
|
ref="vuetable" |
|
|
ref="vuetable" |
|
|
:api-mode="false" |
|
|
:api-mode="false" |
|
@ -228,6 +218,8 @@ export default { |
|
|
log_path_lenght: [], |
|
|
log_path_lenght: [], |
|
|
log_path_lenghtstatus: [], |
|
|
log_path_lenghtstatus: [], |
|
|
loglenghttotal: 32, |
|
|
loglenghttotal: 32, |
|
|
|
|
|
onEvent: false, |
|
|
|
|
|
allHistory: false, |
|
|
search: { |
|
|
search: { |
|
|
datestart: "", |
|
|
datestart: "", |
|
|
dateend: "", |
|
|
dateend: "", |
|
@ -289,17 +281,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
Hotlog() { |
|
|
Hotlog() { |
|
|
this.Clearlog(); |
|
|
var logintoken = store.getters["pipelineLLO/gettoken"]; |
|
|
var restapi = "off"; |
|
|
//call to start on event logs |
|
|
var logrestapi = store.dispatch("pipelineLLO/setRestapi", { |
|
|
this.onEvent = true; |
|
|
restapi: restapi, |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
Clearlog() { |
|
|
Clearlog() { |
|
|
var log = store.dispatch("pipelineLLO/RMmongolog"); |
|
|
this.onEvent = false; |
|
|
this.log_path = []; |
|
|
|
|
|
//var mongolog = store.getters['pipelineLLO/getmongolog']; |
|
|
|
|
|
//console.log("rmmongolog "+JSON.stringify(mongolog)) |
|
|
|
|
|
}, |
|
|
}, |
|
|
logview(item) { |
|
|
logview(item) { |
|
|
//console.log('path ' + JSON.stringify(item)) |
|
|
//console.log('path ' + JSON.stringify(item)) |
|
@ -416,8 +403,11 @@ export default { |
|
|
computed: { |
|
|
computed: { |
|
|
httpOptions() { |
|
|
httpOptions() { |
|
|
var token = store.getters["pipelineLLO/gettoken"]; |
|
|
var token = store.getters["pipelineLLO/gettoken"]; |
|
|
var p = "headers: {Authorization: token}}"; //table props -> :http-options="httpOptions" |
|
|
return { |
|
|
return { headers: { Authorization: "Bearer " + token } }; //table props -> :http-options="httpOptions" |
|
|
headers: { |
|
|
|
|
|
"Access-Control-Allow-Origin": "*", |
|
|
|
|
|
}, |
|
|
|
|
|
}; //table props -> :http-options="httpOptions" |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
beforeMount() { |
|
|
beforeMount() { |
|
@ -488,7 +478,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=b2758b309c8aba70588987ebd0faa99beb412ff3" |
|
|
"https://api-client.swarmlab.io:8088/?token=90b573e68eb33d11634d585efe130e50a655f920" |
|
|
).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 |
|
@ -499,8 +489,9 @@ export default { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.socketopen(); |
|
|
this.socketopen(); |
|
|
//var tokentmp =store.getters['pipelineLLO/gettoken']; |
|
|
|
|
|
//console.log("tokennnn "+tokentmp); |
|
|
// let p = axios.get("http://localhost:3000/test"); |
|
|
|
|
|
// console.log(p); |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* |
|
|
* |
|
@ -529,7 +520,6 @@ export default { |
|
|
this.issocket = "open"; |
|
|
this.issocket = "open"; |
|
|
// send to AdhocView |
|
|
// send to AdhocView |
|
|
this.$root.$emit("SERVER_socket_status", "on"); |
|
|
this.$root.$emit("SERVER_socket_status", "on"); |
|
|
//call to start on event logs |
|
|
|
|
|
this.getuser(logintoken); |
|
|
this.getuser(logintoken); |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
@ -754,8 +744,10 @@ export default { |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
.table { |
|
|
.table { |
|
|
/* overflow: scroll; */ |
|
|
overflow: scroll; |
|
|
max-height: 400px; |
|
|
min-width: 700px; |
|
|
|
|
|
max-width: 1200px; |
|
|
|
|
|
max-height: 550px; |
|
|
} |
|
|
} |
|
|
.CodeMirror { |
|
|
.CodeMirror { |
|
|
font-family: monospace; |
|
|
font-family: monospace; |
|
|