OSDN Git Service

[Develop ang manual test] TagFilter at SelectCommand Modal
[eos/zephyr.git] / front-end / dist / bundle.js
index f46514e..098d214 100644 (file)
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);
                            .$promise.then(function (result) {
                            controller.commands = result.info;
                        });
+                       this.currentTag = 'all';
                    }
+                   SelectCommand.prototype.changeTag = function (tag) {
+                       this.currentTag = tag;
+                       console.log(this.currentTag);
+                   };
                    SelectCommand.$inject = ['$scope', 'APIEndPoint'];
                    return SelectCommand;
                })();
                controllers.SelectCommand = SelectCommand;
            })(controllers = app.controllers || (app.controllers = {}));
        })(app || (app = {}));
+       var filters;
+       (function (filters) {
+           function Tag() {
+               return function (commands, tag) {
+                   var result = [];
+                   angular.forEach(commands, function (command) {
+                       var flag = false;
+                       angular.forEach(command.tags, function (value) {
+                           if (tag === value)
+                               flag = true;
+                       });
+                       if (flag)
+                           result.push(command);
+                   });
+                   return result;
+               };
+           }
+           filters.Tag = Tag;
+       })(filters || (filters = {}));
        var app;
        (function (app) {
            'use strict';
                });
            });
            app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+           app.zephyr.filter('Tag', filters.Tag);
            app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
            app.zephyr.service('MyModal', app.services.MyModal);
            app.zephyr.controller('executionController', app.controllers.Execution);