• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

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


Commit MetaInfo

Revision9fa06a9fa78a955bf3a1c280c9b391f57a6ad898 (tree)
Time2016-01-28 04:22:47
Authorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

[Develop and Manual test] /workspace ページの開発

/workspaceに、workspace内の全てのファイルを表示。
On branch master
Changes to be committed:

modified: front-end/app/scripts/App.ts
modified: front-end/app/scripts/controllers/Execution.ts
modified: front-end/app/scripts/controllers/Workspace.ts
modified: front-end/app/scripts/declares.ts
modified: front-end/app/scripts/directives/Command.ts
new file: front-end/app/scripts/directives/Directory.ts
modified: front-end/app/scripts/entry.ts
modified: front-end/app/scripts/reference.ts
modified: front-end/app/scripts/services/APIEndPoint.ts
modified: front-end/app/templates/command.html
new file: front-end/app/templates/directory.html
modified: front-end/app/templates/workspace.html
modified: front-end/dist/bundle.js
modified: front-end/dist/templates/command.html
new file: front-end/dist/templates/directory.html
modified: front-end/dist/templates/workspace.html

Change Summary

Incremental Difference

--- a/front-end/app/scripts/App.ts
+++ b/front-end/app/scripts/App.ts
@@ -43,9 +43,11 @@ namespace app {
4343 zephyr.controller('historyController', controllers.History);
4444 zephyr.controller('commandController', directives.CommandController);
4545 zephyr.controller('optionController', directives.OptionController);
46+ zephyr.controller('directoryController', directives.DirectoryController);
4647
4748 zephyr.directive('headerMenu', directives.HeaderMenu.Factory());
4849 zephyr.directive('command', directives.Command.Factory());
4950 zephyr.directive('option', directives.Option.Factory());
51+ zephyr.directive('directory', directives.Directory.Factory());
5052
5153 }
--- a/front-end/app/scripts/controllers/Execution.ts
+++ b/front-end/app/scripts/controllers/Execution.ts
@@ -26,6 +26,14 @@ namespace app.controllers {
2626
2727 public remove(index: number, list: declares.CommandInfo[]) {
2828 list.splice(index, 1);
29+
30+ /**
31+ * Commandディレクティブから実行する際にはExecution.commandInfoListの参照を取得できない。
32+ * ディレクティブ経由でExecution.commandInfoListの参照を取得。
33+ * this.commandInfoList.splice(index, 1);
34+ * 上記のコードは実行できない。
35+ * thisがremoveの呼び出し元となるため。
36+ */
2937 }
3038
3139 public close() {
--- a/front-end/app/scripts/controllers/Workspace.ts
+++ b/front-end/app/scripts/controllers/Workspace.ts
@@ -2,22 +2,32 @@ namespace app.controllers {
22 export class Workspace {
33
44 public page: string;
5- public fileInfo: declares.IFileInfo[];
5+ public directoryList: declares.IDirectoryInfo[];
66
77 public static $inject = ['$scope', 'APIEndPoint'];
88
99 constructor(private $scope: ng.IScope, private APIEndPoint: services.APIEndPoint) {
10+ this.directoryList = [];
11+
1012 var controller = this;
13+ var directoryList = this.directoryList;
1114
12- this.page = 'workspace';
15+ var o = {
16+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
17+ name: '',
18+ parentId: '',
19+ fileType: '',
20+ createdAt: '',
21+ updatedAt:'',
22+ path: '/'
23+ };
24+ directoryList.push(o);
1325
14- this.APIEndPoint
15- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04') // rootのfileId
16- .$promise
17- .then(function(result) {
18- controller.fileInfo = result.info;
19- console.log(result);
20- });
2126 }
27+
28+ public addDirectory(info: declares.IDirectoryInfo, directoryList: declares.IDirectoryInfo[]) {
29+ directoryList.push(info);
30+ }
31+
2232 }
2333 }
--- a/front-end/app/scripts/declares.ts
+++ b/front-end/app/scripts/declares.ts
@@ -31,11 +31,21 @@ namespace app.declares {
3131 fileId: string,
3232 name: string,
3333 parentId: string,
34- fileType: number,
34+ fileType: string,
3535 createdAt: string,
3636 updatedAt: string
3737 }
3838
39+ export interface IDirectoryInfo extends IFileInfo {
40+ fileId: string,
41+ name: string,
42+ parentId: string,
43+ fileType: string,
44+ createdAt: string,
45+ updatedAt: string,
46+ path: string
47+ }
48+
3949 export interface IResponse extends ng.resource.IResource<IResponse> {
4050 status: string,
4151 info: any
--- a/front-end/app/scripts/directives/Command.ts
+++ b/front-end/app/scripts/directives/Command.ts
@@ -47,7 +47,7 @@ namespace app.directives {
4747
4848 public static $inject = ['APIEndPoint', '$scope'];
4949
50- // From parent directive.show bindToController property
50+ // From parent directive bindToController property
5151 private index: string;
5252 private name: string;
5353 private remove: Function;
@@ -64,6 +64,8 @@ namespace app.directives {
6464 constructor(private APIEndPoint: services.APIEndPoint, private $scope: ng.IScope) {
6565 var controller = this;
6666
67+ console.log(this.list);
68+
6769 // Get OptionControlFile and bind it to $scope.options
6870 this.APIEndPoint
6971 .getOptionControlFile('dcdFilePrint')
--- /dev/null
+++ b/front-end/app/scripts/directives/Directory.ts
@@ -0,0 +1,80 @@
1+namespace app.directives {
2+
3+ export class Directory implements ng.IDirective {
4+
5+ public restrict: string;
6+ public replace: boolean;
7+ public templateUrl: string;
8+ private fileInfo: declares.IFileInfo;
9+ public controller: string;
10+ public controllerAs: string;
11+ public bindToController: Object;
12+
13+ /**
14+ * constructor
15+ *
16+ * @param
17+ */
18+ constructor() {
19+ this.restrict = 'E';
20+ this.replace = true;
21+ this.controller = 'directoryController';
22+ this.controllerAs = 'ctrl';
23+ this.bindToController = {
24+ info: '=',
25+ add: '&',
26+ list: '=',
27+ files: '='
28+ };
29+ this.templateUrl = 'templates/directory.html';
30+ }
31+
32+ /**
33+ * instance生成
34+ * @returns {function(): HeaderMenu}
35+ * @constructor
36+ */
37+ public static Factory(): ng.IDirectiveFactory {
38+ var directive = () => {
39+ return new Directory();
40+ };
41+ return directive;
42+ }
43+ }
44+
45+ export class DirectoryController {
46+
47+ public static $inject = ['APIEndPoint', '$scope'];
48+
49+ // From parent directive bindToController property
50+ public info: declares.IDirectoryInfo;
51+ public files:declares.IFileInfo[];
52+ public add: Function;
53+ public list: declares.IDirectoryInfo[];
54+
55+ constructor(private APIEndPoint: services.APIEndPoint, private $scope: ng.IScope) {
56+ var controller = this;
57+
58+ this.APIEndPoint
59+ .getFiles(this.info.fileId)
60+ .$promise
61+ .then((result) => {
62+ if(result.status === 'success') {
63+ controller.files = result.info;
64+ angular.forEach(result.info, (file) => {
65+ if(file.fileType === '0') {
66+ var o = file;
67+ if(controller.info.path === '/') {
68+ o.path = '/' + file.name;
69+ } else {
70+ o.path = controller.info.path + '/' + file.name;
71+ }
72+
73+ controller.add()(o, controller.list);
74+ }
75+ });
76+ };
77+ });
78+ }
79+ }
80+}
--- a/front-end/app/scripts/entry.ts
+++ b/front-end/app/scripts/entry.ts
@@ -15,6 +15,7 @@ import './services/MyModal.ts';
1515 import './directives/Option.ts';
1616 import './directives/Command.ts';
1717 import './directives/HeaderMenu.ts';
18+import './directives/Directory.ts';
1819
1920 // controllers
2021 import './controllers/Execution.ts';
--- a/front-end/app/scripts/reference.ts
+++ b/front-end/app/scripts/reference.ts
@@ -8,6 +8,7 @@
88 /// <reference path="./directives/Command.ts" />
99 /// <reference path="./directives/HeaderMenu.ts" />
1010 /// <reference path="./directives/Option.ts" />
11+/// <reference path="./directives/Directory.ts" />
1112
1213 /// <reference path="./controllers/Execution.ts" />
1314 /// <reference path="./controllers/Workspace.ts" />
--- a/front-end/app/scripts/services/APIEndPoint.ts
+++ b/front-end/app/scripts/services/APIEndPoint.ts
@@ -30,7 +30,6 @@ namespace app.services {
3030 if(fileId) {
3131 endPoint += '/' + fileId;
3232 }
33- console.log(endPoint);
3433 return <declares.IResponseFileInfo>this.resource(endPoint).get();
3534 }
3635 }
--- a/front-end/app/templates/command.html
+++ b/front-end/app/templates/command.html
@@ -1,5 +1,5 @@
11 <div>
2-<uib-accordion-group heading="{{ctrl.heading}}" is-open="ctrl.isOpen" panel-class="panel-danger">
2+ <uib-accordion-group heading="{{ctrl.heading}}" is-open="ctrl.isOpen" panel-class="panel-danger">
33 <uib-accordion-heading>
44 <h4 class="panel-title">
55 [{{ctrl.index}}: {{ctrl.name}}]
--- /dev/null
+++ b/front-end/app/templates/directory.html
@@ -0,0 +1,23 @@
1+<div>
2+ <h3 class="page-header">{{ctrl.info.path}}</h3>
3+ <table class="table table-striped table-responsive">
4+ <tr>
5+ <th></th>
6+ <th>name</th>
7+ <th>fileId</th>
8+ <th>parentId</th>
9+ <th>fileType</th>
10+ <th>createdAt</th>
11+ <th>updatedAt</th>
12+ </tr>
13+ <tr ng-repeat="l in ctrl.files">
14+ <td><span class="glyphicon glyphicon-folder-open" ng-show="l.fileType==='0'" aria-hidden="true"></span></td>
15+ <td>{{l.name}}</td>
16+ <td>{{l.fileId}}</td>
17+ <td>{{l.parentId}}</td>
18+ <td>{{l.fileType}}</td>
19+ <td>{{l.createdAt}}</td>
20+ <td>{{l.updatedAt}}</td>
21+ </tr>
22+ </table>
23+</div>
--- a/front-end/app/templates/workspace.html
+++ b/front-end/app/templates/workspace.html
@@ -1,3 +1,6 @@
1-workspace
2-
3-{{c.page}}
1+<div class="container">
2+ <div class="row">
3+ <directory index="i" info="info" list="c.directoryList" add="c.addDirectory" ng-repeat="(i, info) in c.directoryList"></directory>
4+ </div>
5+ <button type="button" class="btn btn-default" ng-click="c.test()">WORKSPACE</button>
6+</div>
--- a/front-end/dist/bundle.js
+++ b/front-end/dist/bundle.js
@@ -58,6 +58,7 @@
5858 __webpack_require__(15);
5959 __webpack_require__(16);
6060 __webpack_require__(17);
61+ __webpack_require__(18);
6162
6263
6364 /***/ },
@@ -41034,7 +41035,6 @@
4103441035 if (fileId) {
4103541036 endPoint += '/' + fileId;
4103641037 }
41037- console.log(endPoint);
4103841038 return this.resource(endPoint).get();
4103941039 };
4104041040 return APIEndPoint;
@@ -41102,6 +41102,7 @@
4110241102 this.APIEndPoint = APIEndPoint;
4110341103 this.$scope = $scope;
4110441104 var controller = this;
41105+ console.log(this.list);
4110541106 this.APIEndPoint
4110641107 .getOptionControlFile('dcdFilePrint')
4110741108 .$promise
@@ -41210,6 +41211,66 @@
4121041211 })(app || (app = {}));
4121141212 var app;
4121241213 (function (app) {
41214+ var directives;
41215+ (function (directives) {
41216+ var Directory = (function () {
41217+ function Directory() {
41218+ this.restrict = 'E';
41219+ this.replace = true;
41220+ this.controller = 'directoryController';
41221+ this.controllerAs = 'ctrl';
41222+ this.bindToController = {
41223+ info: '=',
41224+ add: '&',
41225+ list: '=',
41226+ files: '='
41227+ };
41228+ this.templateUrl = 'templates/directory.html';
41229+ }
41230+ Directory.Factory = function () {
41231+ var directive = function () {
41232+ return new Directory();
41233+ };
41234+ return directive;
41235+ };
41236+ return Directory;
41237+ })();
41238+ directives.Directory = Directory;
41239+ var DirectoryController = (function () {
41240+ function DirectoryController(APIEndPoint, $scope) {
41241+ this.APIEndPoint = APIEndPoint;
41242+ this.$scope = $scope;
41243+ var controller = this;
41244+ this.APIEndPoint
41245+ .getFiles(this.info.fileId)
41246+ .$promise
41247+ .then(function (result) {
41248+ if (result.status === 'success') {
41249+ controller.files = result.info;
41250+ angular.forEach(result.info, function (file) {
41251+ if (file.fileType === '0') {
41252+ var o = file;
41253+ if (controller.info.path === '/') {
41254+ o.path = '/' + file.name;
41255+ }
41256+ else {
41257+ o.path = controller.info.path + '/' + file.name;
41258+ }
41259+ controller.add()(o, controller.list);
41260+ }
41261+ });
41262+ }
41263+ ;
41264+ });
41265+ }
41266+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
41267+ return DirectoryController;
41268+ })();
41269+ directives.DirectoryController = DirectoryController;
41270+ })(directives = app.directives || (app.directives = {}));
41271+ })(app || (app = {}));
41272+ var app;
41273+ (function (app) {
4121341274 var controllers;
4121441275 (function (controllers) {
4121541276 var Execution = (function () {
@@ -41247,16 +41308,23 @@
4124741308 function Workspace($scope, APIEndPoint) {
4124841309 this.$scope = $scope;
4124941310 this.APIEndPoint = APIEndPoint;
41311+ this.directoryList = [];
4125041312 var controller = this;
41251- this.page = 'workspace';
41252- this.APIEndPoint
41253- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
41254- .$promise
41255- .then(function (result) {
41256- controller.fileInfo = result.info;
41257- console.log(result);
41258- });
41313+ var directoryList = this.directoryList;
41314+ var o = {
41315+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
41316+ name: '',
41317+ parentId: '',
41318+ fileType: '',
41319+ createdAt: '',
41320+ updatedAt: '',
41321+ path: '/'
41322+ };
41323+ directoryList.push(o);
4125941324 }
41325+ Workspace.prototype.addDirectory = function (info, directoryList) {
41326+ directoryList.push(info);
41327+ };
4126041328 Workspace.$inject = ['$scope', 'APIEndPoint'];
4126141329 return Workspace;
4126241330 })();
@@ -41315,9 +41383,11 @@
4131541383 app.zephyr.controller('historyController', app.controllers.History);
4131641384 app.zephyr.controller('commandController', app.directives.CommandController);
4131741385 app.zephyr.controller('optionController', app.directives.OptionController);
41386+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4131841387 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4131941388 app.zephyr.directive('command', app.directives.Command.Factory());
4132041389 app.zephyr.directive('option', app.directives.Option.Factory());
41390+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4132141391 })(app || (app = {}));
4132241392
4132341393
@@ -41362,7 +41432,6 @@
4136241432 if (fileId) {
4136341433 endPoint += '/' + fileId;
4136441434 }
41365- console.log(endPoint);
4136641435 return this.resource(endPoint).get();
4136741436 };
4136841437 return APIEndPoint;
@@ -41430,6 +41499,7 @@
4143041499 this.APIEndPoint = APIEndPoint;
4143141500 this.$scope = $scope;
4143241501 var controller = this;
41502+ console.log(this.list);
4143341503 this.APIEndPoint
4143441504 .getOptionControlFile('dcdFilePrint')
4143541505 .$promise
@@ -41538,6 +41608,66 @@
4153841608 })(app || (app = {}));
4153941609 var app;
4154041610 (function (app) {
41611+ var directives;
41612+ (function (directives) {
41613+ var Directory = (function () {
41614+ function Directory() {
41615+ this.restrict = 'E';
41616+ this.replace = true;
41617+ this.controller = 'directoryController';
41618+ this.controllerAs = 'ctrl';
41619+ this.bindToController = {
41620+ info: '=',
41621+ add: '&',
41622+ list: '=',
41623+ files: '='
41624+ };
41625+ this.templateUrl = 'templates/directory.html';
41626+ }
41627+ Directory.Factory = function () {
41628+ var directive = function () {
41629+ return new Directory();
41630+ };
41631+ return directive;
41632+ };
41633+ return Directory;
41634+ })();
41635+ directives.Directory = Directory;
41636+ var DirectoryController = (function () {
41637+ function DirectoryController(APIEndPoint, $scope) {
41638+ this.APIEndPoint = APIEndPoint;
41639+ this.$scope = $scope;
41640+ var controller = this;
41641+ this.APIEndPoint
41642+ .getFiles(this.info.fileId)
41643+ .$promise
41644+ .then(function (result) {
41645+ if (result.status === 'success') {
41646+ controller.files = result.info;
41647+ angular.forEach(result.info, function (file) {
41648+ if (file.fileType === '0') {
41649+ var o = file;
41650+ if (controller.info.path === '/') {
41651+ o.path = '/' + file.name;
41652+ }
41653+ else {
41654+ o.path = controller.info.path + '/' + file.name;
41655+ }
41656+ controller.add()(o, controller.list);
41657+ }
41658+ });
41659+ }
41660+ ;
41661+ });
41662+ }
41663+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
41664+ return DirectoryController;
41665+ })();
41666+ directives.DirectoryController = DirectoryController;
41667+ })(directives = app.directives || (app.directives = {}));
41668+ })(app || (app = {}));
41669+ var app;
41670+ (function (app) {
4154141671 var controllers;
4154241672 (function (controllers) {
4154341673 var Execution = (function () {
@@ -41575,16 +41705,23 @@
4157541705 function Workspace($scope, APIEndPoint) {
4157641706 this.$scope = $scope;
4157741707 this.APIEndPoint = APIEndPoint;
41708+ this.directoryList = [];
4157841709 var controller = this;
41579- this.page = 'workspace';
41580- this.APIEndPoint
41581- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
41582- .$promise
41583- .then(function (result) {
41584- controller.fileInfo = result.info;
41585- console.log(result);
41586- });
41710+ var directoryList = this.directoryList;
41711+ var o = {
41712+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
41713+ name: '',
41714+ parentId: '',
41715+ fileType: '',
41716+ createdAt: '',
41717+ updatedAt: '',
41718+ path: '/'
41719+ };
41720+ directoryList.push(o);
4158741721 }
41722+ Workspace.prototype.addDirectory = function (info, directoryList) {
41723+ directoryList.push(info);
41724+ };
4158841725 Workspace.$inject = ['$scope', 'APIEndPoint'];
4158941726 return Workspace;
4159041727 })();
@@ -41643,9 +41780,11 @@
4164341780 app.zephyr.controller('historyController', app.controllers.History);
4164441781 app.zephyr.controller('commandController', app.directives.CommandController);
4164541782 app.zephyr.controller('optionController', app.directives.OptionController);
41783+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4164641784 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4164741785 app.zephyr.directive('command', app.directives.Command.Factory());
4164841786 app.zephyr.directive('option', app.directives.Option.Factory());
41787+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4164941788 })(app || (app = {}));
4165041789
4165141790
@@ -41690,7 +41829,6 @@
4169041829 if (fileId) {
4169141830 endPoint += '/' + fileId;
4169241831 }
41693- console.log(endPoint);
4169441832 return this.resource(endPoint).get();
4169541833 };
4169641834 return APIEndPoint;
@@ -41758,6 +41896,7 @@
4175841896 this.APIEndPoint = APIEndPoint;
4175941897 this.$scope = $scope;
4176041898 var controller = this;
41899+ console.log(this.list);
4176141900 this.APIEndPoint
4176241901 .getOptionControlFile('dcdFilePrint')
4176341902 .$promise
@@ -41866,6 +42005,66 @@
4186642005 })(app || (app = {}));
4186742006 var app;
4186842007 (function (app) {
42008+ var directives;
42009+ (function (directives) {
42010+ var Directory = (function () {
42011+ function Directory() {
42012+ this.restrict = 'E';
42013+ this.replace = true;
42014+ this.controller = 'directoryController';
42015+ this.controllerAs = 'ctrl';
42016+ this.bindToController = {
42017+ info: '=',
42018+ add: '&',
42019+ list: '=',
42020+ files: '='
42021+ };
42022+ this.templateUrl = 'templates/directory.html';
42023+ }
42024+ Directory.Factory = function () {
42025+ var directive = function () {
42026+ return new Directory();
42027+ };
42028+ return directive;
42029+ };
42030+ return Directory;
42031+ })();
42032+ directives.Directory = Directory;
42033+ var DirectoryController = (function () {
42034+ function DirectoryController(APIEndPoint, $scope) {
42035+ this.APIEndPoint = APIEndPoint;
42036+ this.$scope = $scope;
42037+ var controller = this;
42038+ this.APIEndPoint
42039+ .getFiles(this.info.fileId)
42040+ .$promise
42041+ .then(function (result) {
42042+ if (result.status === 'success') {
42043+ controller.files = result.info;
42044+ angular.forEach(result.info, function (file) {
42045+ if (file.fileType === '0') {
42046+ var o = file;
42047+ if (controller.info.path === '/') {
42048+ o.path = '/' + file.name;
42049+ }
42050+ else {
42051+ o.path = controller.info.path + '/' + file.name;
42052+ }
42053+ controller.add()(o, controller.list);
42054+ }
42055+ });
42056+ }
42057+ ;
42058+ });
42059+ }
42060+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
42061+ return DirectoryController;
42062+ })();
42063+ directives.DirectoryController = DirectoryController;
42064+ })(directives = app.directives || (app.directives = {}));
42065+ })(app || (app = {}));
42066+ var app;
42067+ (function (app) {
4186942068 var controllers;
4187042069 (function (controllers) {
4187142070 var Execution = (function () {
@@ -41903,16 +42102,23 @@
4190342102 function Workspace($scope, APIEndPoint) {
4190442103 this.$scope = $scope;
4190542104 this.APIEndPoint = APIEndPoint;
42105+ this.directoryList = [];
4190642106 var controller = this;
41907- this.page = 'workspace';
41908- this.APIEndPoint
41909- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
41910- .$promise
41911- .then(function (result) {
41912- controller.fileInfo = result.info;
41913- console.log(result);
41914- });
42107+ var directoryList = this.directoryList;
42108+ var o = {
42109+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
42110+ name: '',
42111+ parentId: '',
42112+ fileType: '',
42113+ createdAt: '',
42114+ updatedAt: '',
42115+ path: '/'
42116+ };
42117+ directoryList.push(o);
4191542118 }
42119+ Workspace.prototype.addDirectory = function (info, directoryList) {
42120+ directoryList.push(info);
42121+ };
4191642122 Workspace.$inject = ['$scope', 'APIEndPoint'];
4191742123 return Workspace;
4191842124 })();
@@ -41971,9 +42177,11 @@
4197142177 app.zephyr.controller('historyController', app.controllers.History);
4197242178 app.zephyr.controller('commandController', app.directives.CommandController);
4197342179 app.zephyr.controller('optionController', app.directives.OptionController);
42180+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4197442181 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4197542182 app.zephyr.directive('command', app.directives.Command.Factory());
4197642183 app.zephyr.directive('option', app.directives.Option.Factory());
42184+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4197742185 })(app || (app = {}));
4197842186
4197942187
@@ -42018,7 +42226,6 @@
4201842226 if (fileId) {
4201942227 endPoint += '/' + fileId;
4202042228 }
42021- console.log(endPoint);
4202242229 return this.resource(endPoint).get();
4202342230 };
4202442231 return APIEndPoint;
@@ -42086,6 +42293,7 @@
4208642293 this.APIEndPoint = APIEndPoint;
4208742294 this.$scope = $scope;
4208842295 var controller = this;
42296+ console.log(this.list);
4208942297 this.APIEndPoint
4209042298 .getOptionControlFile('dcdFilePrint')
4209142299 .$promise
@@ -42194,6 +42402,66 @@
4219442402 })(app || (app = {}));
4219542403 var app;
4219642404 (function (app) {
42405+ var directives;
42406+ (function (directives) {
42407+ var Directory = (function () {
42408+ function Directory() {
42409+ this.restrict = 'E';
42410+ this.replace = true;
42411+ this.controller = 'directoryController';
42412+ this.controllerAs = 'ctrl';
42413+ this.bindToController = {
42414+ info: '=',
42415+ add: '&',
42416+ list: '=',
42417+ files: '='
42418+ };
42419+ this.templateUrl = 'templates/directory.html';
42420+ }
42421+ Directory.Factory = function () {
42422+ var directive = function () {
42423+ return new Directory();
42424+ };
42425+ return directive;
42426+ };
42427+ return Directory;
42428+ })();
42429+ directives.Directory = Directory;
42430+ var DirectoryController = (function () {
42431+ function DirectoryController(APIEndPoint, $scope) {
42432+ this.APIEndPoint = APIEndPoint;
42433+ this.$scope = $scope;
42434+ var controller = this;
42435+ this.APIEndPoint
42436+ .getFiles(this.info.fileId)
42437+ .$promise
42438+ .then(function (result) {
42439+ if (result.status === 'success') {
42440+ controller.files = result.info;
42441+ angular.forEach(result.info, function (file) {
42442+ if (file.fileType === '0') {
42443+ var o = file;
42444+ if (controller.info.path === '/') {
42445+ o.path = '/' + file.name;
42446+ }
42447+ else {
42448+ o.path = controller.info.path + '/' + file.name;
42449+ }
42450+ controller.add()(o, controller.list);
42451+ }
42452+ });
42453+ }
42454+ ;
42455+ });
42456+ }
42457+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
42458+ return DirectoryController;
42459+ })();
42460+ directives.DirectoryController = DirectoryController;
42461+ })(directives = app.directives || (app.directives = {}));
42462+ })(app || (app = {}));
42463+ var app;
42464+ (function (app) {
4219742465 var controllers;
4219842466 (function (controllers) {
4219942467 var Execution = (function () {
@@ -42231,16 +42499,23 @@
4223142499 function Workspace($scope, APIEndPoint) {
4223242500 this.$scope = $scope;
4223342501 this.APIEndPoint = APIEndPoint;
42502+ this.directoryList = [];
4223442503 var controller = this;
42235- this.page = 'workspace';
42236- this.APIEndPoint
42237- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
42238- .$promise
42239- .then(function (result) {
42240- controller.fileInfo = result.info;
42241- console.log(result);
42242- });
42504+ var directoryList = this.directoryList;
42505+ var o = {
42506+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
42507+ name: '',
42508+ parentId: '',
42509+ fileType: '',
42510+ createdAt: '',
42511+ updatedAt: '',
42512+ path: '/'
42513+ };
42514+ directoryList.push(o);
4224342515 }
42516+ Workspace.prototype.addDirectory = function (info, directoryList) {
42517+ directoryList.push(info);
42518+ };
4224442519 Workspace.$inject = ['$scope', 'APIEndPoint'];
4224542520 return Workspace;
4224642521 })();
@@ -42299,9 +42574,11 @@
4229942574 app.zephyr.controller('historyController', app.controllers.History);
4230042575 app.zephyr.controller('commandController', app.directives.CommandController);
4230142576 app.zephyr.controller('optionController', app.directives.OptionController);
42577+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4230242578 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4230342579 app.zephyr.directive('command', app.directives.Command.Factory());
4230442580 app.zephyr.directive('option', app.directives.Option.Factory());
42581+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4230542582 })(app || (app = {}));
4230642583
4230742584
@@ -42346,7 +42623,6 @@
4234642623 if (fileId) {
4234742624 endPoint += '/' + fileId;
4234842625 }
42349- console.log(endPoint);
4235042626 return this.resource(endPoint).get();
4235142627 };
4235242628 return APIEndPoint;
@@ -42414,6 +42690,7 @@
4241442690 this.APIEndPoint = APIEndPoint;
4241542691 this.$scope = $scope;
4241642692 var controller = this;
42693+ console.log(this.list);
4241742694 this.APIEndPoint
4241842695 .getOptionControlFile('dcdFilePrint')
4241942696 .$promise
@@ -42522,6 +42799,66 @@
4252242799 })(app || (app = {}));
4252342800 var app;
4252442801 (function (app) {
42802+ var directives;
42803+ (function (directives) {
42804+ var Directory = (function () {
42805+ function Directory() {
42806+ this.restrict = 'E';
42807+ this.replace = true;
42808+ this.controller = 'directoryController';
42809+ this.controllerAs = 'ctrl';
42810+ this.bindToController = {
42811+ info: '=',
42812+ add: '&',
42813+ list: '=',
42814+ files: '='
42815+ };
42816+ this.templateUrl = 'templates/directory.html';
42817+ }
42818+ Directory.Factory = function () {
42819+ var directive = function () {
42820+ return new Directory();
42821+ };
42822+ return directive;
42823+ };
42824+ return Directory;
42825+ })();
42826+ directives.Directory = Directory;
42827+ var DirectoryController = (function () {
42828+ function DirectoryController(APIEndPoint, $scope) {
42829+ this.APIEndPoint = APIEndPoint;
42830+ this.$scope = $scope;
42831+ var controller = this;
42832+ this.APIEndPoint
42833+ .getFiles(this.info.fileId)
42834+ .$promise
42835+ .then(function (result) {
42836+ if (result.status === 'success') {
42837+ controller.files = result.info;
42838+ angular.forEach(result.info, function (file) {
42839+ if (file.fileType === '0') {
42840+ var o = file;
42841+ if (controller.info.path === '/') {
42842+ o.path = '/' + file.name;
42843+ }
42844+ else {
42845+ o.path = controller.info.path + '/' + file.name;
42846+ }
42847+ controller.add()(o, controller.list);
42848+ }
42849+ });
42850+ }
42851+ ;
42852+ });
42853+ }
42854+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
42855+ return DirectoryController;
42856+ })();
42857+ directives.DirectoryController = DirectoryController;
42858+ })(directives = app.directives || (app.directives = {}));
42859+ })(app || (app = {}));
42860+ var app;
42861+ (function (app) {
4252542862 var controllers;
4252642863 (function (controllers) {
4252742864 var Execution = (function () {
@@ -42559,16 +42896,23 @@
4255942896 function Workspace($scope, APIEndPoint) {
4256042897 this.$scope = $scope;
4256142898 this.APIEndPoint = APIEndPoint;
42899+ this.directoryList = [];
4256242900 var controller = this;
42563- this.page = 'workspace';
42564- this.APIEndPoint
42565- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
42566- .$promise
42567- .then(function (result) {
42568- controller.fileInfo = result.info;
42569- console.log(result);
42570- });
42901+ var directoryList = this.directoryList;
42902+ var o = {
42903+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
42904+ name: '',
42905+ parentId: '',
42906+ fileType: '',
42907+ createdAt: '',
42908+ updatedAt: '',
42909+ path: '/'
42910+ };
42911+ directoryList.push(o);
4257142912 }
42913+ Workspace.prototype.addDirectory = function (info, directoryList) {
42914+ directoryList.push(info);
42915+ };
4257242916 Workspace.$inject = ['$scope', 'APIEndPoint'];
4257342917 return Workspace;
4257442918 })();
@@ -42627,9 +42971,11 @@
4262742971 app.zephyr.controller('historyController', app.controllers.History);
4262842972 app.zephyr.controller('commandController', app.directives.CommandController);
4262942973 app.zephyr.controller('optionController', app.directives.OptionController);
42974+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4263042975 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4263142976 app.zephyr.directive('command', app.directives.Command.Factory());
4263242977 app.zephyr.directive('option', app.directives.Option.Factory());
42978+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4263342979 })(app || (app = {}));
4263442980
4263542981
@@ -42674,7 +43020,6 @@
4267443020 if (fileId) {
4267543021 endPoint += '/' + fileId;
4267643022 }
42677- console.log(endPoint);
4267843023 return this.resource(endPoint).get();
4267943024 };
4268043025 return APIEndPoint;
@@ -42742,6 +43087,7 @@
4274243087 this.APIEndPoint = APIEndPoint;
4274343088 this.$scope = $scope;
4274443089 var controller = this;
43090+ console.log(this.list);
4274543091 this.APIEndPoint
4274643092 .getOptionControlFile('dcdFilePrint')
4274743093 .$promise
@@ -42850,6 +43196,66 @@
4285043196 })(app || (app = {}));
4285143197 var app;
4285243198 (function (app) {
43199+ var directives;
43200+ (function (directives) {
43201+ var Directory = (function () {
43202+ function Directory() {
43203+ this.restrict = 'E';
43204+ this.replace = true;
43205+ this.controller = 'directoryController';
43206+ this.controllerAs = 'ctrl';
43207+ this.bindToController = {
43208+ info: '=',
43209+ add: '&',
43210+ list: '=',
43211+ files: '='
43212+ };
43213+ this.templateUrl = 'templates/directory.html';
43214+ }
43215+ Directory.Factory = function () {
43216+ var directive = function () {
43217+ return new Directory();
43218+ };
43219+ return directive;
43220+ };
43221+ return Directory;
43222+ })();
43223+ directives.Directory = Directory;
43224+ var DirectoryController = (function () {
43225+ function DirectoryController(APIEndPoint, $scope) {
43226+ this.APIEndPoint = APIEndPoint;
43227+ this.$scope = $scope;
43228+ var controller = this;
43229+ this.APIEndPoint
43230+ .getFiles(this.info.fileId)
43231+ .$promise
43232+ .then(function (result) {
43233+ if (result.status === 'success') {
43234+ controller.files = result.info;
43235+ angular.forEach(result.info, function (file) {
43236+ if (file.fileType === '0') {
43237+ var o = file;
43238+ if (controller.info.path === '/') {
43239+ o.path = '/' + file.name;
43240+ }
43241+ else {
43242+ o.path = controller.info.path + '/' + file.name;
43243+ }
43244+ controller.add()(o, controller.list);
43245+ }
43246+ });
43247+ }
43248+ ;
43249+ });
43250+ }
43251+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
43252+ return DirectoryController;
43253+ })();
43254+ directives.DirectoryController = DirectoryController;
43255+ })(directives = app.directives || (app.directives = {}));
43256+ })(app || (app = {}));
43257+ var app;
43258+ (function (app) {
4285343259 var controllers;
4285443260 (function (controllers) {
4285543261 var Execution = (function () {
@@ -42887,16 +43293,23 @@
4288743293 function Workspace($scope, APIEndPoint) {
4288843294 this.$scope = $scope;
4288943295 this.APIEndPoint = APIEndPoint;
43296+ this.directoryList = [];
4289043297 var controller = this;
42891- this.page = 'workspace';
42892- this.APIEndPoint
42893- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
42894- .$promise
42895- .then(function (result) {
42896- controller.fileInfo = result.info;
42897- console.log(result);
42898- });
43298+ var directoryList = this.directoryList;
43299+ var o = {
43300+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
43301+ name: '',
43302+ parentId: '',
43303+ fileType: '',
43304+ createdAt: '',
43305+ updatedAt: '',
43306+ path: '/'
43307+ };
43308+ directoryList.push(o);
4289943309 }
43310+ Workspace.prototype.addDirectory = function (info, directoryList) {
43311+ directoryList.push(info);
43312+ };
4290043313 Workspace.$inject = ['$scope', 'APIEndPoint'];
4290143314 return Workspace;
4290243315 })();
@@ -42955,9 +43368,11 @@
4295543368 app.zephyr.controller('historyController', app.controllers.History);
4295643369 app.zephyr.controller('commandController', app.directives.CommandController);
4295743370 app.zephyr.controller('optionController', app.directives.OptionController);
43371+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4295843372 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4295943373 app.zephyr.directive('command', app.directives.Command.Factory());
4296043374 app.zephyr.directive('option', app.directives.Option.Factory());
43375+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4296143376 })(app || (app = {}));
4296243377
4296343378
@@ -43002,7 +43417,6 @@
4300243417 if (fileId) {
4300343418 endPoint += '/' + fileId;
4300443419 }
43005- console.log(endPoint);
4300643420 return this.resource(endPoint).get();
4300743421 };
4300843422 return APIEndPoint;
@@ -43070,6 +43484,7 @@
4307043484 this.APIEndPoint = APIEndPoint;
4307143485 this.$scope = $scope;
4307243486 var controller = this;
43487+ console.log(this.list);
4307343488 this.APIEndPoint
4307443489 .getOptionControlFile('dcdFilePrint')
4307543490 .$promise
@@ -43178,6 +43593,66 @@
4317843593 })(app || (app = {}));
4317943594 var app;
4318043595 (function (app) {
43596+ var directives;
43597+ (function (directives) {
43598+ var Directory = (function () {
43599+ function Directory() {
43600+ this.restrict = 'E';
43601+ this.replace = true;
43602+ this.controller = 'directoryController';
43603+ this.controllerAs = 'ctrl';
43604+ this.bindToController = {
43605+ info: '=',
43606+ add: '&',
43607+ list: '=',
43608+ files: '='
43609+ };
43610+ this.templateUrl = 'templates/directory.html';
43611+ }
43612+ Directory.Factory = function () {
43613+ var directive = function () {
43614+ return new Directory();
43615+ };
43616+ return directive;
43617+ };
43618+ return Directory;
43619+ })();
43620+ directives.Directory = Directory;
43621+ var DirectoryController = (function () {
43622+ function DirectoryController(APIEndPoint, $scope) {
43623+ this.APIEndPoint = APIEndPoint;
43624+ this.$scope = $scope;
43625+ var controller = this;
43626+ this.APIEndPoint
43627+ .getFiles(this.info.fileId)
43628+ .$promise
43629+ .then(function (result) {
43630+ if (result.status === 'success') {
43631+ controller.files = result.info;
43632+ angular.forEach(result.info, function (file) {
43633+ if (file.fileType === '0') {
43634+ var o = file;
43635+ if (controller.info.path === '/') {
43636+ o.path = '/' + file.name;
43637+ }
43638+ else {
43639+ o.path = controller.info.path + '/' + file.name;
43640+ }
43641+ controller.add()(o, controller.list);
43642+ }
43643+ });
43644+ }
43645+ ;
43646+ });
43647+ }
43648+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
43649+ return DirectoryController;
43650+ })();
43651+ directives.DirectoryController = DirectoryController;
43652+ })(directives = app.directives || (app.directives = {}));
43653+ })(app || (app = {}));
43654+ var app;
43655+ (function (app) {
4318143656 var controllers;
4318243657 (function (controllers) {
4318343658 var Execution = (function () {
@@ -43215,16 +43690,23 @@
4321543690 function Workspace($scope, APIEndPoint) {
4321643691 this.$scope = $scope;
4321743692 this.APIEndPoint = APIEndPoint;
43693+ this.directoryList = [];
4321843694 var controller = this;
43219- this.page = 'workspace';
43220- this.APIEndPoint
43221- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
43222- .$promise
43223- .then(function (result) {
43224- controller.fileInfo = result.info;
43225- console.log(result);
43226- });
43695+ var directoryList = this.directoryList;
43696+ var o = {
43697+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
43698+ name: '',
43699+ parentId: '',
43700+ fileType: '',
43701+ createdAt: '',
43702+ updatedAt: '',
43703+ path: '/'
43704+ };
43705+ directoryList.push(o);
4322743706 }
43707+ Workspace.prototype.addDirectory = function (info, directoryList) {
43708+ directoryList.push(info);
43709+ };
4322843710 Workspace.$inject = ['$scope', 'APIEndPoint'];
4322943711 return Workspace;
4323043712 })();
@@ -43283,9 +43765,11 @@
4328343765 app.zephyr.controller('historyController', app.controllers.History);
4328443766 app.zephyr.controller('commandController', app.directives.CommandController);
4328543767 app.zephyr.controller('optionController', app.directives.OptionController);
43768+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4328643769 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4328743770 app.zephyr.directive('command', app.directives.Command.Factory());
4328843771 app.zephyr.directive('option', app.directives.Option.Factory());
43772+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4328943773 })(app || (app = {}));
4329043774
4329143775
@@ -43330,7 +43814,6 @@
4333043814 if (fileId) {
4333143815 endPoint += '/' + fileId;
4333243816 }
43333- console.log(endPoint);
4333443817 return this.resource(endPoint).get();
4333543818 };
4333643819 return APIEndPoint;
@@ -43398,6 +43881,7 @@
4339843881 this.APIEndPoint = APIEndPoint;
4339943882 this.$scope = $scope;
4340043883 var controller = this;
43884+ console.log(this.list);
4340143885 this.APIEndPoint
4340243886 .getOptionControlFile('dcdFilePrint')
4340343887 .$promise
@@ -43506,6 +43990,66 @@
4350643990 })(app || (app = {}));
4350743991 var app;
4350843992 (function (app) {
43993+ var directives;
43994+ (function (directives) {
43995+ var Directory = (function () {
43996+ function Directory() {
43997+ this.restrict = 'E';
43998+ this.replace = true;
43999+ this.controller = 'directoryController';
44000+ this.controllerAs = 'ctrl';
44001+ this.bindToController = {
44002+ info: '=',
44003+ add: '&',
44004+ list: '=',
44005+ files: '='
44006+ };
44007+ this.templateUrl = 'templates/directory.html';
44008+ }
44009+ Directory.Factory = function () {
44010+ var directive = function () {
44011+ return new Directory();
44012+ };
44013+ return directive;
44014+ };
44015+ return Directory;
44016+ })();
44017+ directives.Directory = Directory;
44018+ var DirectoryController = (function () {
44019+ function DirectoryController(APIEndPoint, $scope) {
44020+ this.APIEndPoint = APIEndPoint;
44021+ this.$scope = $scope;
44022+ var controller = this;
44023+ this.APIEndPoint
44024+ .getFiles(this.info.fileId)
44025+ .$promise
44026+ .then(function (result) {
44027+ if (result.status === 'success') {
44028+ controller.files = result.info;
44029+ angular.forEach(result.info, function (file) {
44030+ if (file.fileType === '0') {
44031+ var o = file;
44032+ if (controller.info.path === '/') {
44033+ o.path = '/' + file.name;
44034+ }
44035+ else {
44036+ o.path = controller.info.path + '/' + file.name;
44037+ }
44038+ controller.add()(o, controller.list);
44039+ }
44040+ });
44041+ }
44042+ ;
44043+ });
44044+ }
44045+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
44046+ return DirectoryController;
44047+ })();
44048+ directives.DirectoryController = DirectoryController;
44049+ })(directives = app.directives || (app.directives = {}));
44050+ })(app || (app = {}));
44051+ var app;
44052+ (function (app) {
4350944053 var controllers;
4351044054 (function (controllers) {
4351144055 var Execution = (function () {
@@ -43543,16 +44087,23 @@
4354344087 function Workspace($scope, APIEndPoint) {
4354444088 this.$scope = $scope;
4354544089 this.APIEndPoint = APIEndPoint;
44090+ this.directoryList = [];
4354644091 var controller = this;
43547- this.page = 'workspace';
43548- this.APIEndPoint
43549- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
43550- .$promise
43551- .then(function (result) {
43552- controller.fileInfo = result.info;
43553- console.log(result);
43554- });
44092+ var directoryList = this.directoryList;
44093+ var o = {
44094+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
44095+ name: '',
44096+ parentId: '',
44097+ fileType: '',
44098+ createdAt: '',
44099+ updatedAt: '',
44100+ path: '/'
44101+ };
44102+ directoryList.push(o);
4355544103 }
44104+ Workspace.prototype.addDirectory = function (info, directoryList) {
44105+ directoryList.push(info);
44106+ };
4355644107 Workspace.$inject = ['$scope', 'APIEndPoint'];
4355744108 return Workspace;
4355844109 })();
@@ -43611,9 +44162,11 @@
4361144162 app.zephyr.controller('historyController', app.controllers.History);
4361244163 app.zephyr.controller('commandController', app.directives.CommandController);
4361344164 app.zephyr.controller('optionController', app.directives.OptionController);
44165+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4361444166 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4361544167 app.zephyr.directive('command', app.directives.Command.Factory());
4361644168 app.zephyr.directive('option', app.directives.Option.Factory());
44169+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4361744170 })(app || (app = {}));
4361844171
4361944172
@@ -43658,7 +44211,6 @@
4365844211 if (fileId) {
4365944212 endPoint += '/' + fileId;
4366044213 }
43661- console.log(endPoint);
4366244214 return this.resource(endPoint).get();
4366344215 };
4366444216 return APIEndPoint;
@@ -43726,6 +44278,7 @@
4372644278 this.APIEndPoint = APIEndPoint;
4372744279 this.$scope = $scope;
4372844280 var controller = this;
44281+ console.log(this.list);
4372944282 this.APIEndPoint
4373044283 .getOptionControlFile('dcdFilePrint')
4373144284 .$promise
@@ -43834,6 +44387,66 @@
4383444387 })(app || (app = {}));
4383544388 var app;
4383644389 (function (app) {
44390+ var directives;
44391+ (function (directives) {
44392+ var Directory = (function () {
44393+ function Directory() {
44394+ this.restrict = 'E';
44395+ this.replace = true;
44396+ this.controller = 'directoryController';
44397+ this.controllerAs = 'ctrl';
44398+ this.bindToController = {
44399+ info: '=',
44400+ add: '&',
44401+ list: '=',
44402+ files: '='
44403+ };
44404+ this.templateUrl = 'templates/directory.html';
44405+ }
44406+ Directory.Factory = function () {
44407+ var directive = function () {
44408+ return new Directory();
44409+ };
44410+ return directive;
44411+ };
44412+ return Directory;
44413+ })();
44414+ directives.Directory = Directory;
44415+ var DirectoryController = (function () {
44416+ function DirectoryController(APIEndPoint, $scope) {
44417+ this.APIEndPoint = APIEndPoint;
44418+ this.$scope = $scope;
44419+ var controller = this;
44420+ this.APIEndPoint
44421+ .getFiles(this.info.fileId)
44422+ .$promise
44423+ .then(function (result) {
44424+ if (result.status === 'success') {
44425+ controller.files = result.info;
44426+ angular.forEach(result.info, function (file) {
44427+ if (file.fileType === '0') {
44428+ var o = file;
44429+ if (controller.info.path === '/') {
44430+ o.path = '/' + file.name;
44431+ }
44432+ else {
44433+ o.path = controller.info.path + '/' + file.name;
44434+ }
44435+ controller.add()(o, controller.list);
44436+ }
44437+ });
44438+ }
44439+ ;
44440+ });
44441+ }
44442+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
44443+ return DirectoryController;
44444+ })();
44445+ directives.DirectoryController = DirectoryController;
44446+ })(directives = app.directives || (app.directives = {}));
44447+ })(app || (app = {}));
44448+ var app;
44449+ (function (app) {
4383744450 var controllers;
4383844451 (function (controllers) {
4383944452 var Execution = (function () {
@@ -43871,16 +44484,23 @@
4387144484 function Workspace($scope, APIEndPoint) {
4387244485 this.$scope = $scope;
4387344486 this.APIEndPoint = APIEndPoint;
44487+ this.directoryList = [];
4387444488 var controller = this;
43875- this.page = 'workspace';
43876- this.APIEndPoint
43877- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
43878- .$promise
43879- .then(function (result) {
43880- controller.fileInfo = result.info;
43881- console.log(result);
43882- });
44489+ var directoryList = this.directoryList;
44490+ var o = {
44491+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
44492+ name: '',
44493+ parentId: '',
44494+ fileType: '',
44495+ createdAt: '',
44496+ updatedAt: '',
44497+ path: '/'
44498+ };
44499+ directoryList.push(o);
4388344500 }
44501+ Workspace.prototype.addDirectory = function (info, directoryList) {
44502+ directoryList.push(info);
44503+ };
4388444504 Workspace.$inject = ['$scope', 'APIEndPoint'];
4388544505 return Workspace;
4388644506 })();
@@ -43939,9 +44559,11 @@
4393944559 app.zephyr.controller('historyController', app.controllers.History);
4394044560 app.zephyr.controller('commandController', app.directives.CommandController);
4394144561 app.zephyr.controller('optionController', app.directives.OptionController);
44562+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4394244563 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4394344564 app.zephyr.directive('command', app.directives.Command.Factory());
4394444565 app.zephyr.directive('option', app.directives.Option.Factory());
44566+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4394544567 })(app || (app = {}));
4394644568
4394744569
@@ -43986,7 +44608,6 @@
4398644608 if (fileId) {
4398744609 endPoint += '/' + fileId;
4398844610 }
43989- console.log(endPoint);
4399044611 return this.resource(endPoint).get();
4399144612 };
4399244613 return APIEndPoint;
@@ -44054,6 +44675,7 @@
4405444675 this.APIEndPoint = APIEndPoint;
4405544676 this.$scope = $scope;
4405644677 var controller = this;
44678+ console.log(this.list);
4405744679 this.APIEndPoint
4405844680 .getOptionControlFile('dcdFilePrint')
4405944681 .$promise
@@ -44162,6 +44784,66 @@
4416244784 })(app || (app = {}));
4416344785 var app;
4416444786 (function (app) {
44787+ var directives;
44788+ (function (directives) {
44789+ var Directory = (function () {
44790+ function Directory() {
44791+ this.restrict = 'E';
44792+ this.replace = true;
44793+ this.controller = 'directoryController';
44794+ this.controllerAs = 'ctrl';
44795+ this.bindToController = {
44796+ info: '=',
44797+ add: '&',
44798+ list: '=',
44799+ files: '='
44800+ };
44801+ this.templateUrl = 'templates/directory.html';
44802+ }
44803+ Directory.Factory = function () {
44804+ var directive = function () {
44805+ return new Directory();
44806+ };
44807+ return directive;
44808+ };
44809+ return Directory;
44810+ })();
44811+ directives.Directory = Directory;
44812+ var DirectoryController = (function () {
44813+ function DirectoryController(APIEndPoint, $scope) {
44814+ this.APIEndPoint = APIEndPoint;
44815+ this.$scope = $scope;
44816+ var controller = this;
44817+ this.APIEndPoint
44818+ .getFiles(this.info.fileId)
44819+ .$promise
44820+ .then(function (result) {
44821+ if (result.status === 'success') {
44822+ controller.files = result.info;
44823+ angular.forEach(result.info, function (file) {
44824+ if (file.fileType === '0') {
44825+ var o = file;
44826+ if (controller.info.path === '/') {
44827+ o.path = '/' + file.name;
44828+ }
44829+ else {
44830+ o.path = controller.info.path + '/' + file.name;
44831+ }
44832+ controller.add()(o, controller.list);
44833+ }
44834+ });
44835+ }
44836+ ;
44837+ });
44838+ }
44839+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
44840+ return DirectoryController;
44841+ })();
44842+ directives.DirectoryController = DirectoryController;
44843+ })(directives = app.directives || (app.directives = {}));
44844+ })(app || (app = {}));
44845+ var app;
44846+ (function (app) {
4416544847 var controllers;
4416644848 (function (controllers) {
4416744849 var Execution = (function () {
@@ -44199,16 +44881,420 @@
4419944881 function Workspace($scope, APIEndPoint) {
4420044882 this.$scope = $scope;
4420144883 this.APIEndPoint = APIEndPoint;
44884+ this.directoryList = [];
4420244885 var controller = this;
44203- this.page = 'workspace';
44886+ var directoryList = this.directoryList;
44887+ var o = {
44888+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
44889+ name: '',
44890+ parentId: '',
44891+ fileType: '',
44892+ createdAt: '',
44893+ updatedAt: '',
44894+ path: '/'
44895+ };
44896+ directoryList.push(o);
44897+ }
44898+ Workspace.prototype.addDirectory = function (info, directoryList) {
44899+ directoryList.push(info);
44900+ };
44901+ Workspace.$inject = ['$scope', 'APIEndPoint'];
44902+ return Workspace;
44903+ })();
44904+ controllers.Workspace = Workspace;
44905+ })(controllers = app.controllers || (app.controllers = {}));
44906+ })(app || (app = {}));
44907+ var app;
44908+ (function (app) {
44909+ var controllers;
44910+ (function (controllers) {
44911+ var History = (function () {
44912+ function History($scope) {
44913+ this.page = "History";
44914+ }
44915+ History.$inject = ['$scope'];
44916+ return History;
44917+ })();
44918+ controllers.History = History;
44919+ })(controllers = app.controllers || (app.controllers = {}));
44920+ })(app || (app = {}));
44921+ var app;
44922+ (function (app) {
44923+ 'use strict';
44924+ var appName = 'zephyr';
44925+ app.zephyr = angular.module(appName, ['ui.router', 'ngResource', 'ui.bootstrap']);
44926+ app.zephyr.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
44927+ $urlRouterProvider.otherwise('/execution');
44928+ $locationProvider.html5Mode({
44929+ enabled: true,
44930+ requireBase: false
44931+ });
44932+ $stateProvider
44933+ .state('execution', {
44934+ url: '/execution',
44935+ templateUrl: 'templates/execution.html',
44936+ controller: 'executionController',
44937+ controllerAs: 'c'
44938+ })
44939+ .state('workspace', {
44940+ url: '/workspace',
44941+ templateUrl: 'templates/workspace.html',
44942+ controller: 'workspaceController',
44943+ controllerAs: 'c'
44944+ })
44945+ .state('history', {
44946+ url: '/history',
44947+ templateUrl: 'templates/history.html',
44948+ controller: 'historyController',
44949+ controllerAs: 'c'
44950+ });
44951+ });
44952+ app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
44953+ app.zephyr.service('MyModal', app.services.MyModal);
44954+ app.zephyr.controller('executionController', app.controllers.Execution);
44955+ app.zephyr.controller('workspaceController', app.controllers.Workspace);
44956+ app.zephyr.controller('historyController', app.controllers.History);
44957+ app.zephyr.controller('commandController', app.directives.CommandController);
44958+ app.zephyr.controller('optionController', app.directives.OptionController);
44959+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
44960+ app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
44961+ app.zephyr.directive('command', app.directives.Command.Factory());
44962+ app.zephyr.directive('option', app.directives.Option.Factory());
44963+ app.zephyr.directive('directory', app.directives.Directory.Factory());
44964+ })(app || (app = {}));
44965+
44966+
44967+/***/ },
44968+/* 18 */
44969+/***/ function(module, exports) {
44970+
44971+ var app;
44972+ (function (app) {
44973+ var declares;
44974+ (function (declares) {
44975+ var CommandInfo = (function () {
44976+ function CommandInfo(name) {
44977+ this.name = name;
44978+ }
44979+ return CommandInfo;
44980+ })();
44981+ declares.CommandInfo = CommandInfo;
44982+ })(declares = app.declares || (app.declares = {}));
44983+ })(app || (app = {}));
44984+ var app;
44985+ (function (app) {
44986+ var services;
44987+ (function (services) {
44988+ var APIEndPoint = (function () {
44989+ function APIEndPoint($resource) {
44990+ this.$resource = $resource;
44991+ }
44992+ APIEndPoint.prototype.resource = function (endPoint) {
44993+ var customAction = {
44994+ method: 'GET',
44995+ isArray: false
44996+ };
44997+ return this.$resource(endPoint, {}, { customAction: customAction });
44998+ };
44999+ APIEndPoint.prototype.getOptionControlFile = function (command) {
45000+ var endPoint = '/api/optionControlFile/' + command;
45001+ return this.resource(endPoint).get();
45002+ };
45003+ APIEndPoint.prototype.getFiles = function (fileId) {
45004+ var endPoint = '/api/v1/workspace';
45005+ if (fileId) {
45006+ endPoint += '/' + fileId;
45007+ }
45008+ return this.resource(endPoint).get();
45009+ };
45010+ return APIEndPoint;
45011+ })();
45012+ services.APIEndPoint = APIEndPoint;
45013+ })(services = app.services || (app.services = {}));
45014+ })(app || (app = {}));
45015+ var app;
45016+ (function (app) {
45017+ var services;
45018+ (function (services) {
45019+ var MyModal = (function () {
45020+ function MyModal($uibModal) {
45021+ this.$uibModal = $uibModal;
45022+ this.modalOption = {
45023+ backdrop: true,
45024+ controller: null,
45025+ templateUrl: null,
45026+ size: null
45027+ };
45028+ }
45029+ MyModal.prototype.open = function (modalName) {
45030+ if (modalName === 'SelectCommand') {
45031+ this.modalOption.templateUrl = 'templates/select-command.html';
45032+ this.modalOption.size = 'lg';
45033+ }
45034+ return this.$uibModal.open(this.modalOption);
45035+ };
45036+ return MyModal;
45037+ })();
45038+ services.MyModal = MyModal;
45039+ })(services = app.services || (app.services = {}));
45040+ })(app || (app = {}));
45041+ var app;
45042+ (function (app) {
45043+ var directives;
45044+ (function (directives) {
45045+ var Command = (function () {
45046+ function Command() {
45047+ this.restrict = 'E';
45048+ this.replace = true;
45049+ this.scope = true;
45050+ this.controller = 'commandController';
45051+ this.controllerAs = 'ctrl';
45052+ this.bindToController = {
45053+ index: '=',
45054+ name: '=',
45055+ remove: '&',
45056+ list: '='
45057+ };
45058+ this.templateUrl = 'templates/command.html';
45059+ }
45060+ Command.Factory = function () {
45061+ var directive = function () {
45062+ return new Command();
45063+ };
45064+ directive.$inject = [];
45065+ return directive;
45066+ };
45067+ return Command;
45068+ })();
45069+ directives.Command = Command;
45070+ var CommandController = (function () {
45071+ function CommandController(APIEndPoint, $scope) {
45072+ this.APIEndPoint = APIEndPoint;
45073+ this.$scope = $scope;
45074+ var controller = this;
45075+ console.log(this.list);
4420445076 this.APIEndPoint
44205- .getFiles('1f83f620-c1ed-11e5-9657-7942989daa04')
45077+ .getOptionControlFile('dcdFilePrint')
4420645078 .$promise
4420745079 .then(function (result) {
44208- controller.fileInfo = result.info;
4420945080 console.log(result);
45081+ controller.options = result.info;
4421045082 });
45083+ this.files = ['a.file', 'b.file', 'c.file'];
45084+ this.heading = "[" + this.index + "]: dcdFilePring";
45085+ this.isOpen = true;
45086+ this.$scope.$on('close', function () {
45087+ controller.isOpen = false;
45088+ });
45089+ }
45090+ CommandController.prototype.submit = function () {
45091+ var params = {};
45092+ angular.forEach(this.options, function (option) {
45093+ var inputs = [];
45094+ angular.forEach(option.arg, function (arg) {
45095+ if (arg.input) {
45096+ inputs.push(arg.input);
45097+ }
45098+ });
45099+ if (inputs.length > 0) {
45100+ params[option.option] = inputs;
45101+ }
45102+ });
45103+ console.log(params);
45104+ };
45105+ CommandController.prototype.removeMySelf = function (index) {
45106+ this.remove()(index, this.list);
45107+ };
45108+ CommandController.$inject = ['APIEndPoint', '$scope'];
45109+ return CommandController;
45110+ })();
45111+ directives.CommandController = CommandController;
45112+ })(directives = app.directives || (app.directives = {}));
45113+ })(app || (app = {}));
45114+ var app;
45115+ (function (app) {
45116+ var directives;
45117+ (function (directives) {
45118+ var HeaderMenu = (function () {
45119+ function HeaderMenu() {
45120+ this.restrict = 'E';
45121+ this.replace = true;
45122+ this.templateUrl = 'templates/header-menu.html';
4421145123 }
45124+ HeaderMenu.Factory = function () {
45125+ var directive = function () {
45126+ return new HeaderMenu();
45127+ };
45128+ return directive;
45129+ };
45130+ return HeaderMenu;
45131+ })();
45132+ directives.HeaderMenu = HeaderMenu;
45133+ })(directives = app.directives || (app.directives = {}));
45134+ })(app || (app = {}));
45135+ var app;
45136+ (function (app) {
45137+ var directives;
45138+ (function (directives) {
45139+ var Option = (function () {
45140+ function Option() {
45141+ this.restrict = 'E';
45142+ this.replace = true;
45143+ this.controller = 'optionController';
45144+ this.bindToController = {
45145+ info: '=',
45146+ files: '='
45147+ };
45148+ this.scope = true;
45149+ this.templateUrl = 'templates/option.html';
45150+ this.controllerAs = 'ctrl';
45151+ }
45152+ Option.Factory = function () {
45153+ var directive = function () {
45154+ return new Option();
45155+ };
45156+ directive.$inject = [];
45157+ return directive;
45158+ };
45159+ return Option;
45160+ })();
45161+ directives.Option = Option;
45162+ var OptionController = (function () {
45163+ function OptionController() {
45164+ var controller = this;
45165+ angular.forEach(controller.info.arg, function (arg) {
45166+ if (arg.initialValue) {
45167+ if (arg.formType === 'number') {
45168+ arg.input = parseInt(arg.initialValue);
45169+ }
45170+ else {
45171+ arg.input = arg.initialValue;
45172+ }
45173+ }
45174+ });
45175+ }
45176+ OptionController.$inject = [];
45177+ return OptionController;
45178+ })();
45179+ directives.OptionController = OptionController;
45180+ })(directives = app.directives || (app.directives = {}));
45181+ })(app || (app = {}));
45182+ var app;
45183+ (function (app) {
45184+ var directives;
45185+ (function (directives) {
45186+ var Directory = (function () {
45187+ function Directory() {
45188+ this.restrict = 'E';
45189+ this.replace = true;
45190+ this.controller = 'directoryController';
45191+ this.controllerAs = 'ctrl';
45192+ this.bindToController = {
45193+ info: '=',
45194+ add: '&',
45195+ list: '=',
45196+ files: '='
45197+ };
45198+ this.templateUrl = 'templates/directory.html';
45199+ }
45200+ Directory.Factory = function () {
45201+ var directive = function () {
45202+ return new Directory();
45203+ };
45204+ return directive;
45205+ };
45206+ return Directory;
45207+ })();
45208+ directives.Directory = Directory;
45209+ var DirectoryController = (function () {
45210+ function DirectoryController(APIEndPoint, $scope) {
45211+ this.APIEndPoint = APIEndPoint;
45212+ this.$scope = $scope;
45213+ var controller = this;
45214+ this.APIEndPoint
45215+ .getFiles(this.info.fileId)
45216+ .$promise
45217+ .then(function (result) {
45218+ if (result.status === 'success') {
45219+ controller.files = result.info;
45220+ angular.forEach(result.info, function (file) {
45221+ if (file.fileType === '0') {
45222+ var o = file;
45223+ if (controller.info.path === '/') {
45224+ o.path = '/' + file.name;
45225+ }
45226+ else {
45227+ o.path = controller.info.path + '/' + file.name;
45228+ }
45229+ controller.add()(o, controller.list);
45230+ }
45231+ });
45232+ }
45233+ ;
45234+ });
45235+ }
45236+ DirectoryController.$inject = ['APIEndPoint', '$scope'];
45237+ return DirectoryController;
45238+ })();
45239+ directives.DirectoryController = DirectoryController;
45240+ })(directives = app.directives || (app.directives = {}));
45241+ })(app || (app = {}));
45242+ var app;
45243+ (function (app) {
45244+ var controllers;
45245+ (function (controllers) {
45246+ var Execution = (function () {
45247+ function Execution(MyModal, $scope) {
45248+ this.MyModal = MyModal;
45249+ this.$scope = $scope;
45250+ this.commandInfoList = [];
45251+ }
45252+ ;
45253+ Execution.prototype.add = function () {
45254+ this.$scope.$broadcast('close');
45255+ this.commandInfoList.push(new app.declares.CommandInfo('dcdFilePrint'));
45256+ };
45257+ Execution.prototype.open = function () {
45258+ var result = this.MyModal.open('SelectCommand');
45259+ console.log(result);
45260+ };
45261+ Execution.prototype.remove = function (index, list) {
45262+ list.splice(index, 1);
45263+ };
45264+ Execution.prototype.close = function () {
45265+ console.log("close");
45266+ };
45267+ Execution.$inject = ['MyModal', '$scope'];
45268+ return Execution;
45269+ })();
45270+ controllers.Execution = Execution;
45271+ })(controllers = app.controllers || (app.controllers = {}));
45272+ })(app || (app = {}));
45273+ var app;
45274+ (function (app) {
45275+ var controllers;
45276+ (function (controllers) {
45277+ var Workspace = (function () {
45278+ function Workspace($scope, APIEndPoint) {
45279+ this.$scope = $scope;
45280+ this.APIEndPoint = APIEndPoint;
45281+ this.directoryList = [];
45282+ var controller = this;
45283+ var directoryList = this.directoryList;
45284+ var o = {
45285+ fileId: '1f83f620-c1ed-11e5-9657-7942989daa00',
45286+ name: '',
45287+ parentId: '',
45288+ fileType: '',
45289+ createdAt: '',
45290+ updatedAt: '',
45291+ path: '/'
45292+ };
45293+ directoryList.push(o);
45294+ }
45295+ Workspace.prototype.addDirectory = function (info, directoryList) {
45296+ directoryList.push(info);
45297+ };
4421245298 Workspace.$inject = ['$scope', 'APIEndPoint'];
4421345299 return Workspace;
4421445300 })();
@@ -44267,9 +45353,11 @@
4426745353 app.zephyr.controller('historyController', app.controllers.History);
4426845354 app.zephyr.controller('commandController', app.directives.CommandController);
4426945355 app.zephyr.controller('optionController', app.directives.OptionController);
45356+ app.zephyr.controller('directoryController', app.directives.DirectoryController);
4427045357 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4427145358 app.zephyr.directive('command', app.directives.Command.Factory());
4427245359 app.zephyr.directive('option', app.directives.Option.Factory());
45360+ app.zephyr.directive('directory', app.directives.Directory.Factory());
4427345361 })(app || (app = {}));
4427445362
4427545363
--- a/front-end/dist/templates/command.html
+++ b/front-end/dist/templates/command.html
@@ -1,5 +1,5 @@
11 <div>
2-<uib-accordion-group heading="{{ctrl.heading}}" is-open="ctrl.isOpen" panel-class="panel-danger">
2+ <uib-accordion-group heading="{{ctrl.heading}}" is-open="ctrl.isOpen" panel-class="panel-danger">
33 <uib-accordion-heading>
44 <h4 class="panel-title">
55 [{{ctrl.index}}: {{ctrl.name}}]
--- /dev/null
+++ b/front-end/dist/templates/directory.html
@@ -0,0 +1,23 @@
1+<div>
2+ <h3 class="page-header">{{ctrl.info.path}}</h3>
3+ <table class="table table-striped table-responsive">
4+ <tr>
5+ <th></th>
6+ <th>name</th>
7+ <th>fileId</th>
8+ <th>parentId</th>
9+ <th>fileType</th>
10+ <th>createdAt</th>
11+ <th>updatedAt</th>
12+ </tr>
13+ <tr ng-repeat="l in ctrl.files">
14+ <td><span class="glyphicon glyphicon-folder-open" ng-show="l.fileType==='0'" aria-hidden="true"></span></td>
15+ <td>{{l.name}}</td>
16+ <td>{{l.fileId}}</td>
17+ <td>{{l.parentId}}</td>
18+ <td>{{l.fileType}}</td>
19+ <td>{{l.createdAt}}</td>
20+ <td>{{l.updatedAt}}</td>
21+ </tr>
22+ </table>
23+</div>
--- a/front-end/dist/templates/workspace.html
+++ b/front-end/dist/templates/workspace.html
@@ -1,3 +1,6 @@
1-workspace
2-
3-{{c.page}}
1+<div class="container">
2+ <div class="row">
3+ <directory index="i" info="info" list="c.directoryList" add="c.addDirectory" ng-repeat="(i, info) in c.directoryList"></directory>
4+ </div>
5+ <button type="button" class="btn btn-default" ng-click="c.test()">WORKSPACE</button>
6+</div>
Show on old repository browser