Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Desktop Client
Commits
5e041081
Commit
5e041081
authored
Jan 25, 2021
by
Andreas Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add difficulties to detail page
parent
0a44948b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
15 deletions
+46
-15
src/views/SongDetail.vue
src/views/SongDetail.vue
+46
-15
No files found.
src/views/SongDetail.vue
View file @
5e041081
...
...
@@ -54,11 +54,11 @@
<
i
class
=
"
mdi mdi-arm-flex
"
><
/i
>
<
/div
>
<
div
class
=
"
difficulties
"
>
<
img
src
=
"
@/assets/img/difficultyEasy.svg
"
:
class
=
"
hasEasyDifficulty ? 'active' : ''
"
alt
=
"
Easy Difficulty
"
/
>
<
img
src
=
"
@/assets/img/difficultyNormal.svg
"
:
class
=
"
hasNormalDifficulty ? 'active' : ''
"
alt
=
"
Normal Difficulty
"
/
>
<
img
src
=
"
@/assets/img/difficultyHard.svg
"
:
class
=
"
hasHardDifficulty ? 'active' : ''
"
alt
=
"
Hard Difficulty
"
/
>
<
img
src
=
"
@/assets/img/difficultyExtreme.svg
"
:
class
=
"
hasExpertDifficulty ? 'active' : ''
"
alt
=
"
Expert Difficulty
"
/
>
<
img
src
=
"
@/assets/img/difficultyXD.svg
"
:
class
=
"
hasXDDifficulty ? 'active' : ''
"
alt
=
"
xD Difficulty
"
/
>
<
div
v
-
if
=
"
hasEasyDifficulty
"
class
=
"
difficulty
"
><
span
>
E
<
/span> {{ easyDifficulty
?
easyDifficulty : 0
}}
</
div
>
<
div
v
-
if
=
"
hasNormalDifficulty
"
class
=
"
difficulty
"
><
span
>
N
<
/span> {{ normalDifficulty
?
normalDifficulty : 0
}}
</
div
>
<
div
v
-
if
=
"
hasHardDifficulty
"
class
=
"
difficulty
"
><
span
>
H
<
/span> {{ hardDifficulty
?
hardDifficulty : 0
}}
</
div
>
<
div
v
-
if
=
"
hasExpertDifficulty
"
class
=
"
difficulty
"
><
span
>
EX
<
/span> {{ expertDifficulty
?
expertDifficulty : 0
}}
</
div
>
<
div
v
-
if
=
"
hasXDDifficulty
"
class
=
"
difficulty
"
><
span
>
XD
<
/span> {{ XDDifficulty
?
XDDifficulty : 0
}}
</
div
>
<
/div
>
<
/div
>
<
div
class
=
"
stat
"
v
-
if
=
"
uploadDate
"
>
...
...
@@ -69,6 +69,14 @@
{{
uploadDate
}}
<
/div
>
<
/div
>
<
div
class
=
"
stat
"
v
-
if
=
"
updateDate
"
>
<
div
class
=
"
icon
"
v
-
tooltip
=
"
'Update Date'
"
>
<
i
class
=
"
mdi mdi-calendar-clock
"
><
/i
>
<
/div
>
<
div
class
=
"
content
"
>
{{
updateDate
}}
<
/div
>
<
/div
>
<
div
class
=
"
stat
"
>
<
div
class
=
"
icon
"
v
-
tooltip
=
"
'Views'
"
>
<
i
class
=
"
mdi mdi-eye
"
><
/i
>
...
...
@@ -155,10 +163,15 @@
hasHardDifficulty
:
false
,
hasExpertDifficulty
:
false
,
hasXDDifficulty
:
false
,
easyDifficulty
:
0
,
normalDifficulty
:
0
,
hardDifficulty
:
0
,
expertDifficulty
:
0
,
XDDifficulty
:
0
,
tags
:
[],
uploader
:
null
,
uploadDate
:
null
,
up
loadDateValid
:
false
,
up
dateDate
:
null
,
fileReference
:
""
,
isInstalled
:
false
,
previewPath
:
""
,
...
...
@@ -186,6 +199,8 @@
}
}
console
.
log
(
data
.
data
);
this
.
$data
.
id
=
data
.
data
.
id
;
this
.
$data
.
cover
=
data
.
data
.
paths
.
cover
;
this
.
$data
.
title
=
data
.
data
.
title
;
...
...
@@ -197,6 +212,11 @@
this
.
$data
.
hasHardDifficulty
=
data
.
data
.
hasHardDifficulty
;
this
.
$data
.
hasExpertDifficulty
=
data
.
data
.
hasExtremeDifficulty
;
this
.
$data
.
hasXDDifficulty
=
data
.
data
.
hasXDDifficulty
;
this
.
$data
.
easyDifficulty
=
data
.
data
.
easyDifficulty
;
this
.
$data
.
normalDifficulty
=
data
.
data
.
normalDifficulty
;
this
.
$data
.
hardDifficulty
=
data
.
data
.
hardDifficulty
;
this
.
$data
.
expertDifficulty
=
data
.
data
.
expertDifficulty
;
this
.
$data
.
XDDifficulty
=
data
.
data
.
XDDifficulty
;
if
(
data
.
data
.
tags
!=
""
)
{
this
.
$data
.
tags
=
data
.
data
.
tags
;
}
...
...
@@ -205,7 +225,12 @@
this
.
$data
.
downloads
=
data
.
data
.
downloads
;
this
.
$data
.
views
=
data
.
data
.
views
;
this
.
$data
.
description
=
data
.
data
.
description
;
if
(
data
.
data
.
uploadDate
)
{
this
.
$data
.
uploadDate
=
moment
(
data
.
data
.
uploadDate
.
date
).
format
(
this
.
$t
(
'
locale.dateFormat
'
));
}
if
(
data
.
data
.
updateDate
)
{
this
.
$data
.
updateDate
=
moment
(
data
.
data
.
updateDate
.
date
).
format
(
this
.
$t
(
'
locale.dateFormat
'
));
}
this
.
$data
.
fileReference
=
data
.
data
.
fileReference
;
// Check if Song is already installed by searching for the srtb file
...
...
@@ -431,14 +456,20 @@
&
.
difficulties
{
align
-
self
:
center
;
height
:
20
px
;
display
:
flex
;
&
img
{
height
:
25
px
;
margin
-
right
:
5
px
;
opacity
:
0.4
;
&
.
difficulty
{
background
:
#
fff
;
color
:
#
000
;
border
-
radius
:
4
px
;
padding
:
3
px
8
px
;
margin
-
right
:
4
px
;
font
-
size
:
10
px
;
&
.
active
{
opacity
:
1
;
&
span
{
// padding-right: 3px;
font
-
weight
:
bold
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment