Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Taiko Web
Commits
42f22a4f
Commit
42f22a4f
authored
Nov 25, 2019
by
Bui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow anonymous makers
parent
67e418bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
app.py
app.py
+5
-1
public/src/js/songselect.js
public/src/js/songselect.js
+5
-5
No files found.
app.py
View file @
42f22a4f
...
@@ -127,7 +127,11 @@ def route_api_songs():
...
@@ -127,7 +127,11 @@ def route_api_songs():
category_out
=
categories
[
song
[
11
]]
if
song
[
11
]
in
categories
else
""
category_out
=
categories
[
song
[
11
]]
if
song
[
11
]
in
categories
else
""
song_skin_out
=
song_skins
[
song
[
14
]]
if
song
[
14
]
in
song_skins
else
None
song_skin_out
=
song_skins
[
song
[
14
]]
if
song
[
14
]
in
song_skins
else
None
maker
=
{
'name'
:
song
[
18
],
'url'
:
song
[
19
]}
if
song
[
17
]
else
None
maker
=
None
if
song
[
17
]
==
0
:
maker
=
0
elif
song
[
17
]
>
0
:
maker
=
{
'name'
:
song
[
18
],
'url'
:
song
[
19
],
'id'
:
song
[
17
]}
songs_out
.
append
({
songs_out
.
append
({
'id'
:
song_id
,
'id'
:
song_id
,
...
...
public/src/js/songselect.js
View file @
42f22a4f
...
@@ -5,7 +5,7 @@ class SongSelect{
...
@@ -5,7 +5,7 @@ class SongSelect{
loader
.
changePage
(
"
songselect
"
,
false
)
loader
.
changePage
(
"
songselect
"
,
false
)
this
.
canvas
=
document
.
getElementById
(
"
song-sel-canvas
"
)
this
.
canvas
=
document
.
getElementById
(
"
song-sel-canvas
"
)
this
.
ctx
=
this
.
canvas
.
getContext
(
"
2d
"
)
this
.
ctx
=
this
.
canvas
.
getContext
(
"
2d
"
)
this
.
songSkin
=
{
this
.
songSkin
=
{
"
selected
"
:
{
"
selected
"
:
{
background
:
"
#ffdb2c
"
,
background
:
"
#ffdb2c
"
,
...
@@ -432,7 +432,7 @@ class SongSelect{
...
@@ -432,7 +432,7 @@ class SongSelect{
this
.
toSongSelect
()
this
.
toSongSelect
()
}
else
if
(
moveBy
===
1
){
}
else
if
(
moveBy
===
1
){
this
.
toOptions
(
1
)
this
.
toOptions
(
1
)
}
else
if
(
moveBy
===
"
maker
"
&&
this
.
songs
[
this
.
selectedSong
].
maker
.
url
){
}
else
if
(
moveBy
===
"
maker
"
){
window
.
open
(
this
.
songs
[
this
.
selectedSong
].
maker
.
url
)
window
.
open
(
this
.
songs
[
this
.
selectedSong
].
maker
.
url
)
}
else
if
(
moveBy
===
this
.
diffOptions
.
length
+
4
){
}
else
if
(
moveBy
===
this
.
diffOptions
.
length
+
4
){
this
.
state
.
ura
=
!
this
.
state
.
ura
this
.
state
.
ura
=
!
this
.
state
.
ura
...
@@ -521,7 +521,7 @@ class SongSelect{
...
@@ -521,7 +521,7 @@ class SongSelect{
if
(
this
.
state
.
locked
===
0
){
if
(
this
.
state
.
locked
===
0
){
if
(
223
<
x
&&
x
<
367
&&
118
<
y
&&
y
<
422
){
if
(
223
<
x
&&
x
<
367
&&
118
<
y
&&
y
<
422
){
return
Math
.
floor
((
x
-
223
)
/
((
367
-
223
)
/
2
))
return
Math
.
floor
((
x
-
223
)
/
((
367
-
223
)
/
2
))
}
else
if
(
this
.
songs
[
this
.
selectedSong
].
maker
&&
this
.
songs
[
this
.
selectedSong
].
maker
.
url
&&
x
>
230
&&
x
<
485
&&
y
>
432
&&
y
<
519
)
{
}
else
if
(
this
.
songs
[
this
.
selectedSong
].
maker
&&
this
.
songs
[
this
.
selectedSong
].
maker
.
id
>
0
&&
this
.
songs
[
this
.
selectedSong
].
maker
.
url
&&
x
>
230
&&
x
<
485
&&
y
>
432
&&
y
<
519
)
{
return
"
maker
"
return
"
maker
"
}
else
if
(
550
<
x
&&
x
<
1050
&&
95
<
y
&&
y
<
524
){
}
else
if
(
550
<
x
&&
x
<
1050
&&
95
<
y
&&
y
<
524
){
var
moveBy
=
Math
.
floor
((
x
-
550
)
/
((
1050
-
550
)
/
5
))
+
this
.
diffOptions
.
length
var
moveBy
=
Math
.
floor
((
x
-
550
)
/
((
1050
-
550
)
/
5
))
+
this
.
diffOptions
.
length
...
@@ -1479,7 +1479,7 @@ class SongSelect{
...
@@ -1479,7 +1479,7 @@ class SongSelect{
})
})
}
}
if
(
currentSong
.
maker
){
if
(
currentSong
.
maker
!==
null
){
if
(
songSel
)
{
if
(
songSel
)
{
var
_x
=
x
+
38
var
_x
=
x
+
38
var
_y
=
y
+
10
var
_y
=
y
+
10
...
@@ -1518,7 +1518,7 @@ class SongSelect{
...
@@ -1518,7 +1518,7 @@ class SongSelect{
{
outline
:
"
#fff
"
,
letterBorder
:
8
},
{
outline
:
"
#fff
"
,
letterBorder
:
8
},
{
fill
:
"
#000
"
}
{
fill
:
"
#000
"
}
])
])
}
else
{
}
else
if
(
currentSong
.
maker
&&
currentSong
.
maker
.
id
>
0
)
{
var
_x
=
x
+
62
var
_x
=
x
+
62
var
_y
=
y
+
380
var
_y
=
y
+
380
ctx
.
lineWidth
=
5
ctx
.
lineWidth
=
5
...
...
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