Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can use the IconicProvider to configure the default path to the iconic asset
- `setAssetPath(path)` - sets the full path to the icons
- useful if hosting the icons locally or if using a non-supported CDN
- `setCdn(cdn)` - sets the CDN to use for the icons
- the icons are hosted on the following CDNs: npmcdn (default), jsdelivr
- the icons are hosted on the following CDNs: unpkg (default), jsdelivr

### ba-iconic (Directive)

Expand All @@ -61,7 +61,7 @@ You can use the OpenIconicProvider to configure the default path to the open ico
- `setAssetPath(path)` - sets the full path to the icons
- useful if hosting the icons locally or if using a non-supported CDN
- `setCdn(cdn)` - sets the CDN to use for the icons
- the icons are hosted on the following CDNs: npmcdn (default), jsdelivr
- the icons are hosted on the following CDNs: unpkg (default), jsdelivr

### ba-open-iconic (Directive)

Expand All @@ -75,7 +75,7 @@ You can use the IoniconsProvider to configure the default path to the ionicons a
- `setAssetPath(path)` - sets the full path to the icons
- useful if hosting the icons locally or if using a non-supported CDN
- `setCdn(cdn)` - sets the CDN to use for the icons
- the icons are hosted on the following CDNs: npmcdn (default), jsdelivr
- the icons are hosted on the following CDNs: unpkg (default), jsdelivr

### ba-ionicon (Directive)

Expand All @@ -89,7 +89,7 @@ You can use the MaterialIconsProvider to configure the default path to the mater
- `setAssetPath(path)` - sets the full path to the icons
- useful if hosting the icons locally or if using a non-supported CDN
- `setCdn(cdn)` - sets the CDN to use for the icons
- the icons are hosted on the following CDNs: npmcdn (default), jsdelivr
- the icons are hosted on the following CDNs: unpkg (default), jsdelivr

### ba-material-icon (Directive)

Expand Down
10 changes: 5 additions & 5 deletions dist/iconic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@1.0.7/dist/icons/iconic/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/**',
'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/iconic/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/**'
]));
Expand Down Expand Up @@ -41,12 +41,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -86,8 +86,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/iconic/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/iconic/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/iconic/';
default:
Expand Down
10 changes: 5 additions & 5 deletions dist/ionicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@1.0.7/dist/icons/ionicons/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/**',
'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/ionicons/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/ionicons/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/ionicons/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/ionicons/';
default:
Expand Down
10 changes: 5 additions & 5 deletions dist/material-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@1.0.7/dist/icons/material-icons/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/**',
'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/material-icons/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/material-icons/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/material-icons/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/material-icons/';
default:
Expand Down
10 changes: 5 additions & 5 deletions dist/open-iconic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@1.0.7/dist/icons/open-iconic/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/**',
'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/open-iconic/**',
'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@1.0.7/dist/icons/open-iconic/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@1.0.7/dist/icons/open-iconic/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/1.0.7/icons/open-iconic/';
default:
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ gulp.task('build', ['clean', 'setversion'], function() {
merged.add(gulp.src('./src/**/*.js')
// update CDNs
.pipe($.replace(/https:\/\/cdn\.jsdelivr\.net\/angular-icons\/0\.0\.0/g, 'https://cdn.jsdelivr.net/angular-icons/' + nextVersion))
.pipe($.replace(/https:\/\/npmcdn\.com\/angular-icons@0\.0\.0/g, 'https://npmcdn.com/angular-icons@' + nextVersion))
.pipe($.replace(/https:\/\/unpkg\.com\/angular-icons@0\.0\.0/g, 'https://unpkg.com/angular-icons@' + nextVersion))
.pipe($.replace(/https:\/\/unpkg\.com\/angular-icons@0\.0\.0/g, 'https://unpkg.com/angular-icons@' + nextVersion))
.pipe(gulp.dest('./dist')));

Expand Down
10 changes: 5 additions & 5 deletions src/iconic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@0.0.0/dist/icons/iconic/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/**',
'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/iconic/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/**'
]));
Expand Down Expand Up @@ -41,12 +41,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -86,8 +86,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/iconic/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/iconic/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/iconic/';
default:
Expand Down
10 changes: 5 additions & 5 deletions src/ionicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@0.0.0/dist/icons/ionicons/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/**',
'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/ionicons/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/ionicons/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/ionicons/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/ionicons/';
default:
Expand Down
10 changes: 5 additions & 5 deletions src/material-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@0.0.0/dist/icons/material-icons/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/**',
'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/material-icons/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/material-icons/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/material-icons/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/material-icons/';
default:
Expand Down
10 changes: 5 additions & 5 deletions src/open-iconic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function config($sceDelegateProvider) {
var whitelist = $sceDelegateProvider.resourceUrlWhitelist();
$sceDelegateProvider.resourceUrlWhitelist(whitelist.concat([
'https://npmcdn.com/angular-icons@0.0.0/dist/icons/open-iconic/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/**',
'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/open-iconic/**',
'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/**'
]));
Expand All @@ -38,12 +38,12 @@

/**
* Configures which CDN to use
* @param {string} cdn - options are 'jsdelivr', 'npmcdn' (default 'npmcdn')
* @param {string} cdn - options are 'jsdelivr', 'unpkg' (default 'unpkg')
*/
this.setCdn = function (cdn) {
switch (cdn) {
case 'jsdelivr':
case 'npmcdn':
case 'unpkg':
case 'unpkg':
assetCdn = cdn;
break;
Expand Down Expand Up @@ -72,8 +72,8 @@
switch (assetCdn) {
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/';
case 'npmcdn':
return 'https://npmcdn.com/angular-icons@0.0.0/dist/icons/open-iconic/';
case 'unpkg':
return 'https://unpkg.com/angular-icons@0.0.0/dist/icons/open-iconic/';
case 'jsdelivr':
return 'https://cdn.jsdelivr.net/angular-icons/0.0.0/icons/open-iconic/';
default:
Expand Down