• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

This repository is for zephyr, which is implemented for a GUI of Eos.


Commit MetaInfo

Revisiond006c985ff89509de77df05f14c51ea36aa16d59 (tree)
Time2016-02-03 16:45:45
Authorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

[Develop] Command directive submit() assemble ExecObj

On branch master
Changes to be committed:

modified: front-end/app/scripts/directives/Command.ts
modified: front-end/dist/bundle.js

Change Summary

Incremental Difference

--- a/front-end/app/scripts/directives/Command.ts
+++ b/front-end/app/scripts/directives/Command.ts
@@ -91,22 +91,32 @@ namespace app.directives {
9191 }
9292
9393 public submit() {
94- var params = {};
94+ var opt = [];
9595 angular.forEach(this.options, (option) => {
9696
97- var inputs = [];
97+ var obj = {
98+ name: option.option,
99+ arguments: []
100+ };
98101
99102 angular.forEach(option.arg, (arg) => {
100103 if(arg.input) {
101- inputs.push(arg.input);
104+ obj.arguments.push(arg.input);
102105 }
103106 });
104107
105- if(inputs.length > 0) {
106- params[option.option] = inputs;
108+ if(obj.arguments.length > 0) {
109+ opt.push(obj);
107110 }
108111 });
109- console.log(params);
112+
113+ var execObj = {
114+ command: this.name,
115+ workspace: this.workspace.fileId,
116+ option: opt
117+ };
118+
119+ console.log(execObj);
110120 }
111121
112122 public removeMySelf(index:number) {
--- a/front-end/dist/bundle.js
+++ b/front-end/dist/bundle.js
@@ -41125,19 +41125,27 @@
4112541125 });
4112641126 }
4112741127 CommandController.prototype.submit = function () {
41128- var params = {};
41128+ var opt = [];
4112941129 angular.forEach(this.options, function (option) {
41130- var inputs = [];
41130+ var obj = {
41131+ name: option.option,
41132+ arguments: []
41133+ };
4113141134 angular.forEach(option.arg, function (arg) {
4113241135 if (arg.input) {
41133- inputs.push(arg.input);
41136+ obj.arguments.push(arg.input);
4113441137 }
4113541138 });
41136- if (inputs.length > 0) {
41137- params[option.option] = inputs;
41139+ if (obj.arguments.length > 0) {
41140+ opt.push(obj);
4113841141 }
4113941142 });
41140- console.log(params);
41143+ var execObj = {
41144+ command: this.name,
41145+ workspace: this.workspace.fileId,
41146+ option: opt
41147+ };
41148+ console.log(execObj);
4114141149 };
4114241150 CommandController.prototype.removeMySelf = function (index) {
4114341151 this.remove()(index, this.list);
@@ -41550,19 +41558,27 @@
4155041558 });
4155141559 }
4155241560 CommandController.prototype.submit = function () {
41553- var params = {};
41561+ var opt = [];
4155441562 angular.forEach(this.options, function (option) {
41555- var inputs = [];
41563+ var obj = {
41564+ name: option.option,
41565+ arguments: []
41566+ };
4155641567 angular.forEach(option.arg, function (arg) {
4155741568 if (arg.input) {
41558- inputs.push(arg.input);
41569+ obj.arguments.push(arg.input);
4155941570 }
4156041571 });
41561- if (inputs.length > 0) {
41562- params[option.option] = inputs;
41572+ if (obj.arguments.length > 0) {
41573+ opt.push(obj);
4156341574 }
4156441575 });
41565- console.log(params);
41576+ var execObj = {
41577+ command: this.name,
41578+ workspace: this.workspace.fileId,
41579+ option: opt
41580+ };
41581+ console.log(execObj);
4156641582 };
4156741583 CommandController.prototype.removeMySelf = function (index) {
4156841584 this.remove()(index, this.list);
@@ -41975,19 +41991,27 @@
4197541991 });
4197641992 }
4197741993 CommandController.prototype.submit = function () {
41978- var params = {};
41994+ var opt = [];
4197941995 angular.forEach(this.options, function (option) {
41980- var inputs = [];
41996+ var obj = {
41997+ name: option.option,
41998+ arguments: []
41999+ };
4198142000 angular.forEach(option.arg, function (arg) {
4198242001 if (arg.input) {
41983- inputs.push(arg.input);
42002+ obj.arguments.push(arg.input);
4198442003 }
4198542004 });
41986- if (inputs.length > 0) {
41987- params[option.option] = inputs;
42005+ if (obj.arguments.length > 0) {
42006+ opt.push(obj);
4198842007 }
4198942008 });
41990- console.log(params);
42009+ var execObj = {
42010+ command: this.name,
42011+ workspace: this.workspace.fileId,
42012+ option: opt
42013+ };
42014+ console.log(execObj);
4199142015 };
4199242016 CommandController.prototype.removeMySelf = function (index) {
4199342017 this.remove()(index, this.list);
@@ -42400,19 +42424,27 @@
4240042424 });
4240142425 }
4240242426 CommandController.prototype.submit = function () {
42403- var params = {};
42427+ var opt = [];
4240442428 angular.forEach(this.options, function (option) {
42405- var inputs = [];
42429+ var obj = {
42430+ name: option.option,
42431+ arguments: []
42432+ };
4240642433 angular.forEach(option.arg, function (arg) {
4240742434 if (arg.input) {
42408- inputs.push(arg.input);
42435+ obj.arguments.push(arg.input);
4240942436 }
4241042437 });
42411- if (inputs.length > 0) {
42412- params[option.option] = inputs;
42438+ if (obj.arguments.length > 0) {
42439+ opt.push(obj);
4241342440 }
4241442441 });
42415- console.log(params);
42442+ var execObj = {
42443+ command: this.name,
42444+ workspace: this.workspace.fileId,
42445+ option: opt
42446+ };
42447+ console.log(execObj);
4241642448 };
4241742449 CommandController.prototype.removeMySelf = function (index) {
4241842450 this.remove()(index, this.list);
@@ -42825,19 +42857,27 @@
4282542857 });
4282642858 }
4282742859 CommandController.prototype.submit = function () {
42828- var params = {};
42860+ var opt = [];
4282942861 angular.forEach(this.options, function (option) {
42830- var inputs = [];
42862+ var obj = {
42863+ name: option.option,
42864+ arguments: []
42865+ };
4283142866 angular.forEach(option.arg, function (arg) {
4283242867 if (arg.input) {
42833- inputs.push(arg.input);
42868+ obj.arguments.push(arg.input);
4283442869 }
4283542870 });
42836- if (inputs.length > 0) {
42837- params[option.option] = inputs;
42871+ if (obj.arguments.length > 0) {
42872+ opt.push(obj);
4283842873 }
4283942874 });
42840- console.log(params);
42875+ var execObj = {
42876+ command: this.name,
42877+ workspace: this.workspace.fileId,
42878+ option: opt
42879+ };
42880+ console.log(execObj);
4284142881 };
4284242882 CommandController.prototype.removeMySelf = function (index) {
4284342883 this.remove()(index, this.list);
@@ -43250,19 +43290,27 @@
4325043290 });
4325143291 }
4325243292 CommandController.prototype.submit = function () {
43253- var params = {};
43293+ var opt = [];
4325443294 angular.forEach(this.options, function (option) {
43255- var inputs = [];
43295+ var obj = {
43296+ name: option.option,
43297+ arguments: []
43298+ };
4325643299 angular.forEach(option.arg, function (arg) {
4325743300 if (arg.input) {
43258- inputs.push(arg.input);
43301+ obj.arguments.push(arg.input);
4325943302 }
4326043303 });
43261- if (inputs.length > 0) {
43262- params[option.option] = inputs;
43304+ if (obj.arguments.length > 0) {
43305+ opt.push(obj);
4326343306 }
4326443307 });
43265- console.log(params);
43308+ var execObj = {
43309+ command: this.name,
43310+ workspace: this.workspace.fileId,
43311+ option: opt
43312+ };
43313+ console.log(execObj);
4326643314 };
4326743315 CommandController.prototype.removeMySelf = function (index) {
4326843316 this.remove()(index, this.list);
@@ -43675,19 +43723,27 @@
4367543723 });
4367643724 }
4367743725 CommandController.prototype.submit = function () {
43678- var params = {};
43726+ var opt = [];
4367943727 angular.forEach(this.options, function (option) {
43680- var inputs = [];
43728+ var obj = {
43729+ name: option.option,
43730+ arguments: []
43731+ };
4368143732 angular.forEach(option.arg, function (arg) {
4368243733 if (arg.input) {
43683- inputs.push(arg.input);
43734+ obj.arguments.push(arg.input);
4368443735 }
4368543736 });
43686- if (inputs.length > 0) {
43687- params[option.option] = inputs;
43737+ if (obj.arguments.length > 0) {
43738+ opt.push(obj);
4368843739 }
4368943740 });
43690- console.log(params);
43741+ var execObj = {
43742+ command: this.name,
43743+ workspace: this.workspace.fileId,
43744+ option: opt
43745+ };
43746+ console.log(execObj);
4369143747 };
4369243748 CommandController.prototype.removeMySelf = function (index) {
4369343749 this.remove()(index, this.list);
@@ -44100,19 +44156,27 @@
4410044156 });
4410144157 }
4410244158 CommandController.prototype.submit = function () {
44103- var params = {};
44159+ var opt = [];
4410444160 angular.forEach(this.options, function (option) {
44105- var inputs = [];
44161+ var obj = {
44162+ name: option.option,
44163+ arguments: []
44164+ };
4410644165 angular.forEach(option.arg, function (arg) {
4410744166 if (arg.input) {
44108- inputs.push(arg.input);
44167+ obj.arguments.push(arg.input);
4410944168 }
4411044169 });
44111- if (inputs.length > 0) {
44112- params[option.option] = inputs;
44170+ if (obj.arguments.length > 0) {
44171+ opt.push(obj);
4411344172 }
4411444173 });
44115- console.log(params);
44174+ var execObj = {
44175+ command: this.name,
44176+ workspace: this.workspace.fileId,
44177+ option: opt
44178+ };
44179+ console.log(execObj);
4411644180 };
4411744181 CommandController.prototype.removeMySelf = function (index) {
4411844182 this.remove()(index, this.list);
@@ -44525,19 +44589,27 @@
4452544589 });
4452644590 }
4452744591 CommandController.prototype.submit = function () {
44528- var params = {};
44592+ var opt = [];
4452944593 angular.forEach(this.options, function (option) {
44530- var inputs = [];
44594+ var obj = {
44595+ name: option.option,
44596+ arguments: []
44597+ };
4453144598 angular.forEach(option.arg, function (arg) {
4453244599 if (arg.input) {
44533- inputs.push(arg.input);
44600+ obj.arguments.push(arg.input);
4453444601 }
4453544602 });
44536- if (inputs.length > 0) {
44537- params[option.option] = inputs;
44603+ if (obj.arguments.length > 0) {
44604+ opt.push(obj);
4453844605 }
4453944606 });
44540- console.log(params);
44607+ var execObj = {
44608+ command: this.name,
44609+ workspace: this.workspace.fileId,
44610+ option: opt
44611+ };
44612+ console.log(execObj);
4454144613 };
4454244614 CommandController.prototype.removeMySelf = function (index) {
4454344615 this.remove()(index, this.list);
@@ -44950,19 +45022,27 @@
4495045022 });
4495145023 }
4495245024 CommandController.prototype.submit = function () {
44953- var params = {};
45025+ var opt = [];
4495445026 angular.forEach(this.options, function (option) {
44955- var inputs = [];
45027+ var obj = {
45028+ name: option.option,
45029+ arguments: []
45030+ };
4495645031 angular.forEach(option.arg, function (arg) {
4495745032 if (arg.input) {
44958- inputs.push(arg.input);
45033+ obj.arguments.push(arg.input);
4495945034 }
4496045035 });
44961- if (inputs.length > 0) {
44962- params[option.option] = inputs;
45036+ if (obj.arguments.length > 0) {
45037+ opt.push(obj);
4496345038 }
4496445039 });
44965- console.log(params);
45040+ var execObj = {
45041+ command: this.name,
45042+ workspace: this.workspace.fileId,
45043+ option: opt
45044+ };
45045+ console.log(execObj);
4496645046 };
4496745047 CommandController.prototype.removeMySelf = function (index) {
4496845048 this.remove()(index, this.list);
@@ -45375,19 +45455,27 @@
4537545455 });
4537645456 }
4537745457 CommandController.prototype.submit = function () {
45378- var params = {};
45458+ var opt = [];
4537945459 angular.forEach(this.options, function (option) {
45380- var inputs = [];
45460+ var obj = {
45461+ name: option.option,
45462+ arguments: []
45463+ };
4538145464 angular.forEach(option.arg, function (arg) {
4538245465 if (arg.input) {
45383- inputs.push(arg.input);
45466+ obj.arguments.push(arg.input);
4538445467 }
4538545468 });
45386- if (inputs.length > 0) {
45387- params[option.option] = inputs;
45469+ if (obj.arguments.length > 0) {
45470+ opt.push(obj);
4538845471 }
4538945472 });
45390- console.log(params);
45473+ var execObj = {
45474+ command: this.name,
45475+ workspace: this.workspace.fileId,
45476+ option: opt
45477+ };
45478+ console.log(execObj);
4539145479 };
4539245480 CommandController.prototype.removeMySelf = function (index) {
4539345481 this.remove()(index, this.list);
Show on old repository browser