profilePicturePipe -> baProfilePicturePipe

This commit is contained in:
nixa 2016-05-18 16:55:14 +03:00
parent e3982b255e
commit 33b75eca35
10 changed files with 15 additions and 15 deletions

View file

@ -1,13 +1,13 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {ProfilePicturePipe, BaAppPicturePipe} from '../../../theme/pipes';
import {BaProfilePicturePipe, BaAppPicturePipe} from '../../../theme/pipes';
import {FeedService} from './feed.service';
@Component({
selector: 'feed',
encapsulation: ViewEncapsulation.None,
providers: [FeedService],
pipes: [ProfilePicturePipe, BaAppPicturePipe],
pipes: [BaProfilePicturePipe, BaAppPicturePipe],
styles: [require('./feed.scss')],
template: require('./feed.html')
})

View file

@ -1,10 +1,10 @@
<div class="feed-messages-container">
<div class="feed-message" *ngFor="let message of feed" (click)="expandMessage(message)">
<div class="message-icon" *ngIf="message.type == 'text-message'">
<img class="photo-icon" src="{{ ( message.author | profilePicture ) }}">
<img class="photo-icon" src="{{ ( message.author | baProfilePicture ) }}">
</div>
<div class="message-icon" *ngIf="message.type != 'text-message'">
<img class="photo-icon" src="{{ ( message.author | profilePicture ) }}">
<img class="photo-icon" src="{{ ( message.author | baProfilePicture ) }}">
<span class="sub-photo-icon" [ngClass]="message.type"></span>
</div>
<div class="text-block text-message">

View file

@ -1,12 +1,12 @@
import {Component} from '@angular/core';
import {ProfilePicturePipe} from '../../pipes';
import {BaProfilePicturePipe} from '../../pipes';
@Component({
selector: 'msg-center',
styles: [require('./msgCenter.scss')],
template: require('./msgCenter.html'),
pipes: [ProfilePicturePipe]
pipes: [BaProfilePicturePipe]
})
export class MsgCenter {

View file

@ -17,7 +17,7 @@
<div class="msg-list">
<a *ngFor="let msg of notifications" href class="clearfix">
<div class="img-area"><img [ngClass]="{'photo-msg-item': !msg.image}"
src="{{ ( msg.image || (msg.name | profilePicture)) }}"></div>
src="{{ ( msg.image || (msg.name | baProfilePicture)) }}"></div>
<div class="msg-area">
<div>{{ msg.text }}</div>
<span>{{ msg.time }}</span>
@ -42,7 +42,7 @@
<div class="msg-list">
<a *ngFor="let msg of messages" href class="clearfix">
<div class="img-area"><img [ngClass]="{'photo-msg-item': !msg.image}"
src="{{ ( msg.image || (msg.name | profilePicture)) }}"></div>
src="{{ ( msg.image || (msg.name | baProfilePicture)) }}"></div>
<div class="msg-area">
<div>{{ msg.text }}</div>
<span>{{ msg.time }}</span>

View file

@ -1,7 +1,7 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {AppState} from '../../../app.state';
import {ProfilePicturePipe} from '../../pipes';
import {BaProfilePicturePipe} from '../../pipes';
import {MsgCenter} from '../../components/msgCenter';
import {BaScrollPosition} from '../../directives';
@ -10,7 +10,7 @@ import {BaScrollPosition} from '../../directives';
styles: [require('./pageTop.scss')],
template: require('./pageTop.html'),
directives: [MsgCenter, BaScrollPosition],
pipes: [ProfilePicturePipe],
pipes: [BaProfilePicturePipe],
encapsulation: ViewEncapsulation.None
})
export class PageTop {

View file

@ -11,7 +11,7 @@
<div class="user-profile clearfix">
<div class="dropdown al-user-profile">
<a class="profile-toggle-link dropdown-toggle" id="user-profile-dd" data-toggle="dropdown" aria-expanded="false">
<img src="{{ ( 'Nasta' | profilePicture ) }}">
<img src="{{ ( 'Nasta' | baProfilePicture ) }}">
</a>
<div class="dropdown-menu top-dropdown-menu profile-dropdown" aria-labelledby="user-profile-dd">
<li class="dropdown-item"><i class="dropdown-arr"></i></li>

View file

@ -1,8 +1,8 @@
import {Pipe, PipeTransform} from '@angular/core';
import {layoutPaths} from '../../../theme';
@Pipe({name: 'profilePicture'})
export class ProfilePicturePipe implements PipeTransform {
@Pipe({name: 'baProfilePicture'})
export class BaProfilePicturePipe implements PipeTransform {
transform(input:string, ext = 'png'):string {
return layoutPaths.images.profile + input + '.' + ext;

View file

@ -0,0 +1 @@
export * from './baProfilePicture.pipe.ts';

View file

@ -1,3 +1,3 @@
export * from './profilePicture';
export * from './baProfilePicture';
export * from './baAppPicture';
export * from './kameleonPicture';

View file

@ -1 +0,0 @@
export * from './profilePicture.pipe.ts';