|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
let commands = {
|
|
|
|
|
welcome:{
|
|
|
|
|
let commands = [
|
|
|
|
|
{
|
|
|
|
|
name: "welcome",
|
|
|
|
|
output:[
|
|
|
|
|
{
|
|
|
|
|
color: "white",
|
|
|
|
@ -15,10 +16,10 @@ let commands = {
|
|
|
|
|
" / ___\\/\\ \\/\\ \\\\ \\ __ \\/\\ __\\/ __ \\ \\ \\ \\/ / __ \\/\\ \\/\\ \\/\\ \\/\\ __ \\\n" +
|
|
|
|
|
"/\\ \\__/\\ \\ \\_\\ \\\\ \\ \\_\\ \\ \\ \\_/\\ __/ __\\ \\ \\_/\\ \\_\\ \\ \\ \\_\\ \\_\\ \\ \\ \\/\\ \\\n" +
|
|
|
|
|
"\\ \\____\\\\ \\____ \\\\ \\____/\\ \\_\\\\ \\____\\/\\_\\\\ \\__\\ \\____/\\ \\________/\\ \\_\\ \\_\\\n" +
|
|
|
|
|
" \\/____/ \\/___/ \\\\/___/ \\/_/ \\/____/\\/_/ \\/__/\\/___/ \\/_______/ \\/_/\\/_/\n" +
|
|
|
|
|
" \\/____/ \\/___/\\ \\\\/___/ \\/_/ \\/____/\\/_/ \\/__/\\/___/ \\/_______/ \\/_/\\/_/\n" +
|
|
|
|
|
" /\\___/\n" +
|
|
|
|
|
" \\/__/ @adb.sh\n\n",
|
|
|
|
|
delay: 100
|
|
|
|
|
delay: 200
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
color: "white",
|
|
|
|
@ -31,16 +32,43 @@ let commands = {
|
|
|
|
|
" - Etherpad > ether\n" +
|
|
|
|
|
" - short url > surl\n" +
|
|
|
|
|
" - Jitsi > meet\n",
|
|
|
|
|
delay: 100
|
|
|
|
|
delay: 300
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
let history = [{
|
|
|
|
|
host: "[cybre.town]$ ",
|
|
|
|
|
command: "welcome --help",
|
|
|
|
|
output: []
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
commands:commands
|
|
|
|
|
commands,
|
|
|
|
|
history
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
renderCommand(input){
|
|
|
|
|
if (input === undefined) input = history[history.length-1].command;
|
|
|
|
|
input = input.split(" ");
|
|
|
|
|
let command = commands.find((command) => command.name === input[0]);
|
|
|
|
|
command.output.forEach(group => {
|
|
|
|
|
/*setTimeout(() => {
|
|
|
|
|
history[history.length-1].output.push(group);
|
|
|
|
|
}, group.delay)*/
|
|
|
|
|
history[history.length-1].output.push(group);
|
|
|
|
|
})
|
|
|
|
|
history.push({
|
|
|
|
|
host: "[cybre.town]$ ",
|
|
|
|
|
command: "",
|
|
|
|
|
output: []
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//this.methods.renderCommand("welcome --help")
|