From 7f2c8b0ef2f8c3914954065577726b9f0fac2baa Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sat, 8 Oct 2022 21:46:46 +0000 Subject: [PATCH] Roll out fragments to MGA and Jubeat frontends. --- .../static/controllers/jubeat/allplayers.react.js | 6 +++--- .../static/controllers/jubeat/records.react.js | 12 ++++++------ .../static/controllers/jubeat/rivals.react.js | 4 ++-- .../static/controllers/jubeat/scores.react.js | 4 ++-- .../static/controllers/jubeat/settings.react.js | 4 ++-- .../static/controllers/mga/settings.react.js | 4 ++-- bemani/frontend/static/themes/dark/section.css | 4 ++++ bemani/frontend/static/themes/default/section.css | 4 ++++ 8 files changed, 25 insertions(+), 17 deletions(-) diff --git a/bemani/frontend/static/controllers/jubeat/allplayers.react.js b/bemani/frontend/static/controllers/jubeat/allplayers.react.js index d398b13..2aedfed 100644 --- a/bemani/frontend/static/controllers/jubeat/allplayers.react.js +++ b/bemani/frontend/static/controllers/jubeat/allplayers.react.js @@ -71,18 +71,18 @@ var all_players = createReactClass({ reverse: true, }, { - name: + name: <> Jubility - - , + , render: function(userid) { var player = this.state.players[userid]; if (this.state.jubility && (player.common_jubility != 0 || player.pick_up_jubility != 0)) { diff --git a/bemani/frontend/static/controllers/jubeat/records.react.js b/bemani/frontend/static/controllers/jubeat/records.react.js index 77b94c8..1ca758a 100644 --- a/bemani/frontend/static/controllers/jubeat/records.react.js +++ b/bemani/frontend/static/controllers/jubeat/records.react.js @@ -196,7 +196,7 @@ var network_records = createReactClass({ } return ( - + <> { paginate ?
{songids.map(function(songid) { @@ -323,7 +323,7 @@ var network_records = createReactClass({
-
+ ); }, @@ -395,7 +395,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -412,7 +412,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, @@ -445,7 +445,7 @@ var network_records = createReactClass({ } return ( - + <>
{window.valid_charts.map(function(chartname, index) { return ( @@ -462,7 +462,7 @@ var network_records = createReactClass({ }.bind(this))}
{ this.renderBySongIDList(songids, false) } -
+ ); }, diff --git a/bemani/frontend/static/controllers/jubeat/rivals.react.js b/bemani/frontend/static/controllers/jubeat/rivals.react.js index 611d50e..9f6efe3 100644 --- a/bemani/frontend/static/controllers/jubeat/rivals.react.js +++ b/bemani/frontend/static/controllers/jubeat/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/jubeat/scores.react.js b/bemani/frontend/static/controllers/jubeat/scores.react.js index 9022a32..5145d80 100644 --- a/bemani/frontend/static/controllers/jubeat/scores.react.js +++ b/bemani/frontend/static/controllers/jubeat/scores.react.js @@ -66,10 +66,10 @@ var network_scores = createReactClass({ {score.points} Combo {score.combo < 0 ? '-' : score.combo} - {score.music_rate >= 0 ? + {score.music_rate >= 0 ? <> Music Rate {score.music_rate <= 0 ? '-' : score.music_rate}% - : null} + : null} {has_stats ?
{score.stats.perfect} diff --git a/bemani/frontend/static/controllers/jubeat/settings.react.js b/bemani/frontend/static/controllers/jubeat/settings.react.js index c155bcb..2b10607 100644 --- a/bemani/frontend/static/controllers/jubeat/settings.react.js +++ b/bemani/frontend/static/controllers/jubeat/settings.react.js @@ -109,14 +109,14 @@ var settings_view = createReactClass({ return ( { !this.state.editing_name ? - + <> {player.name} - : + :
{ !this.state.editing_name ? - + <> {player.name} - : + :