OSDN Git Service
(root)
/
eos
/
zephyr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Modified: Upload, Command execution
[eos/zephyr.git]
/
front-end
/
app
/
scripts
/
filters
/
Tag.ts
1
namespace filters {
2
export function Tag() {
3
return function(commands, tag) {
4
var result = []
5
angular.forEach(commands, function(command) {
6
var flag = false
7
angular.forEach(command.tags, function(value) {
8
if (tag === value) flag = true
9
})
10
if(flag) result.push(command)
11
})
12
return result
13
}
14
}
15
}
16