Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Commits
c978944e
Commit
c978944e
authored
1 year ago
by
VIktorGrev
Browse files
Options
Downloads
Patches
Plain Diff
fix: Fixing style
parent
f19e2618
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!74
fix: Fixing style
Pipeline
#282687
failed
1 year ago
Stage: install
Stage: build
Stage: test
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/LeaderboardComponents/Leaderboard.vue
+7
-14
7 additions, 14 deletions
src/components/LeaderboardComponents/Leaderboard.vue
src/views/LeaderboardView.vue
+0
-13
0 additions, 13 deletions
src/views/LeaderboardView.vue
with
7 additions
and
27 deletions
src/components/LeaderboardComponents/Leaderboard.vue
+
7
−
14
View file @
c978944e
<
template
>
<div
id=
"leaderboard"
>
<table>
<tbody
data-cy=
"top-leaderboard-table"
>
<tr
data-cy=
"top-leaderboard-tablerow"
v-for=
"(entry, index) in leaderboard"
:key=
"entry.user?.id"
:class=
"
{ 'is-user-5':
entry.user?.id === userStore.id }">
<tr
data-cy=
"top-leaderboard-tablerow"
v-for=
"(entry, index) in leaderboard"
:key=
"entry.user?.id"
:class=
"
{
'is-user-5':
entry.user?.id === userStore.id
}">
<td
class=
"number"
>
{{
entry
.
rank
}}
</td>
<td
class=
"name"
@
click=
"navigateToUserProfile(entry.user?.id ?? 0)"
>
{{
entry
.
user
?.
firstName
}}
</td>
<td
class=
"points"
v-if=
"index === 0"
>
...
...
@@ -15,16 +16,9 @@
</tr>
</tbody>
<tbody
id=
"line"
>
`
</tbody>
<<<<<<<
HEAD
<tbody
v-if=
"!userInLeaderboard"
>
<tr
v-for=
"(entry, index) in leaderboardExtra"
:key=
"entry.user?.id"
:class=
"
{ 'is-user-5': entry.user?.id === userStore.id }">
=======
<tbody
data-cy=
"surrounding-user-leaderboard-table"
v-if=
"!userInLeaderboard"
>
<tr></tr>
<tr
data-cy=
"surrounding-user-leaderboard-tablerow"
v-for=
"(entry, index) in
leaderboardExtra"
:key=
"entry.user?.id"
:class=
"
{
'is-user-5': entry.user?.id === userStore.id }">
>>>>>>> e50d5c050dfc8dc2ff7931c3a05f22c024a70e31
<tr
data-cy=
"surrounding-user-leaderboard-tablerow"
v-for=
"(entry, index) in leaderboardExtra"
:key=
"entry.user?.id"
:class=
"
{ 'is-user-5': entry.user?.id === userStore.id }">
<td
class=
"number"
>
{{
entry
.
rank
}}
</td>
<td
class=
"name"
@
click=
"navigateToUserProfile(entry.user?.id ?? 0)"
>
{{
entry
.
user
?.
firstName
}}
</td>
<td
class=
"points"
>
{{
entry
.
score
}}
</td>
...
...
@@ -66,7 +60,6 @@ const navigateToUserProfile = (id: number) => {
</
script
>
<
style
scoped
>
#leaderboard
{
max-width
:
80%
;
position
:
relative
;
...
...
This diff is collapsed.
Click to expand it.
src/views/LeaderboardView.vue
+
0
−
13
View file @
c978944e
...
...
@@ -19,18 +19,6 @@
</div>
<main>
<div
id=
"leaderboard"
>
<<<<<<<
HEAD
<h1><img
src=
"@/assets/items/pigcoin.png"
style=
"width: 2rem"
alt=
"pig coin"
>
Poeng
</h1>
<Leaderboard
:leaderboard=
"pointsLeaderboardData"
:leaderboardExtra=
"pointsLeaderboardDataExtra"
@
navigateToUserProfile=
"navigateToUserProfile"
/>
</div>
<div
id=
"leaderboard"
>
<h1><img
src=
"@/assets/icons/fire.png"
style=
"width: 2rem"
alt=
"ild"
>
Streak
</h1>
<Leaderboard
:leaderboard=
"currentLeaderboardData"
:leaderboardExtra=
"currentLeaderboardDataExtra"
@
navigateToUserProfile=
"navigateToUserProfile"
/>
</div>
<div
id=
"leaderboard"
>
<h1><img
src=
"@/assets/icons/fire.png"
style=
"width: 2rem"
alt=
"ild"
>
Streak
</h1>
<Leaderboard
:leaderboard=
"streakLeaderboardData"
:leaderboardExtra=
"streakLeaderboardDataExtra"
@
navigateToUserProfile=
"navigateToUserProfile"
/>
=======
<h1><img
src=
"@/assets/items/pigcoin.png"
style=
"width: 2rem"
alt=
"pig coin"
>
Totale poeng
</h1>
<Leaderboard
data-cy=
"total-points-board"
:leaderboard=
"pointsLeaderboardData"
:leaderboardExtra=
"pointsLeaderboardDataExtra"
@
navigateToUserProfile=
"navigateToUserProfile"
/>
...
...
@@ -44,7 +32,6 @@
<h1><img
src=
"@/assets/icons/fire.png"
style=
"width: 2rem"
alt=
"ild"
>
Høyeste rekke
</h1>
<Leaderboard
data-cy=
"streak-board"
:leaderboard=
"streakLeaderboardData"
:leaderboardExtra=
"streakLeaderboardDataExtra"
@
navigateToUserProfile=
"navigateToUserProfile"
/>
>>>>>>> e50d5c050dfc8dc2ff7931c3a05f22c024a70e31
</div>
</main>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment