-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tschaika
committed
Jun 30, 2024
1 parent
a33503d
commit 10169ec
Showing
17 changed files
with
250 additions
and
45 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/app/dialogs/add-blinds/add-blinds-select-option/add-blinds-select-option.component.html
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 @@ | ||
<div class="blind-level-select-option flex align-center"> | ||
<span class="bold time"> | ||
{{ blindLevel().duration }}min | ||
</span> | ||
|
||
<div class="flex flex-dir-column"> | ||
<span class="bold"> | ||
{{ blindLevel().sb }} / {{ blindLevel().bb }} | ||
</span> | ||
<span> | ||
<small>Ante {{ blindLevel().ante }} | Btn Ante {{ blindLevel().btnAnte }}</small> | ||
</span> | ||
</div> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
src/app/dialogs/add-blinds/add-blinds-select-option/add-blinds-select-option.component.scss
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,10 @@ | ||
.blind-level-select-option { | ||
padding-top: 8px; | ||
padding-bottom: 8px; | ||
} | ||
|
||
.time { | ||
width: 120px; | ||
font-size: 28px; | ||
color: #888888; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/app/dialogs/add-blinds/add-blinds-select-option/add-blinds-select-option.component.ts
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,15 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { BlindLevel } from '../../../shared/interfaces/blind-level.interface'; | ||
|
||
@Component({ | ||
selector: 'app-add-blinds-select-option', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './add-blinds-select-option.component.html', | ||
styleUrl: './add-blinds-select-option.component.scss' | ||
}) | ||
export class AddBlindsSelectOptionComponent { | ||
|
||
blindLevel = input.required<BlindLevel>(); | ||
|
||
} |
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
20 changes: 20 additions & 0 deletions
20
src/app/dialogs/add-pause/add-pause-select-option/add-pause-select-option.component.html
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,20 @@ | ||
<div class="pause-select-option flex align-center"> | ||
<span class="bold time"> | ||
{{ pause().duration }}min | ||
</span> | ||
|
||
<div class="flex flex-dir-column"> | ||
@if (pause().isChipUp) { | ||
<span><small>Chip-Up</small></span> | ||
} | ||
|
||
@if (pause().endsRebuy) { | ||
<span><small>Ends Rebuy</small></span> | ||
} | ||
|
||
@if (!pause().isChipUp && !pause().endsRebuy) { | ||
<span><small>Regular</small></span> | ||
} | ||
|
||
</div> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
src/app/dialogs/add-pause/add-pause-select-option/add-pause-select-option.component.scss
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,10 @@ | ||
.pause-select-option { | ||
padding-top: 8px; | ||
padding-bottom: 8px; | ||
} | ||
|
||
.time { | ||
width: 120px; | ||
font-size: 28px; | ||
color: #888888; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/app/dialogs/add-pause/add-pause-select-option/add-pause-select-option.component.ts
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,15 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { BlindLevel } from '../../../shared/interfaces/blind-level.interface'; | ||
|
||
@Component({ | ||
selector: 'app-add-pause-select-option', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './add-pause-select-option.component.html', | ||
styleUrl: './add-pause-select-option.component.scss' | ||
}) | ||
export class AddPauseSelectOptionComponent { | ||
|
||
pause = input.required<BlindLevel>(); | ||
|
||
} |
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,24 @@ | ||
import { Pipe, PipeTransform } from '@angular/core'; | ||
import { BlindLevel } from '../interfaces/blind-level.interface'; | ||
|
||
@Pipe({ | ||
name: 'blindLevelTriggerText', | ||
standalone: true | ||
}) | ||
export class BlindLevelTriggerTextPipe implements PipeTransform { | ||
|
||
transform(blindIds: number[] | null | undefined, allBlinds: BlindLevel[]): string { | ||
if (!blindIds || blindIds.length === 0 || blindIds[0] === -1) { | ||
return ''; | ||
} | ||
|
||
const blindLevel = allBlinds.find(bl => bl.id === blindIds[0]); | ||
|
||
if (!blindLevel) { | ||
return ''; | ||
} | ||
|
||
return `${blindLevel.sb} / ${blindLevel.bb} / ${blindLevel.ante} / ${blindLevel.btnAnte} / ${blindLevel.duration}min`; | ||
} | ||
|
||
} |
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 { Pipe, PipeTransform } from '@angular/core'; | ||
import { BlindLevel } from '../interfaces/blind-level.interface'; | ||
|
||
@Pipe({ | ||
name: 'pauseTriggerText', | ||
standalone: true | ||
}) | ||
export class PauseTriggerTextPipe implements PipeTransform { | ||
|
||
transform(blindIds: number[] | null | undefined, allBlinds: BlindLevel[]): string { | ||
if (!blindIds || blindIds.length === 0 || blindIds[0] === -1) { | ||
return ''; | ||
} | ||
|
||
const blindLevel = allBlinds.find(bl => bl.id === blindIds[0]); | ||
|
||
if (!blindLevel) { | ||
return ''; | ||
} | ||
|
||
let text = `Pause ${blindLevel.duration}min`; | ||
|
||
if (blindLevel.isChipUp) { | ||
text += ' (Chip Up)'; | ||
} | ||
|
||
if (blindLevel.endsRebuy) { | ||
text += ' (Ends Rebuy)'; | ||
} | ||
|
||
return text; | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -279,3 +279,9 @@ form p { | |
.relative { | ||
position: relative; | ||
} | ||
|
||
.cursor-pointer { | ||
cursor: pointer; | ||
} | ||
|
||
|
Oops, something went wrong.