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
7bda48c1
Commit
7bda48c1
authored
Jun 16, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed empty dates
parent
516b0d0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/main.js
src/main.js
+1
-1
src/views/SongDetail.vue
src/views/SongDetail.vue
+7
-3
No files found.
src/main.js
View file @
7bda48c1
...
@@ -9,7 +9,7 @@ import { ipcRenderer } from 'electron';
...
@@ -9,7 +9,7 @@ import { ipcRenderer } from 'electron';
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
filter
(
'
formatDate
'
,
function
(
value
)
{
Vue
.
filter
(
'
formatDate
'
,
function
(
value
)
{
if
(
value
)
{
if
(
value
&&
!
String
(
value
).
includes
(
"
-0001
"
)
)
{
return
moment
(
String
(
value
)).
format
(
i18n
.
t
(
'
locale.dateFormat
'
))
return
moment
(
String
(
value
)).
format
(
i18n
.
t
(
'
locale.dateFormat
'
))
}
}
});
});
...
...
src/views/SongDetail.vue
View file @
7bda48c1
...
@@ -56,12 +56,12 @@
...
@@ -56,12 +56,12 @@
<
img
src
=
"
@/assets/img/difficultyXD.svg
"
:
class
=
"
hasXDDifficulty ? 'active' : ''
"
alt
=
"
xD Difficulty
"
/>
<
img
src
=
"
@/assets/img/difficultyXD.svg
"
:
class
=
"
hasXDDifficulty ? 'active' : ''
"
alt
=
"
xD Difficulty
"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
stat
"
>
<
div
class
=
"
stat
"
v
-
if
=
"
uploadDate
"
>
<
div
class
=
"
icon
"
>
<
div
class
=
"
icon
"
>
<
i
class
=
"
mdi mdi-calendar-clock
"
><
/i
>
<
i
class
=
"
mdi mdi-calendar-clock
"
><
/i
>
<
/div
>
<
/div
>
<
div
class
=
"
content
"
>
<
div
class
=
"
content
"
>
{{
uploadDate
.
date
|
formatDate
}}
{{
uploadDate
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
stat
"
>
<
div
class
=
"
stat
"
>
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
<
script
>
<
script
>
import
{
remote
}
from
'
electron
'
;
import
{
remote
}
from
'
electron
'
;
import
path
from
'
path
'
;
import
path
from
'
path
'
;
import
moment
from
'
moment
'
;
import
fs
from
'
fs
'
;
import
fs
from
'
fs
'
;
const
{
clipboard
,
shell
}
=
remote
;
const
{
clipboard
,
shell
}
=
remote
;
...
@@ -152,6 +153,7 @@
...
@@ -152,6 +153,7 @@
tags
:
[],
tags
:
[],
uploader
:
null
,
uploader
:
null
,
uploadDate
:
null
,
uploadDate
:
null
,
uploadDateValid
:
false
,
fileReference
:
""
,
fileReference
:
""
,
isInstalled
:
false
,
isInstalled
:
false
,
previewPath
:
""
,
previewPath
:
""
,
...
@@ -190,7 +192,7 @@
...
@@ -190,7 +192,7 @@
this
.
$data
.
downloads
=
data
.
data
.
downloads
;
this
.
$data
.
downloads
=
data
.
data
.
downloads
;
this
.
$data
.
views
=
data
.
data
.
views
;
this
.
$data
.
views
=
data
.
data
.
views
;
this
.
$data
.
description
=
data
.
data
.
description
;
this
.
$data
.
description
=
data
.
data
.
description
;
this
.
$data
.
uploadDate
=
data
.
data
.
uploadDate
;
this
.
$data
.
uploadDate
=
moment
(
data
.
data
.
uploadDate
.
date
).
format
(
this
.
$t
(
'
locale.dateFormat
'
))
;
this
.
$data
.
fileReference
=
data
.
data
.
fileReference
;
this
.
$data
.
fileReference
=
data
.
data
.
fileReference
;
// Check if Song is already installed by searching for the srtb file
// Check if Song is already installed by searching for the srtb file
...
@@ -204,12 +206,14 @@
...
@@ -204,12 +206,14 @@
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
data
.
status
}
}
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
data
.
status
}
}
);
}
}
}
).
catch
((
error
)
=>
{
}
).
catch
((
error
)
=>
{
console
.
error
(
error
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
500
}
}
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
500
}
}
);
}
);
}
);
}
else
{
}
else
{
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
data
.
status
}
}
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
data
.
status
}
}
);
}
}
}
).
catch
((
error
)
=>
{
}
).
catch
((
error
)
=>
{
console
.
error
(
error
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
500
}
}
);
this
.
$router
.
push
({
name
:
'
Error
'
,
params
:
{
errorCode
:
500
}
}
);
}
);
}
);
...
...
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