diff --git a/src/components/DocLive.vue b/src/components/DocLive.vue
index 39e3faa..198ac1d 100644
--- a/src/components/DocLive.vue
+++ b/src/components/DocLive.vue
@@ -154,6 +154,7 @@ export default {
max-width: 48%;
}
.col-5 {
+ flex: 0 0 50%;
max-width: 50%;
}
diff --git a/src/components/doclive/AdhocView.vue b/src/components/doclive/AdhocView.vue
index e76113c..69887d7 100644
--- a/src/components/doclive/AdhocView.vue
+++ b/src/components/doclive/AdhocView.vue
@@ -66,7 +66,7 @@
type="button"
round
class="btn btn-outline-warning btn-sm"
- v-if="tryConsole"
+ v-if="socketonline"
@click="clear()"
>
Clear
@@ -122,6 +122,16 @@
HighChart with log sum Data
+
+
+
- ON-event logs for all apps (Simplified)
-
-
-
-
+
+
ON-event logs for all apps (Simplified)
+
+
+
+
+
+
+
-
ON-event logs for MongoDB (RAW)
-
-
-
+
ON-event logs for MongoDB (RAW)
+
+
+
+
+
+
+
@@ -330,6 +352,15 @@ export default {
};
},
methods: {
+ scroll(param) {
+ if (param == 1) {
+ var container = this.$el.querySelector("#applogs");
+ container.scrollTop = container.scrollHeight;
+ } else {
+ var container = this.$el.querySelector("#mongologs");
+ container.scrollTop = container.scrollHeight;
+ }
+ },
async getuser(token) {
var data = await this.checktoken(token);
console.log("User: " + data.user + " Token: " + data.token);
@@ -461,14 +492,17 @@ export default {
console.log(JSON.stringify(this.logdata));
},
async socketopen() {
+ console.log("inside socketopen()");
this.$socket.client.open();
},
async socketauthenticate() {
- var tokentmp = store.getters["pipelineLLO/gettoken"];
+ var tokentmp = this.logintoken;
// pernaw hardcoded to token
+ console.log("Inside socket authenticate");
this.$socket.client.emit("authenticate", tokentmp);
},
async socketreconnect() {
+ console.log("inside socketreconnect() --- sending to socketopen()");
var log = await this.socketopen();
this.socketauthenticate();
},
@@ -520,6 +554,7 @@ export default {
// from AdhocView
this.$root.$on("SERVER_socket_connect", (v) => {
this.$nextTick(function() {
+ console.log("socket recconect inside runllo");
this.socketreconnect();
});
});
@@ -565,7 +600,7 @@ export default {
created() {
//var logintoken = new URL(location.href).searchParams.get("token");
var logintoken = new URL(
- "https://api-client.swarmlab.io:8088/?token=5b39802077f68ac7499066391067e10535a7053a"
+ "https://api-client.swarmlab.io:8088/?token=95bbe80eeae557be3e4e9fa25109bf2187f2c313"
).searchParams.get("token");
this.logintoken = logintoken;
// === We get the user + check for the token if exists
@@ -608,6 +643,7 @@ export default {
// send to AdhocView
this.$root.$emit("SERVER_socket_status", "on");
this.getuser(logintoken);
+ //asd
},
/**
*
@@ -871,5 +907,13 @@ h2 {
}
.rowlog {
display: flex; /* equal height of the children */
+ min-height: 500px;
+ box-shadow: 3px 3px 10px 10px rgba(0, 0, 0, 0.281);
+ margin-bottom: 40px;
+ margin-top: 20px;
+ padding: 5px;
+}
+.logs {
+ width: 100%;
}