diff --git a/static/js/app/index.js b/static/js/app/index.js
index 5d4050b..7e7d59e 100644
--- a/static/js/app/index.js
+++ b/static/js/app/index.js
@@ -14,6 +14,10 @@ require('../components/app-nav');
require('../components/app-main');
require('../components/no-data');
+// app runtime
+window.AppRuntime = {};
+
+// add DOMContentLoaded event
window.addEventListener('DOMContentLoaded', function (){
var app;
diff --git a/static/js/components/app-main/app-main.html b/static/js/components/app-main/app-main.html
index 4ca447a..b755f43 100644
--- a/static/js/components/app-main/app-main.html
+++ b/static/js/components/app-main/app-main.html
@@ -12,7 +12,7 @@
-
-
+
{{ cmd.name }}
@@ -21,7 +21,7 @@
更多
-
-
+
{{ moreCmd.name }}
diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js
index 9e638d8..73abe62 100644
--- a/static/js/components/app-main/index.js
+++ b/static/js/components/app-main/index.js
@@ -71,6 +71,20 @@ module.exports = Vue.component('app-main', {
}
},
methods: {
+ isRunning: function (){
+
+ },
+ exec: function (name, command){
+ console.log('run %s: %s', name, command);
+
+ if (!window.AppRuntime[this.project.name]) {
+ window.AppRuntime[this.project.name] = {
+ name: name,
+ command: command,
+ terminal: ''
+ }
+ }
+ },
setting: function (){
this.showSetting = true;
},
diff --git a/static/js/terminal/index.js b/static/js/terminal/index.js
new file mode 100644
index 0000000..9c1d87f
--- /dev/null
+++ b/static/js/terminal/index.js
@@ -0,0 +1,3 @@
+/**
+ * Created by nuintun on 2015/11/24.
+ */