Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
origin-web-common
Commits
c48dd2ff
Commit
c48dd2ff
authored
Mar 22, 2017
by
David Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'imageStreamTagTags' filter
parent
8ec00908
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
0 deletions
+33
-0
origin-web-common-ui.js
dist/origin-web-common-ui.js
+11
-0
origin-web-common.js
dist/origin-web-common.js
+11
-0
origin-web-common.min.js
dist/origin-web-common.min.js
+0
-0
annotation.js
src/filters/annotation.js
+11
-0
No files found.
dist/origin-web-common-ui.js
View file @
c48dd2ff
...
@@ -714,6 +714,17 @@ angular.module('openshiftCommonUI')
...
@@ -714,6 +714,17 @@ angular.module('openshiftCommonUI')
return
null
;
return
null
;
};
};
})
})
.
filter
(
'imageStreamTagTags'
,
function
(
imageStreamTagAnnotationFilter
)
{
// Return ImageStream.spec.tag[tag].annotation.tags as an array
return
function
(
resource
,
/* optional */
tagName
)
{
var
imageTags
=
imageStreamTagAnnotationFilter
(
resource
,
'tags'
,
tagName
);
if
(
!
imageTags
)
{
return
[];
}
return
imageTags
.
split
(
/
\s
*,
\s
*/
);
};
})
.
filter
(
'imageStreamTagIconClass'
,
function
(
imageStreamTagAnnotationFilter
)
{
.
filter
(
'imageStreamTagIconClass'
,
function
(
imageStreamTagAnnotationFilter
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
...
...
dist/origin-web-common.js
View file @
c48dd2ff
...
@@ -919,6 +919,17 @@ angular.module('openshiftCommonUI')
...
@@ -919,6 +919,17 @@ angular.module('openshiftCommonUI')
return
null
;
return
null
;
};
};
})
})
.
filter
(
'imageStreamTagTags'
,
[
"imageStreamTagAnnotationFilter"
,
function
(
imageStreamTagAnnotationFilter
)
{
// Return ImageStream.spec.tag[tag].annotation.tags as an array
return
function
(
resource
,
/* optional */
tagName
)
{
var
imageTags
=
imageStreamTagAnnotationFilter
(
resource
,
'tags'
,
tagName
);
if
(
!
imageTags
)
{
return
[];
}
return
imageTags
.
split
(
/
\s
*,
\s
*/
);
};
}])
.
filter
(
'imageStreamTagIconClass'
,
[
"imageStreamTagAnnotationFilter"
,
function
(
imageStreamTagAnnotationFilter
)
{
.
filter
(
'imageStreamTagIconClass'
,
[
"imageStreamTagAnnotationFilter"
,
function
(
imageStreamTagAnnotationFilter
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
...
...
dist/origin-web-common.min.js
View file @
c48dd2ff
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/filters/annotation.js
View file @
c48dd2ff
...
@@ -70,6 +70,17 @@ angular.module('openshiftCommonUI')
...
@@ -70,6 +70,17 @@ angular.module('openshiftCommonUI')
return
null
;
return
null
;
};
};
})
})
.
filter
(
'imageStreamTagTags'
,
function
(
imageStreamTagAnnotationFilter
)
{
// Return ImageStream.spec.tag[tag].annotation.tags as an array
return
function
(
resource
,
/* optional */
tagName
)
{
var
imageTags
=
imageStreamTagAnnotationFilter
(
resource
,
'tags'
,
tagName
);
if
(
!
imageTags
)
{
return
[];
}
return
imageTags
.
split
(
/
\s
*,
\s
*/
);
};
})
.
filter
(
'imageStreamTagIconClass'
,
function
(
imageStreamTagAnnotationFilter
)
{
.
filter
(
'imageStreamTagIconClass'
,
function
(
imageStreamTagAnnotationFilter
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
return
function
(
resource
,
/* optional */
tagName
)
{
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
var
icon
=
imageStreamTagAnnotationFilter
(
resource
,
"iconClass"
,
tagName
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment