• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

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


Commit MetaInfo

Revisionb218cd9fada02122c5f1bf8010cf526b70f87246 (tree)
Time2016-02-17 22:15:04
Authorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

[Develop] WebSocket is connected.

Change Summary

Incremental Difference

--- a/front-end/app/index.html
+++ b/front-end/app/index.html
@@ -7,6 +7,7 @@
77 </head>
88 <body ng-app="zephyr">
99 <ui-view></ui-view>
10+ <script src="/socket.io/socket.io.js"></script>
1011 <script src="./bundle.js"></script>
1112 </body>
1213 </html>
--- a/front-end/app/scripts/App.ts
+++ b/front-end/app/scripts/App.ts
@@ -36,12 +36,14 @@ namespace app {
3636 });
3737
3838 zephyr.service('APIEndPoint', services.APIEndPoint);
39+ zephyr.service('MyModal', services.MyModal);
40+ zephyr.service('WebSocket', services.WebSocket);
41+
3942
4043 zephyr.filter('Tag', filters.Tag);
4144 zephyr.controller('selectCommandController', controllers.SelectCommand);
4245 zephyr.controller('previewController', controllers.Preview);
4346
44- zephyr.service('MyModal', services.MyModal);
4547
4648 zephyr.controller('executionController', controllers.Execution);
4749 zephyr.controller('workspaceController', controllers.Workspace);
--- a/front-end/app/scripts/declares.ts
+++ b/front-end/app/scripts/declares.ts
@@ -19,12 +19,12 @@ namespace app.declares {
1919 }
2020
2121 export interface IOption {
22- option: string;
23- fullOption: string;
24- optionName: string;
25- optionProperties: boolean;
26- optionNumber: number;
27- arg: IArg[];
22+ option: string;
23+ fullOption: string;
24+ optionName: string;
25+ optionProperties: boolean;
26+ optionNumber: number;
27+ arg: IArg[];
2828 }
2929
3030 export interface IFileInfo {
@@ -70,3 +70,11 @@ namespace app.declares {
7070 }
7171
7272 }
73+declare var io : {
74+ connect(): Socket;
75+}
76+interface Socket {
77+ on(event: string, callback: (data: any) => void );
78+ emit(event: string, data: any);
79+}
80+
--- a/front-end/app/scripts/directives/Command.ts
+++ b/front-end/app/scripts/directives/Command.ts
@@ -36,7 +36,7 @@ namespace app.directives {
3636 */
3737 public static Factory(): ng.IDirectiveFactory {
3838 var directive = () => {
39- return new Command();
39+ return new Command();
4040 };
4141 directive.$inject = [];
4242 return directive;
@@ -45,7 +45,7 @@ namespace app.directives {
4545
4646 export class CommandController {
4747
48- public static $inject = ['APIEndPoint', '$scope', 'MyModal'];
48+ public static $inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4949
5050 // From parent directive bindToController property
5151 private index: string;
@@ -63,30 +63,34 @@ namespace app.directives {
6363 private options: declares.IOption[];
6464 private dirs: any;
6565
66- constructor(private APIEndPoint: services.APIEndPoint, private $scope: ng.IScope, private MyModal: services.MyModal) {
66+ constructor(private APIEndPoint: services.APIEndPoint, private $scope: ng.IScope, private MyModal: services.MyModal, private WebSocket: services.WebSocket) {
6767 var controller = this;
6868
6969 // Get OptionControlFile and bind it to $scope.options
7070 this.APIEndPoint
71- .getOptionControlFile('mrcImageNoiseAdd')
72- .$promise
73- .then(function(result) {
74- controller.options = result.info;
75- });
71+ .getOptionControlFile('mrcImageNoiseAdd')
72+ .$promise
73+ .then(function(result) {
74+ controller.options = result.info;
75+ });
7676
7777 this.APIEndPoint
78- .getDirectories()
79- .$promise
80- .then(function(result) {
81- controller.dirs = result.info;
82- });
78+ .getDirectories()
79+ .$promise
80+ .then(function(result) {
81+ controller.dirs = result.info;
82+ });
8383
8484 this.heading = "[" + this.index + "]: dcdFilePring";
8585 this.isOpen = true;
8686
8787 // When call add button at executeController, all accordion close.
8888 this.$scope.$on('close', () => {
89- controller.isOpen = false;
89+ controller.isOpen = false;
90+ });
91+
92+ this.WebSocket.on('test', function(data) {
93+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
9094 });
9195 }
9296
@@ -110,7 +114,7 @@ namespace app.directives {
110114 });
111115
112116 if(obj.arguments.length > 0) {
113- opt.push(obj);
117+ opt.push(obj);
114118 }
115119 });
116120
@@ -122,10 +126,10 @@ namespace app.directives {
122126
123127 //console.log(JSON.stringify(execObj,null,'\t'));
124128 this.APIEndPoint
125- .execute(JSON.stringify(execObj))
126- .then((result) => {
127- console.log(result);
128- })
129+ .execute(JSON.stringify(execObj))
130+ .then((result) => {
131+ console.log(result);
132+ })
129133 }
130134
131135 public removeMySelf(index:number) {
@@ -135,20 +139,22 @@ namespace app.directives {
135139 private reloadFiles() {
136140 var fileId = this.workspace.fileId;
137141 this.APIEndPoint
138- .getFiles(fileId)
139- .$promise
140- .then((result) => {
141- var status = result.status;
142- if(status === 'success') {
143- this.files = result.info;
144- } else {
145- console.log(result.message);
146- }
147- });
142+ .getFiles(fileId)
143+ .$promise
144+ .then((result) => {
145+ var status = result.status;
146+ if(status === 'success') {
147+ this.files = result.info;
148+ } else {
149+ console.log(result.message);
150+ }
151+ });
148152 }
149153
150154 public debug() {
151155 this.MyModal.preview();
152156 }
157+
158+
153159 }
154160 }
--- a/front-end/app/scripts/entry.ts
+++ b/front-end/app/scripts/entry.ts
@@ -10,6 +10,7 @@ import './declares.ts';
1010 // services
1111 import './services/APIEndPoint.ts';
1212 import './services/MyModal.ts';
13+import './services/WebSocket.ts';
1314
1415 // directives
1516 import './directives/Option.ts';
--- a/front-end/app/scripts/reference.ts
+++ b/front-end/app/scripts/reference.ts
@@ -2,8 +2,10 @@
22
33 /// <reference path="./declares.ts" />
44
5+
56 /// <reference path="./services/APIEndPoint.ts" />
67 /// <reference path="./services/MyModal.ts" />
8+/// <reference path="./services/WebSocket.ts" />
79
810 /// <reference path="./directives/Command.ts" />
911 /// <reference path="./directives/HeaderMenu.ts" />
--- /dev/null
+++ b/front-end/app/scripts/services/WebSocket.ts
@@ -0,0 +1,36 @@
1+namespace app.services{
2+ export class WebSocket {
3+ private socket: any;
4+
5+ //public static $inject = ['$rootScope'];
6+
7+ constructor(private $rootScope: ng.IRootScopeService) {
8+ this.socket = io.connect();
9+ }
10+
11+ public on(eventName, callback) {
12+ var socket = this.socket;
13+ var rootScope = this.$rootScope;
14+
15+ socket.on(eventName, function() {
16+ var args = arguments
17+ rootScope.$apply(function() {
18+ callback.apply(socket, args)
19+ });
20+ });
21+ }
22+
23+ public emit(eventName, data, callback) {
24+ var socket = this.socket;
25+ var rootScope = this.$rootScope;
26+
27+ this.socket.emit(eventName, data, function() {
28+ var args = arguments
29+ rootScope.$apply(function() {
30+ if(callback)
31+ callback.apply(socket, args)
32+ });
33+ });
34+ }
35+ }
36+}
--- a/front-end/dist/bundle.js
+++ b/front-end/dist/bundle.js
@@ -61,6 +61,7 @@
6161 __webpack_require__(18);
6262 __webpack_require__(19);
6363 __webpack_require__(20);
64+ __webpack_require__(21);
6465
6566
6667 /***/ },
@@ -41113,6 +41114,41 @@
4111341114 })(app || (app = {}));
4111441115 var app;
4111541116 (function (app) {
41117+ var services;
41118+ (function (services) {
41119+ var WebSocket = (function () {
41120+ function WebSocket($rootScope) {
41121+ this.$rootScope = $rootScope;
41122+ this.socket = io.connect();
41123+ }
41124+ WebSocket.prototype.on = function (eventName, callback) {
41125+ var socket = this.socket;
41126+ var rootScope = this.$rootScope;
41127+ socket.on(eventName, function () {
41128+ var args = arguments;
41129+ rootScope.$apply(function () {
41130+ callback.apply(socket, args);
41131+ });
41132+ });
41133+ };
41134+ WebSocket.prototype.emit = function (eventName, data, callback) {
41135+ var socket = this.socket;
41136+ var rootScope = this.$rootScope;
41137+ this.socket.emit(eventName, data, function () {
41138+ var args = arguments;
41139+ rootScope.$apply(function () {
41140+ if (callback)
41141+ callback.apply(socket, args);
41142+ });
41143+ });
41144+ };
41145+ return WebSocket;
41146+ })();
41147+ services.WebSocket = WebSocket;
41148+ })(services = app.services || (app.services = {}));
41149+ })(app || (app = {}));
41150+ var app;
41151+ (function (app) {
4111641152 var directives;
4111741153 (function (directives) {
4111841154 var Command = (function () {
@@ -41141,10 +41177,11 @@
4114141177 })();
4114241178 directives.Command = Command;
4114341179 var CommandController = (function () {
41144- function CommandController(APIEndPoint, $scope, MyModal) {
41180+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4114541181 this.APIEndPoint = APIEndPoint;
4114641182 this.$scope = $scope;
4114741183 this.MyModal = MyModal;
41184+ this.WebSocket = WebSocket;
4114841185 var controller = this;
4114941186 this.APIEndPoint
4115041187 .getOptionControlFile('mrcImageNoiseAdd')
@@ -41163,6 +41200,9 @@
4116341200 this.$scope.$on('close', function () {
4116441201 controller.isOpen = false;
4116541202 });
41203+ this.WebSocket.on('test', function (data) {
41204+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
41205+ });
4116641206 }
4116741207 CommandController.prototype.submit = function () {
4116841208 var opt = [];
@@ -41218,7 +41258,7 @@
4121841258 CommandController.prototype.debug = function () {
4121941259 this.MyModal.preview();
4122041260 };
41221- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
41261+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4122241262 return CommandController;
4122341263 })();
4122441264 directives.CommandController = CommandController;
@@ -41539,10 +41579,11 @@
4153941579 });
4154041580 });
4154141581 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
41582+ app.zephyr.service('MyModal', app.services.MyModal);
41583+ app.zephyr.service('WebSocket', app.services.WebSocket);
4154241584 app.zephyr.filter('Tag', filters.Tag);
4154341585 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4154441586 app.zephyr.controller('previewController', app.controllers.Preview);
41545- app.zephyr.service('MyModal', app.services.MyModal);
4154641587 app.zephyr.controller('executionController', app.controllers.Execution);
4154741588 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4154841589 app.zephyr.controller('historyController', app.controllers.History);
@@ -41673,6 +41714,41 @@
4167341714 })(app || (app = {}));
4167441715 var app;
4167541716 (function (app) {
41717+ var services;
41718+ (function (services) {
41719+ var WebSocket = (function () {
41720+ function WebSocket($rootScope) {
41721+ this.$rootScope = $rootScope;
41722+ this.socket = io.connect();
41723+ }
41724+ WebSocket.prototype.on = function (eventName, callback) {
41725+ var socket = this.socket;
41726+ var rootScope = this.$rootScope;
41727+ socket.on(eventName, function () {
41728+ var args = arguments;
41729+ rootScope.$apply(function () {
41730+ callback.apply(socket, args);
41731+ });
41732+ });
41733+ };
41734+ WebSocket.prototype.emit = function (eventName, data, callback) {
41735+ var socket = this.socket;
41736+ var rootScope = this.$rootScope;
41737+ this.socket.emit(eventName, data, function () {
41738+ var args = arguments;
41739+ rootScope.$apply(function () {
41740+ if (callback)
41741+ callback.apply(socket, args);
41742+ });
41743+ });
41744+ };
41745+ return WebSocket;
41746+ })();
41747+ services.WebSocket = WebSocket;
41748+ })(services = app.services || (app.services = {}));
41749+ })(app || (app = {}));
41750+ var app;
41751+ (function (app) {
4167641752 var directives;
4167741753 (function (directives) {
4167841754 var Command = (function () {
@@ -41701,10 +41777,11 @@
4170141777 })();
4170241778 directives.Command = Command;
4170341779 var CommandController = (function () {
41704- function CommandController(APIEndPoint, $scope, MyModal) {
41780+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4170541781 this.APIEndPoint = APIEndPoint;
4170641782 this.$scope = $scope;
4170741783 this.MyModal = MyModal;
41784+ this.WebSocket = WebSocket;
4170841785 var controller = this;
4170941786 this.APIEndPoint
4171041787 .getOptionControlFile('mrcImageNoiseAdd')
@@ -41723,6 +41800,9 @@
4172341800 this.$scope.$on('close', function () {
4172441801 controller.isOpen = false;
4172541802 });
41803+ this.WebSocket.on('test', function (data) {
41804+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
41805+ });
4172641806 }
4172741807 CommandController.prototype.submit = function () {
4172841808 var opt = [];
@@ -41778,7 +41858,7 @@
4177841858 CommandController.prototype.debug = function () {
4177941859 this.MyModal.preview();
4178041860 };
41781- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
41861+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4178241862 return CommandController;
4178341863 })();
4178441864 directives.CommandController = CommandController;
@@ -42099,10 +42179,11 @@
4209942179 });
4210042180 });
4210142181 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
42182+ app.zephyr.service('MyModal', app.services.MyModal);
42183+ app.zephyr.service('WebSocket', app.services.WebSocket);
4210242184 app.zephyr.filter('Tag', filters.Tag);
4210342185 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4210442186 app.zephyr.controller('previewController', app.controllers.Preview);
42105- app.zephyr.service('MyModal', app.services.MyModal);
4210642187 app.zephyr.controller('executionController', app.controllers.Execution);
4210742188 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4210842189 app.zephyr.controller('historyController', app.controllers.History);
@@ -42233,6 +42314,41 @@
4223342314 })(app || (app = {}));
4223442315 var app;
4223542316 (function (app) {
42317+ var services;
42318+ (function (services) {
42319+ var WebSocket = (function () {
42320+ function WebSocket($rootScope) {
42321+ this.$rootScope = $rootScope;
42322+ this.socket = io.connect();
42323+ }
42324+ WebSocket.prototype.on = function (eventName, callback) {
42325+ var socket = this.socket;
42326+ var rootScope = this.$rootScope;
42327+ socket.on(eventName, function () {
42328+ var args = arguments;
42329+ rootScope.$apply(function () {
42330+ callback.apply(socket, args);
42331+ });
42332+ });
42333+ };
42334+ WebSocket.prototype.emit = function (eventName, data, callback) {
42335+ var socket = this.socket;
42336+ var rootScope = this.$rootScope;
42337+ this.socket.emit(eventName, data, function () {
42338+ var args = arguments;
42339+ rootScope.$apply(function () {
42340+ if (callback)
42341+ callback.apply(socket, args);
42342+ });
42343+ });
42344+ };
42345+ return WebSocket;
42346+ })();
42347+ services.WebSocket = WebSocket;
42348+ })(services = app.services || (app.services = {}));
42349+ })(app || (app = {}));
42350+ var app;
42351+ (function (app) {
4223642352 var directives;
4223742353 (function (directives) {
4223842354 var Command = (function () {
@@ -42261,10 +42377,11 @@
4226142377 })();
4226242378 directives.Command = Command;
4226342379 var CommandController = (function () {
42264- function CommandController(APIEndPoint, $scope, MyModal) {
42380+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4226542381 this.APIEndPoint = APIEndPoint;
4226642382 this.$scope = $scope;
4226742383 this.MyModal = MyModal;
42384+ this.WebSocket = WebSocket;
4226842385 var controller = this;
4226942386 this.APIEndPoint
4227042387 .getOptionControlFile('mrcImageNoiseAdd')
@@ -42283,6 +42400,9 @@
4228342400 this.$scope.$on('close', function () {
4228442401 controller.isOpen = false;
4228542402 });
42403+ this.WebSocket.on('test', function (data) {
42404+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
42405+ });
4228642406 }
4228742407 CommandController.prototype.submit = function () {
4228842408 var opt = [];
@@ -42338,7 +42458,7 @@
4233842458 CommandController.prototype.debug = function () {
4233942459 this.MyModal.preview();
4234042460 };
42341- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
42461+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4234242462 return CommandController;
4234342463 })();
4234442464 directives.CommandController = CommandController;
@@ -42659,10 +42779,11 @@
4265942779 });
4266042780 });
4266142781 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
42782+ app.zephyr.service('MyModal', app.services.MyModal);
42783+ app.zephyr.service('WebSocket', app.services.WebSocket);
4266242784 app.zephyr.filter('Tag', filters.Tag);
4266342785 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4266442786 app.zephyr.controller('previewController', app.controllers.Preview);
42665- app.zephyr.service('MyModal', app.services.MyModal);
4266642787 app.zephyr.controller('executionController', app.controllers.Execution);
4266742788 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4266842789 app.zephyr.controller('historyController', app.controllers.History);
@@ -42793,6 +42914,41 @@
4279342914 })(app || (app = {}));
4279442915 var app;
4279542916 (function (app) {
42917+ var services;
42918+ (function (services) {
42919+ var WebSocket = (function () {
42920+ function WebSocket($rootScope) {
42921+ this.$rootScope = $rootScope;
42922+ this.socket = io.connect();
42923+ }
42924+ WebSocket.prototype.on = function (eventName, callback) {
42925+ var socket = this.socket;
42926+ var rootScope = this.$rootScope;
42927+ socket.on(eventName, function () {
42928+ var args = arguments;
42929+ rootScope.$apply(function () {
42930+ callback.apply(socket, args);
42931+ });
42932+ });
42933+ };
42934+ WebSocket.prototype.emit = function (eventName, data, callback) {
42935+ var socket = this.socket;
42936+ var rootScope = this.$rootScope;
42937+ this.socket.emit(eventName, data, function () {
42938+ var args = arguments;
42939+ rootScope.$apply(function () {
42940+ if (callback)
42941+ callback.apply(socket, args);
42942+ });
42943+ });
42944+ };
42945+ return WebSocket;
42946+ })();
42947+ services.WebSocket = WebSocket;
42948+ })(services = app.services || (app.services = {}));
42949+ })(app || (app = {}));
42950+ var app;
42951+ (function (app) {
4279642952 var directives;
4279742953 (function (directives) {
4279842954 var Command = (function () {
@@ -42821,10 +42977,11 @@
4282142977 })();
4282242978 directives.Command = Command;
4282342979 var CommandController = (function () {
42824- function CommandController(APIEndPoint, $scope, MyModal) {
42980+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4282542981 this.APIEndPoint = APIEndPoint;
4282642982 this.$scope = $scope;
4282742983 this.MyModal = MyModal;
42984+ this.WebSocket = WebSocket;
4282842985 var controller = this;
4282942986 this.APIEndPoint
4283042987 .getOptionControlFile('mrcImageNoiseAdd')
@@ -42843,6 +43000,9 @@
4284343000 this.$scope.$on('close', function () {
4284443001 controller.isOpen = false;
4284543002 });
43003+ this.WebSocket.on('test', function (data) {
43004+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
43005+ });
4284643006 }
4284743007 CommandController.prototype.submit = function () {
4284843008 var opt = [];
@@ -42898,7 +43058,7 @@
4289843058 CommandController.prototype.debug = function () {
4289943059 this.MyModal.preview();
4290043060 };
42901- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
43061+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4290243062 return CommandController;
4290343063 })();
4290443064 directives.CommandController = CommandController;
@@ -43219,10 +43379,11 @@
4321943379 });
4322043380 });
4322143381 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
43382+ app.zephyr.service('MyModal', app.services.MyModal);
43383+ app.zephyr.service('WebSocket', app.services.WebSocket);
4322243384 app.zephyr.filter('Tag', filters.Tag);
4322343385 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4322443386 app.zephyr.controller('previewController', app.controllers.Preview);
43225- app.zephyr.service('MyModal', app.services.MyModal);
4322643387 app.zephyr.controller('executionController', app.controllers.Execution);
4322743388 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4322843389 app.zephyr.controller('historyController', app.controllers.History);
@@ -43353,6 +43514,41 @@
4335343514 })(app || (app = {}));
4335443515 var app;
4335543516 (function (app) {
43517+ var services;
43518+ (function (services) {
43519+ var WebSocket = (function () {
43520+ function WebSocket($rootScope) {
43521+ this.$rootScope = $rootScope;
43522+ this.socket = io.connect();
43523+ }
43524+ WebSocket.prototype.on = function (eventName, callback) {
43525+ var socket = this.socket;
43526+ var rootScope = this.$rootScope;
43527+ socket.on(eventName, function () {
43528+ var args = arguments;
43529+ rootScope.$apply(function () {
43530+ callback.apply(socket, args);
43531+ });
43532+ });
43533+ };
43534+ WebSocket.prototype.emit = function (eventName, data, callback) {
43535+ var socket = this.socket;
43536+ var rootScope = this.$rootScope;
43537+ this.socket.emit(eventName, data, function () {
43538+ var args = arguments;
43539+ rootScope.$apply(function () {
43540+ if (callback)
43541+ callback.apply(socket, args);
43542+ });
43543+ });
43544+ };
43545+ return WebSocket;
43546+ })();
43547+ services.WebSocket = WebSocket;
43548+ })(services = app.services || (app.services = {}));
43549+ })(app || (app = {}));
43550+ var app;
43551+ (function (app) {
4335643552 var directives;
4335743553 (function (directives) {
4335843554 var Command = (function () {
@@ -43381,10 +43577,11 @@
4338143577 })();
4338243578 directives.Command = Command;
4338343579 var CommandController = (function () {
43384- function CommandController(APIEndPoint, $scope, MyModal) {
43580+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4338543581 this.APIEndPoint = APIEndPoint;
4338643582 this.$scope = $scope;
4338743583 this.MyModal = MyModal;
43584+ this.WebSocket = WebSocket;
4338843585 var controller = this;
4338943586 this.APIEndPoint
4339043587 .getOptionControlFile('mrcImageNoiseAdd')
@@ -43403,6 +43600,9 @@
4340343600 this.$scope.$on('close', function () {
4340443601 controller.isOpen = false;
4340543602 });
43603+ this.WebSocket.on('test', function (data) {
43604+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
43605+ });
4340643606 }
4340743607 CommandController.prototype.submit = function () {
4340843608 var opt = [];
@@ -43458,7 +43658,7 @@
4345843658 CommandController.prototype.debug = function () {
4345943659 this.MyModal.preview();
4346043660 };
43461- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
43661+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4346243662 return CommandController;
4346343663 })();
4346443664 directives.CommandController = CommandController;
@@ -43779,10 +43979,11 @@
4377943979 });
4378043980 });
4378143981 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
43982+ app.zephyr.service('MyModal', app.services.MyModal);
43983+ app.zephyr.service('WebSocket', app.services.WebSocket);
4378243984 app.zephyr.filter('Tag', filters.Tag);
4378343985 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4378443986 app.zephyr.controller('previewController', app.controllers.Preview);
43785- app.zephyr.service('MyModal', app.services.MyModal);
4378643987 app.zephyr.controller('executionController', app.controllers.Execution);
4378743988 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4378843989 app.zephyr.controller('historyController', app.controllers.History);
@@ -43913,6 +44114,41 @@
4391344114 })(app || (app = {}));
4391444115 var app;
4391544116 (function (app) {
44117+ var services;
44118+ (function (services) {
44119+ var WebSocket = (function () {
44120+ function WebSocket($rootScope) {
44121+ this.$rootScope = $rootScope;
44122+ this.socket = io.connect();
44123+ }
44124+ WebSocket.prototype.on = function (eventName, callback) {
44125+ var socket = this.socket;
44126+ var rootScope = this.$rootScope;
44127+ socket.on(eventName, function () {
44128+ var args = arguments;
44129+ rootScope.$apply(function () {
44130+ callback.apply(socket, args);
44131+ });
44132+ });
44133+ };
44134+ WebSocket.prototype.emit = function (eventName, data, callback) {
44135+ var socket = this.socket;
44136+ var rootScope = this.$rootScope;
44137+ this.socket.emit(eventName, data, function () {
44138+ var args = arguments;
44139+ rootScope.$apply(function () {
44140+ if (callback)
44141+ callback.apply(socket, args);
44142+ });
44143+ });
44144+ };
44145+ return WebSocket;
44146+ })();
44147+ services.WebSocket = WebSocket;
44148+ })(services = app.services || (app.services = {}));
44149+ })(app || (app = {}));
44150+ var app;
44151+ (function (app) {
4391644152 var directives;
4391744153 (function (directives) {
4391844154 var Command = (function () {
@@ -43941,10 +44177,11 @@
4394144177 })();
4394244178 directives.Command = Command;
4394344179 var CommandController = (function () {
43944- function CommandController(APIEndPoint, $scope, MyModal) {
44180+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4394544181 this.APIEndPoint = APIEndPoint;
4394644182 this.$scope = $scope;
4394744183 this.MyModal = MyModal;
44184+ this.WebSocket = WebSocket;
4394844185 var controller = this;
4394944186 this.APIEndPoint
4395044187 .getOptionControlFile('mrcImageNoiseAdd')
@@ -43963,6 +44200,9 @@
4396344200 this.$scope.$on('close', function () {
4396444201 controller.isOpen = false;
4396544202 });
44203+ this.WebSocket.on('test', function (data) {
44204+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
44205+ });
4396644206 }
4396744207 CommandController.prototype.submit = function () {
4396844208 var opt = [];
@@ -44018,7 +44258,7 @@
4401844258 CommandController.prototype.debug = function () {
4401944259 this.MyModal.preview();
4402044260 };
44021- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
44261+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4402244262 return CommandController;
4402344263 })();
4402444264 directives.CommandController = CommandController;
@@ -44339,10 +44579,11 @@
4433944579 });
4434044580 });
4434144581 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
44582+ app.zephyr.service('MyModal', app.services.MyModal);
44583+ app.zephyr.service('WebSocket', app.services.WebSocket);
4434244584 app.zephyr.filter('Tag', filters.Tag);
4434344585 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4434444586 app.zephyr.controller('previewController', app.controllers.Preview);
44345- app.zephyr.service('MyModal', app.services.MyModal);
4434644587 app.zephyr.controller('executionController', app.controllers.Execution);
4434744588 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4434844589 app.zephyr.controller('historyController', app.controllers.History);
@@ -44473,6 +44714,41 @@
4447344714 })(app || (app = {}));
4447444715 var app;
4447544716 (function (app) {
44717+ var services;
44718+ (function (services) {
44719+ var WebSocket = (function () {
44720+ function WebSocket($rootScope) {
44721+ this.$rootScope = $rootScope;
44722+ this.socket = io.connect();
44723+ }
44724+ WebSocket.prototype.on = function (eventName, callback) {
44725+ var socket = this.socket;
44726+ var rootScope = this.$rootScope;
44727+ socket.on(eventName, function () {
44728+ var args = arguments;
44729+ rootScope.$apply(function () {
44730+ callback.apply(socket, args);
44731+ });
44732+ });
44733+ };
44734+ WebSocket.prototype.emit = function (eventName, data, callback) {
44735+ var socket = this.socket;
44736+ var rootScope = this.$rootScope;
44737+ this.socket.emit(eventName, data, function () {
44738+ var args = arguments;
44739+ rootScope.$apply(function () {
44740+ if (callback)
44741+ callback.apply(socket, args);
44742+ });
44743+ });
44744+ };
44745+ return WebSocket;
44746+ })();
44747+ services.WebSocket = WebSocket;
44748+ })(services = app.services || (app.services = {}));
44749+ })(app || (app = {}));
44750+ var app;
44751+ (function (app) {
4447644752 var directives;
4447744753 (function (directives) {
4447844754 var Command = (function () {
@@ -44501,10 +44777,11 @@
4450144777 })();
4450244778 directives.Command = Command;
4450344779 var CommandController = (function () {
44504- function CommandController(APIEndPoint, $scope, MyModal) {
44780+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4450544781 this.APIEndPoint = APIEndPoint;
4450644782 this.$scope = $scope;
4450744783 this.MyModal = MyModal;
44784+ this.WebSocket = WebSocket;
4450844785 var controller = this;
4450944786 this.APIEndPoint
4451044787 .getOptionControlFile('mrcImageNoiseAdd')
@@ -44523,6 +44800,9 @@
4452344800 this.$scope.$on('close', function () {
4452444801 controller.isOpen = false;
4452544802 });
44803+ this.WebSocket.on('test', function (data) {
44804+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
44805+ });
4452644806 }
4452744807 CommandController.prototype.submit = function () {
4452844808 var opt = [];
@@ -44578,7 +44858,7 @@
4457844858 CommandController.prototype.debug = function () {
4457944859 this.MyModal.preview();
4458044860 };
44581- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
44861+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4458244862 return CommandController;
4458344863 })();
4458444864 directives.CommandController = CommandController;
@@ -44899,10 +45179,11 @@
4489945179 });
4490045180 });
4490145181 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
45182+ app.zephyr.service('MyModal', app.services.MyModal);
45183+ app.zephyr.service('WebSocket', app.services.WebSocket);
4490245184 app.zephyr.filter('Tag', filters.Tag);
4490345185 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4490445186 app.zephyr.controller('previewController', app.controllers.Preview);
44905- app.zephyr.service('MyModal', app.services.MyModal);
4490645187 app.zephyr.controller('executionController', app.controllers.Execution);
4490745188 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4490845189 app.zephyr.controller('historyController', app.controllers.History);
@@ -45033,6 +45314,41 @@
4503345314 })(app || (app = {}));
4503445315 var app;
4503545316 (function (app) {
45317+ var services;
45318+ (function (services) {
45319+ var WebSocket = (function () {
45320+ function WebSocket($rootScope) {
45321+ this.$rootScope = $rootScope;
45322+ this.socket = io.connect();
45323+ }
45324+ WebSocket.prototype.on = function (eventName, callback) {
45325+ var socket = this.socket;
45326+ var rootScope = this.$rootScope;
45327+ socket.on(eventName, function () {
45328+ var args = arguments;
45329+ rootScope.$apply(function () {
45330+ callback.apply(socket, args);
45331+ });
45332+ });
45333+ };
45334+ WebSocket.prototype.emit = function (eventName, data, callback) {
45335+ var socket = this.socket;
45336+ var rootScope = this.$rootScope;
45337+ this.socket.emit(eventName, data, function () {
45338+ var args = arguments;
45339+ rootScope.$apply(function () {
45340+ if (callback)
45341+ callback.apply(socket, args);
45342+ });
45343+ });
45344+ };
45345+ return WebSocket;
45346+ })();
45347+ services.WebSocket = WebSocket;
45348+ })(services = app.services || (app.services = {}));
45349+ })(app || (app = {}));
45350+ var app;
45351+ (function (app) {
4503645352 var directives;
4503745353 (function (directives) {
4503845354 var Command = (function () {
@@ -45061,10 +45377,11 @@
4506145377 })();
4506245378 directives.Command = Command;
4506345379 var CommandController = (function () {
45064- function CommandController(APIEndPoint, $scope, MyModal) {
45380+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4506545381 this.APIEndPoint = APIEndPoint;
4506645382 this.$scope = $scope;
4506745383 this.MyModal = MyModal;
45384+ this.WebSocket = WebSocket;
4506845385 var controller = this;
4506945386 this.APIEndPoint
4507045387 .getOptionControlFile('mrcImageNoiseAdd')
@@ -45083,6 +45400,9 @@
4508345400 this.$scope.$on('close', function () {
4508445401 controller.isOpen = false;
4508545402 });
45403+ this.WebSocket.on('test', function (data) {
45404+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
45405+ });
4508645406 }
4508745407 CommandController.prototype.submit = function () {
4508845408 var opt = [];
@@ -45138,7 +45458,7 @@
4513845458 CommandController.prototype.debug = function () {
4513945459 this.MyModal.preview();
4514045460 };
45141- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
45461+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4514245462 return CommandController;
4514345463 })();
4514445464 directives.CommandController = CommandController;
@@ -45459,10 +45779,11 @@
4545945779 });
4546045780 });
4546145781 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
45782+ app.zephyr.service('MyModal', app.services.MyModal);
45783+ app.zephyr.service('WebSocket', app.services.WebSocket);
4546245784 app.zephyr.filter('Tag', filters.Tag);
4546345785 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4546445786 app.zephyr.controller('previewController', app.controllers.Preview);
45465- app.zephyr.service('MyModal', app.services.MyModal);
4546645787 app.zephyr.controller('executionController', app.controllers.Execution);
4546745788 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4546845789 app.zephyr.controller('historyController', app.controllers.History);
@@ -45593,6 +45914,41 @@
4559345914 })(app || (app = {}));
4559445915 var app;
4559545916 (function (app) {
45917+ var services;
45918+ (function (services) {
45919+ var WebSocket = (function () {
45920+ function WebSocket($rootScope) {
45921+ this.$rootScope = $rootScope;
45922+ this.socket = io.connect();
45923+ }
45924+ WebSocket.prototype.on = function (eventName, callback) {
45925+ var socket = this.socket;
45926+ var rootScope = this.$rootScope;
45927+ socket.on(eventName, function () {
45928+ var args = arguments;
45929+ rootScope.$apply(function () {
45930+ callback.apply(socket, args);
45931+ });
45932+ });
45933+ };
45934+ WebSocket.prototype.emit = function (eventName, data, callback) {
45935+ var socket = this.socket;
45936+ var rootScope = this.$rootScope;
45937+ this.socket.emit(eventName, data, function () {
45938+ var args = arguments;
45939+ rootScope.$apply(function () {
45940+ if (callback)
45941+ callback.apply(socket, args);
45942+ });
45943+ });
45944+ };
45945+ return WebSocket;
45946+ })();
45947+ services.WebSocket = WebSocket;
45948+ })(services = app.services || (app.services = {}));
45949+ })(app || (app = {}));
45950+ var app;
45951+ (function (app) {
4559645952 var directives;
4559745953 (function (directives) {
4559845954 var Command = (function () {
@@ -45621,10 +45977,11 @@
4562145977 })();
4562245978 directives.Command = Command;
4562345979 var CommandController = (function () {
45624- function CommandController(APIEndPoint, $scope, MyModal) {
45980+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4562545981 this.APIEndPoint = APIEndPoint;
4562645982 this.$scope = $scope;
4562745983 this.MyModal = MyModal;
45984+ this.WebSocket = WebSocket;
4562845985 var controller = this;
4562945986 this.APIEndPoint
4563045987 .getOptionControlFile('mrcImageNoiseAdd')
@@ -45643,6 +46000,9 @@
4564346000 this.$scope.$on('close', function () {
4564446001 controller.isOpen = false;
4564546002 });
46003+ this.WebSocket.on('test', function (data) {
46004+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
46005+ });
4564646006 }
4564746007 CommandController.prototype.submit = function () {
4564846008 var opt = [];
@@ -45698,7 +46058,7 @@
4569846058 CommandController.prototype.debug = function () {
4569946059 this.MyModal.preview();
4570046060 };
45701- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
46061+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4570246062 return CommandController;
4570346063 })();
4570446064 directives.CommandController = CommandController;
@@ -46019,10 +46379,11 @@
4601946379 });
4602046380 });
4602146381 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
46382+ app.zephyr.service('MyModal', app.services.MyModal);
46383+ app.zephyr.service('WebSocket', app.services.WebSocket);
4602246384 app.zephyr.filter('Tag', filters.Tag);
4602346385 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4602446386 app.zephyr.controller('previewController', app.controllers.Preview);
46025- app.zephyr.service('MyModal', app.services.MyModal);
4602646387 app.zephyr.controller('executionController', app.controllers.Execution);
4602746388 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4602846389 app.zephyr.controller('historyController', app.controllers.History);
@@ -46153,6 +46514,41 @@
4615346514 })(app || (app = {}));
4615446515 var app;
4615546516 (function (app) {
46517+ var services;
46518+ (function (services) {
46519+ var WebSocket = (function () {
46520+ function WebSocket($rootScope) {
46521+ this.$rootScope = $rootScope;
46522+ this.socket = io.connect();
46523+ }
46524+ WebSocket.prototype.on = function (eventName, callback) {
46525+ var socket = this.socket;
46526+ var rootScope = this.$rootScope;
46527+ socket.on(eventName, function () {
46528+ var args = arguments;
46529+ rootScope.$apply(function () {
46530+ callback.apply(socket, args);
46531+ });
46532+ });
46533+ };
46534+ WebSocket.prototype.emit = function (eventName, data, callback) {
46535+ var socket = this.socket;
46536+ var rootScope = this.$rootScope;
46537+ this.socket.emit(eventName, data, function () {
46538+ var args = arguments;
46539+ rootScope.$apply(function () {
46540+ if (callback)
46541+ callback.apply(socket, args);
46542+ });
46543+ });
46544+ };
46545+ return WebSocket;
46546+ })();
46547+ services.WebSocket = WebSocket;
46548+ })(services = app.services || (app.services = {}));
46549+ })(app || (app = {}));
46550+ var app;
46551+ (function (app) {
4615646552 var directives;
4615746553 (function (directives) {
4615846554 var Command = (function () {
@@ -46181,10 +46577,11 @@
4618146577 })();
4618246578 directives.Command = Command;
4618346579 var CommandController = (function () {
46184- function CommandController(APIEndPoint, $scope, MyModal) {
46580+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4618546581 this.APIEndPoint = APIEndPoint;
4618646582 this.$scope = $scope;
4618746583 this.MyModal = MyModal;
46584+ this.WebSocket = WebSocket;
4618846585 var controller = this;
4618946586 this.APIEndPoint
4619046587 .getOptionControlFile('mrcImageNoiseAdd')
@@ -46203,6 +46600,9 @@
4620346600 this.$scope.$on('close', function () {
4620446601 controller.isOpen = false;
4620546602 });
46603+ this.WebSocket.on('test', function (data) {
46604+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
46605+ });
4620646606 }
4620746607 CommandController.prototype.submit = function () {
4620846608 var opt = [];
@@ -46258,7 +46658,7 @@
4625846658 CommandController.prototype.debug = function () {
4625946659 this.MyModal.preview();
4626046660 };
46261- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
46661+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4626246662 return CommandController;
4626346663 })();
4626446664 directives.CommandController = CommandController;
@@ -46579,10 +46979,11 @@
4657946979 });
4658046980 });
4658146981 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
46982+ app.zephyr.service('MyModal', app.services.MyModal);
46983+ app.zephyr.service('WebSocket', app.services.WebSocket);
4658246984 app.zephyr.filter('Tag', filters.Tag);
4658346985 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4658446986 app.zephyr.controller('previewController', app.controllers.Preview);
46585- app.zephyr.service('MyModal', app.services.MyModal);
4658646987 app.zephyr.controller('executionController', app.controllers.Execution);
4658746988 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4658846989 app.zephyr.controller('historyController', app.controllers.History);
@@ -46713,6 +47114,41 @@
4671347114 })(app || (app = {}));
4671447115 var app;
4671547116 (function (app) {
47117+ var services;
47118+ (function (services) {
47119+ var WebSocket = (function () {
47120+ function WebSocket($rootScope) {
47121+ this.$rootScope = $rootScope;
47122+ this.socket = io.connect();
47123+ }
47124+ WebSocket.prototype.on = function (eventName, callback) {
47125+ var socket = this.socket;
47126+ var rootScope = this.$rootScope;
47127+ socket.on(eventName, function () {
47128+ var args = arguments;
47129+ rootScope.$apply(function () {
47130+ callback.apply(socket, args);
47131+ });
47132+ });
47133+ };
47134+ WebSocket.prototype.emit = function (eventName, data, callback) {
47135+ var socket = this.socket;
47136+ var rootScope = this.$rootScope;
47137+ this.socket.emit(eventName, data, function () {
47138+ var args = arguments;
47139+ rootScope.$apply(function () {
47140+ if (callback)
47141+ callback.apply(socket, args);
47142+ });
47143+ });
47144+ };
47145+ return WebSocket;
47146+ })();
47147+ services.WebSocket = WebSocket;
47148+ })(services = app.services || (app.services = {}));
47149+ })(app || (app = {}));
47150+ var app;
47151+ (function (app) {
4671647152 var directives;
4671747153 (function (directives) {
4671847154 var Command = (function () {
@@ -46741,10 +47177,11 @@
4674147177 })();
4674247178 directives.Command = Command;
4674347179 var CommandController = (function () {
46744- function CommandController(APIEndPoint, $scope, MyModal) {
47180+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4674547181 this.APIEndPoint = APIEndPoint;
4674647182 this.$scope = $scope;
4674747183 this.MyModal = MyModal;
47184+ this.WebSocket = WebSocket;
4674847185 var controller = this;
4674947186 this.APIEndPoint
4675047187 .getOptionControlFile('mrcImageNoiseAdd')
@@ -46763,6 +47200,9 @@
4676347200 this.$scope.$on('close', function () {
4676447201 controller.isOpen = false;
4676547202 });
47203+ this.WebSocket.on('test', function (data) {
47204+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
47205+ });
4676647206 }
4676747207 CommandController.prototype.submit = function () {
4676847208 var opt = [];
@@ -46818,7 +47258,7 @@
4681847258 CommandController.prototype.debug = function () {
4681947259 this.MyModal.preview();
4682047260 };
46821- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
47261+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4682247262 return CommandController;
4682347263 })();
4682447264 directives.CommandController = CommandController;
@@ -47139,10 +47579,11 @@
4713947579 });
4714047580 });
4714147581 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
47582+ app.zephyr.service('MyModal', app.services.MyModal);
47583+ app.zephyr.service('WebSocket', app.services.WebSocket);
4714247584 app.zephyr.filter('Tag', filters.Tag);
4714347585 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4714447586 app.zephyr.controller('previewController', app.controllers.Preview);
47145- app.zephyr.service('MyModal', app.services.MyModal);
4714647587 app.zephyr.controller('executionController', app.controllers.Execution);
4714747588 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4714847589 app.zephyr.controller('historyController', app.controllers.History);
@@ -47273,6 +47714,41 @@
4727347714 })(app || (app = {}));
4727447715 var app;
4727547716 (function (app) {
47717+ var services;
47718+ (function (services) {
47719+ var WebSocket = (function () {
47720+ function WebSocket($rootScope) {
47721+ this.$rootScope = $rootScope;
47722+ this.socket = io.connect();
47723+ }
47724+ WebSocket.prototype.on = function (eventName, callback) {
47725+ var socket = this.socket;
47726+ var rootScope = this.$rootScope;
47727+ socket.on(eventName, function () {
47728+ var args = arguments;
47729+ rootScope.$apply(function () {
47730+ callback.apply(socket, args);
47731+ });
47732+ });
47733+ };
47734+ WebSocket.prototype.emit = function (eventName, data, callback) {
47735+ var socket = this.socket;
47736+ var rootScope = this.$rootScope;
47737+ this.socket.emit(eventName, data, function () {
47738+ var args = arguments;
47739+ rootScope.$apply(function () {
47740+ if (callback)
47741+ callback.apply(socket, args);
47742+ });
47743+ });
47744+ };
47745+ return WebSocket;
47746+ })();
47747+ services.WebSocket = WebSocket;
47748+ })(services = app.services || (app.services = {}));
47749+ })(app || (app = {}));
47750+ var app;
47751+ (function (app) {
4727647752 var directives;
4727747753 (function (directives) {
4727847754 var Command = (function () {
@@ -47301,10 +47777,11 @@
4730147777 })();
4730247778 directives.Command = Command;
4730347779 var CommandController = (function () {
47304- function CommandController(APIEndPoint, $scope, MyModal) {
47780+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4730547781 this.APIEndPoint = APIEndPoint;
4730647782 this.$scope = $scope;
4730747783 this.MyModal = MyModal;
47784+ this.WebSocket = WebSocket;
4730847785 var controller = this;
4730947786 this.APIEndPoint
4731047787 .getOptionControlFile('mrcImageNoiseAdd')
@@ -47323,6 +47800,9 @@
4732347800 this.$scope.$on('close', function () {
4732447801 controller.isOpen = false;
4732547802 });
47803+ this.WebSocket.on('test', function (data) {
47804+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
47805+ });
4732647806 }
4732747807 CommandController.prototype.submit = function () {
4732847808 var opt = [];
@@ -47378,7 +47858,7 @@
4737847858 CommandController.prototype.debug = function () {
4737947859 this.MyModal.preview();
4738047860 };
47381- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
47861+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4738247862 return CommandController;
4738347863 })();
4738447864 directives.CommandController = CommandController;
@@ -47699,10 +48179,11 @@
4769948179 });
4770048180 });
4770148181 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
48182+ app.zephyr.service('MyModal', app.services.MyModal);
48183+ app.zephyr.service('WebSocket', app.services.WebSocket);
4770248184 app.zephyr.filter('Tag', filters.Tag);
4770348185 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4770448186 app.zephyr.controller('previewController', app.controllers.Preview);
47705- app.zephyr.service('MyModal', app.services.MyModal);
4770648187 app.zephyr.controller('executionController', app.controllers.Execution);
4770748188 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4770848189 app.zephyr.controller('historyController', app.controllers.History);
@@ -47833,6 +48314,41 @@
4783348314 })(app || (app = {}));
4783448315 var app;
4783548316 (function (app) {
48317+ var services;
48318+ (function (services) {
48319+ var WebSocket = (function () {
48320+ function WebSocket($rootScope) {
48321+ this.$rootScope = $rootScope;
48322+ this.socket = io.connect();
48323+ }
48324+ WebSocket.prototype.on = function (eventName, callback) {
48325+ var socket = this.socket;
48326+ var rootScope = this.$rootScope;
48327+ socket.on(eventName, function () {
48328+ var args = arguments;
48329+ rootScope.$apply(function () {
48330+ callback.apply(socket, args);
48331+ });
48332+ });
48333+ };
48334+ WebSocket.prototype.emit = function (eventName, data, callback) {
48335+ var socket = this.socket;
48336+ var rootScope = this.$rootScope;
48337+ this.socket.emit(eventName, data, function () {
48338+ var args = arguments;
48339+ rootScope.$apply(function () {
48340+ if (callback)
48341+ callback.apply(socket, args);
48342+ });
48343+ });
48344+ };
48345+ return WebSocket;
48346+ })();
48347+ services.WebSocket = WebSocket;
48348+ })(services = app.services || (app.services = {}));
48349+ })(app || (app = {}));
48350+ var app;
48351+ (function (app) {
4783648352 var directives;
4783748353 (function (directives) {
4783848354 var Command = (function () {
@@ -47861,10 +48377,11 @@
4786148377 })();
4786248378 directives.Command = Command;
4786348379 var CommandController = (function () {
47864- function CommandController(APIEndPoint, $scope, MyModal) {
48380+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
4786548381 this.APIEndPoint = APIEndPoint;
4786648382 this.$scope = $scope;
4786748383 this.MyModal = MyModal;
48384+ this.WebSocket = WebSocket;
4786848385 var controller = this;
4786948386 this.APIEndPoint
4787048387 .getOptionControlFile('mrcImageNoiseAdd')
@@ -47883,6 +48400,9 @@
4788348400 this.$scope.$on('close', function () {
4788448401 controller.isOpen = false;
4788548402 });
48403+ this.WebSocket.on('test', function (data) {
48404+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
48405+ });
4788648406 }
4788748407 CommandController.prototype.submit = function () {
4788848408 var opt = [];
@@ -47938,7 +48458,7 @@
4793848458 CommandController.prototype.debug = function () {
4793948459 this.MyModal.preview();
4794048460 };
47941- CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal'];
48461+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
4794248462 return CommandController;
4794348463 })();
4794448464 directives.CommandController = CommandController;
@@ -48259,10 +48779,611 @@
4825948779 });
4826048780 });
4826148781 app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
48782+ app.zephyr.service('MyModal', app.services.MyModal);
48783+ app.zephyr.service('WebSocket', app.services.WebSocket);
4826248784 app.zephyr.filter('Tag', filters.Tag);
4826348785 app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
4826448786 app.zephyr.controller('previewController', app.controllers.Preview);
48787+ app.zephyr.controller('executionController', app.controllers.Execution);
48788+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
48789+ app.zephyr.controller('historyController', app.controllers.History);
48790+ app.zephyr.controller('commandController', app.directives.CommandController);
48791+ app.zephyr.controller('optionController', app.directives.OptionController);
48792+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
48793+ app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
48794+ app.zephyr.directive('command', app.directives.Command.Factory());
48795+ app.zephyr.directive('option', app.directives.Option.Factory());
48796+ app.zephyr.directive('directory', app.directives.Directory.Factory());
48797+ })(app || (app = {}));
48798+
48799+
48800+/***/ },
48801+/* 21 */
48802+/***/ function(module, exports) {
48803+
48804+ var app;
48805+ (function (app) {
48806+ var declares;
48807+ (function (declares) {
48808+ var CommandInfo = (function () {
48809+ function CommandInfo(name) {
48810+ this.name = name;
48811+ }
48812+ return CommandInfo;
48813+ })();
48814+ declares.CommandInfo = CommandInfo;
48815+ })(declares = app.declares || (app.declares = {}));
48816+ })(app || (app = {}));
48817+ var app;
48818+ (function (app) {
48819+ var services;
48820+ (function (services) {
48821+ var APIEndPoint = (function () {
48822+ function APIEndPoint($resource, $http) {
48823+ this.$resource = $resource;
48824+ this.$http = $http;
48825+ }
48826+ APIEndPoint.prototype.resource = function (endPoint, data) {
48827+ var customAction = {
48828+ method: 'GET',
48829+ isArray: false
48830+ };
48831+ var execute = {
48832+ method: 'POST',
48833+ headers: { 'Content-Type': undefined, enctype: 'multipart/form-data' }
48834+ };
48835+ return this.$resource(endPoint, {}, { execute: execute });
48836+ };
48837+ APIEndPoint.prototype.getOptionControlFile = function (command) {
48838+ var endPoint = '/api/v1/optionControlFile/' + command;
48839+ return this.resource(endPoint, {}).get();
48840+ };
48841+ APIEndPoint.prototype.getFiles = function (fileId) {
48842+ var endPoint = '/api/v1/workspace';
48843+ if (fileId) {
48844+ endPoint += '/' + fileId;
48845+ }
48846+ return this.resource(endPoint, {}).get();
48847+ };
48848+ APIEndPoint.prototype.getDirectories = function () {
48849+ var endPoint = '/api/v1/all/workspace/directory';
48850+ return this.resource(endPoint, {}).get();
48851+ };
48852+ APIEndPoint.prototype.getTags = function () {
48853+ var endPoint = '/api/v1/tagList';
48854+ return this.resource(endPoint, {}).get();
48855+ };
48856+ APIEndPoint.prototype.getCommands = function () {
48857+ var endPoint = '/api/v1/commandList';
48858+ return this.resource(endPoint, {}).get();
48859+ };
48860+ APIEndPoint.prototype.execute = function (data) {
48861+ var endPoint = '/api/v1/execution';
48862+ var fd = new FormData();
48863+ fd.append('data', data);
48864+ return this.$http.post(endPoint, fd, {
48865+ headers: { 'Content-Type': undefined },
48866+ transformRequest: angular.identity
48867+ });
48868+ };
48869+ return APIEndPoint;
48870+ })();
48871+ services.APIEndPoint = APIEndPoint;
48872+ })(services = app.services || (app.services = {}));
48873+ })(app || (app = {}));
48874+ var app;
48875+ (function (app) {
48876+ var services;
48877+ (function (services) {
48878+ var MyModal = (function () {
48879+ function MyModal($uibModal) {
48880+ this.$uibModal = $uibModal;
48881+ this.modalOption = {
48882+ backdrop: true,
48883+ controller: null,
48884+ templateUrl: null,
48885+ size: null
48886+ };
48887+ }
48888+ MyModal.prototype.open = function (modalName) {
48889+ if (modalName === 'SelectCommand') {
48890+ this.modalOption.templateUrl = 'templates/select-command.html';
48891+ this.modalOption.size = 'lg';
48892+ }
48893+ return this.$uibModal.open(this.modalOption);
48894+ };
48895+ MyModal.prototype.selectCommand = function () {
48896+ this.modalOption.templateUrl = 'templates/select-command.html';
48897+ this.modalOption.controller = 'selectCommandController';
48898+ this.modalOption.controllerAs = 'c';
48899+ this.modalOption.size = 'lg';
48900+ return this.$uibModal.open(this.modalOption);
48901+ };
48902+ MyModal.prototype.preview = function () {
48903+ this.modalOption.templateUrl = 'templates/preview.html';
48904+ this.modalOption.controller = 'previewController';
48905+ this.modalOption.controllerAs = 'c';
48906+ this.modalOption.size = 'lg';
48907+ return this.$uibModal.open(this.modalOption);
48908+ };
48909+ MyModal.$inject = ['$uibModal'];
48910+ return MyModal;
48911+ })();
48912+ services.MyModal = MyModal;
48913+ })(services = app.services || (app.services = {}));
48914+ })(app || (app = {}));
48915+ var app;
48916+ (function (app) {
48917+ var services;
48918+ (function (services) {
48919+ var WebSocket = (function () {
48920+ function WebSocket($rootScope) {
48921+ this.$rootScope = $rootScope;
48922+ this.socket = io.connect();
48923+ }
48924+ WebSocket.prototype.on = function (eventName, callback) {
48925+ var socket = this.socket;
48926+ var rootScope = this.$rootScope;
48927+ socket.on(eventName, function () {
48928+ var args = arguments;
48929+ rootScope.$apply(function () {
48930+ callback.apply(socket, args);
48931+ });
48932+ });
48933+ };
48934+ WebSocket.prototype.emit = function (eventName, data, callback) {
48935+ var socket = this.socket;
48936+ var rootScope = this.$rootScope;
48937+ this.socket.emit(eventName, data, function () {
48938+ var args = arguments;
48939+ rootScope.$apply(function () {
48940+ if (callback)
48941+ callback.apply(socket, args);
48942+ });
48943+ });
48944+ };
48945+ return WebSocket;
48946+ })();
48947+ services.WebSocket = WebSocket;
48948+ })(services = app.services || (app.services = {}));
48949+ })(app || (app = {}));
48950+ var app;
48951+ (function (app) {
48952+ var directives;
48953+ (function (directives) {
48954+ var Command = (function () {
48955+ function Command() {
48956+ this.restrict = 'E';
48957+ this.replace = true;
48958+ this.scope = true;
48959+ this.controller = 'commandController';
48960+ this.controllerAs = 'ctrl';
48961+ this.bindToController = {
48962+ index: '=',
48963+ name: '=',
48964+ remove: '&',
48965+ list: '='
48966+ };
48967+ this.templateUrl = 'templates/command.html';
48968+ }
48969+ Command.Factory = function () {
48970+ var directive = function () {
48971+ return new Command();
48972+ };
48973+ directive.$inject = [];
48974+ return directive;
48975+ };
48976+ return Command;
48977+ })();
48978+ directives.Command = Command;
48979+ var CommandController = (function () {
48980+ function CommandController(APIEndPoint, $scope, MyModal, WebSocket) {
48981+ this.APIEndPoint = APIEndPoint;
48982+ this.$scope = $scope;
48983+ this.MyModal = MyModal;
48984+ this.WebSocket = WebSocket;
48985+ var controller = this;
48986+ this.APIEndPoint
48987+ .getOptionControlFile('mrcImageNoiseAdd')
48988+ .$promise
48989+ .then(function (result) {
48990+ controller.options = result.info;
48991+ });
48992+ this.APIEndPoint
48993+ .getDirectories()
48994+ .$promise
48995+ .then(function (result) {
48996+ controller.dirs = result.info;
48997+ });
48998+ this.heading = "[" + this.index + "]: dcdFilePring";
48999+ this.isOpen = true;
49000+ this.$scope.$on('close', function () {
49001+ controller.isOpen = false;
49002+ });
49003+ this.WebSocket.on('test', function (data) {
49004+ console.log("HOGEHOGEHOGEHOHGOEHGOH");
49005+ });
49006+ }
49007+ CommandController.prototype.submit = function () {
49008+ var opt = [];
49009+ angular.forEach(this.options, function (option) {
49010+ var obj = {
49011+ name: option.option,
49012+ arguments: []
49013+ };
49014+ angular.forEach(option.arg, function (arg) {
49015+ if (arg.input) {
49016+ if (typeof arg.input === 'object') {
49017+ obj.arguments.push(arg.input.name);
49018+ }
49019+ else {
49020+ obj.arguments.push(arg.input);
49021+ }
49022+ }
49023+ });
49024+ if (obj.arguments.length > 0) {
49025+ opt.push(obj);
49026+ }
49027+ });
49028+ var execObj = {
49029+ command: this.name,
49030+ workspace: this.workspace.fileId,
49031+ options: opt
49032+ };
49033+ this.APIEndPoint
49034+ .execute(JSON.stringify(execObj))
49035+ .then(function (result) {
49036+ console.log(result);
49037+ });
49038+ };
49039+ CommandController.prototype.removeMySelf = function (index) {
49040+ this.remove()(index, this.list);
49041+ };
49042+ CommandController.prototype.reloadFiles = function () {
49043+ var _this = this;
49044+ var fileId = this.workspace.fileId;
49045+ this.APIEndPoint
49046+ .getFiles(fileId)
49047+ .$promise
49048+ .then(function (result) {
49049+ var status = result.status;
49050+ if (status === 'success') {
49051+ _this.files = result.info;
49052+ }
49053+ else {
49054+ console.log(result.message);
49055+ }
49056+ });
49057+ };
49058+ CommandController.prototype.debug = function () {
49059+ this.MyModal.preview();
49060+ };
49061+ CommandController.$inject = ['APIEndPoint', '$scope', 'MyModal', 'WebSocket'];
49062+ return CommandController;
49063+ })();
49064+ directives.CommandController = CommandController;
49065+ })(directives = app.directives || (app.directives = {}));
49066+ })(app || (app = {}));
49067+ var app;
49068+ (function (app) {
49069+ var directives;
49070+ (function (directives) {
49071+ var HeaderMenu = (function () {
49072+ function HeaderMenu() {
49073+ this.restrict = 'E';
49074+ this.replace = true;
49075+ this.templateUrl = 'templates/header-menu.html';
49076+ }
49077+ HeaderMenu.Factory = function () {
49078+ var directive = function () {
49079+ return new HeaderMenu();
49080+ };
49081+ return directive;
49082+ };
49083+ return HeaderMenu;
49084+ })();
49085+ directives.HeaderMenu = HeaderMenu;
49086+ })(directives = app.directives || (app.directives = {}));
49087+ })(app || (app = {}));
49088+ var app;
49089+ (function (app) {
49090+ var directives;
49091+ (function (directives) {
49092+ var Option = (function () {
49093+ function Option() {
49094+ this.restrict = 'E';
49095+ this.replace = true;
49096+ this.controller = 'optionController';
49097+ this.bindToController = {
49098+ info: '=',
49099+ files: '='
49100+ };
49101+ this.scope = true;
49102+ this.templateUrl = 'templates/option.html';
49103+ this.controllerAs = 'ctrl';
49104+ }
49105+ Option.Factory = function () {
49106+ var directive = function () {
49107+ return new Option();
49108+ };
49109+ directive.$inject = [];
49110+ return directive;
49111+ };
49112+ return Option;
49113+ })();
49114+ directives.Option = Option;
49115+ var OptionController = (function () {
49116+ function OptionController() {
49117+ var controller = this;
49118+ angular.forEach(controller.info.arg, function (arg) {
49119+ if (arg.initialValue) {
49120+ if (arg.formType === 'number') {
49121+ arg.input = parseInt(arg.initialValue);
49122+ }
49123+ else {
49124+ arg.input = arg.initialValue;
49125+ }
49126+ }
49127+ });
49128+ }
49129+ OptionController.$inject = [];
49130+ return OptionController;
49131+ })();
49132+ directives.OptionController = OptionController;
49133+ })(directives = app.directives || (app.directives = {}));
49134+ })(app || (app = {}));
49135+ var app;
49136+ (function (app) {
49137+ var directives;
49138+ (function (directives) {
49139+ var Directory = (function () {
49140+ function Directory() {
49141+ this.restrict = 'E';
49142+ this.replace = true;
49143+ this.controller = 'directoryController';
49144+ this.controllerAs = 'ctrl';
49145+ this.bindToController = {
49146+ info: '=',
49147+ add: '&',
49148+ list: '=',
49149+ files: '='
49150+ };
49151+ this.templateUrl = 'templates/directory.html';
49152+ }
49153+ Directory.Factory = function () {
49154+ var directive = function () {
49155+ return new Directory();
49156+ };
49157+ return directive;
49158+ };
49159+ return Directory;
49160+ })();
49161+ directives.Directory = Directory;
49162+ var DirectoryController = (function () {
49163+ function DirectoryController(APIEndPoint, $scope) {
49164+ this.APIEndPoint = APIEndPoint;
49165+ this.$scope = $scope;
49166+ var controller = this;
49167+ this.APIEndPoint
49168+ .getFiles(this.info.fileId)
49169+ .$promise
49170+ .then(function (result) {
49171+ if (result.status === 'success') {
49172+ controller.files = result.info;
49173+ angular.forEach(result.info, function (file) {
49174+ if (file.fileType === '0') {
49175+ var o = file;
49176+ if (controller.info.path === '/') {
49177+ o.path = '/' + file.name;
49178+ }
49179+ else {
49180+ o.path = controller.info.path + '/' + file.name;
49181+ }
49182+ controller.add()(o, controller.list);
49183+ }
49184+ });
49185+ }
49186+ ;
49187+ });
49188+ }
49189+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
49190+ return DirectoryController;
49191+ })();
49192+ directives.DirectoryController = DirectoryController;
49193+ })(directives = app.directives || (app.directives = {}));
49194+ })(app || (app = {}));
49195+ var app;
49196+ (function (app) {
49197+ var controllers;
49198+ (function (controllers) {
49199+ var Execution = (function () {
49200+ function Execution(MyModal, $scope) {
49201+ this.MyModal = MyModal;
49202+ this.$scope = $scope;
49203+ this.commandInfoList = [];
49204+ }
49205+ ;
49206+ Execution.prototype.add = function () {
49207+ this.$scope.$broadcast('close');
49208+ var commandInfoList = this.commandInfoList;
49209+ var commandInstance = this.MyModal.selectCommand();
49210+ commandInstance
49211+ .result
49212+ .then(function (command) {
49213+ commandInfoList.push(new app.declares.CommandInfo(command));
49214+ });
49215+ };
49216+ Execution.prototype.open = function () {
49217+ var result = this.MyModal.open('SelectCommand');
49218+ console.log(result);
49219+ };
49220+ Execution.prototype.remove = function (index, list) {
49221+ list.splice(index, 1);
49222+ };
49223+ Execution.prototype.close = function () {
49224+ console.log("close");
49225+ };
49226+ Execution.$inject = ['MyModal', '$scope'];
49227+ return Execution;
49228+ })();
49229+ controllers.Execution = Execution;
49230+ })(controllers = app.controllers || (app.controllers = {}));
49231+ })(app || (app = {}));
49232+ var app;
49233+ (function (app) {
49234+ var controllers;
49235+ (function (controllers) {
49236+ var Workspace = (function () {
49237+ function Workspace($scope, APIEndPoint, MyModal) {
49238+ this.$scope = $scope;
49239+ this.APIEndPoint = APIEndPoint;
49240+ this.MyModal = MyModal;
49241+ this.directoryList = [];
49242+ var controller = this;
49243+ var directoryList = this.directoryList;
49244+ var o = {
49245+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
49246+ name: '',
49247+ parentId: '',
49248+ fileType: '',
49249+ createdAt: '',
49250+ updatedAt: '',
49251+ path: '/'
49252+ };
49253+ directoryList.push(o);
49254+ }
49255+ Workspace.prototype.addDirectory = function (info, directoryList) {
49256+ directoryList.push(info);
49257+ };
49258+ Workspace.prototype.debug = function () {
49259+ this.MyModal.preview();
49260+ };
49261+ Workspace.$inject = ['$scope', 'APIEndPoint', 'MyModal'];
49262+ return Workspace;
49263+ })();
49264+ controllers.Workspace = Workspace;
49265+ })(controllers = app.controllers || (app.controllers = {}));
49266+ })(app || (app = {}));
49267+ var app;
49268+ (function (app) {
49269+ var controllers;
49270+ (function (controllers) {
49271+ var History = (function () {
49272+ function History($scope) {
49273+ this.page = "History";
49274+ }
49275+ History.$inject = ['$scope'];
49276+ return History;
49277+ })();
49278+ controllers.History = History;
49279+ })(controllers = app.controllers || (app.controllers = {}));
49280+ })(app || (app = {}));
49281+ var app;
49282+ (function (app) {
49283+ var controllers;
49284+ (function (controllers) {
49285+ var SelectCommand = (function () {
49286+ function SelectCommand($scope, APIEndPoint, $modalInstance) {
49287+ this.APIEndPoint = APIEndPoint;
49288+ this.$modalInstance = $modalInstance;
49289+ var controller = this;
49290+ this.APIEndPoint
49291+ .getTags()
49292+ .$promise.then(function (result) {
49293+ controller.tags = result.info;
49294+ });
49295+ this.APIEndPoint
49296+ .getCommands()
49297+ .$promise.then(function (result) {
49298+ controller.commands = result.info;
49299+ });
49300+ this.currentTag = 'all';
49301+ }
49302+ SelectCommand.prototype.changeTag = function (tag) {
49303+ this.currentTag = tag;
49304+ };
49305+ SelectCommand.prototype.selectCommand = function (command) {
49306+ this.$modalInstance.close(command);
49307+ };
49308+ SelectCommand.$inject = ['$scope', 'APIEndPoint', '$uibModalInstance'];
49309+ return SelectCommand;
49310+ })();
49311+ controllers.SelectCommand = SelectCommand;
49312+ })(controllers = app.controllers || (app.controllers = {}));
49313+ })(app || (app = {}));
49314+ var app;
49315+ (function (app) {
49316+ var controllers;
49317+ (function (controllers) {
49318+ var Preview = (function () {
49319+ function Preview($scope, APIEndPoint, $modalInstance) {
49320+ this.APIEndPoint = APIEndPoint;
49321+ this.$modalInstance = $modalInstance;
49322+ var controller = this;
49323+ console.log('preview');
49324+ }
49325+ Preview.$inject = ['$scope', 'APIEndPoint', '$uibModalInstance'];
49326+ return Preview;
49327+ })();
49328+ controllers.Preview = Preview;
49329+ })(controllers = app.controllers || (app.controllers = {}));
49330+ })(app || (app = {}));
49331+ var filters;
49332+ (function (filters) {
49333+ function Tag() {
49334+ return function (commands, tag) {
49335+ var result = [];
49336+ angular.forEach(commands, function (command) {
49337+ var flag = false;
49338+ angular.forEach(command.tags, function (value) {
49339+ if (tag === value)
49340+ flag = true;
49341+ });
49342+ if (flag)
49343+ result.push(command);
49344+ });
49345+ return result;
49346+ };
49347+ }
49348+ filters.Tag = Tag;
49349+ })(filters || (filters = {}));
49350+ var app;
49351+ (function (app) {
49352+ 'use strict';
49353+ var appName = 'zephyr';
49354+ app.zephyr = angular.module(appName, ['ui.router', 'ngResource', 'ui.bootstrap']);
49355+ app.zephyr.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
49356+ $urlRouterProvider.otherwise('/execution');
49357+ $locationProvider.html5Mode({
49358+ enabled: true,
49359+ requireBase: false
49360+ });
49361+ $stateProvider
49362+ .state('execution', {
49363+ url: '/execution',
49364+ templateUrl: 'templates/execution.html',
49365+ controller: 'executionController',
49366+ controllerAs: 'c'
49367+ })
49368+ .state('workspace', {
49369+ url: '/workspace',
49370+ templateUrl: 'templates/workspace.html',
49371+ controller: 'workspaceController',
49372+ controllerAs: 'c'
49373+ })
49374+ .state('history', {
49375+ url: '/history',
49376+ templateUrl: 'templates/history.html',
49377+ controller: 'historyController',
49378+ controllerAs: 'c'
49379+ });
49380+ });
49381+ app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
4826549382 app.zephyr.service('MyModal', app.services.MyModal);
49383+ app.zephyr.service('WebSocket', app.services.WebSocket);
49384+ app.zephyr.filter('Tag', filters.Tag);
49385+ app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
49386+ app.zephyr.controller('previewController', app.controllers.Preview);
4826649387 app.zephyr.controller('executionController', app.controllers.Execution);
4826749388 app.zephyr.controller('workspaceController', app.controllers.Workspace);
4826849389 app.zephyr.controller('historyController', app.controllers.History);
--- a/front-end/dist/index.html
+++ b/front-end/dist/index.html
@@ -7,6 +7,7 @@
77 </head>
88 <body ng-app="zephyr">
99 <ui-view></ui-view>
10+ <script src="/socket.io/socket.io.js"></script>
1011 <script src="./bundle.js"></script>
1112 </body>
1213 </html>
--- a/server/api/v1/all/workspace/directory/index.js
+++ b/server/api/v1/all/workspace/directory/index.js
@@ -7,7 +7,6 @@ var formidable = require('formidable')
77 var db = require(__dirname + '/../../../../../../server/class/DB').instance;
88
99 router.get('/', function(req, res) {
10- console.log('hogehoge');
1110 db.getDirectories()
1211 .then(function(dirs) {
1312 var info = {
--- a/server/class/DB.js
+++ b/server/class/DB.js
@@ -266,7 +266,6 @@ function getFiles(fileId) {
266266 */
267267 function getDirectories() {
268268 return new Promise(function(resolve, reject) {
269- console.log("GETDIRECTORIES");
270269 var q = {
271270 where: {
272271 fileType: 0
--- a/server/class/Eos.js
+++ b/server/class/Eos.js
@@ -349,7 +349,6 @@ function getUUIDs(fileId) {
349349 var uuids = {};
350350 r.forEach(function(v) {
351351 uuids[v.dataValues.name] = v.dataValues.fileId;
352- //console.log(uuids);
353352 });
354353 resolve(uuids);
355354 });
--- a/server/ws/index.js
+++ b/server/ws/index.js
@@ -1,10 +1,12 @@
11 'use strict'
22
33 var fs = require('fs')
4+var socket;
45
56 module.exports = function(io) {
67 io.on('connection', function(socket) {
78 console.log("websocket was connected")
9+ socket.emit('test', 'testtesttest');
810 /*
911 array include obj
1012 {
Show on old repository browser