update files

This commit is contained in:
nuintun 2015-11-24 19:22:01 +08:00
parent 596b5eba3c
commit 25d1b03822
2 changed files with 39 additions and 33 deletions

View File

@ -419,7 +419,7 @@ header [class*=" icon-"] {
border-left: 1px solid #ccc;
}
.ui-project-terminal {
padding: 0 10px;
padding: 10px;
background-color: #181818;
border-left: 1px dashed #ccc;
font-family: Consolas, sans-serif;

View File

@ -78,16 +78,9 @@ module.exports = Vue.component('app-main', {
exec: function (name, command){
console.log('run %s: %s', name, command);
if (!window.AppRuntime[this.project.name]) {
var xterm = new Terminal({
cols: 220,
rows: 70
});
var runtime = window.AppRuntime[this.project.name];
xterm.open();
this.$els.terminal.appendChild(xterm.element);
[
var test = [
'\u001b[92m\'use strict\'\u001b[39m\u001b[90m;\u001b[39m',
'\u001b[90m/*jshint browser:true */\u001b[39m',
'',
@ -116,13 +109,26 @@ module.exports = Vue.component('app-main', {
' \u001b[31mreturn\u001b[39m \u001b[37mhypernal\u001b[39m\u001b[90m;\u001b[39m',
'\u001b[33m}\u001b[39m\u001b[90m;\u001b[39m',
''
].forEach(function (line){ xterm.writeln(line); });
];
if (!runtime) {
var xterm = new Terminal({
cols: 220,
rows: 70
});
xterm.open();
this.$els.terminal.appendChild(xterm.element);
test.forEach(function (line){ xterm.writeln(line); });
window.AppRuntime[this.project.name] = {
name: name,
command: command,
terminal: ''
terminal: xterm
}
} else {
test.forEach(function (line){ runtime.terminal.writeln(line); });
}
},
setting: function (){