Covnert Museca and SDVX to fragments.
This commit is contained in:
parent
7f2c8b0ef2
commit
3843e37d4e
@ -182,9 +182,9 @@ var network_records = createReactClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
{ paginate ?
|
||||
<div className="section">
|
||||
<div className="section" key="paginatebuttons">
|
||||
{songids.map(function(songid) {
|
||||
if (songid < 0) {
|
||||
curbutton = curbutton + 1;
|
||||
@ -207,7 +207,7 @@ var network_records = createReactClass({
|
||||
</div> :
|
||||
null
|
||||
}
|
||||
<div className="section">
|
||||
<div className="section" key="contents">
|
||||
<table className="list records">
|
||||
<thead></thead>
|
||||
<tbody>
|
||||
@ -284,7 +284,7 @@ var network_records = createReactClass({
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
@ -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 (
|
||||
<span>
|
||||
<>
|
||||
<div className="section">
|
||||
{window.valid_charts.map(function(chartname, index) {
|
||||
return (
|
||||
@ -373,7 +372,7 @@ var network_records = createReactClass({
|
||||
}.bind(this))}
|
||||
</div>
|
||||
{ this.renderBySongIDList(songids, false) }
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
@ -406,7 +405,7 @@ var network_records = createReactClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
<div className="section">
|
||||
{window.valid_charts.map(function(chartname, index) {
|
||||
return (
|
||||
@ -423,7 +422,7 @@ var network_records = createReactClass({
|
||||
}.bind(this))}
|
||||
</div>
|
||||
{ this.renderBySongIDList(songids, false) }
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -54,14 +54,14 @@ var settings_view = createReactClass({
|
||||
return (
|
||||
<LabelledSection vertical={true} label="Name">{
|
||||
!this.state.editing_name ?
|
||||
<span>
|
||||
<>
|
||||
<span>{player.name}</span>
|
||||
<Edit
|
||||
onClick={function(event) {
|
||||
this.setState({editing_name: true});
|
||||
}.bind(this)}
|
||||
/>
|
||||
</span> :
|
||||
</> :
|
||||
<form className="inline" onSubmit={this.saveName}>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -175,9 +175,9 @@ var network_records = createReactClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
{ paginate ?
|
||||
<div className="section">
|
||||
<div className="section" key="paginatebuttons">
|
||||
{songids.map(function(songid) {
|
||||
if (songid < 0) {
|
||||
curbutton = curbutton + 1;
|
||||
@ -200,7 +200,7 @@ var network_records = createReactClass({
|
||||
</div> :
|
||||
null
|
||||
}
|
||||
<div className="section">
|
||||
<div className="section" key="contents">
|
||||
<table className="list records">
|
||||
<thead></thead>
|
||||
<tbody>
|
||||
@ -299,7 +299,7 @@ var network_records = createReactClass({
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
@ -371,7 +371,7 @@ var network_records = createReactClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
<div className="section">
|
||||
{window.valid_charts.map(function(chartname, index) {
|
||||
return (
|
||||
@ -388,7 +388,7 @@ var network_records = createReactClass({
|
||||
}.bind(this))}
|
||||
</div>
|
||||
{ this.renderBySongIDList(songids, false) }
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
@ -421,7 +421,7 @@ var network_records = createReactClass({
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
<div className="section">
|
||||
{window.valid_charts.map(function(chartname, index) {
|
||||
return (
|
||||
@ -438,7 +438,7 @@ var network_records = createReactClass({
|
||||
}.bind(this))}
|
||||
</div>
|
||||
{ this.renderBySongIDList(songids, false) }
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -111,7 +111,7 @@ var rivals_view = createReactClass({
|
||||
if (count >= 3) { avail = false; }
|
||||
|
||||
return (
|
||||
<span>
|
||||
<>
|
||||
{avail ?
|
||||
<Add
|
||||
title="Add Rival"
|
||||
@ -121,7 +121,7 @@ var rivals_view = createReactClass({
|
||||
/> :
|
||||
null
|
||||
}
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -60,10 +60,10 @@ var network_scores = createReactClass({
|
||||
<span className="grade">{score.grade}</span>
|
||||
<span className="label">Score</span>
|
||||
<span className="score">{score.points}</span>
|
||||
{score.combo >= 0 ? <span>
|
||||
{score.combo >= 0 ? <>
|
||||
<span className="label">Combo</span>
|
||||
<span className="score">{score.combo}</span>
|
||||
</span> : null}
|
||||
</> : null}
|
||||
</div>
|
||||
{has_stats ? <div title="critical / near / error">
|
||||
{score.stats.critical}
|
||||
|
@ -54,14 +54,14 @@ var settings_view = createReactClass({
|
||||
return (
|
||||
<LabelledSection vertical={true} label="Name">{
|
||||
!this.state.editing_name ?
|
||||
<span>
|
||||
<>
|
||||
<span>{player.name}</span>
|
||||
<Edit
|
||||
onClick={function(event) {
|
||||
this.setState({editing_name: true});
|
||||
}.bind(this)}
|
||||
/>
|
||||
</span> :
|
||||
</> :
|
||||
<form className="inline" onSubmit={this.saveName}>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -132,7 +132,6 @@ var top_scores = createReactClass({
|
||||
{
|
||||
name: 'Judgement Stats',
|
||||
render: function(topscore) {
|
||||
console.log(topscore);
|
||||
has_stats = (
|
||||
topscore.stats.critical > 0 ||
|
||||
topscore.stats.near > 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user