-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolved an issue that caused the user name input box to behave erratically for fast typers. Also applied better styling to pending user/player name change requests. * Resolved an issue that could cause the component which presents challenge questions to spam the API if a 500 is returned. * Remove unused refs * Initial draft of 135/165 * Finished draft of 135/165. * Don't show duplicate answers in historical attempts. * Working on players report * Finish mvp of Players Report. * Add summary card to players report. Resolves GBAPI#309 pending feedback. * Initial draft of Challenges Report. Still needs summary card. * Mvp of #310. * First draft of responsive nav. Need to adjust to avoid menu markup duplication. * Removed unnecessary generic type on ReportComponentBase * More fiddling with responsive menu and other not-as-responsive things. * Refining modals for players report. * Finish players report modal for participation. * Fixed a few paging bugs in reporting. * Make unsubscriber service transient so that it correctly disposes subs. * Correct missing provider for profile-editor * Fix reports module dependency and some spoonsor select bugs. * Shorten autosave delay to 1.5 sec on challenge responses. * Correct comment
- Loading branch information
1 parent
89d8a5c
commit 2cb874a
Showing
83 changed files
with
1,367 additions
and
321 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
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
1 change: 1 addition & 0 deletions
1
projects/gameboard-ui/src/app/core/components/countdown/countdown.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 @@ | ||
{{ timeRemaining$ | async | countdown }} |
Empty file.
30 changes: 30 additions & 0 deletions
30
projects/gameboard-ui/src/app/core/components/countdown/countdown.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,30 @@ | ||
import { NowService } from '@/services/now.service'; | ||
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; | ||
import { Observable, map, of, tap, timer } from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'app-countdown', | ||
templateUrl: './countdown.component.html', | ||
styleUrls: ['./countdown.component.scss'] | ||
}) | ||
export class CountdownComponent implements OnChanges { | ||
// note that this should be in MS since epoch (e.g. new Date().valueOf()) | ||
@Input() countdownTo?: number; | ||
|
||
protected timeRemaining$: Observable<number> = of(0); | ||
|
||
constructor(private nowService: NowService) { } | ||
|
||
ngOnChanges(changes: SimpleChanges): void { | ||
if (this.countdownTo) { | ||
this.timeRemaining$ = timer(0, 1000).pipe( | ||
map(() => { | ||
if (!this.countdownTo) | ||
return 0; | ||
|
||
return this.countdownTo - this.nowService.now().valueOf(); | ||
}) | ||
); | ||
} | ||
} | ||
} |
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.