Encode unicode in JSX differently to attempt to fix issue with unicode translation on some non-utf8 systems.
This commit is contained in:
parent
b7bd09bb62
commit
68c1b7cc63
@ -5,8 +5,8 @@ var Checkbox = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<span className={this.props.className} onClick={this.props.onClick}>
|
<span className={this.props.className} onClick={this.props.onClick}>
|
||||||
{this.props.checked ?
|
{this.props.checked ?
|
||||||
<span className="checkbox">☑</span> :
|
<span className="checkbox">{ "\u2611" }</span> :
|
||||||
<span className="checkbox">☐</span>
|
<span className="checkbox">{ "\u2610" }</span>
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
@ -12,7 +12,7 @@ var Nav = React.createClass({
|
|||||||
<span>
|
<span>
|
||||||
{this.props.title}
|
{this.props.title}
|
||||||
{this.props.showAlert ?
|
{this.props.showAlert ?
|
||||||
<span className="alert">⚠</span> :
|
<span className="alert">{ "\u26a0" }</span> :
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
|
@ -64,19 +64,19 @@ var Table = React.createClass({
|
|||||||
var click = null;
|
var click = null;
|
||||||
if (index == this.state.sortCol) {
|
if (index == this.state.sortCol) {
|
||||||
if (this.state.sortDir < 0) {
|
if (this.state.sortDir < 0) {
|
||||||
sort = <span className="sort"> ↑</span>;
|
sort = <span className="sort">{ " \u2191" }</span>;
|
||||||
click = function() {
|
click = function() {
|
||||||
this.setState({sortDir: 1});
|
this.setState({sortDir: 1});
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
} else {
|
} else {
|
||||||
sort = <span className="sort"> ↓</span>;
|
sort = <span className="sort">{ " \u2193" }</span>;
|
||||||
click = function() {
|
click = function() {
|
||||||
this.setState({sortDir: -1});
|
this.setState({sortDir: -1});
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (column.sort) {
|
if (column.sort) {
|
||||||
sort = <span className="sort"> ↕</span>;
|
sort = <span className="sort">{ " \u2195" }</span>;
|
||||||
click = function() {
|
click = function() {
|
||||||
this.setState({sortCol: index, sortDir: column.reverse ? 1 : -1});
|
this.setState({sortCol: index, sortDir: column.reverse ? 1 : -1});
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
@ -481,7 +481,7 @@ var arcade_management = React.createClass({
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
{ this.state.settings_saved[this.state.current_setting] ?
|
{ this.state.settings_saved[this.state.current_setting] ?
|
||||||
<span>✓</span> :
|
<span>{ "\u2713" }</span> :
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -378,7 +378,7 @@ var settings_view = React.createClass({
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
{ this.state.options_saved[this.state.version] ?
|
{ this.state.options_saved[this.state.version] ?
|
||||||
<span>✓</span> :
|
<span>{ "\u2713" }</span> :
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
</div> : null
|
</div> : null
|
||||||
|
@ -389,7 +389,7 @@ var settings_view = React.createClass({
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
{ this.state.theme_saved[this.state.version] ?
|
{ this.state.theme_saved[this.state.version] ?
|
||||||
<span>✓</span> :
|
<span>{ "\u2713" }</span> :
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@ -429,7 +429,7 @@ var settings_view = React.createClass({
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
{ this.state.menu_saved[this.state.version] ?
|
{ this.state.menu_saved[this.state.version] ?
|
||||||
<span>✓</span> :
|
<span>{ "\u2713" }</span> :
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user