diff --git a/bemani/frontend/static/controllers/ddr/topscores.react.js b/bemani/frontend/static/controllers/ddr/topscores.react.js index 732e914..b37eb75 100644 --- a/bemani/frontend/static/controllers/ddr/topscores.react.js +++ b/bemani/frontend/static/controllers/ddr/topscores.react.js @@ -192,6 +192,10 @@ var top_scores = React.createClass({ }, { name: 'Combo', + sort: function(a, b) { + return a.combo - b.combo; + }, + reverse: true, render: function(topscore) { return topscore.combo > 0 ? topscore.combo : ''; }, }, { diff --git a/bemani/frontend/static/controllers/iidx/player.react.js b/bemani/frontend/static/controllers/iidx/player.react.js index 57db71c..86ed278 100644 --- a/bemani/frontend/static/controllers/iidx/player.react.js +++ b/bemani/frontend/static/controllers/iidx/player.react.js @@ -102,10 +102,10 @@ var profile_view = React.createClass({
{player.extid} - + - +
diff --git a/bemani/frontend/static/controllers/iidx/records.react.js b/bemani/frontend/static/controllers/iidx/records.react.js index 0e31fe2..5701fed 100644 --- a/bemani/frontend/static/controllers/iidx/records.react.js +++ b/bemani/frontend/static/controllers/iidx/records.react.js @@ -219,7 +219,9 @@ var network_records = React.createClass({ return ( - { this.state.versions[songid] } + { + !paginate ? this.state.versions[songid] : "Song / Artist / Difficulties" + } SPN SPH SPA @@ -469,130 +471,132 @@ var network_records = React.createClass({ renderBySongIDList: function(songids, showplays) { return ( - - - - - - - - - - - - - - {songids.map(function(songid, index) { - if (index < this.state.offset || index >= this.state.offset + this.state.limit) { - return null; - } - - var records = this.state.records[songid]; - if (!records) { - records = {}; - } - - var difficulties = this.state.songs[songid].difficulties; - var plays = this.getPlays(records); - return ( - - - - - - - - - - ); - }.bind(this))} - - - - + + + + + + + + + ); + }.bind(this))} + + + + + + +
SongSPNSPHSPADPNDPHDPA
-
- -
{ this.state.songs[songid].name }
-
{ this.state.songs[songid].artist }
-
{ this.state.songs[songid].genre }
-
-
-
- {this.renderDifficulty(songid, 0)} - / - {this.renderDifficulty(songid, 1)} - / - {this.renderDifficulty(songid, 2)} - / - {this.renderDifficulty(songid, 3)} - / - {this.renderDifficulty(songid, 4)} - / - {this.renderDifficulty(songid, 5)} -
- { showplays ?
#{index + 1} - {plays}{plays == 1 ? ' play' : ' plays'}
: null } -
0 ? "" : "nochart"}> - - 0 ? "" : "nochart"}> - - 0 ? "" : "nochart"}> - - 0 ? "" : "nochart"}> - - 0 ? "" : "nochart"}> - - 0 ? "" : "nochart"}> - -
- { this.state.offset > 0 ? - : null +
+ + + + + + + + + + + + + + {songids.map(function(songid, index) { + if (index < this.state.offset || index >= this.state.offset + this.state.limit) { + return null; } - { (this.state.offset + this.state.limit) < songids.length ? - = songids.length) { return } - this.setState({offset: page}); - }.bind(this)}/> : - null + + var records = this.state.records[songid]; + if (!records) { + records = {}; } - - - -
Song / Artist / DifficultiesSPNSPHSPADPNDPHDPA
+ + var difficulties = this.state.songs[songid].difficulties; + var plays = this.getPlays(records); + return ( +
+
+ +
{ this.state.songs[songid].name }
+
{ this.state.songs[songid].artist }
+
{ this.state.songs[songid].genre }
+
+
+
+ {this.renderDifficulty(songid, 0)} + / + {this.renderDifficulty(songid, 1)} + / + {this.renderDifficulty(songid, 2)} + / + {this.renderDifficulty(songid, 3)} + / + {this.renderDifficulty(songid, 4)} + / + {this.renderDifficulty(songid, 5)} +
+ { showplays ?
#{index + 1} - {plays}{plays == 1 ? ' play' : ' plays'}
: null } +
0 ? "" : "nochart"}> + + 0 ? "" : "nochart"}> + + 0 ? "" : "nochart"}> + + 0 ? "" : "nochart"}> + + 0 ? "" : "nochart"}> + + 0 ? "" : "nochart"}> + +
+ { this.state.offset > 0 ? + : null + } + { (this.state.offset + this.state.limit) < songids.length ? + = songids.length) { return } + this.setState({offset: page}); + }.bind(this)}/> : + null + } +
+ ); }, diff --git a/bemani/frontend/static/controllers/iidx/scores.react.js b/bemani/frontend/static/controllers/iidx/scores.react.js index 5d21da9..d95512e 100644 --- a/bemani/frontend/static/controllers/iidx/scores.react.js +++ b/bemani/frontend/static/controllers/iidx/scores.react.js @@ -101,8 +101,8 @@ var network_scores = React.createClass({ { window.showdjnames ? DJ Name : null } { window.showdjnames ? Arcade : null } Timestamp - Song - Chart + Song / Artist + Difficulty Score