OSDN Git Service

[Develop and Manual test] /api/v1/tagList v0.3.0p0043
authorhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 8 Feb 2016 08:05:13 +0000 (17:05 +0900)
committerhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 8 Feb 2016 08:05:13 +0000 (17:05 +0900)
 Changes to be committed:
modified:   front-end/app/scripts/controllers/Execution.ts
modified:   front-end/app/scripts/controllers/SelectCommand.ts
modified:   front-end/app/scripts/services/APIEndPoint.ts
modified:   front-end/app/scripts/services/MyModal.ts
modified:   front-end/app/templates/select-command.html
modified:   front-end/dist/bundle.js
modified:   front-end/dist/templates/select-command.html
modified:   server/api/tagList/index.js
new file:   server/api/v1/tagList/index.js
modified:   server/routes.js

front-end/app/scripts/controllers/Execution.ts
front-end/app/scripts/controllers/SelectCommand.ts
front-end/app/scripts/services/APIEndPoint.ts
front-end/app/scripts/services/MyModal.ts
front-end/app/templates/select-command.html
front-end/dist/bundle.js
front-end/dist/templates/select-command.html
server/api/tagList/index.js
server/api/v1/tagList/index.js [new file with mode: 0644]
server/routes.js

index e9d866a..a311de0 100644 (file)
@@ -16,8 +16,8 @@ namespace app.controllers {
             this.$scope.$broadcast('close');
             
             // add <command> directive
-            //this.MyModal.selectCommand();
-            this.commandInfoList.push(new declares.CommandInfo('mrcImageNoiseAdd'));
+            this.MyModal.selectCommand();
+            //this.commandInfoList.push(new declares.CommandInfo('mrcImageNoiseAdd'));
         }
 
         public open() {
index c9983d5..9f770e8 100644 (file)
@@ -1,11 +1,16 @@
 namespace app.controllers {
     export class SelectCommand{ 
 
-        public page = "History";
-
         public static $inject = ['$scope', 'APIEndPoint'];
+        private tags: string[];
 
-        constructor($scope: ng.IScope, private APIEndPOint: services.APIEndPoint) {
+        constructor($scope: ng.IScope, private APIEndPoint: services.APIEndPoint) {
+            var controller = this;
+            this.APIEndPoint
+                .getTags()
+                .$promise.then((result) => {
+                   controller.tags = result.info; 
+                });
 
         } 
     }
index 27b546e..76b1732 100644 (file)
@@ -47,6 +47,11 @@ namespace app.services {
             return this.resource(endPoint,{}).get();
         }
 
+        public getTags(): ng.resource.IResource<declares.IResponse> {
+            var endPoint = '/api/v1/tagList';
+            return this.resource(endPoint, {}).get();
+        }
+
         public execute(data: any): ng.IHttpPromise<{}> {
             var endPoint = '/api/v1/execution';
             var fd = new FormData()
index 447f800..9629bd1 100644 (file)
@@ -29,6 +29,7 @@ namespace app.services {
         public selectCommand(): ng.ui.bootstrap.IModalServiceInstance {
             this.modalOption.templateUrl = 'templates/select-command.html';
             this.modalOption.controller = 'selectCommandController';
+            this.modalOption.controllerAs = 'c';
             this.modalOption.size = 'lg';
             return this.$uibModal.open(this.modalOption);
         }
index 5516fba..0278295 100644 (file)
@@ -5,6 +5,8 @@
 <div class="modal-body">
     <div class="row">
         <div class="col-md-8">
+            <p ng-repeat="tag in c.tags">{{tag}}</p>
+            <!--
             <div class="btn-group"ng-repeat="tag in tags">
                 <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
             </div>
                     </button>
                 </span>
             </div>
+            -->
         </div>
     </div>
 </div>
 
 <div class="modal-footer">
     <div class="row">
-        <!--<div ng-repeat="command in commands | filter:searchText |tagFilter:tag">-->
-        <!-- <div ng-repeat="command in commands | filter:searchText | tagFilter:tag"> -->
+        <!--
+        <div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
         <div ng-repeat="command in commands | filter:searchText">
             <div class="col-md-6">
                 <a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
@@ -34,5 +37,6 @@
                 <a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$odd">{{command.name}}</a>
             </div>
         </div>
+            -->
     </div>
 </div>
index a897fd6..3a80e17 100644 (file)
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                        var endPoint = '/api/v1/all/workspace/directory';
                        return this.resource(endPoint, {}).get();
                    };
+                   APIEndPoint.prototype.getTags = function () {
+                       var endPoint = '/api/v1/tagList';
+                       return this.resource(endPoint, {}).get();
+                   };
                    APIEndPoint.prototype.execute = function (data) {
                        var endPoint = '/api/v1/execution';
                        var fd = new FormData();
                    MyModal.prototype.selectCommand = function () {
                        this.modalOption.templateUrl = 'templates/select-command.html';
                        this.modalOption.controller = 'selectCommandController';
+                       this.modalOption.controllerAs = 'c';
                        this.modalOption.size = 'lg';
                        return this.$uibModal.open(this.modalOption);
                    };
                    ;
                    Execution.prototype.add = function () {
                        this.$scope.$broadcast('close');
-                       this.commandInfoList.push(new app.declares.CommandInfo('mrcImageNoiseAdd'));
+                       this.MyModal.selectCommand();
                    };
                    Execution.prototype.open = function () {
                        var result = this.MyModal.open('SelectCommand');
            var controllers;
            (function (controllers) {
                var SelectCommand = (function () {
-                   function SelectCommand($scope, APIEndPOint) {
-                       this.APIEndPOint = APIEndPOint;
-                       this.page = "History";
+                   function SelectCommand($scope, APIEndPoint) {
+                       this.APIEndPoint = APIEndPoint;
+                       var controller = this;
+                       this.APIEndPoint
+                           .getTags()
+                           .$promise.then(function (result) {
+                           controller.tags = result.info;
+                       });
                    }
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
index 5516fba..0278295 100644 (file)
@@ -5,6 +5,8 @@
 <div class="modal-body">
     <div class="row">
         <div class="col-md-8">
+            <p ng-repeat="tag in c.tags">{{tag}}</p>
+            <!--
             <div class="btn-group"ng-repeat="tag in tags">
                 <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
             </div>
                     </button>
                 </span>
             </div>
+            -->
         </div>
     </div>
 </div>
 
 <div class="modal-footer">
     <div class="row">
-        <!--<div ng-repeat="command in commands | filter:searchText |tagFilter:tag">-->
-        <!-- <div ng-repeat="command in commands | filter:searchText | tagFilter:tag"> -->
+        <!--
+        <div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
         <div ng-repeat="command in commands | filter:searchText">
             <div class="col-md-6">
                 <a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
@@ -34,5 +37,6 @@
                 <a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$odd">{{command.name}}</a>
             </div>
         </div>
+            -->
     </div>
 </div>
index 9c047ac..e046e7e 100644 (file)
@@ -5,7 +5,11 @@ var router  = express.Router();
 
 router.get('/', function(req, res) {
     var tagList = require('../../../util/json/tag_list');
-    res.json(tagList);
+    var info = {
+       status: 'success',
+       info: tagList 
+   };
+   res.send(info);
 });
 
 module.exports = router;
diff --git a/server/api/v1/tagList/index.js b/server/api/v1/tagList/index.js
new file mode 100644 (file)
index 0000000..b647605
--- /dev/null
@@ -0,0 +1,15 @@
+'use strict';
+
+var express = require('express');
+var router  = express.Router();
+
+router.get('/', function(req, res) {
+   var tagList = require(__dirname + '/../../../../user-specific-files/OptionControlFile/tag_list');
+    var info = {
+       status: 'success',
+       info: tagList 
+   };
+   res.send(info);
+});
+
+module.exports = router;
index a8d8917..f71234b 100644 (file)
@@ -22,6 +22,7 @@ module.exports = function(app) {
     app.use('/api/v1/workspace/', require(__dirname + '/api/v1/workspace'));
     app.use('/api/v1/all/workspace/directory', require(__dirname + '/api/v1/all/workspace/directory'));
     app.use('/api/v1/optionControlFile', require(__dirname + '/api/v1/optionControlFile'));
+    app.use('/api/v1/tagList', require(__dirname + '/api/v1/tagList'));
 
     app.route('/*')
     .get(function(req, res) {