-
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.
style: added comments to clarify the code
- Loading branch information
Showing
21 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
frontend/src/app/components/atoms/settingsentry/settingsentry.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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
$font-size:1.2em; | ||
|
||
//design for generic settings entry | ||
#wrapper{ | ||
height:14vh; | ||
text-align: center; | ||
|
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
frontend/src/app/components/atoms/statistic-entry/statistic-entry.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//design for generic statistic entry | ||
#wrapper{ | ||
background-color: var(--white); | ||
text-align: center; | ||
|
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
5 changes: 5 additions & 0 deletions
5
frontend/src/app/components/organisms/footer/footer.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
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
3 changes: 3 additions & 0 deletions
3
frontend/src/app/components/pages/profilepage/profilepage.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
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 |
---|---|---|
|
@@ -7,6 +7,8 @@ import { Router } from '@angular/router'; | |
styleUrl: './profilepage.component.scss' | ||
}) | ||
export class ProfilepageComponent { | ||
//input with default values for showcase | ||
//statistics is dynamic array | ||
name: string = "David Hasselhoff"; | ||
email: string = "[email protected]"; | ||
statistics: {name: string, value: string}[] = [ | ||
|
@@ -21,6 +23,7 @@ export class ProfilepageComponent { | |
this.router = router; | ||
} | ||
|
||
//gets called to open settings | ||
settings(){ | ||
this.router.navigate(['/settings']); | ||
} | ||
|
2 changes: 2 additions & 0 deletions
2
frontend/src/app/components/pages/ranking-page/ranking-page.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div id="pg-container"> | ||
<!-- header --> | ||
<div id="pg-ranked-header"> | ||
<div id="headline-wrapper"> | ||
<h1>Globale Rangliste</h1> | ||
</div> | ||
</div> | ||
<!-- ranking table with input data --> | ||
<app-ranking-table [users]="users"></app-ranking-table> | ||
</div> | ||
|
1 change: 1 addition & 0 deletions
1
frontend/src/app/components/pages/ranking-page/ranking-page.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
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 |
---|---|---|
|
@@ -8,16 +8,19 @@ import { Router } from '@angular/router'; | |
}) | ||
export class SettingspageComponent { | ||
|
||
//dynamic settings array with fake data for showcase | ||
@Input() settings =[{name:'Name', value:'David Hasselhoff'}, | ||
{name:'Email',value:'[email protected]'}]; | ||
|
||
constructor(private router: Router) { | ||
} | ||
|
||
//gets called on page close | ||
goBack() { | ||
this.router.navigate(['/profile']); | ||
} | ||
|
||
//gets called when the user clicks the logout button | ||
logout() { | ||
localStorage.removeItem('bearerToken'); | ||
this.router.navigate(['/home']); | ||
|