mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 01:27:47 +08:00
update files
This commit is contained in:
@@ -31,5 +31,5 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-project-terminal"></div>
|
||||
<div v-el:terminal class="ui-project-terminal"></div>
|
||||
</div>
|
@@ -8,6 +8,7 @@ var fs = require('fs');
|
||||
var path = require('path');
|
||||
var util = require('../../util');
|
||||
var Vue = require('../../vue/vue');
|
||||
var Terminal = require('../../terminal/termlib');
|
||||
|
||||
const EMPTYPROJECT = {
|
||||
name: '',
|
||||
@@ -78,6 +79,15 @@ module.exports = Vue.component('app-main', {
|
||||
console.log('run %s: %s', name, command);
|
||||
|
||||
if (!window.AppRuntime[this.project.name]) {
|
||||
var xterm = new Terminal({
|
||||
x: 220,
|
||||
y: 70,
|
||||
termDiv: this.$els.terminal
|
||||
});
|
||||
|
||||
xterm.open();
|
||||
xterm.write('aasdsad');
|
||||
|
||||
window.AppRuntime[this.project.name] = {
|
||||
name: name,
|
||||
command: command,
|
||||
|
Reference in New Issue
Block a user