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
7e270915
Unverified
Commit
7e270915
authored
Dec 15, 2017
by
Sam Padgett
Committed by
GitHub
Dec 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #270 from rhamilto/origin-issue-17745
Add normalizeIconClass filter
parents
244f136c
24475790
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletions
+47
-1
origin-web-common-ui.js
dist/origin-web-common-ui.js
+14
-0
origin-web-common.js
dist/origin-web-common.js
+14
-0
origin-web-common.min.js
dist/origin-web-common.min.js
+5
-1
normalizeIconClass.js
src/filters/normalizeIconClass.js
+14
-0
No files found.
dist/origin-web-common-ui.js
View file @
7e270915
...
...
@@ -1582,6 +1582,20 @@ angular.module('openshiftCommonUI')
});
;
'use strict'
;
angular
.
module
(
"openshiftCommonUI"
)
.
filter
(
"normalizeIconClass"
,
function
()
{
return
function
(
iconClass
)
{
// if iconClass starts with "icon-", append "font-icon "
// so the Openshift Logos Icon font is used
if
(
_
.
startsWith
(
iconClass
,
"icon-"
))
{
return
"font-icon "
+
iconClass
;
}
else
{
return
iconClass
;
}
};
});
;
'use strict'
;
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'parseJSON'
,
function
()
{
return
function
(
json
)
{
...
...
dist/origin-web-common.js
View file @
7e270915
...
...
@@ -1788,6 +1788,20 @@ angular.module('openshiftCommonUI')
}]);
;
'use strict'
;
angular
.
module
(
"openshiftCommonUI"
)
.
filter
(
"normalizeIconClass"
,
function
()
{
return
function
(
iconClass
)
{
// if iconClass starts with "icon-", append "font-icon "
// so the Openshift Logos Icon font is used
if
(
_
.
startsWith
(
iconClass
,
"icon-"
))
{
return
"font-icon "
+
iconClass
;
}
else
{
return
iconClass
;
}
};
});
;
'use strict'
;
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'parseJSON'
,
function
()
{
return
function
(
json
)
{
...
...
dist/origin-web-common.min.js
View file @
7e270915
...
...
@@ -835,7 +835,11 @@ return uri.is("absolute") && ("http" === protocol || "https" === protocol);
return
function
(
text
,
target
,
alreadyEscaped
)
{
return
HTMLService
.
linkify
(
text
,
target
,
alreadyEscaped
);
};
}
]),
angular
.
module
(
"openshiftCommonUI"
).
filter
(
"parseJSON"
,
function
()
{
}
]),
angular
.
module
(
"openshiftCommonUI"
).
filter
(
"normalizeIconClass"
,
function
()
{
return
function
(
iconClass
)
{
return
_
.
startsWith
(
iconClass
,
"icon-"
)
?
"font-icon "
+
iconClass
:
iconClass
;
};
}),
angular
.
module
(
"openshiftCommonUI"
).
filter
(
"parseJSON"
,
function
()
{
return
function
(
json
)
{
if
(
!
json
)
return
null
;
try
{
...
...
src/filters/normalizeIconClass.js
0 → 100644
View file @
7e270915
'use strict'
;
angular
.
module
(
"openshiftCommonUI"
)
.
filter
(
"normalizeIconClass"
,
function
()
{
return
function
(
iconClass
)
{
// if iconClass starts with "icon-", append "font-icon "
// so the Openshift Logos Icon font is used
if
(
_
.
startsWith
(
iconClass
,
"icon-"
))
{
return
"font-icon "
+
iconClass
;
}
else
{
return
iconClass
;
}
};
});
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