-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from jianyiee96/sr4-consultation
Sr4 consultation
- Loading branch information
Showing
16 changed files
with
512 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Notification } from './notification'; | ||
|
||
describe('Notification', () => { | ||
it('should create an instance', () => { | ||
expect(new Notification()).toBeTruthy(); | ||
}); | ||
}); |
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,39 @@ | ||
import { NotificationTypeEnum } from '../notificationtype-enum' | ||
import { Serviceman } from '../serviceman/serviceman' | ||
|
||
export class Notification { | ||
|
||
notificationId: number | ||
notificationDate: Date | ||
title: string | ||
message: string | ||
isRead: boolean | ||
isFetched: boolean | ||
serviceman: Serviceman | ||
dynamicId: number | ||
notificationTypeEnum: NotificationTypeEnum | ||
|
||
constructor( | ||
notificationId?: number, | ||
notificationDate?: Date, | ||
title?: string, | ||
message?: string, | ||
isRead?: boolean, | ||
isFetched?: boolean, | ||
serviceman?: Serviceman, | ||
dynamicId?: number, | ||
notificationTypeEnum?: NotificationTypeEnum | ||
) { | ||
|
||
this.notificationId = notificationId | ||
this.notificationDate = notificationDate | ||
this.title = title | ||
this.message = message | ||
this.isRead = isRead | ||
this.isFetched = isFetched | ||
this.serviceman = serviceman | ||
this.dynamicId = dynamicId | ||
this.notificationTypeEnum = notificationTypeEnum | ||
} | ||
|
||
} |
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,6 @@ | ||
export enum NotificationTypeEnum{ | ||
BOOKING = ('BOOKING'), | ||
CONSULTATION = ("CONSULTATION"), | ||
FORM = ("FORM"), | ||
GENERAL = ("GENERAL") | ||
} |
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,59 @@ | ||
.unread { | ||
background: aliceblue; | ||
} | ||
|
||
.astext { | ||
background: none; | ||
border: none; | ||
margin: 0; | ||
padding: 0; | ||
cursor: pointer; | ||
color: #337ab7; | ||
float: right; | ||
padding-top: 2px; | ||
} | ||
|
||
.astext:hover { | ||
text-decoration: underline; | ||
color: #64a3da; | ||
} | ||
|
||
.ellipsis { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 3; | ||
-webkit-box-orient: vertical; | ||
} | ||
|
||
|
||
.container { | ||
position: relative; | ||
width:100%; | ||
max-width:100px; | ||
} | ||
.container:before { | ||
content:""; | ||
position:absolute; | ||
width:100%; | ||
height:100%; | ||
top:0;left:0;right:0; | ||
background-color:rgba(0,0,0,0); | ||
} | ||
.container:hover::before { | ||
background-color:rgba(0,0,0,0.5); | ||
} | ||
.container abc { | ||
display:block; | ||
} | ||
.container button { | ||
position: absolute; | ||
top: 60%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
opacity:0; | ||
} | ||
.container:hover button { | ||
opacity: 1; | ||
} |
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.