ngx-admin/src/app/theme/components/msgCenter/msgCenter.component.ts

89 lines
2.1 KiB
TypeScript
Raw Normal View History

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