From 3843e37d4efd2cbfffb6d9e66915835904b44409 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sat, 8 Oct 2022 22:13:20 +0000 Subject: [PATCH] Covnert Museca and SDVX to fragments. --- .../static/controllers/museca/records.react.js | 17 ++++++++--------- .../static/controllers/museca/settings.react.js | 4 ++-- .../static/controllers/sdvx/records.react.js | 16 ++++++++-------- .../static/controllers/sdvx/rivals.react.js | 4 ++-- .../static/controllers/sdvx/scores.react.js | 4 ++-- .../static/controllers/sdvx/settings.react.js | 4 ++-- .../static/controllers/sdvx/topscores.react.js | 1 - 7 files changed, 24 insertions(+), 26 deletions(-) diff --git a/bemani/frontend/static/controllers/museca/records.react.js b/bemani/frontend/static/controllers/museca/records.react.js index 2304a80..db48474 100644 --- a/bemani/frontend/static/controllers/museca/records.react.js +++ b/bemani/frontend/static/controllers/museca/records.react.js @@ -182,9 +182,9 @@ var network_records = createReactClass({ } return ( - + <> { paginate ? -
+
{songids.map(function(songid) { if (songid < 0) { curbutton = curbutton + 1; @@ -207,7 +207,7 @@ var network_records = createReactClass({
: null } -
+
@@ -284,7 +284,7 @@ var network_records = createReactClass({
- + ); }, @@ -304,7 +304,6 @@ var network_records = createReactClass({ return this.getPlays(this.state.records[songid]) > 0; }.bind(this)); } - return this.renderBySongIDList(songids, false); }, @@ -356,7 +355,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -373,7 +372,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, @@ -406,7 +405,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -423,7 +422,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, diff --git a/bemani/frontend/static/controllers/museca/settings.react.js b/bemani/frontend/static/controllers/museca/settings.react.js index af284c3..4283fa9 100644 --- a/bemani/frontend/static/controllers/museca/settings.react.js +++ b/bemani/frontend/static/controllers/museca/settings.react.js @@ -54,14 +54,14 @@ var settings_view = createReactClass({ return ( { !this.state.editing_name ? - + <> {player.name} - : + :
+ <> { paginate ? -
+
{songids.map(function(songid) { if (songid < 0) { curbutton = curbutton + 1; @@ -200,7 +200,7 @@ var network_records = createReactClass({
: null } -
+
@@ -299,7 +299,7 @@ var network_records = createReactClass({
- + ); }, @@ -371,7 +371,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -388,7 +388,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, @@ -421,7 +421,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -438,7 +438,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, diff --git a/bemani/frontend/static/controllers/sdvx/rivals.react.js b/bemani/frontend/static/controllers/sdvx/rivals.react.js index f786182..0e3b865 100644 --- a/bemani/frontend/static/controllers/sdvx/rivals.react.js +++ b/bemani/frontend/static/controllers/sdvx/rivals.react.js @@ -111,7 +111,7 @@ var rivals_view = createReactClass({ if (count >= 3) { avail = false; } return ( - + <> {avail ? : null } - + ); }, diff --git a/bemani/frontend/static/controllers/sdvx/scores.react.js b/bemani/frontend/static/controllers/sdvx/scores.react.js index 4c89724..07441ec 100644 --- a/bemani/frontend/static/controllers/sdvx/scores.react.js +++ b/bemani/frontend/static/controllers/sdvx/scores.react.js @@ -60,10 +60,10 @@ var network_scores = createReactClass({ {score.grade} Score {score.points} - {score.combo >= 0 ? + {score.combo >= 0 ? <> Combo {score.combo} - : null} + : null}
{has_stats ?
{score.stats.critical} diff --git a/bemani/frontend/static/controllers/sdvx/settings.react.js b/bemani/frontend/static/controllers/sdvx/settings.react.js index 6c13d64..258ba9e 100644 --- a/bemani/frontend/static/controllers/sdvx/settings.react.js +++ b/bemani/frontend/static/controllers/sdvx/settings.react.js @@ -54,14 +54,14 @@ var settings_view = createReactClass({ return ( { !this.state.editing_name ? - + <> {player.name} - : + : 0 || topscore.stats.near > 0 ||