-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
20 changed files
with
179 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
<app-toolbar></app-toolbar> | ||
<router-outlet></router-outlet> | ||
<div id="default-notification"> | ||
<span>{{ toasterService.toasterText }}</span> | ||
<div class="close"> | ||
<button (click)="toasterService.hideToaster()"> | ||
<span class="trec-icon-close"></span> | ||
</button> | ||
</div> | ||
</div> | ||
<app-toaster></app-toaster> |
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
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
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,8 @@ | ||
<div id="default-notification"> | ||
<span>{{ toasterService.toasterText }}</span> | ||
<div class="close"> | ||
<button (click)="toasterService.hideToaster()"> | ||
<span class="trec-icon-close"></span> | ||
</button> | ||
</div> | ||
</div> |
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,68 @@ | ||
@import "../../theme/colors.scss"; | ||
|
||
#default-notification, .default-notification { | ||
visibility: hidden; | ||
position: fixed; | ||
bottom: 0; | ||
right: 0; | ||
left: 0; | ||
width: 100%; | ||
color: $white; | ||
text-align: left; | ||
box-sizing: border-box; | ||
z-index: 99999; | ||
padding: 19px 19px 16px; | ||
&--default { | ||
background-color: $font-grey; | ||
} | ||
&--success { | ||
background-color: $notification-green; | ||
} | ||
&--error { | ||
background-color: $input-error; | ||
} | ||
&.show { | ||
visibility: visible; | ||
-webkit-animation: fadein 0.5s, fadeout 0.5s 5.2s; | ||
animation: fadein 0.5s, fadeout 0.5s 5.2s; | ||
} | ||
span { | ||
color: $white; | ||
font-family: 'Montserrat', sans-serif; | ||
font-size: 12px; | ||
line-height: 12px; | ||
letter-spacing: 1px; | ||
} | ||
.close { | ||
position: absolute; | ||
top: 16px; | ||
right: 13px; | ||
button { | ||
padding: 0; | ||
background: transparent; | ||
color: $white; | ||
border: 0; | ||
outline: none; | ||
cursor: pointer; | ||
span { | ||
font-size: 22px; | ||
} | ||
} | ||
} | ||
@-webkit-keyframes fadein { | ||
from {bottom: -55px; } | ||
to {bottom: 0; } | ||
} | ||
@keyframes fadein { | ||
from {bottom: -55px; } | ||
to {bottom: 0; } | ||
} | ||
@-webkit-keyframes fadeout { | ||
from {bottom: 0; } | ||
to {bottom: -55px; } | ||
} | ||
@keyframes fadeout { | ||
from {bottom: 0; } | ||
to {bottom: -55px; } | ||
} | ||
} |
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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ToasterComponent } from './toaster.component'; | ||
|
||
describe('ToasterComponent', () => { | ||
let component: ToasterComponent; | ||
let fixture: ComponentFixture<ToasterComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ ToasterComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ToasterComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).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,19 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ToasterService } from 'app/services/toaster.service'; | ||
|
||
@Component({ | ||
selector: 'app-toaster', | ||
templateUrl: './toaster.component.html', | ||
styleUrls: ['./toaster.component.scss'] | ||
}) | ||
export class ToasterComponent implements OnInit { | ||
|
||
constructor( | ||
public toasterService: ToasterService | ||
) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
|
||
} |
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.