1
0
mirror of synced 2025-01-31 04:03:45 +01:00

Encode unicode in JSX differently to attempt to fix issue with unicode translation on some non-utf8 systems.

This commit is contained in:
Jennifer Taylor 2020-12-17 21:47:36 +00:00
parent b7bd09bb62
commit 68c1b7cc63
6 changed files with 10 additions and 10 deletions

View File

@ -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">&#9745;</span> : <span className="checkbox">{ "\u2611" }</span> :
<span className="checkbox">&#9744;</span> <span className="checkbox">{ "\u2610" }</span>
} }
</span> </span>
); );

View File

@ -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">&#9888;</span> : <span className="alert">{ "\u26a0" }</span> :
null null
} }
</span> </span>

View File

@ -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"> &#8593;</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"> &#8595;</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"> &#8597;</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);

View File

@ -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>&#x2713;</span> : <span>{ "\u2713" }</span> :
null null
} }
</div> </div>

View File

@ -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>&#x2713;</span> : <span>{ "\u2713" }</span> :
null null
} }
</div> : null </div> : null

View File

@ -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>&#x2713;</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>&#x2713;</span> : <span>{ "\u2713" }</span> :
null null
} }
</div> </div>