2016-05-11 17:38:01 +03:00
|
|
|
import {Component} from '@angular/core';
|
2016-05-04 11:49:36 +03:00
|
|
|
|
2016-05-18 16:55:14 +03:00
|
|
|
import {BaProfilePicturePipe} from '../../pipes';
|
2016-04-25 19:33:47 +03:00
|
|
|
|
|
|
|
|
@Component({
|
2016-04-29 17:27:19 +03:00
|
|
|
selector: 'msg-center',
|
|
|
|
|
styles: [require('./msgCenter.scss')],
|
|
|
|
|
template: require('./msgCenter.html'),
|
2016-05-18 16:55:14 +03:00
|
|
|
pipes: [BaProfilePicturePipe]
|
2016-04-25 19:33:47 +03:00
|
|
|
})
|
2016-04-29 17:27:19 +03:00
|
|
|
export class MsgCenter {
|
2016-04-26 17:44:17 +03:00
|
|
|
|
|
|
|
|
notifications = [
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Vlad',
|
|
|
|
|
text: 'Vlad posted a new article.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '1 min ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Kostya',
|
|
|
|
|
text: 'Kostya changed his contact information.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '2 hrs ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
image: 'assets/img/shopping-cart.svg',
|
2016-04-27 11:35:09 +03:00
|
|
|
text: 'New orders received.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '5 hrs ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Andrey',
|
|
|
|
|
text: 'Andrey replied to your comment.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '1 day ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Nasta',
|
|
|
|
|
text: 'Today is Nasta\'s birthday.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '2 days ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
image: 'assets/img/comments.svg',
|
2016-04-27 11:35:09 +03:00
|
|
|
text: 'New comments on your post.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '3 days ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Kostya',
|
|
|
|
|
text: 'Kostya invited you to join the event.',
|
2016-04-26 17:44:17 +03:00
|
|
|
time: '1 week ago'
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
messages = [
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Nasta',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'After you get up and running, you can place Font Awesome icons just about...',
|
|
|
|
|
time: '1 min ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Vlad',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'You asked, Font Awesome delivers with 40 shiny new icons in version 4.2.',
|
|
|
|
|
time: '2 hrs ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Kostya',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'Want to request new icons? Here\'s how. Need vectors or want to use on the...',
|
|
|
|
|
time: '10 hrs ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Andrey',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'Explore your passions and discover new ones by getting involved. Stretch your...',
|
|
|
|
|
time: '1 day ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Nasta',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'Get to know who we are - from the inside out. From our history and culture, to the...',
|
|
|
|
|
time: '1 day ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Kostya',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'Need some support to reach your goals? Apply for scholarships across a variety of...',
|
|
|
|
|
time: '2 days ago'
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-04-27 11:35:09 +03:00
|
|
|
name: 'Vlad',
|
2016-04-26 17:44:17 +03:00
|
|
|
text: 'Wrap the dropdown\'s trigger and the dropdown menu within .dropdown, or...',
|
|
|
|
|
time: '1 week ago'
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
}
|