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
24475790
Commit
24475790
authored
Dec 15, 2017
by
Robb Hamilton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add normalizeIconClass filter
parent
244f136c
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 @
24475790
...
@@ -1582,6 +1582,20 @@ angular.module('openshiftCommonUI')
...
@@ -1582,6 +1582,20 @@ angular.module('openshiftCommonUI')
});
});
;
'use strict'
;
;
'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'
)
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'parseJSON'
,
function
()
{
.
filter
(
'parseJSON'
,
function
()
{
return
function
(
json
)
{
return
function
(
json
)
{
...
...
dist/origin-web-common.js
View file @
24475790
...
@@ -1788,6 +1788,20 @@ angular.module('openshiftCommonUI')
...
@@ -1788,6 +1788,20 @@ angular.module('openshiftCommonUI')
}]);
}]);
;
'use strict'
;
;
'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'
)
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
'parseJSON'
,
function
()
{
.
filter
(
'parseJSON'
,
function
()
{
return
function
(
json
)
{
return
function
(
json
)
{
...
...
dist/origin-web-common.min.js
View file @
24475790
...
@@ -835,7 +835,11 @@ return uri.is("absolute") && ("http" === protocol || "https" === protocol);
...
@@ -835,7 +835,11 @@ return uri.is("absolute") && ("http" === protocol || "https" === protocol);
return
function
(
text
,
target
,
alreadyEscaped
)
{
return
function
(
text
,
target
,
alreadyEscaped
)
{
return
HTMLService
.
linkify
(
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
)
{
return
function
(
json
)
{
if
(
!
json
)
return
null
;
if
(
!
json
)
return
null
;
try
{
try
{
...
...
src/filters/normalizeIconClass.js
0 → 100644
View file @
24475790
'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