-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added coffee-bloom / first drop timer to brew-add.
Also added new icon Rating changed to -1/0
- Loading branch information
1 parent
b519f69
commit 57c2bfd
Showing
13 changed files
with
325 additions
and
15 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
<ion-item class="no-bottom-border item"> | ||
<ion-label stacked>{{ label }}</ion-label> | ||
<ion-input [(ngModel)]="timer.seconds" prevent-characters type="number"></ion-input> | ||
<ion-button (click)="initTimer()" | ||
*ngIf="!timer.runTimer && (timer.hasStarted || timer.hasFinished) || timer.hasFinished" fill="outline" | ||
size="default" | ||
slot="end"> | ||
<ion-icon name="refresh"></ion-icon> | ||
|
||
</ion-button> | ||
<ion-button (click)="bloomTime()" *ngIf="timer.runTimer && timer.hasStarted && !timer.hasFinished && showBloomTimer" | ||
fill="outline" size="default" | ||
slot="end"> | ||
<ion-icon class="custom-coffee-blooming"></ion-icon> | ||
</ion-button> | ||
<ion-button (click)="dripTime()" *ngIf="timer.runTimer && timer.hasStarted && !timer.hasFinished && showDripTimer" | ||
fill="outline" size="default" | ||
slot="end"> | ||
<ion-icon name="ios-water"></ion-icon> | ||
</ion-button> | ||
<ion-button (click)="pauseTimer()" *ngIf="timer.runTimer && timer.hasStarted && !timer.hasFinished" fill="outline" | ||
size="default" | ||
slot="end"> | ||
<ion-icon name="pause"></ion-icon> | ||
|
||
</ion-button> | ||
|
||
|
||
<ion-button (click)="resumeTimer()" *ngIf="!timer.runTimer && timer.hasStarted && !timer.hasFinished" fill="outline" | ||
size="default" | ||
slot="end"> | ||
<ion-icon name="play"></ion-icon> | ||
|
||
</ion-button> | ||
<ion-button (click)="startTimer()" *ngIf="!timer.hasStarted" fill="outline" size="default" | ||
slot="end"> | ||
<ion-icon name="play"></ion-icon> | ||
</ion-button> | ||
</ion-item> | ||
|
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,14 @@ | ||
:host { | ||
.brew-image img { | ||
max-width: 50%; | ||
max-height: 200px; | ||
} | ||
|
||
ion-button.circle-button { | ||
--border-radius: 100%; | ||
height: 65px; | ||
width: 65px; | ||
|
||
} | ||
} | ||
|
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,27 @@ | ||
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; | ||
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {BrewTimerComponent} from './brew-timer.component'; | ||
|
||
describe('BrewTimerComponent', () => { | ||
let component: BrewTimerComponent; | ||
let fixture: ComponentFixture<BrewTimerComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [BrewTimerComponent], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(BrewTimerComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.