Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
taiko-db-writer
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-db-writer
Commits
b2a967ce
Commit
b2a967ce
authored
May 20, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
identify branches
parent
7bf49f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
index.js
index.js
+23
-4
No files found.
index.js
View file @
b2a967ce
...
@@ -50,12 +50,19 @@ for (var category_raw of category_array) {
...
@@ -50,12 +50,19 @@ for (var category_raw of category_array) {
ura
:
null
,
ura
:
null
,
},
},
song_id
:
song_id
,
song_id
:
song_id
,
category
:
category
category
:
category
,
branch
:
{
easy
:
false
,
normal
:
false
,
hard
:
false
,
oni
:
false
,
ura
:
false
,
}
}
}
var
courseName
=
"
oni
"
;
var
courseName
=
"
oni
"
;
for
(
var
line
of
tja_lines
)
{
for
(
var
line
of
tja_lines
)
{
if
(
line
.
indexOf
(
"
:
"
)
>
0
)
{
const
line_
=
line
.
trim
();
const
line_
=
line
.
trim
();
if
(
line_
.
indexOf
(
"
:
"
)
>
0
)
{
//const line__ = convert(line_, "UTF-8", "SHIFT-JIS").toString('utf8');
//const line__ = convert(line_, "UTF-8", "SHIFT-JIS").toString('utf8');
const
temp
=
line_
.
split
(
"
:
"
);
const
temp
=
line_
.
split
(
"
:
"
);
const
key
=
temp
[
0
].
toLowerCase
();
const
key
=
temp
[
0
].
toLowerCase
();
...
@@ -77,9 +84,21 @@ for (var category_raw of category_array) {
...
@@ -77,9 +84,21 @@ for (var category_raw of category_array) {
}
}
break
;
break
;
case
"
level
"
:
case
"
level
"
:
res
.
difficulty
[
courseName
]
=
"
'
"
+
value
+
"
'
"
;
res
.
difficulty
[
courseName
]
=
value
;
break
;
break
;
}
}
}
else
if
(
line_
.
startsWith
(
"
#BRANCHSTART
"
))
{
console
.
log
(
"
branch
"
,
res
.
title
,
courseName
);
res
.
branch
[
courseName
]
=
true
;
}
}
for
(
var
diff
of
[
"
easy
"
,
"
normal
"
,
"
hard
"
,
"
oni
"
,
"
ura
"
])
{
if
(
res
.
difficulty
[
diff
])
{
if
(
res
.
branch
[
diff
])
{
res
.
difficulty
[
diff
]
=
"
'
"
+
res
.
difficulty
[
diff
]
+
"
B'
"
;
}
else
{
res
.
difficulty
[
diff
]
=
"
'
"
+
res
.
difficulty
[
diff
]
+
"
'
"
;
}
}
}
}
}
all_songs
.
push
(
res
);
all_songs
.
push
(
res
);
...
...
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