diff --git a/src/components/doclive/AdhocView.vue b/src/components/doclive/AdhocView.vue
index b89883e..ad3080a 100644
--- a/src/components/doclive/AdhocView.vue
+++ b/src/components/doclive/AdhocView.vue
@@ -40,6 +40,18 @@
>
online
+
+
+
-
@@ -66,17 +69,6 @@
class="input-group input-group-sm d-flex justify-content-end"
>
-
-
-
-
-
-
-
@@ -132,6 +111,7 @@
import { mapState, mapGetters, mapActions, dispatch } from "vuex";
import Vue from "vue";
import store from "@/store/index";
+import Vuetable from "vuetable-2";
import { codemirror } from "vue-codemirror";
import JSZip from "jszip";
@@ -174,11 +154,14 @@ import "codemirror/addon/display/placeholder";
export default {
components: {
codemirror,
+ Vuetable,
},
data() {
return {
+ alllogs: "Show all logs",
socketonline: false,
tryConsole: false,
+ history: false,
ssl: {},
getinfo: "",
token: "",
@@ -296,6 +279,15 @@ export default {
// send to runLLO
this.$root.$emit("SERVER_socket_connect");
},
+ showHistory() {
+ if (this.history == false) {
+ this.history = true;
+ this.alllogs = "Hide all logs";
+ } else {
+ this.alllogs = "Show all logs";
+ this.history = false;
+ }
+ },
clear() {
this.tryConsole = false;
this.code = "";
@@ -388,18 +380,18 @@ export default {
https://git.swarmlab.io:3000/labs/swarmlab-playground-client/raw/branch/master/hot_reload.sh |
- and add the proper values |
+ and add the proper values |
- token |
+ token |
${this.token} |
- swarmlabname |
+ swarmlabname |
${this.swarmlabname} |
- OR set the variables before exec |
+ OR set the variables before exec |
export SWARMLAB_token=${this.token} |
@@ -408,7 +400,7 @@ export default {
export SWARMLAB_name=${this.swarmlabname} |
- Ready!
+ | Ready!
|
Execute script every time you run git push |
@@ -464,26 +456,26 @@ export default {
this.code += "\n";
}
- /*
+ /*
for (let itemlog of logtmp) {
//console.log('logtmp '+ JSON.stringify(itemlog))
- this.code += itemlog.message
+ this.code += itemlog.message
+ ' '
- + itemlog.tailed_path
+ + itemlog.tailed_path
+ ' '
- + itemlog.date
+ + itemlog.date
// + itemlog.date.year
// + ' '
- // + itemlog.date.month
+ // + itemlog.date.month
// + ' '
- // + itemlog.date.day
+ // + itemlog.date.day
// + ' '
- // + itemlog.date.hours
+ // + itemlog.date.hours
// + ' '
- // + itemlog.date.seconds
+ // + itemlog.date.seconds
// + ' '
- // + itemlog.date.milliseconds
+ // + itemlog.date.milliseconds
this.code += "\n"
}
@@ -508,7 +500,7 @@ export default {
//LEFOS TOKEN ====
//this.token = new URL(location.href).searchParams.get("token");
this.token = new URL(
- "https://api-client.swarmlab.io:8088/?token=8ee68923f567ad2fb5835f579c4d74f0cad6b1d1"
+ "https://api-client.swarmlab.io:8088/?token=59e732744987bc63a98a4f909d50984371b44543"
).searchParams.get("token");
this.swarmlabname = new URL(location.href).searchParams.get("pipelinename");
@@ -517,6 +509,9 @@ export default {