added notif section
This commit is contained in:
92
src/app/components/notif-list/notif-list.ts
Normal file
92
src/app/components/notif-list/notif-list.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {NotifInfo} from "../../interfaces/notif.interface";
|
||||
import {
|
||||
NzListComponent,
|
||||
NzListItemComponent,
|
||||
NzListItemExtraComponent, NzListItemMetaAvatarComponent,
|
||||
NzListItemMetaComponent, NzListItemMetaDescriptionComponent, NzListItemMetaTitleComponent
|
||||
} from "ng-zorro-antd/list";
|
||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
|
||||
@Component({
|
||||
selector: 'app-notif-list',
|
||||
imports: [
|
||||
NzListComponent,
|
||||
NzListItemComponent,
|
||||
NzListItemMetaComponent,
|
||||
NzListItemExtraComponent,
|
||||
NzListItemMetaDescriptionComponent,
|
||||
NzListItemMetaAvatarComponent,
|
||||
NzListItemMetaTitleComponent,
|
||||
NzIconDirective
|
||||
],
|
||||
templateUrl: './notif-list.html',
|
||||
styleUrl: './notif-list.css',
|
||||
})
|
||||
export class NotifList {
|
||||
notifList: NotifInfo[] = [
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
},
|
||||
{
|
||||
author: 'Admin',
|
||||
title: 'Information system',
|
||||
content: 'L\'utilisateur à bien été crée.'
|
||||
}
|
||||
];
|
||||
|
||||
delete() {
|
||||
this.notifList = [];
|
||||
}
|
||||
|
||||
addContent(author: string, title: string, content: string) {
|
||||
this.notifList.push({ author, title, content });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user