|
|
@ -468,6 +468,7 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// καλείται στο διάγραμμα για την εμφάνιση των αποτελεσμάτων |
|
|
|
async callback(params) { |
|
|
|
var res = await axios.get("http://localhost:3000/length"); |
|
|
|
//new code |
|
|
@ -490,12 +491,14 @@ export default { |
|
|
|
} |
|
|
|
//new code end |
|
|
|
}, |
|
|
|
|
|
|
|
socketconnect() { |
|
|
|
//asd |
|
|
|
// send to runLLO |
|
|
|
console.log("socketcoonect adhoc"); |
|
|
|
this.$root.$emit("SERVER_socket_connect"); |
|
|
|
}, |
|
|
|
// εμφάνιση του διαγράμματος / απόκρυψη |
|
|
|
showChart() { |
|
|
|
if (this.chartstatus == false) { |
|
|
|
this.chartstatus = true; |
|
|
@ -505,6 +508,7 @@ export default { |
|
|
|
this.chartbut = "Show HighChart"; |
|
|
|
} |
|
|
|
}, |
|
|
|
// ενημέρωση για ποιες υπηρεσίες είναι ενεργές στο δίκτυο |
|
|
|
async getServices() { |
|
|
|
this.items.splice(0, this.items.length); |
|
|
|
await axios.get("http://localhost:3000/services").then((res) => { |
|
|
@ -519,6 +523,7 @@ export default { |
|
|
|
// }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
// εμφάνιση του πίνακα ευρετηρίασης και rerender σε περίπτωση που αναζητήσει ξανά κάτι ο χρήστης |
|
|
|
showHistory() { |
|
|
|
this.items = []; |
|
|
|
this.getServices(); |
|
|
@ -530,11 +535,12 @@ export default { |
|
|
|
this.$refs.vuetable.refresh(); |
|
|
|
} |
|
|
|
}, |
|
|
|
// διαχείριση pagination |
|
|
|
onPaginationData(paginationData) { |
|
|
|
this.$refs.pagination.setPaginationData(paginationData); |
|
|
|
this.$refs.paginationInfo.setPaginationData(paginationData); |
|
|
|
}, |
|
|
|
//asd |
|
|
|
// διαχείριση επιτυχίας στην ευρατηρίαση |
|
|
|
loadsuccess(response) { |
|
|
|
var data = response.data.data; |
|
|
|
this.fielddata = data; |
|
|
@ -542,9 +548,11 @@ export default { |
|
|
|
var n = data.length; |
|
|
|
n = n - 1; |
|
|
|
}, |
|
|
|
// αλλαγή σελίδας στον πίνακα |
|
|
|
onChangePage(page) { |
|
|
|
this.$refs.vuetable.changePage(page); |
|
|
|
}, |
|
|
|
// διαχείριση σφάλματος στην ευερετηρίαση |
|
|
|
onLoadError(payload) { |
|
|
|
/* |
|
|
|
//error2 "invalid_token" join-service.vue:684 |
|
|
@ -563,6 +571,7 @@ export default { |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
// δεν κάνει τίποτα |
|
|
|
clear() { |
|
|
|
this.tryConsole = false; |
|
|
|
this.code = ""; |
|
|
@ -573,125 +582,6 @@ export default { |
|
|
|
code: field, |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async showactive(index) { |
|
|
|
this.topwindow(index); |
|
|
|
}, |
|
|
|
onCmReady(cm) { |
|
|
|
cm.on("change", (cm, chg) => {}), |
|
|
|
cm.on("keypress", () => { |
|
|
|
cm.showHint({ completeSingle: false }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
onCmCursorActivity(a, b, c) {}, |
|
|
|
onCmFocus(cm) {}, |
|
|
|
onCmCodeChange(newCode) { |
|
|
|
this.code = newCode; |
|
|
|
//this.$root.$emit('socket_add',this.code) |
|
|
|
}, |
|
|
|
handleChange() {}, |
|
|
|
setKeymap() { |
|
|
|
this.cmOptions.keyMap = this.selected; |
|
|
|
}, |
|
|
|
infoFilter() { |
|
|
|
var title1 = "<h3>Playbook Images</h3>"; |
|
|
|
var winfop = |
|
|
|
'<table class="table table-striped table-sm ">' + |
|
|
|
'<tr><td class="text-left">Shift-Tab</td> <td class="text-left">indentLess</td></tr>' + |
|
|
|
'<tr><td class="text-left">Alt-Q</td> <td class="text-left">wrapLines</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-Up</td> <td class="text-left">scrollLineUp</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-Down</td> <td class="text-left">scrollLineDown</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-L</td> <td class="text-left">selectLine</td></tr>' + |
|
|
|
'<tr><td class="text-left">Esc</td> <td class="text-left">singleSelectionTop</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-Enter</td> <td class="text-left">insertLineAfter</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-D</td> <td class="text-left">selectNextOccurrence</td></tr>' + |
|
|
|
'<tr><td class="text-left">Shift-Ctrl-Space</td> <td class="text-left">selectScope</td></tr>' + |
|
|
|
'<tr><td class="text-left">Shift-Ctrl-M</td> <td class="text-left">selectBetweenBrackets</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-M</td> <td class="text-left">goToBracket</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-Y</td> <td class="text-left">sublimeYank</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-C</td> <td class="text-left">showInCenter</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-G</td> <td class="text-left">clearBookmarks</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-Backspace</td> <td class="text-left">delLineLeft</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-0</td> <td class="text-left">unfoldAll</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-K Ctrl-J</td> <td class="text-left">unfoldAll</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-Alt-Up</td> <td class="text-left">addCursorToPrevLine</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-Alt-Down</td> <td class="text-left">addCursorToNextLine</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-F3</td> <td class="text-left">findUnder</td></tr>' + |
|
|
|
'<tr><td class="text-left">Shift-Ctrl-F3</td> <td class="text-left">findUnderPrevious</td></tr>' + |
|
|
|
'<tr><td class="text-left">Shift-Ctrl-[</td> <td class="text-left">fold</td></tr>' + |
|
|
|
'<tr><td class="text-left">Shift-Ctrl-]</td> <td class="text-left">unfold</td></tr>' + |
|
|
|
'<tr><td class="text-left">Ctrl-F</td> <td class="text-left">find</td></tr>' + |
|
|
|
"</table>"; |
|
|
|
|
|
|
|
var title1 = ""; |
|
|
|
var winfo = ""; |
|
|
|
this.$swal({ |
|
|
|
title: "<strong>Key bindings</strong>", |
|
|
|
type: "info", |
|
|
|
html: winfop + title1 + winfo, |
|
|
|
showCloseButton: true, |
|
|
|
showLoaderOnConfirm: false, |
|
|
|
allowOutsideClick: false, |
|
|
|
}); |
|
|
|
}, |
|
|
|
async hotreload() { |
|
|
|
var field = this.getinfo; |
|
|
|
var log = await store.dispatch("pipelineLLO/hotreload", { |
|
|
|
token: this.token, |
|
|
|
swarmlabname: this.swarmlabname, |
|
|
|
}); |
|
|
|
}, |
|
|
|
infoHotreload() { |
|
|
|
var html1 = ` <div style="overflow-x: auto;"> <table class="table table-striped table-sm "> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th></th> |
|
|
|
<th></th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td class="text-left" >Download</td> |
|
|
|
<td class="text-left">https://git.swarmlab.io:3000/labs/swarmlab-playground-client/raw/branch/master/hot_reload.sh</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-center" colspan="2"><b>and add the proper values</b></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-left">token</td> |
|
|
|
<td class="text-left">${this.token}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-left">swarmlabname</td> |
|
|
|
<td class="text-left">${this.swarmlabname}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-center" colspan="2"><b>OR set the variables before exec</b></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-left" colspan="2">export SWARMLAB_token=${this.token}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-left" colspan="2">export SWARMLAB_name=${this.swarmlabname}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-center" colspan="2"><b>Ready!</b<</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="text-left" colspan="2"><i>Execute script every time you run git push</i></td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table></div>`; |
|
|
|
|
|
|
|
this.$swal({ |
|
|
|
title: "<strong>HowTo</strong>", |
|
|
|
type: "info", |
|
|
|
html: html1, |
|
|
|
showCloseButton: true, |
|
|
|
showLoaderOnConfirm: false, |
|
|
|
allowOutsideClick: false, |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
codemirror() { |
|
|
|