mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
KameleonPicture -> BaKameleonPicture
This commit is contained in:
parent
33b75eca35
commit
1224cf17db
6 changed files with 8 additions and 8 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {BaCard} from '../../../../theme/components';
|
import {BaCard} from '../../../../theme/components';
|
||||||
import {KameleonPicturePipe} from '../../../../theme/pipes';
|
import {BaKameleonPicturePipe} from '../../../../theme/pipes';
|
||||||
import {IconsService} from './icons.service';
|
import {IconsService} from './icons.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'icons',
|
selector: 'icons',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [BaCard],
|
directives: [BaCard],
|
||||||
pipes: [KameleonPicturePipe],
|
pipes: [BaKameleonPicturePipe],
|
||||||
providers: [IconsService],
|
providers: [IconsService],
|
||||||
styles: [require('./icons.scss')],
|
styles: [require('./icons.scss')],
|
||||||
template: require('./icons.html'),
|
template: require('./icons.html'),
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<ba-card title="Kameleon SVG Icons" baCardClass="with-scroll">
|
<ba-card title="Kameleon SVG Icons" baCardClass="with-scroll">
|
||||||
<div class="row clearfix">
|
<div class="row clearfix">
|
||||||
<div class="kameleon-row" *ngFor="let icon of icons.kameleonIcons">
|
<div class="kameleon-row" *ngFor="let icon of icons.kameleonIcons">
|
||||||
<div class="kameleon-icon"><img src="{{ (icon.img | kameleonPicture )}}"><span>{{ icon.name }}</span></div>
|
<div class="kameleon-icon"><img src="{{ (icon.img | baKameleonPicture )}}"><span>{{ icon.name }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>
|
<a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<ba-card title="Icons With Rounded Background" baCardClass="with-scroll">
|
<ba-card title="Icons With Rounded Background" baCardClass="with-scroll">
|
||||||
<div class="row clearfix">
|
<div class="row clearfix">
|
||||||
<div class="kameleon-row" *ngFor="let icon of icons.kameleonRoundedIcons">
|
<div class="kameleon-row" *ngFor="let icon of icons.kameleonRoundedIcons">
|
||||||
<div class="kameleon-icon with-round-bg {{ icon.color }}"><img src="{{ ( icon.img | kameleonPicture ) }}"><span>{{ icon.name }}</span></div>
|
<div class="kameleon-icon with-round-bg {{ icon.color }}"><img src="{{ ( icon.img | baKameleonPicture ) }}"><span>{{ icon.name }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>
|
<a href="http://www.kameleon.pics/" target="_blank" class="see-all-icons">See all Kamaleon icons</a>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import {Pipe, PipeTransform} from '@angular/core';
|
import {Pipe, PipeTransform} from '@angular/core';
|
||||||
import {layoutPaths} from '../../../theme';
|
import {layoutPaths} from '../../../theme';
|
||||||
|
|
||||||
@Pipe({name: 'kameleonPicture'})
|
@Pipe({name: 'baKameleonPicture'})
|
||||||
export class KameleonPicturePipe implements PipeTransform {
|
export class BaKameleonPicturePipe implements PipeTransform {
|
||||||
|
|
||||||
transform(input:string):string {
|
transform(input:string):string {
|
||||||
return layoutPaths.images.root + 'theme/icon/kameleon/' + input + '.svg';
|
return layoutPaths.images.root + 'theme/icon/kameleon/' + input + '.svg';
|
||||||
1
src/app/theme/pipes/baKameleonPicture/index.ts
Normal file
1
src/app/theme/pipes/baKameleonPicture/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './baKameleonPicture.pipe.ts';
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
export * from './baProfilePicture';
|
export * from './baProfilePicture';
|
||||||
export * from './baAppPicture';
|
export * from './baAppPicture';
|
||||||
export * from './kameleonPicture';
|
export * from './baKameleonPicture';
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './kameleonPicture.pipe.ts';
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue