@@ -133,6 +154,7 @@ export default {
},
data () {
return {
+ socketonline:false,
tryConsole:false,
ssl:{},
getinfo:'',
@@ -241,6 +263,10 @@ export default {
},
methods: {
+ socketconnect () {
+ // send to runLLO
+ this.$root.$emit('SERVER_socket_connect')
+ },
clear () {
this.tryConsole = false
this.code = ''
@@ -326,22 +352,70 @@ export default {
},
mounted() {
-// this.$root.$on('asciilive_template_add', (v) => {
-// this.$nextTick(function () {
-// this.code = v
-// })
-// })
- this.$root.$on('playground_log_in', (v) => {
+ // from runLLO
+ this.$root.$on('SERVER_socket_status', (v) => {
this.$nextTick(function () {
- this.code += v
- this.code += "\n"
+ if(v == 'off'){
+ this.socketonline = false
+ }else if(v == 'on'){
+ this.socketonline = true
+ }
+ })
+ })
+ // from runLLO
+ this.$root.$on('playground_log_in', (path) => {
+ //this.$nextTick(function () {
+ var logtmp = store.getters['pipelineLLO/getlog'];
+ //console.log('logtmp '+ JSON.stringify(logtmp))
+ var itemlog = ''
+ this.code = ''
+ itemlog = logtmp.filter(item1 => item1.tailed_path === path);
+ //Vue.set(this.log_path_lenght, item, loglenght);
+ console.log('logtmp22 '+ JSON.stringify(itemlog))
+ for (let iteml of itemlog) {
+ this.code += iteml.message
+ + ' '
+ + iteml.tailed_path
+ + ' '
+ + iteml.date
+
+ this.code += "\n"
+ }
+ /*
+ for (let itemlog of logtmp) {
+ //console.log('logtmp '+ JSON.stringify(itemlog))
+ this.code += itemlog.message
+ + ' '
+ + itemlog.tailed_path
+ + ' '
+ + itemlog.date
+
+ // + itemlog.date.year
+ // + ' '
+ // + itemlog.date.month
+ // + ' '
+ // + itemlog.date.day
+ // + ' '
+ // + itemlog.date.hours
+ // + ' '
+ // + itemlog.date.seconds
+ // + ' '
+ // + itemlog.date.milliseconds
+
+ this.code += "\n"
+ }
+ */
+
+ //this.code += v
+ //this.code += "\n"
this.$refs.myCm.codemirror.setCursor(this.$refs.myCm.codemirror.lineCount(), 0);
this.tryConsole=true
- })
+ //})
})
},
beforeDestroy () {
+ this.$root.$off('SERVER_socket_status')
this.$root.$off('playground_log_in')
},
diff --git a/src/components/doclive/runLlo.vue b/src/components/doclive/runLlo.vue
index d79291a..3c9fbbc 100644
--- a/src/components/doclive/runLlo.vue
+++ b/src/components/doclive/runLlo.vue
@@ -79,13 +79,50 @@
+
+
+
+
+
+ Clear
+
+
+
+ {{ item }}
+
+
+
+ {{log_path_lenght[item]}}
+
+ {{log_path_lenght[item]}}
+
+
+
+
+