-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): release ng-devui-admin 1.2.0
- Loading branch information
1 parent
cae27a0
commit dbe4f9a
Showing
110 changed files
with
3,055 additions
and
723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Observable } from 'rxjs'; | ||
|
||
export interface Notification { | ||
type: string; | ||
title: string; | ||
time: string; | ||
icon: string; | ||
id: string; | ||
status: number; | ||
} | ||
|
||
export interface Message { | ||
image: string; | ||
title: string; | ||
content: string; | ||
time: string; | ||
id: string; | ||
status: number; | ||
} | ||
|
||
export interface Todo { | ||
tagName: string; | ||
tagType: string; | ||
title: string; | ||
memo: string; | ||
id: string; | ||
status: number; | ||
} | ||
|
||
export abstract class NoticeData { | ||
abstract getNotifications(): Observable<Notification[]>; | ||
abstract getMessages(): Observable<Message[]>; | ||
abstract getTodos(): Observable<Todo[]>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Observable, of as observableOf } from 'rxjs'; | ||
import { Notification, Message, Todo, NoticeData } from '../data/noticeData'; | ||
|
||
@Injectable() | ||
export class NoticeDataService extends NoticeData { | ||
private notifications: Notification[] = [ | ||
{ | ||
type: 'success', | ||
title: '你提交的XXX申请已经通过', | ||
time: '1天前', | ||
icon: 'notice', | ||
id: '1', | ||
status: 0, | ||
}, | ||
{ | ||
type: 'warning', | ||
title: '你内推的人已经在走流程', | ||
time: '2天前', | ||
icon: 'message-2', | ||
id: '2', | ||
status: 0, | ||
}, | ||
{ | ||
type: 'warning', | ||
title: '2021年7月1日早有会议', | ||
time: '3天前', | ||
icon: 'message-2', | ||
id: '3', | ||
status: 0, | ||
}, | ||
{ | ||
type: 'info', | ||
title: '你提交的XXX申请已经通过', | ||
time: '4天前', | ||
icon: 'infomation', | ||
id: '4', | ||
status: 0, | ||
}, | ||
{ | ||
type: 'info', | ||
title: '你提交的XXX申请已经通过', | ||
time: '5天前', | ||
icon: 'infomation', | ||
id: '5', | ||
status: 0, | ||
}, | ||
{ | ||
type: 'info', | ||
title: '你提交的XXX申请已经通过', | ||
time: '5天前', | ||
icon: 'infomation', | ||
id: '6', | ||
status: 0, | ||
}, | ||
]; | ||
|
||
private messages: Message[] = [ | ||
{ | ||
image: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', | ||
title: '来自XXX发件人', | ||
content: '左侧头像为发信者的头像,收到的来自别人的未读信息', | ||
time: '2天前', | ||
id: '1', | ||
status: 0, | ||
}, | ||
{ | ||
image: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', | ||
title: '来自XXX', | ||
content: '收到的来自别人的未读信息', | ||
time: '2天前', | ||
id: '2', | ||
status: 0, | ||
}, | ||
{ | ||
image: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', | ||
title: '来自XXX', | ||
content: '收到的来自别人的未读信息', | ||
time: '2天前', | ||
id: '3', | ||
status: 0, | ||
}, | ||
{ | ||
image: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', | ||
title: '来自XXX', | ||
content: '收到的来自别人的未读信息', | ||
time: '2天前', | ||
id: '4', | ||
status: 0, | ||
}, | ||
{ | ||
image: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', | ||
title: '来自XXX', | ||
content: '收到的来自别人的未读信息', | ||
time: '2天前', | ||
id: '5', | ||
status: 0, | ||
}, | ||
]; | ||
|
||
private todos: Todo[] = [ | ||
{ | ||
tagName: '进行中', | ||
tagType: 'olivine-w98', | ||
title: '参加可信考试', | ||
memo: '一年内要通过考试,持证上岗', | ||
id: '1', | ||
status: 0, | ||
}, | ||
{ | ||
tagName: '已逾期2天', | ||
tagType: 'orange-w98', | ||
title: 'Bug单处理', | ||
memo: '有个bug单需要处理,来自SL的指派', | ||
id: '2', | ||
status: 0, | ||
}, | ||
{ | ||
tagName: '待开始', | ||
tagType: 'blue-w98', | ||
title: '待办事项名称', | ||
memo: '右侧为事项相关说明', | ||
id: '3', | ||
status: 0, | ||
}, | ||
{ | ||
tagName: '逾期10天', | ||
tagType: 'red-w98', | ||
title: '待办事项名称', | ||
memo: '对于该事项的描述', | ||
id: '4', | ||
status: 0, | ||
}, | ||
]; | ||
|
||
getNotifications(): Observable<Notification[]> { | ||
return observableOf(this.notifications); | ||
} | ||
getMessages(): Observable<Message[]> { | ||
return observableOf(this.messages); | ||
} | ||
getTodos(): Observable<Todo[]> { | ||
return observableOf(this.todos); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.